1#! /bin/sh
2# From configure.ac Id.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for GECODE 6.3.0.
5#
6# Report bugs to <users@gecode.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1"
203  if (eval "$as_required") 2>/dev/null; then :
204  as_have_required=yes
205else
206  as_have_required=no
207fi
208  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215  IFS=$as_save_IFS
216  test -z "$as_dir" && as_dir=.
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir/$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  CONFIG_SHELL=$as_shell as_have_required=yes
226		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241      if test "x$CONFIG_SHELL" != x; then :
242  export CONFIG_SHELL
243             # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251  *v*x* | *x*v* ) as_opts=-vx ;;
252  *v* ) as_opts=-v ;;
253  *x* ) as_opts=-x ;;
254  * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
261fi
262
263    if test x$as_have_required = xno; then :
264  $as_echo "$0: This script requires a shell more modern than all"
265  $as_echo "$0: the shells that I found on your system."
266  if test x${ZSH_VERSION+set} = xset ; then
267    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    $as_echo "$0: Please tell bug-autoconf@gnu.org and users@gecode.org
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='GECODE'
583PACKAGE_TARNAME='gecode'
584PACKAGE_VERSION='6.3.0'
585PACKAGE_STRING='GECODE 6.3.0'
586PACKAGE_BUGREPORT='users@gecode.org'
587PACKAGE_URL=''
588
589ac_unique_file="gecode/kernel.hh"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_header_list=
627enable_option_checking=no
628ac_subst_vars='LTLIBOBJS
629LIBOBJS
630BATCHFILE
631DLL_ARCH
632ALLVIS
633GLDFLAGS
634DLLFLAGS
635GECODE_VERSION
636VERSION
637subdirs
638enable_search
639enable_minimodel
640enable_examples
641enable_flatzinc
642enable_driver
643HAVEBISON
644HAVE_FLEXBISON
645HAVEFLEX
646enable_cpprofiler
647enable_cbs
648enable_gist
649enable_qt
650QTLIBS
651QTDEFINES
652QTINCLUDES
653MOC
654QMAKE
655enable_mpfr
656MPFR_LINK
657MPFR_LIB_PATH
658MPFR_CPPFLAGS
659GMP_LINK
660GMP_LIB_PATH
661GMP_CPPFLAGS
662enable_int_vars
663LINKINT
664enable_set_vars
665LINKSET
666enable_float_vars
667LINKFLOAT
668ENABLEDOCDOCSET
669ENABLEDOCCHM
670GECODE_DOXYGEN_TAGFILE
671ENABLEDOCSEARCH
672GECODE_DOXYGEN_DOT
673DOT
674DRIVER
675FLATZINC
676GIST
677MM
678SET
679FLOAT
680INT
681SEARCH
682KERNEL
683SUPPORT
684EXEOUTPUT
685LINKOUTPUT
686LINKSUFFIX
687LINKPREFIX
688INSTALLLIBS
689EXAMPLES_EXTRA_CXXFLAGS
690CCIN
691CXXIN
692COMPILESBJ
693COMPILEOBJ
694cygpathprefix
695LINKLIBDIR
696MINUSLDIR
697STATICLIBEXT
698LIBPREFIX
699LIBEXT
700SBJEXT
701MANIFEST
702GECODE_BUILD_DRIVER_FLAG
703GECODE_BUILD_FLATZINC_FLAG
704GECODE_BUILD_GIST_FLAG
705GECODE_BUILD_MINIMODEL_FLAG
706GECODE_BUILD_SET_FLAG
707GECODE_BUILD_FLOAT_FLAG
708GECODE_BUILD_INT_FLAG
709GECODE_BUILD_SEARCH_FLAG
710GECODE_BUILD_KERNEL_FLAG
711GECODE_BUILD_SUPPORT_FLAG
712WLSONAME
713sharedlibdir
714SOLINKSUFFIX
715SOSUFFIX
716DLLEXT
717need_soname
718DLLPATH
719EGREP
720GREP
721DEBUG_BUILD
722BUILDDLL
723BUILDSTATIC
724BUILD_MACOS_FRAMEWORK
725USERSUFFIX
726enable_resource
727RESCOMP
728HAVE_RC
729CXXCPP
730RUNENVIRONMENT
731PROG_PERL
732PROG_SED
733PROG_MAKE
734PROG_TAR
735PROG_DIFF
736RANLIB
737ac_ct_CC
738CFLAGS
739CC
740OBJEXT
741EXEEXT
742ac_ct_CXX
743CPPFLAGS
744LDFLAGS
745CXXFLAGS
746CXX
747GECODE_FLATZINC_VERSION
748GECODE_SOVERSION
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790with_host_os
791with_compiler_vendor
792enable_resource
793with_sdk
794with_macosx_version_min
795with_architectures
796with_lib_prefix
797with_lib_suffix
798enable_framework
799enable_static
800enable_shared
801enable_debug
802enable_peakheap
803enable_small_codesize
804enable_leak_debug
805enable_allocator
806enable_audit
807enable_profile
808enable_gcov
809enable_thread
810with_freelist32_size_max
811with_freelist64_size_max
812enable_gcc_visibility
813enable_doc_dot
814enable_doc_search
815enable_doc_tagfile
816enable_doc_chm
817enable_doc_docset
818with_vis
819enable_float_vars
820enable_set_vars
821enable_int_vars
822enable_mpfr
823with_gmp_include
824with_gmp_lib
825with_mpfr_include
826with_mpfr_lib
827enable_qt
828enable_gist
829enable_cbs
830enable_cpprofiler
831enable_driver
832enable_flatzinc
833enable_examples
834enable_minimodel
835enable_search
836'
837      ac_precious_vars='build_alias
838host_alias
839target_alias
840CXX
841CXXFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CCC
846CC
847CFLAGS
848CXXCPP'
849ac_subdirs_all=''
850
851# Initialize some variables set by options.
852ac_init_help=
853ac_init_version=false
854ac_unrecognized_opts=
855ac_unrecognized_sep=
856# The variables have the same names as the options, with
857# dashes changed to underlines.
858cache_file=/dev/null
859exec_prefix=NONE
860no_create=
861no_recursion=
862prefix=NONE
863program_prefix=NONE
864program_suffix=NONE
865program_transform_name=s,x,x,
866silent=
867site=
868srcdir=
869verbose=
870x_includes=NONE
871x_libraries=NONE
872
873# Installation directory options.
874# These are left unexpanded so users can "make install exec_prefix=/foo"
875# and all the variables that are supposed to be based on exec_prefix
876# by default will actually change.
877# Use braces instead of parens because sh, perl, etc. also accept them.
878# (The list follows the same order as the GNU Coding Standards.)
879bindir='${exec_prefix}/bin'
880sbindir='${exec_prefix}/sbin'
881libexecdir='${exec_prefix}/libexec'
882datarootdir='${prefix}/share'
883datadir='${datarootdir}'
884sysconfdir='${prefix}/etc'
885sharedstatedir='${prefix}/com'
886localstatedir='${prefix}/var'
887includedir='${prefix}/include'
888oldincludedir='/usr/include'
889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890infodir='${datarootdir}/info'
891htmldir='${docdir}'
892dvidir='${docdir}'
893pdfdir='${docdir}'
894psdir='${docdir}'
895libdir='${exec_prefix}/lib'
896localedir='${datarootdir}/locale'
897mandir='${datarootdir}/man'
898
899ac_prev=
900ac_dashdash=
901for ac_option
902do
903  # If the previous option needs an argument, assign it.
904  if test -n "$ac_prev"; then
905    eval $ac_prev=\$ac_option
906    ac_prev=
907    continue
908  fi
909
910  case $ac_option in
911  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912  *=)   ac_optarg= ;;
913  *)    ac_optarg=yes ;;
914  esac
915
916  # Accept the important Cygnus configure options, so we can diagnose typos.
917
918  case $ac_dashdash$ac_option in
919  --)
920    ac_dashdash=yes ;;
921
922  -bindir | --bindir | --bindi | --bind | --bin | --bi)
923    ac_prev=bindir ;;
924  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925    bindir=$ac_optarg ;;
926
927  -build | --build | --buil | --bui | --bu)
928    ac_prev=build_alias ;;
929  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930    build_alias=$ac_optarg ;;
931
932  -cache-file | --cache-file | --cache-fil | --cache-fi \
933  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934    ac_prev=cache_file ;;
935  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937    cache_file=$ac_optarg ;;
938
939  --config-cache | -C)
940    cache_file=config.cache ;;
941
942  -datadir | --datadir | --datadi | --datad)
943    ac_prev=datadir ;;
944  -datadir=* | --datadir=* | --datadi=* | --datad=*)
945    datadir=$ac_optarg ;;
946
947  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948  | --dataroo | --dataro | --datar)
949    ac_prev=datarootdir ;;
950  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952    datarootdir=$ac_optarg ;;
953
954  -disable-* | --disable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error $? "invalid feature name: $ac_useropt"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=no ;;
969
970  -docdir | --docdir | --docdi | --doc | --do)
971    ac_prev=docdir ;;
972  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973    docdir=$ac_optarg ;;
974
975  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976    ac_prev=dvidir ;;
977  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978    dvidir=$ac_optarg ;;
979
980  -enable-* | --enable-*)
981    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982    # Reject names that are not valid shell variable names.
983    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984      as_fn_error $? "invalid feature name: $ac_useropt"
985    ac_useropt_orig=$ac_useropt
986    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987    case $ac_user_opts in
988      *"
989"enable_$ac_useropt"
990"*) ;;
991      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992	 ac_unrecognized_sep=', ';;
993    esac
994    eval enable_$ac_useropt=\$ac_optarg ;;
995
996  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998  | --exec | --exe | --ex)
999    ac_prev=exec_prefix ;;
1000  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002  | --exec=* | --exe=* | --ex=*)
1003    exec_prefix=$ac_optarg ;;
1004
1005  -gas | --gas | --ga | --g)
1006    # Obsolete; use --with-gas.
1007    with_gas=yes ;;
1008
1009  -help | --help | --hel | --he | -h)
1010    ac_init_help=long ;;
1011  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012    ac_init_help=recursive ;;
1013  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014    ac_init_help=short ;;
1015
1016  -host | --host | --hos | --ho)
1017    ac_prev=host_alias ;;
1018  -host=* | --host=* | --hos=* | --ho=*)
1019    host_alias=$ac_optarg ;;
1020
1021  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022    ac_prev=htmldir ;;
1023  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024  | --ht=*)
1025    htmldir=$ac_optarg ;;
1026
1027  -includedir | --includedir | --includedi | --included | --include \
1028  | --includ | --inclu | --incl | --inc)
1029    ac_prev=includedir ;;
1030  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031  | --includ=* | --inclu=* | --incl=* | --inc=*)
1032    includedir=$ac_optarg ;;
1033
1034  -infodir | --infodir | --infodi | --infod | --info | --inf)
1035    ac_prev=infodir ;;
1036  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037    infodir=$ac_optarg ;;
1038
1039  -libdir | --libdir | --libdi | --libd)
1040    ac_prev=libdir ;;
1041  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042    libdir=$ac_optarg ;;
1043
1044  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045  | --libexe | --libex | --libe)
1046    ac_prev=libexecdir ;;
1047  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048  | --libexe=* | --libex=* | --libe=*)
1049    libexecdir=$ac_optarg ;;
1050
1051  -localedir | --localedir | --localedi | --localed | --locale)
1052    ac_prev=localedir ;;
1053  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054    localedir=$ac_optarg ;;
1055
1056  -localstatedir | --localstatedir | --localstatedi | --localstated \
1057  | --localstate | --localstat | --localsta | --localst | --locals)
1058    ac_prev=localstatedir ;;
1059  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061    localstatedir=$ac_optarg ;;
1062
1063  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064    ac_prev=mandir ;;
1065  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066    mandir=$ac_optarg ;;
1067
1068  -nfp | --nfp | --nf)
1069    # Obsolete; use --without-fp.
1070    with_fp=no ;;
1071
1072  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073  | --no-cr | --no-c | -n)
1074    no_create=yes ;;
1075
1076  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078    no_recursion=yes ;;
1079
1080  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082  | --oldin | --oldi | --old | --ol | --o)
1083    ac_prev=oldincludedir ;;
1084  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087    oldincludedir=$ac_optarg ;;
1088
1089  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090    ac_prev=prefix ;;
1091  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092    prefix=$ac_optarg ;;
1093
1094  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095  | --program-pre | --program-pr | --program-p)
1096    ac_prev=program_prefix ;;
1097  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099    program_prefix=$ac_optarg ;;
1100
1101  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102  | --program-suf | --program-su | --program-s)
1103    ac_prev=program_suffix ;;
1104  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106    program_suffix=$ac_optarg ;;
1107
1108  -program-transform-name | --program-transform-name \
1109  | --program-transform-nam | --program-transform-na \
1110  | --program-transform-n | --program-transform- \
1111  | --program-transform | --program-transfor \
1112  | --program-transfo | --program-transf \
1113  | --program-trans | --program-tran \
1114  | --progr-tra | --program-tr | --program-t)
1115    ac_prev=program_transform_name ;;
1116  -program-transform-name=* | --program-transform-name=* \
1117  | --program-transform-nam=* | --program-transform-na=* \
1118  | --program-transform-n=* | --program-transform-=* \
1119  | --program-transform=* | --program-transfor=* \
1120  | --program-transfo=* | --program-transf=* \
1121  | --program-trans=* | --program-tran=* \
1122  | --progr-tra=* | --program-tr=* | --program-t=*)
1123    program_transform_name=$ac_optarg ;;
1124
1125  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126    ac_prev=pdfdir ;;
1127  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128    pdfdir=$ac_optarg ;;
1129
1130  -psdir | --psdir | --psdi | --psd | --ps)
1131    ac_prev=psdir ;;
1132  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133    psdir=$ac_optarg ;;
1134
1135  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136  | -silent | --silent | --silen | --sile | --sil)
1137    silent=yes ;;
1138
1139  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140    ac_prev=sbindir ;;
1141  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142  | --sbi=* | --sb=*)
1143    sbindir=$ac_optarg ;;
1144
1145  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147  | --sharedst | --shareds | --shared | --share | --shar \
1148  | --sha | --sh)
1149    ac_prev=sharedstatedir ;;
1150  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153  | --sha=* | --sh=*)
1154    sharedstatedir=$ac_optarg ;;
1155
1156  -site | --site | --sit)
1157    ac_prev=site ;;
1158  -site=* | --site=* | --sit=*)
1159    site=$ac_optarg ;;
1160
1161  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162    ac_prev=srcdir ;;
1163  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164    srcdir=$ac_optarg ;;
1165
1166  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167  | --syscon | --sysco | --sysc | --sys | --sy)
1168    ac_prev=sysconfdir ;;
1169  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171    sysconfdir=$ac_optarg ;;
1172
1173  -target | --target | --targe | --targ | --tar | --ta | --t)
1174    ac_prev=target_alias ;;
1175  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176    target_alias=$ac_optarg ;;
1177
1178  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179    verbose=yes ;;
1180
1181  -version | --version | --versio | --versi | --vers | -V)
1182    ac_init_version=: ;;
1183
1184  -with-* | --with-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid package name: $ac_useropt"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"with_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval with_$ac_useropt=\$ac_optarg ;;
1199
1200  -without-* | --without-*)
1201    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204      as_fn_error $? "invalid package name: $ac_useropt"
1205    ac_useropt_orig=$ac_useropt
1206    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207    case $ac_user_opts in
1208      *"
1209"with_$ac_useropt"
1210"*) ;;
1211      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212	 ac_unrecognized_sep=', ';;
1213    esac
1214    eval with_$ac_useropt=no ;;
1215
1216  --x)
1217    # Obsolete; use --with-x.
1218    with_x=yes ;;
1219
1220  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221  | --x-incl | --x-inc | --x-in | --x-i)
1222    ac_prev=x_includes ;;
1223  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225    x_includes=$ac_optarg ;;
1226
1227  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229    ac_prev=x_libraries ;;
1230  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232    x_libraries=$ac_optarg ;;
1233
1234  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235Try \`$0 --help' for more information"
1236    ;;
1237
1238  *=*)
1239    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240    # Reject names that are not valid shell variable names.
1241    case $ac_envvar in #(
1242      '' | [0-9]* | *[!_$as_cr_alnum]* )
1243      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244    esac
1245    eval $ac_envvar=\$ac_optarg
1246    export $ac_envvar ;;
1247
1248  *)
1249    # FIXME: should be removed in autoconf 3.0.
1250    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254    ;;
1255
1256  esac
1257done
1258
1259if test -n "$ac_prev"; then
1260  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261  as_fn_error $? "missing argument to $ac_option"
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265  case $enable_option_checking in
1266    no) ;;
1267    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269  esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274		datadir sysconfdir sharedstatedir localstatedir includedir \
1275		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276		libdir localedir mandir
1277do
1278  eval ac_val=\$$ac_var
1279  # Remove trailing slashes.
1280  case $ac_val in
1281    */ )
1282      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283      eval $ac_var=\$ac_val;;
1284  esac
1285  # Be sure to have absolute directory names.
1286  case $ac_val in
1287    [\\/$]* | ?:[\\/]* )  continue;;
1288    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289  esac
1290  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304  elif test "x$build_alias" != "x$host_alias"; then
1305    cross_compiling=yes
1306  fi
1307fi
1308
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
1313
1314
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318  as_fn_error $? "working directory cannot be determined"
1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320  as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325  ac_srcdir_defaulted=yes
1326  # Try the directory containing this script, then the parent directory.
1327  ac_confdir=`$as_dirname -- "$as_myself" ||
1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329	 X"$as_myself" : 'X\(//\)[^/]' \| \
1330	 X"$as_myself" : 'X\(//\)$' \| \
1331	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332$as_echo X"$as_myself" |
1333    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)[^/].*/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\).*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  s/.*/./; q'`
1350  srcdir=$ac_confdir
1351  if test ! -r "$srcdir/$ac_unique_file"; then
1352    srcdir=..
1353  fi
1354else
1355  ac_srcdir_defaulted=no
1356fi
1357if test ! -r "$srcdir/$ac_unique_file"; then
1358  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360fi
1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362ac_abs_confdir=`(
1363	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364	pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367  srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_env_${ac_var}_value=\$${ac_var}
1378  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386  # Omit some internal or obsolete options to make the list less imposing.
1387  # This message is too long to be a string in the A/UX 3.1 sh.
1388  cat <<_ACEOF
1389\`configure' configures GECODE 6.3.0 to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399  -h, --help              display this help and exit
1400      --help=short        display options specific to this package
1401      --help=recursive    display the short help of all the included packages
1402  -V, --version           display version information and exit
1403  -q, --quiet, --silent   do not print \`checking ...' messages
1404      --cache-file=FILE   cache test results in FILE [disabled]
1405  -C, --config-cache      alias for \`--cache-file=config.cache'
1406  -n, --no-create         do not create output files
1407      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1408
1409Installation directories:
1410  --prefix=PREFIX         install architecture-independent files in PREFIX
1411                          [$ac_default_prefix]
1412  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                          [PREFIX]
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
1423  --bindir=DIR            user executables [EPREFIX/bin]
1424  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1425  --libexecdir=DIR        program executables [EPREFIX/libexec]
1426  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1427  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1428  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1429  --libdir=DIR            object code libraries [EPREFIX/lib]
1430  --includedir=DIR        C header files [PREFIX/include]
1431  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1432  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1433  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1434  --infodir=DIR           info documentation [DATAROOTDIR/info]
1435  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1436  --mandir=DIR            man documentation [DATAROOTDIR/man]
1437  --docdir=DIR            documentation root [DATAROOTDIR/doc/gecode]
1438  --htmldir=DIR           html documentation [DOCDIR]
1439  --dvidir=DIR            dvi documentation [DOCDIR]
1440  --pdfdir=DIR            pdf documentation [DOCDIR]
1441  --psdir=DIR             ps documentation [DOCDIR]
1442_ACEOF
1443
1444  cat <<\_ACEOF
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449  case $ac_init_help in
1450     short | recursive ) echo "Configuration of GECODE 6.3.0:";;
1451   esac
1452  cat <<\_ACEOF
1453
1454Optional Features:
1455  --disable-option-checking  ignore unrecognized --enable/--with options
1456  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458  --enable-resource       build Gecode with resource files for Microsoft
1459                          Visual Studio [default=no]
1460  --enable-framework      build framework bundle on Mac OS X [default=no]
1461  --enable-static         build static libraries [default=no]
1462  --enable-shared         build shared libraries [default=yes]
1463  --enable-debug          build with assertions [default=no]
1464  --enable-peakheap       build with peak heap size tracking [default=no]
1465  --enable-small-codesize optimize for code size [default=no]
1466  --enable-leak-debug     build with support for finding memory leaks
1467                          [default=no]
1468  --enable-allocator      build with default memory allocator [default=yes]
1469  --enable-audit          build with auditing code [default=no]
1470  --enable-profile        build with profiling information [default=no]
1471  --enable-gcov           build with gcov support [default=no]
1472  --enable-thread         build with multi-threading support [default=yes]
1473  --enable-gcc-visibility use gcc visibility attributes [default=yes]
1474  --enable-doc-dot        enable graphs in documentation [default=yes]
1475  --enable-doc-search     enable documentation search engine [default=no]
1476  --enable-doc-tagfile    generate doxygen tagfile [default=yes]
1477  --enable-doc-chm        build compressed html documentation [default=yes on
1478                          Windows]
1479  --enable-doc-docset     build docset documentation for XCode [default=no]
1480  --enable-float-vars     build float variable library (implies
1481                          --enable-int-vars) [default=yes]
1482  --enable-set-vars       build finite set library (implies --enable-int-vars)
1483                          [default=yes]
1484  --enable-int-vars       build finite domain library [default=yes]
1485  --enable-mpfr           build with MPFR support [default=yes]
1486  --enable-qt             build with Qt support, requires at least Qt 4.3
1487                          [default=yes]
1488  --enable-gist           build Gecode Interactive Search Tool [default=yes]
1489  --enable-cbs            build with support for counting-based search
1490                          [default=no]
1491  --enable-cpprofiler     build with support for CPProfiler [default=yes]
1492  --enable-driver         build script commandline driver library
1493                          [default=yes]
1494  --enable-flatzinc       build FlatZinc interpreter [default=yes]
1495  --enable-examples       build examples for the enabled variable types
1496                          [default=yes]
1497  --enable-minimodel      build modeling support library for the enabled
1498                          variable types [default=yes]
1499  --enable-search         build search engines [default=yes]
1500
1501Optional Packages:
1502  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1503  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1504  --with-host-os          Override operating system test. Valid values are
1505                          Linux, Darwin, FreeBSD, NetBSD, and Windows.
1506  --with-compiler-vendor  Override compiler test. Valid values are gnu, intel,
1507                          and microsoft.
1508  --with-sdk              SDK to use on Mac OS X
1509  --with-macosx-version-min
1510                          minimum version of Mac OS X to support
1511  --with-architectures    architectures to compile for on Mac OS X
1512  --with-lib-prefix       add user-defined prefix to library names
1513  --with-lib-suffix       add user-defined suffix to library names
1514  --with-freelist32-size-max
1515                          max size of freelist on 32 bit platforms
1516  --with-freelist64-size-max
1517                          max size of freelist on 64 bit platforms
1518  --with-vis              additional variable implementation specifications
1519  --with-gmp-include      path to the gmp or mpir header files
1520  --with-gmp-lib          path to the gmp or mpir library
1521  --with-mpfr-include     path to the mpfr header file
1522  --with-mpfr-lib         path to the mpfr library
1523
1524Some influential environment variables:
1525  CXX         C++ compiler command
1526  CXXFLAGS    C++ compiler flags
1527  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528              nonstandard directory <lib dir>
1529  LIBS        libraries to pass to the linker, e.g. -l<library>
1530  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  CC          C compiler command
1533  CFLAGS      C compiler flags
1534  CXXCPP      C++ preprocessor
1535
1536Use these variables to override the choices made by `configure' or to help
1537it to find libraries and programs with nonstandard names/locations.
1538
1539Report bugs to <users@gecode.org>.
1540_ACEOF
1541ac_status=$?
1542fi
1543
1544if test "$ac_init_help" = "recursive"; then
1545  # If there are subdirs, report their specific --help.
1546  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547    test -d "$ac_dir" ||
1548      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549      continue
1550    ac_builddir=.
1551
1552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
1555  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556  # A ".." for each directory in $ac_dir_suffix.
1557  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558  case $ac_top_builddir_sub in
1559  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561  esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
1567
1568case $srcdir in
1569  .)  # We are building in place.
1570    ac_srcdir=.
1571    ac_top_srcdir=$ac_top_builddir_sub
1572    ac_abs_top_srcdir=$ac_pwd ;;
1573  [\\/]* | ?:[\\/]* )  # Absolute name.
1574    ac_srcdir=$srcdir$ac_dir_suffix;
1575    ac_top_srcdir=$srcdir
1576    ac_abs_top_srcdir=$srcdir ;;
1577  *) # Relative name.
1578    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579    ac_top_srcdir=$ac_top_build_prefix$srcdir
1580    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581esac
1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584    cd "$ac_dir" || { ac_status=$?; continue; }
1585    # Check for guested configure.
1586    if test -f "$ac_srcdir/configure.gnu"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589    elif test -f "$ac_srcdir/configure"; then
1590      echo &&
1591      $SHELL "$ac_srcdir/configure" --help=recursive
1592    else
1593      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594    fi || ac_status=$?
1595    cd "$ac_pwd" || { ac_status=$?; break; }
1596  done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601  cat <<\_ACEOF
1602GECODE configure 6.3.0
1603generated by GNU Autoconf 2.69
1604
1605Copyright (C) 2012 Free Software Foundation, Inc.
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
1609  exit
1610fi
1611
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
1615
1616# ac_fn_cxx_try_compile LINENO
1617# ----------------------------
1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_cxx_try_compile ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  rm -f conftest.$ac_objext
1623  if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630  (eval "$ac_compile") 2>conftest.err
1631  ac_status=$?
1632  if test -s conftest.err; then
1633    grep -v '^ *+' conftest.err >conftest.er1
1634    cat conftest.er1 >&5
1635    mv -f conftest.er1 conftest.err
1636  fi
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && {
1639	 test -z "$ac_cxx_werror_flag" ||
1640	 test ! -s conftest.err
1641       } && test -s conftest.$ac_objext; then :
1642  ac_retval=0
1643else
1644  $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647	ac_retval=1
1648fi
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_cxx_try_compile
1653
1654# ac_fn_c_try_compile LINENO
1655# --------------------------
1656# Try to compile conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_compile ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  rm -f conftest.$ac_objext
1661  if { { ac_try="$ac_compile"
1662case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_compile") 2>conftest.err
1669  ac_status=$?
1670  if test -s conftest.err; then
1671    grep -v '^ *+' conftest.err >conftest.er1
1672    cat conftest.er1 >&5
1673    mv -f conftest.er1 conftest.err
1674  fi
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; } && {
1677	 test -z "$ac_c_werror_flag" ||
1678	 test ! -s conftest.err
1679       } && test -s conftest.$ac_objext; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685	ac_retval=1
1686fi
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_compile
1691
1692# ac_fn_cxx_try_cpp LINENO
1693# ------------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_cxx_try_cpp ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706  ac_status=$?
1707  if test -s conftest.err; then
1708    grep -v '^ *+' conftest.err >conftest.er1
1709    cat conftest.er1 >&5
1710    mv -f conftest.er1 conftest.err
1711  fi
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } > conftest.i && {
1714	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1715	 test ! -s conftest.err
1716       }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722    ac_retval=1
1723fi
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_cxx_try_cpp
1728
1729# ac_fn_cxx_try_link LINENO
1730# -------------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_cxx_try_link ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  rm -f conftest.$ac_objext conftest$ac_exeext
1736  if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_link") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && {
1752	 test -z "$ac_cxx_werror_flag" ||
1753	 test ! -s conftest.err
1754       } && test -s conftest$ac_exeext && {
1755	 test "$cross_compiling" = yes ||
1756	 test -x conftest$ac_exeext
1757       }; then :
1758  ac_retval=0
1759else
1760  $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763	ac_retval=1
1764fi
1765  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767  # interfere with the next link command; also delete a directory that is
1768  # left behind by Apple's compiler.  We do this before executing the actions.
1769  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771  as_fn_set_status $ac_retval
1772
1773} # ac_fn_cxx_try_link
1774
1775# ac_fn_cxx_check_func LINENO FUNC VAR
1776# ------------------------------------
1777# Tests whether FUNC exists, setting the cache variable VAR accordingly
1778ac_fn_cxx_check_func ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if eval \${$3+:} false; then :
1784  $as_echo_n "(cached) " >&6
1785else
1786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1790#define $2 innocuous_$2
1791
1792/* System header to define __stub macros and hopefully few prototypes,
1793    which can conflict with char $2 (); below.
1794    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795    <limits.h> exists even on freestanding compilers.  */
1796
1797#ifdef __STDC__
1798# include <limits.h>
1799#else
1800# include <assert.h>
1801#endif
1802
1803#undef $2
1804
1805/* Override any GCC internal prototype to avoid an error.
1806   Use char because int might match the return type of a GCC
1807   builtin and then its argument prototype would still apply.  */
1808#ifdef __cplusplus
1809extern "C"
1810#endif
1811char $2 ();
1812/* The GNU C library defines this for functions which it implements
1813    to always fail with ENOSYS.  Some functions are actually named
1814    something starting with __ and the normal name is an alias.  */
1815#if defined __stub_$2 || defined __stub___$2
1816choke me
1817#endif
1818
1819int
1820main ()
1821{
1822return $2 ();
1823  ;
1824  return 0;
1825}
1826_ACEOF
1827if ac_fn_cxx_try_link "$LINENO"; then :
1828  eval "$3=yes"
1829else
1830  eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext \
1833    conftest$ac_exeext conftest.$ac_ext
1834fi
1835eval ac_res=\$$3
1836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840} # ac_fn_cxx_check_func
1841
1842# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1843# ---------------------------------------------------------
1844# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845# the include files in INCLUDES and setting the cache variable VAR
1846# accordingly.
1847ac_fn_cxx_check_header_mongrel ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  if eval \${$3+:} false; then :
1851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859else
1860  # Is the header compilable?
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862$as_echo_n "checking $2 usability... " >&6; }
1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_cxx_try_compile "$LINENO"; then :
1869  ac_header_compiler=yes
1870else
1871  ac_header_compiler=no
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875$as_echo "$ac_header_compiler" >&6; }
1876
1877# Is the header present?
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879$as_echo_n "checking $2 presence... " >&6; }
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882#include <$2>
1883_ACEOF
1884if ac_fn_cxx_try_cpp "$LINENO"; then :
1885  ac_header_preproc=yes
1886else
1887  ac_header_preproc=no
1888fi
1889rm -f conftest.err conftest.i conftest.$ac_ext
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891$as_echo "$ac_header_preproc" >&6; }
1892
1893# So?  What about this header?
1894case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1895  yes:no: )
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900    ;;
1901  no:yes:* )
1902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1905$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1909$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912( $as_echo "## ------------------------------- ##
1913## Report this to users@gecode.org ##
1914## ------------------------------- ##"
1915     ) | sed "s/^/$as_me: WARNING:     /" >&2
1916    ;;
1917esac
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  eval "$3=\$ac_header_compiler"
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928fi
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_cxx_check_header_mongrel
1932
1933# ac_fn_cxx_try_run LINENO
1934# ------------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936# that executables *can* be run.
1937ac_fn_cxx_try_run ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_link") 2>&5
1948  ac_status=$?
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951  { { case "(($ac_try" in
1952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953  *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957  (eval "$ac_try") 2>&5
1958  ac_status=$?
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; }; }; then :
1961  ac_retval=0
1962else
1963  $as_echo "$as_me: program exited with status $ac_status" >&5
1964       $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967       ac_retval=$ac_status
1968fi
1969  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971  as_fn_set_status $ac_retval
1972
1973} # ac_fn_cxx_try_run
1974
1975# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1976# ---------------------------------------------------------
1977# Tests whether HEADER exists and can be compiled using the include files in
1978# INCLUDES, setting the cache variable VAR accordingly.
1979ac_fn_cxx_check_header_compile ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_cxx_try_compile "$LINENO"; then :
1993  eval "$3=yes"
1994else
1995  eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_cxx_check_header_compile
2005
2006# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2007# -----------------------------------------------
2008# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2009# accordingly.
2010ac_fn_cxx_check_decl ()
2011{
2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013  as_decl_name=`echo $2|sed 's/ *(.*//'`
2014  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2016$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2017if eval \${$3+:} false; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023int
2024main ()
2025{
2026#ifndef $as_decl_name
2027#ifdef __cplusplus
2028  (void) $as_decl_use;
2029#else
2030  (void) $as_decl_name;
2031#endif
2032#endif
2033
2034  ;
2035  return 0;
2036}
2037_ACEOF
2038if ac_fn_cxx_try_compile "$LINENO"; then :
2039  eval "$3=yes"
2040else
2041  eval "$3=no"
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$3
2046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_cxx_check_decl
2051
2052# ac_fn_c_try_run LINENO
2053# ----------------------
2054# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2055# that executables *can* be run.
2056ac_fn_c_try_run ()
2057{
2058  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059  if { { ac_try="$ac_link"
2060case "(($ac_try" in
2061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062  *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066  (eval "$ac_link") 2>&5
2067  ac_status=$?
2068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2070  { { case "(($ac_try" in
2071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072  *) ac_try_echo=$ac_try;;
2073esac
2074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075$as_echo "$ac_try_echo"; } >&5
2076  (eval "$ac_try") 2>&5
2077  ac_status=$?
2078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079  test $ac_status = 0; }; }; then :
2080  ac_retval=0
2081else
2082  $as_echo "$as_me: program exited with status $ac_status" >&5
2083       $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086       ac_retval=$ac_status
2087fi
2088  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090  as_fn_set_status $ac_retval
2091
2092} # ac_fn_c_try_run
2093
2094# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095# --------------------------------------------
2096# Tries to find the compile-time value of EXPR in a program that includes
2097# INCLUDES, setting VAR accordingly. Returns whether the value could be
2098# computed
2099ac_fn_c_compute_int ()
2100{
2101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102  if test "$cross_compiling" = yes; then
2103    # Depending upon the size, compute the lo and hi bounds.
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$4
2107int
2108main ()
2109{
2110static int test_array [1 - 2 * !(($2) >= 0)];
2111test_array [0] = 0;
2112return test_array [0];
2113
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119  ac_lo=0 ac_mid=0
2120  while :; do
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128test_array [0] = 0;
2129return test_array [0];
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136  ac_hi=$ac_mid; break
2137else
2138  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2139			if test $ac_lo -le $ac_mid; then
2140			  ac_lo= ac_hi=
2141			  break
2142			fi
2143			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146  done
2147else
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) < 0)];
2155test_array [0] = 0;
2156return test_array [0];
2157
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163  ac_hi=-1 ac_mid=-1
2164  while :; do
2165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172test_array [0] = 0;
2173return test_array [0];
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  ac_lo=$ac_mid; break
2181else
2182  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183			if test $ac_mid -le $ac_hi; then
2184			  ac_lo= ac_hi=
2185			  break
2186			fi
2187			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190  done
2191else
2192  ac_lo= ac_hi=
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197# Binary search between lo and hi bounds.
2198while test "x$ac_lo" != "x$ac_hi"; do
2199  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h.  */
2202$4
2203int
2204main ()
2205{
2206static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207test_array [0] = 0;
2208return test_array [0];
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215  ac_hi=$ac_mid
2216else
2217  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220done
2221case $ac_lo in #((
2222?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223'') ac_retval=1 ;;
2224esac
2225  else
2226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229static long int longval () { return $2; }
2230static unsigned long int ulongval () { return $2; }
2231#include <stdio.h>
2232#include <stdlib.h>
2233int
2234main ()
2235{
2236
2237  FILE *f = fopen ("conftest.val", "w");
2238  if (! f)
2239    return 1;
2240  if (($2) < 0)
2241    {
2242      long int i = longval ();
2243      if (i != ($2))
2244	return 1;
2245      fprintf (f, "%ld", i);
2246    }
2247  else
2248    {
2249      unsigned long int i = ulongval ();
2250      if (i != ($2))
2251	return 1;
2252      fprintf (f, "%lu", i);
2253    }
2254  /* Do not output a trailing newline, as this causes \r\n confusion
2255     on some platforms.  */
2256  return ferror (f) || fclose (f) != 0;
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_run "$LINENO"; then :
2263  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264else
2265  ac_retval=1
2266fi
2267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268  conftest.$ac_objext conftest.beam conftest.$ac_ext
2269rm -f conftest.val
2270
2271  fi
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273  as_fn_set_status $ac_retval
2274
2275} # ac_fn_c_compute_int
2276cat >config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by GECODE $as_me 6.3.0, which was
2281generated by GNU Autoconf 2.69.  Invocation command line was
2282
2283  $ $0 $@
2284
2285_ACEOF
2286exec 5>>config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317    $as_echo "PATH: $as_dir"
2318  done
2319IFS=$as_save_IFS
2320
2321} >&5
2322
2323cat >&5 <<_ACEOF
2324
2325
2326## ----------- ##
2327## Core tests. ##
2328## ----------- ##
2329
2330_ACEOF
2331
2332
2333# Keep a trace of the command line.
2334# Strip out --no-create and --no-recursion so they do not pile up.
2335# Strip out --silent because we don't want to record it for future runs.
2336# Also quote any args containing shell meta-characters.
2337# Make two passes to allow for proper duplicate-argument suppression.
2338ac_configure_args=
2339ac_configure_args0=
2340ac_configure_args1=
2341ac_must_keep_next=false
2342for ac_pass in 1 2
2343do
2344  for ac_arg
2345  do
2346    case $ac_arg in
2347    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349    | -silent | --silent | --silen | --sile | --sil)
2350      continue ;;
2351    *\'*)
2352      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353    esac
2354    case $ac_pass in
2355    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356    2)
2357      as_fn_append ac_configure_args1 " '$ac_arg'"
2358      if test $ac_must_keep_next = true; then
2359	ac_must_keep_next=false # Got value, back to normal.
2360      else
2361	case $ac_arg in
2362	  *=* | --config-cache | -C | -disable-* | --disable-* \
2363	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365	  | -with-* | --with-* | -without-* | --without-* | --x)
2366	    case "$ac_configure_args0 " in
2367	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368	    esac
2369	    ;;
2370	  -* ) ac_must_keep_next=true ;;
2371	esac
2372      fi
2373      as_fn_append ac_configure_args " '$ac_arg'"
2374      ;;
2375    esac
2376  done
2377done
2378{ ac_configure_args0=; unset ac_configure_args0;}
2379{ ac_configure_args1=; unset ac_configure_args1;}
2380
2381# When interrupted or exit'd, cleanup temporary files, and complete
2382# config.log.  We remove comments because anyway the quotes in there
2383# would cause problems or look ugly.
2384# WARNING: Use '\'' to represent an apostrophe within the trap.
2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386trap 'exit_status=$?
2387  # Save into config.log some information that might help in debugging.
2388  {
2389    echo
2390
2391    $as_echo "## ---------------- ##
2392## Cache variables. ##
2393## ---------------- ##"
2394    echo
2395    # The following way of writing the cache mishandles newlines in values,
2396(
2397  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398    eval ac_val=\$$ac_var
2399    case $ac_val in #(
2400    *${as_nl}*)
2401      case $ac_var in #(
2402      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404      esac
2405      case $ac_var in #(
2406      _ | IFS | as_nl) ;; #(
2407      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408      *) { eval $ac_var=; unset $ac_var;} ;;
2409      esac ;;
2410    esac
2411  done
2412  (set) 2>&1 |
2413    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414    *${as_nl}ac_space=\ *)
2415      sed -n \
2416	"s/'\''/'\''\\\\'\'''\''/g;
2417	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418      ;; #(
2419    *)
2420      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421      ;;
2422    esac |
2423    sort
2424)
2425    echo
2426
2427    $as_echo "## ----------------- ##
2428## Output variables. ##
2429## ----------------- ##"
2430    echo
2431    for ac_var in $ac_subst_vars
2432    do
2433      eval ac_val=\$$ac_var
2434      case $ac_val in
2435      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436      esac
2437      $as_echo "$ac_var='\''$ac_val'\''"
2438    done | sort
2439    echo
2440
2441    if test -n "$ac_subst_files"; then
2442      $as_echo "## ------------------- ##
2443## File substitutions. ##
2444## ------------------- ##"
2445      echo
2446      for ac_var in $ac_subst_files
2447      do
2448	eval ac_val=\$$ac_var
2449	case $ac_val in
2450	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451	esac
2452	$as_echo "$ac_var='\''$ac_val'\''"
2453      done | sort
2454      echo
2455    fi
2456
2457    if test -s confdefs.h; then
2458      $as_echo "## ----------- ##
2459## confdefs.h. ##
2460## ----------- ##"
2461      echo
2462      cat confdefs.h
2463      echo
2464    fi
2465    test "$ac_signal" != 0 &&
2466      $as_echo "$as_me: caught signal $ac_signal"
2467    $as_echo "$as_me: exit $exit_status"
2468  } >&5
2469  rm -f core *.core core.conftest.* &&
2470    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471    exit $exit_status
2472' 0
2473for ac_signal in 1 2 13 15; do
2474  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2475done
2476ac_signal=0
2477
2478# confdefs.h avoids OS command line length limits that DEFS can exceed.
2479rm -f -r conftest* confdefs.h
2480
2481$as_echo "/* confdefs.h */" > confdefs.h
2482
2483# Predefined preprocessor variables.
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_NAME "$PACKAGE_NAME"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_VERSION "$PACKAGE_VERSION"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_STRING "$PACKAGE_STRING"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_URL "$PACKAGE_URL"
2507_ACEOF
2508
2509
2510# Let the site file select an alternate cache file if it wants to.
2511# Prefer an explicitly selected file to automatically selected ones.
2512ac_site_file1=NONE
2513ac_site_file2=NONE
2514if test -n "$CONFIG_SITE"; then
2515  # We do not want a PATH search for config.site.
2516  case $CONFIG_SITE in #((
2517    -*)  ac_site_file1=./$CONFIG_SITE;;
2518    */*) ac_site_file1=$CONFIG_SITE;;
2519    *)   ac_site_file1=./$CONFIG_SITE;;
2520  esac
2521elif test "x$prefix" != xNONE; then
2522  ac_site_file1=$prefix/share/config.site
2523  ac_site_file2=$prefix/etc/config.site
2524else
2525  ac_site_file1=$ac_default_prefix/share/config.site
2526  ac_site_file2=$ac_default_prefix/etc/config.site
2527fi
2528for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529do
2530  test "x$ac_site_file" = xNONE && continue
2531  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2532    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534    sed 's/^/| /' "$ac_site_file" >&5
2535    . "$ac_site_file" \
2536      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538as_fn_error $? "failed to load site script $ac_site_file
2539See \`config.log' for more details" "$LINENO" 5; }
2540  fi
2541done
2542
2543if test -r "$cache_file"; then
2544  # Some versions of bash will fail to source /dev/null (special files
2545  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2546  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548$as_echo "$as_me: loading cache $cache_file" >&6;}
2549    case $cache_file in
2550      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551      *)                      . "./$cache_file";;
2552    esac
2553  fi
2554else
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556$as_echo "$as_me: creating cache $cache_file" >&6;}
2557  >$cache_file
2558fi
2559
2560as_fn_append ac_header_list " stdlib.h"
2561as_fn_append ac_header_list " unistd.h"
2562as_fn_append ac_header_list " sys/param.h"
2563# Check that the precious variables saved in the cache have kept the same
2564# value.
2565ac_cache_corrupted=false
2566for ac_var in $ac_precious_vars; do
2567  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568  eval ac_new_set=\$ac_env_${ac_var}_set
2569  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570  eval ac_new_val=\$ac_env_${ac_var}_value
2571  case $ac_old_set,$ac_new_set in
2572    set,)
2573      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575      ac_cache_corrupted=: ;;
2576    ,set)
2577      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2579      ac_cache_corrupted=: ;;
2580    ,);;
2581    *)
2582      if test "x$ac_old_val" != "x$ac_new_val"; then
2583	# differences in whitespace do not lead to failure.
2584	ac_old_val_w=`echo x $ac_old_val`
2585	ac_new_val_w=`echo x $ac_new_val`
2586	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2589	  ac_cache_corrupted=:
2590	else
2591	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593	  eval $ac_var=\$ac_old_val
2594	fi
2595	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2596$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2597	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2598$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2599      fi;;
2600  esac
2601  # Pass precious variables to config.status.
2602  if test "$ac_new_set" = set; then
2603    case $ac_new_val in
2604    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605    *) ac_arg=$ac_var=$ac_new_val ;;
2606    esac
2607    case " $ac_configure_args " in
2608      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2609      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610    esac
2611  fi
2612done
2613if $ac_cache_corrupted; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2619fi
2620## -------------------- ##
2621## Main body of script. ##
2622## -------------------- ##
2623
2624ac_ext=c
2625ac_cpp='$CPP $CPPFLAGS'
2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
2630
2631ac_config_headers="$ac_config_headers gecode/support/config.hpp"
2632
2633
2634
2635ac_gecode_soversion=51
2636GECODE_SOVERSION=${ac_gecode_soversion}
2637
2638ac_gecode_flatzincversion=1.6
2639GECODE_FLATZINC_VERSION=${ac_gecode_flatzincversion}
2640
2641
2642# checks for programs
2643
2644: ${CXXFLAGS=""} : ${CFLAGS=""}   : ${DLLFLAGS=""}   : ${GLDFLAGS=""}
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706# Test for platform specific behaviour of arithmetic
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768# Check whether --with-host-os was given.
2769if test "${with_host_os+set}" = set; then :
2770  withval=$with_host_os;
2771fi
2772
2773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the host operating system" >&5
2774$as_echo_n "checking for the host operating system... " >&6; }
2775         if test "${with_host_os:-no}" = "no"; then
2776       guess_host_os=$(uname -s 2>/dev/null)
2777     else
2778       guess_host_os=${with_host_os}
2779        fi
2780          case ${guess_host_os} in
2781       GNU/kFreeBSD|*inux*|FreeBSD|NetBSD|DragonFly)
2782       host_os=linux
2783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
2784$as_echo "Linux" >&6; }
2785       ;;
2786       *arwin*)
2787       host_os=darwin
2788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
2789$as_echo "Darwin" >&6; }
2790       ;;
2791       CYGWIN*|*indows*)
2792       host_os=windows
2793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
2794$as_echo "Windows" >&6; }
2795       ;;
2796       *)
2797       as_fn_error $? "Host OS not supported." "$LINENO" 5
2798       ;;
2799     esac
2800
2801if test "${CXX}x" = "x" -a "${CC}x" = "x" -a "${host_os}" = "windows"; then
2802  CC=cl
2803  CXX=cl
2804fi
2805
2806ac_ext=cpp
2807ac_cpp='$CXXCPP $CPPFLAGS'
2808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2811if test -z "$CXX"; then
2812  if test -n "$CCC"; then
2813    CXX=$CCC
2814  else
2815    if test -n "$ac_tool_prefix"; then
2816  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2817  do
2818    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_CXX+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$CXX"; then
2826  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845CXX=$ac_cv_prog_CXX
2846if test -n "$CXX"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2848$as_echo "$CXX" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855    test -n "$CXX" && break
2856  done
2857fi
2858if test -z "$CXX"; then
2859  ac_ct_CXX=$CXX
2860  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2861do
2862  # Extract the first word of "$ac_prog", so it can be a program name with args.
2863set dummy $ac_prog; ac_word=$2
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865$as_echo_n "checking for $ac_word... " >&6; }
2866if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2867  $as_echo_n "(cached) " >&6
2868else
2869  if test -n "$ac_ct_CXX"; then
2870  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875  IFS=$as_save_IFS
2876  test -z "$as_dir" && as_dir=.
2877    for ac_exec_ext in '' $ac_executable_extensions; do
2878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879    ac_cv_prog_ac_ct_CXX="$ac_prog"
2880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881    break 2
2882  fi
2883done
2884  done
2885IFS=$as_save_IFS
2886
2887fi
2888fi
2889ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2890if test -n "$ac_ct_CXX"; then
2891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2892$as_echo "$ac_ct_CXX" >&6; }
2893else
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895$as_echo "no" >&6; }
2896fi
2897
2898
2899  test -n "$ac_ct_CXX" && break
2900done
2901
2902  if test "x$ac_ct_CXX" = x; then
2903    CXX="g++"
2904  else
2905    case $cross_compiling:$ac_tool_warned in
2906yes:)
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909ac_tool_warned=yes ;;
2910esac
2911    CXX=$ac_ct_CXX
2912  fi
2913fi
2914
2915  fi
2916fi
2917# Provide some information about the compiler.
2918$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2919set X $ac_compile
2920ac_compiler=$2
2921for ac_option in --version -v -V -qversion; do
2922  { { ac_try="$ac_compiler $ac_option >&5"
2923case "(($ac_try" in
2924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925  *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
2929  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2930  ac_status=$?
2931  if test -s conftest.err; then
2932    sed '10a\
2933... rest of stderr output deleted ...
2934         10q' conftest.err >conftest.er1
2935    cat conftest.er1 >&5
2936  fi
2937  rm -f conftest.er1 conftest.err
2938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939  test $ac_status = 0; }
2940done
2941
2942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953ac_clean_files_save=$ac_clean_files
2954ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2955# Try to create an executable without -o first, disregard a.out.
2956# It will help us diagnose broken compilers, and finding out an intuition
2957# of exeext.
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2959$as_echo_n "checking whether the C++ compiler works... " >&6; }
2960ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961
2962# The possible output files:
2963ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2964
2965ac_rmfiles=
2966for ac_file in $ac_files
2967do
2968  case $ac_file in
2969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2970    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971  esac
2972done
2973rm -f $ac_rmfiles
2974
2975if { { ac_try="$ac_link_default"
2976case "(($ac_try" in
2977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978  *) ac_try_echo=$ac_try;;
2979esac
2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981$as_echo "$ac_try_echo"; } >&5
2982  (eval "$ac_link_default") 2>&5
2983  ac_status=$?
2984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985  test $ac_status = 0; }; then :
2986  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2989# so that the user can short-circuit this test for compilers unknown to
2990# Autoconf.
2991for ac_file in $ac_files ''
2992do
2993  test -f "$ac_file" || continue
2994  case $ac_file in
2995    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2996	;;
2997    [ab].out )
2998	# We found the default executable, but exeext='' is most
2999	# certainly right.
3000	break;;
3001    *.* )
3002	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003	then :; else
3004	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005	fi
3006	# We set ac_cv_exeext here because the later test for it is not
3007	# safe: cross compilers may not add the suffix if given an `-o'
3008	# argument, so we may need to know it at that point already.
3009	# Even if this section looks crufty: it has the advantage of
3010	# actually working.
3011	break;;
3012    * )
3013	break;;
3014  esac
3015done
3016test "$ac_cv_exeext" = no && ac_cv_exeext=
3017
3018else
3019  ac_file=''
3020fi
3021if test -z "$ac_file"; then :
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024$as_echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029as_fn_error 77 "C++ compiler cannot create executables
3030See \`config.log' for more details" "$LINENO" 5; }
3031else
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033$as_echo "yes" >&6; }
3034fi
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3036$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3038$as_echo "$ac_file" >&6; }
3039ac_exeext=$ac_cv_exeext
3040
3041rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042ac_clean_files=$ac_clean_files_save
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3044$as_echo_n "checking for suffix of executables... " >&6; }
3045if { { ac_try="$ac_link"
3046case "(($ac_try" in
3047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048  *) ac_try_echo=$ac_try;;
3049esac
3050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051$as_echo "$ac_try_echo"; } >&5
3052  (eval "$ac_link") 2>&5
3053  ac_status=$?
3054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055  test $ac_status = 0; }; then :
3056  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3057# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3058# work properly (i.e., refer to `conftest.exe'), while it won't with
3059# `rm'.
3060for ac_file in conftest.exe conftest conftest.*; do
3061  test -f "$ac_file" || continue
3062  case $ac_file in
3063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065	  break;;
3066    * ) break;;
3067  esac
3068done
3069else
3070  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3073See \`config.log' for more details" "$LINENO" 5; }
3074fi
3075rm -f conftest conftest$ac_cv_exeext
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3077$as_echo "$ac_cv_exeext" >&6; }
3078
3079rm -f conftest.$ac_ext
3080EXEEXT=$ac_cv_exeext
3081ac_exeext=$EXEEXT
3082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h.  */
3084#include <stdio.h>
3085int
3086main ()
3087{
3088FILE *f = fopen ("conftest.out", "w");
3089 return ferror (f) || fclose (f) != 0;
3090
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095ac_clean_files="$ac_clean_files conftest.out"
3096# Check that the compiler produces executables we can run.  If not, either
3097# the compiler is broken, or we cross compile.
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3099$as_echo_n "checking whether we are cross compiling... " >&6; }
3100if test "$cross_compiling" != yes; then
3101  { { ac_try="$ac_link"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_link") 2>&5
3109  ac_status=$?
3110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111  test $ac_status = 0; }
3112  if { ac_try='./conftest$ac_cv_exeext'
3113  { { case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119  (eval "$ac_try") 2>&5
3120  ac_status=$?
3121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122  test $ac_status = 0; }; }; then
3123    cross_compiling=no
3124  else
3125    if test "$cross_compiling" = maybe; then
3126	cross_compiling=yes
3127    else
3128	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130as_fn_error $? "cannot run C++ compiled programs.
3131If you meant to cross compile, use \`--host'.
3132See \`config.log' for more details" "$LINENO" 5; }
3133    fi
3134  fi
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3137$as_echo "$cross_compiling" >&6; }
3138
3139rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3140ac_clean_files=$ac_clean_files_save
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3142$as_echo_n "checking for suffix of object files... " >&6; }
3143if ${ac_cv_objext+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h.  */
3148
3149int
3150main ()
3151{
3152
3153  ;
3154  return 0;
3155}
3156_ACEOF
3157rm -f conftest.o conftest.obj
3158if { { ac_try="$ac_compile"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164$as_echo "$ac_try_echo"; } >&5
3165  (eval "$ac_compile") 2>&5
3166  ac_status=$?
3167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168  test $ac_status = 0; }; then :
3169  for ac_file in conftest.o conftest.obj conftest.*; do
3170  test -f "$ac_file" || continue;
3171  case $ac_file in
3172    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3173    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174       break;;
3175  esac
3176done
3177else
3178  $as_echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183as_fn_error $? "cannot compute suffix of object files: cannot compile
3184See \`config.log' for more details" "$LINENO" 5; }
3185fi
3186rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3189$as_echo "$ac_cv_objext" >&6; }
3190OBJEXT=$ac_cv_objext
3191ac_objext=$OBJEXT
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3193$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3194if ${ac_cv_cxx_compiler_gnu+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199
3200int
3201main ()
3202{
3203#ifndef __GNUC__
3204       choke me
3205#endif
3206
3207  ;
3208  return 0;
3209}
3210_ACEOF
3211if ac_fn_cxx_try_compile "$LINENO"; then :
3212  ac_compiler_gnu=yes
3213else
3214  ac_compiler_gnu=no
3215fi
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3218
3219fi
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3221$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3222if test $ac_compiler_gnu = yes; then
3223  GXX=yes
3224else
3225  GXX=
3226fi
3227ac_test_CXXFLAGS=${CXXFLAGS+set}
3228ac_save_CXXFLAGS=$CXXFLAGS
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3230$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3231if ${ac_cv_prog_cxx_g+:} false; then :
3232  $as_echo_n "(cached) " >&6
3233else
3234  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3235   ac_cxx_werror_flag=yes
3236   ac_cv_prog_cxx_g=no
3237   CXXFLAGS="-g"
3238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240
3241int
3242main ()
3243{
3244
3245  ;
3246  return 0;
3247}
3248_ACEOF
3249if ac_fn_cxx_try_compile "$LINENO"; then :
3250  ac_cv_prog_cxx_g=yes
3251else
3252  CXXFLAGS=""
3253      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255
3256int
3257main ()
3258{
3259
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264if ac_fn_cxx_try_compile "$LINENO"; then :
3265
3266else
3267  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3268	 CXXFLAGS="-g"
3269	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280if ac_fn_cxx_try_compile "$LINENO"; then :
3281  ac_cv_prog_cxx_g=yes
3282fi
3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284fi
3285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286fi
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3289fi
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3291$as_echo "$ac_cv_prog_cxx_g" >&6; }
3292if test "$ac_test_CXXFLAGS" = set; then
3293  CXXFLAGS=$ac_save_CXXFLAGS
3294elif test $ac_cv_prog_cxx_g = yes; then
3295  if test "$GXX" = yes; then
3296    CXXFLAGS="-g -O2"
3297  else
3298    CXXFLAGS="-g"
3299  fi
3300else
3301  if test "$GXX" = yes; then
3302    CXXFLAGS="-O2"
3303  else
3304    CXXFLAGS=
3305  fi
3306fi
3307ac_ext=c
3308ac_cpp='$CPP $CPPFLAGS'
3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318if test -n "$ac_tool_prefix"; then
3319  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3320set dummy ${ac_tool_prefix}gcc; ac_word=$2
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322$as_echo_n "checking for $ac_word... " >&6; }
3323if ${ac_cv_prog_CC+:} false; then :
3324  $as_echo_n "(cached) " >&6
3325else
3326  if test -n "$CC"; then
3327  ac_cv_prog_CC="$CC" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_exec_ext in '' $ac_executable_extensions; do
3335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341  done
3342IFS=$as_save_IFS
3343
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356fi
3357if test -z "$ac_cv_prog_CC"; then
3358  ac_ct_CC=$CC
3359  # Extract the first word of "gcc", so it can be a program name with args.
3360set dummy gcc; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if ${ac_cv_prog_ac_ct_CC+:} false; then :
3364  $as_echo_n "(cached) " >&6
3365else
3366  if test -n "$ac_ct_CC"; then
3367  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_ac_ct_CC="gcc"
3377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381  done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387if test -n "$ac_ct_CC"; then
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389$as_echo "$ac_ct_CC" >&6; }
3390else
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393fi
3394
3395  if test "x$ac_ct_CC" = x; then
3396    CC=""
3397  else
3398    case $cross_compiling:$ac_tool_warned in
3399yes:)
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402ac_tool_warned=yes ;;
3403esac
3404    CC=$ac_ct_CC
3405  fi
3406else
3407  CC="$ac_cv_prog_CC"
3408fi
3409
3410if test -z "$CC"; then
3411          if test -n "$ac_tool_prefix"; then
3412    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3413set dummy ${ac_tool_prefix}cc; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; }
3416if ${ac_cv_prog_CC+:} false; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  if test -n "$CC"; then
3420  ac_cv_prog_CC="$CC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425  IFS=$as_save_IFS
3426  test -z "$as_dir" && as_dir=.
3427    for ac_exec_ext in '' $ac_executable_extensions; do
3428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429    ac_cv_prog_CC="${ac_tool_prefix}cc"
3430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431    break 2
3432  fi
3433done
3434  done
3435IFS=$as_save_IFS
3436
3437fi
3438fi
3439CC=$ac_cv_prog_CC
3440if test -n "$CC"; then
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442$as_echo "$CC" >&6; }
3443else
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449  fi
3450fi
3451if test -z "$CC"; then
3452  # Extract the first word of "cc", so it can be a program name with args.
3453set dummy cc; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if ${ac_cv_prog_CC+:} false; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  if test -n "$CC"; then
3460  ac_cv_prog_CC="$CC" # Let the user override the test.
3461else
3462  ac_prog_rejected=no
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3471       ac_prog_rejected=yes
3472       continue
3473     fi
3474    ac_cv_prog_CC="cc"
3475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476    break 2
3477  fi
3478done
3479  done
3480IFS=$as_save_IFS
3481
3482if test $ac_prog_rejected = yes; then
3483  # We found a bogon in the path, so make sure we never use it.
3484  set dummy $ac_cv_prog_CC
3485  shift
3486  if test $# != 0; then
3487    # We chose a different compiler from the bogus one.
3488    # However, it has the same basename, so the bogon will be chosen
3489    # first if we set CC to just the basename; use the full file name.
3490    shift
3491    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3492  fi
3493fi
3494fi
3495fi
3496CC=$ac_cv_prog_CC
3497if test -n "$CC"; then
3498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499$as_echo "$CC" >&6; }
3500else
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505
3506fi
3507if test -z "$CC"; then
3508  if test -n "$ac_tool_prefix"; then
3509  for ac_prog in cl.exe
3510  do
3511    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514$as_echo_n "checking for $ac_word... " >&6; }
3515if ${ac_cv_prog_CC+:} false; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  if test -n "$CC"; then
3519  ac_cv_prog_CC="$CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524  IFS=$as_save_IFS
3525  test -z "$as_dir" && as_dir=.
3526    for ac_exec_ext in '' $ac_executable_extensions; do
3527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530    break 2
3531  fi
3532done
3533  done
3534IFS=$as_save_IFS
3535
3536fi
3537fi
3538CC=$ac_cv_prog_CC
3539if test -n "$CC"; then
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541$as_echo "$CC" >&6; }
3542else
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546
3547
3548    test -n "$CC" && break
3549  done
3550fi
3551if test -z "$CC"; then
3552  ac_ct_CC=$CC
3553  for ac_prog in cl.exe
3554do
3555  # Extract the first word of "$ac_prog", so it can be a program name with args.
3556set dummy $ac_prog; ac_word=$2
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558$as_echo_n "checking for $ac_word... " >&6; }
3559if ${ac_cv_prog_ac_ct_CC+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  if test -n "$ac_ct_CC"; then
3563  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568  IFS=$as_save_IFS
3569  test -z "$as_dir" && as_dir=.
3570    for ac_exec_ext in '' $ac_executable_extensions; do
3571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572    ac_cv_prog_ac_ct_CC="$ac_prog"
3573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574    break 2
3575  fi
3576done
3577  done
3578IFS=$as_save_IFS
3579
3580fi
3581fi
3582ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583if test -n "$ac_ct_CC"; then
3584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585$as_echo "$ac_ct_CC" >&6; }
3586else
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589fi
3590
3591
3592  test -n "$ac_ct_CC" && break
3593done
3594
3595  if test "x$ac_ct_CC" = x; then
3596    CC=""
3597  else
3598    case $cross_compiling:$ac_tool_warned in
3599yes:)
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3602ac_tool_warned=yes ;;
3603esac
3604    CC=$ac_ct_CC
3605  fi
3606fi
3607
3608fi
3609
3610
3611test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613as_fn_error $? "no acceptable C compiler found in \$PATH
3614See \`config.log' for more details" "$LINENO" 5; }
3615
3616# Provide some information about the compiler.
3617$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3618set X $ac_compile
3619ac_compiler=$2
3620for ac_option in --version -v -V -qversion; do
3621  { { ac_try="$ac_compiler $ac_option >&5"
3622case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
3628  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3629  ac_status=$?
3630  if test -s conftest.err; then
3631    sed '10a\
3632... rest of stderr output deleted ...
3633         10q' conftest.err >conftest.er1
3634    cat conftest.er1 >&5
3635  fi
3636  rm -f conftest.er1 conftest.err
3637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638  test $ac_status = 0; }
3639done
3640
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3642$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3643if ${ac_cv_c_compiler_gnu+:} false; then :
3644  $as_echo_n "(cached) " >&6
3645else
3646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652#ifndef __GNUC__
3653       choke me
3654#endif
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660if ac_fn_c_try_compile "$LINENO"; then :
3661  ac_compiler_gnu=yes
3662else
3663  ac_compiler_gnu=no
3664fi
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666ac_cv_c_compiler_gnu=$ac_compiler_gnu
3667
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3670$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671if test $ac_compiler_gnu = yes; then
3672  GCC=yes
3673else
3674  GCC=
3675fi
3676ac_test_CFLAGS=${CFLAGS+set}
3677ac_save_CFLAGS=$CFLAGS
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3679$as_echo_n "checking whether $CC accepts -g... " >&6; }
3680if ${ac_cv_prog_cc_g+:} false; then :
3681  $as_echo_n "(cached) " >&6
3682else
3683  ac_save_c_werror_flag=$ac_c_werror_flag
3684   ac_c_werror_flag=yes
3685   ac_cv_prog_cc_g=no
3686   CFLAGS="-g"
3687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698if ac_fn_c_try_compile "$LINENO"; then :
3699  ac_cv_prog_cc_g=yes
3700else
3701  CFLAGS=""
3702      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713if ac_fn_c_try_compile "$LINENO"; then :
3714
3715else
3716  ac_c_werror_flag=$ac_save_c_werror_flag
3717	 CFLAGS="-g"
3718	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719/* end confdefs.h.  */
3720
3721int
3722main ()
3723{
3724
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729if ac_fn_c_try_compile "$LINENO"; then :
3730  ac_cv_prog_cc_g=yes
3731fi
3732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733fi
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737   ac_c_werror_flag=$ac_save_c_werror_flag
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3740$as_echo "$ac_cv_prog_cc_g" >&6; }
3741if test "$ac_test_CFLAGS" = set; then
3742  CFLAGS=$ac_save_CFLAGS
3743elif test $ac_cv_prog_cc_g = yes; then
3744  if test "$GCC" = yes; then
3745    CFLAGS="-g -O2"
3746  else
3747    CFLAGS="-g"
3748  fi
3749else
3750  if test "$GCC" = yes; then
3751    CFLAGS="-O2"
3752  else
3753    CFLAGS=
3754  fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3757$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3758if ${ac_cv_prog_cc_c89+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  ac_cv_prog_cc_c89=no
3762ac_save_CC=$CC
3763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765#include <stdarg.h>
3766#include <stdio.h>
3767struct stat;
3768/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3769struct buf { int x; };
3770FILE * (*rcsopen) (struct buf *, struct stat *, int);
3771static char *e (p, i)
3772     char **p;
3773     int i;
3774{
3775  return p[i];
3776}
3777static char *f (char * (*g) (char **, int), char **p, ...)
3778{
3779  char *s;
3780  va_list v;
3781  va_start (v,p);
3782  s = g (p, va_arg (v,int));
3783  va_end (v);
3784  return s;
3785}
3786
3787/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3788   function prototypes and stuff, but not '\xHH' hex character constants.
3789   These don't provoke an error unfortunately, instead are silently treated
3790   as 'x'.  The following induces an error, until -std is added to get
3791   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3792   array size at least.  It's necessary to write '\x00'==0 to get something
3793   that's true only with -std.  */
3794int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3795
3796/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3797   inside strings and character constants.  */
3798#define FOO(x) 'x'
3799int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3800
3801int test (int i, double x);
3802struct s1 {int (*f) (int a);};
3803struct s2 {int (*f) (double a);};
3804int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3805int argc;
3806char **argv;
3807int
3808main ()
3809{
3810return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3811  ;
3812  return 0;
3813}
3814_ACEOF
3815for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3816	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3817do
3818  CC="$ac_save_CC $ac_arg"
3819  if ac_fn_c_try_compile "$LINENO"; then :
3820  ac_cv_prog_cc_c89=$ac_arg
3821fi
3822rm -f core conftest.err conftest.$ac_objext
3823  test "x$ac_cv_prog_cc_c89" != "xno" && break
3824done
3825rm -f conftest.$ac_ext
3826CC=$ac_save_CC
3827
3828fi
3829# AC_CACHE_VAL
3830case "x$ac_cv_prog_cc_c89" in
3831  x)
3832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3833$as_echo "none needed" >&6; } ;;
3834  xno)
3835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836$as_echo "unsupported" >&6; } ;;
3837  *)
3838    CC="$CC $ac_cv_prog_cc_c89"
3839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3840$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3841esac
3842if test "x$ac_cv_prog_cc_c89" != xno; then :
3843
3844fi
3845
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852ac_ext=cpp
3853ac_cpp='$CXXCPP $CPPFLAGS'
3854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3857
3858
3859if test -n "$ac_tool_prefix"; then
3860  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
3864if ${ac_cv_prog_RANLIB+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  if test -n "$RANLIB"; then
3868  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873  IFS=$as_save_IFS
3874  test -z "$as_dir" && as_dir=.
3875    for ac_exec_ext in '' $ac_executable_extensions; do
3876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879    break 2
3880  fi
3881done
3882  done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887RANLIB=$ac_cv_prog_RANLIB
3888if test -n "$RANLIB"; then
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3890$as_echo "$RANLIB" >&6; }
3891else
3892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$ac_cv_prog_RANLIB"; then
3899  ac_ct_RANLIB=$RANLIB
3900  # Extract the first word of "ranlib", so it can be a program name with args.
3901set dummy ranlib; ac_word=$2
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903$as_echo_n "checking for $ac_word... " >&6; }
3904if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  if test -n "$ac_ct_RANLIB"; then
3908  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    for ac_exec_ext in '' $ac_executable_extensions; do
3916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917    ac_cv_prog_ac_ct_RANLIB="ranlib"
3918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919    break 2
3920  fi
3921done
3922  done
3923IFS=$as_save_IFS
3924
3925fi
3926fi
3927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3928if test -n "$ac_ct_RANLIB"; then
3929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3930$as_echo "$ac_ct_RANLIB" >&6; }
3931else
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936  if test "x$ac_ct_RANLIB" = x; then
3937    RANLIB=":"
3938  else
3939    case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945    RANLIB=$ac_ct_RANLIB
3946  fi
3947else
3948  RANLIB="$ac_cv_prog_RANLIB"
3949fi
3950
3951
3952# Extract the first word of "diff", so it can be a program name with args.
3953set dummy diff; ac_word=$2
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955$as_echo_n "checking for $ac_word... " >&6; }
3956if ${ac_cv_prog_PROG_DIFF+:} false; then :
3957  $as_echo_n "(cached) " >&6
3958else
3959  if test -n "$PROG_DIFF"; then
3960  ac_cv_prog_PROG_DIFF="$PROG_DIFF" # Let the user override the test.
3961else
3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH
3964do
3965  IFS=$as_save_IFS
3966  test -z "$as_dir" && as_dir=.
3967    for ac_exec_ext in '' $ac_executable_extensions; do
3968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969    ac_cv_prog_PROG_DIFF="ok"
3970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971    break 2
3972  fi
3973done
3974  done
3975IFS=$as_save_IFS
3976
3977fi
3978fi
3979PROG_DIFF=$ac_cv_prog_PROG_DIFF
3980if test -n "$PROG_DIFF"; then
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DIFF" >&5
3982$as_echo "$PROG_DIFF" >&6; }
3983else
3984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985$as_echo "no" >&6; }
3986fi
3987
3988
3989 if test "${PROG_DIFF}x" = "x"; then
3990    as_fn_error $? "In order to compile Gecode, you need the diff tool." "$LINENO" 5
3991 fi
3992# Extract the first word of "tar", so it can be a program name with args.
3993set dummy tar; ac_word=$2
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995$as_echo_n "checking for $ac_word... " >&6; }
3996if ${ac_cv_prog_PROG_TAR+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  if test -n "$PROG_TAR"; then
4000  ac_cv_prog_PROG_TAR="$PROG_TAR" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005  IFS=$as_save_IFS
4006  test -z "$as_dir" && as_dir=.
4007    for ac_exec_ext in '' $ac_executable_extensions; do
4008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009    ac_cv_prog_PROG_TAR="ok"
4010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011    break 2
4012  fi
4013done
4014  done
4015IFS=$as_save_IFS
4016
4017fi
4018fi
4019PROG_TAR=$ac_cv_prog_PROG_TAR
4020if test -n "$PROG_TAR"; then
4021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAR" >&5
4022$as_echo "$PROG_TAR" >&6; }
4023else
4024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
4026fi
4027
4028
4029 if test "${PROG_TAR}x" = "x"; then
4030    as_fn_error $? "In order to compile Gecode, you need the tar tool." "$LINENO" 5
4031 fi
4032# Extract the first word of "make", so it can be a program name with args.
4033set dummy make; ac_word=$2
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if ${ac_cv_prog_PROG_MAKE+:} false; then :
4037  $as_echo_n "(cached) " >&6
4038else
4039  if test -n "$PROG_MAKE"; then
4040  ac_cv_prog_PROG_MAKE="$PROG_MAKE" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_exec_ext in '' $ac_executable_extensions; do
4048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049    ac_cv_prog_PROG_MAKE="ok"
4050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054  done
4055IFS=$as_save_IFS
4056
4057fi
4058fi
4059PROG_MAKE=$ac_cv_prog_PROG_MAKE
4060if test -n "$PROG_MAKE"; then
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_MAKE" >&5
4062$as_echo "$PROG_MAKE" >&6; }
4063else
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066fi
4067
4068
4069 if test "${PROG_MAKE}x" = "x"; then
4070    as_fn_error $? "In order to compile Gecode, you need the make tool." "$LINENO" 5
4071 fi
4072# Extract the first word of "sed", so it can be a program name with args.
4073set dummy sed; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if ${ac_cv_prog_PROG_SED+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$PROG_SED"; then
4080  ac_cv_prog_PROG_SED="$PROG_SED" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089    ac_cv_prog_PROG_SED="ok"
4090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094  done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099PROG_SED=$ac_cv_prog_PROG_SED
4100if test -n "$PROG_SED"; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SED" >&5
4102$as_echo "$PROG_SED" >&6; }
4103else
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109 if test "${PROG_SED}x" = "x"; then
4110    as_fn_error $? "In order to compile Gecode, you need the sed tool." "$LINENO" 5
4111 fi
4112# Extract the first word of "perl", so it can be a program name with args.
4113set dummy perl; ac_word=$2
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115$as_echo_n "checking for $ac_word... " >&6; }
4116if ${ac_cv_prog_PROG_PERL+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  if test -n "$PROG_PERL"; then
4120  ac_cv_prog_PROG_PERL="$PROG_PERL" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125  IFS=$as_save_IFS
4126  test -z "$as_dir" && as_dir=.
4127    for ac_exec_ext in '' $ac_executable_extensions; do
4128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129    ac_cv_prog_PROG_PERL="ok"
4130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131    break 2
4132  fi
4133done
4134  done
4135IFS=$as_save_IFS
4136
4137fi
4138fi
4139PROG_PERL=$ac_cv_prog_PROG_PERL
4140if test -n "$PROG_PERL"; then
4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PERL" >&5
4142$as_echo "$PROG_PERL" >&6; }
4143else
4144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
4146fi
4147
4148
4149 if test "${PROG_PERL}x" = "x"; then
4150    as_fn_error $? "In order to compile Gecode, you need perl." "$LINENO" 5
4151 fi
4152
4153case $host_os in
4154     darwin*)
4155       RUNENVIRONMENT=DYLD_LIBRARY_PATH=.
4156
4157       ;;
4158     windows*)
4159       RUNENVIRONMENT=''
4160
4161       ;;
4162     *)
4163       RUNENVIRONMENT=LD_LIBRARY_PATH=.
4164
4165       ;;
4166  esac
4167
4168ac_ext=cpp
4169ac_cpp='$CXXCPP $CPPFLAGS'
4170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4174$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4175if test -z "$CXXCPP"; then
4176  if ${ac_cv_prog_CXXCPP+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179      # Double quotes because CXXCPP needs to be expanded
4180    for CXXCPP in "$CXX -E" "/lib/cpp"
4181    do
4182      ac_preproc_ok=false
4183for ac_cxx_preproc_warn_flag in '' yes
4184do
4185  # Use a header file that comes with gcc, so configuring glibc
4186  # with a fresh cross-compiler works.
4187  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4188  # <limits.h> exists even on freestanding compilers.
4189  # On the NeXT, cc -E runs the code through the compiler's parser,
4190  # not just through cpp. "Syntax error" is here to catch this case.
4191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h.  */
4193#ifdef __STDC__
4194# include <limits.h>
4195#else
4196# include <assert.h>
4197#endif
4198		     Syntax error
4199_ACEOF
4200if ac_fn_cxx_try_cpp "$LINENO"; then :
4201
4202else
4203  # Broken: fails on valid input.
4204continue
4205fi
4206rm -f conftest.err conftest.i conftest.$ac_ext
4207
4208  # OK, works on sane cases.  Now check whether nonexistent headers
4209  # can be detected and how.
4210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212#include <ac_nonexistent.h>
4213_ACEOF
4214if ac_fn_cxx_try_cpp "$LINENO"; then :
4215  # Broken: success on invalid input.
4216continue
4217else
4218  # Passes both tests.
4219ac_preproc_ok=:
4220break
4221fi
4222rm -f conftest.err conftest.i conftest.$ac_ext
4223
4224done
4225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4226rm -f conftest.i conftest.err conftest.$ac_ext
4227if $ac_preproc_ok; then :
4228  break
4229fi
4230
4231    done
4232    ac_cv_prog_CXXCPP=$CXXCPP
4233
4234fi
4235  CXXCPP=$ac_cv_prog_CXXCPP
4236else
4237  ac_cv_prog_CXXCPP=$CXXCPP
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4240$as_echo "$CXXCPP" >&6; }
4241ac_preproc_ok=false
4242for ac_cxx_preproc_warn_flag in '' yes
4243do
4244  # Use a header file that comes with gcc, so configuring glibc
4245  # with a fresh cross-compiler works.
4246  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4247  # <limits.h> exists even on freestanding compilers.
4248  # On the NeXT, cc -E runs the code through the compiler's parser,
4249  # not just through cpp. "Syntax error" is here to catch this case.
4250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252#ifdef __STDC__
4253# include <limits.h>
4254#else
4255# include <assert.h>
4256#endif
4257		     Syntax error
4258_ACEOF
4259if ac_fn_cxx_try_cpp "$LINENO"; then :
4260
4261else
4262  # Broken: fails on valid input.
4263continue
4264fi
4265rm -f conftest.err conftest.i conftest.$ac_ext
4266
4267  # OK, works on sane cases.  Now check whether nonexistent headers
4268  # can be detected and how.
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#include <ac_nonexistent.h>
4272_ACEOF
4273if ac_fn_cxx_try_cpp "$LINENO"; then :
4274  # Broken: success on invalid input.
4275continue
4276else
4277  # Passes both tests.
4278ac_preproc_ok=:
4279break
4280fi
4281rm -f conftest.err conftest.i conftest.$ac_ext
4282
4283done
4284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285rm -f conftest.i conftest.err conftest.$ac_ext
4286if $ac_preproc_ok; then :
4287
4288else
4289  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4292See \`config.log' for more details" "$LINENO" 5; }
4293fi
4294
4295ac_ext=cpp
4296ac_cpp='$CXXCPP $CPPFLAGS'
4297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4300
4301
4302
4303
4304# Check whether --with-compiler-vendor was given.
4305if test "${with_compiler_vendor+set}" = set; then :
4306  withval=$with_compiler_vendor;
4307fi
4308
4309
4310
4311   if test "${with_compiler_vendor:-no}" = "no"; then
4312     ac_ext=cpp
4313ac_cpp='$CXXCPP $CPPFLAGS'
4314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4317
4318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320#ifndef __GNUG__
4321                      # error "Macro __GNUG__ is undefined!"
4322              /* For some compilers (eg. SGI's CC), #error is not
4323                 enough...  */
4324              please, do fail
4325              #endif
4326int
4327main ()
4328{
4329
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334if ac_fn_cxx_try_compile "$LINENO"; then :
4335  ac_cv_cxx_compiler_vendor=gnu
4336else
4337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h.  */
4339#ifndef __INTEL_COMPILER
4340                      # error "Macro __INTEL_COMPILER is undefined!"
4341              /* For some compilers (eg. SGI's CC), #error is not
4342                 enough...  */
4343              please, do fail
4344              #endif
4345int
4346main ()
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353if ac_fn_cxx_try_compile "$LINENO"; then :
4354  ac_cv_cxx_compiler_vendor=intel
4355                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h.  */
4357#ifndef _M_IX86
4358                      # error "Macro _M_IX86 is undefined!"
4359              /* For some compilers (eg. SGI's CC), #error is not
4360                 enough...  */
4361              please, do fail
4362              #endif
4363int
4364main ()
4365{
4366
4367  ;
4368  return 0;
4369}
4370_ACEOF
4371if ac_fn_cxx_try_compile "$LINENO"; then :
4372  ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}"
4373fi
4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377#ifndef _M_IA64
4378                      # error "Macro _M_IA64 is undefined!"
4379              /* For some compilers (eg. SGI's CC), #error is not
4380                 enough...  */
4381              please, do fail
4382              #endif
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391if ac_fn_cxx_try_compile "$LINENO"; then :
4392  ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}"
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h.  */
4397#ifndef _M_X64
4398                      # error "Macro _M_X64 is undefined!"
4399              /* For some compilers (eg. SGI's CC), #error is not
4400                 enough...  */
4401              please, do fail
4402              #endif
4403int
4404main ()
4405{
4406
4407  ;
4408  return 0;
4409}
4410_ACEOF
4411if ac_fn_cxx_try_compile "$LINENO"; then :
4412  ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}"
4413fi
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415else
4416                          ac_ext=c
4417ac_cpp='$CPP $CPPFLAGS'
4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h.  */
4424#ifndef _MSC_VER
4425                      # error "Macro _MSC_VER is undefined!"
4426              /* For some compilers (eg. SGI's CC), #error is not
4427                 enough...  */
4428              please, do fail
4429              #endif
4430int
4431main ()
4432{
4433
4434  ;
4435  return 0;
4436}
4437_ACEOF
4438if ac_fn_c_try_compile "$LINENO"; then :
4439  ac_cv_cxx_compiler_vendor=microsoft
4440                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441/* end confdefs.h.  */
4442#ifndef _M_IX86
4443                      # error "Macro _M_IX86 is undefined!"
4444              /* For some compilers (eg. SGI's CC), #error is not
4445                 enough...  */
4446              please, do fail
4447              #endif
4448int
4449main ()
4450{
4451
4452  ;
4453  return 0;
4454}
4455_ACEOF
4456if ac_fn_c_try_compile "$LINENO"; then :
4457  ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}"
4458fi
4459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462#ifndef _M_IA64
4463                      # error "Macro _M_IA64 is undefined!"
4464              /* For some compilers (eg. SGI's CC), #error is not
4465                 enough...  */
4466              please, do fail
4467              #endif
4468int
4469main ()
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476if ac_fn_c_try_compile "$LINENO"; then :
4477  ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}"
4478fi
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482#ifndef _M_X64
4483                      # error "Macro _M_X64 is undefined!"
4484              /* For some compilers (eg. SGI's CC), #error is not
4485                 enough...  */
4486              please, do fail
4487              #endif
4488int
4489main ()
4490{
4491
4492  ;
4493  return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"; then :
4497  ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}"
4498fi
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500else
4501  ac_cv_cxx_compiler_vendor=unknown
4502fi
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504        ac_ext=cpp
4505ac_cpp='$CXXCPP $CPPFLAGS'
4506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4509
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514
4515     ac_ext=cpp
4516ac_cpp='$CXXCPP $CPPFLAGS'
4517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4520
4521     else
4522       ac_cv_cxx_compiler_vendor=${with_compiler_vendor}
4523     fi
4524     ac_gecode_compiler_vendor="$ac_cv_cxx_compiler_vendor"
4525case $ac_gecode_compiler_vendor in
4526gnu)
4527
4528    ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536
4537     #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
4538     #error Version too old
4539     really, the version is too old
4540     #endif
4541int
4542main ()
4543{
4544
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549if ac_fn_c_try_compile "$LINENO"; then :
4550
4551else
4552  as_fn_error $? "Your version of gcc is too old. You need at least version 4.2." "$LINENO" 5
4553
4554fi
4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556    ac_ext=cpp
4557ac_cpp='$CXXCPP $CPPFLAGS'
4558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4561
4562    ac_ext=cpp
4563ac_cpp='$CXXCPP $CPPFLAGS'
4564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567
4568    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570
4571     #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
4572     #error Version too old
4573     really, the version is too old
4574     #endif
4575int
4576main ()
4577{
4578
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583if ac_fn_cxx_try_compile "$LINENO"; then :
4584
4585else
4586  as_fn_error $? "Your version of g++ is too old. You need at least version 4.2." "$LINENO" 5
4587
4588fi
4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590    ac_ext=cpp
4591ac_cpp='$CXXCPP $CPPFLAGS'
4592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595
4596
4597  ;;
4598intel)
4599  ;;
4600microsoft)
4601
4602    ac_ext=c
4603ac_cpp='$CPP $CPPFLAGS'
4604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607
4608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h.  */
4610
4611     #if _MSC_VER < 1800
4612     #error Version too old
4613     really, the version is too old
4614     #endif
4615int
4616main ()
4617{
4618
4619  ;
4620  return 0;
4621}
4622_ACEOF
4623if ac_fn_cxx_try_compile "$LINENO"; then :
4624
4625else
4626  as_fn_error $? "Your version of cl is too old. You need at least Microsoft Visual C++ 2013." "$LINENO" 5
4627    ac_ext=cpp
4628ac_cpp='$CXXCPP $CPPFLAGS'
4629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4632
4633
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636
4637  ;;
4638*)
4639  ;;
4640esac
4641
4642
4643  # Check whether --enable-resource was given.
4644if test "${enable_resource+set}" = set; then :
4645  enableval=$enable_resource;
4646fi
4647
4648  # Extract the first word of "rc.exe", so it can be a program name with args.
4649set dummy rc.exe; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if ${ac_cv_prog_HAVE_RC+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  if test -n "$HAVE_RC"; then
4656  ac_cv_prog_HAVE_RC="$HAVE_RC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  test -z "$as_dir" && as_dir=.
4663    for ac_exec_ext in '' $ac_executable_extensions; do
4664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665    ac_cv_prog_HAVE_RC="found"
4666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670  done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675HAVE_RC=$ac_cv_prog_HAVE_RC
4676if test -n "$HAVE_RC"; then
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RC" >&5
4678$as_echo "$HAVE_RC" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Visual Studio resource files" >&5
4686$as_echo_n "checking whether to build with Visual Studio resource files... " >&6; }
4687  if test "${enable_resource:-no}" = "yes" -a \
4688          "${ac_gecode_compiler_vendor}" = "microsoft"; then
4689    if test "${HAVE_RC}x" = "x"; then
4690      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691$as_echo "no" >&6; }
4692      RESCOMP=@true
4693
4694      enable_resource=no
4695
4696    else
4697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4698$as_echo "yes" >&6; }
4699      RESCOMP="rc.exe"
4700
4701      enable_resource=yes
4702
4703    fi
4704  else
4705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706$as_echo "no" >&6; }
4707    enable_resource=no
4708
4709    RESCOMP=@true
4710
4711  fi
4712
4713
4714ac_ext=cpp
4715ac_cpp='$CXXCPP $CPPFLAGS'
4716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719
4720
4721
4722# Check whether --with-sdk was given.
4723if test "${with_sdk+set}" = set; then :
4724  withval=$with_sdk;
4725fi
4726
4727  if test "${host_os}" = "darwin"; then
4728    if test "${with_sdk:-no}" != "no"; then
4729
4730   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5
4732$as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; }
4733   if ${CXX} -isysroot ${with_sdk} 2>&1 | grep "ignoring unknown option" -q; then
4734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735$as_echo "no" >&6; }
4736     :
4737   else
4738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739$as_echo "yes" >&6; }
4740
4741       CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}"
4742       CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}"
4743   fi
4744   else
4745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5
4746$as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; }
4747   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4748   CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4749   ac_ext=cpp
4750ac_cpp='$CXXCPP $CPPFLAGS'
4751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754
4755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757
4758int
4759main ()
4760{
4761
4762  ;
4763  return 0;
4764}
4765_ACEOF
4766if ac_fn_cxx_try_compile "$LINENO"; then :
4767  if grep -q "unrecognized\|argument unused" conftest.err; then
4768        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770$as_echo "no" >&6; }
4771        :
4772      else
4773        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4774        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4775$as_echo "yes" >&6; }
4776
4777        CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}"
4778      fi
4779
4780else
4781  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4782      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784      :
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787   ac_ext=cpp
4788ac_cpp='$CXXCPP $CPPFLAGS'
4789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792
4793
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -isysroot ${with_sdk}" >&5
4795$as_echo_n "checking whether ${CC} accepts -isysroot ${with_sdk}... " >&6; }
4796   ac_gecode_save_CFLAGS="${CFLAGS}"
4797   CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS} -Werror"
4798   ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h.  */
4806
4807int
4808main ()
4809{
4810
4811  ;
4812  return 0;
4813}
4814_ACEOF
4815if ac_fn_c_try_compile "$LINENO"; then :
4816  if grep -q "unrecognized\|argument unused" conftest.err; then
4817        CFLAGS="${ac_gecode_save_CFLAGS}"
4818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820        :
4821      else
4822        CFLAGS="${ac_gecode_save_CFLAGS}"
4823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4824$as_echo "yes" >&6; }
4825
4826        CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}"
4827      fi
4828
4829else
4830  CFLAGS="${ac_gecode_save_CFLAGS}"
4831      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832$as_echo "no" >&6; }
4833      :
4834fi
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836   ac_ext=cpp
4837ac_cpp='$CXXCPP $CPPFLAGS'
4838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4841
4842   fi
4843      DLLFLAGS="-Wl,-syslibroot,${with_sdk}${DLLFLAGS:+ }${DLLFLAGS}"
4844    fi
4845  fi
4846
4847# Check whether --with-macosx-version-min was given.
4848if test "${with_macosx_version_min+set}" = set; then :
4849  withval=$with_macosx_version_min;
4850fi
4851
4852  if test "${host_os}" = "darwin"; then
4853    if test "${with_macosx_version_min:-no}" != "no"; then
4854
4855   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4857$as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4858   if ${CXX} -mmacosx-version-min=${with_macosx_version_min} 2>&1 | grep "ignoring unknown option" -q; then
4859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861     :
4862   else
4863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864$as_echo "yes" >&6; }
4865
4866       CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}"
4867       CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}"
4868   fi
4869   else
4870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4871$as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4872   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
4873   CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
4874   ac_ext=cpp
4875ac_cpp='$CXXCPP $CPPFLAGS'
4876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4879
4880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882
4883int
4884main ()
4885{
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891if ac_fn_cxx_try_compile "$LINENO"; then :
4892  if grep -q "unrecognized\|argument unused" conftest.err; then
4893        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896        :
4897      else
4898        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4899        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900$as_echo "yes" >&6; }
4901
4902        CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}"
4903      fi
4904
4905else
4906  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
4907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
4909      :
4910fi
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912   ac_ext=cpp
4913ac_cpp='$CXXCPP $CPPFLAGS'
4914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4917
4918
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5
4920$as_echo_n "checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; }
4921   ac_gecode_save_CFLAGS="${CFLAGS}"
4922   CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS} -Werror"
4923   ac_ext=c
4924ac_cpp='$CPP $CPPFLAGS'
4925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928
4929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930/* end confdefs.h.  */
4931
4932int
4933main ()
4934{
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940if ac_fn_c_try_compile "$LINENO"; then :
4941  if grep -q "unrecognized\|argument unused" conftest.err; then
4942        CFLAGS="${ac_gecode_save_CFLAGS}"
4943        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945        :
4946      else
4947        CFLAGS="${ac_gecode_save_CFLAGS}"
4948        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4949$as_echo "yes" >&6; }
4950
4951        CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}"
4952      fi
4953
4954else
4955  CFLAGS="${ac_gecode_save_CFLAGS}"
4956      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958      :
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961   ac_ext=cpp
4962ac_cpp='$CXXCPP $CPPFLAGS'
4963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4966
4967   fi
4968      DLLFLAGS="-mmacosx-version-min=${with_macosx_version_min}${DLLFLAGS:+ }${DLLFLAGS}"
4969    fi
4970  fi
4971
4972# Check whether --with-architectures was given.
4973if test "${with_architectures+set}" = set; then :
4974  withval=$with_architectures;
4975fi
4976
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build for different architectures" >&5
4978$as_echo_n "checking Whether to build for different architectures... " >&6; }
4979  if test "${host_os}" = "darwin"; then
4980    if test "${with_architectures:-no}" != "no"; then
4981      archflags="";
4982      for a in `echo ${with_architectures} | sed -e "s/,/ /g"`; do
4983    archflags="${archflags} -arch $a";
4984      done
4985
4986   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
4987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5
4988$as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; }
4989   if ${CXX} ${archflags} 2>&1 | grep "ignoring unknown option" -q; then
4990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991$as_echo "no" >&6; }
4992     :
4993   else
4994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4995$as_echo "yes" >&6; }
4996
4997       CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}"
4998       CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}"
4999   fi
5000   else
5001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5
5002$as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; }
5003   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5004   CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5005   ac_ext=cpp
5006ac_cpp='$CXXCPP $CPPFLAGS'
5007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5010
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h.  */
5013
5014int
5015main ()
5016{
5017
5018  ;
5019  return 0;
5020}
5021_ACEOF
5022if ac_fn_cxx_try_compile "$LINENO"; then :
5023  if grep -q "unrecognized\|argument unused" conftest.err; then
5024        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026$as_echo "no" >&6; }
5027        :
5028      else
5029        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031$as_echo "yes" >&6; }
5032
5033        CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}"
5034      fi
5035
5036else
5037  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5038      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040      :
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043   ac_ext=cpp
5044ac_cpp='$CXXCPP $CPPFLAGS'
5045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5048
5049
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${archflags}" >&5
5051$as_echo_n "checking whether ${CC} accepts ${archflags}... " >&6; }
5052   ac_gecode_save_CFLAGS="${CFLAGS}"
5053   CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS} -Werror"
5054   ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071if ac_fn_c_try_compile "$LINENO"; then :
5072  if grep -q "unrecognized\|argument unused" conftest.err; then
5073        CFLAGS="${ac_gecode_save_CFLAGS}"
5074        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076        :
5077      else
5078        CFLAGS="${ac_gecode_save_CFLAGS}"
5079        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5080$as_echo "yes" >&6; }
5081
5082        CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}"
5083      fi
5084
5085else
5086  CFLAGS="${ac_gecode_save_CFLAGS}"
5087      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088$as_echo "no" >&6; }
5089      :
5090fi
5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092   ac_ext=cpp
5093ac_cpp='$CXXCPP $CPPFLAGS'
5094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097
5098   fi
5099      DLLFLAGS="${archflags}${DLLFLAGS:+ }${DLLFLAGS}"
5100      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101$as_echo "yes" >&6; }
5102    else
5103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104$as_echo "no" >&6; }
5105    fi
5106  else
5107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109  fi
5110
5111
5112
5113
5114# Check whether --with-lib-prefix was given.
5115if test "${with_lib_prefix+set}" = set; then :
5116  withval=$with_lib_prefix;
5117fi
5118
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name prefix" >&5
5120$as_echo_n "checking for user-defined library name prefix... " >&6; }
5121  if test "x${with_lib_prefix}" != "x"; then
5122    ac_gecode_userprefix=${with_lib_prefix}
5123        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_prefix}" >&5
5124$as_echo "${with_lib_prefix}" >&6; }
5125  else
5126    ac_gecode_userprefix=
5127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
5129  fi
5130
5131cat >>confdefs.h <<_ACEOF
5132#define GECODE_DLL_USERPREFIX "${ac_gecode_userprefix}"
5133_ACEOF
5134
5135
5136# Check whether --with-lib-suffix was given.
5137if test "${with_lib_suffix+set}" = set; then :
5138  withval=$with_lib_suffix;
5139fi
5140
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name suffix" >&5
5142$as_echo_n "checking for user-defined library name suffix... " >&6; }
5143  if test "x${with_lib_suffix}" != "x"; then
5144    ac_gecode_usersuffix=${with_lib_suffix}
5145    USERSUFFIX=${with_lib_suffix}
5146
5147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_suffix}" >&5
5148$as_echo "${with_lib_suffix}" >&6; }
5149  else
5150    ac_gecode_usersuffix=
5151    USERSUFFIX=""
5152
5153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155  fi
5156
5157cat >>confdefs.h <<_ACEOF
5158#define GECODE_DLL_USERSUFFIX "${ac_gecode_usersuffix}"
5159_ACEOF
5160
5161
5162
5163  # Check whether --enable-framework was given.
5164if test "${enable_framework+set}" = set; then :
5165  enableval=$enable_framework;
5166fi
5167
5168  if test "${host_os}" = "darwin"; then
5169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build framework bundle on Mac OS X" >&5
5170$as_echo_n "checking whether to build framework bundle on Mac OS X... " >&6; }
5171    if test "${enable_framework:-no}" = "yes"; then
5172      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173$as_echo "yes" >&6; }
5174      BUILD_MACOS_FRAMEWORK="yes"
5175
5176      enable_static="yes";
5177      enable_shared="no";
5178    else
5179      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181      BUILD_MACOS_FRAMEWORK="no"
5182
5183    fi
5184  fi
5185
5186
5187if test "${host_os}" = "windows" -a \
5188              "${ac_gecode_compiler_vendor}" = "gnu"; then
5189        enable_static="yes"
5190        enable_shared="no"
5191      fi
5192      # Check whether --enable-static was given.
5193if test "${enable_static+set}" = set; then :
5194  enableval=$enable_static;
5195fi
5196
5197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5198$as_echo_n "checking whether to build static libraries... " >&6; }
5199        if test "${enable_static:-no}" = "yes"; then
5200
5201$as_echo "#define GECODE_STATIC_LIBS /**/" >>confdefs.h
5202
5203          BUILDSTATIC="yes"
5204
5205          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5206$as_echo "yes" >&6; }
5207          enable_shared=no
5208        else
5209          BUILDSTATIC="no"
5210
5211          enable_shared=yes
5212          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214        fi
5215      # Check whether --enable-shared was given.
5216if test "${enable_shared+set}" = set; then :
5217  enableval=$enable_shared;
5218fi
5219
5220      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5221$as_echo_n "checking whether to build shared libraries... " >&6; }
5222        if test "${enable_shared:-yes}" = "yes"; then
5223          BUILDDLL="yes"
5224
5225          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226$as_echo "yes" >&6; }
5227        else
5228          BUILDDLL="no"
5229
5230          if test "${enable_static:-no}" = "no"; then
5231            as_fn_error $? "One of --enable-static or --enable-shared must be given" "$LINENO" 5
5232          fi
5233          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235        fi
5236
5237
5238# Check whether --enable-debug was given.
5239if test "${enable_debug+set}" = set; then :
5240  enableval=$enable_debug;
5241fi
5242
5243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with debug symbols and assertions" >&5
5244$as_echo_n "checking whether to build with debug symbols and assertions... " >&6; }
5245     if test "${enable_debug:-no}" = "yes"; then
5246            ac_gecode_library_architecture="-d${ac_gecode_library_architecture}"
5247            DEBUG_BUILD=yes
5248
5249        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5250$as_echo "yes" >&6; }
5251     else
5252            ac_gecode_library_architecture="-r${ac_gecode_library_architecture}"
5253            DEBUG_BUILD=no
5254
5255        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
5257               CFLAGS="-DNDEBUG${CFLAGS:+ }${CFLAGS}"
5258    CXXFLAGS="-DNDEBUG${CXXFLAGS:+ }${CXXFLAGS}"
5259     fi
5260
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264if ${ac_cv_path_GREP+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  if test -z "$GREP"; then
5268  ac_path_GREP_found=false
5269  # Loop through the user's path and test for each of PROGNAME-LIST
5270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275    for ac_prog in grep ggrep; do
5276    for ac_exec_ext in '' $ac_executable_extensions; do
5277      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5278      as_fn_executable_p "$ac_path_GREP" || continue
5279# Check for GNU ac_path_GREP and select it if it is found.
5280  # Check for GNU $ac_path_GREP
5281case `"$ac_path_GREP" --version 2>&1` in
5282*GNU*)
5283  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5284*)
5285  ac_count=0
5286  $as_echo_n 0123456789 >"conftest.in"
5287  while :
5288  do
5289    cat "conftest.in" "conftest.in" >"conftest.tmp"
5290    mv "conftest.tmp" "conftest.in"
5291    cp "conftest.in" "conftest.nl"
5292    $as_echo 'GREP' >> "conftest.nl"
5293    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5295    as_fn_arith $ac_count + 1 && ac_count=$as_val
5296    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297      # Best one so far, save it but keep looking for a better one
5298      ac_cv_path_GREP="$ac_path_GREP"
5299      ac_path_GREP_max=$ac_count
5300    fi
5301    # 10*(2^10) chars as input seems more than enough
5302    test $ac_count -gt 10 && break
5303  done
5304  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305esac
5306
5307      $ac_path_GREP_found && break 3
5308    done
5309  done
5310  done
5311IFS=$as_save_IFS
5312  if test -z "$ac_cv_path_GREP"; then
5313    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5314  fi
5315else
5316  ac_cv_path_GREP=$GREP
5317fi
5318
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321$as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP="$ac_cv_path_GREP"
5323
5324
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326$as_echo_n "checking for egrep... " >&6; }
5327if ${ac_cv_path_EGREP+:} false; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5331   then ac_cv_path_EGREP="$GREP -E"
5332   else
5333     if test -z "$EGREP"; then
5334  ac_path_EGREP_found=false
5335  # Loop through the user's path and test for each of PROGNAME-LIST
5336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5338do
5339  IFS=$as_save_IFS
5340  test -z "$as_dir" && as_dir=.
5341    for ac_prog in egrep; do
5342    for ac_exec_ext in '' $ac_executable_extensions; do
5343      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5344      as_fn_executable_p "$ac_path_EGREP" || continue
5345# Check for GNU ac_path_EGREP and select it if it is found.
5346  # Check for GNU $ac_path_EGREP
5347case `"$ac_path_EGREP" --version 2>&1` in
5348*GNU*)
5349  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5350*)
5351  ac_count=0
5352  $as_echo_n 0123456789 >"conftest.in"
5353  while :
5354  do
5355    cat "conftest.in" "conftest.in" >"conftest.tmp"
5356    mv "conftest.tmp" "conftest.in"
5357    cp "conftest.in" "conftest.nl"
5358    $as_echo 'EGREP' >> "conftest.nl"
5359    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361    as_fn_arith $ac_count + 1 && ac_count=$as_val
5362    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363      # Best one so far, save it but keep looking for a better one
5364      ac_cv_path_EGREP="$ac_path_EGREP"
5365      ac_path_EGREP_max=$ac_count
5366    fi
5367    # 10*(2^10) chars as input seems more than enough
5368    test $ac_count -gt 10 && break
5369  done
5370  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371esac
5372
5373      $ac_path_EGREP_found && break 3
5374    done
5375  done
5376  done
5377IFS=$as_save_IFS
5378  if test -z "$ac_cv_path_EGREP"; then
5379    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5380  fi
5381else
5382  ac_cv_path_EGREP=$EGREP
5383fi
5384
5385   fi
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388$as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP="$ac_cv_path_EGREP"
5390
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5393$as_echo_n "checking for ANSI C header files... " >&6; }
5394if ${ac_cv_header_stdc+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399#include <stdlib.h>
5400#include <stdarg.h>
5401#include <string.h>
5402#include <float.h>
5403
5404int
5405main ()
5406{
5407
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412if ac_fn_cxx_try_compile "$LINENO"; then :
5413  ac_cv_header_stdc=yes
5414else
5415  ac_cv_header_stdc=no
5416fi
5417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418
5419if test $ac_cv_header_stdc = yes; then
5420  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423#include <string.h>
5424
5425_ACEOF
5426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427  $EGREP "memchr" >/dev/null 2>&1; then :
5428
5429else
5430  ac_cv_header_stdc=no
5431fi
5432rm -f conftest*
5433
5434fi
5435
5436if test $ac_cv_header_stdc = yes; then
5437  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440#include <stdlib.h>
5441
5442_ACEOF
5443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444  $EGREP "free" >/dev/null 2>&1; then :
5445
5446else
5447  ac_cv_header_stdc=no
5448fi
5449rm -f conftest*
5450
5451fi
5452
5453if test $ac_cv_header_stdc = yes; then
5454  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5455  if test "$cross_compiling" = yes; then :
5456  :
5457else
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460#include <ctype.h>
5461#include <stdlib.h>
5462#if ((' ' & 0x0FF) == 0x020)
5463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5465#else
5466# define ISLOWER(c) \
5467		   (('a' <= (c) && (c) <= 'i') \
5468		     || ('j' <= (c) && (c) <= 'r') \
5469		     || ('s' <= (c) && (c) <= 'z'))
5470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5471#endif
5472
5473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5474int
5475main ()
5476{
5477  int i;
5478  for (i = 0; i < 256; i++)
5479    if (XOR (islower (i), ISLOWER (i))
5480	|| toupper (i) != TOUPPER (i))
5481      return 2;
5482  return 0;
5483}
5484_ACEOF
5485if ac_fn_cxx_try_run "$LINENO"; then :
5486
5487else
5488  ac_cv_header_stdc=no
5489fi
5490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5491  conftest.$ac_objext conftest.beam conftest.$ac_ext
5492fi
5493
5494fi
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5497$as_echo "$ac_cv_header_stdc" >&6; }
5498if test $ac_cv_header_stdc = yes; then
5499
5500$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5501
5502fi
5503
5504# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5505for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5506		  inttypes.h stdint.h unistd.h
5507do :
5508  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5510"
5511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5512  cat >>confdefs.h <<_ACEOF
5513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514_ACEOF
5515
5516fi
5517
5518done
5519
5520
5521# Check whether --enable-peakheap was given.
5522if test "${enable_peakheap+set}" = set; then :
5523  enableval=$enable_peakheap;
5524fi
5525
5526     if test "${enable_peakheap:-no}" = "yes"; then
5527        ac_fn_cxx_check_func "$LINENO" "_msize" "ac_cv_func__msize"
5528if test "x$ac_cv_func__msize" = xyes; then :
5529
5530
5531$as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5532
5533
5534$as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h
5535
5536
5537$as_echo "#define GECODE_MSIZE _msize" >>confdefs.h
5538
5539          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5540$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5541          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542$as_echo "yes" >&6; }
5543
5544else
5545
5546          for ac_header in malloc/malloc.h
5547do :
5548  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5549if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
5550  cat >>confdefs.h <<_ACEOF
5551#define HAVE_MALLOC_MALLOC_H 1
5552_ACEOF
5553
5554            ac_fn_cxx_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size"
5555if test "x$ac_cv_func_malloc_size" = xyes; then :
5556
5557              $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5558
5559
5560$as_echo "#define GECODE_PEAKHEAP_MALLOC_MALLOC_H /**/" >>confdefs.h
5561
5562              $as_echo "#define GECODE_MSIZE malloc_size" >>confdefs.h
5563
5564              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5565$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5566              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567$as_echo "yes" >&6; }
5568
5569else
5570
5571              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5572$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5573              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574$as_echo "no" >&6; }
5575
5576fi
5577
5578
5579else
5580
5581            for ac_header in malloc.h
5582do :
5583  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5584if test "x$ac_cv_header_malloc_h" = xyes; then :
5585  cat >>confdefs.h <<_ACEOF
5586#define HAVE_MALLOC_H 1
5587_ACEOF
5588
5589              ac_fn_cxx_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
5590if test "x$ac_cv_func_malloc_usable_size" = xyes; then :
5591
5592                $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h
5593
5594
5595$as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h
5596
5597                $as_echo "#define GECODE_MSIZE malloc_usable_size" >>confdefs.h
5598
5599                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5600$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602$as_echo "yes" >&6; }
5603
5604else
5605
5606                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5607$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
5610
5611fi
5612
5613
5614else
5615
5616              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5617$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5618              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619$as_echo "no" >&6; }
5620
5621fi
5622
5623done
5624
5625
5626
5627fi
5628
5629done
5630
5631
5632fi
5633
5634     else
5635        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5
5636$as_echo_n "checking whether to build with peak heap size tracking... " >&6; }
5637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639     fi
5640
5641# Check whether --enable-small-codesize was given.
5642if test "${enable_small_codesize+set}" = set; then :
5643  enableval=$enable_small_codesize;
5644fi
5645
5646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to optimize for code size" >&5
5647$as_echo_n "checking whether to optimize for code size... " >&6; }
5648     if test "${enable_debug:-no}" = "yes"; then
5649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not in debug builds" >&5
5650$as_echo "not in debug builds" >&6; }
5651     elif test "${enable_small_codesize:-no}" = "yes"; then
5652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653$as_echo "yes" >&6; }
5654       case $host_os in
5655         darwin*)
5656           ac_gecode_gcc_optimize_flag=-Oz
5657         ;;
5658         *)
5659           ac_gecode_gcc_optimize_flag=-Os
5660           ac_gecode_cl_optimize_flag=-O1
5661         ;;
5662       esac
5663     else
5664        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }
5666        ac_gecode_gcc_optimize_flag=-O3
5667        ac_gecode_cl_optimize_flag=-O2
5668     fi
5669
5670# Check whether --enable-leak-debug was given.
5671if test "${enable_leak_debug+set}" = set; then :
5672  enableval=$enable_leak_debug;
5673fi
5674
5675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for finding memory leaks" >&5
5676$as_echo_n "checking whether to build with support for finding memory leaks... " >&6; }
5677     if test "${enable_leak_debug:-no}" = "yes"; then
5678        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679$as_echo "yes" >&6; }
5680        ac_fn_cxx_check_decl "$LINENO" "mtrace" "ac_cv_have_decl_mtrace" "#include <mcheck.h>
5681"
5682if test "x$ac_cv_have_decl_mtrace" = xyes; then :
5683
5684$as_echo "#define GECODE_HAS_MTRACE /**/" >>confdefs.h
5685
5686else
5687  as_fn_error $? "mtrace not available." "$LINENO" 5
5688fi
5689
5690     else
5691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693     fi
5694
5695# Check whether --enable-allocator was given.
5696if test "${enable_allocator+set}" = set; then :
5697  enableval=$enable_allocator;
5698fi
5699
5700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with default memory allocator" >&5
5701$as_echo_n "checking whether to build with default memory allocator... " >&6; }
5702     if test "${enable_allocator:-yes}" = "yes"; then
5703
5704$as_echo "#define GECODE_ALLOCATOR /**/" >>confdefs.h
5705
5706        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707$as_echo "yes" >&6; }
5708     else
5709        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711     fi
5712
5713# Check whether --enable-audit was given.
5714if test "${enable_audit+set}" = set; then :
5715  enableval=$enable_audit;
5716fi
5717
5718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with auditing code" >&5
5719$as_echo_n "checking whether to build with auditing code... " >&6; }
5720     if test "${enable_audit:-no}" = "yes"; then
5721
5722$as_echo "#define GECODE_AUDIT /**/" >>confdefs.h
5723
5724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725$as_echo "yes" >&6; }
5726     else
5727        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729     fi
5730
5731# Check whether --enable-profile was given.
5732if test "${enable_profile+set}" = set; then :
5733  enableval=$enable_profile;
5734fi
5735
5736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with profiling information" >&5
5737$as_echo_n "checking whether to build with profiling information... " >&6; }
5738     if test "${enable_profile:-no}" = "yes"; then
5739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740$as_echo "yes" >&6; }
5741        if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5
5743$as_echo_n "checking whether ${CXX} accepts -pg... " >&6; }
5744   if ${CXX} -pg 2>&1 | grep "ignoring unknown option" -q; then
5745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746$as_echo "no" >&6; }
5747
5748   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5750$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5751   if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
5752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754     :
5755   else
5756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757$as_echo "yes" >&6; }
5758
5759       CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5760       CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5761   fi
5762   else
5763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5764$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5765   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5766   CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5767   ac_ext=cpp
5768ac_cpp='$CXXCPP $CPPFLAGS'
5769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5772
5773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h.  */
5775
5776int
5777main ()
5778{
5779
5780  ;
5781  return 0;
5782}
5783_ACEOF
5784if ac_fn_cxx_try_compile "$LINENO"; then :
5785  if grep -q "unrecognized\|argument unused" conftest.err; then
5786        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789        :
5790      else
5791        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5792        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793$as_echo "yes" >&6; }
5794
5795        CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5796      fi
5797
5798else
5799  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }
5802      :
5803fi
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805   ac_ext=cpp
5806ac_cpp='$CXXCPP $CPPFLAGS'
5807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810
5811
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
5813$as_echo_n "checking whether ${CC} accepts -p... " >&6; }
5814   ac_gecode_save_CFLAGS="${CFLAGS}"
5815   CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
5816   ac_ext=c
5817ac_cpp='$CPP $CPPFLAGS'
5818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821
5822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824
5825int
5826main ()
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_c_try_compile "$LINENO"; then :
5834  if grep -q "unrecognized\|argument unused" conftest.err; then
5835        CFLAGS="${ac_gecode_save_CFLAGS}"
5836        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838        :
5839      else
5840        CFLAGS="${ac_gecode_save_CFLAGS}"
5841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5842$as_echo "yes" >&6; }
5843
5844        CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5845      fi
5846
5847else
5848  CFLAGS="${ac_gecode_save_CFLAGS}"
5849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851      :
5852fi
5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854   ac_ext=cpp
5855ac_cpp='$CXXCPP $CPPFLAGS'
5856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859
5860   fi
5861   else
5862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863$as_echo "yes" >&6; }
5864
5865       CFLAGS="-pg${CFLAGS:+ }${CFLAGS}"
5866    CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}"
5867   fi
5868   else
5869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5
5870$as_echo_n "checking whether ${CXX} accepts -pg... " >&6; }
5871   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5872   CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5873   ac_ext=cpp
5874ac_cpp='$CXXCPP $CPPFLAGS'
5875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878
5879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h.  */
5881
5882int
5883main ()
5884{
5885
5886  ;
5887  return 0;
5888}
5889_ACEOF
5890if ac_fn_cxx_try_compile "$LINENO"; then :
5891  if grep -q "unrecognized\|argument unused" conftest.err; then
5892        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5893        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
5895
5896   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
5897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5898$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5899   if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
5900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902     :
5903   else
5904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905$as_echo "yes" >&6; }
5906
5907       CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5908       CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5909   fi
5910   else
5911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
5912$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
5913   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
5914   CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
5915   ac_ext=cpp
5916ac_cpp='$CXXCPP $CPPFLAGS'
5917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920
5921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923
5924int
5925main ()
5926{
5927
5928  ;
5929  return 0;
5930}
5931_ACEOF
5932if ac_fn_cxx_try_compile "$LINENO"; then :
5933  if grep -q "unrecognized\|argument unused" conftest.err; then
5934        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5935        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937        :
5938      else
5939        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5941$as_echo "yes" >&6; }
5942
5943        CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
5944      fi
5945
5946else
5947  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
5948      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950      :
5951fi
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953   ac_ext=cpp
5954ac_cpp='$CXXCPP $CPPFLAGS'
5955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5958
5959
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
5961$as_echo_n "checking whether ${CC} accepts -p... " >&6; }
5962   ac_gecode_save_CFLAGS="${CFLAGS}"
5963   CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
5964   ac_ext=c
5965ac_cpp='$CPP $CPPFLAGS'
5966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972
5973int
5974main ()
5975{
5976
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_compile "$LINENO"; then :
5982  if grep -q "unrecognized\|argument unused" conftest.err; then
5983        CFLAGS="${ac_gecode_save_CFLAGS}"
5984        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985$as_echo "no" >&6; }
5986        :
5987      else
5988        CFLAGS="${ac_gecode_save_CFLAGS}"
5989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5990$as_echo "yes" >&6; }
5991
5992        CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
5993      fi
5994
5995else
5996  CFLAGS="${ac_gecode_save_CFLAGS}"
5997      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999      :
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002   ac_ext=cpp
6003ac_cpp='$CXXCPP $CPPFLAGS'
6004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6007
6008   fi
6009      else
6010        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6012$as_echo "yes" >&6; }
6013
6014       CFLAGS="-pg${CFLAGS:+ }${CFLAGS}"
6015    CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}"
6016      fi
6017
6018else
6019  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022
6023   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
6025$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
6026   if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; then
6027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029     :
6030   else
6031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6032$as_echo "yes" >&6; }
6033
6034       CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
6035       CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
6036   fi
6037   else
6038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5
6039$as_echo_n "checking whether ${CXX} accepts -p... " >&6; }
6040   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6041   CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6042   ac_ext=cpp
6043ac_cpp='$CXXCPP $CPPFLAGS'
6044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
6048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050
6051int
6052main ()
6053{
6054
6055  ;
6056  return 0;
6057}
6058_ACEOF
6059if ac_fn_cxx_try_compile "$LINENO"; then :
6060  if grep -q "unrecognized\|argument unused" conftest.err; then
6061        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064        :
6065      else
6066        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6068$as_echo "yes" >&6; }
6069
6070        CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}"
6071      fi
6072
6073else
6074  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6075      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076$as_echo "no" >&6; }
6077      :
6078fi
6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080   ac_ext=cpp
6081ac_cpp='$CXXCPP $CPPFLAGS'
6082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6085
6086
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5
6088$as_echo_n "checking whether ${CC} accepts -p... " >&6; }
6089   ac_gecode_save_CFLAGS="${CFLAGS}"
6090   CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror"
6091   ac_ext=c
6092ac_cpp='$CPP $CPPFLAGS'
6093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095ac_compiler_gnu=$ac_cv_c_compiler_gnu
6096
6097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099
6100int
6101main ()
6102{
6103
6104  ;
6105  return 0;
6106}
6107_ACEOF
6108if ac_fn_c_try_compile "$LINENO"; then :
6109  if grep -q "unrecognized\|argument unused" conftest.err; then
6110        CFLAGS="${ac_gecode_save_CFLAGS}"
6111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113        :
6114      else
6115        CFLAGS="${ac_gecode_save_CFLAGS}"
6116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6117$as_echo "yes" >&6; }
6118
6119        CFLAGS="-p${CFLAGS:+ }${CFLAGS}"
6120      fi
6121
6122else
6123  CFLAGS="${ac_gecode_save_CFLAGS}"
6124      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126      :
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129   ac_ext=cpp
6130ac_cpp='$CXXCPP $CPPFLAGS'
6131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6134
6135   fi
6136fi
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138   ac_ext=cpp
6139ac_cpp='$CXXCPP $CPPFLAGS'
6140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6143
6144   fi
6145
6146     else
6147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149     fi
6150
6151# Check whether --enable-gcov was given.
6152if test "${enable_gcov+set}" = set; then :
6153  enableval=$enable_gcov;
6154fi
6155
6156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov support" >&5
6157$as_echo_n "checking whether to build with gcov support... " >&6; }
6158     if test "${enable_gcov:-no}" = "yes"; then
6159        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6160$as_echo "yes" >&6; }
6161
6162   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5
6164$as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; }
6165   if ${CXX} -fprofile-arcs 2>&1 | grep "ignoring unknown option" -q; then
6166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168     :
6169   else
6170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6171$as_echo "yes" >&6; }
6172
6173       CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}"
6174       CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}"
6175   fi
6176   else
6177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5
6178$as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; }
6179   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6180   CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6181   ac_ext=cpp
6182ac_cpp='$CXXCPP $CPPFLAGS'
6183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6186
6187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h.  */
6189
6190int
6191main ()
6192{
6193
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198if ac_fn_cxx_try_compile "$LINENO"; then :
6199  if grep -q "unrecognized\|argument unused" conftest.err; then
6200        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6201        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203        :
6204      else
6205        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6207$as_echo "yes" >&6; }
6208
6209        CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}"
6210      fi
6211
6212else
6213  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216      :
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219   ac_ext=cpp
6220ac_cpp='$CXXCPP $CPPFLAGS'
6221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6224
6225
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fprofile-arcs" >&5
6227$as_echo_n "checking whether ${CC} accepts -fprofile-arcs... " >&6; }
6228   ac_gecode_save_CFLAGS="${CFLAGS}"
6229   CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS} -Werror"
6230   ac_ext=c
6231ac_cpp='$CPP $CPPFLAGS'
6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238
6239int
6240main ()
6241{
6242
6243  ;
6244  return 0;
6245}
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"; then :
6248  if grep -q "unrecognized\|argument unused" conftest.err; then
6249        CFLAGS="${ac_gecode_save_CFLAGS}"
6250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252        :
6253      else
6254        CFLAGS="${ac_gecode_save_CFLAGS}"
6255        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6256$as_echo "yes" >&6; }
6257
6258        CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}"
6259      fi
6260
6261else
6262  CFLAGS="${ac_gecode_save_CFLAGS}"
6263      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265      :
6266fi
6267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268   ac_ext=cpp
6269ac_cpp='$CXXCPP $CPPFLAGS'
6270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6273
6274   fi
6275
6276   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5
6278$as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; }
6279   if ${CXX} -ftest-coverage 2>&1 | grep "ignoring unknown option" -q; then
6280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282     :
6283   else
6284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6285$as_echo "yes" >&6; }
6286
6287       CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}"
6288       CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}"
6289   fi
6290   else
6291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5
6292$as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; }
6293   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6294   CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6295   ac_ext=cpp
6296ac_cpp='$CXXCPP $CPPFLAGS'
6297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6300
6301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303
6304int
6305main ()
6306{
6307
6308  ;
6309  return 0;
6310}
6311_ACEOF
6312if ac_fn_cxx_try_compile "$LINENO"; then :
6313  if grep -q "unrecognized\|argument unused" conftest.err; then
6314        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6315        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
6317        :
6318      else
6319        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6321$as_echo "yes" >&6; }
6322
6323        CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}"
6324      fi
6325
6326else
6327  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6328      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329$as_echo "no" >&6; }
6330      :
6331fi
6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333   ac_ext=cpp
6334ac_cpp='$CXXCPP $CPPFLAGS'
6335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6338
6339
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ftest-coverage" >&5
6341$as_echo_n "checking whether ${CC} accepts -ftest-coverage... " >&6; }
6342   ac_gecode_save_CFLAGS="${CFLAGS}"
6343   CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS} -Werror"
6344   ac_ext=c
6345ac_cpp='$CPP $CPPFLAGS'
6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352
6353int
6354main ()
6355{
6356
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_compile "$LINENO"; then :
6362  if grep -q "unrecognized\|argument unused" conftest.err; then
6363        CFLAGS="${ac_gecode_save_CFLAGS}"
6364        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366        :
6367      else
6368        CFLAGS="${ac_gecode_save_CFLAGS}"
6369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6370$as_echo "yes" >&6; }
6371
6372        CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}"
6373      fi
6374
6375else
6376  CFLAGS="${ac_gecode_save_CFLAGS}"
6377      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379      :
6380fi
6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382   ac_ext=cpp
6383ac_cpp='$CXXCPP $CPPFLAGS'
6384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6387
6388   fi
6389        DLLFLAGS=""-fprofile-arcs"${DLLFLAGS:+ }${DLLFLAGS}"
6390        DLLFLAGS=""-ftest-coverage"${DLLFLAGS:+ }${DLLFLAGS}"
6391     else
6392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394     fi
6395
6396ac_ext=c
6397ac_cpp='$CPP $CPPFLAGS'
6398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402     # The cast to long int works around a bug in the HP C Compiler
6403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6405# This bug is HP SR number 8606223364.
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6407$as_echo_n "checking size of int... " >&6; }
6408if ${ac_cv_sizeof_int+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6412
6413else
6414  if test "$ac_cv_type_int" = yes; then
6415     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6417as_fn_error 77 "cannot compute sizeof (int)
6418See \`config.log' for more details" "$LINENO" 5; }
6419   else
6420     ac_cv_sizeof_int=0
6421   fi
6422fi
6423
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6426$as_echo "$ac_cv_sizeof_int" >&6; }
6427
6428
6429
6430cat >>confdefs.h <<_ACEOF
6431#define SIZEOF_INT $ac_cv_sizeof_int
6432_ACEOF
6433
6434
6435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int has at least 32 bit" >&5
6436$as_echo_n "checking if int has at least 32 bit... " >&6; }
6437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439
6440int
6441main ()
6442{
6443
6444       #if SIZEOF_INT>=4
6445       #else
6446       blablub
6447       #endif
6448
6449  ;
6450  return 0;
6451}
6452_ACEOF
6453if ac_fn_c_try_compile "$LINENO"; then :
6454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455$as_echo "yes" >&6; }
6456else
6457  as_fn_error $? "Gecode needs at least 32 bit integers." "$LINENO" 5
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460
6461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if doubles have a big enough mantissa" >&5
6462$as_echo_n "checking if doubles have a big enough mantissa... " >&6; }
6463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h.  */
6465#include <float.h>
6466int
6467main ()
6468{
6469
6470       #if DBL_MANT_DIG>=53
6471       #else
6472       blablub
6473       #endif
6474
6475  ;
6476  return 0;
6477}
6478_ACEOF
6479if ac_fn_c_try_compile "$LINENO"; then :
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6481$as_echo "yes" >&6; }
6482else
6483  as_fn_error $? "Gecode needs a double mantissa of at least 53 bits." "$LINENO" 5
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487     ac_ext=cpp
6488ac_cpp='$CXXCPP $CPPFLAGS'
6489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492
6493
6494
6495  # Check whether --enable-thread was given.
6496if test "${enable_thread+set}" = set; then :
6497  enableval=$enable_thread;
6498fi
6499
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with multi-threading support" >&5
6501$as_echo_n "checking whether to build with multi-threading support... " >&6; }
6502  if test "${enable_thread:-yes}" = "yes"; then
6503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6504$as_echo "yes" >&6; }
6505    ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6506if test "x$ac_cv_header_unistd_h" = xyes; then :
6507
6508$as_echo "#define GECODE_HAS_UNISTD_H 1" >>confdefs.h
6509
6510
6511fi
6512
6513
6514    ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6515if test "x$ac_cv_header_pthread_h" = xyes; then :
6516
6517$as_echo "#define GECODE_THREADS_PTHREADS 1" >>confdefs.h
6518
6519     CFLAGS="-pthread${CFLAGS:+ }${CFLAGS}"
6520    CXXFLAGS="-pthread${CXXFLAGS:+ }${CXXFLAGS}"
6521     DLLFLAGS="-pthread${DLLFLAGS:+ }${DLLFLAGS}"
6522     ac_fn_cxx_check_header_mongrel "$LINENO" "os/lock.h" "ac_cv_header_os_lock_h" "$ac_includes_default"
6523if test "x$ac_cv_header_os_lock_h" = xyes; then :
6524
6525$as_echo "#define GECODE_THREADS_OSX_UNFAIR 1" >>confdefs.h
6526
6527else
6528  ac_fn_cxx_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
6529if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
6530
6531$as_echo "#define GECODE_THREADS_OSX 1" >>confdefs.h
6532
6533else
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spin locks" >&5
6535$as_echo_n "checking for spin locks... " >&6; }
6536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538#include <pthread.h>
6539int
6540main ()
6541{
6542pthread_spinlock_t t;
6543  ;
6544  return 0;
6545}
6546_ACEOF
6547if ac_fn_cxx_try_compile "$LINENO"; then :
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549$as_echo "yes" >&6; }
6550
6551$as_echo "#define GECODE_THREADS_PTHREADS_SPINLOCK 1" >>confdefs.h
6552
6553else
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559
6560fi
6561
6562
6563
6564fi
6565
6566
6567else
6568  ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
6569if test "x$ac_cv_header_windows_h" = xyes; then :
6570
6571$as_echo "#define GECODE_THREADS_WINDOWS 1" >>confdefs.h
6572
6573fi
6574
6575
6576
6577fi
6578
6579
6580  else
6581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583  fi
6584
6585
6586
6587  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6588if test "x$ac_cv_header_sys_time_h" = xyes; then :
6589
6590$as_echo "#define GECODE_USE_GETTIMEOFDAY 1" >>confdefs.h
6591
6592else
6593
6594$as_echo "#define GECODE_USE_CLOCK 1" >>confdefs.h
6595
6596fi
6597
6598
6599
6600
6601
6602# Check whether --with-freelist32-size-max was given.
6603if test "${with_freelist32_size_max+set}" = set; then :
6604  withval=$with_freelist32_size_max;
6605fi
6606
6607  if test "${with_freelist32_size_max:-no}" != "no"; then
6608
6609cat >>confdefs.h <<_ACEOF
6610#define GECODE_FREELIST_SIZE_MAX32 ${with_freelist32_size_max}
6611_ACEOF
6612
6613  fi
6614
6615
6616
6617# Check whether --with-freelist64-size-max was given.
6618if test "${with_freelist64_size_max+set}" = set; then :
6619  withval=$with_freelist64_size_max;
6620fi
6621
6622  if test "${with_freelist64_size_max:-no}" != "no"; then
6623
6624cat >>confdefs.h <<_ACEOF
6625#define GECODE_FREELIST_SIZE_MAX64 ${with_freelist64_size_max}
6626_ACEOF
6627
6628  fi
6629
6630
6631
6632case $ac_gecode_compiler_vendor in
6633gnu)
6634    DLLPATH=-L.
6635
6636    case $host_os in
6637     darwin*)
6638       need_soname="yes"
6639
6640       DLLFLAGS="-Wl,-single_module${DLLFLAGS:+ }${DLLFLAGS}"
6641       DLLFLAGS=""-dynamiclib"${DLLFLAGS:+ }${DLLFLAGS}"
6642       DLLEXT="${ac_gecode_soversion}.0.dylib"
6643
6644       SOSUFFIX=".${ac_gecode_soversion}.dylib"
6645
6646       SOLINKSUFFIX=".dylib"
6647
6648       sharedlibdir="${libdir}"
6649
6650       WLSONAME="-compatibility_version ${ac_gecode_soversion}.0 -current_version ${ac_gecode_soversion}.0 -install_name ${libdir}/"
6651
6652       GECODE_BUILD_SUPPORT_FLAG=""
6653
6654   GECODE_BUILD_KERNEL_FLAG=""
6655
6656   GECODE_BUILD_SEARCH_FLAG=""
6657
6658   GECODE_BUILD_INT_FLAG=""
6659
6660   GECODE_BUILD_FLOAT_FLAG=""
6661
6662   GECODE_BUILD_SET_FLAG=""
6663
6664   GECODE_BUILD_MINIMODEL_FLAG=""
6665
6666   GECODE_BUILD_GIST_FLAG=""
6667
6668   GECODE_BUILD_FLATZINC_FLAG=""
6669
6670   GECODE_BUILD_DRIVER_FLAG=""
6671
6672       ;;
6673     windows*)
6674       need_soname="no"
6675
6676       if test "${enable_static:-no}"  = "yes" -a \
6677           "${enable_shared:-yes}" = "yes"; then
6678         as_fn_error $? "Only either static or shared libraries can be built." "$LINENO" 5
6679       fi
6680       DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
6681       DLLEXT="dll"
6682
6683       SOSUFFIX=""
6684
6685       SOLINKSUFFIX=""
6686
6687       WLSONAME=""
6688
6689       if test "${enable_static:-no}" = "no"; then
6690      sharedlibdir="${bindir}"
6691
6692       else
6693          sharedlibdir="${libdir}"
6694
6695       fi
6696       GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
6697
6698   GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
6699
6700   GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
6701
6702   GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
6703
6704   GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
6705
6706   GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
6707
6708   GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
6709
6710   GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
6711
6712   GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
6713
6714   GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
6715
6716       ;;
6717     *)
6718       need_soname="yes"
6719
6720       DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
6721       DLLEXT="so.${ac_gecode_soversion}.0"
6722
6723       SOSUFFIX=".so.${ac_gecode_soversion}"
6724
6725       SOLINKSUFFIX=".so"
6726
6727       WLSONAME="-Wl,-soname="
6728
6729       sharedlibdir="${libdir}"
6730
6731       GECODE_BUILD_SUPPORT_FLAG=""
6732
6733   GECODE_BUILD_KERNEL_FLAG=""
6734
6735   GECODE_BUILD_SEARCH_FLAG=""
6736
6737   GECODE_BUILD_INT_FLAG=""
6738
6739   GECODE_BUILD_FLOAT_FLAG=""
6740
6741   GECODE_BUILD_SET_FLAG=""
6742
6743   GECODE_BUILD_MINIMODEL_FLAG=""
6744
6745   GECODE_BUILD_GIST_FLAG=""
6746
6747   GECODE_BUILD_FLATZINC_FLAG=""
6748
6749   GECODE_BUILD_DRIVER_FLAG=""
6750
6751       ;;
6752  esac
6753
6754   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
6756$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
6757   if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; then
6758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760     :
6761   else
6762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6763$as_echo "yes" >&6; }
6764
6765       CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
6766       CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
6767   fi
6768   else
6769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
6770$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
6771   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6772   CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6773   ac_ext=cpp
6774ac_cpp='$CXXCPP $CPPFLAGS'
6775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6778
6779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780/* end confdefs.h.  */
6781
6782int
6783main ()
6784{
6785
6786  ;
6787  return 0;
6788}
6789_ACEOF
6790if ac_fn_cxx_try_compile "$LINENO"; then :
6791  if grep -q "unrecognized\|argument unused" conftest.err; then
6792        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6795        :
6796      else
6797        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6799$as_echo "yes" >&6; }
6800
6801        CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
6802      fi
6803
6804else
6805  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6806      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808      :
6809fi
6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811   ac_ext=cpp
6812ac_cpp='$CXXCPP $CPPFLAGS'
6813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6816
6817
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5
6819$as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; }
6820   ac_gecode_save_CFLAGS="${CFLAGS}"
6821   CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror"
6822   ac_ext=c
6823ac_cpp='$CPP $CPPFLAGS'
6824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826ac_compiler_gnu=$ac_cv_c_compiler_gnu
6827
6828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830
6831int
6832main ()
6833{
6834
6835  ;
6836  return 0;
6837}
6838_ACEOF
6839if ac_fn_c_try_compile "$LINENO"; then :
6840  if grep -q "unrecognized\|argument unused" conftest.err; then
6841        CFLAGS="${ac_gecode_save_CFLAGS}"
6842        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843$as_echo "no" >&6; }
6844        :
6845      else
6846        CFLAGS="${ac_gecode_save_CFLAGS}"
6847        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848$as_echo "yes" >&6; }
6849
6850        CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
6851      fi
6852
6853else
6854  CFLAGS="${ac_gecode_save_CFLAGS}"
6855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856$as_echo "no" >&6; }
6857      :
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860   ac_ext=cpp
6861ac_cpp='$CXXCPP $CPPFLAGS'
6862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6865
6866   fi
6867
6868   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
6870$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
6871   if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; then
6872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874     :
6875   else
6876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6877$as_echo "yes" >&6; }
6878
6879       CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
6880       CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
6881   fi
6882   else
6883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
6884$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
6885   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
6886   CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror"
6887   ac_ext=cpp
6888ac_cpp='$CXXCPP $CPPFLAGS'
6889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6892
6893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_cxx_try_compile "$LINENO"; then :
6905  if grep -q "unrecognized\|argument unused" conftest.err; then
6906        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908$as_echo "no" >&6; }
6909        :
6910      else
6911        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6913$as_echo "yes" >&6; }
6914
6915        CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
6916      fi
6917
6918else
6919  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
6920      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922      :
6923fi
6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925   ac_ext=cpp
6926ac_cpp='$CXXCPP $CPPFLAGS'
6927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6930
6931
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5
6933$as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; }
6934   ac_gecode_save_CFLAGS="${CFLAGS}"
6935   CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror"
6936   ac_ext=c
6937ac_cpp='$CPP $CPPFLAGS'
6938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941
6942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944
6945int
6946main ()
6947{
6948
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953if ac_fn_c_try_compile "$LINENO"; then :
6954  if grep -q "unrecognized\|argument unused" conftest.err; then
6955        CFLAGS="${ac_gecode_save_CFLAGS}"
6956        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
6958        :
6959      else
6960        CFLAGS="${ac_gecode_save_CFLAGS}"
6961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6962$as_echo "yes" >&6; }
6963
6964        CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
6965      fi
6966
6967else
6968  CFLAGS="${ac_gecode_save_CFLAGS}"
6969      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970$as_echo "no" >&6; }
6971      :
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974   ac_ext=cpp
6975ac_cpp='$CXXCPP $CPPFLAGS'
6976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6979
6980   fi
6981
6982   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
6983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
6984$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
6985   if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; then
6986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987$as_echo "no" >&6; }
6988     :
6989   else
6990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6991$as_echo "yes" >&6; }
6992
6993       CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
6994       CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
6995   fi
6996   else
6997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
6998$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
6999   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7000   CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7001   ac_ext=cpp
7002ac_cpp='$CXXCPP $CPPFLAGS'
7003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7006
7007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h.  */
7009
7010int
7011main ()
7012{
7013
7014  ;
7015  return 0;
7016}
7017_ACEOF
7018if ac_fn_cxx_try_compile "$LINENO"; then :
7019  if grep -q "unrecognized\|argument unused" conftest.err; then
7020        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7021        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023        :
7024      else
7025        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7026        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7027$as_echo "yes" >&6; }
7028
7029        CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
7030      fi
7031
7032else
7033  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036      :
7037fi
7038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039   ac_ext=cpp
7040ac_cpp='$CXXCPP $CPPFLAGS'
7041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7044
7045
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5
7047$as_echo_n "checking whether ${CC} accepts -Wall... " >&6; }
7048   ac_gecode_save_CFLAGS="${CFLAGS}"
7049   CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror"
7050   ac_ext=c
7051ac_cpp='$CPP $CPPFLAGS'
7052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055
7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058
7059int
7060main ()
7061{
7062
7063  ;
7064  return 0;
7065}
7066_ACEOF
7067if ac_fn_c_try_compile "$LINENO"; then :
7068  if grep -q "unrecognized\|argument unused" conftest.err; then
7069        CFLAGS="${ac_gecode_save_CFLAGS}"
7070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
7072        :
7073      else
7074        CFLAGS="${ac_gecode_save_CFLAGS}"
7075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7076$as_echo "yes" >&6; }
7077
7078        CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
7079      fi
7080
7081else
7082  CFLAGS="${ac_gecode_save_CFLAGS}"
7083      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084$as_echo "no" >&6; }
7085      :
7086fi
7087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088   ac_ext=cpp
7089ac_cpp='$CXXCPP $CPPFLAGS'
7090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7093
7094   fi
7095
7096   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
7098$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
7099   if ${CXX} -Wno-unknown-pragmas 2>&1 | grep "ignoring unknown option" -q; then
7100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102     :
7103   else
7104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105$as_echo "yes" >&6; }
7106
7107       CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
7108       CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
7109   fi
7110   else
7111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
7112$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
7113   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7114   CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7115   ac_ext=cpp
7116ac_cpp='$CXXCPP $CPPFLAGS'
7117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7120
7121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123
7124int
7125main ()
7126{
7127
7128  ;
7129  return 0;
7130}
7131_ACEOF
7132if ac_fn_cxx_try_compile "$LINENO"; then :
7133  if grep -q "unrecognized\|argument unused" conftest.err; then
7134        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7135        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137        :
7138      else
7139        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7141$as_echo "yes" >&6; }
7142
7143        CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
7144      fi
7145
7146else
7147  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7148      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150      :
7151fi
7152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153   ac_ext=cpp
7154ac_cpp='$CXXCPP $CPPFLAGS'
7155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7158
7159
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5
7161$as_echo_n "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; }
7162   ac_gecode_save_CFLAGS="${CFLAGS}"
7163   CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS} -Werror"
7164   ac_ext=c
7165ac_cpp='$CPP $CPPFLAGS'
7166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169
7170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172
7173int
7174main ()
7175{
7176
7177  ;
7178  return 0;
7179}
7180_ACEOF
7181if ac_fn_c_try_compile "$LINENO"; then :
7182  if grep -q "unrecognized\|argument unused" conftest.err; then
7183        CFLAGS="${ac_gecode_save_CFLAGS}"
7184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186        :
7187      else
7188        CFLAGS="${ac_gecode_save_CFLAGS}"
7189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7190$as_echo "yes" >&6; }
7191
7192        CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
7193      fi
7194
7195else
7196  CFLAGS="${ac_gecode_save_CFLAGS}"
7197      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
7199      :
7200fi
7201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202   ac_ext=cpp
7203ac_cpp='$CXXCPP $CPPFLAGS'
7204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7207
7208   fi
7209
7210   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
7212$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
7213   if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; then
7214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215$as_echo "no" >&6; }
7216     :
7217   else
7218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7219$as_echo "yes" >&6; }
7220
7221       CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
7222       CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
7223   fi
7224   else
7225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
7226$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
7227   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7228   CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7229   ac_ext=cpp
7230ac_cpp='$CXXCPP $CPPFLAGS'
7231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7234
7235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237
7238int
7239main ()
7240{
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246if ac_fn_cxx_try_compile "$LINENO"; then :
7247  if grep -q "unrecognized\|argument unused" conftest.err; then
7248        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7249        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250$as_echo "no" >&6; }
7251        :
7252      else
7253        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7255$as_echo "yes" >&6; }
7256
7257        CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
7258      fi
7259
7260else
7261  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7262      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
7264      :
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267   ac_ext=cpp
7268ac_cpp='$CXXCPP $CPPFLAGS'
7269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7272
7273
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5
7275$as_echo_n "checking whether ${CC} accepts -pipe... " >&6; }
7276   ac_gecode_save_CFLAGS="${CFLAGS}"
7277   CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror"
7278   ac_ext=c
7279ac_cpp='$CPP $CPPFLAGS'
7280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286
7287int
7288main ()
7289{
7290
7291  ;
7292  return 0;
7293}
7294_ACEOF
7295if ac_fn_c_try_compile "$LINENO"; then :
7296  if grep -q "unrecognized\|argument unused" conftest.err; then
7297        CFLAGS="${ac_gecode_save_CFLAGS}"
7298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300        :
7301      else
7302        CFLAGS="${ac_gecode_save_CFLAGS}"
7303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7304$as_echo "yes" >&6; }
7305
7306        CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
7307      fi
7308
7309else
7310  CFLAGS="${ac_gecode_save_CFLAGS}"
7311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312$as_echo "no" >&6; }
7313      :
7314fi
7315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316   ac_ext=cpp
7317ac_cpp='$CXXCPP $CPPFLAGS'
7318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7321
7322   fi
7323
7324   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
7326$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
7327   if ${CXX} -std=c++11 2>&1 | grep "ignoring unknown option" -q; then
7328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330     :
7331   else
7332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7333$as_echo "yes" >&6; }
7334
7335       CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
7336       CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
7337   fi
7338   else
7339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
7340$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
7341   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7342   CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7343   ac_ext=cpp
7344ac_cpp='$CXXCPP $CPPFLAGS'
7345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7348
7349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351
7352int
7353main ()
7354{
7355
7356  ;
7357  return 0;
7358}
7359_ACEOF
7360if ac_fn_cxx_try_compile "$LINENO"; then :
7361  if grep -q "unrecognized\|argument unused" conftest.err; then
7362        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7363        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365        :
7366      else
7367        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7368        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7369$as_echo "yes" >&6; }
7370
7371        CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
7372      fi
7373
7374else
7375  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378      :
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381   ac_ext=cpp
7382ac_cpp='$CXXCPP $CPPFLAGS'
7383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7386
7387
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++11" >&5
7389$as_echo_n "checking whether ${CC} accepts -std=c++11... " >&6; }
7390   ac_gecode_save_CFLAGS="${CFLAGS}"
7391   CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS} -Werror"
7392   ac_ext=c
7393ac_cpp='$CPP $CPPFLAGS'
7394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397
7398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400
7401int
7402main ()
7403{
7404
7405  ;
7406  return 0;
7407}
7408_ACEOF
7409if ac_fn_c_try_compile "$LINENO"; then :
7410  if grep -q "unrecognized\|argument unused" conftest.err; then
7411        CFLAGS="${ac_gecode_save_CFLAGS}"
7412        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
7414        :
7415      else
7416        CFLAGS="${ac_gecode_save_CFLAGS}"
7417        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418$as_echo "yes" >&6; }
7419
7420        CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
7421      fi
7422
7423else
7424  CFLAGS="${ac_gecode_save_CFLAGS}"
7425      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426$as_echo "no" >&6; }
7427      :
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430   ac_ext=cpp
7431ac_cpp='$CXXCPP $CPPFLAGS'
7432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7435
7436   fi
7437
7438  if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
7440$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
7441   if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; then
7442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
7444
7445   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7447$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7448   if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451     :
7452   else
7453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7454$as_echo "yes" >&6; }
7455
7456       CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7457       CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7458   fi
7459   else
7460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7461$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7462   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7463   CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7464   ac_ext=cpp
7465ac_cpp='$CXXCPP $CPPFLAGS'
7466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7469
7470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472
7473int
7474main ()
7475{
7476
7477  ;
7478  return 0;
7479}
7480_ACEOF
7481if ac_fn_cxx_try_compile "$LINENO"; then :
7482  if grep -q "unrecognized\|argument unused" conftest.err; then
7483        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7484        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485$as_echo "no" >&6; }
7486        :
7487      else
7488        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7490$as_echo "yes" >&6; }
7491
7492        CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7493      fi
7494
7495else
7496  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7497      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
7499      :
7500fi
7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502   ac_ext=cpp
7503ac_cpp='$CXXCPP $CPPFLAGS'
7504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7507
7508
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7510$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7511   ac_gecode_save_CFLAGS="${CFLAGS}"
7512   CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7513   ac_ext=c
7514ac_cpp='$CPP $CPPFLAGS'
7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521
7522int
7523main ()
7524{
7525
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530if ac_fn_c_try_compile "$LINENO"; then :
7531  if grep -q "unrecognized\|argument unused" conftest.err; then
7532        CFLAGS="${ac_gecode_save_CFLAGS}"
7533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534$as_echo "no" >&6; }
7535        :
7536      else
7537        CFLAGS="${ac_gecode_save_CFLAGS}"
7538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7539$as_echo "yes" >&6; }
7540
7541        CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7542      fi
7543
7544else
7545  CFLAGS="${ac_gecode_save_CFLAGS}"
7546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548      :
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551   ac_ext=cpp
7552ac_cpp='$CXXCPP $CPPFLAGS'
7553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7556
7557   fi
7558   else
7559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560$as_echo "yes" >&6; }
7561
7562       CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
7563    CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
7564   fi
7565   else
7566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
7567$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
7568   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7569   CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7570   ac_ext=cpp
7571ac_cpp='$CXXCPP $CPPFLAGS'
7572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7575
7576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h.  */
7578
7579int
7580main ()
7581{
7582
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587if ac_fn_cxx_try_compile "$LINENO"; then :
7588  if grep -q "unrecognized\|argument unused" conftest.err; then
7589        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7590        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592
7593   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7595$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7596   if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599     :
7600   else
7601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602$as_echo "yes" >&6; }
7603
7604       CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7605       CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7606   fi
7607   else
7608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7609$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7610   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7611   CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7612   ac_ext=cpp
7613ac_cpp='$CXXCPP $CPPFLAGS'
7614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7617
7618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620
7621int
7622main ()
7623{
7624
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629if ac_fn_cxx_try_compile "$LINENO"; then :
7630  if grep -q "unrecognized\|argument unused" conftest.err; then
7631        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633$as_echo "no" >&6; }
7634        :
7635      else
7636        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7638$as_echo "yes" >&6; }
7639
7640        CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7641      fi
7642
7643else
7644  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7645      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647      :
7648fi
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650   ac_ext=cpp
7651ac_cpp='$CXXCPP $CPPFLAGS'
7652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7655
7656
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7658$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7659   ac_gecode_save_CFLAGS="${CFLAGS}"
7660   CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7661   ac_ext=c
7662ac_cpp='$CPP $CPPFLAGS'
7663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h.  */
7669
7670int
7671main ()
7672{
7673
7674  ;
7675  return 0;
7676}
7677_ACEOF
7678if ac_fn_c_try_compile "$LINENO"; then :
7679  if grep -q "unrecognized\|argument unused" conftest.err; then
7680        CFLAGS="${ac_gecode_save_CFLAGS}"
7681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
7683        :
7684      else
7685        CFLAGS="${ac_gecode_save_CFLAGS}"
7686        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687$as_echo "yes" >&6; }
7688
7689        CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7690      fi
7691
7692else
7693  CFLAGS="${ac_gecode_save_CFLAGS}"
7694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696      :
7697fi
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699   ac_ext=cpp
7700ac_cpp='$CXXCPP $CPPFLAGS'
7701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7704
7705   fi
7706      else
7707        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7709$as_echo "yes" >&6; }
7710
7711       CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
7712    CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
7713      fi
7714
7715else
7716  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7717      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719
7720   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7722$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7723   if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
7724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725$as_echo "no" >&6; }
7726     :
7727   else
7728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7729$as_echo "yes" >&6; }
7730
7731       CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7732       CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7733   fi
7734   else
7735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
7736$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
7737   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7738   CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7739   ac_ext=cpp
7740ac_cpp='$CXXCPP $CPPFLAGS'
7741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7744
7745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746/* end confdefs.h.  */
7747
7748int
7749main ()
7750{
7751
7752  ;
7753  return 0;
7754}
7755_ACEOF
7756if ac_fn_cxx_try_compile "$LINENO"; then :
7757  if grep -q "unrecognized\|argument unused" conftest.err; then
7758        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7759        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
7761        :
7762      else
7763        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765$as_echo "yes" >&6; }
7766
7767        CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
7768      fi
7769
7770else
7771  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7772      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774      :
7775fi
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777   ac_ext=cpp
7778ac_cpp='$CXXCPP $CPPFLAGS'
7779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7782
7783
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
7785$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
7786   ac_gecode_save_CFLAGS="${CFLAGS}"
7787   CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
7788   ac_ext=c
7789ac_cpp='$CPP $CPPFLAGS'
7790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793
7794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796
7797int
7798main ()
7799{
7800
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_compile "$LINENO"; then :
7806  if grep -q "unrecognized\|argument unused" conftest.err; then
7807        CFLAGS="${ac_gecode_save_CFLAGS}"
7808        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
7810        :
7811      else
7812        CFLAGS="${ac_gecode_save_CFLAGS}"
7813        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814$as_echo "yes" >&6; }
7815
7816        CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
7817      fi
7818
7819else
7820  CFLAGS="${ac_gecode_save_CFLAGS}"
7821      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823      :
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826   ac_ext=cpp
7827ac_cpp='$CXXCPP $CPPFLAGS'
7828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7831
7832   fi
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835   ac_ext=cpp
7836ac_cpp='$CXXCPP $CPPFLAGS'
7837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7840
7841   fi
7842
7843  ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll"
7844if test "x$ac_cv_func___builtin_ffsll" = xyes; then :
7845
7846$as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h
7847
7848fi
7849
7850  ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll"
7851if test "x$ac_cv_func___builtin_popcountll" = xyes; then :
7852
7853$as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h
7854
7855fi
7856
7857
7858  docdir="${datadir}/doc/gecode"
7859
7860
7861    MANIFEST="@true"
7862
7863
7864    SBJEXT="s"
7865
7866  LIBEXT="${DLLEXT}"
7867
7868  LIBPREFIX="lib${ac_gecode_userprefix}gecode"
7869
7870  STATICLIBEXT="a"
7871
7872  MINUSLDIR="-L${libdir}"
7873
7874  LINKLIBDIR=""
7875
7876
7877  cygpathprefix=$prefix
7878  test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
7879  cygpathprefix="${cygpathprefix}"
7880
7881
7882  COMPILEOBJ="-c -o "
7883
7884  COMPILESBJ="-S -o "
7885
7886  CXXIN=" "
7887
7888  CCIN=" "
7889
7890  EXAMPLES_EXTRA_CXXFLAGS=""
7891
7892
7893    INSTALLLIBS="no"
7894
7895
7896  LINKPREFIX="-l${ac_gecode_userprefix}gecode"
7897
7898  LINKSUFFIX=""
7899
7900
7901    LINKOUTPUT="-o "
7902
7903    EXEOUTPUT="-o "
7904
7905
7906    SUPPORT="support"
7907
7908  KERNEL="kernel"
7909
7910  SEARCH="search"
7911
7912  INT="int"
7913
7914  FLOAT="float"
7915
7916  SET="set"
7917
7918  MM="minimodel"
7919
7920  GIST="gist"
7921
7922  FLATZINC="flatzinc"
7923
7924  DRIVER="driver"
7925
7926    # Check whether --enable-gcc-visibility was given.
7927if test "${enable_gcc_visibility+set}" = set; then :
7928  enableval=$enable_gcc_visibility;
7929fi
7930
7931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5
7932$as_echo_n "checking whether to use gcc visibility attributes... " >&6; }
7933     if test "${enable_gcc_visibility:-yes}" = "yes"; then
7934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935$as_echo "yes" >&6; }
7936        if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
7937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
7938$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
7939   if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; then
7940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941$as_echo "no" >&6; }
7942     :
7943   else
7944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945$as_echo "yes" >&6; }
7946
7947
7948$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
7949
7950           CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
7951    CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
7952   fi
7953   else
7954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
7955$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
7956   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
7957   CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror"
7958   ac_ext=cpp
7959ac_cpp='$CXXCPP $CPPFLAGS'
7960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7963
7964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966
7967int
7968main ()
7969{
7970
7971  ;
7972  return 0;
7973}
7974_ACEOF
7975if ac_fn_cxx_try_compile "$LINENO"; then :
7976  if grep -q "unrecognized\|argument unused" conftest.err; then
7977        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980        :
7981      else
7982        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984$as_echo "yes" >&6; }
7985
7986
7987$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
7988
7989           CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
7990    CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
7991      fi
7992
7993else
7994  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
7995      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997      :
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000   ac_ext=cpp
8001ac_cpp='$CXXCPP $CPPFLAGS'
8002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8005
8006   fi
8007
8008     else
8009        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011     fi
8012
8013  if test "${enable_debug:-no}" = "no" -a "${enable_gcov:-no}" = "no"; then
8014        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5
8015$as_echo_n "checking if compiler supports forced inlining... " >&6; }
8016  ac_ext=cpp
8017ac_cpp='$CXXCPP $CPPFLAGS'
8018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8021
8022  ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8023  CXXFLAGS="${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026#ifndef __clang__
8027                      # error "Macro __clang__ is undefined!"
8028              /* For some compilers (eg. SGI's CC), #error is not
8029                 enough...  */
8030              please, do fail
8031              #endif
8032int
8033main ()
8034{
8035
8036  ;
8037  return 0;
8038}
8039_ACEOF
8040if ac_fn_cxx_try_compile "$LINENO"; then :
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043
8044$as_echo "#define forceinline inline" >>confdefs.h
8045
8046else
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049
8050         inline __attribute__ ((__always_inline__)) void foo(void) {}
8051int
8052main ()
8053{
8054
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059if ac_fn_cxx_try_compile "$LINENO"; then :
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8061$as_echo "yes" >&6; }
8062
8063$as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h
8064
8065else
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
8068
8069$as_echo "#define forceinline inline" >>confdefs.h
8070
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073fi
8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075  CXXFLAGS=${ac_gecode_save_CXXFLAGS}
8076  ac_ext=cpp
8077ac_cpp='$CXXCPP $CPPFLAGS'
8078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8081
8082
8083   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8085$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8086   if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; then
8087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089     :
8090   else
8091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092$as_echo "yes" >&6; }
8093
8094       CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
8095       CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
8096   fi
8097   else
8098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8099$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8100   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8101   CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8102   ac_ext=cpp
8103ac_cpp='$CXXCPP $CPPFLAGS'
8104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8107
8108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110
8111int
8112main ()
8113{
8114
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119if ac_fn_cxx_try_compile "$LINENO"; then :
8120  if grep -q "unrecognized\|argument unused" conftest.err; then
8121        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8122        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124        :
8125      else
8126        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8128$as_echo "yes" >&6; }
8129
8130        CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
8131      fi
8132
8133else
8134  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8135      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136$as_echo "no" >&6; }
8137      :
8138fi
8139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140   ac_ext=cpp
8141ac_cpp='$CXXCPP $CPPFLAGS'
8142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8145
8146
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5
8148$as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
8149   ac_gecode_save_CFLAGS="${CFLAGS}"
8150   CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror"
8151   ac_ext=c
8152ac_cpp='$CPP $CPPFLAGS'
8153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h.  */
8159
8160int
8161main ()
8162{
8163
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168if ac_fn_c_try_compile "$LINENO"; then :
8169  if grep -q "unrecognized\|argument unused" conftest.err; then
8170        CFLAGS="${ac_gecode_save_CFLAGS}"
8171        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172$as_echo "no" >&6; }
8173        :
8174      else
8175        CFLAGS="${ac_gecode_save_CFLAGS}"
8176        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177$as_echo "yes" >&6; }
8178
8179        CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
8180      fi
8181
8182else
8183  CFLAGS="${ac_gecode_save_CFLAGS}"
8184      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
8186      :
8187fi
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189   ac_ext=cpp
8190ac_cpp='$CXXCPP $CPPFLAGS'
8191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8194
8195   fi
8196
8197   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
8199$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
8200   if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; then
8201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
8203     :
8204   else
8205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8206$as_echo "yes" >&6; }
8207
8208       CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
8209       CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
8210   fi
8211   else
8212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
8213$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
8214   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8215   CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8216   ac_ext=cpp
8217ac_cpp='$CXXCPP $CPPFLAGS'
8218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8221
8222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h.  */
8224
8225int
8226main ()
8227{
8228
8229  ;
8230  return 0;
8231}
8232_ACEOF
8233if ac_fn_cxx_try_compile "$LINENO"; then :
8234  if grep -q "unrecognized\|argument unused" conftest.err; then
8235        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8236        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
8238        :
8239      else
8240        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8242$as_echo "yes" >&6; }
8243
8244        CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
8245      fi
8246
8247else
8248  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8249      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251      :
8252fi
8253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254   ac_ext=cpp
8255ac_cpp='$CXXCPP $CPPFLAGS'
8256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8259
8260
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5
8262$as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; }
8263   ac_gecode_save_CFLAGS="${CFLAGS}"
8264   CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror"
8265   ac_ext=c
8266ac_cpp='$CPP $CPPFLAGS'
8267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_compile "$LINENO"; then :
8283  if grep -q "unrecognized\|argument unused" conftest.err; then
8284        CFLAGS="${ac_gecode_save_CFLAGS}"
8285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286$as_echo "no" >&6; }
8287        :
8288      else
8289        CFLAGS="${ac_gecode_save_CFLAGS}"
8290        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291$as_echo "yes" >&6; }
8292
8293        CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
8294      fi
8295
8296else
8297  CFLAGS="${ac_gecode_save_CFLAGS}"
8298      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299$as_echo "no" >&6; }
8300      :
8301fi
8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303   ac_ext=cpp
8304ac_cpp='$CXXCPP $CPPFLAGS'
8305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8308
8309   fi
8310
8311   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5
8313$as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; }
8314   if ${CXX} -fno-math-errno 2>&1 | grep "ignoring unknown option" -q; then
8315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316$as_echo "no" >&6; }
8317     :
8318   else
8319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8320$as_echo "yes" >&6; }
8321
8322       CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}"
8323       CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}"
8324   fi
8325   else
8326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5
8327$as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; }
8328   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8329   CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8330   ac_ext=cpp
8331ac_cpp='$CXXCPP $CPPFLAGS'
8332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8335
8336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_cxx_try_compile "$LINENO"; then :
8348  if grep -q "unrecognized\|argument unused" conftest.err; then
8349        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351$as_echo "no" >&6; }
8352        :
8353      else
8354        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8356$as_echo "yes" >&6; }
8357
8358        CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}"
8359      fi
8360
8361else
8362  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8363      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365      :
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368   ac_ext=cpp
8369ac_cpp='$CXXCPP $CPPFLAGS'
8370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8373
8374
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-math-errno" >&5
8376$as_echo_n "checking whether ${CC} accepts -fno-math-errno... " >&6; }
8377   ac_gecode_save_CFLAGS="${CFLAGS}"
8378   CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS} -Werror"
8379   ac_ext=c
8380ac_cpp='$CPP $CPPFLAGS'
8381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8383ac_compiler_gnu=$ac_cv_c_compiler_gnu
8384
8385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387
8388int
8389main ()
8390{
8391
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_compile "$LINENO"; then :
8397  if grep -q "unrecognized\|argument unused" conftest.err; then
8398        CFLAGS="${ac_gecode_save_CFLAGS}"
8399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
8401        :
8402      else
8403        CFLAGS="${ac_gecode_save_CFLAGS}"
8404        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405$as_echo "yes" >&6; }
8406
8407        CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}"
8408      fi
8409
8410else
8411  CFLAGS="${ac_gecode_save_CFLAGS}"
8412      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414      :
8415fi
8416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417   ac_ext=cpp
8418ac_cpp='$CXXCPP $CPPFLAGS'
8419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8422
8423   fi
8424
8425   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5
8427$as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; }
8428   if ${CXX} -ffinite-math-only 2>&1 | grep "ignoring unknown option" -q; then
8429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430$as_echo "no" >&6; }
8431     :
8432   else
8433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434$as_echo "yes" >&6; }
8435
8436       CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}"
8437       CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}"
8438   fi
8439   else
8440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5
8441$as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; }
8442   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8443   CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8444   ac_ext=cpp
8445ac_cpp='$CXXCPP $CPPFLAGS'
8446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8449
8450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452
8453int
8454main ()
8455{
8456
8457  ;
8458  return 0;
8459}
8460_ACEOF
8461if ac_fn_cxx_try_compile "$LINENO"; then :
8462  if grep -q "unrecognized\|argument unused" conftest.err; then
8463        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465$as_echo "no" >&6; }
8466        :
8467      else
8468        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8470$as_echo "yes" >&6; }
8471
8472        CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}"
8473      fi
8474
8475else
8476  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8477      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478$as_echo "no" >&6; }
8479      :
8480fi
8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482   ac_ext=cpp
8483ac_cpp='$CXXCPP $CPPFLAGS'
8484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8487
8488
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ffinite-math-only" >&5
8490$as_echo_n "checking whether ${CC} accepts -ffinite-math-only... " >&6; }
8491   ac_gecode_save_CFLAGS="${CFLAGS}"
8492   CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS} -Werror"
8493   ac_ext=c
8494ac_cpp='$CPP $CPPFLAGS'
8495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8497ac_compiler_gnu=$ac_cv_c_compiler_gnu
8498
8499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"; then :
8511  if grep -q "unrecognized\|argument unused" conftest.err; then
8512        CFLAGS="${ac_gecode_save_CFLAGS}"
8513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514$as_echo "no" >&6; }
8515        :
8516      else
8517        CFLAGS="${ac_gecode_save_CFLAGS}"
8518        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519$as_echo "yes" >&6; }
8520
8521        CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}"
8522      fi
8523
8524else
8525  CFLAGS="${ac_gecode_save_CFLAGS}"
8526      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528      :
8529fi
8530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531   ac_ext=cpp
8532ac_cpp='$CXXCPP $CPPFLAGS'
8533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8536
8537   fi
8538
8539   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5
8541$as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; }
8542   if ${CXX} -fno-rounding-math 2>&1 | grep "ignoring unknown option" -q; then
8543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545     :
8546   else
8547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548$as_echo "yes" >&6; }
8549
8550       CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}"
8551       CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}"
8552   fi
8553   else
8554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5
8555$as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; }
8556   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8557   CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8558   ac_ext=cpp
8559ac_cpp='$CXXCPP $CPPFLAGS'
8560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8563
8564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h.  */
8566
8567int
8568main ()
8569{
8570
8571  ;
8572  return 0;
8573}
8574_ACEOF
8575if ac_fn_cxx_try_compile "$LINENO"; then :
8576  if grep -q "unrecognized\|argument unused" conftest.err; then
8577        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
8580        :
8581      else
8582        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8584$as_echo "yes" >&6; }
8585
8586        CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}"
8587      fi
8588
8589else
8590  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593      :
8594fi
8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596   ac_ext=cpp
8597ac_cpp='$CXXCPP $CPPFLAGS'
8598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8601
8602
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-rounding-math" >&5
8604$as_echo_n "checking whether ${CC} accepts -fno-rounding-math... " >&6; }
8605   ac_gecode_save_CFLAGS="${CFLAGS}"
8606   CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS} -Werror"
8607   ac_ext=c
8608ac_cpp='$CPP $CPPFLAGS'
8609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611ac_compiler_gnu=$ac_cv_c_compiler_gnu
8612
8613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615
8616int
8617main ()
8618{
8619
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_compile "$LINENO"; then :
8625  if grep -q "unrecognized\|argument unused" conftest.err; then
8626        CFLAGS="${ac_gecode_save_CFLAGS}"
8627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
8629        :
8630      else
8631        CFLAGS="${ac_gecode_save_CFLAGS}"
8632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633$as_echo "yes" >&6; }
8634
8635        CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}"
8636      fi
8637
8638else
8639  CFLAGS="${ac_gecode_save_CFLAGS}"
8640      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642      :
8643fi
8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645   ac_ext=cpp
8646ac_cpp='$CXXCPP $CPPFLAGS'
8647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8650
8651   fi
8652
8653   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5
8655$as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; }
8656   if ${CXX} -fno-signaling-nans 2>&1 | grep "ignoring unknown option" -q; then
8657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659     :
8660   else
8661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8662$as_echo "yes" >&6; }
8663
8664       CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}"
8665       CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}"
8666   fi
8667   else
8668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5
8669$as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; }
8670   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8671   CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8672   ac_ext=cpp
8673ac_cpp='$CXXCPP $CPPFLAGS'
8674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8677
8678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680
8681int
8682main ()
8683{
8684
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_cxx_try_compile "$LINENO"; then :
8690  if grep -q "unrecognized\|argument unused" conftest.err; then
8691        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8692        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
8694        :
8695      else
8696        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8698$as_echo "yes" >&6; }
8699
8700        CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}"
8701      fi
8702
8703else
8704  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707      :
8708fi
8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710   ac_ext=cpp
8711ac_cpp='$CXXCPP $CPPFLAGS'
8712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8715
8716
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-signaling-nans" >&5
8718$as_echo_n "checking whether ${CC} accepts -fno-signaling-nans... " >&6; }
8719   ac_gecode_save_CFLAGS="${CFLAGS}"
8720   CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS} -Werror"
8721   ac_ext=c
8722ac_cpp='$CPP $CPPFLAGS'
8723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725ac_compiler_gnu=$ac_cv_c_compiler_gnu
8726
8727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729
8730int
8731main ()
8732{
8733
8734  ;
8735  return 0;
8736}
8737_ACEOF
8738if ac_fn_c_try_compile "$LINENO"; then :
8739  if grep -q "unrecognized\|argument unused" conftest.err; then
8740        CFLAGS="${ac_gecode_save_CFLAGS}"
8741        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
8743        :
8744      else
8745        CFLAGS="${ac_gecode_save_CFLAGS}"
8746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8747$as_echo "yes" >&6; }
8748
8749        CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}"
8750      fi
8751
8752else
8753  CFLAGS="${ac_gecode_save_CFLAGS}"
8754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
8756      :
8757fi
8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759   ac_ext=cpp
8760ac_cpp='$CXXCPP $CPPFLAGS'
8761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8764
8765   fi
8766
8767   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5
8769$as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; }
8770   if ${CXX} -fcx-limited-range 2>&1 | grep "ignoring unknown option" -q; then
8771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772$as_echo "no" >&6; }
8773     :
8774   else
8775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8776$as_echo "yes" >&6; }
8777
8778       CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}"
8779       CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}"
8780   fi
8781   else
8782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5
8783$as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; }
8784   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8785   CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8786   ac_ext=cpp
8787ac_cpp='$CXXCPP $CPPFLAGS'
8788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8791
8792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794
8795int
8796main ()
8797{
8798
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803if ac_fn_cxx_try_compile "$LINENO"; then :
8804  if grep -q "unrecognized\|argument unused" conftest.err; then
8805        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808        :
8809      else
8810        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812$as_echo "yes" >&6; }
8813
8814        CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}"
8815      fi
8816
8817else
8818  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8819      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820$as_echo "no" >&6; }
8821      :
8822fi
8823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824   ac_ext=cpp
8825ac_cpp='$CXXCPP $CPPFLAGS'
8826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8829
8830
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fcx-limited-range" >&5
8832$as_echo_n "checking whether ${CC} accepts -fcx-limited-range... " >&6; }
8833   ac_gecode_save_CFLAGS="${CFLAGS}"
8834   CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS} -Werror"
8835   ac_ext=c
8836ac_cpp='$CPP $CPPFLAGS'
8837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8839ac_compiler_gnu=$ac_cv_c_compiler_gnu
8840
8841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843
8844int
8845main ()
8846{
8847
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_compile "$LINENO"; then :
8853  if grep -q "unrecognized\|argument unused" conftest.err; then
8854        CFLAGS="${ac_gecode_save_CFLAGS}"
8855        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
8857        :
8858      else
8859        CFLAGS="${ac_gecode_save_CFLAGS}"
8860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8861$as_echo "yes" >&6; }
8862
8863        CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}"
8864      fi
8865
8866else
8867  CFLAGS="${ac_gecode_save_CFLAGS}"
8868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869$as_echo "no" >&6; }
8870      :
8871fi
8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873   ac_ext=cpp
8874ac_cpp='$CXXCPP $CPPFLAGS'
8875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8878
8879   fi
8880
8881   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
8882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5
8883$as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; }
8884   if ${CXX} -mthreads 2>&1 | grep "ignoring unknown option" -q; then
8885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
8887     :
8888   else
8889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8890$as_echo "yes" >&6; }
8891
8892       CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}"
8893       CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}"
8894   fi
8895   else
8896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5
8897$as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; }
8898   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
8899   CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS} -Werror"
8900   ac_ext=cpp
8901ac_cpp='$CXXCPP $CPPFLAGS'
8902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8905
8906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h.  */
8908
8909int
8910main ()
8911{
8912
8913  ;
8914  return 0;
8915}
8916_ACEOF
8917if ac_fn_cxx_try_compile "$LINENO"; then :
8918  if grep -q "unrecognized\|argument unused" conftest.err; then
8919        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
8922        :
8923      else
8924        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926$as_echo "yes" >&6; }
8927
8928        CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}"
8929      fi
8930
8931else
8932  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
8933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
8935      :
8936fi
8937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938   ac_ext=cpp
8939ac_cpp='$CXXCPP $CPPFLAGS'
8940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8943
8944
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mthreads" >&5
8946$as_echo_n "checking whether ${CC} accepts -mthreads... " >&6; }
8947   ac_gecode_save_CFLAGS="${CFLAGS}"
8948   CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS} -Werror"
8949   ac_ext=c
8950ac_cpp='$CPP $CPPFLAGS'
8951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953ac_compiler_gnu=$ac_cv_c_compiler_gnu
8954
8955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957
8958int
8959main ()
8960{
8961
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966if ac_fn_c_try_compile "$LINENO"; then :
8967  if grep -q "unrecognized\|argument unused" conftest.err; then
8968        CFLAGS="${ac_gecode_save_CFLAGS}"
8969        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971        :
8972      else
8973        CFLAGS="${ac_gecode_save_CFLAGS}"
8974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8975$as_echo "yes" >&6; }
8976
8977        CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}"
8978      fi
8979
8980else
8981  CFLAGS="${ac_gecode_save_CFLAGS}"
8982      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983$as_echo "no" >&6; }
8984      :
8985fi
8986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987   ac_ext=cpp
8988ac_cpp='$CXXCPP $CPPFLAGS'
8989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8992
8993   fi
8994  else
8995    if test "${enable_debug:-no}" = "yes"; then
8996
8997$as_echo "#define forceinline inline" >>confdefs.h
8998
8999
9000   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
9002$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
9003   if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; then
9004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005$as_echo "no" >&6; }
9006     :
9007   else
9008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9009$as_echo "yes" >&6; }
9010
9011       CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
9012       CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
9013   fi
9014   else
9015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
9016$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
9017   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9018   CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9019   ac_ext=cpp
9020ac_cpp='$CXXCPP $CPPFLAGS'
9021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9024
9025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h.  */
9027
9028int
9029main ()
9030{
9031
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036if ac_fn_cxx_try_compile "$LINENO"; then :
9037  if grep -q "unrecognized\|argument unused" conftest.err; then
9038        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9039        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040$as_echo "no" >&6; }
9041        :
9042      else
9043        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9044        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9045$as_echo "yes" >&6; }
9046
9047        CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
9048      fi
9049
9050else
9051  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9052      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
9054      :
9055fi
9056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057   ac_ext=cpp
9058ac_cpp='$CXXCPP $CPPFLAGS'
9059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9062
9063
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5
9065$as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; }
9066   ac_gecode_save_CFLAGS="${CFLAGS}"
9067   CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror"
9068   ac_ext=c
9069ac_cpp='$CPP $CPPFLAGS'
9070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073
9074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075/* end confdefs.h.  */
9076
9077int
9078main ()
9079{
9080
9081  ;
9082  return 0;
9083}
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"; then :
9086  if grep -q "unrecognized\|argument unused" conftest.err; then
9087        CFLAGS="${ac_gecode_save_CFLAGS}"
9088        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089$as_echo "no" >&6; }
9090        :
9091      else
9092        CFLAGS="${ac_gecode_save_CFLAGS}"
9093        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9094$as_echo "yes" >&6; }
9095
9096        CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
9097      fi
9098
9099else
9100  CFLAGS="${ac_gecode_save_CFLAGS}"
9101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102$as_echo "no" >&6; }
9103      :
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106   ac_ext=cpp
9107ac_cpp='$CXXCPP $CPPFLAGS'
9108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9111
9112   fi
9113
9114   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
9116$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
9117   if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; then
9118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9120     :
9121   else
9122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9123$as_echo "yes" >&6; }
9124
9125       CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
9126       CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
9127   fi
9128   else
9129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
9130$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
9131   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9132   CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9133   ac_ext=cpp
9134ac_cpp='$CXXCPP $CPPFLAGS'
9135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9138
9139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h.  */
9141
9142int
9143main ()
9144{
9145
9146  ;
9147  return 0;
9148}
9149_ACEOF
9150if ac_fn_cxx_try_compile "$LINENO"; then :
9151  if grep -q "unrecognized\|argument unused" conftest.err; then
9152        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9153        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154$as_echo "no" >&6; }
9155        :
9156      else
9157        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9159$as_echo "yes" >&6; }
9160
9161        CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
9162      fi
9163
9164else
9165  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9166      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167$as_echo "no" >&6; }
9168      :
9169fi
9170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171   ac_ext=cpp
9172ac_cpp='$CXXCPP $CPPFLAGS'
9173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9176
9177
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5
9179$as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; }
9180   ac_gecode_save_CFLAGS="${CFLAGS}"
9181   CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror"
9182   ac_ext=c
9183ac_cpp='$CPP $CPPFLAGS'
9184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9186ac_compiler_gnu=$ac_cv_c_compiler_gnu
9187
9188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h.  */
9190
9191int
9192main ()
9193{
9194
9195  ;
9196  return 0;
9197}
9198_ACEOF
9199if ac_fn_c_try_compile "$LINENO"; then :
9200  if grep -q "unrecognized\|argument unused" conftest.err; then
9201        CFLAGS="${ac_gecode_save_CFLAGS}"
9202        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
9204        :
9205      else
9206        CFLAGS="${ac_gecode_save_CFLAGS}"
9207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9208$as_echo "yes" >&6; }
9209
9210        CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
9211      fi
9212
9213else
9214  CFLAGS="${ac_gecode_save_CFLAGS}"
9215      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216$as_echo "no" >&6; }
9217      :
9218fi
9219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220   ac_ext=cpp
9221ac_cpp='$CXXCPP $CPPFLAGS'
9222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9225
9226   fi
9227    fi
9228  fi
9229
9230   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5
9232$as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; }
9233   if ${CXX} -Qunused-arguments 2>&1 | grep "ignoring unknown option" -q; then
9234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235$as_echo "no" >&6; }
9236     :
9237   else
9238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9239$as_echo "yes" >&6; }
9240
9241       CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}"
9242       CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}"
9243   fi
9244   else
9245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5
9246$as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; }
9247   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9248   CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9249   ac_ext=cpp
9250ac_cpp='$CXXCPP $CPPFLAGS'
9251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9254
9255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h.  */
9257
9258int
9259main ()
9260{
9261
9262  ;
9263  return 0;
9264}
9265_ACEOF
9266if ac_fn_cxx_try_compile "$LINENO"; then :
9267  if grep -q "unrecognized\|argument unused" conftest.err; then
9268        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270$as_echo "no" >&6; }
9271        :
9272      else
9273        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9275$as_echo "yes" >&6; }
9276
9277        CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}"
9278      fi
9279
9280else
9281  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9282      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283$as_echo "no" >&6; }
9284      :
9285fi
9286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287   ac_ext=cpp
9288ac_cpp='$CXXCPP $CPPFLAGS'
9289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9292
9293
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Qunused-arguments" >&5
9295$as_echo_n "checking whether ${CC} accepts -Qunused-arguments... " >&6; }
9296   ac_gecode_save_CFLAGS="${CFLAGS}"
9297   CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS} -Werror"
9298   ac_ext=c
9299ac_cpp='$CPP $CPPFLAGS'
9300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306
9307int
9308main ()
9309{
9310
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_compile "$LINENO"; then :
9316  if grep -q "unrecognized\|argument unused" conftest.err; then
9317        CFLAGS="${ac_gecode_save_CFLAGS}"
9318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319$as_echo "no" >&6; }
9320        :
9321      else
9322        CFLAGS="${ac_gecode_save_CFLAGS}"
9323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324$as_echo "yes" >&6; }
9325
9326        CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}"
9327      fi
9328
9329else
9330  CFLAGS="${ac_gecode_save_CFLAGS}"
9331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9332$as_echo "no" >&6; }
9333      :
9334fi
9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336   ac_ext=cpp
9337ac_cpp='$CXXCPP $CPPFLAGS'
9338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9341
9342   fi
9343
9344  ;;
9345intel)
9346    case $host_os in
9347     windows*)
9348         $as_echo "#define forceinline __forceinline" >>confdefs.h
9349
9350  CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}"
9351    CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}"
9352  CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}"
9353  CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}"
9354
9355$as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h
9356
9357  if test "${enable_debug:-no}" = "no"; then
9358        CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}"
9359    CXXFLAGS="${ac_gecode_cl_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
9360    CFLAGS="-MD -GS- -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
9361    CXXFLAGS="-MD -GS- -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
9362
9363   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
9365$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
9366   if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; then
9367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
9369     :
9370   else
9371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9372$as_echo "yes" >&6; }
9373
9374       CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
9375       CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
9376   fi
9377   else
9378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
9379$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
9380   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9381   CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9382   ac_ext=cpp
9383ac_cpp='$CXXCPP $CPPFLAGS'
9384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9387
9388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389/* end confdefs.h.  */
9390
9391int
9392main ()
9393{
9394
9395  ;
9396  return 0;
9397}
9398_ACEOF
9399if ac_fn_cxx_try_compile "$LINENO"; then :
9400  if grep -q "unrecognized\|argument unused" conftest.err; then
9401        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
9404        :
9405      else
9406        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9407        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9408$as_echo "yes" >&6; }
9409
9410        CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
9411      fi
9412
9413else
9414  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9415      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416$as_echo "no" >&6; }
9417      :
9418fi
9419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420   ac_ext=cpp
9421ac_cpp='$CXXCPP $CPPFLAGS'
9422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9425
9426
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5
9428$as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; }
9429   ac_gecode_save_CFLAGS="${CFLAGS}"
9430   CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror"
9431   ac_ext=c
9432ac_cpp='$CPP $CPPFLAGS'
9433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9435ac_compiler_gnu=$ac_cv_c_compiler_gnu
9436
9437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439
9440int
9441main ()
9442{
9443
9444  ;
9445  return 0;
9446}
9447_ACEOF
9448if ac_fn_c_try_compile "$LINENO"; then :
9449  if grep -q "unrecognized\|argument unused" conftest.err; then
9450        CFLAGS="${ac_gecode_save_CFLAGS}"
9451        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
9453        :
9454      else
9455        CFLAGS="${ac_gecode_save_CFLAGS}"
9456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9457$as_echo "yes" >&6; }
9458
9459        CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
9460      fi
9461
9462else
9463  CFLAGS="${ac_gecode_save_CFLAGS}"
9464      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
9466      :
9467fi
9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469   ac_ext=cpp
9470ac_cpp='$CXXCPP $CPPFLAGS'
9471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9474
9475   fi
9476
9477        DLLFLAGS="${CXXFLAGS} -LD${DLLFLAGS:+ }${DLLFLAGS}"
9478        GLDFLAGS="-link -DEBUG -OPT:REF -OPT:ICF -MANIFEST -INCREMENTAL:NO"
9479  else
9480        CFLAGS="-MDd -Zi -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
9481    CXXFLAGS="-MDd -Zi -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
9482
9483        DLLFLAGS="${CXXFLAGS} -LDd${DLLFLAGS:+ }${DLLFLAGS}"
9484    GLDFLAGS="-link -MANIFEST -INCREMENTAL:NO"
9485  fi
9486
9487  sharedlibdir="${bindir}"
9488
9489  docdir="${prefix}"
9490
9491  if test "${enable_static:-no}" = "yes"; then
9492    as_fn_error $? "Static linking not supported for Windows/cl." "$LINENO" 5
9493  fi
9494
9495  # Extract the first word of "mt.exe", so it can be a program name with args.
9496set dummy mt.exe; ac_word=$2
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498$as_echo_n "checking for $ac_word... " >&6; }
9499if ${ac_cv_prog_MANIFEST+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  if test -n "$MANIFEST"; then
9503  ac_cv_prog_MANIFEST="$MANIFEST" # Let the user override the test.
9504else
9505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506for as_dir in $PATH
9507do
9508  IFS=$as_save_IFS
9509  test -z "$as_dir" && as_dir=.
9510    for ac_exec_ext in '' $ac_executable_extensions; do
9511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512    ac_cv_prog_MANIFEST="mt.exe"
9513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514    break 2
9515  fi
9516done
9517  done
9518IFS=$as_save_IFS
9519
9520fi
9521fi
9522MANIFEST=$ac_cv_prog_MANIFEST
9523if test -n "$MANIFEST"; then
9524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5
9525$as_echo "$MANIFEST" >&6; }
9526else
9527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528$as_echo "no" >&6; }
9529fi
9530
9531
9532
9533  DLLPATH=""
9534
9535
9536    SBJEXT="sbj"
9537
9538  DLLEXT="dll"
9539
9540  SOSUFFIX=""
9541
9542  SOLINKSUFFIX=""
9543
9544  WLSONAME=""
9545
9546  LIBEXT="lib"
9547
9548  LIBPREFIX="${ac_gecode_userprefix}Gecode"
9549
9550  LINKPREFIX="${ac_gecode_userprefix}Gecode"
9551
9552  LINKSUFFIX=".lib"
9553
9554  MINUSLDIR=""
9555
9556  LINKLIBDIR="${libdir}/"
9557
9558
9559  cygpathprefix=$prefix
9560  test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
9561  cygpathprefix=`cygpath -m ${cygpathprefix}`
9562
9563  cygpathprefix="${cygpathprefix}"
9564
9565  GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
9566
9567   GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
9568
9569   GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
9570
9571   GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
9572
9573   GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
9574
9575   GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
9576
9577   GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
9578
9579   GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
9580
9581   GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
9582
9583   GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
9584
9585
9586    COMPILEOBJ="-c -Fo"
9587
9588  COMPILESBJ="-c -Fa"
9589
9590  CXXIN="-Tp"
9591
9592  CCIN="-Tc"
9593
9594
9595    INSTALLLIBS="yes"
9596
9597
9598    LINKOUTPUT="-Fe"
9599
9600    EXEOUTPUT="-Fe"
9601
9602
9603    SUPPORT="Support"
9604
9605  KERNEL="Kernel"
9606
9607  SEARCH="Search"
9608
9609  INT="Int"
9610
9611  FLOAT="Float"
9612
9613  SET="Set"
9614
9615  MM="Minimodel"
9616
9617  GIST="Gist"
9618
9619  FLATZINC="FlatZinc"
9620
9621  DRIVER="Driver"
9622
9623       ;;
9624     *)
9625              # Check whether --enable-gcc-visibility was given.
9626if test "${enable_gcc_visibility+set}" = set; then :
9627  enableval=$enable_gcc_visibility;
9628fi
9629
9630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5
9631$as_echo_n "checking whether to use gcc visibility attributes... " >&6; }
9632     if test "${enable_gcc_visibility:-yes}" = "yes"; then
9633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9634$as_echo "yes" >&6; }
9635        if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
9637$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
9638   if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; then
9639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640$as_echo "no" >&6; }
9641     :
9642   else
9643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644$as_echo "yes" >&6; }
9645
9646
9647$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
9648
9649           CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
9650    CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
9651   fi
9652   else
9653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5
9654$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; }
9655   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9656   CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9657   ac_ext=cpp
9658ac_cpp='$CXXCPP $CPPFLAGS'
9659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9662
9663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665
9666int
9667main ()
9668{
9669
9670  ;
9671  return 0;
9672}
9673_ACEOF
9674if ac_fn_cxx_try_compile "$LINENO"; then :
9675  if grep -q "unrecognized\|argument unused" conftest.err; then
9676        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678$as_echo "no" >&6; }
9679        :
9680      else
9681        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9683$as_echo "yes" >&6; }
9684
9685
9686$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h
9687
9688           CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}"
9689    CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}"
9690      fi
9691
9692else
9693  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9696      :
9697fi
9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699   ac_ext=cpp
9700ac_cpp='$CXXCPP $CPPFLAGS'
9701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9704
9705   fi
9706
9707     else
9708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
9710     fi
9711              DLLPATH=-L.
9712
9713    case $host_os in
9714     darwin*)
9715       need_soname="yes"
9716
9717       DLLFLAGS="-Wl,-single_module${DLLFLAGS:+ }${DLLFLAGS}"
9718       DLLFLAGS=""-dynamiclib"${DLLFLAGS:+ }${DLLFLAGS}"
9719       DLLEXT="${ac_gecode_soversion}.0.dylib"
9720
9721       SOSUFFIX=".${ac_gecode_soversion}.dylib"
9722
9723       SOLINKSUFFIX=".dylib"
9724
9725       sharedlibdir="${libdir}"
9726
9727       WLSONAME="-compatibility_version ${ac_gecode_soversion}.0 -current_version ${ac_gecode_soversion}.0 -install_name ${libdir}/"
9728
9729       GECODE_BUILD_SUPPORT_FLAG=""
9730
9731   GECODE_BUILD_KERNEL_FLAG=""
9732
9733   GECODE_BUILD_SEARCH_FLAG=""
9734
9735   GECODE_BUILD_INT_FLAG=""
9736
9737   GECODE_BUILD_FLOAT_FLAG=""
9738
9739   GECODE_BUILD_SET_FLAG=""
9740
9741   GECODE_BUILD_MINIMODEL_FLAG=""
9742
9743   GECODE_BUILD_GIST_FLAG=""
9744
9745   GECODE_BUILD_FLATZINC_FLAG=""
9746
9747   GECODE_BUILD_DRIVER_FLAG=""
9748
9749       ;;
9750     windows*)
9751       need_soname="no"
9752
9753       if test "${enable_static:-no}"  = "yes" -a \
9754           "${enable_shared:-yes}" = "yes"; then
9755         as_fn_error $? "Only either static or shared libraries can be built." "$LINENO" 5
9756       fi
9757       DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
9758       DLLEXT="dll"
9759
9760       SOSUFFIX=""
9761
9762       SOLINKSUFFIX=""
9763
9764       WLSONAME=""
9765
9766       if test "${enable_static:-no}" = "no"; then
9767      sharedlibdir="${bindir}"
9768
9769       else
9770          sharedlibdir="${libdir}"
9771
9772       fi
9773       GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
9774
9775   GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
9776
9777   GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
9778
9779   GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
9780
9781   GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
9782
9783   GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
9784
9785   GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
9786
9787   GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
9788
9789   GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
9790
9791   GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
9792
9793       ;;
9794     *)
9795       need_soname="yes"
9796
9797       DLLFLAGS=""-shared"${DLLFLAGS:+ }${DLLFLAGS}"
9798       DLLEXT="so.${ac_gecode_soversion}.0"
9799
9800       SOSUFFIX=".so.${ac_gecode_soversion}"
9801
9802       SOLINKSUFFIX=".so"
9803
9804       WLSONAME="-Wl,-soname="
9805
9806       sharedlibdir="${libdir}"
9807
9808       GECODE_BUILD_SUPPORT_FLAG=""
9809
9810   GECODE_BUILD_KERNEL_FLAG=""
9811
9812   GECODE_BUILD_SEARCH_FLAG=""
9813
9814   GECODE_BUILD_INT_FLAG=""
9815
9816   GECODE_BUILD_FLOAT_FLAG=""
9817
9818   GECODE_BUILD_SET_FLAG=""
9819
9820   GECODE_BUILD_MINIMODEL_FLAG=""
9821
9822   GECODE_BUILD_GIST_FLAG=""
9823
9824   GECODE_BUILD_FLATZINC_FLAG=""
9825
9826   GECODE_BUILD_DRIVER_FLAG=""
9827
9828       ;;
9829  esac
9830
9831   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
9833$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
9834   if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; then
9835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
9837     :
9838   else
9839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9840$as_echo "yes" >&6; }
9841
9842       CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
9843       CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
9844   fi
9845   else
9846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5
9847$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; }
9848   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9849   CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9850   ac_ext=cpp
9851ac_cpp='$CXXCPP $CPPFLAGS'
9852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9855
9856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858
9859int
9860main ()
9861{
9862
9863  ;
9864  return 0;
9865}
9866_ACEOF
9867if ac_fn_cxx_try_compile "$LINENO"; then :
9868  if grep -q "unrecognized\|argument unused" conftest.err; then
9869        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
9872        :
9873      else
9874        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9875        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9876$as_echo "yes" >&6; }
9877
9878        CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}"
9879      fi
9880
9881else
9882  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9883      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
9885      :
9886fi
9887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888   ac_ext=cpp
9889ac_cpp='$CXXCPP $CPPFLAGS'
9890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9893
9894
9895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5
9896$as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; }
9897   ac_gecode_save_CFLAGS="${CFLAGS}"
9898   CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror"
9899   ac_ext=c
9900ac_cpp='$CPP $CPPFLAGS'
9901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9903ac_compiler_gnu=$ac_cv_c_compiler_gnu
9904
9905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906/* end confdefs.h.  */
9907
9908int
9909main ()
9910{
9911
9912  ;
9913  return 0;
9914}
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"; then :
9917  if grep -q "unrecognized\|argument unused" conftest.err; then
9918        CFLAGS="${ac_gecode_save_CFLAGS}"
9919        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920$as_echo "no" >&6; }
9921        :
9922      else
9923        CFLAGS="${ac_gecode_save_CFLAGS}"
9924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9925$as_echo "yes" >&6; }
9926
9927        CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}"
9928      fi
9929
9930else
9931  CFLAGS="${ac_gecode_save_CFLAGS}"
9932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
9934      :
9935fi
9936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937   ac_ext=cpp
9938ac_cpp='$CXXCPP $CPPFLAGS'
9939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9942
9943   fi
9944
9945   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
9946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
9947$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
9948   if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; then
9949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
9951     :
9952   else
9953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9954$as_echo "yes" >&6; }
9955
9956       CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
9957       CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
9958   fi
9959   else
9960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5
9961$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; }
9962   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
9963   CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror"
9964   ac_ext=cpp
9965ac_cpp='$CXXCPP $CPPFLAGS'
9966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9969
9970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972
9973int
9974main ()
9975{
9976
9977  ;
9978  return 0;
9979}
9980_ACEOF
9981if ac_fn_cxx_try_compile "$LINENO"; then :
9982  if grep -q "unrecognized\|argument unused" conftest.err; then
9983        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9984        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985$as_echo "no" >&6; }
9986        :
9987      else
9988        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9990$as_echo "yes" >&6; }
9991
9992        CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}"
9993      fi
9994
9995else
9996  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
9997      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
9999      :
10000fi
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002   ac_ext=cpp
10003ac_cpp='$CXXCPP $CPPFLAGS'
10004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10007
10008
10009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5
10010$as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; }
10011   ac_gecode_save_CFLAGS="${CFLAGS}"
10012   CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror"
10013   ac_ext=c
10014ac_cpp='$CPP $CPPFLAGS'
10015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018
10019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h.  */
10021
10022int
10023main ()
10024{
10025
10026  ;
10027  return 0;
10028}
10029_ACEOF
10030if ac_fn_c_try_compile "$LINENO"; then :
10031  if grep -q "unrecognized\|argument unused" conftest.err; then
10032        CFLAGS="${ac_gecode_save_CFLAGS}"
10033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034$as_echo "no" >&6; }
10035        :
10036      else
10037        CFLAGS="${ac_gecode_save_CFLAGS}"
10038        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039$as_echo "yes" >&6; }
10040
10041        CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}"
10042      fi
10043
10044else
10045  CFLAGS="${ac_gecode_save_CFLAGS}"
10046      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
10048      :
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051   ac_ext=cpp
10052ac_cpp='$CXXCPP $CPPFLAGS'
10053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10056
10057   fi
10058
10059   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
10061$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
10062   if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; then
10063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
10065     :
10066   else
10067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10068$as_echo "yes" >&6; }
10069
10070       CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
10071       CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
10072   fi
10073   else
10074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5
10075$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; }
10076   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10077   CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10078   ac_ext=cpp
10079ac_cpp='$CXXCPP $CPPFLAGS'
10080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10083
10084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086
10087int
10088main ()
10089{
10090
10091  ;
10092  return 0;
10093}
10094_ACEOF
10095if ac_fn_cxx_try_compile "$LINENO"; then :
10096  if grep -q "unrecognized\|argument unused" conftest.err; then
10097        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099$as_echo "no" >&6; }
10100        :
10101      else
10102        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10104$as_echo "yes" >&6; }
10105
10106        CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}"
10107      fi
10108
10109else
10110  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
10113      :
10114fi
10115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116   ac_ext=cpp
10117ac_cpp='$CXXCPP $CPPFLAGS'
10118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10121
10122
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5
10124$as_echo_n "checking whether ${CC} accepts -Wall... " >&6; }
10125   ac_gecode_save_CFLAGS="${CFLAGS}"
10126   CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror"
10127   ac_ext=c
10128ac_cpp='$CPP $CPPFLAGS'
10129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10131ac_compiler_gnu=$ac_cv_c_compiler_gnu
10132
10133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135
10136int
10137main ()
10138{
10139
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144if ac_fn_c_try_compile "$LINENO"; then :
10145  if grep -q "unrecognized\|argument unused" conftest.err; then
10146        CFLAGS="${ac_gecode_save_CFLAGS}"
10147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148$as_echo "no" >&6; }
10149        :
10150      else
10151        CFLAGS="${ac_gecode_save_CFLAGS}"
10152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10153$as_echo "yes" >&6; }
10154
10155        CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}"
10156      fi
10157
10158else
10159  CFLAGS="${ac_gecode_save_CFLAGS}"
10160      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
10162      :
10163fi
10164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165   ac_ext=cpp
10166ac_cpp='$CXXCPP $CPPFLAGS'
10167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10170
10171   fi
10172
10173   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
10175$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
10176   if ${CXX} -Wno-unknown-pragmas 2>&1 | grep "ignoring unknown option" -q; then
10177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178$as_echo "no" >&6; }
10179     :
10180   else
10181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10182$as_echo "yes" >&6; }
10183
10184       CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
10185       CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
10186   fi
10187   else
10188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5
10189$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; }
10190   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10191   CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10192   ac_ext=cpp
10193ac_cpp='$CXXCPP $CPPFLAGS'
10194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10197
10198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h.  */
10200
10201int
10202main ()
10203{
10204
10205  ;
10206  return 0;
10207}
10208_ACEOF
10209if ac_fn_cxx_try_compile "$LINENO"; then :
10210  if grep -q "unrecognized\|argument unused" conftest.err; then
10211        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213$as_echo "no" >&6; }
10214        :
10215      else
10216        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10217        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10218$as_echo "yes" >&6; }
10219
10220        CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}"
10221      fi
10222
10223else
10224  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226$as_echo "no" >&6; }
10227      :
10228fi
10229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230   ac_ext=cpp
10231ac_cpp='$CXXCPP $CPPFLAGS'
10232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10235
10236
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5
10238$as_echo_n "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; }
10239   ac_gecode_save_CFLAGS="${CFLAGS}"
10240   CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS} -Werror"
10241   ac_ext=c
10242ac_cpp='$CPP $CPPFLAGS'
10243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10245ac_compiler_gnu=$ac_cv_c_compiler_gnu
10246
10247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h.  */
10249
10250int
10251main ()
10252{
10253
10254  ;
10255  return 0;
10256}
10257_ACEOF
10258if ac_fn_c_try_compile "$LINENO"; then :
10259  if grep -q "unrecognized\|argument unused" conftest.err; then
10260        CFLAGS="${ac_gecode_save_CFLAGS}"
10261        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262$as_echo "no" >&6; }
10263        :
10264      else
10265        CFLAGS="${ac_gecode_save_CFLAGS}"
10266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10267$as_echo "yes" >&6; }
10268
10269        CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}"
10270      fi
10271
10272else
10273  CFLAGS="${ac_gecode_save_CFLAGS}"
10274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275$as_echo "no" >&6; }
10276      :
10277fi
10278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10279   ac_ext=cpp
10280ac_cpp='$CXXCPP $CPPFLAGS'
10281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10284
10285   fi
10286
10287   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
10289$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
10290   if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; then
10291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
10293     :
10294   else
10295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10296$as_echo "yes" >&6; }
10297
10298       CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
10299       CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
10300   fi
10301   else
10302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5
10303$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; }
10304   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10305   CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10306   ac_ext=cpp
10307ac_cpp='$CXXCPP $CPPFLAGS'
10308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10311
10312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313/* end confdefs.h.  */
10314
10315int
10316main ()
10317{
10318
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323if ac_fn_cxx_try_compile "$LINENO"; then :
10324  if grep -q "unrecognized\|argument unused" conftest.err; then
10325        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327$as_echo "no" >&6; }
10328        :
10329      else
10330        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10332$as_echo "yes" >&6; }
10333
10334        CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}"
10335      fi
10336
10337else
10338  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10339      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
10341      :
10342fi
10343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344   ac_ext=cpp
10345ac_cpp='$CXXCPP $CPPFLAGS'
10346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10349
10350
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5
10352$as_echo_n "checking whether ${CC} accepts -pipe... " >&6; }
10353   ac_gecode_save_CFLAGS="${CFLAGS}"
10354   CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror"
10355   ac_ext=c
10356ac_cpp='$CPP $CPPFLAGS'
10357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360
10361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363
10364int
10365main ()
10366{
10367
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_compile "$LINENO"; then :
10373  if grep -q "unrecognized\|argument unused" conftest.err; then
10374        CFLAGS="${ac_gecode_save_CFLAGS}"
10375        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376$as_echo "no" >&6; }
10377        :
10378      else
10379        CFLAGS="${ac_gecode_save_CFLAGS}"
10380        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10381$as_echo "yes" >&6; }
10382
10383        CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}"
10384      fi
10385
10386else
10387  CFLAGS="${ac_gecode_save_CFLAGS}"
10388      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
10390      :
10391fi
10392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393   ac_ext=cpp
10394ac_cpp='$CXXCPP $CPPFLAGS'
10395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10398
10399   fi
10400
10401   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
10403$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
10404   if ${CXX} -std=c++11 2>&1 | grep "ignoring unknown option" -q; then
10405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
10407     :
10408   else
10409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10410$as_echo "yes" >&6; }
10411
10412       CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
10413       CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
10414   fi
10415   else
10416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++11" >&5
10417$as_echo_n "checking whether ${CXX} accepts -std=c++11... " >&6; }
10418   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10419   CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10420   ac_ext=cpp
10421ac_cpp='$CXXCPP $CPPFLAGS'
10422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10425
10426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428
10429int
10430main ()
10431{
10432
10433  ;
10434  return 0;
10435}
10436_ACEOF
10437if ac_fn_cxx_try_compile "$LINENO"; then :
10438  if grep -q "unrecognized\|argument unused" conftest.err; then
10439        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
10442        :
10443      else
10444        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10446$as_echo "yes" >&6; }
10447
10448        CXXFLAGS="-std=c++11${CXXFLAGS:+ }${CXXFLAGS}"
10449      fi
10450
10451else
10452  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10453      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454$as_echo "no" >&6; }
10455      :
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458   ac_ext=cpp
10459ac_cpp='$CXXCPP $CPPFLAGS'
10460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10463
10464
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++11" >&5
10466$as_echo_n "checking whether ${CC} accepts -std=c++11... " >&6; }
10467   ac_gecode_save_CFLAGS="${CFLAGS}"
10468   CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS} -Werror"
10469   ac_ext=c
10470ac_cpp='$CPP $CPPFLAGS'
10471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10473ac_compiler_gnu=$ac_cv_c_compiler_gnu
10474
10475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h.  */
10477
10478int
10479main ()
10480{
10481
10482  ;
10483  return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_compile "$LINENO"; then :
10487  if grep -q "unrecognized\|argument unused" conftest.err; then
10488        CFLAGS="${ac_gecode_save_CFLAGS}"
10489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490$as_echo "no" >&6; }
10491        :
10492      else
10493        CFLAGS="${ac_gecode_save_CFLAGS}"
10494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10495$as_echo "yes" >&6; }
10496
10497        CFLAGS="-std=c++11${CFLAGS:+ }${CFLAGS}"
10498      fi
10499
10500else
10501  CFLAGS="${ac_gecode_save_CFLAGS}"
10502      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503$as_echo "no" >&6; }
10504      :
10505fi
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507   ac_ext=cpp
10508ac_cpp='$CXXCPP $CPPFLAGS'
10509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10512
10513   fi
10514
10515  if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
10517$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
10518   if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; then
10519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520$as_echo "no" >&6; }
10521
10522   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10524$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10525   if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527$as_echo "no" >&6; }
10528     :
10529   else
10530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10531$as_echo "yes" >&6; }
10532
10533       CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10534       CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10535   fi
10536   else
10537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10538$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10539   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10540   CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10541   ac_ext=cpp
10542ac_cpp='$CXXCPP $CPPFLAGS'
10543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10546
10547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h.  */
10549
10550int
10551main ()
10552{
10553
10554  ;
10555  return 0;
10556}
10557_ACEOF
10558if ac_fn_cxx_try_compile "$LINENO"; then :
10559  if grep -q "unrecognized\|argument unused" conftest.err; then
10560        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562$as_echo "no" >&6; }
10563        :
10564      else
10565        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10566        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10567$as_echo "yes" >&6; }
10568
10569        CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10570      fi
10571
10572else
10573  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576      :
10577fi
10578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579   ac_ext=cpp
10580ac_cpp='$CXXCPP $CPPFLAGS'
10581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10584
10585
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10587$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10588   ac_gecode_save_CFLAGS="${CFLAGS}"
10589   CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10590   ac_ext=c
10591ac_cpp='$CPP $CPPFLAGS'
10592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10594ac_compiler_gnu=$ac_cv_c_compiler_gnu
10595
10596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597/* end confdefs.h.  */
10598
10599int
10600main ()
10601{
10602
10603  ;
10604  return 0;
10605}
10606_ACEOF
10607if ac_fn_c_try_compile "$LINENO"; then :
10608  if grep -q "unrecognized\|argument unused" conftest.err; then
10609        CFLAGS="${ac_gecode_save_CFLAGS}"
10610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
10612        :
10613      else
10614        CFLAGS="${ac_gecode_save_CFLAGS}"
10615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616$as_echo "yes" >&6; }
10617
10618        CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10619      fi
10620
10621else
10622  CFLAGS="${ac_gecode_save_CFLAGS}"
10623      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624$as_echo "no" >&6; }
10625      :
10626fi
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628   ac_ext=cpp
10629ac_cpp='$CXXCPP $CPPFLAGS'
10630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10633
10634   fi
10635   else
10636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637$as_echo "yes" >&6; }
10638
10639       CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
10640    CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
10641   fi
10642   else
10643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5
10644$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; }
10645   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10646   CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10647   ac_ext=cpp
10648ac_cpp='$CXXCPP $CPPFLAGS'
10649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10652
10653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h.  */
10655
10656int
10657main ()
10658{
10659
10660  ;
10661  return 0;
10662}
10663_ACEOF
10664if ac_fn_cxx_try_compile "$LINENO"; then :
10665  if grep -q "unrecognized\|argument unused" conftest.err; then
10666        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }
10669
10670   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10672$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10673   if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
10676     :
10677   else
10678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679$as_echo "yes" >&6; }
10680
10681       CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10682       CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10683   fi
10684   else
10685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10686$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10687   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10688   CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10689   ac_ext=cpp
10690ac_cpp='$CXXCPP $CPPFLAGS'
10691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10694
10695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696/* end confdefs.h.  */
10697
10698int
10699main ()
10700{
10701
10702  ;
10703  return 0;
10704}
10705_ACEOF
10706if ac_fn_cxx_try_compile "$LINENO"; then :
10707  if grep -q "unrecognized\|argument unused" conftest.err; then
10708        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10709        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710$as_echo "no" >&6; }
10711        :
10712      else
10713        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10714        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10715$as_echo "yes" >&6; }
10716
10717        CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10718      fi
10719
10720else
10721  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10722      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724      :
10725fi
10726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727   ac_ext=cpp
10728ac_cpp='$CXXCPP $CPPFLAGS'
10729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10732
10733
10734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10735$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10736   ac_gecode_save_CFLAGS="${CFLAGS}"
10737   CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10738   ac_ext=c
10739ac_cpp='$CPP $CPPFLAGS'
10740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10742ac_compiler_gnu=$ac_cv_c_compiler_gnu
10743
10744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h.  */
10746
10747int
10748main ()
10749{
10750
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755if ac_fn_c_try_compile "$LINENO"; then :
10756  if grep -q "unrecognized\|argument unused" conftest.err; then
10757        CFLAGS="${ac_gecode_save_CFLAGS}"
10758        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760        :
10761      else
10762        CFLAGS="${ac_gecode_save_CFLAGS}"
10763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764$as_echo "yes" >&6; }
10765
10766        CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10767      fi
10768
10769else
10770  CFLAGS="${ac_gecode_save_CFLAGS}"
10771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772$as_echo "no" >&6; }
10773      :
10774fi
10775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776   ac_ext=cpp
10777ac_cpp='$CXXCPP $CPPFLAGS'
10778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10781
10782   fi
10783      else
10784        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10785        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10786$as_echo "yes" >&6; }
10787
10788       CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}"
10789    CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}"
10790      fi
10791
10792else
10793  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10794      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
10796
10797   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
10798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10799$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10800   if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; then
10801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802$as_echo "no" >&6; }
10803     :
10804   else
10805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806$as_echo "yes" >&6; }
10807
10808       CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10809       CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10810   fi
10811   else
10812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5
10813$as_echo_n "checking whether ${CXX} accepts -g... " >&6; }
10814   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
10815   CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror"
10816   ac_ext=cpp
10817ac_cpp='$CXXCPP $CPPFLAGS'
10818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10821
10822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h.  */
10824
10825int
10826main ()
10827{
10828
10829  ;
10830  return 0;
10831}
10832_ACEOF
10833if ac_fn_cxx_try_compile "$LINENO"; then :
10834  if grep -q "unrecognized\|argument unused" conftest.err; then
10835        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10836        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837$as_echo "no" >&6; }
10838        :
10839      else
10840        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842$as_echo "yes" >&6; }
10843
10844        CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}"
10845      fi
10846
10847else
10848  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
10849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
10851      :
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854   ac_ext=cpp
10855ac_cpp='$CXXCPP $CPPFLAGS'
10856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10859
10860
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5
10862$as_echo_n "checking whether ${CC} accepts -g... " >&6; }
10863   ac_gecode_save_CFLAGS="${CFLAGS}"
10864   CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror"
10865   ac_ext=c
10866ac_cpp='$CPP $CPPFLAGS'
10867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10869ac_compiler_gnu=$ac_cv_c_compiler_gnu
10870
10871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872/* end confdefs.h.  */
10873
10874int
10875main ()
10876{
10877
10878  ;
10879  return 0;
10880}
10881_ACEOF
10882if ac_fn_c_try_compile "$LINENO"; then :
10883  if grep -q "unrecognized\|argument unused" conftest.err; then
10884        CFLAGS="${ac_gecode_save_CFLAGS}"
10885        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
10887        :
10888      else
10889        CFLAGS="${ac_gecode_save_CFLAGS}"
10890        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10891$as_echo "yes" >&6; }
10892
10893        CFLAGS="-g${CFLAGS:+ }${CFLAGS}"
10894      fi
10895
10896else
10897  CFLAGS="${ac_gecode_save_CFLAGS}"
10898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
10900      :
10901fi
10902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903   ac_ext=cpp
10904ac_cpp='$CXXCPP $CPPFLAGS'
10905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908
10909   fi
10910fi
10911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912   ac_ext=cpp
10913ac_cpp='$CXXCPP $CPPFLAGS'
10914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10917
10918   fi
10919
10920  ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll"
10921if test "x$ac_cv_func___builtin_ffsll" = xyes; then :
10922
10923$as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h
10924
10925fi
10926
10927  ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll"
10928if test "x$ac_cv_func___builtin_popcountll" = xyes; then :
10929
10930$as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h
10931
10932fi
10933
10934
10935  docdir="${datadir}/doc/gecode"
10936
10937
10938    MANIFEST="@true"
10939
10940
10941    SBJEXT="s"
10942
10943  LIBEXT="${DLLEXT}"
10944
10945  LIBPREFIX="lib${ac_gecode_userprefix}gecode"
10946
10947  STATICLIBEXT="a"
10948
10949  MINUSLDIR="-L${libdir}"
10950
10951  LINKLIBDIR=""
10952
10953
10954  cygpathprefix=$prefix
10955  test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
10956  cygpathprefix="${cygpathprefix}"
10957
10958
10959  COMPILEOBJ="-c -o "
10960
10961  COMPILESBJ="-S -o "
10962
10963  CXXIN=" "
10964
10965  CCIN=" "
10966
10967  EXAMPLES_EXTRA_CXXFLAGS=""
10968
10969
10970    INSTALLLIBS="no"
10971
10972
10973  LINKPREFIX="-l${ac_gecode_userprefix}gecode"
10974
10975  LINKSUFFIX=""
10976
10977
10978    LINKOUTPUT="-o "
10979
10980    EXEOUTPUT="-o "
10981
10982
10983    SUPPORT="support"
10984
10985  KERNEL="kernel"
10986
10987  SEARCH="search"
10988
10989  INT="int"
10990
10991  FLOAT="float"
10992
10993  SET="set"
10994
10995  MM="minimodel"
10996
10997  GIST="gist"
10998
10999  FLATZINC="flatzinc"
11000
11001  DRIVER="driver"
11002
11003
11004       if test "${enable_debug:-no}" = "no"; then
11005         	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5
11006$as_echo_n "checking if compiler supports forced inlining... " >&6; }
11007  ac_ext=cpp
11008ac_cpp='$CXXCPP $CPPFLAGS'
11009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11012
11013  ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11014  CXXFLAGS="${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017#ifndef __clang__
11018                      # error "Macro __clang__ is undefined!"
11019              /* For some compilers (eg. SGI's CC), #error is not
11020                 enough...  */
11021              please, do fail
11022              #endif
11023int
11024main ()
11025{
11026
11027  ;
11028  return 0;
11029}
11030_ACEOF
11031if ac_fn_cxx_try_compile "$LINENO"; then :
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034
11035$as_echo "#define forceinline inline" >>confdefs.h
11036
11037else
11038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040
11041         inline __attribute__ ((__always_inline__)) void foo(void) {}
11042int
11043main ()
11044{
11045
11046  ;
11047  return 0;
11048}
11049_ACEOF
11050if ac_fn_cxx_try_compile "$LINENO"; then :
11051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11052$as_echo "yes" >&6; }
11053
11054$as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h
11055
11056else
11057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058$as_echo "no" >&6; }
11059
11060$as_echo "#define forceinline inline" >>confdefs.h
11061
11062fi
11063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064fi
11065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066  CXXFLAGS=${ac_gecode_save_CXXFLAGS}
11067  ac_ext=cpp
11068ac_cpp='$CXXCPP $CPPFLAGS'
11069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11072
11073
11074   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
11076$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
11077   if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; then
11078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
11080     :
11081   else
11082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083$as_echo "yes" >&6; }
11084
11085       CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11086       CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11087   fi
11088   else
11089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5
11090$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
11091   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11092   CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11093   ac_ext=cpp
11094ac_cpp='$CXXCPP $CPPFLAGS'
11095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11098
11099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100/* end confdefs.h.  */
11101
11102int
11103main ()
11104{
11105
11106  ;
11107  return 0;
11108}
11109_ACEOF
11110if ac_fn_cxx_try_compile "$LINENO"; then :
11111  if grep -q "unrecognized\|argument unused" conftest.err; then
11112        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
11115        :
11116      else
11117        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11118        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11119$as_echo "yes" >&6; }
11120
11121        CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11122      fi
11123
11124else
11125  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11126      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
11128      :
11129fi
11130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131   ac_ext=cpp
11132ac_cpp='$CXXCPP $CPPFLAGS'
11133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11136
11137
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5
11139$as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; }
11140   ac_gecode_save_CFLAGS="${CFLAGS}"
11141   CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror"
11142   ac_ext=c
11143ac_cpp='$CPP $CPPFLAGS'
11144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147
11148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150
11151int
11152main ()
11153{
11154
11155  ;
11156  return 0;
11157}
11158_ACEOF
11159if ac_fn_c_try_compile "$LINENO"; then :
11160  if grep -q "unrecognized\|argument unused" conftest.err; then
11161        CFLAGS="${ac_gecode_save_CFLAGS}"
11162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164        :
11165      else
11166        CFLAGS="${ac_gecode_save_CFLAGS}"
11167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168$as_echo "yes" >&6; }
11169
11170        CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11171      fi
11172
11173else
11174  CFLAGS="${ac_gecode_save_CFLAGS}"
11175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
11177      :
11178fi
11179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11180   ac_ext=cpp
11181ac_cpp='$CXXCPP $CPPFLAGS'
11182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11185
11186   fi
11187
11188   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
11190$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
11191   if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; then
11192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
11194     :
11195   else
11196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11197$as_echo "yes" >&6; }
11198
11199       CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
11200       CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
11201   fi
11202   else
11203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5
11204$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; }
11205   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11206   CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11207   ac_ext=cpp
11208ac_cpp='$CXXCPP $CPPFLAGS'
11209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11212
11213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214/* end confdefs.h.  */
11215
11216int
11217main ()
11218{
11219
11220  ;
11221  return 0;
11222}
11223_ACEOF
11224if ac_fn_cxx_try_compile "$LINENO"; then :
11225  if grep -q "unrecognized\|argument unused" conftest.err; then
11226        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11227        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
11229        :
11230      else
11231        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11232        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233$as_echo "yes" >&6; }
11234
11235        CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}"
11236      fi
11237
11238else
11239  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11240      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241$as_echo "no" >&6; }
11242      :
11243fi
11244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245   ac_ext=cpp
11246ac_cpp='$CXXCPP $CPPFLAGS'
11247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11250
11251
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5
11253$as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; }
11254   ac_gecode_save_CFLAGS="${CFLAGS}"
11255   CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror"
11256   ac_ext=c
11257ac_cpp='$CPP $CPPFLAGS'
11258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11260ac_compiler_gnu=$ac_cv_c_compiler_gnu
11261
11262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263/* end confdefs.h.  */
11264
11265int
11266main ()
11267{
11268
11269  ;
11270  return 0;
11271}
11272_ACEOF
11273if ac_fn_c_try_compile "$LINENO"; then :
11274  if grep -q "unrecognized\|argument unused" conftest.err; then
11275        CFLAGS="${ac_gecode_save_CFLAGS}"
11276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
11278        :
11279      else
11280        CFLAGS="${ac_gecode_save_CFLAGS}"
11281        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282$as_echo "yes" >&6; }
11283
11284        CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}"
11285      fi
11286
11287else
11288  CFLAGS="${ac_gecode_save_CFLAGS}"
11289      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
11291      :
11292fi
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294   ac_ext=cpp
11295ac_cpp='$CXXCPP $CPPFLAGS'
11296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11299
11300   fi
11301       else
11302
11303$as_echo "#define forceinline inline" >>confdefs.h
11304
11305
11306   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
11308$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
11309   if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; then
11310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311$as_echo "no" >&6; }
11312     :
11313   else
11314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315$as_echo "yes" >&6; }
11316
11317       CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
11318       CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
11319   fi
11320   else
11321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5
11322$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; }
11323   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11324   CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11325   ac_ext=cpp
11326ac_cpp='$CXXCPP $CPPFLAGS'
11327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11330
11331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332/* end confdefs.h.  */
11333
11334int
11335main ()
11336{
11337
11338  ;
11339  return 0;
11340}
11341_ACEOF
11342if ac_fn_cxx_try_compile "$LINENO"; then :
11343  if grep -q "unrecognized\|argument unused" conftest.err; then
11344        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11345        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
11347        :
11348      else
11349        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351$as_echo "yes" >&6; }
11352
11353        CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}"
11354      fi
11355
11356else
11357  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11358      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360      :
11361fi
11362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363   ac_ext=cpp
11364ac_cpp='$CXXCPP $CPPFLAGS'
11365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11368
11369
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5
11371$as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; }
11372   ac_gecode_save_CFLAGS="${CFLAGS}"
11373   CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror"
11374   ac_ext=c
11375ac_cpp='$CPP $CPPFLAGS'
11376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11378ac_compiler_gnu=$ac_cv_c_compiler_gnu
11379
11380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382
11383int
11384main ()
11385{
11386
11387  ;
11388  return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_compile "$LINENO"; then :
11392  if grep -q "unrecognized\|argument unused" conftest.err; then
11393        CFLAGS="${ac_gecode_save_CFLAGS}"
11394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; }
11396        :
11397      else
11398        CFLAGS="${ac_gecode_save_CFLAGS}"
11399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400$as_echo "yes" >&6; }
11401
11402        CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}"
11403      fi
11404
11405else
11406  CFLAGS="${ac_gecode_save_CFLAGS}"
11407      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
11409      :
11410fi
11411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412   ac_ext=cpp
11413ac_cpp='$CXXCPP $CPPFLAGS'
11414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11417
11418   fi
11419
11420   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
11422$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
11423   if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; then
11424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
11426     :
11427   else
11428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11429$as_echo "yes" >&6; }
11430
11431       CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
11432       CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
11433   fi
11434   else
11435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5
11436$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; }
11437   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11438   CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11439   ac_ext=cpp
11440ac_cpp='$CXXCPP $CPPFLAGS'
11441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11444
11445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446/* end confdefs.h.  */
11447
11448int
11449main ()
11450{
11451
11452  ;
11453  return 0;
11454}
11455_ACEOF
11456if ac_fn_cxx_try_compile "$LINENO"; then :
11457  if grep -q "unrecognized\|argument unused" conftest.err; then
11458        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461        :
11462      else
11463        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465$as_echo "yes" >&6; }
11466
11467        CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}"
11468      fi
11469
11470else
11471  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11472      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
11474      :
11475fi
11476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477   ac_ext=cpp
11478ac_cpp='$CXXCPP $CPPFLAGS'
11479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11482
11483
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5
11485$as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; }
11486   ac_gecode_save_CFLAGS="${CFLAGS}"
11487   CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror"
11488   ac_ext=c
11489ac_cpp='$CPP $CPPFLAGS'
11490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11492ac_compiler_gnu=$ac_cv_c_compiler_gnu
11493
11494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495/* end confdefs.h.  */
11496
11497int
11498main ()
11499{
11500
11501  ;
11502  return 0;
11503}
11504_ACEOF
11505if ac_fn_c_try_compile "$LINENO"; then :
11506  if grep -q "unrecognized\|argument unused" conftest.err; then
11507        CFLAGS="${ac_gecode_save_CFLAGS}"
11508        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
11510        :
11511      else
11512        CFLAGS="${ac_gecode_save_CFLAGS}"
11513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514$as_echo "yes" >&6; }
11515
11516        CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}"
11517      fi
11518
11519else
11520  CFLAGS="${ac_gecode_save_CFLAGS}"
11521      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522$as_echo "no" >&6; }
11523      :
11524fi
11525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526   ac_ext=cpp
11527ac_cpp='$CXXCPP $CPPFLAGS'
11528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11531
11532   fi
11533       fi
11534       ;;
11535  esac
11536  ;;
11537microsoft)
11538    $as_echo "#define forceinline __forceinline" >>confdefs.h
11539
11540  CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}"
11541    CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}"
11542  CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}"
11543  CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}"
11544
11545$as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h
11546
11547  if test "${enable_debug:-no}" = "no"; then
11548        CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}"
11549    CXXFLAGS="${ac_gecode_cl_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}"
11550    CFLAGS="-MD -GS- -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
11551    CXXFLAGS="-MD -GS- -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
11552
11553   if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then
11554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
11555$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
11556   if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; then
11557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
11559     :
11560   else
11561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562$as_echo "yes" >&6; }
11563
11564       CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
11565       CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
11566   fi
11567   else
11568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5
11569$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; }
11570   ac_gecode_save_CXXFLAGS="${CXXFLAGS}"
11571   CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror"
11572   ac_ext=cpp
11573ac_cpp='$CXXCPP $CPPFLAGS'
11574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11577
11578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579/* end confdefs.h.  */
11580
11581int
11582main ()
11583{
11584
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_cxx_try_compile "$LINENO"; then :
11590  if grep -q "unrecognized\|argument unused" conftest.err; then
11591        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11592        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593$as_echo "no" >&6; }
11594        :
11595      else
11596        CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11597        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598$as_echo "yes" >&6; }
11599
11600        CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}"
11601      fi
11602
11603else
11604  CXXFLAGS="${ac_gecode_save_CXXFLAGS}"
11605      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
11607      :
11608fi
11609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610   ac_ext=cpp
11611ac_cpp='$CXXCPP $CPPFLAGS'
11612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11615
11616
11617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5
11618$as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; }
11619   ac_gecode_save_CFLAGS="${CFLAGS}"
11620   CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror"
11621   ac_ext=c
11622ac_cpp='$CPP $CPPFLAGS'
11623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
11627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h.  */
11629
11630int
11631main ()
11632{
11633
11634  ;
11635  return 0;
11636}
11637_ACEOF
11638if ac_fn_c_try_compile "$LINENO"; then :
11639  if grep -q "unrecognized\|argument unused" conftest.err; then
11640        CFLAGS="${ac_gecode_save_CFLAGS}"
11641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642$as_echo "no" >&6; }
11643        :
11644      else
11645        CFLAGS="${ac_gecode_save_CFLAGS}"
11646        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647$as_echo "yes" >&6; }
11648
11649        CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}"
11650      fi
11651
11652else
11653  CFLAGS="${ac_gecode_save_CFLAGS}"
11654      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
11656      :
11657fi
11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659   ac_ext=cpp
11660ac_cpp='$CXXCPP $CPPFLAGS'
11661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11664
11665   fi
11666
11667        DLLFLAGS="${CXXFLAGS} -LD${DLLFLAGS:+ }${DLLFLAGS}"
11668        GLDFLAGS="-link -DEBUG -OPT:REF -OPT:ICF -MANIFEST -INCREMENTAL:NO"
11669  else
11670        CFLAGS="-MDd -Zi -wd4355 -wd4068${CFLAGS:+ }${CFLAGS}"
11671    CXXFLAGS="-MDd -Zi -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}"
11672
11673        DLLFLAGS="${CXXFLAGS} -LDd${DLLFLAGS:+ }${DLLFLAGS}"
11674    GLDFLAGS="-link -MANIFEST -INCREMENTAL:NO"
11675  fi
11676
11677  sharedlibdir="${bindir}"
11678
11679  docdir="${prefix}"
11680
11681  if test "${enable_static:-no}" = "yes"; then
11682    as_fn_error $? "Static linking not supported for Windows/cl." "$LINENO" 5
11683  fi
11684
11685  # Extract the first word of "mt.exe", so it can be a program name with args.
11686set dummy mt.exe; ac_word=$2
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
11689if ${ac_cv_prog_MANIFEST+:} false; then :
11690  $as_echo_n "(cached) " >&6
11691else
11692  if test -n "$MANIFEST"; then
11693  ac_cv_prog_MANIFEST="$MANIFEST" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698  IFS=$as_save_IFS
11699  test -z "$as_dir" && as_dir=.
11700    for ac_exec_ext in '' $ac_executable_extensions; do
11701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11702    ac_cv_prog_MANIFEST="mt.exe"
11703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704    break 2
11705  fi
11706done
11707  done
11708IFS=$as_save_IFS
11709
11710fi
11711fi
11712MANIFEST=$ac_cv_prog_MANIFEST
11713if test -n "$MANIFEST"; then
11714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5
11715$as_echo "$MANIFEST" >&6; }
11716else
11717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719fi
11720
11721
11722
11723  DLLPATH=""
11724
11725
11726    SBJEXT="sbj"
11727
11728  DLLEXT="dll"
11729
11730  SOSUFFIX=""
11731
11732  SOLINKSUFFIX=""
11733
11734  WLSONAME=""
11735
11736  LIBEXT="lib"
11737
11738  LIBPREFIX="${ac_gecode_userprefix}Gecode"
11739
11740  LINKPREFIX="${ac_gecode_userprefix}Gecode"
11741
11742  LINKSUFFIX=".lib"
11743
11744  MINUSLDIR=""
11745
11746  LINKLIBDIR="${libdir}/"
11747
11748
11749  cygpathprefix=$prefix
11750  test "x$cygpathprefix" = xNONE && cygpathprefix=$ac_default_prefix
11751  cygpathprefix=`cygpath -m ${cygpathprefix}`
11752
11753  cygpathprefix="${cygpathprefix}"
11754
11755  GECODE_BUILD_SUPPORT_FLAG="-DGECODE_BUILD_SUPPORT"
11756
11757   GECODE_BUILD_KERNEL_FLAG="-DGECODE_BUILD_KERNEL"
11758
11759   GECODE_BUILD_SEARCH_FLAG="-DGECODE_BUILD_SEARCH"
11760
11761   GECODE_BUILD_INT_FLAG="-DGECODE_BUILD_INT"
11762
11763   GECODE_BUILD_FLOAT_FLAG="-DGECODE_BUILD_FLOAT"
11764
11765   GECODE_BUILD_SET_FLAG="-DGECODE_BUILD_SET"
11766
11767   GECODE_BUILD_MINIMODEL_FLAG="-DGECODE_BUILD_MINIMODEL"
11768
11769   GECODE_BUILD_GIST_FLAG="-DGECODE_BUILD_GIST"
11770
11771   GECODE_BUILD_FLATZINC_FLAG="-DGECODE_BUILD_FLATZINC"
11772
11773   GECODE_BUILD_DRIVER_FLAG="-DGECODE_BUILD_DRIVER"
11774
11775
11776    COMPILEOBJ="-c -Fo"
11777
11778  COMPILESBJ="-c -Fa"
11779
11780  CXXIN="-Tp"
11781
11782  CCIN="-Tc"
11783
11784
11785    INSTALLLIBS="yes"
11786
11787
11788    LINKOUTPUT="-Fe"
11789
11790    EXEOUTPUT="-Fe"
11791
11792
11793    SUPPORT="Support"
11794
11795  KERNEL="Kernel"
11796
11797  SEARCH="Search"
11798
11799  INT="Int"
11800
11801  FLOAT="Float"
11802
11803  SET="Set"
11804
11805  MM="Minimodel"
11806
11807  GIST="Gist"
11808
11809  FLATZINC="FlatZinc"
11810
11811  DRIVER="Driver"
11812
11813  ;;
11814*)
11815  as_fn_error $? "Gecode currently only supports the GNU and Microsoft compilers." "$LINENO" 5
11816  ;;
11817esac
11818
11819ac_fn_cxx_check_header_mongrel "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" "$ac_includes_default"
11820if test "x$ac_cv_header_ext_hash_map" = xyes; then :
11821
11822$as_echo "#define GECODE_HAS_GNU_HASH_MAP /**/" >>confdefs.h
11823
11824fi
11825
11826
11827
11828ac_fn_cxx_check_header_mongrel "$LINENO" "unordered_map" "ac_cv_header_unordered_map" "$ac_includes_default"
11829if test "x$ac_cv_header_unordered_map" = xyes; then :
11830
11831$as_echo "#define GECODE_HAS_UNORDERED_MAP /**/" >>confdefs.h
11832
11833fi
11834
11835
11836
11837
11838   # Check whether --enable-doc-dot was given.
11839if test "${enable_doc_dot+set}" = set; then :
11840  enableval=$enable_doc_dot;
11841fi
11842
11843   # Extract the first word of "dot", so it can be a program name with args.
11844set dummy dot; ac_word=$2
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
11847if ${ac_cv_prog_DOT+:} false; then :
11848  $as_echo_n "(cached) " >&6
11849else
11850  if test -n "$DOT"; then
11851  ac_cv_prog_DOT="$DOT" # Let the user override the test.
11852else
11853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in $PATH
11855do
11856  IFS=$as_save_IFS
11857  test -z "$as_dir" && as_dir=.
11858    for ac_exec_ext in '' $ac_executable_extensions; do
11859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11860    ac_cv_prog_DOT="dot"
11861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862    break 2
11863  fi
11864done
11865  done
11866IFS=$as_save_IFS
11867
11868fi
11869fi
11870DOT=$ac_cv_prog_DOT
11871if test -n "$DOT"; then
11872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
11873$as_echo "$DOT" >&6; }
11874else
11875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877fi
11878
11879
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable graphs in the documentation" >&5
11881$as_echo_n "checking whether to enable graphs in the documentation... " >&6; }
11882   if test "${enable_doc_dot:-yes}" = "yes"; then
11883     if test x$DOT = x; then
11884        if test x"${enable_doc_dot}" = x; then
11885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886$as_echo "no" >&6; }
11887           GECODE_DOXYGEN_DOT=NO
11888
11889    else
11890          as_fn_error $? "you need the dot tool from graphviz to generate graphs in the documentation" "$LINENO" 5
11891    fi
11892     else
11893        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894$as_echo "yes" >&6; }
11895    GECODE_DOXYGEN_DOT=YES
11896
11897     fi
11898   else
11899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901     GECODE_DOXYGEN_DOT=NO
11902
11903   fi
11904
11905   # Check whether --enable-doc-search was given.
11906if test "${enable_doc_search+set}" = set; then :
11907  enableval=$enable_doc_search;
11908fi
11909
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the documentation search engine" >&5
11911$as_echo_n "checking whether to enable the documentation search engine... " >&6; }
11912   if test "${enable_doc_search:-no}" = "yes"; then
11913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11914$as_echo "yes" >&6; }
11915     ENABLEDOCSEARCH="yes"
11916
11917   else
11918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
11920     ENABLEDOCSEARCH="no"
11921
11922   fi
11923   # Check whether --enable-doc-tagfile was given.
11924if test "${enable_doc_tagfile+set}" = set; then :
11925  enableval=$enable_doc_tagfile;
11926fi
11927
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate a doxygen tagfile" >&5
11929$as_echo_n "checking whether to generate a doxygen tagfile... " >&6; }
11930   if test "${enable_doc_tagfile:-yes}" = "yes"; then
11931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932$as_echo "yes" >&6; }
11933     GECODE_DOXYGEN_TAGFILE="doc/gecode-doc.tag"
11934
11935   else
11936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
11938
11939   fi
11940   # Check whether --enable-doc-chm was given.
11941if test "${enable_doc_chm+set}" = set; then :
11942  enableval=$enable_doc_chm;
11943fi
11944
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build compressed html documentation" >&5
11946$as_echo_n "checking whether to build compressed html documentation... " >&6; }
11947   case $host_os in
11948    windows*)
11949           if test "${enable_doc_chm:-yes}" = "yes"; then
11950          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11951$as_echo "yes" >&6; }
11952               ENABLEDOCCHM="yes"
11953
11954                  ENABLEDOCSEARCH="no"
11955
11956           else
11957               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
11959               ENABLEDOCCHM="no"
11960
11961           fi
11962    ;;
11963    *)
11964           if test "${enable_doc_chm:-no}" = "yes"; then
11965          as_fn_error $? "building chms is only supported on Windows." "$LINENO" 5
11966           else
11967               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968$as_echo "no" >&6; }
11969               ENABLEDOCCHM="no"
11970
11971           fi
11972    ;;
11973   esac
11974   # Check whether --enable-doc-docset was given.
11975if test "${enable_doc_docset+set}" = set; then :
11976  enableval=$enable_doc_docset;
11977fi
11978
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build docset documentation for XCode" >&5
11980$as_echo_n "checking whether to build docset documentation for XCode... " >&6; }
11981   case $host_os in
11982    darwin*)
11983           if test "${enable_doc_docset:-no}" = "yes"; then
11984          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985$as_echo "yes" >&6; }
11986               ENABLEDOCDOCSET="yes"
11987
11988                  ENABLEDOCSEARCH="no"
11989
11990           else
11991               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992$as_echo "no" >&6; }
11993               ENABLEDOCDOCSET="no"
11994
11995           fi
11996    ;;
11997    *)
11998           if test "${enable_doc_docset:-no}" = "yes"; then
11999          as_fn_error $? "building docsets is only supported on Mac OS X." "$LINENO" 5
12000           else
12001               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002$as_echo "no" >&6; }
12003               ENABLEDOCDOCSET="no"
12004
12005           fi
12006    ;;
12007   esac
12008
12009
12010
12011
12012
12013
12014
12015# Check whether --with-vis was given.
12016if test "${with_vis+set}" = set; then :
12017  withval=$with_vis;
12018fi
12019
12020    if test "${with_vis:-no}" != "no"; then
12021      with_vis=${with_vis//,/ }
12022      ac_gecode_vis="${with_vis}${ac_gecode_vis:+ }${ac_gecode_vis}"
12023    fi
12024
12025
12026   # Check whether --enable-float-vars was given.
12027if test "${enable_float_vars+set}" = set; then :
12028  enableval=$enable_float_vars;
12029fi
12030
12031   ac_gecode_vis="\$(top_srcdir)/gecode/float/var-imp/float.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the float variables library" >&5
12033$as_echo_n "checking whether to build the float variables library... " >&6; }
12034   if test "${enable_float_vars:-yes}" = "yes"; then
12035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036$as_echo "yes" >&6; }
12037     enable_float_vars="yes";
12038     enable_int_vars="yes";
12039	 LINKFLOAT=${LINKLIBDIR}${LINKPREFIX}${FLOAT}${DLL_ARCH}${LINKSUFFIX}
12040
12041
12042
12043$as_echo "#define GECODE_HAS_FLOAT_VARS /**/" >>confdefs.h
12044
12045   else
12046     enable_float_vars="no";
12047
12048
12049
12050
12051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
12053   fi
12054   enable_float_vars=${enable_float_vars}
12055
12056
12057
12058
12059   # Check whether --enable-set-vars was given.
12060if test "${enable_set_vars+set}" = set; then :
12061  enableval=$enable_set_vars;
12062fi
12063
12064   ac_gecode_vis="\$(top_srcdir)/gecode/set/var-imp/set.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
12065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the set variables library" >&5
12066$as_echo_n "checking whether to build the set variables library... " >&6; }
12067   if test "${enable_set_vars:-yes}" = "yes"; then
12068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069$as_echo "yes" >&6; }
12070     enable_set_vars="yes";
12071     enable_int_vars="yes";
12072	 LINKSET=${LINKLIBDIR}${LINKPREFIX}${SET}${DLL_ARCH}${LINKSUFFIX}
12073
12074
12075
12076$as_echo "#define GECODE_HAS_SET_VARS /**/" >>confdefs.h
12077
12078   else
12079     enable_set_vars="no";
12080
12081
12082
12083
12084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085$as_echo "no" >&6; }
12086   fi
12087   enable_set_vars=${enable_set_vars}
12088
12089
12090
12091
12092   # Check whether --enable-int-vars was given.
12093if test "${enable_int_vars+set}" = set; then :
12094  enableval=$enable_int_vars;
12095fi
12096
12097   ac_gecode_vis="\$(top_srcdir)/gecode/int/var-imp/int.vis \$(top_srcdir)/gecode/int/var-imp/bool.vis${ac_gecode_vis:+ }${ac_gecode_vis}"
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the int variables library" >&5
12099$as_echo_n "checking whether to build the int variables library... " >&6; }
12100   if test "${enable_int_vars:-yes}" = "yes"; then
12101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102$as_echo "yes" >&6; }
12103     enable_int_vars="yes";
12104
12105  	 LINKINT=${LINKLIBDIR}${LINKPREFIX}${INT}${DLL_ARCH}${LINKSUFFIX}
12106
12107
12108
12109$as_echo "#define GECODE_HAS_INT_VARS /**/" >>confdefs.h
12110
12111   else
12112     enable_int_vars="no";
12113
12114
12115
12116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118   fi
12119   enable_int_vars=${enable_int_vars}
12120
12121
12122
12123
12124
12125  # Check whether --enable-mpfr was given.
12126if test "${enable_mpfr+set}" = set; then :
12127  enableval=$enable_mpfr;
12128fi
12129
12130  if test "${enable_float_vars:-yes}" = "yes"; then
12131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with MPFR support" >&5
12132$as_echo_n "checking whether to build with MPFR support... " >&6; }
12133    if test "${enable_mpfr:-yes}" = "yes"; then
12134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135$as_echo "yes" >&6; }
12136
12137# Check whether --with-gmp-include was given.
12138if test "${with_gmp_include+set}" = set; then :
12139  withval=$with_gmp_include;
12140fi
12141
12142  if test "${with_gmp_include:-no}" != "no"; then
12143      GMP_CPPFLAGS=-I${with_gmp_include}
12144
12145  fi
12146
12147
12148# Check whether --with-gmp-lib was given.
12149if test "${with_gmp_lib+set}" = set; then :
12150  withval=$with_gmp_lib;
12151fi
12152
12153
12154  ac_gecode_tmp_gmp_lib=""
12155  if test "${with_gmp_lib:-no}" != "no"; then
12156      case $ac_gecode_compiler_vendor in
12157        gnu)
12158          GMP_LIB_PATH="-L${with_gmp_lib}"
12159
12160        ;;
12161        microsoft)
12162          GMP_LIB_PATH="/LIBPATH:${with_gmp_lib}"
12163
12164        ;;
12165       esac
12166  else
12167       GMP_LIB_PATH=""
12168
12169  fi
12170
12171  ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
12172  ac_gecode_save_LIBS="${LIBS}"
12173  case $ac_gecode_compiler_vendor in
12174    gnu)
12175      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}"
12176      LIBS="${LIBS}${LIBS:+ } ${GMP_LIB_PATH}"
12177      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
12178$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12179if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
12180  $as_echo_n "(cached) " >&6
12181else
12182  ac_check_lib_save_LIBS=$LIBS
12183LIBS="-lgmp  $LIBS"
12184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186
12187/* Override any GCC internal prototype to avoid an error.
12188   Use char because int might match the return type of a GCC
12189   builtin and then its argument prototype would still apply.  */
12190#ifdef __cplusplus
12191extern "C"
12192#endif
12193char __gmpz_init ();
12194int
12195main ()
12196{
12197return __gmpz_init ();
12198  ;
12199  return 0;
12200}
12201_ACEOF
12202if ac_fn_cxx_try_link "$LINENO"; then :
12203  ac_cv_lib_gmp___gmpz_init=yes
12204else
12205  ac_cv_lib_gmp___gmpz_init=no
12206fi
12207rm -f core conftest.err conftest.$ac_objext \
12208    conftest$ac_exeext conftest.$ac_ext
12209LIBS=$ac_check_lib_save_LIBS
12210fi
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
12212$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12213if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
12214
12215        GMP_LINK="${ac_gecode_tmp_gmp_lib} -lgmp"
12216
12217
12218else
12219
12220        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5
12221$as_echo_n "checking for __gmpz_init in -lmpir... " >&6; }
12222if ${ac_cv_lib_mpir___gmpz_init+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  ac_check_lib_save_LIBS=$LIBS
12226LIBS="-lmpir  $LIBS"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h.  */
12229
12230/* Override any GCC internal prototype to avoid an error.
12231   Use char because int might match the return type of a GCC
12232   builtin and then its argument prototype would still apply.  */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236char __gmpz_init ();
12237int
12238main ()
12239{
12240return __gmpz_init ();
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245if ac_fn_cxx_try_link "$LINENO"; then :
12246  ac_cv_lib_mpir___gmpz_init=yes
12247else
12248  ac_cv_lib_mpir___gmpz_init=no
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251    conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5
12255$as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; }
12256if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then :
12257
12258          GMP_LINK="${ac_gecode_tmp_gmp_lib} -lmpir"
12259
12260
12261else
12262
12263          enable_mpfr=no;
12264
12265fi
12266
12267
12268fi
12269
12270    ;;
12271    microsoft)
12272      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}"
12273      LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} gmp.lib"
12274      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
12275$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12276if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
12277  $as_echo_n "(cached) " >&6
12278else
12279  ac_check_lib_save_LIBS=$LIBS
12280LIBS="-lgmp  $LIBS"
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283
12284/* Override any GCC internal prototype to avoid an error.
12285   Use char because int might match the return type of a GCC
12286   builtin and then its argument prototype would still apply.  */
12287#ifdef __cplusplus
12288extern "C"
12289#endif
12290char __gmpz_init ();
12291int
12292main ()
12293{
12294return __gmpz_init ();
12295  ;
12296  return 0;
12297}
12298_ACEOF
12299if ac_fn_cxx_try_link "$LINENO"; then :
12300  ac_cv_lib_gmp___gmpz_init=yes
12301else
12302  ac_cv_lib_gmp___gmpz_init=no
12303fi
12304rm -f core conftest.err conftest.$ac_objext \
12305    conftest$ac_exeext conftest.$ac_ext
12306LIBS=$ac_check_lib_save_LIBS
12307fi
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
12309$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12310if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
12311
12312        GMP_LINK="${ac_gecode_tmp_gmp_lib} gmp.lib"
12313
12314
12315else
12316
12317        LIBS="${ac_gecode_save_LIBS}"
12318        LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} mpir.lib"
12319        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5
12320$as_echo_n "checking for __gmpz_init in -lmpir... " >&6; }
12321if ${ac_cv_lib_mpir___gmpz_init+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  ac_check_lib_save_LIBS=$LIBS
12325LIBS="-lmpir  $LIBS"
12326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h.  */
12328
12329/* Override any GCC internal prototype to avoid an error.
12330   Use char because int might match the return type of a GCC
12331   builtin and then its argument prototype would still apply.  */
12332#ifdef __cplusplus
12333extern "C"
12334#endif
12335char __gmpz_init ();
12336int
12337main ()
12338{
12339return __gmpz_init ();
12340  ;
12341  return 0;
12342}
12343_ACEOF
12344if ac_fn_cxx_try_link "$LINENO"; then :
12345  ac_cv_lib_mpir___gmpz_init=yes
12346else
12347  ac_cv_lib_mpir___gmpz_init=no
12348fi
12349rm -f core conftest.err conftest.$ac_objext \
12350    conftest$ac_exeext conftest.$ac_ext
12351LIBS=$ac_check_lib_save_LIBS
12352fi
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5
12354$as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; }
12355if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then :
12356
12357          GMP_LINK="${ac_gecode_tmp_gmp_lib} mpir.lib"
12358
12359
12360else
12361
12362          enable_mpfr=no;
12363
12364fi
12365
12366
12367fi
12368
12369    ;;
12370  esac
12371  CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
12372  LIBS="${ac_gecode_save_LIBS}"
12373
12374
12375# Check whether --with-mpfr-include was given.
12376if test "${with_mpfr_include+set}" = set; then :
12377  withval=$with_mpfr_include;
12378fi
12379
12380  if test "${with_mpfr_include:-no}" != "no"; then
12381      MPFR_CPPFLAGS=-I${with_mpfr_include}
12382
12383  fi
12384
12385
12386# Check whether --with-mpfr-lib was given.
12387if test "${with_mpfr_lib+set}" = set; then :
12388  withval=$with_mpfr_lib;
12389fi
12390
12391  if test "${with_mpfr_lib:-no}" != "no"; then
12392      case $ac_gecode_compiler_vendor in
12393        gnu)
12394          MPFR_LIB_PATH="-L${with_mpfr_lib}"
12395
12396        ;;
12397        microsoft)
12398          MPFR_LIB_PATH="/LIBPATH:${with_mpfr_lib}"
12399
12400        ;;
12401       esac
12402  else
12403       MPFR_LIB_PATH=""
12404
12405  fi
12406  case $ac_gecode_compiler_vendor in
12407    gnu)
12408     MPFR_LINK="-lmpfr"
12409
12410    ;;
12411    microsoft)
12412      MPFR_LINK="mpfr.lib"
12413
12414    ;;
12415  esac
12416
12417      ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
12418      ac_gecode_save_LIBS="${LIBS}"
12419      case $ac_gecode_compiler_vendor in
12420        gnu)
12421          CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}"
12422          LIBS="${LIBS}${LIBS:+ } ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}"
12423          for ac_header in gmp.h
12424do :
12425  ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12426if test "x$ac_cv_header_gmp_h" = xyes; then :
12427  cat >>confdefs.h <<_ACEOF
12428#define HAVE_GMP_H 1
12429_ACEOF
12430 for ac_header in mpfr.h
12431do :
12432  ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
12433if test "x$ac_cv_header_mpfr_h" = xyes; then :
12434  cat >>confdefs.h <<_ACEOF
12435#define HAVE_MPFR_H 1
12436_ACEOF
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5
12438$as_echo_n "checking for mpfr_add in -lmpfr... " >&6; }
12439if ${ac_cv_lib_mpfr_mpfr_add+:} false; then :
12440  $as_echo_n "(cached) " >&6
12441else
12442  ac_check_lib_save_LIBS=$LIBS
12443LIBS="-lmpfr  $LIBS"
12444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h.  */
12446
12447/* Override any GCC internal prototype to avoid an error.
12448   Use char because int might match the return type of a GCC
12449   builtin and then its argument prototype would still apply.  */
12450#ifdef __cplusplus
12451extern "C"
12452#endif
12453char mpfr_add ();
12454int
12455main ()
12456{
12457return mpfr_add ();
12458  ;
12459  return 0;
12460}
12461_ACEOF
12462if ac_fn_cxx_try_link "$LINENO"; then :
12463  ac_cv_lib_mpfr_mpfr_add=yes
12464else
12465  ac_cv_lib_mpfr_mpfr_add=no
12466fi
12467rm -f core conftest.err conftest.$ac_objext \
12468    conftest$ac_exeext conftest.$ac_ext
12469LIBS=$ac_check_lib_save_LIBS
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_add" >&5
12472$as_echo "$ac_cv_lib_mpfr_mpfr_add" >&6; }
12473if test "x$ac_cv_lib_mpfr_mpfr_add" = xyes; then :
12474
12475$as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h
12476
12477                                          enable_mpfr=yes;
12478else
12479  enable_mpfr=no;
12480fi
12481
12482else
12483  enable_mpfr=no;
12484fi
12485
12486done
12487
12488else
12489  enable_mpfr=no;
12490fi
12491
12492done
12493
12494        ;;
12495        microsoft)
12496          CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}"
12497          LIBS="${LIBS}${LIBS:+ } /link ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}"
12498          for ac_header in gmp.h
12499do :
12500  ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12501if test "x$ac_cv_header_gmp_h" = xyes; then :
12502  cat >>confdefs.h <<_ACEOF
12503#define HAVE_GMP_H 1
12504_ACEOF
12505 for ac_header in mpfr.h
12506do :
12507  ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
12508if test "x$ac_cv_header_mpfr_h" = xyes; then :
12509  cat >>confdefs.h <<_ACEOF
12510#define HAVE_MPFR_H 1
12511_ACEOF
12512 ac_fn_cxx_check_func "$LINENO" "mpfr_add" "ac_cv_func_mpfr_add"
12513if test "x$ac_cv_func_mpfr_add" = xyes; then :
12514
12515$as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h
12516
12517                                          enable_mpfr=yes;
12518else
12519  enable_mpfr=no;
12520fi
12521
12522else
12523  enable_mpfr=no;
12524fi
12525
12526done
12527
12528else
12529  enable_mpfr=no;
12530fi
12531
12532done
12533
12534        ;;
12535      esac
12536      CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
12537      LIBS="${ac_gecode_save_LIBS}"
12538    else
12539      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540$as_echo "no" >&6; }
12541      enable_mpfr=no;
12542    fi
12543  else
12544    enable_mpfr=no;
12545  fi
12546  enable_mpfr=${enable_mpfr}
12547
12548
12549
12550  # Check whether --enable-qt was given.
12551if test "${enable_qt+set}" = set; then :
12552  enableval=$enable_qt;
12553fi
12554
12555  for ac_prog in qmake-qt5 qmake
12556do
12557  # Extract the first word of "$ac_prog", so it can be a program name with args.
12558set dummy $ac_prog; ac_word=$2
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560$as_echo_n "checking for $ac_word... " >&6; }
12561if ${ac_cv_prog_QMAKE+:} false; then :
12562  $as_echo_n "(cached) " >&6
12563else
12564  if test -n "$QMAKE"; then
12565  ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
12566else
12567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568for as_dir in $PATH
12569do
12570  IFS=$as_save_IFS
12571  test -z "$as_dir" && as_dir=.
12572    for ac_exec_ext in '' $ac_executable_extensions; do
12573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574    ac_cv_prog_QMAKE="$ac_prog"
12575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576    break 2
12577  fi
12578done
12579  done
12580IFS=$as_save_IFS
12581
12582fi
12583fi
12584QMAKE=$ac_cv_prog_QMAKE
12585if test -n "$QMAKE"; then
12586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
12587$as_echo "$QMAKE" >&6; }
12588else
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590$as_echo "no" >&6; }
12591fi
12592
12593
12594  test -n "$QMAKE" && break
12595done
12596
12597  for ac_prog in moc-qt5 moc
12598do
12599  # Extract the first word of "$ac_prog", so it can be a program name with args.
12600set dummy $ac_prog; ac_word=$2
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602$as_echo_n "checking for $ac_word... " >&6; }
12603if ${ac_cv_prog_MOC+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  if test -n "$MOC"; then
12607  ac_cv_prog_MOC="$MOC" # Let the user override the test.
12608else
12609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612  IFS=$as_save_IFS
12613  test -z "$as_dir" && as_dir=.
12614    for ac_exec_ext in '' $ac_executable_extensions; do
12615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616    ac_cv_prog_MOC="$ac_prog"
12617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618    break 2
12619  fi
12620done
12621  done
12622IFS=$as_save_IFS
12623
12624fi
12625fi
12626MOC=$ac_cv_prog_MOC
12627if test -n "$MOC"; then
12628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
12629$as_echo "$MOC" >&6; }
12630else
12631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634
12635
12636  test -n "$MOC" && break
12637done
12638
12639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Qt support" >&5
12640$as_echo_n "checking whether to build with Qt support... " >&6; }
12641  if test "${enable_qt:-yes}" = "yes"; then
12642    if test "${QMAKE}x" = "x" -o "${MOC}x" = "x"; then
12643      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644$as_echo "no" >&6; }
12645    else
12646      ac_gecode_qt_version=`${QMAKE} -query QT_VERSION`
12647      ac_gecode_qt_major=`echo ${ac_gecode_qt_version} | grep -o '^[0-9]*'`
12648      ac_gecode_qt_minor=`echo ${ac_gecode_qt_version} | sed -e 's/^[0-9]*\\.//g' -e 's/\\.[0-9]*$//g'`
12649      ac_gecode_qt_ok="yes"
12650      if test ${ac_gecode_qt_major} -lt 4; then ac_gecode_qt_ok="no";
12651      else if test ${ac_gecode_qt_major} -eq 4 \
12652                -a ${ac_gecode_qt_minor} -lt 3; then ac_gecode_qt_ok="no";
12653           fi
12654      fi
12655      if test "${ac_gecode_qt_ok}" != "yes"; then
12656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657$as_echo "no" >&6; }
12658      else
12659        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660$as_echo "yes" >&6; }
12661
12662$as_echo "#define GECODE_HAS_QT /**/" >>confdefs.h
12663
12664                ac_gecode_qt_tmpdir=`mktemp -d gistqt.XXXXXX` || exit 1
12665        cd ${ac_gecode_qt_tmpdir}
12666        echo "CONFIG += release" > a.pro
12667        if test ${ac_gecode_qt_major} -eq 5; then
12668          echo "QT += widgets printsupport" >> a.pro
12669        fi
12670        ${QMAKE}
12671        if test -d a.xcodeproj; then
12672          ac_gecode_qt_makefile=a.xcodeproj/qt_preprocess.mak
12673        elif test -d a.pbproj; then
12674          ac_gecode_qt_makefile=a.pbproj/qt_preprocess.mak
12675        elif test -f Makefile.Debug; then
12676            if test "${enable_debug:-no}" = "no"; then
12677              ac_gecode_qt_makefile=Makefile.Release
12678            else
12679              ac_gecode_qt_makefile=Makefile.Debug
12680            fi
12681        else
12682          ac_gecode_qt_makefile=Makefile
12683        fi
12684        ac_gecode_qt_defines=`grep ${ac_gecode_qt_makefile} -e 'DEFINES.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12685        ac_gecode_qt_inc=`grep ${ac_gecode_qt_makefile} -e 'INCPATH.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12686        ac_gecode_qt_libs=`grep ${ac_gecode_qt_makefile} -e 'LIBS.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'`
12687        if test -d a.xcodeproj -o -d a.pbproj; then
12688          ac_gecode_qt_libs="-framework QtGui -framework QtCore"
12689        fi
12690        cd ..
12691        rm -r ${ac_gecode_qt_tmpdir}
12692        QTINCLUDES=${ac_gecode_qt_inc}
12693
12694        QTDEFINES=${ac_gecode_qt_defines}
12695
12696        QTLIBS=${ac_gecode_qt_libs}
12697
12698        enable_qt=yes
12699
12700        enable_qt=yes;
12701      fi
12702    fi
12703  else
12704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706    enable_qt=no;
12707  fi
12708  enable_qt=${enable_qt}
12709
12710
12711
12712  # Check whether --enable-gist was given.
12713if test "${enable_gist+set}" = set; then :
12714  enableval=$enable_gist;
12715fi
12716
12717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gist" >&5
12718$as_echo_n "checking whether to build Gist... " >&6; }
12719  if test "${enable_gist:-yes}" = "yes" -a "${enable_qt}" = "yes"; then
12720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12721$as_echo "yes" >&6; }
12722    enable_gist=yes
12723
12724
12725$as_echo "#define GECODE_HAS_GIST /**/" >>confdefs.h
12726
12727  else
12728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729$as_echo "no" >&6; }
12730  fi
12731
12732
12733  # Check whether --enable-cbs was given.
12734if test "${enable_cbs+set}" = set; then :
12735  enableval=$enable_cbs;
12736fi
12737
12738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for cbs" >&5
12739$as_echo_n "checking whether to build with support for cbs... " >&6; }
12740  if test "${enable_cbs:-no}" = "yes"; then
12741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12742$as_echo "yes" >&6; }
12743    enable_cbs=yes
12744
12745
12746$as_echo "#define GECODE_HAS_CBS /**/" >>confdefs.h
12747
12748  else
12749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
12751  fi
12752
12753
12754  # Check whether --enable-cpprofiler was given.
12755if test "${enable_cpprofiler+set}" = set; then :
12756  enableval=$enable_cpprofiler;
12757fi
12758
12759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for CPProfiler" >&5
12760$as_echo_n "checking whether to build with support for CPProfiler... " >&6; }
12761  if test "${enable_cpprofiler:-no}" = "yes"; then
12762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763$as_echo "yes" >&6; }
12764    enable_cpprofiler=yes
12765
12766
12767$as_echo "#define GECODE_HAS_CPPROFILER /**/" >>confdefs.h
12768
12769  else
12770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772  fi
12773
12774if test -n "$ac_tool_prefix"; then
12775  # Extract the first word of "${ac_tool_prefix}flex", so it can be a program name with args.
12776set dummy ${ac_tool_prefix}flex; ac_word=$2
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if ${ac_cv_prog_HAVEFLEX+:} false; then :
12780  $as_echo_n "(cached) " >&6
12781else
12782  if test -n "$HAVEFLEX"; then
12783  ac_cv_prog_HAVEFLEX="$HAVEFLEX" # Let the user override the test.
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788  IFS=$as_save_IFS
12789  test -z "$as_dir" && as_dir=.
12790    for ac_exec_ext in '' $ac_executable_extensions; do
12791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792    ac_cv_prog_HAVEFLEX="${ac_tool_prefix}flex"
12793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794    break 2
12795  fi
12796done
12797  done
12798IFS=$as_save_IFS
12799
12800fi
12801fi
12802HAVEFLEX=$ac_cv_prog_HAVEFLEX
12803if test -n "$HAVEFLEX"; then
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEFLEX" >&5
12805$as_echo "$HAVEFLEX" >&6; }
12806else
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809fi
12810
12811
12812fi
12813if test -z "$ac_cv_prog_HAVEFLEX"; then
12814  ac_ct_HAVEFLEX=$HAVEFLEX
12815  # Extract the first word of "flex", so it can be a program name with args.
12816set dummy flex; ac_word=$2
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818$as_echo_n "checking for $ac_word... " >&6; }
12819if ${ac_cv_prog_ac_ct_HAVEFLEX+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  if test -n "$ac_ct_HAVEFLEX"; then
12823  ac_cv_prog_ac_ct_HAVEFLEX="$ac_ct_HAVEFLEX" # Let the user override the test.
12824else
12825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826for as_dir in $PATH
12827do
12828  IFS=$as_save_IFS
12829  test -z "$as_dir" && as_dir=.
12830    for ac_exec_ext in '' $ac_executable_extensions; do
12831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832    ac_cv_prog_ac_ct_HAVEFLEX="flex"
12833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834    break 2
12835  fi
12836done
12837  done
12838IFS=$as_save_IFS
12839
12840fi
12841fi
12842ac_ct_HAVEFLEX=$ac_cv_prog_ac_ct_HAVEFLEX
12843if test -n "$ac_ct_HAVEFLEX"; then
12844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEFLEX" >&5
12845$as_echo "$ac_ct_HAVEFLEX" >&6; }
12846else
12847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848$as_echo "no" >&6; }
12849fi
12850
12851  if test "x$ac_ct_HAVEFLEX" = x; then
12852    HAVEFLEX=""
12853  else
12854    case $cross_compiling:$ac_tool_warned in
12855yes:)
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12858ac_tool_warned=yes ;;
12859esac
12860    HAVEFLEX=$ac_ct_HAVEFLEX
12861  fi
12862else
12863  HAVEFLEX="$ac_cv_prog_HAVEFLEX"
12864fi
12865
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least flex 2.5.33" >&5
12867$as_echo_n "checking whether we have at least flex 2.5.33... " >&6; }
12868   if test "${HAVEFLEX}x" = "x"; then
12869      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870$as_echo "no" >&6; }
12871      HAVE_FLEXBISON="no"
12872
12873   else
12874      if flex --version | grep ' 2\.5\.3[3-9].*$' >/dev/null 2>&1 ||
12875         flex --version | grep ' 2\.5\.4[0-9].*$' >/dev/null 2>&1 ||
12876         flex --version | grep ' 2\.[6-9]\.[0-9]*$' >/dev/null 2>&1
12877      then
12878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879$as_echo "yes" >&6; }
12880        if test -n "$ac_tool_prefix"; then
12881  # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args.
12882set dummy ${ac_tool_prefix}bison; ac_word=$2
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884$as_echo_n "checking for $ac_word... " >&6; }
12885if ${ac_cv_prog_HAVEBISON+:} false; then :
12886  $as_echo_n "(cached) " >&6
12887else
12888  if test -n "$HAVEBISON"; then
12889  ac_cv_prog_HAVEBISON="$HAVEBISON" # Let the user override the test.
12890else
12891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892for as_dir in $PATH
12893do
12894  IFS=$as_save_IFS
12895  test -z "$as_dir" && as_dir=.
12896    for ac_exec_ext in '' $ac_executable_extensions; do
12897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12898    ac_cv_prog_HAVEBISON="${ac_tool_prefix}bison"
12899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900    break 2
12901  fi
12902done
12903  done
12904IFS=$as_save_IFS
12905
12906fi
12907fi
12908HAVEBISON=$ac_cv_prog_HAVEBISON
12909if test -n "$HAVEBISON"; then
12910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEBISON" >&5
12911$as_echo "$HAVEBISON" >&6; }
12912else
12913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
12915fi
12916
12917
12918fi
12919if test -z "$ac_cv_prog_HAVEBISON"; then
12920  ac_ct_HAVEBISON=$HAVEBISON
12921  # Extract the first word of "bison", so it can be a program name with args.
12922set dummy bison; ac_word=$2
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
12925if ${ac_cv_prog_ac_ct_HAVEBISON+:} false; then :
12926  $as_echo_n "(cached) " >&6
12927else
12928  if test -n "$ac_ct_HAVEBISON"; then
12929  ac_cv_prog_ac_ct_HAVEBISON="$ac_ct_HAVEBISON" # Let the user override the test.
12930else
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934  IFS=$as_save_IFS
12935  test -z "$as_dir" && as_dir=.
12936    for ac_exec_ext in '' $ac_executable_extensions; do
12937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12938    ac_cv_prog_ac_ct_HAVEBISON="bison"
12939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940    break 2
12941  fi
12942done
12943  done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948ac_ct_HAVEBISON=$ac_cv_prog_ac_ct_HAVEBISON
12949if test -n "$ac_ct_HAVEBISON"; then
12950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEBISON" >&5
12951$as_echo "$ac_ct_HAVEBISON" >&6; }
12952else
12953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955fi
12956
12957  if test "x$ac_ct_HAVEBISON" = x; then
12958    HAVEBISON=""
12959  else
12960    case $cross_compiling:$ac_tool_warned in
12961yes:)
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12964ac_tool_warned=yes ;;
12965esac
12966    HAVEBISON=$ac_ct_HAVEBISON
12967  fi
12968else
12969  HAVEBISON="$ac_cv_prog_HAVEBISON"
12970fi
12971
12972        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least bison 2.3" >&5
12973$as_echo_n "checking whether we have at least bison 2.3... " >&6; }
12974        if test "${HAVEBISON}x" = "x"; then
12975          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976$as_echo "no" >&6; }
12977          HAVE_FLEXBISON="no"
12978
12979        else
12980          if bison --version | grep -e ' 2\.[3-9][0-9]*' >/dev/null 2>&1 ||
12981             bison --version | grep -e ' 3\.*' >/dev/null 2>&1
12982          then
12983            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12984$as_echo "yes" >&6; }
12985            HAVE_FLEXBISON="yes"
12986
12987          else
12988            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
12990            HAVE_FLEXBISON="no"
12991
12992          fi
12993        fi
12994      else
12995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
12997        HAVE_FLEXBISON="no"
12998
12999      fi
13000   fi
13001
13002
13003
13004  for ac_header in $ac_header_list
13005do :
13006  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13007ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13008"
13009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13010  cat >>confdefs.h <<_ACEOF
13011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13012_ACEOF
13013
13014fi
13015
13016done
13017
13018
13019
13020
13021
13022
13023
13024
13025for ac_func in getpagesize
13026do :
13027  ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13028if test "x$ac_cv_func_getpagesize" = xyes; then :
13029  cat >>confdefs.h <<_ACEOF
13030#define HAVE_GETPAGESIZE 1
13031_ACEOF
13032
13033fi
13034done
13035
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13037$as_echo_n "checking for working mmap... " >&6; }
13038if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13039  $as_echo_n "(cached) " >&6
13040else
13041  if test "$cross_compiling" = yes; then :
13042  ac_cv_func_mmap_fixed_mapped=no
13043else
13044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046$ac_includes_default
13047/* malloc might have been renamed as rpl_malloc. */
13048#undef malloc
13049
13050/* Thanks to Mike Haertel and Jim Avera for this test.
13051   Here is a matrix of mmap possibilities:
13052	mmap private not fixed
13053	mmap private fixed at somewhere currently unmapped
13054	mmap private fixed at somewhere already mapped
13055	mmap shared not fixed
13056	mmap shared fixed at somewhere currently unmapped
13057	mmap shared fixed at somewhere already mapped
13058   For private mappings, we should verify that changes cannot be read()
13059   back from the file, nor mmap's back from the file at a different
13060   address.  (There have been systems where private was not correctly
13061   implemented like the infamous i386 svr4.0, and systems where the
13062   VM page cache was not coherent with the file system buffer cache
13063   like early versions of FreeBSD and possibly contemporary NetBSD.)
13064   For shared mappings, we should conversely verify that changes get
13065   propagated back to all the places they're supposed to be.
13066
13067   Grep wants private fixed already mapped.
13068   The main things grep needs to know about mmap are:
13069   * does it exist and is it safe to write into the mmap'd area
13070   * how to use it (BSD variants)  */
13071
13072#include <fcntl.h>
13073#include <sys/mman.h>
13074
13075#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13076char *malloc ();
13077#endif
13078
13079/* This mess was copied from the GNU getpagesize.h.  */
13080#ifndef HAVE_GETPAGESIZE
13081# ifdef _SC_PAGESIZE
13082#  define getpagesize() sysconf(_SC_PAGESIZE)
13083# else /* no _SC_PAGESIZE */
13084#  ifdef HAVE_SYS_PARAM_H
13085#   include <sys/param.h>
13086#   ifdef EXEC_PAGESIZE
13087#    define getpagesize() EXEC_PAGESIZE
13088#   else /* no EXEC_PAGESIZE */
13089#    ifdef NBPG
13090#     define getpagesize() NBPG * CLSIZE
13091#     ifndef CLSIZE
13092#      define CLSIZE 1
13093#     endif /* no CLSIZE */
13094#    else /* no NBPG */
13095#     ifdef NBPC
13096#      define getpagesize() NBPC
13097#     else /* no NBPC */
13098#      ifdef PAGESIZE
13099#       define getpagesize() PAGESIZE
13100#      endif /* PAGESIZE */
13101#     endif /* no NBPC */
13102#    endif /* no NBPG */
13103#   endif /* no EXEC_PAGESIZE */
13104#  else /* no HAVE_SYS_PARAM_H */
13105#   define getpagesize() 8192	/* punt totally */
13106#  endif /* no HAVE_SYS_PARAM_H */
13107# endif /* no _SC_PAGESIZE */
13108
13109#endif /* no HAVE_GETPAGESIZE */
13110
13111int
13112main ()
13113{
13114  char *data, *data2, *data3;
13115  const char *cdata2;
13116  int i, pagesize;
13117  int fd, fd2;
13118
13119  pagesize = getpagesize ();
13120
13121  /* First, make a file with some known garbage in it. */
13122  data = (char *) malloc (pagesize);
13123  if (!data)
13124    return 1;
13125  for (i = 0; i < pagesize; ++i)
13126    *(data + i) = rand ();
13127  umask (0);
13128  fd = creat ("conftest.mmap", 0600);
13129  if (fd < 0)
13130    return 2;
13131  if (write (fd, data, pagesize) != pagesize)
13132    return 3;
13133  close (fd);
13134
13135  /* Next, check that the tail of a page is zero-filled.  File must have
13136     non-zero length, otherwise we risk SIGBUS for entire page.  */
13137  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13138  if (fd2 < 0)
13139    return 4;
13140  cdata2 = "";
13141  if (write (fd2, cdata2, 1) != 1)
13142    return 5;
13143  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13144  if (data2 == MAP_FAILED)
13145    return 6;
13146  for (i = 0; i < pagesize; ++i)
13147    if (*(data2 + i))
13148      return 7;
13149  close (fd2);
13150  if (munmap (data2, pagesize))
13151    return 8;
13152
13153  /* Next, try to mmap the file at a fixed address which already has
13154     something else allocated at it.  If we can, also make sure that
13155     we see the same garbage.  */
13156  fd = open ("conftest.mmap", O_RDWR);
13157  if (fd < 0)
13158    return 9;
13159  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13160		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13161    return 10;
13162  for (i = 0; i < pagesize; ++i)
13163    if (*(data + i) != *(data2 + i))
13164      return 11;
13165
13166  /* Finally, make sure that changes to the mapped area do not
13167     percolate back to the file as seen by read().  (This is a bug on
13168     some variants of i386 svr4.0.)  */
13169  for (i = 0; i < pagesize; ++i)
13170    *(data2 + i) = *(data2 + i) + 1;
13171  data3 = (char *) malloc (pagesize);
13172  if (!data3)
13173    return 12;
13174  if (read (fd, data3, pagesize) != pagesize)
13175    return 13;
13176  for (i = 0; i < pagesize; ++i)
13177    if (*(data + i) != *(data3 + i))
13178      return 14;
13179  close (fd);
13180  return 0;
13181}
13182_ACEOF
13183if ac_fn_cxx_try_run "$LINENO"; then :
13184  ac_cv_func_mmap_fixed_mapped=yes
13185else
13186  ac_cv_func_mmap_fixed_mapped=no
13187fi
13188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13189  conftest.$ac_objext conftest.beam conftest.$ac_ext
13190fi
13191
13192fi
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13194$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13195if test $ac_cv_func_mmap_fixed_mapped = yes; then
13196
13197$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13198
13199fi
13200rm -f conftest.mmap conftest.txt
13201
13202
13203
13204     # Check whether --enable-driver was given.
13205if test "${enable_driver+set}" = set; then :
13206  enableval=$enable_driver;
13207fi
13208
13209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5
13210$as_echo_n "checking whether to build driver... " >&6; }
13211     if test "${enable_driver:-yes}" = "yes"; then
13212        enable_driver="yes";
13213        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13214$as_echo "yes" >&6; }
13215        enable_search="yes";
13216         enable_int="yes";
13217
13218     else
13219        enable_driver="no";
13220        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221$as_echo "no" >&6; }
13222     fi
13223        enable_driver=${enable_driver}
13224
13225
13226
13227     # Check whether --enable-flatzinc was given.
13228if test "${enable_flatzinc+set}" = set; then :
13229  enableval=$enable_flatzinc;
13230fi
13231
13232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build flatzinc" >&5
13233$as_echo_n "checking whether to build flatzinc... " >&6; }
13234     if test "${enable_flatzinc:-yes}" = "yes"; then
13235        enable_flatzinc="yes";
13236        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237$as_echo "yes" >&6; }
13238        enable_search="yes";
13239   enable_driver="yes";
13240   enable_minimodel="yes";
13241
13242     else
13243        enable_flatzinc="no";
13244        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245$as_echo "no" >&6; }
13246     fi
13247        enable_flatzinc=${enable_flatzinc}
13248
13249
13250
13251     # Check whether --enable-driver was given.
13252if test "${enable_driver+set}" = set; then :
13253  enableval=$enable_driver;
13254fi
13255
13256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5
13257$as_echo_n "checking whether to build driver... " >&6; }
13258     if test "${enable_driver:-yes}" = "yes"; then
13259        enable_driver="yes";
13260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13261$as_echo "yes" >&6; }
13262        enable_search="yes";
13263         enable_int="yes";
13264
13265     else
13266        enable_driver="no";
13267        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
13269     fi
13270        enable_driver=${enable_driver}
13271
13272
13273
13274     # Check whether --enable-examples was given.
13275if test "${enable_examples+set}" = set; then :
13276  enableval=$enable_examples;
13277fi
13278
13279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build examples" >&5
13280$as_echo_n "checking whether to build examples... " >&6; }
13281     if test "${enable_examples:-yes}" = "yes"; then
13282        enable_examples="yes";
13283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284$as_echo "yes" >&6; }
13285        enable_search="yes";
13286         enable_driver="yes";
13287         enable_minimodel="yes";
13288
13289     else
13290        enable_examples="no";
13291        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
13293     fi
13294        enable_examples=${enable_examples}
13295
13296
13297
13298     # Check whether --enable-minimodel was given.
13299if test "${enable_minimodel+set}" = set; then :
13300  enableval=$enable_minimodel;
13301fi
13302
13303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build minimodel" >&5
13304$as_echo_n "checking whether to build minimodel... " >&6; }
13305     if test "${enable_minimodel:-yes}" = "yes"; then
13306        enable_minimodel="yes";
13307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13308$as_echo "yes" >&6; }
13309
13310     else
13311        enable_minimodel="no";
13312        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313$as_echo "no" >&6; }
13314     fi
13315        enable_minimodel=${enable_minimodel}
13316
13317
13318
13319     # Check whether --enable-search was given.
13320if test "${enable_search+set}" = set; then :
13321  enableval=$enable_search;
13322fi
13323
13324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build search" >&5
13325$as_echo_n "checking whether to build search... " >&6; }
13326     if test "${enable_search:-yes}" = "yes"; then
13327        enable_search="yes";
13328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13329$as_echo "yes" >&6; }
13330
13331     else
13332        enable_search="no";
13333        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335     fi
13336        enable_search=${enable_search}
13337
13338
13339ac_aux_dir=
13340for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
13341  if test -f "$ac_dir/install-sh"; then
13342    ac_aux_dir=$ac_dir
13343    ac_install_sh="$ac_aux_dir/install-sh -c"
13344    break
13345  elif test -f "$ac_dir/install.sh"; then
13346    ac_aux_dir=$ac_dir
13347    ac_install_sh="$ac_aux_dir/install.sh -c"
13348    break
13349  elif test -f "$ac_dir/shtool"; then
13350    ac_aux_dir=$ac_dir
13351    ac_install_sh="$ac_aux_dir/shtool install -c"
13352    break
13353  fi
13354done
13355if test -z "$ac_aux_dir"; then
13356  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
13357fi
13358
13359# These three variables are undocumented and unsupported,
13360# and are intended to be withdrawn in a future Autoconf release.
13361# They can cause serious problems if a builder's source tree is in a directory
13362# whose full name contains unusual characters.
13363ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
13364ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
13365ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
13366
13367
13368
13369
13370subdirs="$subdirs "
13371
13372
13373VERSION=${PACKAGE_VERSION}
13374
13375GECODE_VERSION=${PACKAGE_VERSION}
13376
13377DLLFLAGS=${DLLFLAGS}
13378
13379GLDFLAGS=${GLDFLAGS}
13380
13381ALLVIS=${ac_gecode_vis}
13382
13383
13384VERSION_DASHES=`echo $PACKAGE_VERSION | sed -e s/\\\\./-/g`
13385
13386PACKAGE_VERSION_NUMBER=`echo $PACKAGE_VERSION | awk -F. '{print $1 * 100000 + $2 * 100 + $3}'`
13387
13388
13389cat >>confdefs.h <<_ACEOF
13390#define GECODE_VERSION "${PACKAGE_VERSION}"
13391_ACEOF
13392
13393
13394cat >>confdefs.h <<_ACEOF
13395#define GECODE_LIBRARY_VERSION "${VERSION_DASHES}"
13396_ACEOF
13397
13398
13399cat >>confdefs.h <<_ACEOF
13400#define GECODE_VERSION_NUMBER ${PACKAGE_VERSION_NUMBER}
13401_ACEOF
13402
13403
13404
13405cat >>confdefs.h <<_ACEOF
13406#define GECODE_FLATZINC_VERSION "${GECODE_FLATZINC_VERSION}"
13407_ACEOF
13408
13409
13410ac_gecode_library_architecture=-${VERSION_DASHES}${ac_gecode_library_architecture}
13411if test   "$ac_gecode_compiler_vendor" == "microsoft" \
13412       -o \( "$ac_gecode_compiler_vendor" == "intel" \
13413            -a "$host_os" == "windows" \) ; then
13414  DLL_ARCH=${ac_gecode_library_architecture}
13415
13416else
13417  DLL_ARCH=""
13418
13419fi
13420
13421ac_config_files="$ac_config_files Makefile"
13422
13423if test "${host_os}" = "windows"; then
13424  BATCHFILE=".bat"
13425
13426  ac_config_files="$ac_config_files tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in"
13427
13428else
13429  BATCHFILE=""
13430
13431  ac_config_files="$ac_config_files tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in"
13432
13433fi
13434ac_config_files="$ac_config_files tools/flatzinc/gecode.msc:tools/flatzinc/gecode.msc.in"
13435
13436ac_config_files="$ac_config_files doxygen.conf:doxygen/doxygen.conf.in"
13437
13438ac_config_files="$ac_config_files doxygen.hh:doxygen/doxygen.hh.in"
13439
13440cat >confcache <<\_ACEOF
13441# This file is a shell script that caches the results of configure
13442# tests run on this system so they can be shared between configure
13443# scripts and configure runs, see configure's option --config-cache.
13444# It is not useful on other systems.  If it contains results you don't
13445# want to keep, you may remove or edit it.
13446#
13447# config.status only pays attention to the cache file if you give it
13448# the --recheck option to rerun configure.
13449#
13450# `ac_cv_env_foo' variables (set or unset) will be overridden when
13451# loading this file, other *unset* `ac_cv_foo' will be assigned the
13452# following values.
13453
13454_ACEOF
13455
13456# The following way of writing the cache mishandles newlines in values,
13457# but we know of no workaround that is simple, portable, and efficient.
13458# So, we kill variables containing newlines.
13459# Ultrix sh set writes to stderr and can't be redirected directly,
13460# and sets the high bit in the cache file unless we assign to the vars.
13461(
13462  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13463    eval ac_val=\$$ac_var
13464    case $ac_val in #(
13465    *${as_nl}*)
13466      case $ac_var in #(
13467      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13468$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13469      esac
13470      case $ac_var in #(
13471      _ | IFS | as_nl) ;; #(
13472      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13473      *) { eval $ac_var=; unset $ac_var;} ;;
13474      esac ;;
13475    esac
13476  done
13477
13478  (set) 2>&1 |
13479    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13480    *${as_nl}ac_space=\ *)
13481      # `set' does not quote correctly, so add quotes: double-quote
13482      # substitution turns \\\\ into \\, and sed turns \\ into \.
13483      sed -n \
13484	"s/'/'\\\\''/g;
13485	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13486      ;; #(
13487    *)
13488      # `set' quotes correctly as required by POSIX, so do not add quotes.
13489      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13490      ;;
13491    esac |
13492    sort
13493) |
13494  sed '
13495     /^ac_cv_env_/b end
13496     t clear
13497     :clear
13498     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13499     t end
13500     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13501     :end' >>confcache
13502if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13503  if test -w "$cache_file"; then
13504    if test "x$cache_file" != "x/dev/null"; then
13505      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13506$as_echo "$as_me: updating cache $cache_file" >&6;}
13507      if test ! -f "$cache_file" || test -h "$cache_file"; then
13508	cat confcache >"$cache_file"
13509      else
13510        case $cache_file in #(
13511        */* | ?:*)
13512	  mv -f confcache "$cache_file"$$ &&
13513	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13514        *)
13515	  mv -f confcache "$cache_file" ;;
13516	esac
13517      fi
13518    fi
13519  else
13520    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13521$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13522  fi
13523fi
13524rm -f confcache
13525
13526test "x$prefix" = xNONE && prefix=$ac_default_prefix
13527# Let make expand exec_prefix.
13528test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13529
13530DEFS=-DHAVE_CONFIG_H
13531
13532ac_libobjs=
13533ac_ltlibobjs=
13534U=
13535for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13536  # 1. Remove the extension, and $U if already installed.
13537  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13538  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13539  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13540  #    will be set to the directory where LIBOBJS objects are built.
13541  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13542  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13543done
13544LIBOBJS=$ac_libobjs
13545
13546LTLIBOBJS=$ac_ltlibobjs
13547
13548
13549
13550: "${CONFIG_STATUS=./config.status}"
13551ac_write_fail=0
13552ac_clean_files_save=$ac_clean_files
13553ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13555$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13556as_write_fail=0
13557cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13558#! $SHELL
13559# Generated by $as_me.
13560# Run this file to recreate the current configuration.
13561# Compiler output produced by configure, useful for debugging
13562# configure, is in config.log if it exists.
13563
13564debug=false
13565ac_cs_recheck=false
13566ac_cs_silent=false
13567
13568SHELL=\${CONFIG_SHELL-$SHELL}
13569export SHELL
13570_ASEOF
13571cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13572## -------------------- ##
13573## M4sh Initialization. ##
13574## -------------------- ##
13575
13576# Be more Bourne compatible
13577DUALCASE=1; export DUALCASE # for MKS sh
13578if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13579  emulate sh
13580  NULLCMD=:
13581  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13582  # is contrary to our usage.  Disable this feature.
13583  alias -g '${1+"$@"}'='"$@"'
13584  setopt NO_GLOB_SUBST
13585else
13586  case `(set -o) 2>/dev/null` in #(
13587  *posix*) :
13588    set -o posix ;; #(
13589  *) :
13590     ;;
13591esac
13592fi
13593
13594
13595as_nl='
13596'
13597export as_nl
13598# Printing a long string crashes Solaris 7 /usr/bin/printf.
13599as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13600as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13602# Prefer a ksh shell builtin over an external printf program on Solaris,
13603# but without wasting forks for bash or zsh.
13604if test -z "$BASH_VERSION$ZSH_VERSION" \
13605    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13606  as_echo='print -r --'
13607  as_echo_n='print -rn --'
13608elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13609  as_echo='printf %s\n'
13610  as_echo_n='printf %s'
13611else
13612  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13613    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13614    as_echo_n='/usr/ucb/echo -n'
13615  else
13616    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13617    as_echo_n_body='eval
13618      arg=$1;
13619      case $arg in #(
13620      *"$as_nl"*)
13621	expr "X$arg" : "X\\(.*\\)$as_nl";
13622	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13623      esac;
13624      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13625    '
13626    export as_echo_n_body
13627    as_echo_n='sh -c $as_echo_n_body as_echo'
13628  fi
13629  export as_echo_body
13630  as_echo='sh -c $as_echo_body as_echo'
13631fi
13632
13633# The user is always right.
13634if test "${PATH_SEPARATOR+set}" != set; then
13635  PATH_SEPARATOR=:
13636  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13637    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13638      PATH_SEPARATOR=';'
13639  }
13640fi
13641
13642
13643# IFS
13644# We need space, tab and new line, in precisely that order.  Quoting is
13645# there to prevent editors from complaining about space-tab.
13646# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13647# splitting by setting IFS to empty value.)
13648IFS=" ""	$as_nl"
13649
13650# Find who we are.  Look in the path if we contain no directory separator.
13651as_myself=
13652case $0 in #((
13653  *[\\/]* ) as_myself=$0 ;;
13654  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657  IFS=$as_save_IFS
13658  test -z "$as_dir" && as_dir=.
13659    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13660  done
13661IFS=$as_save_IFS
13662
13663     ;;
13664esac
13665# We did not find ourselves, most probably we were run as `sh COMMAND'
13666# in which case we are not to be found in the path.
13667if test "x$as_myself" = x; then
13668  as_myself=$0
13669fi
13670if test ! -f "$as_myself"; then
13671  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13672  exit 1
13673fi
13674
13675# Unset variables that we do not need and which cause bugs (e.g. in
13676# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13677# suppresses any "Segmentation fault" message there.  '((' could
13678# trigger a bug in pdksh 5.2.14.
13679for as_var in BASH_ENV ENV MAIL MAILPATH
13680do eval test x\${$as_var+set} = xset \
13681  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13682done
13683PS1='$ '
13684PS2='> '
13685PS4='+ '
13686
13687# NLS nuisances.
13688LC_ALL=C
13689export LC_ALL
13690LANGUAGE=C
13691export LANGUAGE
13692
13693# CDPATH.
13694(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13695
13696
13697# as_fn_error STATUS ERROR [LINENO LOG_FD]
13698# ----------------------------------------
13699# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13700# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13701# script with STATUS, using 1 if that was 0.
13702as_fn_error ()
13703{
13704  as_status=$1; test $as_status -eq 0 && as_status=1
13705  if test "$4"; then
13706    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13707    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13708  fi
13709  $as_echo "$as_me: error: $2" >&2
13710  as_fn_exit $as_status
13711} # as_fn_error
13712
13713
13714# as_fn_set_status STATUS
13715# -----------------------
13716# Set $? to STATUS, without forking.
13717as_fn_set_status ()
13718{
13719  return $1
13720} # as_fn_set_status
13721
13722# as_fn_exit STATUS
13723# -----------------
13724# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13725as_fn_exit ()
13726{
13727  set +e
13728  as_fn_set_status $1
13729  exit $1
13730} # as_fn_exit
13731
13732# as_fn_unset VAR
13733# ---------------
13734# Portably unset VAR.
13735as_fn_unset ()
13736{
13737  { eval $1=; unset $1;}
13738}
13739as_unset=as_fn_unset
13740# as_fn_append VAR VALUE
13741# ----------------------
13742# Append the text in VALUE to the end of the definition contained in VAR. Take
13743# advantage of any shell optimizations that allow amortized linear growth over
13744# repeated appends, instead of the typical quadratic growth present in naive
13745# implementations.
13746if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13747  eval 'as_fn_append ()
13748  {
13749    eval $1+=\$2
13750  }'
13751else
13752  as_fn_append ()
13753  {
13754    eval $1=\$$1\$2
13755  }
13756fi # as_fn_append
13757
13758# as_fn_arith ARG...
13759# ------------------
13760# Perform arithmetic evaluation on the ARGs, and store the result in the
13761# global $as_val. Take advantage of shells that can avoid forks. The arguments
13762# must be portable across $(()) and expr.
13763if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13764  eval 'as_fn_arith ()
13765  {
13766    as_val=$(( $* ))
13767  }'
13768else
13769  as_fn_arith ()
13770  {
13771    as_val=`expr "$@" || test $? -eq 1`
13772  }
13773fi # as_fn_arith
13774
13775
13776if expr a : '\(a\)' >/dev/null 2>&1 &&
13777   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13778  as_expr=expr
13779else
13780  as_expr=false
13781fi
13782
13783if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13784  as_basename=basename
13785else
13786  as_basename=false
13787fi
13788
13789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13790  as_dirname=dirname
13791else
13792  as_dirname=false
13793fi
13794
13795as_me=`$as_basename -- "$0" ||
13796$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13797	 X"$0" : 'X\(//\)$' \| \
13798	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13799$as_echo X/"$0" |
13800    sed '/^.*\/\([^/][^/]*\)\/*$/{
13801	    s//\1/
13802	    q
13803	  }
13804	  /^X\/\(\/\/\)$/{
13805	    s//\1/
13806	    q
13807	  }
13808	  /^X\/\(\/\).*/{
13809	    s//\1/
13810	    q
13811	  }
13812	  s/.*/./; q'`
13813
13814# Avoid depending upon Character Ranges.
13815as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13816as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13817as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13818as_cr_digits='0123456789'
13819as_cr_alnum=$as_cr_Letters$as_cr_digits
13820
13821ECHO_C= ECHO_N= ECHO_T=
13822case `echo -n x` in #(((((
13823-n*)
13824  case `echo 'xy\c'` in
13825  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13826  xy)  ECHO_C='\c';;
13827  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13828       ECHO_T='	';;
13829  esac;;
13830*)
13831  ECHO_N='-n';;
13832esac
13833
13834rm -f conf$$ conf$$.exe conf$$.file
13835if test -d conf$$.dir; then
13836  rm -f conf$$.dir/conf$$.file
13837else
13838  rm -f conf$$.dir
13839  mkdir conf$$.dir 2>/dev/null
13840fi
13841if (echo >conf$$.file) 2>/dev/null; then
13842  if ln -s conf$$.file conf$$ 2>/dev/null; then
13843    as_ln_s='ln -s'
13844    # ... but there are two gotchas:
13845    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13846    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13847    # In both cases, we have to default to `cp -pR'.
13848    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13849      as_ln_s='cp -pR'
13850  elif ln conf$$.file conf$$ 2>/dev/null; then
13851    as_ln_s=ln
13852  else
13853    as_ln_s='cp -pR'
13854  fi
13855else
13856  as_ln_s='cp -pR'
13857fi
13858rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13859rmdir conf$$.dir 2>/dev/null
13860
13861
13862# as_fn_mkdir_p
13863# -------------
13864# Create "$as_dir" as a directory, including parents if necessary.
13865as_fn_mkdir_p ()
13866{
13867
13868  case $as_dir in #(
13869  -*) as_dir=./$as_dir;;
13870  esac
13871  test -d "$as_dir" || eval $as_mkdir_p || {
13872    as_dirs=
13873    while :; do
13874      case $as_dir in #(
13875      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13876      *) as_qdir=$as_dir;;
13877      esac
13878      as_dirs="'$as_qdir' $as_dirs"
13879      as_dir=`$as_dirname -- "$as_dir" ||
13880$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13881	 X"$as_dir" : 'X\(//\)[^/]' \| \
13882	 X"$as_dir" : 'X\(//\)$' \| \
13883	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13884$as_echo X"$as_dir" |
13885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13886	    s//\1/
13887	    q
13888	  }
13889	  /^X\(\/\/\)[^/].*/{
13890	    s//\1/
13891	    q
13892	  }
13893	  /^X\(\/\/\)$/{
13894	    s//\1/
13895	    q
13896	  }
13897	  /^X\(\/\).*/{
13898	    s//\1/
13899	    q
13900	  }
13901	  s/.*/./; q'`
13902      test -d "$as_dir" && break
13903    done
13904    test -z "$as_dirs" || eval "mkdir $as_dirs"
13905  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13906
13907
13908} # as_fn_mkdir_p
13909if mkdir -p . 2>/dev/null; then
13910  as_mkdir_p='mkdir -p "$as_dir"'
13911else
13912  test -d ./-p && rmdir ./-p
13913  as_mkdir_p=false
13914fi
13915
13916
13917# as_fn_executable_p FILE
13918# -----------------------
13919# Test if FILE is an executable regular file.
13920as_fn_executable_p ()
13921{
13922  test -f "$1" && test -x "$1"
13923} # as_fn_executable_p
13924as_test_x='test -x'
13925as_executable_p=as_fn_executable_p
13926
13927# Sed expression to map a string onto a valid CPP name.
13928as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13929
13930# Sed expression to map a string onto a valid variable name.
13931as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13932
13933
13934exec 6>&1
13935## ----------------------------------- ##
13936## Main body of $CONFIG_STATUS script. ##
13937## ----------------------------------- ##
13938_ASEOF
13939test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13940
13941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942# Save the log message, to keep $0 and so on meaningful, and to
13943# report actual input values of CONFIG_FILES etc. instead of their
13944# values after options handling.
13945ac_log="
13946This file was extended by GECODE $as_me 6.3.0, which was
13947generated by GNU Autoconf 2.69.  Invocation command line was
13948
13949  CONFIG_FILES    = $CONFIG_FILES
13950  CONFIG_HEADERS  = $CONFIG_HEADERS
13951  CONFIG_LINKS    = $CONFIG_LINKS
13952  CONFIG_COMMANDS = $CONFIG_COMMANDS
13953  $ $0 $@
13954
13955on `(hostname || uname -n) 2>/dev/null | sed 1q`
13956"
13957
13958_ACEOF
13959
13960case $ac_config_files in *"
13961"*) set x $ac_config_files; shift; ac_config_files=$*;;
13962esac
13963
13964case $ac_config_headers in *"
13965"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13966esac
13967
13968
13969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13970# Files that config.status was made for.
13971config_files="$ac_config_files"
13972config_headers="$ac_config_headers"
13973
13974_ACEOF
13975
13976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977ac_cs_usage="\
13978\`$as_me' instantiates files and other configuration actions
13979from templates according to the current configuration.  Unless the files
13980and actions are specified as TAGs, all are instantiated by default.
13981
13982Usage: $0 [OPTION]... [TAG]...
13983
13984  -h, --help       print this help, then exit
13985  -V, --version    print version number and configuration settings, then exit
13986      --config     print configuration, then exit
13987  -q, --quiet, --silent
13988                   do not print progress messages
13989  -d, --debug      don't remove temporary files
13990      --recheck    update $as_me by reconfiguring in the same conditions
13991      --file=FILE[:TEMPLATE]
13992                   instantiate the configuration file FILE
13993      --header=FILE[:TEMPLATE]
13994                   instantiate the configuration header FILE
13995
13996Configuration files:
13997$config_files
13998
13999Configuration headers:
14000$config_headers
14001
14002Report bugs to <users@gecode.org>."
14003
14004_ACEOF
14005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14006ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14007ac_cs_version="\\
14008GECODE config.status 6.3.0
14009configured by $0, generated by GNU Autoconf 2.69,
14010  with options \\"\$ac_cs_config\\"
14011
14012Copyright (C) 2012 Free Software Foundation, Inc.
14013This config.status script is free software; the Free Software Foundation
14014gives unlimited permission to copy, distribute and modify it."
14015
14016ac_pwd='$ac_pwd'
14017srcdir='$srcdir'
14018test -n "\$AWK" || AWK=awk
14019_ACEOF
14020
14021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14022# The default lists apply if the user does not specify any file.
14023ac_need_defaults=:
14024while test $# != 0
14025do
14026  case $1 in
14027  --*=?*)
14028    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14029    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14030    ac_shift=:
14031    ;;
14032  --*=)
14033    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14034    ac_optarg=
14035    ac_shift=:
14036    ;;
14037  *)
14038    ac_option=$1
14039    ac_optarg=$2
14040    ac_shift=shift
14041    ;;
14042  esac
14043
14044  case $ac_option in
14045  # Handling of the options.
14046  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14047    ac_cs_recheck=: ;;
14048  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14049    $as_echo "$ac_cs_version"; exit ;;
14050  --config | --confi | --conf | --con | --co | --c )
14051    $as_echo "$ac_cs_config"; exit ;;
14052  --debug | --debu | --deb | --de | --d | -d )
14053    debug=: ;;
14054  --file | --fil | --fi | --f )
14055    $ac_shift
14056    case $ac_optarg in
14057    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14058    '') as_fn_error $? "missing file argument" ;;
14059    esac
14060    as_fn_append CONFIG_FILES " '$ac_optarg'"
14061    ac_need_defaults=false;;
14062  --header | --heade | --head | --hea )
14063    $ac_shift
14064    case $ac_optarg in
14065    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14066    esac
14067    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14068    ac_need_defaults=false;;
14069  --he | --h)
14070    # Conflict between --help and --header
14071    as_fn_error $? "ambiguous option: \`$1'
14072Try \`$0 --help' for more information.";;
14073  --help | --hel | -h )
14074    $as_echo "$ac_cs_usage"; exit ;;
14075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14076  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14077    ac_cs_silent=: ;;
14078
14079  # This is an error.
14080  -*) as_fn_error $? "unrecognized option: \`$1'
14081Try \`$0 --help' for more information." ;;
14082
14083  *) as_fn_append ac_config_targets " $1"
14084     ac_need_defaults=false ;;
14085
14086  esac
14087  shift
14088done
14089
14090ac_configure_extra_args=
14091
14092if $ac_cs_silent; then
14093  exec 6>/dev/null
14094  ac_configure_extra_args="$ac_configure_extra_args --silent"
14095fi
14096
14097_ACEOF
14098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14099if \$ac_cs_recheck; then
14100  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14101  shift
14102  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14103  CONFIG_SHELL='$SHELL'
14104  export CONFIG_SHELL
14105  exec "\$@"
14106fi
14107
14108_ACEOF
14109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110exec 5>>config.log
14111{
14112  echo
14113  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14114## Running $as_me. ##
14115_ASBOX
14116  $as_echo "$ac_log"
14117} >&5
14118
14119_ACEOF
14120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14121_ACEOF
14122
14123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124
14125# Handling of arguments.
14126for ac_config_target in $ac_config_targets
14127do
14128  case $ac_config_target in
14129    "gecode/support/config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS gecode/support/config.hpp" ;;
14130    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14131    "tools/flatzinc/mzn-gecode.bat") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in" ;;
14132    "tools/flatzinc/mzn-gecode") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in" ;;
14133    "tools/flatzinc/gecode.msc") CONFIG_FILES="$CONFIG_FILES tools/flatzinc/gecode.msc:tools/flatzinc/gecode.msc.in" ;;
14134    "doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf:doxygen/doxygen.conf.in" ;;
14135    "doxygen.hh") CONFIG_FILES="$CONFIG_FILES doxygen.hh:doxygen/doxygen.hh.in" ;;
14136
14137  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14138  esac
14139done
14140
14141
14142# If the user did not use the arguments to specify the items to instantiate,
14143# then the envvar interface is used.  Set only those that are not.
14144# We use the long form for the default assignment because of an extremely
14145# bizarre bug on SunOS 4.1.3.
14146if $ac_need_defaults; then
14147  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14148  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14149fi
14150
14151# Have a temporary directory for convenience.  Make it in the build tree
14152# simply because there is no reason against having it here, and in addition,
14153# creating and moving files from /tmp can sometimes cause problems.
14154# Hook for its removal unless debugging.
14155# Note that there is a small window in which the directory will not be cleaned:
14156# after its creation but before its name has been assigned to `$tmp'.
14157$debug ||
14158{
14159  tmp= ac_tmp=
14160  trap 'exit_status=$?
14161  : "${ac_tmp:=$tmp}"
14162  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14163' 0
14164  trap 'as_fn_exit 1' 1 2 13 15
14165}
14166# Create a (secure) tmp directory for tmp files.
14167
14168{
14169  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14170  test -d "$tmp"
14171}  ||
14172{
14173  tmp=./conf$$-$RANDOM
14174  (umask 077 && mkdir "$tmp")
14175} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14176ac_tmp=$tmp
14177
14178# Set up the scripts for CONFIG_FILES section.
14179# No need to generate them if there are no CONFIG_FILES.
14180# This happens for instance with `./config.status config.h'.
14181if test -n "$CONFIG_FILES"; then
14182
14183
14184ac_cr=`echo X | tr X '\015'`
14185# On cygwin, bash can eat \r inside `` if the user requested igncr.
14186# But we know of no other shell where ac_cr would be empty at this
14187# point, so we can use a bashism as a fallback.
14188if test "x$ac_cr" = x; then
14189  eval ac_cr=\$\'\\r\'
14190fi
14191ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14192if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14193  ac_cs_awk_cr='\\r'
14194else
14195  ac_cs_awk_cr=$ac_cr
14196fi
14197
14198echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14199_ACEOF
14200
14201
14202{
14203  echo "cat >conf$$subs.awk <<_ACEOF" &&
14204  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14205  echo "_ACEOF"
14206} >conf$$subs.sh ||
14207  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14208ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14209ac_delim='%!_!# '
14210for ac_last_try in false false false false false :; do
14211  . ./conf$$subs.sh ||
14212    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14213
14214  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14215  if test $ac_delim_n = $ac_delim_num; then
14216    break
14217  elif $ac_last_try; then
14218    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14219  else
14220    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14221  fi
14222done
14223rm -f conf$$subs.sh
14224
14225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14227_ACEOF
14228sed -n '
14229h
14230s/^/S["/; s/!.*/"]=/
14231p
14232g
14233s/^[^!]*!//
14234:repl
14235t repl
14236s/'"$ac_delim"'$//
14237t delim
14238:nl
14239h
14240s/\(.\{148\}\)..*/\1/
14241t more1
14242s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14243p
14244n
14245b repl
14246:more1
14247s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14248p
14249g
14250s/.\{148\}//
14251t nl
14252:delim
14253h
14254s/\(.\{148\}\)..*/\1/
14255t more2
14256s/["\\]/\\&/g; s/^/"/; s/$/"/
14257p
14258b
14259:more2
14260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14261p
14262g
14263s/.\{148\}//
14264t delim
14265' <conf$$subs.awk | sed '
14266/^[^""]/{
14267  N
14268  s/\n//
14269}
14270' >>$CONFIG_STATUS || ac_write_fail=1
14271rm -f conf$$subs.awk
14272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14273_ACAWK
14274cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14275  for (key in S) S_is_set[key] = 1
14276  FS = ""
14277
14278}
14279{
14280  line = $ 0
14281  nfields = split(line, field, "@")
14282  substed = 0
14283  len = length(field[1])
14284  for (i = 2; i < nfields; i++) {
14285    key = field[i]
14286    keylen = length(key)
14287    if (S_is_set[key]) {
14288      value = S[key]
14289      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14290      len += length(value) + length(field[++i])
14291      substed = 1
14292    } else
14293      len += 1 + keylen
14294  }
14295
14296  print line
14297}
14298
14299_ACAWK
14300_ACEOF
14301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14302if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14303  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14304else
14305  cat
14306fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14307  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14308_ACEOF
14309
14310# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14311# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14312# trailing colons and then remove the whole line if VPATH becomes empty
14313# (actually we leave an empty line to preserve line numbers).
14314if test "x$srcdir" = x.; then
14315  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14316h
14317s///
14318s/^/:/
14319s/[	 ]*$/:/
14320s/:\$(srcdir):/:/g
14321s/:\${srcdir}:/:/g
14322s/:@srcdir@:/:/g
14323s/^:*//
14324s/:*$//
14325x
14326s/\(=[	 ]*\).*/\1/
14327G
14328s/\n//
14329s/^[^=]*=[	 ]*$//
14330}'
14331fi
14332
14333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14334fi # test -n "$CONFIG_FILES"
14335
14336# Set up the scripts for CONFIG_HEADERS section.
14337# No need to generate them if there are no CONFIG_HEADERS.
14338# This happens for instance with `./config.status Makefile'.
14339if test -n "$CONFIG_HEADERS"; then
14340cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14341BEGIN {
14342_ACEOF
14343
14344# Transform confdefs.h into an awk script `defines.awk', embedded as
14345# here-document in config.status, that substitutes the proper values into
14346# config.h.in to produce config.h.
14347
14348# Create a delimiter string that does not exist in confdefs.h, to ease
14349# handling of long lines.
14350ac_delim='%!_!# '
14351for ac_last_try in false false :; do
14352  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14353  if test -z "$ac_tt"; then
14354    break
14355  elif $ac_last_try; then
14356    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14357  else
14358    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14359  fi
14360done
14361
14362# For the awk script, D is an array of macro values keyed by name,
14363# likewise P contains macro parameters if any.  Preserve backslash
14364# newline sequences.
14365
14366ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14367sed -n '
14368s/.\{148\}/&'"$ac_delim"'/g
14369t rset
14370:rset
14371s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14372t def
14373d
14374:def
14375s/\\$//
14376t bsnl
14377s/["\\]/\\&/g
14378s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14379D["\1"]=" \3"/p
14380s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14381d
14382:bsnl
14383s/["\\]/\\&/g
14384s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14385D["\1"]=" \3\\\\\\n"\\/p
14386t cont
14387s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14388t cont
14389d
14390:cont
14391n
14392s/.\{148\}/&'"$ac_delim"'/g
14393t clear
14394:clear
14395s/\\$//
14396t bsnlc
14397s/["\\]/\\&/g; s/^/"/; s/$/"/p
14398d
14399:bsnlc
14400s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14401b cont
14402' <confdefs.h | sed '
14403s/'"$ac_delim"'/"\\\
14404"/g' >>$CONFIG_STATUS || ac_write_fail=1
14405
14406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407  for (key in D) D_is_set[key] = 1
14408  FS = ""
14409}
14410/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14411  line = \$ 0
14412  split(line, arg, " ")
14413  if (arg[1] == "#") {
14414    defundef = arg[2]
14415    mac1 = arg[3]
14416  } else {
14417    defundef = substr(arg[1], 2)
14418    mac1 = arg[2]
14419  }
14420  split(mac1, mac2, "(") #)
14421  macro = mac2[1]
14422  prefix = substr(line, 1, index(line, defundef) - 1)
14423  if (D_is_set[macro]) {
14424    # Preserve the white space surrounding the "#".
14425    print prefix "define", macro P[macro] D[macro]
14426    next
14427  } else {
14428    # Replace #undef with comments.  This is necessary, for example,
14429    # in the case of _POSIX_SOURCE, which is predefined and required
14430    # on some systems where configure will not decide to define it.
14431    if (defundef == "undef") {
14432      print "/*", prefix defundef, macro, "*/"
14433      next
14434    }
14435  }
14436}
14437{ print }
14438_ACAWK
14439_ACEOF
14440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14441  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14442fi # test -n "$CONFIG_HEADERS"
14443
14444
14445eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14446shift
14447for ac_tag
14448do
14449  case $ac_tag in
14450  :[FHLC]) ac_mode=$ac_tag; continue;;
14451  esac
14452  case $ac_mode$ac_tag in
14453  :[FHL]*:*);;
14454  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14455  :[FH]-) ac_tag=-:-;;
14456  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14457  esac
14458  ac_save_IFS=$IFS
14459  IFS=:
14460  set x $ac_tag
14461  IFS=$ac_save_IFS
14462  shift
14463  ac_file=$1
14464  shift
14465
14466  case $ac_mode in
14467  :L) ac_source=$1;;
14468  :[FH])
14469    ac_file_inputs=
14470    for ac_f
14471    do
14472      case $ac_f in
14473      -) ac_f="$ac_tmp/stdin";;
14474      *) # Look for the file first in the build tree, then in the source tree
14475	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14476	 # because $ac_f cannot contain `:'.
14477	 test -f "$ac_f" ||
14478	   case $ac_f in
14479	   [\\/$]*) false;;
14480	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14481	   esac ||
14482	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14483      esac
14484      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14485      as_fn_append ac_file_inputs " '$ac_f'"
14486    done
14487
14488    # Let's still pretend it is `configure' which instantiates (i.e., don't
14489    # use $as_me), people would be surprised to read:
14490    #    /* config.h.  Generated by config.status.  */
14491    configure_input='Generated from '`
14492	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14493	`' by configure.'
14494    if test x"$ac_file" != x-; then
14495      configure_input="$ac_file.  $configure_input"
14496      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14497$as_echo "$as_me: creating $ac_file" >&6;}
14498    fi
14499    # Neutralize special characters interpreted by sed in replacement strings.
14500    case $configure_input in #(
14501    *\&* | *\|* | *\\* )
14502       ac_sed_conf_input=`$as_echo "$configure_input" |
14503       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14504    *) ac_sed_conf_input=$configure_input;;
14505    esac
14506
14507    case $ac_tag in
14508    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14509      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14510    esac
14511    ;;
14512  esac
14513
14514  ac_dir=`$as_dirname -- "$ac_file" ||
14515$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14516	 X"$ac_file" : 'X\(//\)[^/]' \| \
14517	 X"$ac_file" : 'X\(//\)$' \| \
14518	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14519$as_echo X"$ac_file" |
14520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14521	    s//\1/
14522	    q
14523	  }
14524	  /^X\(\/\/\)[^/].*/{
14525	    s//\1/
14526	    q
14527	  }
14528	  /^X\(\/\/\)$/{
14529	    s//\1/
14530	    q
14531	  }
14532	  /^X\(\/\).*/{
14533	    s//\1/
14534	    q
14535	  }
14536	  s/.*/./; q'`
14537  as_dir="$ac_dir"; as_fn_mkdir_p
14538  ac_builddir=.
14539
14540case "$ac_dir" in
14541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14542*)
14543  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14544  # A ".." for each directory in $ac_dir_suffix.
14545  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14546  case $ac_top_builddir_sub in
14547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14549  esac ;;
14550esac
14551ac_abs_top_builddir=$ac_pwd
14552ac_abs_builddir=$ac_pwd$ac_dir_suffix
14553# for backward compatibility:
14554ac_top_builddir=$ac_top_build_prefix
14555
14556case $srcdir in
14557  .)  # We are building in place.
14558    ac_srcdir=.
14559    ac_top_srcdir=$ac_top_builddir_sub
14560    ac_abs_top_srcdir=$ac_pwd ;;
14561  [\\/]* | ?:[\\/]* )  # Absolute name.
14562    ac_srcdir=$srcdir$ac_dir_suffix;
14563    ac_top_srcdir=$srcdir
14564    ac_abs_top_srcdir=$srcdir ;;
14565  *) # Relative name.
14566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14567    ac_top_srcdir=$ac_top_build_prefix$srcdir
14568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14569esac
14570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14571
14572
14573  case $ac_mode in
14574  :F)
14575  #
14576  # CONFIG_FILE
14577  #
14578
14579_ACEOF
14580
14581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14582# If the template does not know about datarootdir, expand it.
14583# FIXME: This hack should be removed a few years after 2.60.
14584ac_datarootdir_hack=; ac_datarootdir_seen=
14585ac_sed_dataroot='
14586/datarootdir/ {
14587  p
14588  q
14589}
14590/@datadir@/p
14591/@docdir@/p
14592/@infodir@/p
14593/@localedir@/p
14594/@mandir@/p'
14595case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14596*datarootdir*) ac_datarootdir_seen=yes;;
14597*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14599$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14600_ACEOF
14601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14602  ac_datarootdir_hack='
14603  s&@datadir@&$datadir&g
14604  s&@docdir@&$docdir&g
14605  s&@infodir@&$infodir&g
14606  s&@localedir@&$localedir&g
14607  s&@mandir@&$mandir&g
14608  s&\\\${datarootdir}&$datarootdir&g' ;;
14609esac
14610_ACEOF
14611
14612# Neutralize VPATH when `$srcdir' = `.'.
14613# Shell code in configure.ac might set extrasub.
14614# FIXME: do we really want to maintain this feature?
14615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14616ac_sed_extra="$ac_vpsub
14617$extrasub
14618_ACEOF
14619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14620:t
14621/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14622s|@configure_input@|$ac_sed_conf_input|;t t
14623s&@top_builddir@&$ac_top_builddir_sub&;t t
14624s&@top_build_prefix@&$ac_top_build_prefix&;t t
14625s&@srcdir@&$ac_srcdir&;t t
14626s&@abs_srcdir@&$ac_abs_srcdir&;t t
14627s&@top_srcdir@&$ac_top_srcdir&;t t
14628s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14629s&@builddir@&$ac_builddir&;t t
14630s&@abs_builddir@&$ac_abs_builddir&;t t
14631s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14632$ac_datarootdir_hack
14633"
14634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14635  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14636
14637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14638  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14639  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14640      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14641  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14642which seems to be undefined.  Please make sure it is defined" >&5
14643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14644which seems to be undefined.  Please make sure it is defined" >&2;}
14645
14646  rm -f "$ac_tmp/stdin"
14647  case $ac_file in
14648  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14649  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14650  esac \
14651  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14652 ;;
14653  :H)
14654  #
14655  # CONFIG_HEADER
14656  #
14657  if test x"$ac_file" != x-; then
14658    {
14659      $as_echo "/* $configure_input  */" \
14660      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14661    } >"$ac_tmp/config.h" \
14662      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14663    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14664      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14665$as_echo "$as_me: $ac_file is unchanged" >&6;}
14666    else
14667      rm -f "$ac_file"
14668      mv "$ac_tmp/config.h" "$ac_file" \
14669	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14670    fi
14671  else
14672    $as_echo "/* $configure_input  */" \
14673      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14674      || as_fn_error $? "could not create -" "$LINENO" 5
14675  fi
14676 ;;
14677
14678
14679  esac
14680
14681
14682  case $ac_file$ac_mode in
14683    "tools/flatzinc/mzn-gecode.bat":F) chmod +x tools/flatzinc/mzn-gecode.bat ;;
14684    "tools/flatzinc/mzn-gecode":F) chmod +x tools/flatzinc/mzn-gecode ;;
14685
14686  esac
14687done # for ac_tag
14688
14689
14690as_fn_exit 0
14691_ACEOF
14692ac_clean_files=$ac_clean_files_save
14693
14694test $ac_write_fail = 0 ||
14695  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14696
14697
14698# configure is writing to config.log, and then calls config.status.
14699# config.status does its own redirection, appending to config.log.
14700# Unfortunately, on DOS this fails, as config.log is still kept open
14701# by configure, so config.status won't be able to write to it; its
14702# output is simply discarded.  So we exec the FD to /dev/null,
14703# effectively closing config.log, so it can be properly (re)opened and
14704# appended to by config.status.  When coming back to configure, we
14705# need to make the FD available again.
14706if test "$no_create" != yes; then
14707  ac_cs_success=:
14708  ac_config_status_args=
14709  test "$silent" = yes &&
14710    ac_config_status_args="$ac_config_status_args --quiet"
14711  exec 5>/dev/null
14712  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14713  exec 5>>config.log
14714  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14715  # would make configure fail if this is the last instruction.
14716  $ac_cs_success || as_fn_exit 1
14717fi
14718
14719#
14720# CONFIG_SUBDIRS section.
14721#
14722if test "$no_recursion" != yes; then
14723
14724  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14725  # so they do not pile up.
14726  ac_sub_configure_args=
14727  ac_prev=
14728  eval "set x $ac_configure_args"
14729  shift
14730  for ac_arg
14731  do
14732    if test -n "$ac_prev"; then
14733      ac_prev=
14734      continue
14735    fi
14736    case $ac_arg in
14737    -cache-file | --cache-file | --cache-fil | --cache-fi \
14738    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14739      ac_prev=cache_file ;;
14740    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14741    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14742    | --c=*)
14743      ;;
14744    --config-cache | -C)
14745      ;;
14746    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14747      ac_prev=srcdir ;;
14748    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14749      ;;
14750    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14751      ac_prev=prefix ;;
14752    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14753      ;;
14754    --disable-option-checking)
14755      ;;
14756    *)
14757      case $ac_arg in
14758      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14759      esac
14760      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14761    esac
14762  done
14763
14764  # Always prepend --prefix to ensure using the same prefix
14765  # in subdir configurations.
14766  ac_arg="--prefix=$prefix"
14767  case $ac_arg in
14768  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14769  esac
14770  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14771
14772  # Pass --silent
14773  if test "$silent" = yes; then
14774    ac_sub_configure_args="--silent $ac_sub_configure_args"
14775  fi
14776
14777  # Always prepend --disable-option-checking to silence warnings, since
14778  # different subdirs can have different --enable and --with options.
14779  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14780
14781  ac_popdir=`pwd`
14782  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14783
14784    # Do not complain, so a configure script can configure whichever
14785    # parts of a large source tree are present.
14786    test -d "$srcdir/$ac_dir" || continue
14787
14788    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14789    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14790    $as_echo "$ac_msg" >&6
14791    as_dir="$ac_dir"; as_fn_mkdir_p
14792    ac_builddir=.
14793
14794case "$ac_dir" in
14795.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14796*)
14797  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14798  # A ".." for each directory in $ac_dir_suffix.
14799  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14800  case $ac_top_builddir_sub in
14801  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14802  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14803  esac ;;
14804esac
14805ac_abs_top_builddir=$ac_pwd
14806ac_abs_builddir=$ac_pwd$ac_dir_suffix
14807# for backward compatibility:
14808ac_top_builddir=$ac_top_build_prefix
14809
14810case $srcdir in
14811  .)  # We are building in place.
14812    ac_srcdir=.
14813    ac_top_srcdir=$ac_top_builddir_sub
14814    ac_abs_top_srcdir=$ac_pwd ;;
14815  [\\/]* | ?:[\\/]* )  # Absolute name.
14816    ac_srcdir=$srcdir$ac_dir_suffix;
14817    ac_top_srcdir=$srcdir
14818    ac_abs_top_srcdir=$srcdir ;;
14819  *) # Relative name.
14820    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14821    ac_top_srcdir=$ac_top_build_prefix$srcdir
14822    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14823esac
14824ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14825
14826
14827    cd "$ac_dir"
14828
14829    # Check for guested configure; otherwise get Cygnus style configure.
14830    if test -f "$ac_srcdir/configure.gnu"; then
14831      ac_sub_configure=$ac_srcdir/configure.gnu
14832    elif test -f "$ac_srcdir/configure"; then
14833      ac_sub_configure=$ac_srcdir/configure
14834    elif test -f "$ac_srcdir/configure.in"; then
14835      # This should be Cygnus configure.
14836      ac_sub_configure=$ac_aux_dir/configure
14837    else
14838      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14839$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14840      ac_sub_configure=
14841    fi
14842
14843    # The recursion is here.
14844    if test -n "$ac_sub_configure"; then
14845      # Make the cache file name correct relative to the subdirectory.
14846      case $cache_file in
14847      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14848      *) # Relative name.
14849	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14850      esac
14851
14852      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14853$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14854      # The eval makes quoting arguments work.
14855      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14856	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14857	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14858    fi
14859
14860    cd "$ac_popdir"
14861  done
14862fi
14863if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14864  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14865$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14866fi
14867
14868