ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/configure
(Generate patch)

Comparing hopm/trunk/configure (file contents):
Revision 5070 by michael, Mon Dec 22 15:00:01 2014 UTC vs.
Revision 5110 by michael, Wed Dec 24 13:37:32 2014 UTC

# Line 12467 | Line 12467 | fi
12467   done
12468  
12469  
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12471 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12472 if ${ac_cv_c_const+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474 else
12475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h.  */
12477
12478 int
12479 main ()
12480 {
12481
12482 #ifndef __cplusplus
12483  /* Ultrix mips cc rejects this sort of thing.  */
12484  typedef int charset[2];
12485  const charset cs = { 0, 0 };
12486  /* SunOS 4.1.1 cc rejects this.  */
12487  char const *const *pcpcc;
12488  char **ppc;
12489  /* NEC SVR4.0.2 mips cc rejects this.  */
12490  struct point {int x, y;};
12491  static struct point const zero = {0,0};
12492  /* AIX XL C 1.02.0.0 rejects this.
12493     It does not let you subtract one const X* pointer from another in
12494     an arm of an if-expression whose if-part is not a constant
12495     expression */
12496  const char *g = "string";
12497  pcpcc = &g + (g ? g-g : 0);
12498  /* HPUX 7.0 cc rejects these. */
12499  ++pcpcc;
12500  ppc = (char**) pcpcc;
12501  pcpcc = (char const *const *) ppc;
12502  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12503    char tx;
12504    char *t = &tx;
12505    char const *s = 0 ? (char *) 0 : (char const *) 0;
12506
12507    *t++ = 0;
12508    if (s) return 0;
12509  }
12510  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12511    int x[] = {25, 17};
12512    const int *foo = &x[0];
12513    ++foo;
12514  }
12515  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12516    typedef const int *iptr;
12517    iptr p = 0;
12518    ++p;
12519  }
12520  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12521       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12522    struct s { int j; const int *ap[3]; } bx;
12523    struct s *b = &bx; b->j = 5;
12524  }
12525  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12526    const int foo = 10;
12527    if (!foo) return 0;
12528  }
12529  return !cs[0] && !zero.x;
12530 #endif
12531
12532  ;
12533  return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_compile "$LINENO"; then :
12537  ac_cv_c_const=yes
12538 else
12539  ac_cv_c_const=no
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12544 $as_echo "$ac_cv_c_const" >&6; }
12545 if test $ac_cv_c_const = no; then
12546
12547 $as_echo "#define const /**/" >>confdefs.h
12548
12549 fi
12550
12470   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12471   if test "x$ac_cv_type_size_t" = xyes; then :
12472  
# Line 13123 | Line 13042 | fi
13042   done
13043  
13044  
13045 < for ac_func in gethostbyname gethostbyname2
13045 > for ac_func in gethostbyname
13046   do :
13047 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13048 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13130 < if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13047 >  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13048 > if test "x$ac_cv_func_gethostbyname" = xyes; then :
13049    cat >>confdefs.h <<_ACEOF
13050 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 > #define HAVE_GETHOSTBYNAME 1
13051   _ACEOF
13052  
13053   fi
# Line 15838 | Line 15756 | fi
15756  
15757  
15758  
15759 < echo "##############################################################################"
15760 < echo "Everything is now configured, but you can find some more (infrequently"
15843 < echo "changed) options in options.h.  To compile HOPM now, just type make.  It"
15844 < echo "requires GNU Make, which may be installed as gmake on your system."
15759 > echo "###############################################################################"
15760 > echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
15761   echo
15762 < echo "hopm will be installed in ${prefix}.  To change this, run:"
15762 > echo "HOPM will be installed in ${prefix}.  To change this, run:"
15763   echo "   ./configure --prefix=DIRECTORY"
15764 < echo "##############################################################################"
15764 > echo "###############################################################################"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)