ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 1188 by chuckv, Thu Nov 22 16:39:45 2007 UTC vs.
Revision 1210 by gezelter, Wed Jan 23 03:45:33 2008 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.61 for OOPSE 3.0.
3 > # Generated by GNU Autoconf 2.61 for OOPSE 4.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 49 | Line 49 | if test "${PATH_SEPARATOR+set}" != set; then
49    else
50      PATH_SEPARATOR=:
51    fi
52 <  rm -rf conf$$.sh
52 >  rm -f conf$$.sh
53   fi
54  
55   # Support unset when possible.
# Line 489 | Line 489 | fi
489    as_expr=false
490   fi
491  
492 < rm -rf conf$$ conf$$.exe conf$$.file
493 < if test -d conf$$.dir; then
494 <  rm -rf conf$$.dir/conf$$.file
492 > rm -f conf$$ conf$$.exe conf$$.file
493 > if test -d conf$$.dir; then
494 >  rm -f conf$$.dir/conf$$.file
495   else
496 <  rm -rf conf$$.dir
496 >  rm -f conf$$.dir
497    mkdir conf$$.dir
498   fi
499   echo >conf$$.file
# Line 510 | Line 510 | fi
510   else
511    as_ln_s='cp -p'
512   fi
513 < rm -rf conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 > rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514   rmdir conf$$.dir 2>/dev/null
515  
516   if mkdir -p . 2>/dev/null; then
# Line 574 | Line 574 | PACKAGE_TARNAME='oopse'
574   # Identity of this package.
575   PACKAGE_NAME='OOPSE'
576   PACKAGE_TARNAME='oopse'
577 < PACKAGE_VERSION='3.0'
578 < PACKAGE_STRING='OOPSE 3.0'
577 > PACKAGE_VERSION='4.0'
578 > PACKAGE_STRING='OOPSE 4.0'
579   PACKAGE_BUGREPORT='gezelter@nd.edu'
580  
581   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 683 | Line 683 | RANLIB
683   LN_S
684   SET_MAKE
685   RANLIB
686 + YACC
687 + YFLAGS
688 + LEX
689 + LEX_OUTPUT_ROOT
690 + LEXLIB
691   PERLINTERP
692   PERL_SHEBANG
693   INSTALL_PROGRAM
# Line 707 | Line 712 | FFTW_LIBS
712   FFTW_INC_DIR
713   FFTW_LIB_DIR
714   FFTW_LIBS
715 + QHULL_INC_DIR
716 + QHULL_LIB_DIR
717 + QHULL
718 + USE_QHULL
719 + CXXCPP
720 + OPENBABEL_INC_DIR
721 + OPENBABEL_LIB_DIR
722 + OPENBABEL_LIB
723 + USE_OPENBABEL
724   LIBOBJS
725   POW_LIB
712 CXXCPP
726   __func__
727   MPI_LIB_DIR
728   MPI_INC_DIR
# Line 717 | Line 730 | USE_MPI
730   MPI_LIB
731   MPI_F90_LIB
732   USE_MPI
733 + CGAL_MAKEFILE
734 + CGAL_CXXFLAGS
735 + CGAL_CPPFLAGS
736 + CGAL_LDFLAGS
737 + CGAL_LIBS
738 + USE_CGAL
739   DOXYGEN
740   DOT
741   DOC
# Line 744 | Line 763 | CPP
763   FC
764   FCFLAGS
765   CPP
766 + YACC
767 + YFLAGS
768   CXXCPP'
769  
770  
# Line 1247 | Line 1268 | if test "$ac_init_help" = "long"; then
1268    # Omit some internal or obsolete options to make the list less imposing.
1269    # This message is too long to be a string in the A/UX 3.1 sh.
1270    cat <<_ACEOF
1271 < \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
1271 > \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1272  
1273   Usage: $0 [OPTION]... [VAR=VALUE]...
1274  
# Line 1312 | Line 1333 | if test -n "$ac_init_help"; then
1333  
1334   if test -n "$ac_init_help"; then
1335    case $ac_init_help in
1336 <     short | recursive ) echo "Configuration of OOPSE 3.0:";;
1336 >     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1337     esac
1338    cat <<\_ACEOF
1339  
# Line 1337 | Line 1358 | Optional Packages:
1358                            to /usr/local or /usr if not found in /usr/local)
1359    --with-fftw=DIR         root directory path of fftw installation (defaults
1360                            to /usr/local or /usr if not found in /usr/local)
1361 +  --with-qhull=DIR        root directory path of qhull installation (defaults
1362 +                          to /usr/local or /usr if not found in /usr/local)
1363 +  --with-openbabel=DIR    root directory path of openbabel-2.x installation
1364 +                          (defaults to /usr/local or /usr if not found in
1365 +                          /usr/local)
1366    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
1367 +  --with-cgalmakefile=makefile
1368 +                          Use the following CGAL makefile
1369  
1370   Some influential environment variables:
1371    CXX         C++ compiler command
# Line 1352 | Line 1380 | Some influential environment variables:
1380    FC          Fortran compiler command
1381    FCFLAGS     Fortran compiler flags
1382    CPP         C preprocessor
1383 +  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1384 +              the first program found out of: `bison -y', `byacc', `yacc'.
1385 +  YFLAGS      The list of arguments that will be passed by default to $YACC.
1386 +              This script will default YFLAGS to the empty string to avoid a
1387 +              default value of `-d' given by some make applications.
1388    CXXCPP      C++ preprocessor
1389  
1390   Use these variables to override the choices made by `configure' or to help
# Line 1418 | Line 1451 | if $ac_init_version; then
1451   test -n "$ac_init_help" && exit $ac_status
1452   if $ac_init_version; then
1453    cat <<\_ACEOF
1454 < OOPSE configure 3.0
1454 > OOPSE configure 4.0
1455   generated by GNU Autoconf 2.61
1456  
1457   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# Line 1432 | Line 1465 | running configure, to aid debugging if configure makes
1465   This file contains any messages produced by compilers while
1466   running configure, to aid debugging if configure makes a mistake.
1467  
1468 < It was created by OOPSE $as_me 3.0, which was
1468 > It was created by OOPSE $as_me 4.0, which was
1469   generated by GNU Autoconf 2.61.  Invocation command line was
1470  
1471    $ $0 $@
# Line 1628 | Line 1661 | _ASBOX
1661        echo "$as_me: caught signal $ac_signal"
1662      echo "$as_me: exit $exit_status"
1663    } >&5
1664 <  rm -rf core *.core core.conftest.* &&
1664 >  rm -f core *.core core.conftest.* &&
1665      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666      exit $exit_status
1667   ' 0
# Line 1865 | Line 1898 | ac_config_headers="$ac_config_headers src/config.h"
1898   #
1899   #
1900   #
1901 +
1902 +
1903  
1904  
1905  
1906  
1907  
1908  
1909 +
1910 +
1911   # AC_F90_MODULE_NAMES
1912   # -------------------
1913   #
# Line 1965 | Line 2002 | ac_config_headers="$ac_config_headers src/config.h"
2002  
2003  
2004  
2005 +
2006 +
2007 +
2008 +
2009 +
2010 +
2011 +
2012 +
2013 +
2014 +
2015 +
2016 +
2017 +
2018 +
2019 +
2020 +
2021 +
2022 +
2023 +
2024 +
2025 +
2026 + # This is taken from http://autoqt.sourceforge.net/
2027 + # Copyright (c) 2002, Geoffrey Wossum
2028 + # All rights reserved.
2029 +
2030 + # Redistribution and use in source and binary forms, with or without
2031 + # modification, are permitted provided that the following conditions are
2032 + # met:
2033 +
2034 + #  - Redistributions of source code must retain the above copyright notice,
2035 + #    this list of conditions and the following disclaimer.
2036 +
2037 + #  - Redistributions in binary form must reproduce the above copyright
2038 + #    notice, this list of conditions and the following disclaimer in the
2039 + #    documentation and/or other materials provided with the distribution.
2040 +
2041 + #  - Neither the name of Geoffrey Wossum nor the names of its
2042 + #    contributors may be used to endorse or promote products derived from
2043 + #    this software without specific prior written permission.
2044 +
2045 +
2046 + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2047 + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2048 + # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2049 + # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2050 + # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2051 + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2052 + # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2053 + # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2054 + # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2055 + # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2056 + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2057 +
2058 +
2059 + # Check for Qt compiler flags, linker flags, and binary packages
2060 +
2061 +
2062 +
2063   # who am i
2064   # Make sure we can run config.sub.
2065   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 2305 | Line 2400 | done
2400      * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2401    esac
2402   done
2403 < rm -rf $ac_rmfiles
2403 > rm -f $ac_rmfiles
2404  
2405   if { (ac_try="$ac_link_default"
2406   case "(($ac_try" in
# Line 2403 | Line 2498 | echo "${ECHO_T}yes" >&6; }
2498   { echo "$as_me:$LINENO: result: yes" >&5
2499   echo "${ECHO_T}yes" >&6; }
2500  
2501 < rm -rf a.out a.exe conftest$ac_cv_exeext b.out
2501 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2502   ac_clean_files=$ac_clean_files_save
2503   # Check that the compiler produces executables we can run.  If not, either
2504   # the compiler is broken, or we cross compile.
# Line 2445 | Line 2540 | fi
2540     { (exit 1); exit 1; }; }
2541   fi
2542  
2543 < rm -rf conftest$ac_cv_exeext
2543 > rm -f conftest$ac_cv_exeext
2544   { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2545   echo "${ECHO_T}$ac_cv_exeext" >&6; }
2546  
2547 < rm -rf conftest.$ac_ext
2547 > rm -f conftest.$ac_ext
2548   EXEEXT=$ac_cv_exeext
2549   ac_exeext=$EXEEXT
2550   { echo "$as_me:$LINENO: checking for suffix of object files" >&5
# Line 2472 | Line 2567 | _ACEOF
2567    return 0;
2568   }
2569   _ACEOF
2570 < rm -rf conftest.o conftest.obj
2570 > rm -f conftest.o conftest.obj
2571   if { (ac_try="$ac_compile"
2572   case "(($ac_try" in
2573    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2502 | Line 2597 | fi
2597     { (exit 1); exit 1; }; }
2598   fi
2599  
2600 < rm -rf conftest.$ac_cv_objext conftest.$ac_ext
2600 > rm -f conftest.$ac_cv_objext conftest.$ac_ext
2601   fi
2602   { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2603   echo "${ECHO_T}$ac_cv_objext" >&6; }
# Line 2531 | Line 2626 | _ACEOF
2626    return 0;
2627   }
2628   _ACEOF
2629 < rm -rf conftest.$ac_objext
2629 > rm -f conftest.$ac_objext
2630   if { (ac_try="$ac_compile"
2631   case "(($ac_try" in
2632    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2541 | Line 2636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636    (eval "$ac_compile") 2>conftest.er1
2637    ac_status=$?
2638    grep -v '^ *+' conftest.er1 >conftest.err
2639 <  rm -rf conftest.er1
2639 >  rm -f conftest.er1
2640    cat conftest.err >&5
2641    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642    (exit $ac_status); } && {
# Line 2556 | Line 2651 | fi
2651          ac_compiler_gnu=no
2652   fi
2653  
2654 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2656  
2657   fi
# Line 2589 | Line 2684 | _ACEOF
2684    return 0;
2685   }
2686   _ACEOF
2687 < rm -rf conftest.$ac_objext
2687 > rm -f conftest.$ac_objext
2688   if { (ac_try="$ac_compile"
2689   case "(($ac_try" in
2690    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2599 | Line 2694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694    (eval "$ac_compile") 2>conftest.er1
2695    ac_status=$?
2696    grep -v '^ *+' conftest.er1 >conftest.err
2697 <  rm -rf conftest.er1
2697 >  rm -f conftest.er1
2698    cat conftest.err >&5
2699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700    (exit $ac_status); } && {
# Line 2627 | Line 2722 | _ACEOF
2722    return 0;
2723   }
2724   _ACEOF
2725 < rm -rf conftest.$ac_objext
2725 > rm -f conftest.$ac_objext
2726   if { (ac_try="$ac_compile"
2727   case "(($ac_try" in
2728    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2637 | Line 2732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732    (eval "$ac_compile") 2>conftest.er1
2733    ac_status=$?
2734    grep -v '^ *+' conftest.er1 >conftest.err
2735 <  rm -rf conftest.er1
2735 >  rm -f conftest.er1
2736    cat conftest.err >&5
2737    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738    (exit $ac_status); } && {
# Line 2666 | Line 2761 | _ACEOF
2761    return 0;
2762   }
2763   _ACEOF
2764 < rm -rf conftest.$ac_objext
2764 > rm -f conftest.$ac_objext
2765   if { (ac_try="$ac_compile"
2766   case "(($ac_try" in
2767    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2676 | Line 2771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771    (eval "$ac_compile") 2>conftest.er1
2772    ac_status=$?
2773    grep -v '^ *+' conftest.er1 >conftest.err
2774 <  rm -rf conftest.er1
2774 >  rm -f conftest.er1
2775    cat conftest.err >&5
2776    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777    (exit $ac_status); } && {
# Line 2691 | Line 2786 | fi
2786  
2787   fi
2788  
2789 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790   fi
2791  
2792 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793   fi
2794  
2795 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2797   fi
2798   { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
# Line 2896 | Line 2991 | _ACEOF
2991    return 0;
2992   }
2993   _ACEOF
2994 < rm -rf conftest.$ac_objext
2994 > rm -f conftest.$ac_objext
2995   if { (ac_try="$ac_compile"
2996   case "(($ac_try" in
2997    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2921 | Line 3016 | fi
3016          ac_compiler_gnu=no
3017   fi
3018  
3019 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020   ac_cv_c_compiler_gnu=$ac_compiler_gnu
3021  
3022   fi
# Line 2954 | Line 3049 | _ACEOF
3049    return 0;
3050   }
3051   _ACEOF
3052 < rm -rf conftest.$ac_objext
3052 > rm -f conftest.$ac_objext
3053   if { (ac_try="$ac_compile"
3054   case "(($ac_try" in
3055    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2992 | Line 3087 | _ACEOF
3087    return 0;
3088   }
3089   _ACEOF
3090 < rm -rf conftest.$ac_objext
3090 > rm -f conftest.$ac_objext
3091   if { (ac_try="$ac_compile"
3092   case "(($ac_try" in
3093    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3002 | Line 3097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097    (eval "$ac_compile") 2>conftest.er1
3098    ac_status=$?
3099    grep -v '^ *+' conftest.er1 >conftest.err
3100 <  rm -rf conftest.er1
3100 >  rm -f conftest.er1
3101    cat conftest.err >&5
3102    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103    (exit $ac_status); } && {
# Line 3031 | Line 3126 | _ACEOF
3126    return 0;
3127   }
3128   _ACEOF
3129 < rm -rf conftest.$ac_objext
3129 > rm -f conftest.$ac_objext
3130   if { (ac_try="$ac_compile"
3131   case "(($ac_try" in
3132    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3056 | Line 3151 | fi
3151  
3152   fi
3153  
3154 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155   fi
3156  
3157 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158   fi
3159  
3160 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161     ac_c_werror_flag=$ac_save_c_werror_flag
3162   fi
3163   { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
# Line 3150 | Line 3245 | do
3245          -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3246   do
3247    CC="$ac_save_CC $ac_arg"
3248 <  rm -rf conftest.$ac_objext
3248 >  rm -f conftest.$ac_objext
3249   if { (ac_try="$ac_compile"
3250   case "(($ac_try" in
3251    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3175 | Line 3270 | fi
3270  
3271   fi
3272  
3273 < rm -rf core conftest.err conftest.$ac_objext
3273 > rm -f core conftest.err conftest.$ac_objext
3274    test "x$ac_cv_prog_cc_c89" != "xno" && break
3275   done
3276 < rm -rf conftest.$ac_ext
3276 > rm -f conftest.$ac_ext
3277   CC=$ac_save_CC
3278  
3279   fi
# Line 3345 | Line 3440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440    ac_status=$?
3441    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442    (exit $ac_status); }
3443 < rm -rf a.out
3443 > rm -f a.out
3444  
3445   # If we don't use `.F' as extension, the preprocessor is not run on the
3446   # input file.  (Note that this only needs to work for GNU compilers.)
# Line 3364 | Line 3459 | _ACEOF
3459  
3460        end
3461   _ACEOF
3462 < rm -rf conftest.$ac_objext
3462 > rm -f conftest.$ac_objext
3463   if { (ac_try="$ac_compile"
3464   case "(($ac_try" in
3465    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3389 | Line 3484 | fi
3484          ac_compiler_gnu=no
3485   fi
3486  
3487 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488   ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3489  
3490   fi
# Line 3410 | Line 3505 | _ACEOF
3505  
3506        end
3507   _ACEOF
3508 < rm -rf conftest.$ac_objext
3508 > rm -f conftest.$ac_objext
3509   if { (ac_try="$ac_compile"
3510   case "(($ac_try" in
3511    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3435 | Line 3530 | fi
3530          ac_cv_prog_fc_g=no
3531   fi
3532  
3533 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534  
3535   fi
3536   { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
# Line 3511 | Line 3606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607    ac_status=$?
3608    grep -v '^ *+' conftest.er1 >conftest.err
3609 <  rm -rf conftest.er1
3609 >  rm -f conftest.er1
3610    cat conftest.err >&5
3611    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612    (exit $ac_status); } >/dev/null && {
# Line 3527 | Line 3622 | fi
3622   continue
3623   fi
3624  
3625 < rm -rf conftest.err conftest.$ac_ext
3625 > rm -f conftest.err conftest.$ac_ext
3626  
3627    # OK, works on sane cases.  Now check whether nonexistent headers
3628    # can be detected and how.
# Line 3566 | Line 3661 | fi
3661   break
3662   fi
3663  
3664 < rm -rf conftest.err conftest.$ac_ext
3664 > rm -f conftest.err conftest.$ac_ext
3665  
3666   done
3667   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 < rm -rf conftest.err conftest.$ac_ext
3668 > rm -f conftest.err conftest.$ac_ext
3669   if $ac_preproc_ok; then
3670    break
3671   fi
# Line 3632 | Line 3727 | fi
3727   continue
3728   fi
3729  
3730 < rm -rf conftest.err conftest.$ac_ext
3730 > rm -f conftest.err conftest.$ac_ext
3731  
3732    # OK, works on sane cases.  Now check whether nonexistent headers
3733    # can be detected and how.
# Line 3671 | Line 3766 | fi
3766   break
3767   fi
3768  
3769 < rm -rf conftest.err conftest.$ac_ext
3769 > rm -f conftest.err conftest.$ac_ext
3770  
3771   done
3772   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 < rm -rf conftest.err conftest.$ac_ext
3773 > rm -f conftest.err conftest.$ac_ext
3774   if $ac_preproc_ok; then
3775    :
3776   else
# Line 3739 | Line 3834 | case `"$ac_path_GREP" --version 2>&1` in
3834      # 10*(2^10) chars as input seems more than enough
3835      test $ac_count -gt 10 && break
3836    done
3837 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
3837 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838   esac
3839  
3840  
# Line 3821 | Line 3916 | case `"$ac_path_EGREP" --version 2>&1` in
3916      # 10*(2^10) chars as input seems more than enough
3917      test $ac_count -gt 10 && break
3918    done
3919 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
3919 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920   esac
3921  
3922  
# Line 3883 | Line 3978 | esac
3978    *)
3979      eval ac_cv_prog_make_${ac_make}_set=no;;
3980   esac
3981 < rm -rf conftest.make
3981 > rm -f conftest.make
3982   fi
3983   if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3984    { echo "$as_me:$LINENO: result: yes" >&5
# Line 3989 | Line 4084 | else
4084    fi
4085   else
4086    RANLIB="$ac_cv_prog_RANLIB"
4087 + fi
4088 +
4089 + for ac_prog in 'bison -y' byacc
4090 + do
4091 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4092 + set dummy $ac_prog; ac_word=$2
4093 + { echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4095 + if test "${ac_cv_prog_YACC+set}" = set; then
4096 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4097 + else
4098 +  if test -n "$YACC"; then
4099 +  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4100 + else
4101 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 + for as_dir in $PATH
4103 + do
4104 +  IFS=$as_save_IFS
4105 +  test -z "$as_dir" && as_dir=.
4106 +  for ac_exec_ext in '' $ac_executable_extensions; do
4107 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 +    ac_cv_prog_YACC="$ac_prog"
4109 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 +    break 2
4111 +  fi
4112 + done
4113 + done
4114 + IFS=$as_save_IFS
4115 +
4116 + fi
4117 + fi
4118 + YACC=$ac_cv_prog_YACC
4119 + if test -n "$YACC"; then
4120 +  { echo "$as_me:$LINENO: result: $YACC" >&5
4121 + echo "${ECHO_T}$YACC" >&6; }
4122 + else
4123 +  { echo "$as_me:$LINENO: result: no" >&5
4124 + echo "${ECHO_T}no" >&6; }
4125 + fi
4126 +
4127 +
4128 +  test -n "$YACC" && break
4129 + done
4130 + test -n "$YACC" || YACC="yacc"
4131 +
4132 +
4133 + for ac_prog in flex lex
4134 + do
4135 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 + set dummy $ac_prog; ac_word=$2
4137 + { echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4139 + if test "${ac_cv_prog_LEX+set}" = set; then
4140 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4141 + else
4142 +  if test -n "$LEX"; then
4143 +  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4144 + else
4145 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 + for as_dir in $PATH
4147 + do
4148 +  IFS=$as_save_IFS
4149 +  test -z "$as_dir" && as_dir=.
4150 +  for ac_exec_ext in '' $ac_executable_extensions; do
4151 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 +    ac_cv_prog_LEX="$ac_prog"
4153 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 +    break 2
4155 +  fi
4156 + done
4157 + done
4158 + IFS=$as_save_IFS
4159 +
4160 + fi
4161 + fi
4162 + LEX=$ac_cv_prog_LEX
4163 + if test -n "$LEX"; then
4164 +  { echo "$as_me:$LINENO: result: $LEX" >&5
4165 + echo "${ECHO_T}$LEX" >&6; }
4166 + else
4167 +  { echo "$as_me:$LINENO: result: no" >&5
4168 + echo "${ECHO_T}no" >&6; }
4169 + fi
4170 +
4171 +
4172 +  test -n "$LEX" && break
4173 + done
4174 + test -n "$LEX" || LEX=":"
4175 +
4176 + if test "x$LEX" != "x:"; then
4177 +  cat >conftest.l <<_ACEOF
4178 + %%
4179 + a { ECHO; }
4180 + b { REJECT; }
4181 + c { yymore (); }
4182 + d { yyless (1); }
4183 + e { yyless (input () != 0); }
4184 + f { unput (yytext[0]); }
4185 + . { BEGIN INITIAL; }
4186 + %%
4187 + #ifdef YYTEXT_POINTER
4188 + extern char *yytext;
4189 + #endif
4190 + int
4191 + main (void)
4192 + {
4193 +  return ! yylex () + ! yywrap ();
4194 + }
4195 + _ACEOF
4196 + { (ac_try="$LEX conftest.l"
4197 + case "(($ac_try" in
4198 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 +  *) ac_try_echo=$ac_try;;
4200 + esac
4201 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 +  (eval "$LEX conftest.l") 2>&5
4203 +  ac_status=$?
4204 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 +  (exit $ac_status); }
4206 + { echo "$as_me:$LINENO: checking lex output file root" >&5
4207 + echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4208 + if test "${ac_cv_prog_lex_root+set}" = set; then
4209 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4210 + else
4211 +
4212 + if test -f lex.yy.c; then
4213 +  ac_cv_prog_lex_root=lex.yy
4214 + elif test -f lexyy.c; then
4215 +  ac_cv_prog_lex_root=lexyy
4216 + else
4217 +  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4218 + echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4219 +   { (exit 1); exit 1; }; }
4220 + fi
4221 + fi
4222 + { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4223 + echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4224 + LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4225 +
4226 + if test -z "${LEXLIB+set}"; then
4227 +  { echo "$as_me:$LINENO: checking lex library" >&5
4228 + echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4229 + if test "${ac_cv_lib_lex+set}" = set; then
4230 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4231 + else
4232 +
4233 +    ac_save_LIBS=$LIBS
4234 +    ac_cv_lib_lex='none needed'
4235 +    for ac_lib in '' -lfl -ll; do
4236 +      LIBS="$ac_lib $ac_save_LIBS"
4237 +      cat >conftest.$ac_ext <<_ACEOF
4238 + `cat $LEX_OUTPUT_ROOT.c`
4239 + _ACEOF
4240 + rm -f conftest.$ac_objext conftest$ac_exeext
4241 + if { (ac_try="$ac_link"
4242 + case "(($ac_try" in
4243 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 +  *) ac_try_echo=$ac_try;;
4245 + esac
4246 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 +  (eval "$ac_link") 2>conftest.er1
4248 +  ac_status=$?
4249 +  grep -v '^ *+' conftest.er1 >conftest.err
4250 +  rm -f conftest.er1
4251 +  cat conftest.err >&5
4252 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 +  (exit $ac_status); } && {
4254 +         test -z "$ac_c_werror_flag" ||
4255 +         test ! -s conftest.err
4256 +       } && test -s conftest$ac_exeext &&
4257 +       $as_test_x conftest$ac_exeext; then
4258 +  ac_cv_lib_lex=$ac_lib
4259 + else
4260 +  echo "$as_me: failed program was:" >&5
4261 + sed 's/^/| /' conftest.$ac_ext >&5
4262 +
4263 +
4264 + fi
4265 +
4266 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267 +      conftest$ac_exeext conftest.$ac_ext
4268 +      test "$ac_cv_lib_lex" != 'none needed' && break
4269 +    done
4270 +    LIBS=$ac_save_LIBS
4271 +
4272 + fi
4273 + { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4274 + echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4275 +  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4276 + fi
4277 +
4278 +
4279 + { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4280 + echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4281 + if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4282 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4283 + else
4284 +  # POSIX says lex can declare yytext either as a pointer or an array; the
4285 + # default is implementation-dependent.  Figure out which it is, since
4286 + # not all implementations provide the %pointer and %array declarations.
4287 + ac_cv_prog_lex_yytext_pointer=no
4288 + ac_save_LIBS=$LIBS
4289 + LIBS="$LEXLIB $ac_save_LIBS"
4290 + cat >conftest.$ac_ext <<_ACEOF
4291 + #define YYTEXT_POINTER 1
4292 + `cat $LEX_OUTPUT_ROOT.c`
4293 + _ACEOF
4294 + rm -f conftest.$ac_objext conftest$ac_exeext
4295 + if { (ac_try="$ac_link"
4296 + case "(($ac_try" in
4297 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 +  *) ac_try_echo=$ac_try;;
4299 + esac
4300 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 +  (eval "$ac_link") 2>conftest.er1
4302 +  ac_status=$?
4303 +  grep -v '^ *+' conftest.er1 >conftest.err
4304 +  rm -f conftest.er1
4305 +  cat conftest.err >&5
4306 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 +  (exit $ac_status); } && {
4308 +         test -z "$ac_c_werror_flag" ||
4309 +         test ! -s conftest.err
4310 +       } && test -s conftest$ac_exeext &&
4311 +       $as_test_x conftest$ac_exeext; then
4312 +  ac_cv_prog_lex_yytext_pointer=yes
4313 + else
4314 +  echo "$as_me: failed program was:" >&5
4315 + sed 's/^/| /' conftest.$ac_ext >&5
4316 +
4317 +
4318 + fi
4319 +
4320 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321 +      conftest$ac_exeext conftest.$ac_ext
4322 + LIBS=$ac_save_LIBS
4323 +
4324 + fi
4325 + { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4326 + echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4327 + if test $ac_cv_prog_lex_yytext_pointer = yes; then
4328 +
4329 + cat >>confdefs.h <<\_ACEOF
4330 + #define YYTEXT_POINTER 1
4331 + _ACEOF
4332 +
4333   fi
4334 + rm -f conftest.l $LEX_OUTPUT_ROOT.c
4335  
4336 + fi
4337  
4338     # Extract the first word of "perl", so it can be a program name with args.
4339   set dummy perl; ac_word=$2
# Line 4307 | Line 4650 | fi
4650   echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4651    fi
4652   fi
4653 < rm -rf confcache
4653 > rm -f confcache
4654    exit 1
4655   fi
4656   # Extract the first word of "ps", so it can be a program name with args.
# Line 4432 | Line 4775 | _ACEOF
4775  
4776        end
4777   _ACEOF
4778 < rm -rf conftest.$ac_objext
4778 > rm -f conftest.$ac_objext
4779   if { (ac_try="$ac_compile"
4780   case "(($ac_try" in
4781    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4457 | Line 4800 | fi
4800  
4801   fi
4802  
4803 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804   done
4805 < rm -rf conftest.$ac_objext conftest.F90
4805 > rm -f conftest.$ac_objext conftest.F90
4806   ac_fcflags_srcext=$ac_fcflags_srcext_save
4807  
4808   fi
# Line 4540 | Line 4883 | _ACEOF
4883   end program conftest
4884  
4885   _ACEOF
4886 < rm -rf conftest.$ac_objext
4886 > rm -f conftest.$ac_objext
4887   if { (ac_try="$ac_compile"
4888   case "(($ac_try" in
4889    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4565 | Line 4908 | fi
4908          prepflagworks=0
4909   fi
4910  
4911 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912  
4913    FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
4914    ac_ext=$ac_save_ext
# Line 4647 | Line 4990 | _ACEOF
4990   end program conftest
4991  
4992   _ACEOF
4993 < rm -rf conftest.$ac_objext
4993 > rm -f conftest.$ac_objext
4994   if { (ac_try="$ac_compile"
4995   case "(($ac_try" in
4996    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4672 | Line 5015 | fi
5015          prepdefflagworks=0
5016   fi
5017  
5018 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019  
5020    FCFLAGS=$ac_save_FCFLAGS
5021    ac_ext=$ac_save_ext
# Line 4709 | Line 5052 | _ACEOF
5052  
5053        end
5054   _ACEOF
5055 < rm -rf conftest.$ac_objext
5055 > rm -f conftest.$ac_objext
5056   if { (ac_try="$ac_compile"
5057   case "(($ac_try" in
5058    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4719 | Line 5062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062    (eval "$ac_compile") 2>conftest.er1
5063    ac_status=$?
5064    grep -v '^ *+' conftest.er1 >conftest.err
5065 <  rm -rf conftest.er1
5065 >  rm -f conftest.er1
5066    cat conftest.err >&5
5067    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068    (exit $ac_status); } && {
# Line 4748 | Line 5091 | FCFLAGS=$ac_save_FFLAGS
5091   echo "$ac_fc_v_output" >&5
5092   FCFLAGS=$ac_save_FFLAGS
5093  
5094 < rm -rf conftest*
5094 > rm -f conftest*
5095  
5096   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5097   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 4806 | Line 5149 | fi
5149   echo "$as_me: WARNING: compilation failed" >&2;}
5150   fi
5151  
5152 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153  
5154   fi
5155   { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
# Line 4839 | Line 5182 | FCFLAGS=$ac_save_FFLAGS
5182   echo "$ac_fc_v_output" >&5
5183   FCFLAGS=$ac_save_FFLAGS
5184  
5185 < rm -rf conftest*
5185 > rm -f conftest*
5186  
5187   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5188   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 5018 | Line 5361 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5361   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5362   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5363  
5021
5364   ac_ext=${ac_fc_srcext-f}
5365   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5366   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
# Line 5062 | Line 5404 | _ACEOF
5404    return 0;
5405   }
5406   _ACEOF
5407 < rm -rf conftest.$ac_objext conftest$ac_exeext
5407 > rm -f conftest.$ac_objext conftest$ac_exeext
5408   if { (ac_try="$ac_link"
5409   case "(($ac_try" in
5410    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5088 | Line 5430 | fi
5430          ac_cv_fortran_dummy_main=unknown
5431   fi
5432  
5433 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5433 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5434        conftest$ac_exeext conftest.$ac_ext
5435  
5436   if test $ac_cv_fortran_dummy_main = unknown; then
# Line 5116 | Line 5458 | _ACEOF
5458    return 0;
5459   }
5460   _ACEOF
5461 < rm -rf conftest.$ac_objext conftest$ac_exeext
5461 > rm -f conftest.$ac_objext conftest$ac_exeext
5462   if { (ac_try="$ac_link"
5463   case "(($ac_try" in
5464    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5142 | Line 5484 | fi
5484  
5485   fi
5486  
5487 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5487 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5488        conftest$ac_exeext conftest.$ac_ext
5489     done
5490   fi
# Line 5151 | Line 5493 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5493   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5494   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5495   ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
5496 < rm -rf conftest*
5496 > rm -f conftest*
5497   LIBS=$ac_fc_dm_save_LIBS
5498  
5499   fi
# Line 5204 | Line 5546 | _ACEOF
5546        return
5547        end
5548   _ACEOF
5549 < rm -rf conftest.$ac_objext
5549 > rm -f conftest.$ac_objext
5550   if { (ac_try="$ac_compile"
5551   case "(($ac_try" in
5552    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5265 | Line 5607 | _ACEOF
5607    return 0;
5608   }
5609   _ACEOF
5610 < rm -rf conftest.$ac_objext conftest$ac_exeext
5610 > rm -f conftest.$ac_objext conftest$ac_exeext
5611   if { (ac_try="$ac_link"
5612   case "(($ac_try" in
5613    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5291 | Line 5633 | fi
5633  
5634   fi
5635  
5636 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5636 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5637        conftest$ac_exeext conftest.$ac_ext
5638      done
5639    done
# Line 5350 | Line 5692 | _ACEOF
5692    return 0;
5693   }
5694   _ACEOF
5695 < rm -rf conftest.$ac_objext conftest$ac_exeext
5695 > rm -f conftest.$ac_objext conftest$ac_exeext
5696   if { (ac_try="$ac_link"
5697   case "(($ac_try" in
5698    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5376 | Line 5718 | fi
5718  
5719   fi
5720  
5721 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5721 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5722        conftest$ac_exeext conftest.$ac_ext
5723       done
5724       ac_ext=${ac_fc_srcext-f}
# Line 5404 | Line 5746 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5746    fi
5747  
5748    LIBS=$ac_save_LIBS
5749 <  rm -rf cfortran_test* conftest*
5749 >  rm -f cfortran_test* conftest*
5750   else
5751    echo "$as_me: failed program was:" >&5
5752   sed 's/^/| /' conftest.$ac_ext >&5
# Line 5416 | Line 5758 | fi
5758     { (exit 1); exit 1; }; }
5759   fi
5760  
5761 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762  
5763   fi
5764   { echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
# Line 5533 | Line 5875 | _ACEOF
5875  
5876        end
5877   _ACEOF
5878 < rm -rf conftest.$ac_objext
5878 > rm -f conftest.$ac_objext
5879   if { (ac_try="$ac_compile"
5880   case "(($ac_try" in
5881    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5572 | Line 5914 | FCFLAGS=$ac_save_FFLAGS
5914   echo "$ac_fc_v_output" >&5
5915   FCFLAGS=$ac_save_FFLAGS
5916  
5917 < rm -rf conftest*
5917 > rm -f conftest*
5918  
5919   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5920   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 5663 | Line 6005 | FCFLAGS=$ac_save_FFLAGS
6005   echo "$ac_fc_v_output" >&5
6006   FCFLAGS=$ac_save_FFLAGS
6007  
6008 < rm -rf conftest*
6008 > rm -f conftest*
6009  
6010   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6011   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 5846 | Line 6188 | echo $ECHO_N "checking for module suffix... $ECHO_C" >
6188  
6189   { echo "$as_me:$LINENO: checking for module suffix" >&5
6190   echo $ECHO_N "checking for module suffix... $ECHO_C" >&6; }
6191 < rm -rf conftest*
6191 > rm -f conftest*
6192   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6193   rm -f work*
6194   cat >conftest.$ac_ext <<EOF
# Line 5900 | Line 6242 | echo $ECHO_N "checking for module directory path flag.
6242   # Use the module made above
6243   { echo "$as_me:$LINENO: checking for module directory path flag" >&5
6244   echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6; }
6245 < rm -rf conftest*
6245 > rm -f conftest*
6246   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6247   rm -f work*
6248   cat >conftest.$ac_ext <<EOF
# Line 5968 | Line 6310 | echo "${ECHO_T}unknown" >&6; }
6310     fi
6311  
6312  
6313 <   rm -rf conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
6313 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
6314     if test $madedir = 1 ; then rmdir conf ; fi
6315   fi
6316  
# Line 5990 | Line 6332 | _ACEOF
6332   MODULE Bar
6333   END MODULE Bar
6334   _ACEOF
6335 < rm -rf conftest.$ac_objext
6335 > rm -f conftest.$ac_objext
6336   if { (ac_try="$ac_compile"
6337   case "(($ac_try" in
6338    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6107 | Line 6449 | fi
6449   echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6450   fi
6451  
6452 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453   cd ..
6454   # cleanup
6455   rm -rf conftest
# Line 6248 | Line 6590 | _ACEOF
6590    return 0;
6591   }
6592   _ACEOF
6593 < rm -rf conftest.$ac_objext conftest$ac_exeext
6593 > rm -f conftest.$ac_objext conftest$ac_exeext
6594   if { (ac_try="$ac_link"
6595   case "(($ac_try" in
6596    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6274 | Line 6616 | fi
6616          ac_cv_lib_m_asin=no
6617   fi
6618  
6619 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6619 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6620        conftest$ac_exeext conftest.$ac_ext
6621   LIBS=$ac_check_lib_save_LIBS
6622   fi
# Line 6324 | Line 6666 | _ACEOF
6666    return 0;
6667   }
6668   _ACEOF
6669 < rm -rf conftest.$ac_objext
6669 > rm -f conftest.$ac_objext
6670   if { (ac_try="$ac_compile"
6671   case "(($ac_try" in
6672    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6349 | Line 6691 | fi
6691          ac_cv_header_stdc=no
6692   fi
6693  
6694 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695  
6696   if test $ac_cv_header_stdc = yes; then
6697    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
# Line 6368 | Line 6710 | fi
6710   else
6711    ac_cv_header_stdc=no
6712   fi
6713 < rm -rf conftest*
6713 > rm -f conftest*
6714  
6715   fi
6716  
# Line 6389 | Line 6731 | fi
6731   else
6732    ac_cv_header_stdc=no
6733   fi
6734 < rm -rf conftest*
6734 > rm -f conftest*
6735  
6736   fi
6737  
# Line 6429 | Line 6771 | _ACEOF
6771    return 0;
6772   }
6773   _ACEOF
6774 < rm -rf conftest$ac_exeext
6774 > rm -f conftest$ac_exeext
6775   if { (ac_try="$ac_link"
6776   case "(($ac_try" in
6777    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6458 | Line 6800 | fi
6800   ( exit $ac_status )
6801   ac_cv_header_stdc=no
6802   fi
6803 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6803 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6804   fi
6805  
6806  
# Line 6503 | Line 6845 | _ACEOF
6845  
6846   #include <$ac_header>
6847   _ACEOF
6848 < rm -rf conftest.$ac_objext
6848 > rm -f conftest.$ac_objext
6849   if { (ac_try="$ac_compile"
6850   case "(($ac_try" in
6851    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6528 | Line 6870 | fi
6870          eval "$as_ac_Header=no"
6871   fi
6872  
6873 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874   fi
6875   ac_res=`eval echo '${'$as_ac_Header'}'`
6876                 { echo "$as_me:$LINENO: result: $ac_res" >&5
# Line 6563 | Line 6905 | echo "$as_me: WARNING: Sorry, $zlib_dir does not exist
6905    else
6906      { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
6907   echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
6908 +        ZLIB_HOME=/usr/local
6909 +        if test ! -f "${ZLIB_HOME}/include/zlib.h"
6910 +        then
6911 +                ZLIB_HOME=/usr
6912 +        fi
6913    fi
6914   fi
6568
6569 ZLIB_HOME=/usr/local
6570 if test ! -f "${ZLIB_HOME}/include/zlib.h"
6571 then
6572        ZLIB_HOME=/usr
6573 fi
6574
6915   #
6916   # Locate zlib, if wanted
6917   #
6918   if test -n "${ZLIB_HOME}"
6919   then
6920          ZLIB_OLD_LDFLAGS=$LDFLAGS
6921 <        ZLIB_OLD_CPPFLAGS=$LDFLAGS
6921 >        ZLIB_OLD_CFLAGS=$CFLAGS
6922          LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
6923 <        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
6923 >        CFLAGS="$CFLAGS -I${ZLIB_HOME}/include"
6924  
6925          ac_ext=c
6926   ac_cpp='$CPP $CPPFLAGS'
# Line 6625 | Line 6965 | _ACEOF
6965    return 0;
6966   }
6967   _ACEOF
6968 < rm -rf conftest.$ac_objext conftest$ac_exeext
6968 > rm -f conftest.$ac_objext conftest$ac_exeext
6969   if { (ac_try="$ac_link"
6970   case "(($ac_try" in
6971    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6651 | Line 6991 | fi
6991          ac_cv_lib_z_inflateEnd=no
6992   fi
6993  
6994 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6994 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6995        conftest$ac_exeext conftest.$ac_ext
6996   LIBS=$ac_check_lib_save_LIBS
6997   fi
# Line 6684 | Line 7024 | _ACEOF
7024   $ac_includes_default
7025   #include <zlib.h>
7026   _ACEOF
7027 < rm -rf conftest.$ac_objext
7027 > rm -f conftest.$ac_objext
7028   if { (ac_try="$ac_compile"
7029   case "(($ac_try" in
7030    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6709 | Line 7049 | fi
7049          ac_header_compiler=no
7050   fi
7051  
7052 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7054   echo "${ECHO_T}$ac_header_compiler" >&6; }
7055  
# Line 6748 | Line 7088 | fi
7088    ac_header_preproc=no
7089   fi
7090  
7091 < rm -rf conftest.err conftest.$ac_ext
7091 > rm -f conftest.err conftest.$ac_ext
7092   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7093   echo "${ECHO_T}$ac_header_preproc" >&6; }
7094  
# Line 6828 | Line 7168 | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C
7168                  ZLIB_LIB_DIR=
7169                  ZLIB=
7170                  LDFLAGS="$ZLIB_OLD_LDFLAGS"
7171 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
7171 >                CFLAGS="$ZLIB_OLD_CFLAGS"
7172                  { echo "$as_me:$LINENO: result: failed" >&5
7173   echo "${ECHO_T}failed" >&6; }
7174                  echo ""
# Line 6876 | Line 7216 | echo "$as_me: WARNING: Sorry, $fftw_dir does not exist
7216      #
7217      if test -n "${FFTW_HOME}"; then
7218        FFTW_OLD_LDFLAGS=$LDFLAGS
7219 <      FFTW_OLD_CPPFLAGS=$LDFLAGS
7219 >      FFTW_OLD_CFLAGS=$CFLAGS
7220        LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
7221 <      CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
7221 >      CFLAGS="$CFLAGS -I${FFTW_HOME}/include"
7222  
7223        ac_ext=c
7224   ac_cpp='$CPP $CPPFLAGS'
# Line 6923 | Line 7263 | _ACEOF
7263    return 0;
7264   }
7265   _ACEOF
7266 < rm -rf conftest.$ac_objext conftest$ac_exeext
7266 > rm -f conftest.$ac_objext conftest$ac_exeext
7267   if { (ac_try="$ac_link"
7268   case "(($ac_try" in
7269    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6949 | Line 7289 | fi
7289          ac_cv_lib_fftw3_fftw_execute=no
7290   fi
7291  
7292 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7292 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7293        conftest$ac_exeext conftest.$ac_ext
7294   LIBS=$ac_check_lib_save_LIBS
7295   fi
# Line 6982 | Line 7322 | _ACEOF
7322   $ac_includes_default
7323   #include <fftw3.h>
7324   _ACEOF
7325 < rm -rf conftest.$ac_objext
7325 > rm -f conftest.$ac_objext
7326   if { (ac_try="$ac_compile"
7327   case "(($ac_try" in
7328    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7007 | Line 7347 | fi
7347          ac_header_compiler=no
7348   fi
7349  
7350 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7352   echo "${ECHO_T}$ac_header_compiler" >&6; }
7353  
# Line 7046 | Line 7386 | fi
7386    ac_header_preproc=no
7387   fi
7388  
7389 < rm -rf conftest.err conftest.$ac_ext
7389 > rm -f conftest.err conftest.$ac_ext
7390   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7391   echo "${ECHO_T}$ac_header_preproc" >&6; }
7392  
# Line 7136 | Line 7476 | _ACEOF
7476    return 0;
7477   }
7478   _ACEOF
7479 < rm -rf conftest.$ac_objext conftest$ac_exeext
7479 > rm -f conftest.$ac_objext conftest$ac_exeext
7480   if { (ac_try="$ac_link"
7481   case "(($ac_try" in
7482    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7162 | Line 7502 | fi
7502          ac_cv_lib_fftw_fftwnd_one=no
7503   fi
7504  
7505 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7506        conftest$ac_exeext conftest.$ac_ext
7507   LIBS=$ac_check_lib_save_LIBS
7508   fi
# Line 7195 | Line 7535 | _ACEOF
7535   $ac_includes_default
7536   #include <fftw.h>
7537   _ACEOF
7538 < rm -rf conftest.$ac_objext
7538 > rm -f conftest.$ac_objext
7539   if { (ac_try="$ac_compile"
7540   case "(($ac_try" in
7541    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7220 | Line 7560 | fi
7560          ac_header_compiler=no
7561   fi
7562  
7563 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565   echo "${ECHO_T}$ac_header_compiler" >&6; }
7566  
# Line 7259 | Line 7599 | fi
7599    ac_header_preproc=no
7600   fi
7601  
7602 < rm -rf conftest.err conftest.$ac_ext
7602 > rm -f conftest.err conftest.$ac_ext
7603   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7604   echo "${ECHO_T}$ac_header_preproc" >&6; }
7605  
# Line 7349 | Line 7689 | _ACEOF
7689    return 0;
7690   }
7691   _ACEOF
7692 < rm -rf conftest.$ac_objext conftest$ac_exeext
7692 > rm -f conftest.$ac_objext conftest$ac_exeext
7693   if { (ac_try="$ac_link"
7694   case "(($ac_try" in
7695    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7375 | Line 7715 | fi
7715          ac_cv_lib_dfftw_fftwnd_one=no
7716   fi
7717  
7718 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7718 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7719        conftest$ac_exeext conftest.$ac_ext
7720   LIBS=$ac_check_lib_save_LIBS
7721   fi
# Line 7408 | Line 7748 | _ACEOF
7748   $ac_includes_default
7749   #include <dfftw.h>
7750   _ACEOF
7751 < rm -rf conftest.$ac_objext
7751 > rm -f conftest.$ac_objext
7752   if { (ac_try="$ac_compile"
7753   case "(($ac_try" in
7754    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7433 | Line 7773 | fi
7773          ac_header_compiler=no
7774   fi
7775  
7776 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7776 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778   echo "${ECHO_T}$ac_header_compiler" >&6; }
7779  
# Line 7472 | Line 7812 | fi
7812    ac_header_preproc=no
7813   fi
7814  
7815 < rm -rf conftest.err conftest.$ac_ext
7815 > rm -f conftest.err conftest.$ac_ext
7816   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7817   echo "${ECHO_T}$ac_header_preproc" >&6; }
7818  
# Line 7568 | Line 7908 | echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C
7908              FFTW_LIB_DIR=
7909              FFTW_LIBS=
7910              LDFLAGS="$FFTW_OLD_LDFLAGS"
7911 <            CPPFLAGS="$FFTW_OLD_CPPFLAGS"
7911 >            CFLAGS="$FFTW_OLD_CFLAGS"
7912              { echo "$as_me:$LINENO: result: failed" >&5
7913   echo "${ECHO_T}failed" >&6; }
7914              echo ""
# Line 7588 | Line 7928 | echo "${ECHO_T}failed" >&6; }
7928  
7929  
7930      fi
7931 +  fi
7932 + fi
7933 +
7934 + #
7935 + # Handle user hints
7936 + #
7937 +
7938 + # Check whether --with-qhull was given.
7939 + if test "${with_qhull+set}" = set; then
7940 +  withval=$with_qhull; qhull_dir="$withval"
7941 + else
7942 +                qhull_dir="not_set"
7943 + fi
7944 +
7945 + if test "$qhull_dir" != "no"; then
7946 +
7947 + if test "$qhull_dir" != "not_set" ; then
7948 +  if test -d "$qhull_dir"
7949 +  then
7950 +    QHULL_HOME="$qhull_dir"
7951 +  else
7952 +    { echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
7953 + echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
7954 +        QHULL_HOME=/usr/local
7955 +        if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"
7956 +        then
7957 +                QHULL_HOME=/usr
7958 +        fi
7959 +  fi
7960 + fi
7961 + #
7962 + # Locate qhull, if wanted
7963 + #
7964 + if test -n "${QHULL_HOME}"
7965 + then
7966 +        QHULL_OLD_LDFLAGS=$LDFLAGS
7967 +        QHULL_OLD_CFLAGS=$CFLAGS
7968 +        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7969 +        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7970 +
7971 +        ac_ext=c
7972 + ac_cpp='$CPP $CPPFLAGS'
7973 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976 +
7977 +        { echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
7978 + echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; }
7979 + if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
7980 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7981 + else
7982 +  ac_check_lib_save_LIBS=$LIBS
7983 + LIBS="-lqhull  $LIBS"
7984 + cat >conftest.$ac_ext <<_ACEOF
7985 + /* confdefs.h.  */
7986 + _ACEOF
7987 + cat confdefs.h >>conftest.$ac_ext
7988 + cat >>conftest.$ac_ext <<_ACEOF
7989 + /* end confdefs.h.  */
7990 +
7991 + /* Override any GCC internal prototype to avoid an error.
7992 +   Use char because int might match the return type of a GCC
7993 +   builtin and then its argument prototype would still apply.  */
7994 + #ifdef __cplusplus
7995 + extern "C"
7996 + #endif
7997 + char qh_qhull ();
7998 + #ifdef FC_DUMMY_MAIN
7999 + #ifndef FC_DUMMY_MAIN_EQ_F77
8000 + #  ifdef __cplusplus
8001 +     extern "C"
8002 + #  endif
8003 +   int FC_DUMMY_MAIN() { return 1; }
8004 + #endif
8005 + #endif
8006 + int
8007 + main ()
8008 + {
8009 + return qh_qhull ();
8010 +  ;
8011 +  return 0;
8012 + }
8013 + _ACEOF
8014 + rm -f conftest.$ac_objext conftest$ac_exeext
8015 + if { (ac_try="$ac_link"
8016 + case "(($ac_try" in
8017 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 +  *) ac_try_echo=$ac_try;;
8019 + esac
8020 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 +  (eval "$ac_link") 2>conftest.er1
8022 +  ac_status=$?
8023 +  grep -v '^ *+' conftest.er1 >conftest.err
8024 +  rm -f conftest.er1
8025 +  cat conftest.err >&5
8026 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 +  (exit $ac_status); } && {
8028 +         test -z "$ac_c_werror_flag" ||
8029 +         test ! -s conftest.err
8030 +       } && test -s conftest$ac_exeext &&
8031 +       $as_test_x conftest$ac_exeext; then
8032 +  ac_cv_lib_qhull_qh_qhull=yes
8033 + else
8034 +  echo "$as_me: failed program was:" >&5
8035 + sed 's/^/| /' conftest.$ac_ext >&5
8036 +
8037 +        ac_cv_lib_qhull_qh_qhull=no
8038 + fi
8039 +
8040 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041 +      conftest$ac_exeext conftest.$ac_ext
8042 + LIBS=$ac_check_lib_save_LIBS
8043 + fi
8044 + { echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
8045 + echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; }
8046 + if test $ac_cv_lib_qhull_qh_qhull = yes; then
8047 +  qhull_cv_libqhull=yes
8048 + else
8049 +  qhull_cv_libqhull=no
8050 + fi
8051 +
8052 +        if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8053 +  { echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
8054 + echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; }
8055 + if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8056 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8057 + fi
8058 + { echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
8059 + echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6; }
8060 + else
8061 +  # Is the header compilable?
8062 + { echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5
8063 + echo $ECHO_N "checking qhull/qhull.h usability... $ECHO_C" >&6; }
8064 + cat >conftest.$ac_ext <<_ACEOF
8065 + /* confdefs.h.  */
8066 + _ACEOF
8067 + cat confdefs.h >>conftest.$ac_ext
8068 + cat >>conftest.$ac_ext <<_ACEOF
8069 + /* end confdefs.h.  */
8070 + $ac_includes_default
8071 + #include <qhull/qhull.h>
8072 + _ACEOF
8073 + rm -f conftest.$ac_objext
8074 + if { (ac_try="$ac_compile"
8075 + case "(($ac_try" in
8076 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 +  *) ac_try_echo=$ac_try;;
8078 + esac
8079 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 +  (eval "$ac_compile") 2>conftest.er1
8081 +  ac_status=$?
8082 +  grep -v '^ *+' conftest.er1 >conftest.err
8083 +  rm -f conftest.er1
8084 +  cat conftest.err >&5
8085 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 +  (exit $ac_status); } && {
8087 +         test -z "$ac_c_werror_flag" ||
8088 +         test ! -s conftest.err
8089 +       } && test -s conftest.$ac_objext; then
8090 +  ac_header_compiler=yes
8091 + else
8092 +  echo "$as_me: failed program was:" >&5
8093 + sed 's/^/| /' conftest.$ac_ext >&5
8094 +
8095 +        ac_header_compiler=no
8096 + fi
8097 +
8098 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8100 + echo "${ECHO_T}$ac_header_compiler" >&6; }
8101 +
8102 + # Is the header present?
8103 + { echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5
8104 + echo $ECHO_N "checking qhull/qhull.h presence... $ECHO_C" >&6; }
8105 + cat >conftest.$ac_ext <<_ACEOF
8106 + /* confdefs.h.  */
8107 + _ACEOF
8108 + cat confdefs.h >>conftest.$ac_ext
8109 + cat >>conftest.$ac_ext <<_ACEOF
8110 + /* end confdefs.h.  */
8111 + #include <qhull/qhull.h>
8112 + _ACEOF
8113 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8114 + case "(($ac_try" in
8115 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 +  *) ac_try_echo=$ac_try;;
8117 + esac
8118 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8120 +  ac_status=$?
8121 +  grep -v '^ *+' conftest.er1 >conftest.err
8122 +  rm -f conftest.er1
8123 +  cat conftest.err >&5
8124 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 +  (exit $ac_status); } >/dev/null && {
8126 +         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8127 +         test ! -s conftest.err
8128 +       }; then
8129 +  ac_header_preproc=yes
8130 + else
8131 +  echo "$as_me: failed program was:" >&5
8132 + sed 's/^/| /' conftest.$ac_ext >&5
8133 +
8134 +  ac_header_preproc=no
8135 + fi
8136 +
8137 + rm -f conftest.err conftest.$ac_ext
8138 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8139 + echo "${ECHO_T}$ac_header_preproc" >&6; }
8140 +
8141 + # So?  What about this header?
8142 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8143 +  yes:no: )
8144 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5
8145 + echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8146 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5
8147 + echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;}
8148 +    ac_header_preproc=yes
8149 +    ;;
8150 +  no:yes:* )
8151 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5
8152 + echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;}
8153 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&5
8154 + echo "$as_me: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&2;}
8155 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5
8156 + echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;}
8157 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&5
8158 + echo "$as_me: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8159 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5
8160 + echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;}
8161 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5
8162 + echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;}
8163 +    ( cat <<\_ASBOX
8164 + ## ------------------------------ ##
8165 + ## Report this to gezelter@nd.edu ##
8166 + ## ------------------------------ ##
8167 + _ASBOX
8168 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
8169 +    ;;
8170 + esac
8171 + { echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
8172 + echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; }
8173 + if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8174 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8175 + else
8176 +  ac_cv_header_qhull_qhull_h=$ac_header_preproc
8177 + fi
8178 + { echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
8179 + echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6; }
8180 +
8181 + fi
8182 + if test $ac_cv_header_qhull_qhull_h = yes; then
8183 +  qhull_cv_qhull_h=yes
8184 + else
8185 +  qhull_cv_qhull_h=no
8186 + fi
8187 +
8188 +
8189 +        ac_ext=c
8190 + ac_cpp='$CPP $CPPFLAGS'
8191 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
8194 +
8195 +
8196 +        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
8197 +
8198 + cat >>confdefs.h <<\_ACEOF
8199 + #define HAVE_QHULL_H 1
8200 + _ACEOF
8201 +
8202 +
8203 + cat >>confdefs.h <<\_ACEOF
8204 + #define HAVE_QHULL 1
8205 + _ACEOF
8206 +
8207 +                USE_QHULL=yes
8208 +                QHULL_INC_DIR="${QHULL_HOME}/include"
8209 +                QHULL_LIB_DIR="${QHULL_HOME}/lib"
8210 +                QHULL="-lqhull"
8211 +        else
8212 +                { echo "$as_me:$LINENO: checking qhull in ${QHULL_HOME}" >&5
8213 + echo $ECHO_N "checking qhull in ${QHULL_HOME}... $ECHO_C" >&6; }
8214 +                QHULL_INC_DIR=
8215 +                QHULL_LIB_DIR=
8216 +                QHULL=
8217 +                USE_QHULL=no
8218 +                LDFLAGS="$QHULL_OLD_LDFLAGS"
8219 +                CFLAGS="$QHULL_OLD_CFLAGS"
8220 +                { echo "$as_me:$LINENO: result: failed" >&5
8221 + echo "${ECHO_T}failed" >&6; }
8222 +                echo ""
8223 +                echo "*********************************************************"
8224 +                echo "* WARNING: Could not find a working qhull installation  *"
8225 +                echo "* If you need OOPSE to be able to deal with convex      *"
8226 +                echo "* hulls be sure to specify a valid qhull installation   *"
8227 +                echo "* with --with-qhull=DIR                                 *"
8228 +                echo "*                                                       *"
8229 +                echo "* OOPSE will still work without qhull installed.        *"
8230 +                echo "*********************************************************"
8231 +                echo ""
8232 +        fi
8233 +
8234 +
8235 +
8236 +
8237 + fi
8238 + fi
8239 +
8240 +
8241 + ac_ext=cpp
8242 + ac_cpp='$CXXCPP $CPPFLAGS'
8243 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8244 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8245 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8246 + { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8247 + echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8248 + if test -z "$CXXCPP"; then
8249 +  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8250 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8251 + else
8252 +      # Double quotes because CXXCPP needs to be expanded
8253 +    for CXXCPP in "$CXX -E" "/lib/cpp"
8254 +    do
8255 +      ac_preproc_ok=false
8256 + for ac_cxx_preproc_warn_flag in '' yes
8257 + do
8258 +  # Use a header file that comes with gcc, so configuring glibc
8259 +  # with a fresh cross-compiler works.
8260 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8261 +  # <limits.h> exists even on freestanding compilers.
8262 +  # On the NeXT, cc -E runs the code through the compiler's parser,
8263 +  # not just through cpp. "Syntax error" is here to catch this case.
8264 +  cat >conftest.$ac_ext <<_ACEOF
8265 + /* confdefs.h.  */
8266 + _ACEOF
8267 + cat confdefs.h >>conftest.$ac_ext
8268 + cat >>conftest.$ac_ext <<_ACEOF
8269 + /* end confdefs.h.  */
8270 + #ifdef __STDC__
8271 + # include <limits.h>
8272 + #else
8273 + # include <assert.h>
8274 + #endif
8275 +                     Syntax error
8276 + _ACEOF
8277 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8278 + case "(($ac_try" in
8279 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 +  *) ac_try_echo=$ac_try;;
8281 + esac
8282 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8284 +  ac_status=$?
8285 +  grep -v '^ *+' conftest.er1 >conftest.err
8286 +  rm -f conftest.er1
8287 +  cat conftest.err >&5
8288 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 +  (exit $ac_status); } >/dev/null && {
8290 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8291 +         test ! -s conftest.err
8292 +       }; then
8293 +  :
8294 + else
8295 +  echo "$as_me: failed program was:" >&5
8296 + sed 's/^/| /' conftest.$ac_ext >&5
8297 +
8298 +  # Broken: fails on valid input.
8299 + continue
8300 + fi
8301 +
8302 + rm -f conftest.err conftest.$ac_ext
8303 +
8304 +  # OK, works on sane cases.  Now check whether nonexistent headers
8305 +  # can be detected and how.
8306 +  cat >conftest.$ac_ext <<_ACEOF
8307 + /* confdefs.h.  */
8308 + _ACEOF
8309 + cat confdefs.h >>conftest.$ac_ext
8310 + cat >>conftest.$ac_ext <<_ACEOF
8311 + /* end confdefs.h.  */
8312 + #include <ac_nonexistent.h>
8313 + _ACEOF
8314 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8315 + case "(($ac_try" in
8316 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 +  *) ac_try_echo=$ac_try;;
8318 + esac
8319 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8321 +  ac_status=$?
8322 +  grep -v '^ *+' conftest.er1 >conftest.err
8323 +  rm -f conftest.er1
8324 +  cat conftest.err >&5
8325 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 +  (exit $ac_status); } >/dev/null && {
8327 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8328 +         test ! -s conftest.err
8329 +       }; then
8330 +  # Broken: success on invalid input.
8331 + continue
8332 + else
8333 +  echo "$as_me: failed program was:" >&5
8334 + sed 's/^/| /' conftest.$ac_ext >&5
8335 +
8336 +  # Passes both tests.
8337 + ac_preproc_ok=:
8338 + break
8339 + fi
8340 +
8341 + rm -f conftest.err conftest.$ac_ext
8342 +
8343 + done
8344 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8345 + rm -f conftest.err conftest.$ac_ext
8346 + if $ac_preproc_ok; then
8347 +  break
8348 + fi
8349 +
8350 +    done
8351 +    ac_cv_prog_CXXCPP=$CXXCPP
8352 +
8353 + fi
8354 +  CXXCPP=$ac_cv_prog_CXXCPP
8355 + else
8356 +  ac_cv_prog_CXXCPP=$CXXCPP
8357 + fi
8358 + { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8359 + echo "${ECHO_T}$CXXCPP" >&6; }
8360 + ac_preproc_ok=false
8361 + for ac_cxx_preproc_warn_flag in '' yes
8362 + do
8363 +  # Use a header file that comes with gcc, so configuring glibc
8364 +  # with a fresh cross-compiler works.
8365 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8366 +  # <limits.h> exists even on freestanding compilers.
8367 +  # On the NeXT, cc -E runs the code through the compiler's parser,
8368 +  # not just through cpp. "Syntax error" is here to catch this case.
8369 +  cat >conftest.$ac_ext <<_ACEOF
8370 + /* confdefs.h.  */
8371 + _ACEOF
8372 + cat confdefs.h >>conftest.$ac_ext
8373 + cat >>conftest.$ac_ext <<_ACEOF
8374 + /* end confdefs.h.  */
8375 + #ifdef __STDC__
8376 + # include <limits.h>
8377 + #else
8378 + # include <assert.h>
8379 + #endif
8380 +                     Syntax error
8381 + _ACEOF
8382 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8383 + case "(($ac_try" in
8384 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 +  *) ac_try_echo=$ac_try;;
8386 + esac
8387 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8389 +  ac_status=$?
8390 +  grep -v '^ *+' conftest.er1 >conftest.err
8391 +  rm -f conftest.er1
8392 +  cat conftest.err >&5
8393 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 +  (exit $ac_status); } >/dev/null && {
8395 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8396 +         test ! -s conftest.err
8397 +       }; then
8398 +  :
8399 + else
8400 +  echo "$as_me: failed program was:" >&5
8401 + sed 's/^/| /' conftest.$ac_ext >&5
8402 +
8403 +  # Broken: fails on valid input.
8404 + continue
8405 + fi
8406 +
8407 + rm -f conftest.err conftest.$ac_ext
8408 +
8409 +  # OK, works on sane cases.  Now check whether nonexistent headers
8410 +  # can be detected and how.
8411 +  cat >conftest.$ac_ext <<_ACEOF
8412 + /* confdefs.h.  */
8413 + _ACEOF
8414 + cat confdefs.h >>conftest.$ac_ext
8415 + cat >>conftest.$ac_ext <<_ACEOF
8416 + /* end confdefs.h.  */
8417 + #include <ac_nonexistent.h>
8418 + _ACEOF
8419 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8420 + case "(($ac_try" in
8421 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 +  *) ac_try_echo=$ac_try;;
8423 + esac
8424 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8426 +  ac_status=$?
8427 +  grep -v '^ *+' conftest.er1 >conftest.err
8428 +  rm -f conftest.er1
8429 +  cat conftest.err >&5
8430 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 +  (exit $ac_status); } >/dev/null && {
8432 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8433 +         test ! -s conftest.err
8434 +       }; then
8435 +  # Broken: success on invalid input.
8436 + continue
8437 + else
8438 +  echo "$as_me: failed program was:" >&5
8439 + sed 's/^/| /' conftest.$ac_ext >&5
8440 +
8441 +  # Passes both tests.
8442 + ac_preproc_ok=:
8443 + break
8444 + fi
8445 +
8446 + rm -f conftest.err conftest.$ac_ext
8447 +
8448 + done
8449 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8450 + rm -f conftest.err conftest.$ac_ext
8451 + if $ac_preproc_ok; then
8452 +  :
8453 + else
8454 +  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8455 + See \`config.log' for more details." >&5
8456 + echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8457 + See \`config.log' for more details." >&2;}
8458 +   { (exit 1); exit 1; }; }
8459 + fi
8460 +
8461 + ac_ext=cpp
8462 + ac_cpp='$CXXCPP $CPPFLAGS'
8463 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8466 +
8467 +
8468 + #
8469 + # Handle user hints
8470 + #
8471 +
8472 + # Check whether --with-openbabel was given.
8473 + if test "${with_openbabel+set}" = set; then
8474 +  withval=$with_openbabel; openbabel_dir="$withval"
8475 + else
8476 +                openbabel_dir="not_set"
8477 + fi
8478 +
8479 + if test "$openbabel_dir" != "no"; then
8480 +
8481 + if test "$openbabel_dir" != "not_set" ; then
8482 +  if test -d "$openbabel_dir"
8483 +  then
8484 +    OPENBABEL_HOME="$openbabel_dir"
8485 +  else
8486 +    { echo "$as_me:$LINENO: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5
8487 + echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;}
8488 +        OPENBABEL_HOME=/usr/local
8489 +        if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h"
8490 +        then
8491 +                OPENBABEL_HOME=/usr
8492 +        fi
8493    fi
8494   fi
8495 + #
8496 + # Locate openbabel, if wanted
8497 + #
8498 + if test -n "${OPENBABEL_HOME}"
8499 + then
8500  
8501 +        ac_ext=cpp
8502 + ac_cpp='$CXXCPP $CPPFLAGS'
8503 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8506  
8507 +        OPENBABEL_OLD_LDFLAGS=$LDFLAGS
8508 +        OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS
8509 +        LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
8510 +        CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
8511 +        if test "${ac_cv_header_openbabel_2_0_openbabel_babelconfig_h+set}" = set; then
8512 +  { echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/babelconfig.h" >&5
8513 + echo $ECHO_N "checking for openbabel-2.0/openbabel/babelconfig.h... $ECHO_C" >&6; }
8514 + if test "${ac_cv_header_openbabel_2_0_openbabel_babelconfig_h+set}" = set; then
8515 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8516 + fi
8517 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&5
8518 + echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&6; }
8519 + else
8520 +  # Is the header compilable?
8521 + { echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/babelconfig.h usability" >&5
8522 + echo $ECHO_N "checking openbabel-2.0/openbabel/babelconfig.h usability... $ECHO_C" >&6; }
8523 + cat >conftest.$ac_ext <<_ACEOF
8524 + /* confdefs.h.  */
8525 + _ACEOF
8526 + cat confdefs.h >>conftest.$ac_ext
8527 + cat >>conftest.$ac_ext <<_ACEOF
8528 + /* end confdefs.h.  */
8529 + $ac_includes_default
8530 + #include <openbabel-2.0/openbabel/babelconfig.h>
8531 + _ACEOF
8532 + rm -f conftest.$ac_objext
8533 + if { (ac_try="$ac_compile"
8534 + case "(($ac_try" in
8535 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 +  *) ac_try_echo=$ac_try;;
8537 + esac
8538 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 +  (eval "$ac_compile") 2>conftest.er1
8540 +  ac_status=$?
8541 +  grep -v '^ *+' conftest.er1 >conftest.err
8542 +  rm -f conftest.er1
8543 +  cat conftest.err >&5
8544 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 +  (exit $ac_status); } && {
8546 +         test -z "$ac_cxx_werror_flag" ||
8547 +         test ! -s conftest.err
8548 +       } && test -s conftest.$ac_objext; then
8549 +  ac_header_compiler=yes
8550 + else
8551 +  echo "$as_me: failed program was:" >&5
8552 + sed 's/^/| /' conftest.$ac_ext >&5
8553  
8554 +        ac_header_compiler=no
8555 + fi
8556 +
8557 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8559 + echo "${ECHO_T}$ac_header_compiler" >&6; }
8560 +
8561 + # Is the header present?
8562 + { echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/babelconfig.h presence" >&5
8563 + echo $ECHO_N "checking openbabel-2.0/openbabel/babelconfig.h presence... $ECHO_C" >&6; }
8564 + cat >conftest.$ac_ext <<_ACEOF
8565 + /* confdefs.h.  */
8566 + _ACEOF
8567 + cat confdefs.h >>conftest.$ac_ext
8568 + cat >>conftest.$ac_ext <<_ACEOF
8569 + /* end confdefs.h.  */
8570 + #include <openbabel-2.0/openbabel/babelconfig.h>
8571 + _ACEOF
8572 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8573 + case "(($ac_try" in
8574 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 +  *) ac_try_echo=$ac_try;;
8576 + esac
8577 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8579 +  ac_status=$?
8580 +  grep -v '^ *+' conftest.er1 >conftest.err
8581 +  rm -f conftest.er1
8582 +  cat conftest.err >&5
8583 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 +  (exit $ac_status); } >/dev/null && {
8585 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8586 +         test ! -s conftest.err
8587 +       }; then
8588 +  ac_header_preproc=yes
8589 + else
8590 +  echo "$as_me: failed program was:" >&5
8591 + sed 's/^/| /' conftest.$ac_ext >&5
8592 +
8593 +  ac_header_preproc=no
8594 + fi
8595 +
8596 + rm -f conftest.err conftest.$ac_ext
8597 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 + echo "${ECHO_T}$ac_header_preproc" >&6; }
8599 +
8600 + # So?  What about this header?
8601 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8602 +  yes:no: )
8603 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
8604 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the compiler's result" >&5
8606 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the compiler's result" >&2;}
8607 +    ac_header_preproc=yes
8608 +    ;;
8609 +  no:yes:* )
8610 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: present but cannot be compiled" >&5
8611 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: present but cannot be compiled" >&2;}
8612 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h:     check for missing prerequisite headers?" >&5
8613 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h:     check for missing prerequisite headers?" >&2;}
8614 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: see the Autoconf documentation" >&5
8615 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: see the Autoconf documentation" >&2;}
8616 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h:     section \"Present But Cannot Be Compiled\"" >&5
8617 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8618 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5
8619 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;}
8620 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5
8621 + echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;}
8622 +    ( cat <<\_ASBOX
8623 + ## ------------------------------ ##
8624 + ## Report this to gezelter@nd.edu ##
8625 + ## ------------------------------ ##
8626 + _ASBOX
8627 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
8628 +    ;;
8629 + esac
8630 + { echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/babelconfig.h" >&5
8631 + echo $ECHO_N "checking for openbabel-2.0/openbabel/babelconfig.h... $ECHO_C" >&6; }
8632 + if test "${ac_cv_header_openbabel_2_0_openbabel_babelconfig_h+set}" = set; then
8633 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8634 + else
8635 +  ac_cv_header_openbabel_2_0_openbabel_babelconfig_h=$ac_header_preproc
8636 + fi
8637 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&5
8638 + echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&6; }
8639 +
8640 + fi
8641 + if test $ac_cv_header_openbabel_2_0_openbabel_babelconfig_h = yes; then
8642 +  openbabel_cv_openbabel_h=yes
8643 + else
8644 +  openbabel_cv_openbabel_h=no
8645 + fi
8646 +
8647 +
8648 +        if test "${ac_cv_header_openbabel_2_0_openbabel_obconversion_h+set}" = set; then
8649 +  { echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/obconversion.h" >&5
8650 + echo $ECHO_N "checking for openbabel-2.0/openbabel/obconversion.h... $ECHO_C" >&6; }
8651 + if test "${ac_cv_header_openbabel_2_0_openbabel_obconversion_h+set}" = set; then
8652 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8653 + fi
8654 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&5
8655 + echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&6; }
8656 + else
8657 +  # Is the header compilable?
8658 + { echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/obconversion.h usability" >&5
8659 + echo $ECHO_N "checking openbabel-2.0/openbabel/obconversion.h usability... $ECHO_C" >&6; }
8660 + cat >conftest.$ac_ext <<_ACEOF
8661 + /* confdefs.h.  */
8662 + _ACEOF
8663 + cat confdefs.h >>conftest.$ac_ext
8664 + cat >>conftest.$ac_ext <<_ACEOF
8665 + /* end confdefs.h.  */
8666 + $ac_includes_default
8667 + #include <openbabel-2.0/openbabel/obconversion.h>
8668 + _ACEOF
8669 + rm -f conftest.$ac_objext
8670 + if { (ac_try="$ac_compile"
8671 + case "(($ac_try" in
8672 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 +  *) ac_try_echo=$ac_try;;
8674 + esac
8675 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 +  (eval "$ac_compile") 2>conftest.er1
8677 +  ac_status=$?
8678 +  grep -v '^ *+' conftest.er1 >conftest.err
8679 +  rm -f conftest.er1
8680 +  cat conftest.err >&5
8681 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 +  (exit $ac_status); } && {
8683 +         test -z "$ac_cxx_werror_flag" ||
8684 +         test ! -s conftest.err
8685 +       } && test -s conftest.$ac_objext; then
8686 +  ac_header_compiler=yes
8687 + else
8688 +  echo "$as_me: failed program was:" >&5
8689 + sed 's/^/| /' conftest.$ac_ext >&5
8690 +
8691 +        ac_header_compiler=no
8692 + fi
8693 +
8694 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696 + echo "${ECHO_T}$ac_header_compiler" >&6; }
8697 +
8698 + # Is the header present?
8699 + { echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/obconversion.h presence" >&5
8700 + echo $ECHO_N "checking openbabel-2.0/openbabel/obconversion.h presence... $ECHO_C" >&6; }
8701 + cat >conftest.$ac_ext <<_ACEOF
8702 + /* confdefs.h.  */
8703 + _ACEOF
8704 + cat confdefs.h >>conftest.$ac_ext
8705 + cat >>conftest.$ac_ext <<_ACEOF
8706 + /* end confdefs.h.  */
8707 + #include <openbabel-2.0/openbabel/obconversion.h>
8708 + _ACEOF
8709 + if { (ac_try="$ac_cpp conftest.$ac_ext"
8710 + case "(($ac_try" in
8711 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 +  *) ac_try_echo=$ac_try;;
8713 + esac
8714 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8716 +  ac_status=$?
8717 +  grep -v '^ *+' conftest.er1 >conftest.err
8718 +  rm -f conftest.er1
8719 +  cat conftest.err >&5
8720 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 +  (exit $ac_status); } >/dev/null && {
8722 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8723 +         test ! -s conftest.err
8724 +       }; then
8725 +  ac_header_preproc=yes
8726 + else
8727 +  echo "$as_me: failed program was:" >&5
8728 + sed 's/^/| /' conftest.$ac_ext >&5
8729 +
8730 +  ac_header_preproc=no
8731 + fi
8732 +
8733 + rm -f conftest.err conftest.$ac_ext
8734 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 + echo "${ECHO_T}$ac_header_preproc" >&6; }
8736 +
8737 + # So?  What about this header?
8738 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8739 +  yes:no: )
8740 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5
8741 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the compiler's result" >&5
8743 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the compiler's result" >&2;}
8744 +    ac_header_preproc=yes
8745 +    ;;
8746 +  no:yes:* )
8747 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: present but cannot be compiled" >&5
8748 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: present but cannot be compiled" >&2;}
8749 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h:     check for missing prerequisite headers?" >&5
8750 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h:     check for missing prerequisite headers?" >&2;}
8751 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: see the Autoconf documentation" >&5
8752 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: see the Autoconf documentation" >&2;}
8753 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h:     section \"Present But Cannot Be Compiled\"" >&5
8754 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8755 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the preprocessor's result" >&5
8756 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;}
8757 +    { echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: in the future, the compiler will take precedence" >&5
8758 + echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;}
8759 +    ( cat <<\_ASBOX
8760 + ## ------------------------------ ##
8761 + ## Report this to gezelter@nd.edu ##
8762 + ## ------------------------------ ##
8763 + _ASBOX
8764 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
8765 +    ;;
8766 + esac
8767 + { echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/obconversion.h" >&5
8768 + echo $ECHO_N "checking for openbabel-2.0/openbabel/obconversion.h... $ECHO_C" >&6; }
8769 + if test "${ac_cv_header_openbabel_2_0_openbabel_obconversion_h+set}" = set; then
8770 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8771 + else
8772 +  ac_cv_header_openbabel_2_0_openbabel_obconversion_h=$ac_header_preproc
8773 + fi
8774 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&5
8775 + echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&6; }
8776 +
8777 + fi
8778 + if test $ac_cv_header_openbabel_2_0_openbabel_obconversion_h = yes; then
8779 +  openbabel_cv_obconversion_h=yes
8780 + else
8781 +  openbabel_cv_obconversion_h=no
8782 + fi
8783 +
8784 +
8785 +        cat >conftest.$ac_ext <<_ACEOF
8786 +
8787 +             /* confdefs.h.  */
8788 + _ACEOF
8789 + cat confdefs.h >>conftest.$ac_ext
8790 + cat >>conftest.$ac_ext <<_ACEOF
8791 + /* end confdefs.h.  */
8792 +
8793 + #include <openbabel/babelconfig.h>
8794 + #include <openbabel/obconversion.h>
8795 + using namespace std;
8796 + using namespace OpenBabel;
8797 +
8798 + #ifdef FC_DUMMY_MAIN
8799 + #ifndef FC_DUMMY_MAIN_EQ_F77
8800 + #  ifdef __cplusplus
8801 +     extern "C"
8802 + #  endif
8803 +   int FC_DUMMY_MAIN() { return 1; }
8804 + #endif
8805 + #endif
8806 + int
8807 + main ()
8808 + {
8809 +
8810 + OBConversion Conv(&cin, &cout);
8811 +
8812 +
8813 +  ;
8814 +  return 0;
8815 + }
8816 + _ACEOF
8817 + rm -f conftest.$ac_objext conftest$ac_exeext
8818 + if { (ac_try="$ac_link"
8819 + case "(($ac_try" in
8820 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 +  *) ac_try_echo=$ac_try;;
8822 + esac
8823 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 +  (eval "$ac_link") 2>conftest.er1
8825 +  ac_status=$?
8826 +  grep -v '^ *+' conftest.er1 >conftest.err
8827 +  rm -f conftest.er1
8828 +  cat conftest.err >&5
8829 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 +  (exit $ac_status); } && {
8831 +         test -z "$ac_cxx_werror_flag" ||
8832 +         test ! -s conftest.err
8833 +       } && test -s conftest$ac_exeext &&
8834 +       $as_test_x conftest$ac_exeext; then
8835 +
8836 +                openbabel_lib_found="yes"
8837 +                { echo "$as_me:$LINENO: result: found" >&5
8838 + echo "${ECHO_T}found" >&6; }
8839 +
8840 + else
8841 +  echo "$as_me: failed program was:" >&5
8842 + sed 's/^/| /' conftest.$ac_ext >&5
8843 +
8844 +
8845 +                openbabel_lib_found="no"
8846 +                { echo "$as_me:$LINENO: result: not found" >&5
8847 + echo "${ECHO_T}not found" >&6; }
8848 +
8849 +
8850 + fi
8851 +
8852 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853 +      conftest$ac_exeext conftest.$ac_ext
8854 +        ac_ext=c
8855 + ac_cpp='$CPP $CPPFLAGS'
8856 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859 +
8860 +        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
8861 +        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
8862 +
8863 +        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
8864 +                USE_OPENBABEL=yes
8865 +                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
8866 +                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
8867 +                OPENBABEL_LIB="-lopenbabel"
8868 +        else
8869 +                { echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5
8870 + echo $ECHO_N "checking openbabel in ${OPENBABEL_HOME}... $ECHO_C" >&6; }
8871 +                OPENBABEL_INC_DIR=
8872 +                OPENBABEL_LIB_DIR=
8873 +                OPENBABEL_LIB=
8874 +                USE_OPENBABEL=no
8875 +                { echo "$as_me:$LINENO: result: failed" >&5
8876 + echo "${ECHO_T}failed" >&6; }
8877 +                echo ""
8878 +                echo "*********************************************************"
8879 +                echo "* WARNING: Could not find a working openbabel-2.x       *"
8880 +                echo "* installation If you need OOPSE to be able to convert  *"
8881 +                echo "* xyz or pdb files you need to specify a valid          *"
8882 +                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8883 +                echo "*                                                       *"
8884 +                echo "* OOPSE will still work without openbabel installed.    *"
8885 +                echo "*********************************************************"
8886 +                echo ""
8887 +        fi
8888 +
8889 +
8890 +
8891 +
8892 + fi
8893 + fi
8894 +
8895 +
8896   # Checks for header files.
8897   { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8898   echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
# Line 7626 | Line 8926 | _ACEOF
8926    return 0;
8927   }
8928   _ACEOF
8929 < rm -rf conftest.$ac_objext
8929 > rm -f conftest.$ac_objext
8930   if { (ac_try="$ac_compile"
8931   case "(($ac_try" in
8932    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7651 | Line 8951 | fi
8951          ac_cv_header_stdc=no
8952   fi
8953  
8954 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955  
8956   if test $ac_cv_header_stdc = yes; then
8957    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
# Line 7670 | Line 8970 | fi
8970   else
8971    ac_cv_header_stdc=no
8972   fi
8973 < rm -rf conftest*
8973 > rm -f conftest*
8974  
8975   fi
8976  
# Line 7691 | Line 8991 | fi
8991   else
8992    ac_cv_header_stdc=no
8993   fi
8994 < rm -rf conftest*
8994 > rm -f conftest*
8995  
8996   fi
8997  
# Line 7731 | Line 9031 | _ACEOF
9031    return 0;
9032   }
9033   _ACEOF
9034 < rm -rf conftest$ac_exeext
9034 > rm -f conftest$ac_exeext
9035   if { (ac_try="$ac_link"
9036   case "(($ac_try" in
9037    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7760 | Line 9060 | fi
9060   ( exit $ac_status )
9061   ac_cv_header_stdc=no
9062   fi
9063 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9063 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9064   fi
9065  
9066  
# Line 7826 | Line 9126 | _ACEOF
9126   $ac_includes_default
9127   #include <$ac_header>
9128   _ACEOF
9129 < rm -rf conftest.$ac_objext
9129 > rm -f conftest.$ac_objext
9130   if { (ac_try="$ac_compile"
9131   case "(($ac_try" in
9132    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7851 | Line 9151 | fi
9151          ac_header_compiler=no
9152   fi
9153  
9154 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9156   echo "${ECHO_T}$ac_header_compiler" >&6; }
9157  
# Line 7890 | Line 9190 | fi
9190    ac_header_preproc=no
9191   fi
9192  
9193 < rm -rf conftest.err conftest.$ac_ext
9193 > rm -f conftest.err conftest.$ac_ext
9194   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9195   echo "${ECHO_T}$ac_header_preproc" >&6; }
9196  
# Line 8042 | Line 9342 | _ACEOF
9342    return 0;
9343   }
9344   _ACEOF
9345 < rm -rf conftest.$ac_objext
9345 > rm -f conftest.$ac_objext
9346   if { (ac_try="$ac_compile"
9347   case "(($ac_try" in
9348    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8067 | Line 9367 | fi
9367          ac_cv_header_stdbool_h=no
9368   fi
9369  
9370 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371   fi
9372   { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9373   echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
# Line 8103 | Line 9403 | _ACEOF
9403    return 0;
9404   }
9405   _ACEOF
9406 < rm -rf conftest.$ac_objext
9406 > rm -f conftest.$ac_objext
9407   if { (ac_try="$ac_compile"
9408   case "(($ac_try" in
9409    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8128 | Line 9428 | fi
9428          ac_cv_type__Bool=no
9429   fi
9430  
9431 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9431 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432   fi
9433   { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9434   echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
# Line 8226 | Line 9526 | _ACEOF
9526    return 0;
9527   }
9528   _ACEOF
9529 < rm -rf conftest.$ac_objext
9529 > rm -f conftest.$ac_objext
9530   if { (ac_try="$ac_compile"
9531   case "(($ac_try" in
9532    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8251 | Line 9551 | fi
9551          ac_cv_c_const=no
9552   fi
9553  
9554 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555   fi
9556   { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9557   echo "${ECHO_T}$ac_cv_c_const" >&6; }
# Line 8283 | Line 9583 | _ACEOF
9583   #endif
9584  
9585   _ACEOF
9586 < rm -rf conftest.$ac_objext
9586 > rm -f conftest.$ac_objext
9587   if { (ac_try="$ac_compile"
9588   case "(($ac_try" in
9589    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8308 | Line 9608 | fi
9608  
9609   fi
9610  
9611 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9611 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612    test "$ac_cv_c_inline" != no && break
9613   done
9614  
# Line 8370 | Line 9670 | _ACEOF
9670    return 0;
9671   }
9672   _ACEOF
9673 < rm -rf conftest.$ac_objext
9673 > rm -f conftest.$ac_objext
9674   if { (ac_try="$ac_compile"
9675   case "(($ac_try" in
9676    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8395 | Line 9695 | fi
9695  
9696   fi
9697  
9698 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699       test "$ac_cv_c_restrict" != no && break
9700     done
9701  
# Line 8447 | Line 9747 | _ACEOF
9747    return 0;
9748   }
9749   _ACEOF
9750 < rm -rf conftest.$ac_objext
9750 > rm -f conftest.$ac_objext
9751   if { (ac_try="$ac_compile"
9752   case "(($ac_try" in
9753    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8472 | Line 9772 | fi
9772          ac_cv_type_size_t=no
9773   fi
9774  
9775 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776   fi
9777   { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9778   echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
# Line 8518 | Line 9818 | _ACEOF
9818    return 0;
9819   }
9820   _ACEOF
9821 < rm -rf conftest.$ac_objext
9821 > rm -f conftest.$ac_objext
9822   if { (ac_try="$ac_compile"
9823   case "(($ac_try" in
9824    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8543 | Line 9843 | fi
9843          ac_cv_header_time=no
9844   fi
9845  
9846 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9846 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847   fi
9848   { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9849   echo "${ECHO_T}$ac_cv_header_time" >&6; }
# Line 8587 | Line 9887 | _ACEOF
9887    return 0;
9888   }
9889   _ACEOF
9890 < rm -rf conftest.$ac_objext
9890 > rm -f conftest.$ac_objext
9891   if { (ac_try="$ac_compile"
9892   case "(($ac_try" in
9893    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8612 | Line 9912 | fi
9912          ac_cv_type_clock_t=no
9913   fi
9914  
9915 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916   fi
9917   { echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
9918   echo "${ECHO_T}$ac_cv_type_clock_t" >&6; }
# Line 8702 | Line 10002 | _ACEOF
10002    return 0;
10003   }
10004   _ACEOF
10005 < rm -rf conftest.$ac_objext
10005 > rm -f conftest.$ac_objext
10006   if { (ac_try="$ac_compile"
10007   case "(($ac_try" in
10008    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8727 | Line 10027 | fi
10027          ac_cv_c_const=no
10028   fi
10029  
10030 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031   fi
10032   { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10033   echo "${ECHO_T}$ac_cv_c_const" >&6; }
# Line 8759 | Line 10059 | _ACEOF
10059   #endif
10060  
10061   _ACEOF
10062 < rm -rf conftest.$ac_objext
10062 > rm -f conftest.$ac_objext
10063   if { (ac_try="$ac_compile"
10064   case "(($ac_try" in
10065    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8784 | Line 10084 | fi
10084  
10085   fi
10086  
10087 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088    test "$ac_cv_c_inline" != no && break
10089   done
10090  
# Line 8836 | Line 10136 | _ACEOF
10136   $ac_includes_default
10137   #include <$ac_header>
10138   _ACEOF
10139 < rm -rf conftest.$ac_objext
10139 > rm -f conftest.$ac_objext
10140   if { (ac_try="$ac_compile"
10141   case "(($ac_try" in
10142    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8861 | Line 10161 | fi
10161          ac_header_compiler=no
10162   fi
10163  
10164 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10166   echo "${ECHO_T}$ac_header_compiler" >&6; }
10167  
# Line 8885 | Line 10185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10186    ac_status=$?
10187    grep -v '^ *+' conftest.er1 >conftest.err
10188 <  rm -rf conftest.er1
10188 >  rm -f conftest.er1
10189    cat conftest.err >&5
10190    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191    (exit $ac_status); } >/dev/null && {
# Line 8900 | Line 10200 | fi
10200    ac_header_preproc=no
10201   fi
10202  
10203 < rm -rf conftest.err conftest.$ac_ext
10203 > rm -f conftest.err conftest.$ac_ext
10204   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10205   echo "${ECHO_T}$ac_header_preproc" >&6; }
10206  
# Line 8991 | Line 10291 | _ACEOF
10291    return 0;
10292   }
10293   _ACEOF
10294 < rm -rf conftest$ac_exeext
10294 > rm -f conftest$ac_exeext
10295   if { (ac_try="$ac_link"
10296   case "(($ac_try" in
10297    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9020 | Line 10320 | fi
10320   ( exit $ac_status )
10321   ac_cv_func_malloc_0_nonnull=no
10322   fi
10323 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10323 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10324   fi
10325  
10326  
# Line 9108 | Line 10408 | _ACEOF
10408    return 0;
10409   }
10410   _ACEOF
10411 < rm -rf conftest$ac_exeext
10411 > rm -f conftest$ac_exeext
10412   if { (ac_try="$ac_link"
10413   case "(($ac_try" in
10414    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9137 | Line 10437 | fi
10437   ( exit $ac_status )
10438   ac_cv_func_memcmp_working=no
10439   fi
10440 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10440 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10441   fi
10442  
10443  
# Line 9177 | Line 10477 | _ACEOF
10477   $ac_includes_default
10478   #include <$ac_header>
10479   _ACEOF
10480 < rm -rf conftest.$ac_objext
10480 > rm -f conftest.$ac_objext
10481   if { (ac_try="$ac_compile"
10482   case "(($ac_try" in
10483    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9202 | Line 10502 | fi
10502          ac_header_compiler=no
10503   fi
10504  
10505 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10507   echo "${ECHO_T}$ac_header_compiler" >&6; }
10508  
# Line 9241 | Line 10541 | fi
10541    ac_header_preproc=no
10542   fi
10543  
10544 < rm -rf conftest.err conftest.$ac_ext
10544 > rm -f conftest.err conftest.$ac_ext
10545   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10546   echo "${ECHO_T}$ac_header_preproc" >&6; }
10547  
# Line 9332 | Line 10632 | _ACEOF
10632    return 0;
10633   }
10634   _ACEOF
10635 < rm -rf conftest$ac_exeext
10635 > rm -f conftest$ac_exeext
10636   if { (ac_try="$ac_link"
10637   case "(($ac_try" in
10638    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9361 | Line 10661 | fi
10661   ( exit $ac_status )
10662   ac_cv_func_realloc_0_nonnull=no
10663   fi
10664 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10664 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10665   fi
10666  
10667  
# Line 9421 | Line 10721 | _ACEOF
10721   $ac_includes_default
10722   #include <$ac_header>
10723   _ACEOF
10724 < rm -rf conftest.$ac_objext
10724 > rm -f conftest.$ac_objext
10725   if { (ac_try="$ac_compile"
10726   case "(($ac_try" in
10727    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9446 | Line 10746 | fi
10746          ac_header_compiler=no
10747   fi
10748  
10749 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751   echo "${ECHO_T}$ac_header_compiler" >&6; }
10752  
# Line 9485 | Line 10785 | fi
10785    ac_header_preproc=no
10786   fi
10787  
10788 < rm -rf conftest.err conftest.$ac_ext
10788 > rm -f conftest.err conftest.$ac_ext
10789   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790   echo "${ECHO_T}$ac_header_preproc" >&6; }
10791  
# Line 9580 | Line 10880 | _ACEOF
10880    return 0;
10881   }
10882   _ACEOF
10883 < rm -rf conftest.$ac_objext
10883 > rm -f conftest.$ac_objext
10884   if { (ac_try="$ac_compile"
10885   case "(($ac_try" in
10886    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9605 | Line 10905 | fi
10905  
10906   fi
10907  
10908 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909    done
10910   done
10911   done
# Line 9634 | Line 10934 | _ACEOF
10934   #define SELECT_TYPE_ARG5 ($3)
10935   _ACEOF
10936  
10937 < rm -rf conftest*
10937 > rm -f conftest*
10938  
10939  
10940   for ac_func in strftime
# Line 9698 | Line 10998 | _ACEOF
10998    return 0;
10999   }
11000   _ACEOF
11001 < rm -rf conftest.$ac_objext conftest$ac_exeext
11001 > rm -f conftest.$ac_objext conftest$ac_exeext
11002   if { (ac_try="$ac_link"
11003   case "(($ac_try" in
11004    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9724 | Line 11024 | fi
11024          eval "$as_ac_var=no"
11025   fi
11026  
11027 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11027 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11028        conftest$ac_exeext conftest.$ac_ext
11029   fi
11030   ac_res=`eval echo '${'$as_ac_var'}'`
# Line 9774 | Line 11074 | _ACEOF
11074    return 0;
11075   }
11076   _ACEOF
11077 < rm -rf conftest.$ac_objext conftest$ac_exeext
11077 > rm -f conftest.$ac_objext conftest$ac_exeext
11078   if { (ac_try="$ac_link"
11079   case "(($ac_try" in
11080    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9800 | Line 11100 | fi
11100          ac_cv_lib_intl_strftime=no
11101   fi
11102  
11103 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11103 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104        conftest$ac_exeext conftest.$ac_ext
11105   LIBS=$ac_check_lib_save_LIBS
11106   fi
# Line 10617 | Line 11917 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11917   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11919  
10620
11920   { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
11921   echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
11922   if test "${ac_cv_cxx_namespaces+set}" = set; then
# Line 10693 | Line 11992 | cat >>confdefs.h <<\_ACEOF
11992  
11993   cat >>confdefs.h <<\_ACEOF
11994   #define HAVE_NAMESPACES
10696 _ACEOF
10697
10698 fi
10699
10700 ac_ext=cpp
10701 ac_cpp='$CXXCPP $CPPFLAGS'
10702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10705 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10706 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10707 if test -z "$CXXCPP"; then
10708  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10709  echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711      # Double quotes because CXXCPP needs to be expanded
10712    for CXXCPP in "$CXX -E" "/lib/cpp"
10713    do
10714      ac_preproc_ok=false
10715 for ac_cxx_preproc_warn_flag in '' yes
10716 do
10717  # Use a header file that comes with gcc, so configuring glibc
10718  # with a fresh cross-compiler works.
10719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720  # <limits.h> exists even on freestanding compilers.
10721  # On the NeXT, cc -E runs the code through the compiler's parser,
10722  # not just through cpp. "Syntax error" is here to catch this case.
10723  cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 #ifdef __STDC__
10730 # include <limits.h>
10731 #else
10732 # include <assert.h>
10733 #endif
10734                     Syntax error
10735 _ACEOF
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739  *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743  ac_status=$?
10744  grep -v '^ *+' conftest.er1 >conftest.err
10745  rm -f conftest.er1
10746  cat conftest.err >&5
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); } >/dev/null && {
10749         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10750         test ! -s conftest.err
10751       }; then
10752  :
10753 else
10754  echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757  # Broken: fails on valid input.
10758 continue
10759 fi
10760
10761 rm -f conftest.err conftest.$ac_ext
10762
10763  # OK, works on sane cases.  Now check whether nonexistent headers
10764  # can be detected and how.
10765  cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <ac_nonexistent.h>
10772 _ACEOF
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776  *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780  ac_status=$?
10781  grep -v '^ *+' conftest.er1 >conftest.err
10782  rm -f conftest.er1
10783  cat conftest.err >&5
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); } >/dev/null && {
10786         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10787         test ! -s conftest.err
10788       }; then
10789  # Broken: success on invalid input.
10790 continue
10791 else
10792  echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795  # Passes both tests.
10796 ac_preproc_ok=:
10797 break
10798 fi
10799
10800 rm -f conftest.err conftest.$ac_ext
10801
10802 done
10803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10804 rm -f conftest.err conftest.$ac_ext
10805 if $ac_preproc_ok; then
10806  break
10807 fi
10808
10809    done
10810    ac_cv_prog_CXXCPP=$CXXCPP
10811
10812 fi
10813  CXXCPP=$ac_cv_prog_CXXCPP
10814 else
10815  ac_cv_prog_CXXCPP=$CXXCPP
10816 fi
10817 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10818 echo "${ECHO_T}$CXXCPP" >&6; }
10819 ac_preproc_ok=false
10820 for ac_cxx_preproc_warn_flag in '' yes
10821 do
10822  # Use a header file that comes with gcc, so configuring glibc
10823  # with a fresh cross-compiler works.
10824  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10825  # <limits.h> exists even on freestanding compilers.
10826  # On the NeXT, cc -E runs the code through the compiler's parser,
10827  # not just through cpp. "Syntax error" is here to catch this case.
10828  cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 #ifdef __STDC__
10835 # include <limits.h>
10836 #else
10837 # include <assert.h>
10838 #endif
10839                     Syntax error
10840 _ACEOF
10841 if { (ac_try="$ac_cpp conftest.$ac_ext"
10842 case "(($ac_try" in
10843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844  *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10848  ac_status=$?
10849  grep -v '^ *+' conftest.er1 >conftest.err
10850  rm -f conftest.er1
10851  cat conftest.err >&5
10852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853  (exit $ac_status); } >/dev/null && {
10854         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10855         test ! -s conftest.err
10856       }; then
10857  :
10858 else
10859  echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862  # Broken: fails on valid input.
10863 continue
10864 fi
10865
10866 rm -f conftest.err conftest.$ac_ext
10867
10868  # OK, works on sane cases.  Now check whether nonexistent headers
10869  # can be detected and how.
10870  cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
11995   _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 #include <ac_nonexistent.h>
10877 _ACEOF
10878 if { (ac_try="$ac_cpp conftest.$ac_ext"
10879 case "(($ac_try" in
10880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881  *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10885  ac_status=$?
10886  grep -v '^ *+' conftest.er1 >conftest.err
10887  rm -f conftest.er1
10888  cat conftest.err >&5
10889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890  (exit $ac_status); } >/dev/null && {
10891         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10892         test ! -s conftest.err
10893       }; then
10894  # Broken: success on invalid input.
10895 continue
10896 else
10897  echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
11996  
10900  # Passes both tests.
10901 ac_preproc_ok=:
10902 break
11997   fi
11998  
10905 rm -f conftest.err conftest.$ac_ext
10906
10907 done
10908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10909 rm -f conftest.err conftest.$ac_ext
10910 if $ac_preproc_ok; then
10911  :
10912 else
10913  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10914 See \`config.log' for more details." >&5
10915 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10916 See \`config.log' for more details." >&2;}
10917   { (exit 1); exit 1; }; }
10918 fi
10919
10920 ac_ext=cpp
10921 ac_cpp='$CXXCPP $CPPFLAGS'
10922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10925
10926
11999   { echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
12000   echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; }
12001   if test "${ac_cv_cxx_have_stl+set}" = set; then
# Line 12954 | Line 14026 | fi
14026   else
14027          ac_guessed_f90flags=no
14028   fi
14029 < rm -rf conftest*
14029 > rm -f conftest*
14030   ac_ext=cpp
14031   ac_cpp='$CXXCPP $CPPFLAGS'
14032   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 13077 | Line 14149 | if test "$ac_test_CFLAGS" != "set"; then
14149  
14150    # use default flags for gcc on all systems
14151    if test $ac_cv_prog_really_gcc = yes; then
14152 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
14152 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align"
14153    fi
14154  
14155    # test for gcc-specific flags:
# Line 13534 | Line 14606 | if test "$ac_test_CXXFLAGS" != "set"; then
14606  
14607    # use default flags for gcc on all systems
14608    if test $ac_cv_prog_really_gxx = yes; then
14609 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
14609 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align"
14610    fi
14611  
14612    # test for gcc-specific flags:
# Line 14440 | Line 15512 | fi
15512  
15513  
15514  
15515 + acx_cgal_found=no
15516  
15517 + # Check whether --with-cgalmakefile was given.
15518 + if test "${with_cgalmakefile+set}" = set; then
15519 +  withval=$with_cgalmakefile;
15520 + fi
15521 +
15522 + case $with_cgalmakefile in
15523 +        yes | "") ;;
15524 +        no) acx_cgal_found=disable ;;
15525 +        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
15526 +        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
15527 + esac
15528 +
15529 + if test "$acx_cgal_found" == no; then
15530 +    { echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5
15531 + echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6; }
15532 +
15533 +    if test \! -z "$CGAL_MAKEFILE"; then
15534 +
15535 +        if test -e "$CGAL_MAKEFILE"; then
15536 +            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
15537 +
15538 + cat > $tname << _ACEOF
15539 + include $CGAL_MAKEFILE
15540 +
15541 + cppflags:
15542 +        @echo \$(CGAL_CXXFLAGS)
15543 +
15544 + cxxflags:
15545 +        @echo
15546 + ldflags:
15547 +        @echo \$(CGAL_LDFLAGS)
15548 + _ACEOF
15549 +            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
15550 +            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
15551 +            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
15552 +            for i in $CGAL_LDFLAGST; do
15553 +                if test `echo $i| grep -c ^-l`; then
15554 +                    CGAL_LIBS="$CGAL_LIBS $i"
15555 +                else
15556 +                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
15557 +                fi
15558 +            done
15559 +            rm -f $tname
15560 +            { echo "$as_me:$LINENO: result: yes" >&5
15561 + echo "${ECHO_T}yes" >&6; }
15562 +            acx_cgal_found=yes
15563 +                                   else
15564 +            { echo "$as_me:$LINENO: result: invalid" >&5
15565 + echo "${ECHO_T}invalid" >&6; }
15566 +            { { echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5
15567 + echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;}
15568 +   { (exit 1); exit 1; }; }
15569 +        fi
15570 +    else
15571 +        { echo "$as_me:$LINENO: result: not defined" >&5
15572 + echo "${ECHO_T}not defined" >&6; }
15573 +    fi
15574 + fi
15575 +
15576 + if test "$acx_cgal_found" == no; then
15577 +        if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
15578 +  { echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
15579 + echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6; }
15580 + if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
15581 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15582 + fi
15583 + { echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
15584 + echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; }
15585 + else
15586 +  # Is the header compilable?
15587 + { echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5
15588 + echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6; }
15589 + cat >conftest.$ac_ext <<_ACEOF
15590 + /* confdefs.h.  */
15591 + _ACEOF
15592 + cat confdefs.h >>conftest.$ac_ext
15593 + cat >>conftest.$ac_ext <<_ACEOF
15594 + /* end confdefs.h.  */
15595 + $ac_includes_default
15596 + #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
15597 + _ACEOF
15598 + rm -f conftest.$ac_objext
15599 + if { (ac_try="$ac_compile"
15600 + case "(($ac_try" in
15601 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 +  *) ac_try_echo=$ac_try;;
15603 + esac
15604 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 +  (eval "$ac_compile") 2>conftest.er1
15606 +  ac_status=$?
15607 +  grep -v '^ *+' conftest.er1 >conftest.err
15608 +  rm -f conftest.er1
15609 +  cat conftest.err >&5
15610 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 +  (exit $ac_status); } && {
15612 +         test -z "$ac_c_werror_flag" ||
15613 +         test ! -s conftest.err
15614 +       } && test -s conftest.$ac_objext; then
15615 +  ac_header_compiler=yes
15616 + else
15617 +  echo "$as_me: failed program was:" >&5
15618 + sed 's/^/| /' conftest.$ac_ext >&5
15619 +
15620 +        ac_header_compiler=no
15621 + fi
15622 +
15623 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625 + echo "${ECHO_T}$ac_header_compiler" >&6; }
15626 +
15627 + # Is the header present?
15628 + { echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5
15629 + echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6; }
15630 + cat >conftest.$ac_ext <<_ACEOF
15631 + /* confdefs.h.  */
15632 + _ACEOF
15633 + cat confdefs.h >>conftest.$ac_ext
15634 + cat >>conftest.$ac_ext <<_ACEOF
15635 + /* end confdefs.h.  */
15636 + #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
15637 + _ACEOF
15638 + if { (ac_try="$ac_cpp conftest.$ac_ext"
15639 + case "(($ac_try" in
15640 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 +  *) ac_try_echo=$ac_try;;
15642 + esac
15643 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15645 +  ac_status=$?
15646 +  grep -v '^ *+' conftest.er1 >conftest.err
15647 +  rm -f conftest.er1
15648 +  cat conftest.err >&5
15649 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 +  (exit $ac_status); } >/dev/null && {
15651 +         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15652 +         test ! -s conftest.err
15653 +       }; then
15654 +  ac_header_preproc=yes
15655 + else
15656 +  echo "$as_me: failed program was:" >&5
15657 + sed 's/^/| /' conftest.$ac_ext >&5
15658 +
15659 +  ac_header_preproc=no
15660 + fi
15661 +
15662 + rm -f conftest.err conftest.$ac_ext
15663 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 + echo "${ECHO_T}$ac_header_preproc" >&6; }
15665 +
15666 + # So?  What about this header?
15667 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668 +  yes:no: )
15669 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5
15670 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5
15672 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;}
15673 +    ac_header_preproc=yes
15674 +    ;;
15675 +  no:yes:* )
15676 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5
15677 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;}
15678 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&5
15679 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&2;}
15680 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5
15681 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;}
15682 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&5
15683 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15684 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5
15685 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;}
15686 +    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5
15687 + echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;}
15688 +    ( cat <<\_ASBOX
15689 + ## ------------------------------ ##
15690 + ## Report this to gezelter@nd.edu ##
15691 + ## ------------------------------ ##
15692 + _ASBOX
15693 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
15694 +    ;;
15695 + esac
15696 + { echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
15697 + echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6; }
15698 + if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
15699 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15700 + else
15701 +  ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc
15702 + fi
15703 + { echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
15704 + echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; }
15705 +
15706 + fi
15707 + if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then
15708 +  cgal_have_header=yes
15709 + else
15710 +  cgal_have_header=no
15711 + fi
15712 +
15713 +
15714 +        if test "$cgal_have_header" == yes; then
15715 +                { echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
15716 + echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6; }
15717 + if test "${ac_cv_lib_CGAL_main+set}" = set; then
15718 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15719 + else
15720 +  ac_check_lib_save_LIBS=$LIBS
15721 + LIBS="-lCGAL  $LIBS"
15722 + cat >conftest.$ac_ext <<_ACEOF
15723 + /* confdefs.h.  */
15724 + _ACEOF
15725 + cat confdefs.h >>conftest.$ac_ext
15726 + cat >>conftest.$ac_ext <<_ACEOF
15727 + /* end confdefs.h.  */
15728 +
15729 +
15730 + #ifdef FC_DUMMY_MAIN
15731 + #ifndef FC_DUMMY_MAIN_EQ_F77
15732 + #  ifdef __cplusplus
15733 +     extern "C"
15734 + #  endif
15735 +   int FC_DUMMY_MAIN() { return 1; }
15736 + #endif
15737 + #endif
15738 + int
15739 + main ()
15740 + {
15741 + return main ();
15742 +  ;
15743 +  return 0;
15744 + }
15745 + _ACEOF
15746 + rm -f conftest.$ac_objext conftest$ac_exeext
15747 + if { (ac_try="$ac_link"
15748 + case "(($ac_try" in
15749 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 +  *) ac_try_echo=$ac_try;;
15751 + esac
15752 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 +  (eval "$ac_link") 2>conftest.er1
15754 +  ac_status=$?
15755 +  grep -v '^ *+' conftest.er1 >conftest.err
15756 +  rm -f conftest.er1
15757 +  cat conftest.err >&5
15758 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 +  (exit $ac_status); } && {
15760 +         test -z "$ac_c_werror_flag" ||
15761 +         test ! -s conftest.err
15762 +       } && test -s conftest$ac_exeext &&
15763 +       $as_test_x conftest$ac_exeext; then
15764 +  ac_cv_lib_CGAL_main=yes
15765 + else
15766 +  echo "$as_me: failed program was:" >&5
15767 + sed 's/^/| /' conftest.$ac_ext >&5
15768 +
15769 +        ac_cv_lib_CGAL_main=no
15770 + fi
15771 +
15772 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15773 +      conftest$ac_exeext conftest.$ac_ext
15774 + LIBS=$ac_check_lib_save_LIBS
15775 + fi
15776 + { echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
15777 + echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6; }
15778 + if test $ac_cv_lib_CGAL_main = yes; then
15779 +  cgal_have_lib=yes
15780 + else
15781 +  cgal_have_lib=no
15782 + fi
15783 +
15784 +                if test "$cgal_have_lib" == no; then
15785 +                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
15786 +                        { echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
15787 + echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6; }
15788 + if test "${ac_cv_lib_CGAL_main+set}" = set; then
15789 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15790 + else
15791 +  ac_check_lib_save_LIBS=$LIBS
15792 + LIBS="-lCGAL  $LIBS"
15793 + cat >conftest.$ac_ext <<_ACEOF
15794 + /* confdefs.h.  */
15795 + _ACEOF
15796 + cat confdefs.h >>conftest.$ac_ext
15797 + cat >>conftest.$ac_ext <<_ACEOF
15798 + /* end confdefs.h.  */
15799 +
15800 +
15801 + #ifdef FC_DUMMY_MAIN
15802 + #ifndef FC_DUMMY_MAIN_EQ_F77
15803 + #  ifdef __cplusplus
15804 +     extern "C"
15805 + #  endif
15806 +   int FC_DUMMY_MAIN() { return 1; }
15807 + #endif
15808 + #endif
15809 + int
15810 + main ()
15811 + {
15812 + return main ();
15813 +  ;
15814 +  return 0;
15815 + }
15816 + _ACEOF
15817 + rm -f conftest.$ac_objext conftest$ac_exeext
15818 + if { (ac_try="$ac_link"
15819 + case "(($ac_try" in
15820 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 +  *) ac_try_echo=$ac_try;;
15822 + esac
15823 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 +  (eval "$ac_link") 2>conftest.er1
15825 +  ac_status=$?
15826 +  grep -v '^ *+' conftest.er1 >conftest.err
15827 +  rm -f conftest.er1
15828 +  cat conftest.err >&5
15829 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 +  (exit $ac_status); } && {
15831 +         test -z "$ac_c_werror_flag" ||
15832 +         test ! -s conftest.err
15833 +       } && test -s conftest$ac_exeext &&
15834 +       $as_test_x conftest$ac_exeext; then
15835 +  ac_cv_lib_CGAL_main=yes
15836 + else
15837 +  echo "$as_me: failed program was:" >&5
15838 + sed 's/^/| /' conftest.$ac_ext >&5
15839 +
15840 +        ac_cv_lib_CGAL_main=no
15841 + fi
15842 +
15843 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15844 +      conftest$ac_exeext conftest.$ac_ext
15845 + LIBS=$ac_check_lib_save_LIBS
15846 + fi
15847 + { echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
15848 + echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6; }
15849 + if test $ac_cv_lib_CGAL_main = yes; then
15850 +  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
15851 +                                                  cgal_have_lib=yes
15852 + else
15853 +  cgal_have_lib=no
15854 + fi
15855 +
15856 +                        LIBS="$save_LIBS"
15857 +                else
15858 +                        CGAL_LIBS="-lCGAL"
15859 +                        { echo "$as_me:$LINENO: checking for main in -lmpfr" >&5
15860 + echo $ECHO_N "checking for main in -lmpfr... $ECHO_C" >&6; }
15861 + if test "${ac_cv_lib_mpfr_main+set}" = set; then
15862 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15863 + else
15864 +  ac_check_lib_save_LIBS=$LIBS
15865 + LIBS="-lmpfr  $LIBS"
15866 + cat >conftest.$ac_ext <<_ACEOF
15867 + /* confdefs.h.  */
15868 + _ACEOF
15869 + cat confdefs.h >>conftest.$ac_ext
15870 + cat >>conftest.$ac_ext <<_ACEOF
15871 + /* end confdefs.h.  */
15872 +
15873 +
15874 + #ifdef FC_DUMMY_MAIN
15875 + #ifndef FC_DUMMY_MAIN_EQ_F77
15876 + #  ifdef __cplusplus
15877 +     extern "C"
15878 + #  endif
15879 +   int FC_DUMMY_MAIN() { return 1; }
15880 + #endif
15881 + #endif
15882 + int
15883 + main ()
15884 + {
15885 + return main ();
15886 +  ;
15887 +  return 0;
15888 + }
15889 + _ACEOF
15890 + rm -f conftest.$ac_objext conftest$ac_exeext
15891 + if { (ac_try="$ac_link"
15892 + case "(($ac_try" in
15893 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 +  *) ac_try_echo=$ac_try;;
15895 + esac
15896 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 +  (eval "$ac_link") 2>conftest.er1
15898 +  ac_status=$?
15899 +  grep -v '^ *+' conftest.er1 >conftest.err
15900 +  rm -f conftest.er1
15901 +  cat conftest.err >&5
15902 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 +  (exit $ac_status); } && {
15904 +         test -z "$ac_c_werror_flag" ||
15905 +         test ! -s conftest.err
15906 +       } && test -s conftest$ac_exeext &&
15907 +       $as_test_x conftest$ac_exeext; then
15908 +  ac_cv_lib_mpfr_main=yes
15909 + else
15910 +  echo "$as_me: failed program was:" >&5
15911 + sed 's/^/| /' conftest.$ac_ext >&5
15912 +
15913 +        ac_cv_lib_mpfr_main=no
15914 + fi
15915 +
15916 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15917 +      conftest$ac_exeext conftest.$ac_ext
15918 + LIBS=$ac_check_lib_save_LIBS
15919 + fi
15920 + { echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5
15921 + echo "${ECHO_T}$ac_cv_lib_mpfr_main" >&6; }
15922 + if test $ac_cv_lib_mpfr_main = yes; then
15923 +  CGAL_LIBS="$CGAL_LIBS -lmpfr"
15924 + fi
15925 +
15926 +                        { echo "$as_me:$LINENO: checking for main in -lgmp" >&5
15927 + echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6; }
15928 + if test "${ac_cv_lib_gmp_main+set}" = set; then
15929 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15930 + else
15931 +  ac_check_lib_save_LIBS=$LIBS
15932 + LIBS="-lgmp  $LIBS"
15933 + cat >conftest.$ac_ext <<_ACEOF
15934 + /* confdefs.h.  */
15935 + _ACEOF
15936 + cat confdefs.h >>conftest.$ac_ext
15937 + cat >>conftest.$ac_ext <<_ACEOF
15938 + /* end confdefs.h.  */
15939 +
15940 +
15941 + #ifdef FC_DUMMY_MAIN
15942 + #ifndef FC_DUMMY_MAIN_EQ_F77
15943 + #  ifdef __cplusplus
15944 +     extern "C"
15945 + #  endif
15946 +   int FC_DUMMY_MAIN() { return 1; }
15947 + #endif
15948 + #endif
15949 + int
15950 + main ()
15951 + {
15952 + return main ();
15953 +  ;
15954 +  return 0;
15955 + }
15956 + _ACEOF
15957 + rm -f conftest.$ac_objext conftest$ac_exeext
15958 + if { (ac_try="$ac_link"
15959 + case "(($ac_try" in
15960 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 +  *) ac_try_echo=$ac_try;;
15962 + esac
15963 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 +  (eval "$ac_link") 2>conftest.er1
15965 +  ac_status=$?
15966 +  grep -v '^ *+' conftest.er1 >conftest.err
15967 +  rm -f conftest.er1
15968 +  cat conftest.err >&5
15969 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 +  (exit $ac_status); } && {
15971 +         test -z "$ac_c_werror_flag" ||
15972 +         test ! -s conftest.err
15973 +       } && test -s conftest$ac_exeext &&
15974 +       $as_test_x conftest$ac_exeext; then
15975 +  ac_cv_lib_gmp_main=yes
15976 + else
15977 +  echo "$as_me: failed program was:" >&5
15978 + sed 's/^/| /' conftest.$ac_ext >&5
15979 +
15980 +        ac_cv_lib_gmp_main=no
15981 + fi
15982 +
15983 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15984 +      conftest$ac_exeext conftest.$ac_ext
15985 + LIBS=$ac_check_lib_save_LIBS
15986 + fi
15987 + { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
15988 + echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6; }
15989 + if test $ac_cv_lib_gmp_main = yes; then
15990 +  CGAL_LIBS="$CGAL_LIBS -lgmp"
15991 + fi
15992 +
15993 +                        { echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5
15994 + echo $ECHO_N "checking for main in -lgmpxx... $ECHO_C" >&6; }
15995 + if test "${ac_cv_lib_gmpxx_main+set}" = set; then
15996 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15997 + else
15998 +  ac_check_lib_save_LIBS=$LIBS
15999 + LIBS="-lgmpxx  $LIBS"
16000 + cat >conftest.$ac_ext <<_ACEOF
16001 + /* confdefs.h.  */
16002 + _ACEOF
16003 + cat confdefs.h >>conftest.$ac_ext
16004 + cat >>conftest.$ac_ext <<_ACEOF
16005 + /* end confdefs.h.  */
16006 +
16007 +
16008 + #ifdef FC_DUMMY_MAIN
16009 + #ifndef FC_DUMMY_MAIN_EQ_F77
16010 + #  ifdef __cplusplus
16011 +     extern "C"
16012 + #  endif
16013 +   int FC_DUMMY_MAIN() { return 1; }
16014 + #endif
16015 + #endif
16016 + int
16017 + main ()
16018 + {
16019 + return main ();
16020 +  ;
16021 +  return 0;
16022 + }
16023 + _ACEOF
16024 + rm -f conftest.$ac_objext conftest$ac_exeext
16025 + if { (ac_try="$ac_link"
16026 + case "(($ac_try" in
16027 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 +  *) ac_try_echo=$ac_try;;
16029 + esac
16030 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 +  (eval "$ac_link") 2>conftest.er1
16032 +  ac_status=$?
16033 +  grep -v '^ *+' conftest.er1 >conftest.err
16034 +  rm -f conftest.er1
16035 +  cat conftest.err >&5
16036 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 +  (exit $ac_status); } && {
16038 +         test -z "$ac_c_werror_flag" ||
16039 +         test ! -s conftest.err
16040 +       } && test -s conftest$ac_exeext &&
16041 +       $as_test_x conftest$ac_exeext; then
16042 +  ac_cv_lib_gmpxx_main=yes
16043 + else
16044 +  echo "$as_me: failed program was:" >&5
16045 + sed 's/^/| /' conftest.$ac_ext >&5
16046 +
16047 +        ac_cv_lib_gmpxx_main=no
16048 + fi
16049 +
16050 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16051 +      conftest$ac_exeext conftest.$ac_ext
16052 + LIBS=$ac_check_lib_save_LIBS
16053 + fi
16054 + { echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5
16055 + echo "${ECHO_T}$ac_cv_lib_gmpxx_main" >&6; }
16056 + if test $ac_cv_lib_gmpxx_main = yes; then
16057 +  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
16058 + fi
16059 +
16060 +                fi
16061 +
16062 +                if test "$cgal_have_lib" == yes; then
16063 +                        acx_cgal_found=yes
16064 +                fi
16065 +        fi
16066 +        if test "$acx_cgal_found" == yes; then
16067 +                { echo "$as_me:$LINENO: checking for main in -lCore" >&5
16068 + echo $ECHO_N "checking for main in -lCore... $ECHO_C" >&6; }
16069 + if test "${ac_cv_lib_Core_main+set}" = set; then
16070 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16071 + else
16072 +  ac_check_lib_save_LIBS=$LIBS
16073 + LIBS="-lCore  $LIBS"
16074 + cat >conftest.$ac_ext <<_ACEOF
16075 + /* confdefs.h.  */
16076 + _ACEOF
16077 + cat confdefs.h >>conftest.$ac_ext
16078 + cat >>conftest.$ac_ext <<_ACEOF
16079 + /* end confdefs.h.  */
16080 +
16081 +
16082 + #ifdef FC_DUMMY_MAIN
16083 + #ifndef FC_DUMMY_MAIN_EQ_F77
16084 + #  ifdef __cplusplus
16085 +     extern "C"
16086 + #  endif
16087 +   int FC_DUMMY_MAIN() { return 1; }
16088 + #endif
16089 + #endif
16090 + int
16091 + main ()
16092 + {
16093 + return main ();
16094 +  ;
16095 +  return 0;
16096 + }
16097 + _ACEOF
16098 + rm -f conftest.$ac_objext conftest$ac_exeext
16099 + if { (ac_try="$ac_link"
16100 + case "(($ac_try" in
16101 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 +  *) ac_try_echo=$ac_try;;
16103 + esac
16104 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 +  (eval "$ac_link") 2>conftest.er1
16106 +  ac_status=$?
16107 +  grep -v '^ *+' conftest.er1 >conftest.err
16108 +  rm -f conftest.er1
16109 +  cat conftest.err >&5
16110 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 +  (exit $ac_status); } && {
16112 +         test -z "$ac_c_werror_flag" ||
16113 +         test ! -s conftest.err
16114 +       } && test -s conftest$ac_exeext &&
16115 +       $as_test_x conftest$ac_exeext; then
16116 +  ac_cv_lib_Core_main=yes
16117 + else
16118 +  echo "$as_me: failed program was:" >&5
16119 + sed 's/^/| /' conftest.$ac_ext >&5
16120 +
16121 +        ac_cv_lib_Core_main=no
16122 + fi
16123 +
16124 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16125 +      conftest$ac_exeext conftest.$ac_ext
16126 + LIBS=$ac_check_lib_save_LIBS
16127 + fi
16128 + { echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5
16129 + echo "${ECHO_T}$ac_cv_lib_Core_main" >&6; }
16130 + if test $ac_cv_lib_Core_main = yes; then
16131 +  CGAL_LIBS="$CGAL_LIBS -lCore"
16132 + fi
16133 +
16134 +        fi
16135 + fi
16136 +
16137 +
16138 +
16139 + { echo "$as_me:$LINENO: checking CGAL" >&5
16140 + echo $ECHO_N "checking CGAL... $ECHO_C" >&6; }
16141 +
16142 +
16143 +
16144 +
16145 +
16146 + if test "$acx_cgal_found" == yes; then
16147 +        { echo "$as_me:$LINENO: result: yes" >&5
16148 + echo "${ECHO_T}yes" >&6; }
16149 +
16150 + else
16151 +        { echo "$as_me:$LINENO: result: no" >&5
16152 + echo "${ECHO_T}no" >&6; }
16153 +
16154 + fi
16155 + USE_CGAL=no
16156 + if test "$acx_cgal_found" == yes; then
16157 +        USE_CGAL=yes
16158 +
16159 + cat >>confdefs.h <<\_ACEOF
16160 + #define HAVE_CGAL 1
16161 + _ACEOF
16162 +
16163 +
16164 +
16165 +
16166 +
16167 + fi
16168 +
16169 +
16170 +
16171 +
16172   # Check whether --enable-doxygen was given.
16173   if test "${enable_doxygen+set}" = set; then
16174    enableval=$enable_doxygen;
# Line 14596 | Line 16324 | fi
16324  
16325  
16326  
16327 < ac_config_files="$ac_config_files make/Makefile src/utils/Makefile scripts/filepp"
16327 > ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/atom2md/Makefile scripts/filepp"
16328  
16329  
16330   cat >confcache <<\_ACEOF
# Line 14995 | Line 16723 | ac_log="
16723   # report actual input values of CONFIG_FILES etc. instead of their
16724   # values after options handling.
16725   ac_log="
16726 < This file was extended by OOPSE $as_me 3.0, which was
16726 > This file was extended by OOPSE $as_me 4.0, which was
16727   generated by GNU Autoconf 2.61.  Invocation command line was
16728  
16729    CONFIG_FILES    = $CONFIG_FILES
# Line 15048 | Line 16776 | ac_cs_version="\\
16776   _ACEOF
16777   cat >>$CONFIG_STATUS <<_ACEOF
16778   ac_cs_version="\\
16779 < OOPSE config.status 3.0
16779 > OOPSE config.status 4.0
16780   configured by $0, generated by GNU Autoconf 2.61,
16781    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16782  
# Line 15160 | Line 16888 | do
16888      "src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
16889      "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
16890      "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16891 +    "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
16892 +    "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
16893      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
16894  
16895    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
# Line 15290 | Line 17020 | RANLIB!$RANLIB$ac_delim
17020   LN_S!$LN_S$ac_delim
17021   SET_MAKE!$SET_MAKE$ac_delim
17022   RANLIB!$RANLIB$ac_delim
17023 + YACC!$YACC$ac_delim
17024 + YFLAGS!$YFLAGS$ac_delim
17025 + LEX!$LEX$ac_delim
17026 + LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
17027 + LEXLIB!$LEXLIB$ac_delim
17028   PERLINTERP!$PERLINTERP$ac_delim
17029   PERL_SHEBANG!$PERL_SHEBANG$ac_delim
17030   INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
# Line 15314 | Line 17049 | FFTW_LIBS!$FFTW_LIBS$ac_delim
17049   FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
17050   FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
17051   FFTW_LIBS!$FFTW_LIBS$ac_delim
17052 < LIBOBJS!$LIBOBJS$ac_delim
15318 < POW_LIB!$POW_LIB$ac_delim
15319 < CXXCPP!$CXXCPP$ac_delim
15320 < __func__!$__func__$ac_delim
15321 < MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim
15322 < MPI_INC_DIR!$MPI_INC_DIR$ac_delim
17052 > QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim
17053   _ACEOF
17054  
17055    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
# Line 15361 | Line 17091 | for ac_last_try in false false false false false :; do
17091   ac_delim='%!_!# '
17092   for ac_last_try in false false false false false :; do
17093    cat >conf$$subs.sed <<_ACEOF
17094 + QHULL_LIB_DIR!$QHULL_LIB_DIR$ac_delim
17095 + QHULL!$QHULL$ac_delim
17096 + USE_QHULL!$USE_QHULL$ac_delim
17097 + CXXCPP!$CXXCPP$ac_delim
17098 + OPENBABEL_INC_DIR!$OPENBABEL_INC_DIR$ac_delim
17099 + OPENBABEL_LIB_DIR!$OPENBABEL_LIB_DIR$ac_delim
17100 + OPENBABEL_LIB!$OPENBABEL_LIB$ac_delim
17101 + USE_OPENBABEL!$USE_OPENBABEL$ac_delim
17102 + LIBOBJS!$LIBOBJS$ac_delim
17103 + POW_LIB!$POW_LIB$ac_delim
17104 + __func__!$__func__$ac_delim
17105 + MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim
17106 + MPI_INC_DIR!$MPI_INC_DIR$ac_delim
17107   MPI_F90_INC!$MPI_F90_INC$ac_delim
17108   MPI_LIB!$MPI_LIB$ac_delim
17109   MPI_F90_LIB!$MPI_F90_LIB$ac_delim
17110   USE_MPI!$USE_MPI$ac_delim
17111 + CGAL_MAKEFILE!$CGAL_MAKEFILE$ac_delim
17112 + CGAL_CXXFLAGS!$CGAL_CXXFLAGS$ac_delim
17113 + CGAL_CPPFLAGS!$CGAL_CPPFLAGS$ac_delim
17114 + CGAL_LDFLAGS!$CGAL_LDFLAGS$ac_delim
17115 + CGAL_LIBS!$CGAL_LIBS$ac_delim
17116 + USE_CGAL!$USE_CGAL$ac_delim
17117   DOXYGEN!$DOXYGEN$ac_delim
17118   DOT!$DOT$ac_delim
17119   DOC!$DOC$ac_delim
# Line 15379 | Line 17128 | _ACEOF
17128   LTLIBOBJS!$LTLIBOBJS$ac_delim
17129   _ACEOF
17130  
17131 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
17131 >  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
17132      break
17133    elif $ac_last_try; then
17134      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
# Line 15808 | Line 17557 | echo "$as_me: error: cannot link or copy $srcdir/$ac_s
17557    case $ac_file$ac_mode in
17558      "make/Makefile":F) chmod 0755 scripts/* ;;
17559      "src/utils/Makefile":F) chmod 0755 scripts/* ;;
17560 +    "src/math/Makefile":F) chmod 0755 scripts/* ;;
17561 +    "src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;;
17562      "scripts/filepp":F) chmod 0755 scripts/* ;;
17563  
17564    esac

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines