Annotation of embedaddon/php/configure, revision 1.1.1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 ! misho 3: # Generated by GNU Autoconf 2.61.
1.1 misho 4: #
1.1.1.3 ! misho 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 misho 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.1.1.3 ! misho 9: ## --------------------- ##
! 10: ## M4sh Initialization. ##
! 11: ## --------------------- ##
1.1 misho 12:
13: # Be more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.3 ! misho 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.1 misho 16: emulate sh
17: NULLCMD=:
1.1.1.3 ! misho 18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.1 misho 19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
21: setopt NO_GLOB_SUBST
22: else
1.1.1.3 ! misho 23: case `(set -o) 2>/dev/null` in
! 24: *posix*) set -o posix ;;
1.1 misho 25: esac
1.1.1.3 ! misho 26:
1.1 misho 27: fi
28:
29:
1.1.1.3 ! misho 30:
! 31:
! 32: # PATH needs CR
! 33: # Avoid depending upon Character Ranges.
! 34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 37: as_cr_digits='0123456789'
! 38: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 misho 39:
40: # The user is always right.
41: if test "${PATH_SEPARATOR+set}" != set; then
1.1.1.3 ! misho 42: echo "#! /bin/sh" >conf$$.sh
! 43: echo "exit 0" >>conf$$.sh
! 44: chmod +x conf$$.sh
! 45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 46: PATH_SEPARATOR=';'
! 47: else
! 48: PATH_SEPARATOR=:
! 49: fi
! 50: rm -f conf$$.sh
! 51: fi
! 52:
! 53: # Support unset when possible.
! 54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 55: as_unset=unset
! 56: else
! 57: as_unset=false
1.1 misho 58: fi
59:
60:
61: # IFS
62: # We need space, tab and new line, in precisely that order. Quoting is
63: # there to prevent editors from complaining about space-tab.
64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65: # splitting by setting IFS to empty value.)
1.1.1.3 ! misho 66: as_nl='
! 67: '
1.1 misho 68: IFS=" "" $as_nl"
69:
70: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.3 ! misho 71: case $0 in
1.1 misho 72: *[\\/]* ) as_myself=$0 ;;
73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74: for as_dir in $PATH
75: do
76: IFS=$as_save_IFS
77: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 79: done
1.1 misho 80: IFS=$as_save_IFS
81:
82: ;;
83: esac
84: # We did not find ourselves, most probably we were run as `sh COMMAND'
85: # in which case we are not to be found in the path.
86: if test "x$as_myself" = x; then
87: as_myself=$0
88: fi
89: if test ! -f "$as_myself"; then
1.1.1.3 ! misho 90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 91: { (exit 1); exit 1; }
1.1 misho 92: fi
93:
1.1.1.3 ! misho 94: # Work around bugs in pre-3.0 UWIN ksh.
! 95: for as_var in ENV MAIL MAILPATH
! 96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1 misho 97: done
98: PS1='$ '
99: PS2='> '
100: PS4='+ '
101:
102: # NLS nuisances.
1.1.1.3 ! misho 103: for as_var in \
! 104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 106: LC_TELEPHONE LC_TIME
! 107: do
! 108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 109: eval $as_var=C; export $as_var
! 110: else
! 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 112: fi
! 113: done
! 114:
! 115: # Required to use basename.
! 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 118: as_expr=expr
! 119: else
! 120: as_expr=false
! 121: fi
! 122:
! 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 124: as_basename=basename
! 125: else
! 126: as_basename=false
! 127: fi
! 128:
! 129:
! 130: # Name of the executable.
! 131: as_me=`$as_basename -- "$0" ||
! 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 133: X"$0" : 'X\(//\)$' \| \
! 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 135: echo X/"$0" |
! 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 137: s//\1/
! 138: q
! 139: }
! 140: /^X\/\(\/\/\)$/{
! 141: s//\1/
! 142: q
! 143: }
! 144: /^X\/\(\/\).*/{
! 145: s//\1/
! 146: q
! 147: }
! 148: s/.*/./; q'`
1.1 misho 149:
150: # CDPATH.
1.1.1.3 ! misho 151: $as_unset CDPATH
! 152:
1.1 misho 153:
154: if test "x$CONFIG_SHELL" = x; then
1.1.1.3 ! misho 155: if (eval ":") 2>/dev/null; then
! 156: as_have_required=yes
1.1 misho 157: else
1.1.1.3 ! misho 158: as_have_required=no
1.1 misho 159: fi
1.1.1.3 ! misho 160:
! 161: if test $as_have_required = yes && (eval ":
! 162: (as_func_return () {
! 163: (exit \$1)
! 164: }
! 165: as_func_success () {
! 166: as_func_return 0
! 167: }
! 168: as_func_failure () {
! 169: as_func_return 1
! 170: }
! 171: as_func_ret_success () {
! 172: return 0
! 173: }
! 174: as_func_ret_failure () {
! 175: return 1
! 176: }
1.1 misho 177:
178: exitcode=0
1.1.1.3 ! misho 179: if as_func_success; then
! 180: :
1.1 misho 181: else
1.1.1.3 ! misho 182: exitcode=1
! 183: echo as_func_success failed.
! 184: fi
! 185:
! 186: if as_func_failure; then
! 187: exitcode=1
! 188: echo as_func_failure succeeded.
1.1 misho 189: fi
190:
1.1.1.3 ! misho 191: if as_func_ret_success; then
! 192: :
1.1 misho 193: else
1.1.1.3 ! misho 194: exitcode=1
! 195: echo as_func_ret_success failed.
! 196: fi
! 197:
! 198: if as_func_ret_failure; then
! 199: exitcode=1
! 200: echo as_func_ret_failure succeeded.
! 201: fi
! 202:
! 203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 204: :
! 205: else
! 206: exitcode=1
! 207: echo positional parameters were not saved.
! 208: fi
! 209:
! 210: test \$exitcode = 0) || { (exit 1); exit 1; }
! 211:
! 212: (
! 213: as_lineno_1=\$LINENO
! 214: as_lineno_2=\$LINENO
! 215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
! 216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
! 217: ") 2> /dev/null; then
! 218: :
! 219: else
! 220: as_candidate_shells=
! 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 226: case $as_dir in
1.1 misho 227: /*)
228: for as_base in sh bash ksh sh5; do
1.1.1.3 ! misho 229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
1.1 misho 230: done;;
231: esac
232: done
233: IFS=$as_save_IFS
234:
235:
1.1.1.3 ! misho 236: for as_shell in $as_candidate_shells $SHELL; do
! 237: # Try only shells that exist, to save several forks.
! 238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 239: { ("$as_shell") 2> /dev/null <<\_ASEOF
! 240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 241: emulate sh
! 242: NULLCMD=:
! 243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 244: # is contrary to our usage. Disable this feature.
! 245: alias -g '${1+"$@"}'='"$@"'
! 246: setopt NO_GLOB_SUBST
! 247: else
! 248: case `(set -o) 2>/dev/null` in
! 249: *posix*) set -o posix ;;
! 250: esac
! 251:
1.1 misho 252: fi
1.1.1.3 ! misho 253:
! 254:
! 255: :
! 256: _ASEOF
! 257: }; then
! 258: CONFIG_SHELL=$as_shell
! 259: as_have_required=yes
! 260: if { "$as_shell" 2> /dev/null <<\_ASEOF
! 261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 262: emulate sh
! 263: NULLCMD=:
! 264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 265: # is contrary to our usage. Disable this feature.
! 266: alias -g '${1+"$@"}'='"$@"'
! 267: setopt NO_GLOB_SUBST
! 268: else
! 269: case `(set -o) 2>/dev/null` in
! 270: *posix*) set -o posix ;;
! 271: esac
! 272:
1.1 misho 273: fi
274:
275:
1.1.1.3 ! misho 276: :
! 277: (as_func_return () {
! 278: (exit $1)
! 279: }
! 280: as_func_success () {
! 281: as_func_return 0
! 282: }
! 283: as_func_failure () {
! 284: as_func_return 1
! 285: }
! 286: as_func_ret_success () {
! 287: return 0
! 288: }
! 289: as_func_ret_failure () {
! 290: return 1
! 291: }
1.1 misho 292:
1.1.1.3 ! misho 293: exitcode=0
! 294: if as_func_success; then
! 295: :
! 296: else
! 297: exitcode=1
! 298: echo as_func_success failed.
! 299: fi
1.1 misho 300:
1.1.1.3 ! misho 301: if as_func_failure; then
! 302: exitcode=1
! 303: echo as_func_failure succeeded.
! 304: fi
1.1.1.2 misho 305:
1.1.1.3 ! misho 306: if as_func_ret_success; then
! 307: :
1.1 misho 308: else
1.1.1.3 ! misho 309: exitcode=1
! 310: echo as_func_ret_success failed.
! 311: fi
1.1 misho 312:
1.1.1.3 ! misho 313: if as_func_ret_failure; then
! 314: exitcode=1
! 315: echo as_func_ret_failure succeeded.
! 316: fi
! 317:
! 318: if ( set x; as_func_ret_success y && test x = "$1" ); then
! 319: :
1.1 misho 320: else
1.1.1.3 ! misho 321: exitcode=1
! 322: echo positional parameters were not saved.
! 323: fi
1.1 misho 324:
1.1.1.3 ! misho 325: test $exitcode = 0) || { (exit 1); exit 1; }
1.1 misho 326:
1.1.1.3 ! misho 327: (
! 328: as_lineno_1=$LINENO
! 329: as_lineno_2=$LINENO
! 330: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
1.1 misho 332:
1.1.1.3 ! misho 333: _ASEOF
! 334: }; then
! 335: break
! 336: fi
! 337:
! 338: fi
! 339:
! 340: done
! 341:
! 342: if test "x$CONFIG_SHELL" != x; then
! 343: for as_var in BASH_ENV ENV
! 344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 345: done
! 346: export CONFIG_SHELL
! 347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 348: fi
! 349:
! 350:
! 351: if test $as_have_required = no; then
! 352: echo This script requires a shell more modern than all the
! 353: echo shells that I found on your system. Please install a
! 354: echo modern shell, or manually run the script under such a
! 355: echo shell if you do have one.
! 356: { (exit 1); exit 1; }
! 357: fi
! 358:
! 359:
! 360: fi
! 361:
! 362: fi
! 363:
! 364:
! 365:
! 366: (eval "as_func_return () {
! 367: (exit \$1)
! 368: }
! 369: as_func_success () {
! 370: as_func_return 0
! 371: }
! 372: as_func_failure () {
! 373: as_func_return 1
! 374: }
! 375: as_func_ret_success () {
! 376: return 0
! 377: }
! 378: as_func_ret_failure () {
! 379: return 1
! 380: }
! 381:
! 382: exitcode=0
! 383: if as_func_success; then
! 384: :
1.1 misho 385: else
1.1.1.3 ! misho 386: exitcode=1
! 387: echo as_func_success failed.
1.1 misho 388: fi
389:
1.1.1.3 ! misho 390: if as_func_failure; then
! 391: exitcode=1
! 392: echo as_func_failure succeeded.
! 393: fi
! 394:
! 395: if as_func_ret_success; then
! 396: :
1.1 misho 397: else
1.1.1.3 ! misho 398: exitcode=1
! 399: echo as_func_ret_success failed.
1.1 misho 400: fi
401:
1.1.1.3 ! misho 402: if as_func_ret_failure; then
! 403: exitcode=1
! 404: echo as_func_ret_failure succeeded.
! 405: fi
! 406:
! 407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 408: :
1.1 misho 409: else
1.1.1.3 ! misho 410: exitcode=1
! 411: echo positional parameters were not saved.
1.1 misho 412: fi
413:
1.1.1.3 ! misho 414: test \$exitcode = 0") || {
! 415: echo No shell found that supports shell functions.
! 416: echo Please tell autoconf@gnu.org about your system,
! 417: echo including any error possibly output before this
! 418: echo message
! 419: }
1.1 misho 420:
421:
422:
1.1.1.3 ! misho 423: as_lineno_1=$LINENO
! 424: as_lineno_2=$LINENO
! 425: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
! 427:
! 428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 429: # uniformly replaced by the line number. The first 'sed' inserts a
! 430: # line-number line after each line using $LINENO; the second 'sed'
! 431: # does the real work. The second script uses 'N' to pair each
! 432: # line-number line with the line containing $LINENO, and appends
! 433: # trailing '-' during substitution so that $LINENO is not a special
! 434: # case at line end.
! 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 437: # E. McMahon (1931-1989) for sed's syntax. :-)
1.1 misho 438: sed -n '
439: p
440: /[$]LINENO/=
441: ' <$as_myself |
442: sed '
443: s/[$]LINENO.*/&-/
444: t lineno
445: b
446: :lineno
447: N
448: :loop
449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450: t loop
451: s/-\n.*//
452: ' >$as_me.lineno &&
453: chmod +x "$as_me.lineno" ||
1.1.1.3 ! misho 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
! 455: { (exit 1); exit 1; }; }
1.1 misho 456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
459: # original and so on. Autoconf is especially sensitive to this).
460: . "./$as_me.lineno"
461: # Exit status is that of the last command.
462: exit
463: }
464:
1.1.1.3 ! misho 465:
! 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 467: as_dirname=dirname
! 468: else
! 469: as_dirname=false
! 470: fi
! 471:
1.1 misho 472: ECHO_C= ECHO_N= ECHO_T=
1.1.1.3 ! misho 473: case `echo -n x` in
1.1 misho 474: -n*)
1.1.1.3 ! misho 475: case `echo 'x\c'` in
1.1 misho 476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.1.1.3 ! misho 477: *) ECHO_C='\c';;
1.1 misho 478: esac;;
479: *)
480: ECHO_N='-n';;
481: esac
482:
1.1.1.3 ! misho 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 485: as_expr=expr
! 486: else
! 487: as_expr=false
! 488: fi
! 489:
1.1 misho 490: rm -f conf$$ conf$$.exe conf$$.file
491: if test -d conf$$.dir; then
492: rm -f conf$$.dir/conf$$.file
493: else
494: rm -f conf$$.dir
1.1.1.3 ! misho 495: mkdir conf$$.dir
1.1 misho 496: fi
1.1.1.3 ! misho 497: echo >conf$$.file
! 498: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 499: as_ln_s='ln -s'
! 500: # ... but there are two gotchas:
! 501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 503: # In both cases, we have to default to `cp -p'.
! 504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 505: as_ln_s='cp -p'
! 506: elif ln conf$$.file conf$$ 2>/dev/null; then
! 507: as_ln_s=ln
1.1 misho 508: else
1.1.1.3 ! misho 509: as_ln_s='cp -p'
1.1 misho 510: fi
511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512: rmdir conf$$.dir 2>/dev/null
513:
514: if mkdir -p . 2>/dev/null; then
1.1.1.3 ! misho 515: as_mkdir_p=:
1.1 misho 516: else
517: test -d ./-p && rmdir ./-p
518: as_mkdir_p=false
519: fi
520:
1.1.1.3 ! misho 521: if test -x / >/dev/null 2>&1; then
! 522: as_test_x='test -x'
! 523: else
! 524: if ls -dL / >/dev/null 2>&1; then
! 525: as_ls_L_option=L
! 526: else
! 527: as_ls_L_option=
! 528: fi
! 529: as_test_x='
! 530: eval sh -c '\''
! 531: if test -d "$1"; then
! 532: test -d "$1/.";
! 533: else
! 534: case $1 in
! 535: -*)set "./$1";;
! 536: esac;
! 537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 538: ???[sx]*):;;*)false;;esac;fi
! 539: '\'' sh
! 540: '
! 541: fi
! 542: as_executable_p=$as_test_x
1.1 misho 543:
544: # Sed expression to map a string onto a valid CPP name.
545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546:
547: # Sed expression to map a string onto a valid variable name.
548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549:
550:
551:
1.1.1.3 ! misho 552:
1.1 misho 553: # Check that we are running under the correct shell.
554: SHELL=${CONFIG_SHELL-/bin/sh}
555:
556: case X$ECHO in
557: X*--fallback-echo)
558: # Remove one level of quotation (which was required for Make).
559: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560: ;;
561: esac
562:
563: echo=${ECHO-echo}
564: if test "X$1" = X--no-reexec; then
565: # Discard the --no-reexec flag, and continue.
566: shift
567: elif test "X$1" = X--fallback-echo; then
568: # Avoid inline document here, it may be left over
569: :
570: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571: # Yippee, $echo works!
572: :
573: else
574: # Restart under the correct shell.
575: exec $SHELL "$0" --no-reexec ${1+"$@"}
576: fi
577:
578: if test "X$1" = X--fallback-echo; then
579: # used as fallback echo
580: shift
581: cat <<EOF
582: $*
583: EOF
584: exit 0
585: fi
586:
587: # The HP-UX ksh and POSIX shell print the target directory to stdout
588: # if CDPATH is set.
589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590:
591: if test -z "$ECHO"; then
592: if test "X${echo_test_string+set}" != Xset; then
593: # find a string as large as possible, as long as the shell can cope with it
594: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596: if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597: echo_test_string=`eval $cmd` &&
598: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599: then
600: break
601: fi
602: done
603: fi
604:
605: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607: test "X$echo_testing_string" = "X$echo_test_string"; then
608: :
609: else
610: # The Solaris, AIX, and Digital Unix default echo programs unquote
611: # backslashes. This makes it impossible to quote backslashes using
612: # echo "$something" | sed 's/\\/\\\\/g'
613: #
614: # So, first we look for a working echo in the user's PATH.
615:
616: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617: for dir in $PATH /usr/ucb; do
618: IFS="$lt_save_ifs"
619: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622: test "X$echo_testing_string" = "X$echo_test_string"; then
623: echo="$dir/echo"
624: break
625: fi
626: done
627: IFS="$lt_save_ifs"
628:
629: if test "X$echo" = Xecho; then
630: # We didn't find a better echo, so look for alternatives.
631: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633: test "X$echo_testing_string" = "X$echo_test_string"; then
634: # This shell has a builtin print -r that does the trick.
635: echo='print -r'
636: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637: test "X$CONFIG_SHELL" != X/bin/ksh; then
638: # If we have ksh, try running configure again with it.
639: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640: export ORIGINAL_CONFIG_SHELL
641: CONFIG_SHELL=/bin/ksh
642: export CONFIG_SHELL
643: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644: else
645: # Try using printf.
646: echo='printf %s\n'
647: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649: test "X$echo_testing_string" = "X$echo_test_string"; then
650: # Cool, printf works
651: :
652: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653: test "X$echo_testing_string" = 'X\t' &&
654: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655: test "X$echo_testing_string" = "X$echo_test_string"; then
656: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657: export CONFIG_SHELL
658: SHELL="$CONFIG_SHELL"
659: export SHELL
660: echo="$CONFIG_SHELL $0 --fallback-echo"
661: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662: test "X$echo_testing_string" = 'X\t' &&
663: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664: test "X$echo_testing_string" = "X$echo_test_string"; then
665: echo="$CONFIG_SHELL $0 --fallback-echo"
666: else
667: # maybe with a smaller string...
668: prev=:
669:
670: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672: then
673: break
674: fi
675: prev="$cmd"
676: done
677:
678: if test "$prev" != 'sed 50q "$0"'; then
679: echo_test_string=`eval $prev`
680: export echo_test_string
681: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682: else
683: # Oops. We lost completely, so just stick with echo.
684: echo=echo
685: fi
686: fi
687: fi
688: fi
689: fi
690: fi
691:
692: # Copy echo and quote the copy suitably for passing to libtool from
693: # the Makefile, instead of quoting the original, which is used later.
694: ECHO=$echo
695: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697: fi
698:
699:
700:
701:
702: tagnames=${tagnames+${tagnames},}CXX
703:
1.1.1.3 ! misho 704: exec 7<&0 </dev/null 6>&1
1.1 misho 705:
706: # Name of the host.
1.1.1.3 ! misho 707: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
1.1 misho 708: # so uname gets run too.
709: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
710:
711: #
712: # Initializations.
713: #
714: ac_default_prefix=/usr/local
715: ac_clean_files=
716: ac_config_libobj_dir=.
717: LIBOBJS=
718: cross_compiling=no
719: subdirs=
720: MFLAGS=
721: MAKEFLAGS=
1.1.1.3 ! misho 722: SHELL=${CONFIG_SHELL-/bin/sh}
1.1 misho 723:
724: # Identity of this package.
725: PACKAGE_NAME=
726: PACKAGE_TARNAME=
727: PACKAGE_VERSION=
728: PACKAGE_STRING=
729: PACKAGE_BUGREPORT=
730:
1.1.1.3 ! misho 731: ac_unique_file="README.GIT-RULES"
1.1 misho 732: # Factoring default headers for most tests.
733: ac_includes_default="\
734: #include <stdio.h>
735: #ifdef HAVE_SYS_TYPES_H
736: # include <sys/types.h>
737: #endif
738: #ifdef HAVE_SYS_STAT_H
739: # include <sys/stat.h>
740: #endif
741: #ifdef STDC_HEADERS
742: # include <stdlib.h>
743: # include <stddef.h>
744: #else
745: # ifdef HAVE_STDLIB_H
746: # include <stdlib.h>
747: # endif
748: #endif
749: #ifdef HAVE_STRING_H
750: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
751: # include <memory.h>
752: # endif
753: # include <string.h>
754: #endif
755: #ifdef HAVE_STRINGS_H
756: # include <strings.h>
757: #endif
758: #ifdef HAVE_INTTYPES_H
759: # include <inttypes.h>
760: #endif
761: #ifdef HAVE_STDINT_H
762: # include <stdint.h>
763: #endif
764: #ifdef HAVE_UNISTD_H
765: # include <unistd.h>
766: #endif"
767:
768: ac_header_list=
1.1.1.3 ! misho 769: ac_subst_vars='SHELL
1.1 misho 770: PATH_SEPARATOR
1.1.1.3 ! misho 771: PACKAGE_NAME
! 772: PACKAGE_TARNAME
! 773: PACKAGE_VERSION
! 774: PACKAGE_STRING
! 775: PACKAGE_BUGREPORT
! 776: exec_prefix
! 777: prefix
! 778: program_transform_name
! 779: bindir
! 780: sbindir
! 781: libexecdir
! 782: datarootdir
! 783: datadir
! 784: sysconfdir
! 785: sharedstatedir
! 786: localstatedir
! 787: includedir
! 788: oldincludedir
! 789: docdir
! 790: infodir
! 791: htmldir
! 792: dvidir
! 793: pdfdir
! 794: psdir
! 795: libdir
! 796: localedir
! 797: mandir
! 798: DEFS
! 799: ECHO_C
! 800: ECHO_N
! 801: ECHO_T
! 802: LIBS
! 803: build_alias
1.1 misho 804: host_alias
805: target_alias
1.1.1.3 ! misho 806: GREP
! 807: EGREP
! 808: SED
! 809: CONFIGURE_COMMAND
! 810: CONFIGURE_OPTIONS
! 811: build
! 812: build_cpu
! 813: build_vendor
! 814: build_os
! 815: host
! 816: host_cpu
! 817: host_vendor
! 818: host_os
! 819: target
! 820: target_cpu
! 821: target_vendor
! 822: target_os
1.1 misho 823: CC
824: CFLAGS
825: LDFLAGS
826: CPPFLAGS
1.1.1.3 ! misho 827: ac_ct_CC
! 828: EXEEXT
! 829: OBJEXT
1.1 misho 830: CPP
1.1.1.3 ! misho 831: LN_S
! 832: AWK
1.1 misho 833: YACC
834: YFLAGS
1.1.1.3 ! misho 835: RE2C
! 836: SHLIB_SUFFIX_NAME
! 837: SHLIB_DL_SUFFIX_NAME
! 838: php_fpm_systemd
! 839: php_fpm_user
! 840: php_fpm_group
! 841: php_fpm_sysconfdir
! 842: php_fpm_localstatedir
! 843: php_fpm_prefix
! 844: PROG_SENDMAIL
! 845: LIBOBJS
! 846: ALLOCA
! 847: LTP
! 848: LTP_GENHTML
! 849: KRB5_CONFIG
! 850: PKG_CONFIG
! 851: OPENSSL_INCDIR_OPT
! 852: ICU_CONFIG
1.1 misho 853: CXX
854: CXXFLAGS
1.1.1.3 ! misho 855: ac_ct_CXX
! 856: CXXCPP
! 857: MYSQL_MODULE_TYPE
! 858: MYSQL_LIBS
! 859: MYSQL_INCLUDE
! 860: OCI8_SHARED_LIBADD
! 861: OCI8_DIR
! 862: OCI8_ORACLE_VERSION
! 863: ODBC_INCLUDE
! 864: ODBC_LIBS
! 865: ODBC_LFLAGS
! 866: ODBC_TYPE
! 867: PDO_MYSQL_MODULE_TYPE
! 868: PDO_OCI_SHARED_LIBADD
! 869: PDO_OCI_DIR
! 870: PDO_OCI_VERSION
! 871: SNMP_CONFIG
! 872: RANLIB
! 873: INLINE_CFLAGS
! 874: INCLUDE_PATH
! 875: EXPANDED_PEAR_INSTALLDIR
! 876: EXPANDED_EXTENSION_DIR
! 877: EXPANDED_BINDIR
! 878: EXPANDED_SBINDIR
! 879: EXPANDED_MANDIR
! 880: EXPANDED_LIBDIR
! 881: EXPANDED_DATADIR
! 882: EXPANDED_SYSCONFDIR
! 883: EXPANDED_LOCALSTATEDIR
! 884: EXPANDED_PHP_CONFIG_FILE_PATH
! 885: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR
! 886: PHP_INSTALLED_SAPIS
! 887: abs_builddir
! 888: abs_srcdir
! 889: php_abs_top_builddir
! 890: php_abs_top_srcdir
! 891: program_prefix
! 892: program_suffix
! 893: DEBUG_CFLAGS
! 894: EXTENSION_DIR
! 895: EXTRA_LDFLAGS
! 896: EXTRA_LDFLAGS_PROGRAM
! 897: EXTRA_LIBS
! 898: ZEND_EXTRA_LIBS
! 899: INCLUDES
! 900: EXTRA_INCLUDES
! 901: INSTALL_IT
! 902: NATIVE_RPATHS
! 903: PEAR_INSTALLDIR
! 904: PHP_LDFLAGS
! 905: PHP_LIBS
! 906: PHP_VERSION
! 907: PHP_VERSION_ID
! 908: ECHO
! 909: AR
! 910: STRIP
! 911: DSYMUTIL
! 912: NMEDIT
! 913: LIBTOOL
! 914: LTLIBOBJS'
! 915: ac_subst_files=''
! 916: ac_precious_vars='build_alias
! 917: host_alias
! 918: target_alias
! 919: CC
! 920: CFLAGS
! 921: LDFLAGS
! 922: LIBS
! 923: CPPFLAGS
! 924: CPP
! 925: YACC
! 926: YFLAGS
! 927: CXX
! 928: CXXFLAGS
! 929: CCC
! 930: CXXCPP'
! 931:
! 932:
! 933: # Initialize some variables set by options.
! 934: ac_init_help=
! 935: ac_init_version=false
! 936: # The variables have the same names as the options, with
! 937: # dashes changed to underlines.
! 938: cache_file=/dev/null
! 939: exec_prefix=NONE
! 940: no_create=
1.1 misho 941: no_recursion=
942: prefix=NONE
943: program_prefix=NONE
944: program_suffix=NONE
945: program_transform_name=s,x,x,
946: silent=
947: site=
948: srcdir=
949: verbose=
950: x_includes=NONE
951: x_libraries=NONE
952:
953: # Installation directory options.
954: # These are left unexpanded so users can "make install exec_prefix=/foo"
955: # and all the variables that are supposed to be based on exec_prefix
956: # by default will actually change.
957: # Use braces instead of parens because sh, perl, etc. also accept them.
958: # (The list follows the same order as the GNU Coding Standards.)
959: bindir='${exec_prefix}/bin'
960: sbindir='${exec_prefix}/sbin'
961: libexecdir='${exec_prefix}/libexec'
962: datarootdir='${prefix}/share'
963: datadir='${datarootdir}'
964: sysconfdir='${prefix}/etc'
965: sharedstatedir='${prefix}/com'
966: localstatedir='${prefix}/var'
967: includedir='${prefix}/include'
968: oldincludedir='/usr/include'
969: docdir='${datarootdir}/doc/${PACKAGE}'
970: infodir='${datarootdir}/info'
971: htmldir='${docdir}'
972: dvidir='${docdir}'
973: pdfdir='${docdir}'
974: psdir='${docdir}'
975: libdir='${exec_prefix}/lib'
976: localedir='${datarootdir}/locale'
977: mandir='${datarootdir}/man'
978:
979: ac_prev=
980: ac_dashdash=
981: for ac_option
982: do
983: # If the previous option needs an argument, assign it.
984: if test -n "$ac_prev"; then
985: eval $ac_prev=\$ac_option
986: ac_prev=
987: continue
988: fi
989:
990: case $ac_option in
1.1.1.3 ! misho 991: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 992: *) ac_optarg=yes ;;
1.1 misho 993: esac
994:
995: # Accept the important Cygnus configure options, so we can diagnose typos.
996:
997: case $ac_dashdash$ac_option in
998: --)
999: ac_dashdash=yes ;;
1000:
1001: -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002: ac_prev=bindir ;;
1003: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004: bindir=$ac_optarg ;;
1005:
1006: -build | --build | --buil | --bui | --bu)
1007: ac_prev=build_alias ;;
1008: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009: build_alias=$ac_optarg ;;
1010:
1011: -cache-file | --cache-file | --cache-fil | --cache-fi \
1012: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013: ac_prev=cache_file ;;
1014: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016: cache_file=$ac_optarg ;;
1017:
1018: --config-cache | -C)
1019: cache_file=config.cache ;;
1020:
1021: -datadir | --datadir | --datadi | --datad)
1022: ac_prev=datadir ;;
1023: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024: datadir=$ac_optarg ;;
1025:
1026: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027: | --dataroo | --dataro | --datar)
1028: ac_prev=datarootdir ;;
1029: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031: datarootdir=$ac_optarg ;;
1032:
1033: -disable-* | --disable-*)
1.1.1.3 ! misho 1034: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 misho 1035: # Reject names that are not valid shell variable names.
1.1.1.3 ! misho 1036: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 1037: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 1038: { (exit 1); exit 1; }; }
! 1039: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1040: eval enable_$ac_feature=no ;;
1.1 misho 1041:
1042: -docdir | --docdir | --docdi | --doc | --do)
1043: ac_prev=docdir ;;
1044: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045: docdir=$ac_optarg ;;
1046:
1047: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048: ac_prev=dvidir ;;
1049: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050: dvidir=$ac_optarg ;;
1051:
1052: -enable-* | --enable-*)
1.1.1.3 ! misho 1053: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 misho 1054: # Reject names that are not valid shell variable names.
1.1.1.3 ! misho 1055: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 1056: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 1057: { (exit 1); exit 1; }; }
! 1058: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1059: eval enable_$ac_feature=\$ac_optarg ;;
1.1 misho 1060:
1061: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063: | --exec | --exe | --ex)
1064: ac_prev=exec_prefix ;;
1065: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067: | --exec=* | --exe=* | --ex=*)
1068: exec_prefix=$ac_optarg ;;
1069:
1070: -gas | --gas | --ga | --g)
1071: # Obsolete; use --with-gas.
1072: with_gas=yes ;;
1073:
1074: -help | --help | --hel | --he | -h)
1075: ac_init_help=long ;;
1076: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077: ac_init_help=recursive ;;
1078: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079: ac_init_help=short ;;
1080:
1081: -host | --host | --hos | --ho)
1082: ac_prev=host_alias ;;
1083: -host=* | --host=* | --hos=* | --ho=*)
1084: host_alias=$ac_optarg ;;
1085:
1086: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087: ac_prev=htmldir ;;
1088: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089: | --ht=*)
1090: htmldir=$ac_optarg ;;
1091:
1092: -includedir | --includedir | --includedi | --included | --include \
1093: | --includ | --inclu | --incl | --inc)
1094: ac_prev=includedir ;;
1095: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096: | --includ=* | --inclu=* | --incl=* | --inc=*)
1097: includedir=$ac_optarg ;;
1098:
1099: -infodir | --infodir | --infodi | --infod | --info | --inf)
1100: ac_prev=infodir ;;
1101: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102: infodir=$ac_optarg ;;
1103:
1104: -libdir | --libdir | --libdi | --libd)
1105: ac_prev=libdir ;;
1106: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107: libdir=$ac_optarg ;;
1108:
1109: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110: | --libexe | --libex | --libe)
1111: ac_prev=libexecdir ;;
1112: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113: | --libexe=* | --libex=* | --libe=*)
1114: libexecdir=$ac_optarg ;;
1115:
1116: -localedir | --localedir | --localedi | --localed | --locale)
1117: ac_prev=localedir ;;
1118: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119: localedir=$ac_optarg ;;
1120:
1121: -localstatedir | --localstatedir | --localstatedi | --localstated \
1122: | --localstate | --localstat | --localsta | --localst | --locals)
1123: ac_prev=localstatedir ;;
1124: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126: localstatedir=$ac_optarg ;;
1127:
1128: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129: ac_prev=mandir ;;
1130: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131: mandir=$ac_optarg ;;
1132:
1133: -nfp | --nfp | --nf)
1134: # Obsolete; use --without-fp.
1135: with_fp=no ;;
1136:
1137: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138: | --no-cr | --no-c | -n)
1139: no_create=yes ;;
1140:
1141: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143: no_recursion=yes ;;
1144:
1145: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147: | --oldin | --oldi | --old | --ol | --o)
1148: ac_prev=oldincludedir ;;
1149: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152: oldincludedir=$ac_optarg ;;
1153:
1154: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155: ac_prev=prefix ;;
1156: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157: prefix=$ac_optarg ;;
1158:
1159: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160: | --program-pre | --program-pr | --program-p)
1161: ac_prev=program_prefix ;;
1162: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164: program_prefix=$ac_optarg ;;
1165:
1166: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167: | --program-suf | --program-su | --program-s)
1168: ac_prev=program_suffix ;;
1169: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171: program_suffix=$ac_optarg ;;
1172:
1173: -program-transform-name | --program-transform-name \
1174: | --program-transform-nam | --program-transform-na \
1175: | --program-transform-n | --program-transform- \
1176: | --program-transform | --program-transfor \
1177: | --program-transfo | --program-transf \
1178: | --program-trans | --program-tran \
1179: | --progr-tra | --program-tr | --program-t)
1180: ac_prev=program_transform_name ;;
1181: -program-transform-name=* | --program-transform-name=* \
1182: | --program-transform-nam=* | --program-transform-na=* \
1183: | --program-transform-n=* | --program-transform-=* \
1184: | --program-transform=* | --program-transfor=* \
1185: | --program-transfo=* | --program-transf=* \
1186: | --program-trans=* | --program-tran=* \
1187: | --progr-tra=* | --program-tr=* | --program-t=*)
1188: program_transform_name=$ac_optarg ;;
1189:
1190: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191: ac_prev=pdfdir ;;
1192: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193: pdfdir=$ac_optarg ;;
1194:
1195: -psdir | --psdir | --psdi | --psd | --ps)
1196: ac_prev=psdir ;;
1197: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198: psdir=$ac_optarg ;;
1199:
1200: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201: | -silent | --silent | --silen | --sile | --sil)
1202: silent=yes ;;
1203:
1204: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205: ac_prev=sbindir ;;
1206: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207: | --sbi=* | --sb=*)
1208: sbindir=$ac_optarg ;;
1209:
1210: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212: | --sharedst | --shareds | --shared | --share | --shar \
1213: | --sha | --sh)
1214: ac_prev=sharedstatedir ;;
1215: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218: | --sha=* | --sh=*)
1219: sharedstatedir=$ac_optarg ;;
1220:
1221: -site | --site | --sit)
1222: ac_prev=site ;;
1223: -site=* | --site=* | --sit=*)
1224: site=$ac_optarg ;;
1225:
1226: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227: ac_prev=srcdir ;;
1228: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229: srcdir=$ac_optarg ;;
1230:
1231: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232: | --syscon | --sysco | --sysc | --sys | --sy)
1233: ac_prev=sysconfdir ;;
1234: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236: sysconfdir=$ac_optarg ;;
1237:
1238: -target | --target | --targe | --targ | --tar | --ta | --t)
1239: ac_prev=target_alias ;;
1240: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241: target_alias=$ac_optarg ;;
1242:
1243: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244: verbose=yes ;;
1245:
1246: -version | --version | --versio | --versi | --vers | -V)
1247: ac_init_version=: ;;
1248:
1249: -with-* | --with-*)
1.1.1.3 ! misho 1250: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 misho 1251: # Reject names that are not valid shell variable names.
1.1.1.3 ! misho 1252: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 1253: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 1254: { (exit 1); exit 1; }; }
! 1255: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1256: eval with_$ac_package=\$ac_optarg ;;
1.1 misho 1257:
1258: -without-* | --without-*)
1.1.1.3 ! misho 1259: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 misho 1260: # Reject names that are not valid shell variable names.
1.1.1.3 ! misho 1261: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 1262: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 1263: { (exit 1); exit 1; }; }
! 1264: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1265: eval with_$ac_package=no ;;
1.1 misho 1266:
1267: --x)
1268: # Obsolete; use --with-x.
1269: with_x=yes ;;
1270:
1271: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272: | --x-incl | --x-inc | --x-in | --x-i)
1273: ac_prev=x_includes ;;
1274: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276: x_includes=$ac_optarg ;;
1277:
1278: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280: ac_prev=x_libraries ;;
1281: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283: x_libraries=$ac_optarg ;;
1284:
1.1.1.3 ! misho 1285: -*) { echo "$as_me: error: unrecognized option: $ac_option
! 1286: Try \`$0 --help' for more information." >&2
! 1287: { (exit 1); exit 1; }; }
1.1 misho 1288: ;;
1289:
1290: *=*)
1291: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292: # Reject names that are not valid shell variable names.
1.1.1.3 ! misho 1293: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
! 1294: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
! 1295: { (exit 1); exit 1; }; }
1.1 misho 1296: eval $ac_envvar=\$ac_optarg
1297: export $ac_envvar ;;
1298:
1299: *)
1300: # FIXME: should be removed in autoconf 3.0.
1.1.1.3 ! misho 1301: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misho 1302: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.3 ! misho 1303: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 1304: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 misho 1305: ;;
1306:
1307: esac
1308: done
1309:
1310: if test -n "$ac_prev"; then
1311: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.1.1.3 ! misho 1312: { echo "$as_me: error: missing argument to $ac_option" >&2
! 1313: { (exit 1); exit 1; }; }
1.1 misho 1314: fi
1315:
1.1.1.3 ! misho 1316: # Be sure to have absolute directory names.
1.1 misho 1317: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318: datadir sysconfdir sharedstatedir localstatedir includedir \
1319: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320: libdir localedir mandir
1321: do
1322: eval ac_val=\$$ac_var
1323: case $ac_val in
1324: [\\/$]* | ?:[\\/]* ) continue;;
1325: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326: esac
1.1.1.3 ! misho 1327: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1328: { (exit 1); exit 1; }; }
1.1 misho 1329: done
1330:
1331: # There might be people who depend on the old broken behavior: `$host'
1332: # used to hold the argument of --host etc.
1333: # FIXME: To remove some day.
1334: build=$build_alias
1335: host=$host_alias
1336: target=$target_alias
1337:
1338: # FIXME: To remove some day.
1339: if test "x$host_alias" != x; then
1340: if test "x$build_alias" = x; then
1341: cross_compiling=maybe
1.1.1.3 ! misho 1342: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
! 1343: If a cross compiler is detected then cross compile mode will be used." >&2
1.1 misho 1344: elif test "x$build_alias" != "x$host_alias"; then
1345: cross_compiling=yes
1346: fi
1347: fi
1348:
1349: ac_tool_prefix=
1350: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351:
1352: test "$silent" = yes && exec 6>/dev/null
1353:
1354:
1355: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356: ac_ls_di=`ls -di .` &&
1357: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.1.1.3 ! misho 1358: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1359: { (exit 1); exit 1; }; }
1.1 misho 1360: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.1.1.3 ! misho 1361: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1362: { (exit 1); exit 1; }; }
1.1 misho 1363:
1364:
1365: # Find the source files, if location was not specified.
1366: if test -z "$srcdir"; then
1367: ac_srcdir_defaulted=yes
1368: # Try the directory containing this script, then the parent directory.
1.1.1.3 ! misho 1369: ac_confdir=`$as_dirname -- "$0" ||
! 1370: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 1371: X"$0" : 'X\(//\)[^/]' \| \
! 1372: X"$0" : 'X\(//\)$' \| \
! 1373: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 1374: echo X"$0" |
1.1 misho 1375: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376: s//\1/
1377: q
1378: }
1379: /^X\(\/\/\)[^/].*/{
1380: s//\1/
1381: q
1382: }
1383: /^X\(\/\/\)$/{
1384: s//\1/
1385: q
1386: }
1387: /^X\(\/\).*/{
1388: s//\1/
1389: q
1390: }
1391: s/.*/./; q'`
1392: srcdir=$ac_confdir
1393: if test ! -r "$srcdir/$ac_unique_file"; then
1394: srcdir=..
1395: fi
1396: else
1397: ac_srcdir_defaulted=no
1398: fi
1399: if test ! -r "$srcdir/$ac_unique_file"; then
1400: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.1.1.3 ! misho 1401: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
! 1402: { (exit 1); exit 1; }; }
1.1 misho 1403: fi
1404: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405: ac_abs_confdir=`(
1.1.1.3 ! misho 1406: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
! 1407: { (exit 1); exit 1; }; }
1.1 misho 1408: pwd)`
1409: # When building in place, set srcdir=.
1410: if test "$ac_abs_confdir" = "$ac_pwd"; then
1411: srcdir=.
1412: fi
1413: # Remove unnecessary trailing slashes from srcdir.
1414: # Double slashes in file names in object file debugging info
1415: # mess up M-x gdb in Emacs.
1416: case $srcdir in
1417: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418: esac
1419: for ac_var in $ac_precious_vars; do
1420: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421: eval ac_env_${ac_var}_value=\$${ac_var}
1422: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424: done
1425:
1426: #
1427: # Report the --help message.
1428: #
1429: if test "$ac_init_help" = "long"; then
1430: # Omit some internal or obsolete options to make the list less imposing.
1431: # This message is too long to be a string in the A/UX 3.1 sh.
1432: cat <<_ACEOF
1433: \`configure' configures this package to adapt to many kinds of systems.
1434:
1435: Usage: $0 [OPTION]... [VAR=VALUE]...
1436:
1437: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438: VAR=VALUE. See below for descriptions of some of the useful variables.
1439:
1440: Defaults for the options are specified in brackets.
1441:
1442: Configuration:
1443: -h, --help display this help and exit
1444: --help=short display options specific to this package
1445: --help=recursive display the short help of all the included packages
1446: -V, --version display version information and exit
1.1.1.3 ! misho 1447: -q, --quiet, --silent do not print \`checking...' messages
1.1 misho 1448: --cache-file=FILE cache test results in FILE [disabled]
1449: -C, --config-cache alias for \`--cache-file=config.cache'
1450: -n, --no-create do not create output files
1451: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452:
1453: Installation directories:
1454: --prefix=PREFIX install architecture-independent files in PREFIX
1.1.1.3 ! misho 1455: [$ac_default_prefix]
1.1 misho 1456: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.3 ! misho 1457: [PREFIX]
1.1 misho 1458:
1459: By default, \`make install' will install all the files in
1460: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462: for instance \`--prefix=\$HOME'.
1463:
1464: For better control, use the options below.
1465:
1466: Fine tuning of the installation directories:
1.1.1.3 ! misho 1467: --bindir=DIR user executables [EPREFIX/bin]
! 1468: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 1469: --libexecdir=DIR program executables [EPREFIX/libexec]
! 1470: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 1471: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 1472: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 1473: --libdir=DIR object code libraries [EPREFIX/lib]
! 1474: --includedir=DIR C header files [PREFIX/include]
! 1475: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 1476: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1477: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1478: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1479: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1480: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1481: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
! 1482: --htmldir=DIR html documentation [DOCDIR]
! 1483: --dvidir=DIR dvi documentation [DOCDIR]
! 1484: --pdfdir=DIR pdf documentation [DOCDIR]
! 1485: --psdir=DIR ps documentation [DOCDIR]
1.1 misho 1486: _ACEOF
1487:
1488: cat <<\_ACEOF
1489:
1490: System types:
1491: --build=BUILD configure for building on BUILD [guessed]
1492: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493: --target=TARGET configure for building compilers for TARGET [HOST]
1494: _ACEOF
1495: fi
1496:
1497: if test -n "$ac_init_help"; then
1498:
1499: cat <<\_ACEOF
1500:
1.1.1.2 misho 1501: Optional Features and Packages:
1.1 misho 1502: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 misho 1504: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506: --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
1.1 misho 1507: --disable-rpath Disable passing additional runtime library
1508: search paths
1509: --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension
1510:
1511: SAPI modules:
1512:
1513: --with-aolserver=DIR Specify path to the installed AOLserver
1514: --with-apxs=FILE Build shared Apache 1.x module. FILE is the optional
1515: pathname to the Apache apxs tool apxs
1516: --with-apache=DIR Build Apache 1.x module. DIR is the top-level Apache
1517: build directory /usr/local/apache
1.1.1.2 misho 1518: --enable-mod-charset APACHE: Enable transfer tables for mod_charset (Rus Apache)
1.1 misho 1519: --with-apxs2filter=FILE
1520: EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
1521: pathname to the Apache apxs tool apxs
1522: --with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional
1523: pathname to the Apache apxs tool apxs
1524: --with-apache-hooks=FILE
1525: EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
1526: pathname to the Apache apxs tool apxs
1527: --with-apache-hooks-static=DIR
1528: EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
1529: build directory /usr/local/apache
1.1.1.2 misho 1530: --enable-mod-charset APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
1.1 misho 1531: --with-caudium=DIR Build PHP as a Pike module for use with Caudium.
1532: DIR is the Caudium server dir /usr/local/caudium/server
1.1.1.2 misho 1533: --disable-cli Disable building CLI version of PHP
1534: (this forces --without-pear)
1.1 misho 1535: --with-continuity=DIR Build PHP as Continuity Server module.
1536: DIR is path to the installed Continuity Server root
1.1.1.2 misho 1537: --enable-embed=TYPE EXPERIMENTAL: Enable building of embedded SAPI library
1538: TYPE is either 'shared' or 'static'. TYPE=shared
1539: --enable-fpm Enable building of the fpm SAPI executable
1.1 misho 1540: --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody)
1541: --with-fpm-group=GRP Set the group for php-fpm to run as. For a system user, this
1542: should usually be set to match the fpm username (default: nobody)
1.1.1.3 ! misho 1543: --with-fpm-systemd Activate systemd integration
1.1 misho 1544: --with-isapi=DIR Build PHP as an ISAPI module for use with Zeus
1545: --with-litespeed Build PHP as litespeed module
1546: --with-milter=DIR Build PHP as Milter application
1547: --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
1548: --with-phttpd=DIR Build PHP as phttpd module
1549: --with-pi3web=DIR Build PHP as Pi3Web module
1550: --with-roxen=DIR Build PHP as a Pike module. DIR is the base Roxen
1551: directory, normally /usr/local/roxen/server
1.1.1.2 misho 1552: --enable-roxen-zts ROXEN: Build the Roxen module using Zend Thread Safety
1.1 misho 1553: --with-thttpd=SRCDIR Build PHP as thttpd module
1554: --with-tux=MODULEDIR Build PHP as a TUX module (Linux only)
1555: --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only)
1.1.1.2 misho 1556: --disable-cgi Disable building CGI version of PHP
1557:
1558: General settings:
1559:
1560: --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
1561: --enable-debug Compile with debugging symbols
1.1 misho 1562: --with-layout=TYPE Set how installed files will be laid out. Type can
1.1.1.2 misho 1563: be either PHP or GNU [PHP]
1.1 misho 1564: --with-config-file-path=PATH
1.1.1.2 misho 1565: Set the path in which to look for php.ini [PREFIX/lib]
1.1 misho 1566: --with-config-file-scan-dir=PATH
1567: Set the path where to scan for configuration files
1.1.1.2 misho 1568: --enable-sigchild Enable PHP's own SIGCHLD handler
1569: --enable-libgcc Enable explicitly linking against libgcc
1570: --disable-short-tags Disable the short-form <? start tag by default
1571: --enable-dmalloc Enable dmalloc
1572: --disable-ipv6 Disable IPv6 support
1573: --enable-dtrace Enable DTrace support
1574: --enable-fd-setsize Set size of descriptor sets
1575:
1576: Extensions:
1577:
1578: --with-EXTENSION=shared[,PATH]
1579:
1580: NOTE: Not all extensions can be build as 'shared'.
1581:
1582: Example: --with-foobar=shared,/usr/local/foobar/
1583:
1584: o Builds the foobar extension as shared extension.
1585: o foobar package install prefix is /usr/local/foobar/
1586:
1587:
1588: --disable-all Disable all extensions which are enabled by default
1589:
1.1 misho 1590: --with-regex=TYPE regex library type: system, php. TYPE=php
1591: WARNING: Do NOT use unless you know what you are doing!
1.1.1.2 misho 1592: --disable-libxml Disable LIBXML support
1.1 misho 1593: --with-libxml-dir=DIR LIBXML: libxml2 install prefix
1594: --with-openssl=DIR Include OpenSSL support (requires OpenSSL >= 0.9.6)
1595: --with-kerberos=DIR OPENSSL: Include Kerberos support
1596: --with-pcre-regex=DIR Include Perl Compatible Regular Expressions support.
1597: DIR is the PCRE install prefix BUNDLED
1598: --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to
1599: SQLite3 installation directory.
1600: --with-zlib=DIR Include ZLIB support (requires zlib >= 1.0.9)
1601: --with-zlib-dir=<DIR> Define the location of zlib install directory
1.1.1.2 misho 1602: --enable-bcmath Enable bc style precision math functions
1.1 misho 1603: --with-bz2=DIR Include BZip2 support
1.1.1.2 misho 1604: --enable-calendar Enable support for calendar conversion
1605: --disable-ctype Disable ctype functions
1.1 misho 1606: --with-curl=DIR Include cURL support
1607: --with-curlwrappers EXPERIMENTAL: Use cURL for url streams
1.1.1.2 misho 1608: --enable-dba Build DBA with bundled modules. To build shared DBA
1609: extension use --enable-dba=shared
1.1 misho 1610: --with-qdbm=DIR DBA: QDBM support
1611: --with-gdbm=DIR DBA: GDBM support
1612: --with-ndbm=DIR DBA: NDBM support
1613: --with-db4=DIR DBA: Oracle Berkeley DB 4.x or 5.x support
1614: --with-db3=DIR DBA: Oracle Berkeley DB 3.x support
1615: --with-db2=DIR DBA: Oracle Berkeley DB 2.x support
1616: --with-db1=DIR DBA: Oracle Berkeley DB 1.x support/emulation
1617: --with-dbm=DIR DBA: DBM support
1.1.1.2 misho 1618: --with-tcadb=DIR DBA: Tokyo Cabinet abstract DB support
1.1 misho 1619: --without-cdb=DIR DBA: CDB support (bundled)
1.1.1.2 misho 1620: --disable-inifile DBA: INI support (bundled)
1621: --disable-flatfile DBA: FlatFile support (bundled)
1622: --disable-dom Disable DOM support
1.1 misho 1623: --with-libxml-dir=DIR DOM: libxml2 install prefix
1624: --with-enchant=DIR Include enchant support.
1625: GNU Aspell version 1.1.3 or higher required.
1.1.1.2 misho 1626: --enable-exif Enable EXIF (metadata from images) support
1627: --disable-fileinfo Disable fileinfo support
1628: --disable-filter Disable input filter support
1.1 misho 1629: --with-pcre-dir FILTER: pcre install prefix
1.1.1.2 misho 1630: --enable-ftp Enable FTP support
1.1 misho 1631: --with-openssl-dir=DIR FTP: openssl install prefix
1632: --with-gd=DIR Include GD support. DIR is the GD library base
1633: install directory BUNDLED
1.1.1.2 misho 1634: --with-vpx-dir=DIR GD: Set the path to libvpx install prefix
1.1 misho 1635: --with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix
1636: --with-png-dir=DIR GD: Set the path to libpng install prefix
1637: --with-zlib-dir=DIR GD: Set the path to libz install prefix
1638: --with-xpm-dir=DIR GD: Set the path to libXpm install prefix
1639: --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix
1640: --with-t1lib=DIR GD: Include T1lib support. T1lib version >= 5.0.0 required
1.1.1.2 misho 1641: --enable-gd-native-ttf GD: Enable TrueType string function
1642: --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support
1.1 misho 1643: --with-gettext=DIR Include GNU gettext support
1644: --with-gmp=DIR Include GNU MP support
1645: --with-mhash=DIR Include mhash support
1.1.1.2 misho 1646: --disable-hash Disable hash support
1.1 misho 1647: --without-iconv=DIR Exclude iconv support
1648: --with-imap=DIR Include IMAP support. DIR is the c-client install prefix
1649: --with-kerberos=DIR IMAP: Include Kerberos support. DIR is the Kerberos install prefix
1650: --with-imap-ssl=DIR IMAP: Include SSL support. DIR is the OpenSSL install prefix
1651: --with-interbase=DIR Include InterBase support. DIR is the InterBase base
1652: install directory /usr/interbase
1.1.1.2 misho 1653: --enable-intl Enable internationalization support
1.1 misho 1654: --with-icu-dir=DIR Specify where ICU libraries and headers can be found
1.1.1.2 misho 1655: --disable-json Disable JavaScript Object Serialization support
1.1 misho 1656: --with-ldap=DIR Include LDAP support
1657: --with-ldap-sasl=DIR LDAP: Include Cyrus SASL support
1.1.1.2 misho 1658: --enable-mbstring Enable multibyte string support
1659: --disable-mbregex MBSTRING: Disable multibyte regex support
1660: --disable-mbregex-backtrack
1661: MBSTRING: Disable multibyte regex backtrack check
1.1 misho 1662: --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base
1663: install directory BUNDLED
1664: --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
1665: If DIR is not set, the bundled oniguruma will be used
1666: --with-mcrypt=DIR Include mcrypt support
1667: --with-mssql=DIR Include MSSQL-DB support. DIR is the FreeTDS home
1668: directory /usr/local/freetds
1669: --with-mysql=DIR Include MySQL support. DIR is the MySQL base
1.1.1.2 misho 1670: directory, if no DIR is passed or the value is
1671: mysqlnd the MySQL native driver will be used
1.1 misho 1672: --with-mysql-sock=DIR MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
1673: If unspecified, the default locations are searched
1674: --with-zlib-dir=DIR MySQL: Set the path to libz install prefix
1675: --with-mysqli=FILE Include MySQLi support. FILE is the path
1.1.1.2 misho 1676: to mysql_config. If no value or mysqlnd is passed
1677: as FILE, the MySQL native driver will be used
1678: --enable-embedded-mysqli MYSQLi: Enable embedded support
1679: Note: Does not work with MySQL native driver!
1.1 misho 1680: --with-oci8=DIR Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME.
1681: Use --with-oci8=instantclient,/path/to/instant/client/lib
1682: to use an Oracle Instant Client installation
1683: --with-adabas=DIR Include Adabas D support /usr/local
1684: --with-sapdb=DIR Include SAP DB support /usr/local
1685: --with-solid=DIR Include Solid support /usr/local/solid
1686: --with-ibm-db2=DIR Include IBM DB2 support /home/db2inst1/sqllib
1687: --with-ODBCRouter=DIR Include ODBCRouter.com support /usr
1688: --with-empress=DIR Include Empress support \$EMPRESSPATH
1689: (Empress Version >= 8.60 required)
1690: --with-empress-bcs=DIR
1691: Include Empress Local Access support \$EMPRESSPATH
1692: (Empress Version >= 8.60 required)
1693: --with-birdstep=DIR Include Birdstep support /usr/local/birdstep
1694: --with-custom-odbc=DIR
1695: Include user defined ODBC support. DIR is ODBC install base
1696: directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
1697: have some odbc.h in your include dirs. f.e. you should define
1698: following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
1699: running this configure script:
1700: CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
1701: LDFLAGS=-lunix
1702: CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
1703: --with-iodbc=DIR Include iODBC support /usr/local
1704: --with-esoob=DIR Include Easysoft OOB support /usr/local/easysoft/oob/client
1705: --with-unixODBC=DIR Include unixODBC support /usr/local
1706: --with-dbmaker=DIR Include DBMaker support
1.1.1.2 misho 1707: --enable-pcntl Enable pcntl support (CLI/CGI only)
1708: --disable-pdo Disable PHP Data Objects support
1.1 misho 1709: --with-pdo-dblib=DIR PDO: DBLIB-DB support. DIR is the FreeTDS home directory
1710: --with-pdo-firebird=DIR PDO: Firebird support. DIR is the Firebird base
1711: install directory /opt/firebird
1712: --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory
1.1.1.2 misho 1713: If no value or mysqlnd is passed as DIR, the
1714: MySQL native driver will be used
1.1 misho 1715: --with-zlib-dir=DIR PDO_MySQL: Set the path to libz install prefix
1716: --with-pdo-oci=DIR PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
1717: Use --with-pdo-oci=instantclient,prefix,version
1718: for an Oracle Instant Client SDK.
1719: For example on Linux with 11.2 RPMs use:
1720: --with-pdo-oci=instantclient,/usr,11.2
1721: With 10.2 RPMs use:
1722: --with-pdo-oci=instantclient,/usr,10.2.0.4
1723: --with-pdo-odbc=flavour,dir
1724: PDO: Support for 'flavour' ODBC driver.
1725: include and lib dirs are looked for under 'dir'.
1726:
1727: 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
1728: If ',dir' part is omitted, default for the flavour
1729: you have selected will used. e.g.:
1730:
1731: --with-pdo-odbc=unixODBC
1732:
1733: will check for unixODBC under /usr/local. You may attempt
1734: to use an otherwise unsupported driver using the \"generic\"
1735: flavour. The syntax for generic ODBC support is:
1736:
1737: --with-pdo-odbc=generic,dir,libname,ldflags,cflags
1738:
1739: When build as shared the extension filename is always pdo_odbc.so
1740: --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base
1741: install directory or the path to pg_config
1742: --without-pdo-sqlite=DIR
1743: PDO: sqlite 3 support. DIR is the sqlite base
1744: install directory BUNDLED
1745: --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL
1746: base install directory or the path to pg_config
1.1.1.2 misho 1747: --disable-phar Disable phar support
1748: --disable-posix Disable POSIX-like functions
1.1 misho 1749: --with-pspell=DIR Include PSPELL support.
1750: GNU Aspell version 0.50.0 or higher required
1751: --with-libedit=DIR Include libedit readline replacement (CLI/CGI only)
1752: --with-readline=DIR Include readline support (CLI/CGI only)
1753: --with-recode=DIR Include recode support
1.1.1.2 misho 1754: --disable-session Disable session support
1.1 misho 1755: --with-mm=DIR SESSION: Include mm support for session storage
1.1.1.2 misho 1756: --enable-shmop Enable shmop support
1757: --disable-simplexml Disable SimpleXML support
1.1 misho 1758: --with-libxml-dir=DIR SimpleXML: libxml2 install prefix
1759: --with-snmp=DIR Include SNMP support
1760: --with-openssl-dir=DIR SNMP: openssl install prefix
1.1.1.2 misho 1761: --enable-soap Enable SOAP support
1.1 misho 1762: --with-libxml-dir=DIR SOAP: libxml2 install prefix
1.1.1.2 misho 1763: --enable-sockets Enable sockets support
1.1 misho 1764: --with-sybase-ct=DIR Include Sybase-CT support. DIR is the Sybase home
1765: directory /home/sybase
1.1.1.2 misho 1766: --enable-sysvmsg Enable sysvmsg support
1767: --enable-sysvsem Enable System V semaphore support
1768: --enable-sysvshm Enable the System V shared memory support
1.1 misho 1769: --with-tidy=DIR Include TIDY support
1.1.1.2 misho 1770: --disable-tokenizer Disable tokenizer support
1771: --enable-wddx Enable WDDX support
1.1 misho 1772: --with-libxml-dir=DIR WDDX: libxml2 install prefix
1773: --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated)
1.1.1.2 misho 1774: --disable-xml Disable XML support
1.1 misho 1775: --with-libxml-dir=DIR XML: libxml2 install prefix
1776: --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated)
1.1.1.2 misho 1777: --disable-xmlreader Disable XMLReader support
1.1 misho 1778: --with-libxml-dir=DIR XMLReader: libxml2 install prefix
1779: --with-xmlrpc=DIR Include XMLRPC-EPI support
1780: --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix
1781: --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
1782: --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI
1.1.1.2 misho 1783: --disable-xmlwriter Disable XMLWriter support
1.1 misho 1784: --with-libxml-dir=DIR XMLWriter: libxml2 install prefix
1785: --with-xsl=DIR Include XSL support. DIR is the libxslt base
1786: install directory (libxslt >= 1.1.0 required)
1.1.1.2 misho 1787: --enable-zip Include Zip read/write support
1.1 misho 1788: --with-zlib-dir=DIR ZIP: Set the path to libz install prefix
1789: --with-pcre-dir ZIP: pcre install prefix
1.1.1.2 misho 1790: --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly
1791: when required by other extensions
1792: --disable-mysqlnd-compression-support
1793: Disable support for the MySQL compressed protocol in mysqlnd
1.1 misho 1794: --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix
1.1.1.2 misho 1795:
1796: PEAR:
1797:
1798: --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php]
1.1 misho 1799: --without-pear Do not install PEAR
1.1.1.2 misho 1800:
1801: Zend:
1802:
1.1 misho 1803: --with-zend-vm=TYPE Set virtual machine dispatch method. Type is
1804: one of "CALL", "SWITCH" or "GOTO" TYPE=CALL
1.1.1.2 misho 1805: --enable-maintainer-zts Enable thread safety - for code maintainers only!!
1806: --disable-inline-optimization
1807: If building zend_execute.lo fails, try this switch
1808: --enable-zend-signals Use zend signal handling
1809:
1810: TSRM:
1811:
1.1 misho 1812: --with-tsrm-pth=pth-config
1813: Use GNU Pth
1814: --with-tsrm-st Use SGI's State Threads
1815: --with-tsrm-pthreads Use POSIX threads (default)
1.1.1.2 misho 1816:
1817: Libtool:
1818:
1819: --enable-shared=PKGS build shared libraries default=yes
1820: --enable-static=PKGS build static libraries default=yes
1821: --enable-fast-install=PKGS optimize for fast installation default=yes
1.1 misho 1822: --with-gnu-ld assume the C compiler uses GNU ld default=no
1.1.1.2 misho 1823: --disable-libtool-lock avoid locking (might break parallel builds)
1.1 misho 1824: --with-pic try to use only PIC/non-PIC objects default=use both
1825: --with-tags=TAGS include additional configurations automatic
1826:
1827:
1828: Some influential environment variables:
1829: CC C compiler command
1830: CFLAGS C compiler flags
1831: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1832: nonstandard directory <lib dir>
1833: LIBS libraries to pass to the linker, e.g. -l<library>
1.1.1.3 ! misho 1834: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1.1 misho 1835: you have headers in a nonstandard directory <include dir>
1836: CPP C preprocessor
1.1.1.3 ! misho 1837: YACC The `Yet Another C Compiler' implementation to use. Defaults to
! 1838: the first program found out of: `bison -y', `byacc', `yacc'.
1.1 misho 1839: YFLAGS The list of arguments that will be passed by default to $YACC.
1840: This script will default YFLAGS to the empty string to avoid a
1841: default value of `-d' given by some make applications.
1842: CXX C++ compiler command
1843: CXXFLAGS C++ compiler flags
1844: CXXCPP C++ preprocessor
1845:
1846: Use these variables to override the choices made by `configure' or to help
1847: it to find libraries and programs with nonstandard names/locations.
1848:
1849: _ACEOF
1850: ac_status=$?
1851: fi
1852:
1853: if test "$ac_init_help" = "recursive"; then
1854: # If there are subdirs, report their specific --help.
1855: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.3 ! misho 1856: test -d "$ac_dir" || continue
1.1 misho 1857: ac_builddir=.
1858:
1859: case "$ac_dir" in
1860: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1861: *)
1.1.1.3 ! misho 1862: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1 misho 1863: # A ".." for each directory in $ac_dir_suffix.
1.1.1.3 ! misho 1864: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1.1 misho 1865: case $ac_top_builddir_sub in
1866: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1867: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1868: esac ;;
1869: esac
1870: ac_abs_top_builddir=$ac_pwd
1871: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1872: # for backward compatibility:
1873: ac_top_builddir=$ac_top_build_prefix
1874:
1875: case $srcdir in
1876: .) # We are building in place.
1877: ac_srcdir=.
1878: ac_top_srcdir=$ac_top_builddir_sub
1879: ac_abs_top_srcdir=$ac_pwd ;;
1880: [\\/]* | ?:[\\/]* ) # Absolute name.
1881: ac_srcdir=$srcdir$ac_dir_suffix;
1882: ac_top_srcdir=$srcdir
1883: ac_abs_top_srcdir=$srcdir ;;
1884: *) # Relative name.
1885: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1886: ac_top_srcdir=$ac_top_build_prefix$srcdir
1887: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1888: esac
1889: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1890:
1891: cd "$ac_dir" || { ac_status=$?; continue; }
1892: # Check for guested configure.
1893: if test -f "$ac_srcdir/configure.gnu"; then
1894: echo &&
1895: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1896: elif test -f "$ac_srcdir/configure"; then
1897: echo &&
1898: $SHELL "$ac_srcdir/configure" --help=recursive
1899: else
1.1.1.3 ! misho 1900: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 misho 1901: fi || ac_status=$?
1902: cd "$ac_pwd" || { ac_status=$?; break; }
1903: done
1904: fi
1905:
1906: test -n "$ac_init_help" && exit $ac_status
1907: if $ac_init_version; then
1908: cat <<\_ACEOF
1909: configure
1.1.1.3 ! misho 1910: generated by GNU Autoconf 2.61
1.1 misho 1911:
1.1.1.3 ! misho 1912: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1913: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 misho 1914: This configure script is free software; the Free Software Foundation
1915: gives unlimited permission to copy, distribute and modify it.
1916: _ACEOF
1917: exit
1918: fi
1919: cat >config.log <<_ACEOF
1920: This file contains any messages produced by compilers while
1921: running configure, to aid debugging if configure makes a mistake.
1922:
1923: It was created by $as_me, which was
1.1.1.3 ! misho 1924: generated by GNU Autoconf 2.61. Invocation command line was
1.1 misho 1925:
1926: $ $0 $@
1927:
1928: _ACEOF
1929: exec 5>>config.log
1930: {
1931: cat <<_ASUNAME
1932: ## --------- ##
1933: ## Platform. ##
1934: ## --------- ##
1935:
1936: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941:
1942: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944:
1945: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952:
1953: _ASUNAME
1954:
1955: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956: for as_dir in $PATH
1957: do
1958: IFS=$as_save_IFS
1959: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 1960: echo "PATH: $as_dir"
! 1961: done
1.1 misho 1962: IFS=$as_save_IFS
1963:
1964: } >&5
1965:
1966: cat >&5 <<_ACEOF
1967:
1968:
1969: ## ----------- ##
1970: ## Core tests. ##
1971: ## ----------- ##
1972:
1973: _ACEOF
1974:
1975:
1976: # Keep a trace of the command line.
1977: # Strip out --no-create and --no-recursion so they do not pile up.
1978: # Strip out --silent because we don't want to record it for future runs.
1979: # Also quote any args containing shell meta-characters.
1980: # Make two passes to allow for proper duplicate-argument suppression.
1981: ac_configure_args=
1982: ac_configure_args0=
1983: ac_configure_args1=
1984: ac_must_keep_next=false
1985: for ac_pass in 1 2
1986: do
1987: for ac_arg
1988: do
1989: case $ac_arg in
1990: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992: | -silent | --silent | --silen | --sile | --sil)
1993: continue ;;
1994: *\'*)
1.1.1.3 ! misho 1995: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 1996: esac
1997: case $ac_pass in
1.1.1.3 ! misho 1998: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1.1 misho 1999: 2)
1.1.1.3 ! misho 2000: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1.1 misho 2001: if test $ac_must_keep_next = true; then
2002: ac_must_keep_next=false # Got value, back to normal.
2003: else
2004: case $ac_arg in
2005: *=* | --config-cache | -C | -disable-* | --disable-* \
2006: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008: | -with-* | --with-* | -without-* | --without-* | --x)
2009: case "$ac_configure_args0 " in
2010: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011: esac
2012: ;;
2013: -* ) ac_must_keep_next=true ;;
2014: esac
2015: fi
1.1.1.3 ! misho 2016: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1 misho 2017: ;;
2018: esac
2019: done
2020: done
1.1.1.3 ! misho 2021: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
! 2022: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 misho 2023:
2024: # When interrupted or exit'd, cleanup temporary files, and complete
2025: # config.log. We remove comments because anyway the quotes in there
2026: # would cause problems or look ugly.
2027: # WARNING: Use '\'' to represent an apostrophe within the trap.
2028: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029: trap 'exit_status=$?
2030: # Save into config.log some information that might help in debugging.
2031: {
2032: echo
2033:
1.1.1.3 ! misho 2034: cat <<\_ASBOX
! 2035: ## ---------------- ##
1.1 misho 2036: ## Cache variables. ##
1.1.1.3 ! misho 2037: ## ---------------- ##
! 2038: _ASBOX
1.1 misho 2039: echo
2040: # The following way of writing the cache mishandles newlines in values,
2041: (
2042: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043: eval ac_val=\$$ac_var
2044: case $ac_val in #(
2045: *${as_nl}*)
2046: case $ac_var in #(
1.1.1.3 ! misho 2047: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 2048: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1.1 misho 2049: esac
2050: case $ac_var in #(
2051: _ | IFS | as_nl) ;; #(
1.1.1.3 ! misho 2052: *) $as_unset $ac_var ;;
1.1 misho 2053: esac ;;
2054: esac
2055: done
2056: (set) 2>&1 |
2057: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058: *${as_nl}ac_space=\ *)
2059: sed -n \
2060: "s/'\''/'\''\\\\'\'''\''/g;
2061: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062: ;; #(
2063: *)
2064: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065: ;;
2066: esac |
2067: sort
2068: )
2069: echo
2070:
1.1.1.3 ! misho 2071: cat <<\_ASBOX
! 2072: ## ----------------- ##
1.1 misho 2073: ## Output variables. ##
1.1.1.3 ! misho 2074: ## ----------------- ##
! 2075: _ASBOX
1.1 misho 2076: echo
2077: for ac_var in $ac_subst_vars
2078: do
2079: eval ac_val=\$$ac_var
2080: case $ac_val in
1.1.1.3 ! misho 2081: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 2082: esac
1.1.1.3 ! misho 2083: echo "$ac_var='\''$ac_val'\''"
1.1 misho 2084: done | sort
2085: echo
2086:
2087: if test -n "$ac_subst_files"; then
1.1.1.3 ! misho 2088: cat <<\_ASBOX
! 2089: ## ------------------- ##
1.1 misho 2090: ## File substitutions. ##
1.1.1.3 ! misho 2091: ## ------------------- ##
! 2092: _ASBOX
1.1 misho 2093: echo
2094: for ac_var in $ac_subst_files
2095: do
2096: eval ac_val=\$$ac_var
2097: case $ac_val in
1.1.1.3 ! misho 2098: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 2099: esac
1.1.1.3 ! misho 2100: echo "$ac_var='\''$ac_val'\''"
1.1 misho 2101: done | sort
2102: echo
2103: fi
2104:
2105: if test -s confdefs.h; then
1.1.1.3 ! misho 2106: cat <<\_ASBOX
! 2107: ## ----------- ##
1.1 misho 2108: ## confdefs.h. ##
1.1.1.3 ! misho 2109: ## ----------- ##
! 2110: _ASBOX
1.1 misho 2111: echo
2112: cat confdefs.h
2113: echo
2114: fi
2115: test "$ac_signal" != 0 &&
1.1.1.3 ! misho 2116: echo "$as_me: caught signal $ac_signal"
! 2117: echo "$as_me: exit $exit_status"
1.1 misho 2118: } >&5
2119: rm -f core *.core core.conftest.* &&
2120: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121: exit $exit_status
2122: ' 0
2123: for ac_signal in 1 2 13 15; do
1.1.1.3 ! misho 2124: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1.1 misho 2125: done
2126: ac_signal=0
2127:
2128: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2129: rm -f -r conftest* confdefs.h
2130:
2131: # Predefined preprocessor variables.
2132:
2133: cat >>confdefs.h <<_ACEOF
2134: #define PACKAGE_NAME "$PACKAGE_NAME"
2135: _ACEOF
2136:
1.1.1.3 ! misho 2137:
1.1 misho 2138: cat >>confdefs.h <<_ACEOF
2139: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140: _ACEOF
2141:
1.1.1.3 ! misho 2142:
1.1 misho 2143: cat >>confdefs.h <<_ACEOF
2144: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2145: _ACEOF
2146:
1.1.1.3 ! misho 2147:
1.1 misho 2148: cat >>confdefs.h <<_ACEOF
2149: #define PACKAGE_STRING "$PACKAGE_STRING"
2150: _ACEOF
2151:
2152:
2153: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 2154: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1.1 misho 2155: _ACEOF
2156:
2157:
2158: # Let the site file select an alternate cache file if it wants to.
1.1.1.3 ! misho 2159: # Prefer explicitly selected file to automatically selected ones.
1.1 misho 2160: if test -n "$CONFIG_SITE"; then
1.1.1.3 ! misho 2161: set x "$CONFIG_SITE"
1.1 misho 2162: elif test "x$prefix" != xNONE; then
1.1.1.3 ! misho 2163: set x "$prefix/share/config.site" "$prefix/etc/config.site"
1.1 misho 2164: else
1.1.1.3 ! misho 2165: set x "$ac_default_prefix/share/config.site" \
! 2166: "$ac_default_prefix/etc/config.site"
1.1 misho 2167: fi
1.1.1.3 ! misho 2168: shift
! 2169: for ac_site_file
1.1 misho 2170: do
1.1.1.3 ! misho 2171: if test -r "$ac_site_file"; then
! 2172: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
! 2173: echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misho 2174: sed 's/^/| /' "$ac_site_file" >&5
1.1.1.3 ! misho 2175: . "$ac_site_file"
1.1 misho 2176: fi
2177: done
2178:
2179: if test -r "$cache_file"; then
1.1.1.3 ! misho 2180: # Some versions of bash will fail to source /dev/null (special
! 2181: # files actually), so we avoid doing that.
! 2182: if test -f "$cache_file"; then
! 2183: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
! 2184: echo "$as_me: loading cache $cache_file" >&6;}
1.1 misho 2185: case $cache_file in
2186: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2187: *) . "./$cache_file";;
2188: esac
2189: fi
2190: else
1.1.1.3 ! misho 2191: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
! 2192: echo "$as_me: creating cache $cache_file" >&6;}
1.1 misho 2193: >$cache_file
2194: fi
2195:
1.1.1.3 ! misho 2196: ac_header_list="$ac_header_list utime.h"
1.1 misho 2197: # Check that the precious variables saved in the cache have kept the same
2198: # value.
2199: ac_cache_corrupted=false
2200: for ac_var in $ac_precious_vars; do
2201: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2202: eval ac_new_set=\$ac_env_${ac_var}_set
2203: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2204: eval ac_new_val=\$ac_env_${ac_var}_value
2205: case $ac_old_set,$ac_new_set in
2206: set,)
1.1.1.3 ! misho 2207: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 2208: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misho 2209: ac_cache_corrupted=: ;;
2210: ,set)
1.1.1.3 ! misho 2211: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
! 2212: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misho 2213: ac_cache_corrupted=: ;;
2214: ,);;
2215: *)
2216: if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.3 ! misho 2217: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
! 2218: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 2219: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
! 2220: echo "$as_me: former value: $ac_old_val" >&2;}
! 2221: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
! 2222: echo "$as_me: current value: $ac_new_val" >&2;}
! 2223: ac_cache_corrupted=:
1.1 misho 2224: fi;;
2225: esac
2226: # Pass precious variables to config.status.
2227: if test "$ac_new_set" = set; then
2228: case $ac_new_val in
1.1.1.3 ! misho 2229: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 2230: *) ac_arg=$ac_var=$ac_new_val ;;
2231: esac
2232: case " $ac_configure_args " in
2233: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.1.1.3 ! misho 2234: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1 misho 2235: esac
2236: fi
2237: done
2238: if $ac_cache_corrupted; then
1.1.1.3 ! misho 2239: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
! 2240: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 2241: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 2242: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
! 2243: { (exit 1); exit 1; }; }
! 2244: fi
! 2245:
! 2246:
! 2247:
! 2248:
! 2249:
! 2250:
! 2251:
! 2252:
! 2253:
! 2254:
! 2255:
! 2256:
! 2257:
! 2258:
! 2259:
! 2260:
1.1 misho 2261:
2262: ac_ext=c
2263: ac_cpp='$CPP $CPPFLAGS'
2264: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267:
2268:
2269:
1.1.1.2 misho 2270:
2271:
2272:
1.1.1.3 ! misho 2273: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 2274: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 2275: if test "${ac_cv_path_GREP+set}" = set; then
! 2276: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2277: else
! 2278: # Extract the first word of "grep ggrep" to use in msg output
! 2279: if test -z "$GREP"; then
! 2280: set dummy grep ggrep; ac_prog_name=$2
! 2281: if test "${ac_cv_path_GREP+set}" = set; then
! 2282: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2283: else
2284: ac_path_GREP_found=false
1.1.1.3 ! misho 2285: # Loop through the user's path and test for each of PROGNAME-LIST
! 2286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 2287: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2288: do
2289: IFS=$as_save_IFS
2290: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 2291: for ac_prog in grep ggrep; do
! 2292: for ac_exec_ext in '' $ac_executable_extensions; do
! 2293: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 2294: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 2295: # Check for GNU ac_path_GREP and select it if it is found.
1.1 misho 2296: # Check for GNU $ac_path_GREP
2297: case `"$ac_path_GREP" --version 2>&1` in
2298: *GNU*)
2299: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2300: *)
2301: ac_count=0
1.1.1.3 ! misho 2302: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.1 misho 2303: while :
2304: do
2305: cat "conftest.in" "conftest.in" >"conftest.tmp"
2306: mv "conftest.tmp" "conftest.in"
2307: cp "conftest.in" "conftest.nl"
1.1.1.3 ! misho 2308: echo 'GREP' >> "conftest.nl"
1.1 misho 2309: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2310: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.3 ! misho 2311: ac_count=`expr $ac_count + 1`
1.1 misho 2312: if test $ac_count -gt ${ac_path_GREP_max-0}; then
2313: # Best one so far, save it but keep looking for a better one
2314: ac_cv_path_GREP="$ac_path_GREP"
2315: ac_path_GREP_max=$ac_count
2316: fi
2317: # 10*(2^10) chars as input seems more than enough
2318: test $ac_count -gt 10 && break
2319: done
2320: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2321: esac
2322:
1.1.1.3 ! misho 2323:
! 2324: $ac_path_GREP_found && break 3
1.1 misho 2325: done
1.1.1.3 ! misho 2326: done
! 2327:
! 2328: done
1.1 misho 2329: IFS=$as_save_IFS
1.1.1.3 ! misho 2330:
! 2331:
! 2332: fi
! 2333:
! 2334: GREP="$ac_cv_path_GREP"
! 2335: if test -z "$GREP"; then
! 2336: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 2337: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 2338: { (exit 1); exit 1; }; }
! 2339: fi
! 2340:
1.1 misho 2341: else
2342: ac_cv_path_GREP=$GREP
2343: fi
2344:
1.1.1.3 ! misho 2345:
1.1 misho 2346: fi
1.1.1.3 ! misho 2347: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 2348: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
1.1 misho 2349: GREP="$ac_cv_path_GREP"
2350:
2351:
1.1.1.3 ! misho 2352: { echo "$as_me:$LINENO: checking for egrep" >&5
! 2353: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 2354: if test "${ac_cv_path_EGREP+set}" = set; then
! 2355: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2356: else
2357: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2358: then ac_cv_path_EGREP="$GREP -E"
2359: else
1.1.1.3 ! misho 2360: # Extract the first word of "egrep" to use in msg output
! 2361: if test -z "$EGREP"; then
! 2362: set dummy egrep; ac_prog_name=$2
! 2363: if test "${ac_cv_path_EGREP+set}" = set; then
! 2364: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2365: else
1.1 misho 2366: ac_path_EGREP_found=false
1.1.1.3 ! misho 2367: # Loop through the user's path and test for each of PROGNAME-LIST
! 2368: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 2369: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2370: do
2371: IFS=$as_save_IFS
2372: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 2373: for ac_prog in egrep; do
! 2374: for ac_exec_ext in '' $ac_executable_extensions; do
! 2375: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 2376: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 2377: # Check for GNU ac_path_EGREP and select it if it is found.
1.1 misho 2378: # Check for GNU $ac_path_EGREP
2379: case `"$ac_path_EGREP" --version 2>&1` in
2380: *GNU*)
2381: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2382: *)
2383: ac_count=0
1.1.1.3 ! misho 2384: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.1 misho 2385: while :
2386: do
2387: cat "conftest.in" "conftest.in" >"conftest.tmp"
2388: mv "conftest.tmp" "conftest.in"
2389: cp "conftest.in" "conftest.nl"
1.1.1.3 ! misho 2390: echo 'EGREP' >> "conftest.nl"
1.1 misho 2391: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2392: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.3 ! misho 2393: ac_count=`expr $ac_count + 1`
1.1 misho 2394: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2395: # Best one so far, save it but keep looking for a better one
2396: ac_cv_path_EGREP="$ac_path_EGREP"
2397: ac_path_EGREP_max=$ac_count
2398: fi
2399: # 10*(2^10) chars as input seems more than enough
2400: test $ac_count -gt 10 && break
2401: done
2402: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2403: esac
2404:
1.1.1.3 ! misho 2405:
! 2406: $ac_path_EGREP_found && break 3
1.1 misho 2407: done
1.1.1.3 ! misho 2408: done
! 2409:
! 2410: done
1.1 misho 2411: IFS=$as_save_IFS
1.1.1.3 ! misho 2412:
! 2413:
! 2414: fi
! 2415:
! 2416: EGREP="$ac_cv_path_EGREP"
! 2417: if test -z "$EGREP"; then
! 2418: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 2419: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 2420: { (exit 1); exit 1; }; }
! 2421: fi
! 2422:
1.1 misho 2423: else
2424: ac_cv_path_EGREP=$EGREP
2425: fi
2426:
1.1.1.3 ! misho 2427:
1.1 misho 2428: fi
2429: fi
1.1.1.3 ! misho 2430: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 2431: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
1.1 misho 2432: EGREP="$ac_cv_path_EGREP"
2433:
2434:
1.1.1.3 ! misho 2435: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 2436: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
! 2437: if test "${lt_cv_path_SED+set}" = set; then
! 2438: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2439: else
2440: # Loop through the user's path and test for sed and gsed.
2441: # Then use that list of sed's as ones to test for truncation.
2442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443: for as_dir in $PATH
2444: do
2445: IFS=$as_save_IFS
2446: test -z "$as_dir" && as_dir=.
2447: for lt_ac_prog in sed gsed; do
2448: for ac_exec_ext in '' $ac_executable_extensions; do
2449: if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2450: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2451: fi
2452: done
2453: done
2454: done
2455: lt_ac_max=0
2456: lt_ac_count=0
2457: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2458: # along with /bin/sed that truncates output.
2459: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2460: test ! -f $lt_ac_sed && continue
2461: cat /dev/null > conftest.in
2462: lt_ac_count=0
2463: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2464: # Check for GNU sed and select it if it is found.
2465: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2466: lt_cv_path_SED=$lt_ac_sed
2467: break
2468: fi
2469: while true; do
2470: cat conftest.in conftest.in >conftest.tmp
2471: mv conftest.tmp conftest.in
2472: cp conftest.in conftest.nl
2473: echo >>conftest.nl
2474: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2475: cmp -s conftest.out conftest.nl || break
2476: # 10000 chars as input seems more than enough
2477: test $lt_ac_count -gt 10 && break
2478: lt_ac_count=`expr $lt_ac_count + 1`
2479: if test $lt_ac_count -gt $lt_ac_max; then
2480: lt_ac_max=$lt_ac_count
2481: lt_cv_path_SED=$lt_ac_sed
2482: fi
2483: done
2484: done
2485:
2486: fi
2487:
2488: SED=$lt_cv_path_SED
1.1.1.3 ! misho 2489: { echo "$as_me:$LINENO: result: $SED" >&5
! 2490: echo "${ECHO_T}$SED" >&6; }
1.1 misho 2491:
2492:
2493:
2494:
2495:
2496:
2497: PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
2498:
2499:
2500:
2501:
2502:
2503: PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
2504:
2505:
2506:
2507: test -f config.nice && mv config.nice config.nice.old
2508: rm -f config.nice.old
2509: cat >config.nice<<EOF
2510: #! /bin/sh
2511: #
2512: # Created by configure
2513:
2514: EOF
2515:
2516: for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
2517: eval val=\$$var
2518: if test -n "$val"; then
2519: echo "$var='$val' \\" >> config.nice
2520: fi
2521: done
2522:
2523: echo "'$0' \\" >> config.nice
2524: if test `expr -- $0 : "'.*"` = 0; then
2525: CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
2526: else
2527: CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
2528: fi
2529: for arg in $ac_configure_args; do
1.1.1.2 misho 2530: if test `expr -- $arg : "'.*"` = 0; then
2531: if test `expr -- $arg : "--.*"` = 0; then
2532: break;
2533: fi
2534: echo "'$arg' \\" >> config.nice
2535: CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
2536: else
2537: if test `expr -- $arg : "'--.*"` = 0; then
2538: break;
2539: fi
2540: echo "$arg \\" >> config.nice
2541: CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
2542: fi
1.1 misho 2543: done
2544: echo '"$@"' >> config.nice
2545: chmod +x config.nice
2546: CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
2547:
2548:
2549: PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
2550:
2551:
2552:
2553:
2554:
2555: PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
2556:
2557:
2558:
2559:
2560:
2561: ac_aux_dir=
2562: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563: if test -f "$ac_dir/install-sh"; then
2564: ac_aux_dir=$ac_dir
2565: ac_install_sh="$ac_aux_dir/install-sh -c"
2566: break
2567: elif test -f "$ac_dir/install.sh"; then
2568: ac_aux_dir=$ac_dir
2569: ac_install_sh="$ac_aux_dir/install.sh -c"
2570: break
2571: elif test -f "$ac_dir/shtool"; then
2572: ac_aux_dir=$ac_dir
2573: ac_install_sh="$ac_aux_dir/shtool install -c"
2574: break
2575: fi
2576: done
2577: if test -z "$ac_aux_dir"; then
1.1.1.3 ! misho 2578: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 2579: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
! 2580: { (exit 1); exit 1; }; }
1.1 misho 2581: fi
2582:
2583: # These three variables are undocumented and unsupported,
2584: # and are intended to be withdrawn in a future Autoconf release.
2585: # They can cause serious problems if a builder's source tree is in a directory
2586: # whose full name contains unusual characters.
2587: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2590:
2591:
2592: # Make sure we can run config.sub.
2593: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.1.1.3 ! misho 2594: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 2595: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
! 2596: { (exit 1); exit 1; }; }
! 2597:
! 2598: { echo "$as_me:$LINENO: checking build system type" >&5
! 2599: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
! 2600: if test "${ac_cv_build+set}" = set; then
! 2601: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2602: else
2603: ac_build_alias=$build_alias
2604: test "x$ac_build_alias" = x &&
2605: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606: test "x$ac_build_alias" = x &&
1.1.1.3 ! misho 2607: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 2608: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 2609: { (exit 1); exit 1; }; }
1.1 misho 2610: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.1.1.3 ! misho 2611: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 2612: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
! 2613: { (exit 1); exit 1; }; }
1.1 misho 2614:
2615: fi
1.1.1.3 ! misho 2616: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 2617: echo "${ECHO_T}$ac_cv_build" >&6; }
1.1 misho 2618: case $ac_cv_build in
2619: *-*-*) ;;
1.1.1.3 ! misho 2620: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 2621: echo "$as_me: error: invalid value of canonical build" >&2;}
! 2622: { (exit 1); exit 1; }; };;
1.1 misho 2623: esac
2624: build=$ac_cv_build
2625: ac_save_IFS=$IFS; IFS='-'
2626: set x $ac_cv_build
2627: shift
2628: build_cpu=$1
2629: build_vendor=$2
2630: shift; shift
2631: # Remember, the first character of IFS is used to create $*,
2632: # except with old shells:
2633: build_os=$*
2634: IFS=$ac_save_IFS
2635: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636:
2637:
1.1.1.3 ! misho 2638: { echo "$as_me:$LINENO: checking host system type" >&5
! 2639: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
! 2640: if test "${ac_cv_host+set}" = set; then
! 2641: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2642: else
2643: if test "x$host_alias" = x; then
2644: ac_cv_host=$ac_cv_build
2645: else
2646: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1.1.3 ! misho 2647: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 2648: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
! 2649: { (exit 1); exit 1; }; }
1.1 misho 2650: fi
2651:
2652: fi
1.1.1.3 ! misho 2653: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 2654: echo "${ECHO_T}$ac_cv_host" >&6; }
1.1 misho 2655: case $ac_cv_host in
2656: *-*-*) ;;
1.1.1.3 ! misho 2657: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 2658: echo "$as_me: error: invalid value of canonical host" >&2;}
! 2659: { (exit 1); exit 1; }; };;
1.1 misho 2660: esac
2661: host=$ac_cv_host
2662: ac_save_IFS=$IFS; IFS='-'
2663: set x $ac_cv_host
2664: shift
2665: host_cpu=$1
2666: host_vendor=$2
2667: shift; shift
2668: # Remember, the first character of IFS is used to create $*,
2669: # except with old shells:
2670: host_os=$*
2671: IFS=$ac_save_IFS
2672: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673:
2674:
1.1.1.3 ! misho 2675: { echo "$as_me:$LINENO: checking target system type" >&5
! 2676: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
! 2677: if test "${ac_cv_target+set}" = set; then
! 2678: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2679: else
2680: if test "x$target_alias" = x; then
2681: ac_cv_target=$ac_cv_host
2682: else
2683: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.1.1.3 ! misho 2684: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
! 2685: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
! 2686: { (exit 1); exit 1; }; }
1.1 misho 2687: fi
2688:
2689: fi
1.1.1.3 ! misho 2690: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 2691: echo "${ECHO_T}$ac_cv_target" >&6; }
1.1 misho 2692: case $ac_cv_target in
2693: *-*-*) ;;
1.1.1.3 ! misho 2694: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
! 2695: echo "$as_me: error: invalid value of canonical target" >&2;}
! 2696: { (exit 1); exit 1; }; };;
1.1 misho 2697: esac
2698: target=$ac_cv_target
2699: ac_save_IFS=$IFS; IFS='-'
2700: set x $ac_cv_target
2701: shift
2702: target_cpu=$1
2703: target_vendor=$2
2704: shift; shift
2705: # Remember, the first character of IFS is used to create $*,
2706: # except with old shells:
2707: target_os=$*
2708: IFS=$ac_save_IFS
2709: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2710:
2711:
2712: # The aliases save the names the user supplied, while $host etc.
2713: # will get canonicalized.
2714: test -n "$target_alias" &&
2715: test "$program_prefix$program_suffix$program_transform_name" = \
2716: NONENONEs,x,x, &&
2717: program_prefix=${target_alias}-
2718:
2719: if test -z "$host_alias" && test -n "$host"; then
2720: host_alias=$host
2721: fi
2722: if test -z "$host_alias"; then
1.1.1.3 ! misho 2723: { { echo "$as_me:$LINENO: error: host_alias is not set!" >&5
! 2724: echo "$as_me: error: host_alias is not set!" >&2;}
! 2725: { (exit 1); exit 1; }; }
1.1 misho 2726: fi
2727:
2728:
2729: ac_config_headers="$ac_config_headers main/php_config.h"
2730:
2731:
1.1.1.2 misho 2732:
2733:
1.1.1.3 ! misho 2734:
! 2735:
1.1 misho 2736: PHP_MAJOR_VERSION=5
1.1.1.2 misho 2737: PHP_MINOR_VERSION=4
1.1.1.3 ! misho 2738: PHP_RELEASE_VERSION=17
1.1 misho 2739: PHP_EXTRA_VERSION=""
2740: PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
2741: PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION`
2742:
2743:
2744: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION"
2745:
2746:
2747: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION"
2748:
2749:
2750: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION"
2751:
2752:
2753: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION"
2754:
2755:
2756:
2757:
2758: echo "/* automatically generated by configure */" > php_version.h.new
2759: echo "/* edit configure.in to change version number */" >> php_version.h.new
2760: echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new
2761: echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new
2762: echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new
2763: echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new
2764: echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
2765: echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new
2766: cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1
2767: if test $? -ne 0 ; then
2768: rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \
2769: echo 'Updated main/php_version.h'
2770: else
2771: rm -f php_version.h.new
2772: fi
2773:
2774:
2775:
2776: if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
1.1.1.3 ! misho 2777: { { echo "$as_me:$LINENO: error: --with-shared-apache is not supported. Please refer to the documentation for using APXS" >&5
! 2778: echo "$as_me: error: --with-shared-apache is not supported. Please refer to the documentation for using APXS" >&2;}
! 2779: { (exit 1); exit 1; }; }
1.1 misho 2780: fi
2781:
2782: if test -n "$with_apache" && test -n "$with_apxs"; then
1.1.1.3 ! misho 2783: { { echo "$as_me:$LINENO: error: --with-apache and --with-apxs cannot be used together" >&5
! 2784: echo "$as_me: error: --with-apache and --with-apxs cannot be used together" >&2;}
! 2785: { (exit 1); exit 1; }; }
1.1 misho 2786: fi
2787:
2788: if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then
1.1.1.3 ! misho 2789: { { echo "$as_me:$LINENO: error: --with-apxs2filter and --with-apxs2 cannot be used together" >&5
! 2790: echo "$as_me: error: --with-apxs2filter and --with-apxs2 cannot be used together" >&2;}
! 2791: { (exit 1); exit 1; }; }
1.1 misho 2792: fi
2793:
2794:
2795:
2796: cwd=`pwd`
2797:
2798: php_shtool=$srcdir/build/shtool
2799: T_MD=`$php_shtool echo -n -e %B`
2800: T_ME=`$php_shtool echo -n -e %b`
2801:
2802:
2803: test -d include || $php_shtool mkdir include
2804: > Makefile.objects
2805: > Makefile.fragments
2806: pattern=define
2807: $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
2808:
2809:
2810: test -z "$CFLAGS" && auto_cflags=1
2811:
2812: abs_srcdir=`(cd $srcdir; pwd)`
2813: abs_builddir=`pwd`
2814:
2815: php_abs_top_srcdir=$abs_srcdir
2816: php_abs_top_builddir=$abs_builddir
2817:
2818:
2819: $php_shtool mkdir -p libs
2820: rm -f libs/*
2821:
2822:
2823: ac_ext=c
2824: ac_cpp='$CPP $CPPFLAGS'
2825: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828: if test -n "$ac_tool_prefix"; then
2829: for ac_prog in cc gcc
2830: do
2831: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.3 ! misho 2833: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2834: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 2835: if test "${ac_cv_prog_CC+set}" = set; then
! 2836: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2837: else
2838: if test -n "$CC"; then
2839: ac_cv_prog_CC="$CC" # Let the user override the test.
2840: else
2841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842: for as_dir in $PATH
2843: do
2844: IFS=$as_save_IFS
2845: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 2846: for ac_exec_ext in '' $ac_executable_extensions; do
! 2847: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 2848: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.3 ! misho 2849: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2850: break 2
2851: fi
2852: done
1.1.1.3 ! misho 2853: done
1.1 misho 2854: IFS=$as_save_IFS
2855:
2856: fi
2857: fi
2858: CC=$ac_cv_prog_CC
2859: if test -n "$CC"; then
1.1.1.3 ! misho 2860: { echo "$as_me:$LINENO: result: $CC" >&5
! 2861: echo "${ECHO_T}$CC" >&6; }
1.1 misho 2862: else
1.1.1.3 ! misho 2863: { echo "$as_me:$LINENO: result: no" >&5
! 2864: echo "${ECHO_T}no" >&6; }
1.1 misho 2865: fi
2866:
2867:
2868: test -n "$CC" && break
2869: done
2870: fi
2871: if test -z "$CC"; then
2872: ac_ct_CC=$CC
2873: for ac_prog in cc gcc
2874: do
2875: # Extract the first word of "$ac_prog", so it can be a program name with args.
2876: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 2877: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2878: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 2879: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 2881: else
2882: if test -n "$ac_ct_CC"; then
2883: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884: else
2885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886: for as_dir in $PATH
2887: do
2888: IFS=$as_save_IFS
2889: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 2890: for ac_exec_ext in '' $ac_executable_extensions; do
! 2891: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 2892: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.3 ! misho 2893: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2894: break 2
2895: fi
2896: done
1.1.1.3 ! misho 2897: done
1.1 misho 2898: IFS=$as_save_IFS
2899:
2900: fi
2901: fi
2902: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903: if test -n "$ac_ct_CC"; then
1.1.1.3 ! misho 2904: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2905: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 misho 2906: else
1.1.1.3 ! misho 2907: { echo "$as_me:$LINENO: result: no" >&5
! 2908: echo "${ECHO_T}no" >&6; }
1.1 misho 2909: fi
2910:
2911:
2912: test -n "$ac_ct_CC" && break
2913: done
2914:
2915: if test "x$ac_ct_CC" = x; then
2916: CC=""
2917: else
2918: case $cross_compiling:$ac_tool_warned in
2919: yes:)
1.1.1.3 ! misho 2920: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2921: whose name does not start with the host triplet. If you think this
! 2922: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 2923: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2924: whose name does not start with the host triplet. If you think this
! 2925: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 2926: ac_tool_warned=yes ;;
2927: esac
2928: CC=$ac_ct_CC
2929: fi
2930: fi
2931:
2932:
1.1.1.3 ! misho 2933: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
! 2934: See \`config.log' for more details." >&5
! 2935: echo "$as_me: error: no acceptable C compiler found in \$PATH
! 2936: See \`config.log' for more details." >&2;}
! 2937: { (exit 1); exit 1; }; }
1.1 misho 2938:
2939: # Provide some information about the compiler.
1.1.1.3 ! misho 2940: echo "$as_me:$LINENO: checking for C compiler version" >&5
! 2941: ac_compiler=`set X $ac_compile; echo $2`
! 2942: { (ac_try="$ac_compiler --version >&5"
1.1 misho 2943: case "(($ac_try" in
2944: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945: *) ac_try_echo=$ac_try;;
2946: esac
1.1.1.3 ! misho 2947: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2948: (eval "$ac_compiler --version >&5") 2>&5
1.1 misho 2949: ac_status=$?
1.1.1.3 ! misho 2950: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2951: (exit $ac_status); }
! 2952: { (ac_try="$ac_compiler -v >&5"
! 2953: case "(($ac_try" in
! 2954: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2955: *) ac_try_echo=$ac_try;;
! 2956: esac
! 2957: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2958: (eval "$ac_compiler -v >&5") 2>&5
! 2959: ac_status=$?
! 2960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2961: (exit $ac_status); }
! 2962: { (ac_try="$ac_compiler -V >&5"
! 2963: case "(($ac_try" in
! 2964: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2965: *) ac_try_echo=$ac_try;;
! 2966: esac
! 2967: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2968: (eval "$ac_compiler -V >&5") 2>&5
! 2969: ac_status=$?
! 2970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2971: (exit $ac_status); }
1.1 misho 2972:
1.1.1.3 ! misho 2973: cat >conftest.$ac_ext <<_ACEOF
! 2974: /* confdefs.h. */
! 2975: _ACEOF
! 2976: cat confdefs.h >>conftest.$ac_ext
! 2977: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 2978: /* end confdefs.h. */
2979:
2980: int
2981: main ()
2982: {
2983:
2984: ;
2985: return 0;
2986: }
2987: _ACEOF
2988: ac_clean_files_save=$ac_clean_files
1.1.1.3 ! misho 2989: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 misho 2990: # Try to create an executable without -o first, disregard a.out.
2991: # It will help us diagnose broken compilers, and finding out an intuition
2992: # of exeext.
1.1.1.3 ! misho 2993: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2994: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
! 2995: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2996: #
! 2997: # List of possible output files, starting from the most likely.
! 2998: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 2999: # only as a last resort. b.out is created by i960 compilers.
! 3000: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 3001: #
! 3002: # The IRIX 6 linker writes into existing files which may not be
! 3003: # executable, retaining their permissions. Remove them first so a
! 3004: # subsequent execution test works.
1.1 misho 3005: ac_rmfiles=
3006: for ac_file in $ac_files
3007: do
3008: case $ac_file in
1.1.1.3 ! misho 3009: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1 misho 3010: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3011: esac
3012: done
3013: rm -f $ac_rmfiles
3014:
1.1.1.3 ! misho 3015: if { (ac_try="$ac_link_default"
1.1 misho 3016: case "(($ac_try" in
3017: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018: *) ac_try_echo=$ac_try;;
3019: esac
1.1.1.3 ! misho 3020: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3021: (eval "$ac_link_default") 2>&5
3022: ac_status=$?
1.1.1.3 ! misho 3023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3024: (exit $ac_status); }; then
1.1 misho 3025: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3026: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3027: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3028: # so that the user can short-circuit this test for compilers unknown to
3029: # Autoconf.
3030: for ac_file in $ac_files ''
3031: do
3032: test -f "$ac_file" || continue
3033: case $ac_file in
1.1.1.3 ! misho 3034: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.1 misho 3035: ;;
3036: [ab].out )
3037: # We found the default executable, but exeext='' is most
3038: # certainly right.
3039: break;;
3040: *.* )
1.1.1.3 ! misho 3041: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.1 misho 3042: then :; else
3043: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044: fi
3045: # We set ac_cv_exeext here because the later test for it is not
3046: # safe: cross compilers may not add the suffix if given an `-o'
3047: # argument, so we may need to know it at that point already.
3048: # Even if this section looks crufty: it has the advantage of
3049: # actually working.
3050: break;;
3051: * )
3052: break;;
3053: esac
3054: done
3055: test "$ac_cv_exeext" = no && ac_cv_exeext=
3056:
3057: else
3058: ac_file=''
3059: fi
1.1.1.3 ! misho 3060:
! 3061: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 3062: echo "${ECHO_T}$ac_file" >&6; }
! 3063: if test -z "$ac_file"; then
! 3064: echo "$as_me: failed program was:" >&5
! 3065: sed 's/^/| /' conftest.$ac_ext >&5
! 3066:
! 3067: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
! 3068: See \`config.log' for more details." >&5
! 3069: echo "$as_me: error: C compiler cannot create executables
! 3070: See \`config.log' for more details." >&2;}
! 3071: { (exit 77); exit 77; }; }
! 3072: fi
! 3073:
1.1 misho 3074: ac_exeext=$ac_cv_exeext
3075:
1.1.1.3 ! misho 3076: # Check that the compiler produces executables we can run. If not, either
! 3077: # the compiler is broken, or we cross compile.
! 3078: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 3079: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
! 3080: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 3081: # If not cross compiling, check that we can run a simple program.
! 3082: if test "$cross_compiling" != yes; then
! 3083: if { ac_try='./$ac_file'
! 3084: { (case "(($ac_try" in
! 3085: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3086: *) ac_try_echo=$ac_try;;
! 3087: esac
! 3088: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3089: (eval "$ac_try") 2>&5
! 3090: ac_status=$?
! 3091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3092: (exit $ac_status); }; }; then
! 3093: cross_compiling=no
! 3094: else
! 3095: if test "$cross_compiling" = maybe; then
! 3096: cross_compiling=yes
! 3097: else
! 3098: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
! 3099: If you meant to cross compile, use \`--host'.
! 3100: See \`config.log' for more details." >&5
! 3101: echo "$as_me: error: cannot run C compiled programs.
! 3102: If you meant to cross compile, use \`--host'.
! 3103: See \`config.log' for more details." >&2;}
! 3104: { (exit 1); exit 1; }; }
! 3105: fi
! 3106: fi
! 3107: fi
! 3108: { echo "$as_me:$LINENO: result: yes" >&5
! 3109: echo "${ECHO_T}yes" >&6; }
! 3110:
! 3111: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 misho 3112: ac_clean_files=$ac_clean_files_save
1.1.1.3 ! misho 3113: # Check that the compiler produces executables we can run. If not, either
! 3114: # the compiler is broken, or we cross compile.
! 3115: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 3116: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 3117: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 3118: echo "${ECHO_T}$cross_compiling" >&6; }
! 3119:
! 3120: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 3121: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 3122: if { (ac_try="$ac_link"
1.1 misho 3123: case "(($ac_try" in
3124: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125: *) ac_try_echo=$ac_try;;
3126: esac
1.1.1.3 ! misho 3127: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3128: (eval "$ac_link") 2>&5
3129: ac_status=$?
1.1.1.3 ! misho 3130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3131: (exit $ac_status); }; then
1.1 misho 3132: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3133: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3134: # work properly (i.e., refer to `conftest.exe'), while it won't with
3135: # `rm'.
3136: for ac_file in conftest.exe conftest conftest.*; do
3137: test -f "$ac_file" || continue
3138: case $ac_file in
1.1.1.3 ! misho 3139: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1 misho 3140: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141: break;;
3142: * ) break;;
3143: esac
3144: done
3145: else
1.1.1.3 ! misho 3146: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
! 3147: See \`config.log' for more details." >&5
! 3148: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
! 3149: See \`config.log' for more details." >&2;}
! 3150: { (exit 1); exit 1; }; }
! 3151: fi
! 3152:
! 3153: rm -f conftest$ac_cv_exeext
! 3154: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 3155: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 misho 3156:
3157: rm -f conftest.$ac_ext
3158: EXEEXT=$ac_cv_exeext
3159: ac_exeext=$EXEEXT
1.1.1.3 ! misho 3160: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 3161: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
! 3162: if test "${ac_cv_objext+set}" = set; then
! 3163: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3164: else
1.1.1.3 ! misho 3165: cat >conftest.$ac_ext <<_ACEOF
! 3166: /* confdefs.h. */
! 3167: _ACEOF
! 3168: cat confdefs.h >>conftest.$ac_ext
! 3169: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3170: /* end confdefs.h. */
3171:
3172: int
3173: main ()
3174: {
3175:
3176: ;
3177: return 0;
3178: }
3179: _ACEOF
3180: rm -f conftest.o conftest.obj
1.1.1.3 ! misho 3181: if { (ac_try="$ac_compile"
1.1 misho 3182: case "(($ac_try" in
3183: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184: *) ac_try_echo=$ac_try;;
3185: esac
1.1.1.3 ! misho 3186: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3187: (eval "$ac_compile") 2>&5
3188: ac_status=$?
1.1.1.3 ! misho 3189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3190: (exit $ac_status); }; then
1.1 misho 3191: for ac_file in conftest.o conftest.obj conftest.*; do
3192: test -f "$ac_file" || continue;
3193: case $ac_file in
1.1.1.3 ! misho 3194: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1 misho 3195: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196: break;;
3197: esac
3198: done
3199: else
1.1.1.3 ! misho 3200: echo "$as_me: failed program was:" >&5
1.1 misho 3201: sed 's/^/| /' conftest.$ac_ext >&5
3202:
1.1.1.3 ! misho 3203: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
! 3204: See \`config.log' for more details." >&5
! 3205: echo "$as_me: error: cannot compute suffix of object files: cannot compile
! 3206: See \`config.log' for more details." >&2;}
! 3207: { (exit 1); exit 1; }; }
1.1 misho 3208: fi
1.1.1.3 ! misho 3209:
1.1 misho 3210: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211: fi
1.1.1.3 ! misho 3212: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 3213: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1 misho 3214: OBJEXT=$ac_cv_objext
3215: ac_objext=$OBJEXT
1.1.1.3 ! misho 3216: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 3217: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
! 3218: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 3219: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3220: else
1.1.1.3 ! misho 3221: cat >conftest.$ac_ext <<_ACEOF
! 3222: /* confdefs.h. */
! 3223: _ACEOF
! 3224: cat confdefs.h >>conftest.$ac_ext
! 3225: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3226: /* end confdefs.h. */
3227:
3228: int
3229: main ()
3230: {
3231: #ifndef __GNUC__
3232: choke me
3233: #endif
3234:
3235: ;
3236: return 0;
3237: }
3238: _ACEOF
1.1.1.3 ! misho 3239: rm -f conftest.$ac_objext
! 3240: if { (ac_try="$ac_compile"
! 3241: case "(($ac_try" in
! 3242: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3243: *) ac_try_echo=$ac_try;;
! 3244: esac
! 3245: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3246: (eval "$ac_compile") 2>conftest.er1
! 3247: ac_status=$?
! 3248: grep -v '^ *+' conftest.er1 >conftest.err
! 3249: rm -f conftest.er1
! 3250: cat conftest.err >&5
! 3251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3252: (exit $ac_status); } && {
! 3253: test -z "$ac_c_werror_flag" ||
! 3254: test ! -s conftest.err
! 3255: } && test -s conftest.$ac_objext; then
1.1 misho 3256: ac_compiler_gnu=yes
3257: else
1.1.1.3 ! misho 3258: echo "$as_me: failed program was:" >&5
! 3259: sed 's/^/| /' conftest.$ac_ext >&5
! 3260:
! 3261: ac_compiler_gnu=no
1.1 misho 3262: fi
1.1.1.3 ! misho 3263:
1.1 misho 3264: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3266:
3267: fi
1.1.1.3 ! misho 3268: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3269: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
! 3270: GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1 misho 3271: ac_test_CFLAGS=${CFLAGS+set}
3272: ac_save_CFLAGS=$CFLAGS
1.1.1.3 ! misho 3273: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3274: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
! 3275: if test "${ac_cv_prog_cc_g+set}" = set; then
! 3276: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3277: else
3278: ac_save_c_werror_flag=$ac_c_werror_flag
3279: ac_c_werror_flag=yes
3280: ac_cv_prog_cc_g=no
3281: CFLAGS="-g"
1.1.1.3 ! misho 3282: cat >conftest.$ac_ext <<_ACEOF
! 3283: /* confdefs.h. */
! 3284: _ACEOF
! 3285: cat confdefs.h >>conftest.$ac_ext
! 3286: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3287: /* end confdefs.h. */
3288:
3289: int
3290: main ()
3291: {
3292:
3293: ;
3294: return 0;
3295: }
3296: _ACEOF
1.1.1.3 ! misho 3297: rm -f conftest.$ac_objext
! 3298: if { (ac_try="$ac_compile"
! 3299: case "(($ac_try" in
! 3300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3301: *) ac_try_echo=$ac_try;;
! 3302: esac
! 3303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3304: (eval "$ac_compile") 2>conftest.er1
! 3305: ac_status=$?
! 3306: grep -v '^ *+' conftest.er1 >conftest.err
! 3307: rm -f conftest.er1
! 3308: cat conftest.err >&5
! 3309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3310: (exit $ac_status); } && {
! 3311: test -z "$ac_c_werror_flag" ||
! 3312: test ! -s conftest.err
! 3313: } && test -s conftest.$ac_objext; then
1.1 misho 3314: ac_cv_prog_cc_g=yes
3315: else
1.1.1.3 ! misho 3316: echo "$as_me: failed program was:" >&5
! 3317: sed 's/^/| /' conftest.$ac_ext >&5
! 3318:
! 3319: CFLAGS=""
! 3320: cat >conftest.$ac_ext <<_ACEOF
! 3321: /* confdefs.h. */
! 3322: _ACEOF
! 3323: cat confdefs.h >>conftest.$ac_ext
! 3324: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3325: /* end confdefs.h. */
3326:
3327: int
3328: main ()
3329: {
3330:
3331: ;
3332: return 0;
3333: }
3334: _ACEOF
1.1.1.3 ! misho 3335: rm -f conftest.$ac_objext
! 3336: if { (ac_try="$ac_compile"
! 3337: case "(($ac_try" in
! 3338: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3339: *) ac_try_echo=$ac_try;;
! 3340: esac
! 3341: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3342: (eval "$ac_compile") 2>conftest.er1
! 3343: ac_status=$?
! 3344: grep -v '^ *+' conftest.er1 >conftest.err
! 3345: rm -f conftest.er1
! 3346: cat conftest.err >&5
! 3347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3348: (exit $ac_status); } && {
! 3349: test -z "$ac_c_werror_flag" ||
! 3350: test ! -s conftest.err
! 3351: } && test -s conftest.$ac_objext; then
! 3352: :
1.1 misho 3353: else
1.1.1.3 ! misho 3354: echo "$as_me: failed program was:" >&5
! 3355: sed 's/^/| /' conftest.$ac_ext >&5
! 3356:
! 3357: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misho 3358: CFLAGS="-g"
1.1.1.3 ! misho 3359: cat >conftest.$ac_ext <<_ACEOF
! 3360: /* confdefs.h. */
! 3361: _ACEOF
! 3362: cat confdefs.h >>conftest.$ac_ext
! 3363: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3364: /* end confdefs.h. */
3365:
3366: int
3367: main ()
3368: {
3369:
3370: ;
3371: return 0;
3372: }
3373: _ACEOF
1.1.1.3 ! misho 3374: rm -f conftest.$ac_objext
! 3375: if { (ac_try="$ac_compile"
! 3376: case "(($ac_try" in
! 3377: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3378: *) ac_try_echo=$ac_try;;
! 3379: esac
! 3380: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3381: (eval "$ac_compile") 2>conftest.er1
! 3382: ac_status=$?
! 3383: grep -v '^ *+' conftest.er1 >conftest.err
! 3384: rm -f conftest.er1
! 3385: cat conftest.err >&5
! 3386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3387: (exit $ac_status); } && {
! 3388: test -z "$ac_c_werror_flag" ||
! 3389: test ! -s conftest.err
! 3390: } && test -s conftest.$ac_objext; then
1.1 misho 3391: ac_cv_prog_cc_g=yes
1.1.1.3 ! misho 3392: else
! 3393: echo "$as_me: failed program was:" >&5
! 3394: sed 's/^/| /' conftest.$ac_ext >&5
! 3395:
! 3396:
1.1 misho 3397: fi
1.1.1.3 ! misho 3398:
1.1 misho 3399: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400: fi
1.1.1.3 ! misho 3401:
1.1 misho 3402: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403: fi
1.1.1.3 ! misho 3404:
1.1 misho 3405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406: ac_c_werror_flag=$ac_save_c_werror_flag
3407: fi
1.1.1.3 ! misho 3408: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3409: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1 misho 3410: if test "$ac_test_CFLAGS" = set; then
3411: CFLAGS=$ac_save_CFLAGS
3412: elif test $ac_cv_prog_cc_g = yes; then
3413: if test "$GCC" = yes; then
3414: CFLAGS="-g -O2"
3415: else
3416: CFLAGS="-g"
3417: fi
3418: else
3419: if test "$GCC" = yes; then
3420: CFLAGS="-O2"
3421: else
3422: CFLAGS=
3423: fi
3424: fi
1.1.1.3 ! misho 3425: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 3426: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 3427: if test "${ac_cv_prog_cc_c89+set}" = set; then
! 3428: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3429: else
3430: ac_cv_prog_cc_c89=no
3431: ac_save_CC=$CC
1.1.1.3 ! misho 3432: cat >conftest.$ac_ext <<_ACEOF
! 3433: /* confdefs.h. */
! 3434: _ACEOF
! 3435: cat confdefs.h >>conftest.$ac_ext
! 3436: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3437: /* end confdefs.h. */
3438: #include <stdarg.h>
3439: #include <stdio.h>
1.1.1.3 ! misho 3440: #include <sys/types.h>
! 3441: #include <sys/stat.h>
1.1 misho 3442: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3443: struct buf { int x; };
3444: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3445: static char *e (p, i)
3446: char **p;
3447: int i;
3448: {
3449: return p[i];
3450: }
3451: static char *f (char * (*g) (char **, int), char **p, ...)
3452: {
3453: char *s;
3454: va_list v;
3455: va_start (v,p);
3456: s = g (p, va_arg (v,int));
3457: va_end (v);
3458: return s;
3459: }
3460:
3461: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3462: function prototypes and stuff, but not '\xHH' hex character constants.
3463: These don't provoke an error unfortunately, instead are silently treated
3464: as 'x'. The following induces an error, until -std is added to get
3465: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3466: array size at least. It's necessary to write '\x00'==0 to get something
3467: that's true only with -std. */
3468: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469:
3470: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3471: inside strings and character constants. */
3472: #define FOO(x) 'x'
3473: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474:
3475: int test (int i, double x);
3476: struct s1 {int (*f) (int a);};
3477: struct s2 {int (*f) (double a);};
3478: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479: int argc;
3480: char **argv;
3481: int
3482: main ()
3483: {
3484: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3485: ;
3486: return 0;
3487: }
3488: _ACEOF
3489: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3490: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491: do
3492: CC="$ac_save_CC $ac_arg"
1.1.1.3 ! misho 3493: rm -f conftest.$ac_objext
! 3494: if { (ac_try="$ac_compile"
! 3495: case "(($ac_try" in
! 3496: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3497: *) ac_try_echo=$ac_try;;
! 3498: esac
! 3499: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3500: (eval "$ac_compile") 2>conftest.er1
! 3501: ac_status=$?
! 3502: grep -v '^ *+' conftest.er1 >conftest.err
! 3503: rm -f conftest.er1
! 3504: cat conftest.err >&5
! 3505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3506: (exit $ac_status); } && {
! 3507: test -z "$ac_c_werror_flag" ||
! 3508: test ! -s conftest.err
! 3509: } && test -s conftest.$ac_objext; then
1.1 misho 3510: ac_cv_prog_cc_c89=$ac_arg
1.1.1.3 ! misho 3511: else
! 3512: echo "$as_me: failed program was:" >&5
! 3513: sed 's/^/| /' conftest.$ac_ext >&5
! 3514:
! 3515:
1.1 misho 3516: fi
1.1.1.3 ! misho 3517:
1.1 misho 3518: rm -f core conftest.err conftest.$ac_objext
3519: test "x$ac_cv_prog_cc_c89" != "xno" && break
3520: done
3521: rm -f conftest.$ac_ext
3522: CC=$ac_save_CC
3523:
3524: fi
3525: # AC_CACHE_VAL
3526: case "x$ac_cv_prog_cc_c89" in
3527: x)
1.1.1.3 ! misho 3528: { echo "$as_me:$LINENO: result: none needed" >&5
! 3529: echo "${ECHO_T}none needed" >&6; } ;;
1.1 misho 3530: xno)
1.1.1.3 ! misho 3531: { echo "$as_me:$LINENO: result: unsupported" >&5
! 3532: echo "${ECHO_T}unsupported" >&6; } ;;
1.1 misho 3533: *)
3534: CC="$CC $ac_cv_prog_cc_c89"
1.1.1.3 ! misho 3535: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 3536: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1 misho 3537: esac
3538:
3539:
3540: ac_ext=c
3541: ac_cpp='$CPP $CPPFLAGS'
3542: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545:
3546:
3547: ac_ext=c
3548: ac_cpp='$CPP $CPPFLAGS'
3549: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.3 ! misho 3552: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 3553: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 misho 3554: # On Suns, sometimes $CPP names a directory.
3555: if test -n "$CPP" && test -d "$CPP"; then
3556: CPP=
3557: fi
3558: if test -z "$CPP"; then
1.1.1.3 ! misho 3559: if test "${ac_cv_prog_CPP+set}" = set; then
! 3560: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3561: else
3562: # Double quotes because CPP needs to be expanded
3563: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3564: do
3565: ac_preproc_ok=false
3566: for ac_c_preproc_warn_flag in '' yes
3567: do
3568: # Use a header file that comes with gcc, so configuring glibc
3569: # with a fresh cross-compiler works.
3570: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571: # <limits.h> exists even on freestanding compilers.
3572: # On the NeXT, cc -E runs the code through the compiler's parser,
3573: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 3574: cat >conftest.$ac_ext <<_ACEOF
! 3575: /* confdefs.h. */
! 3576: _ACEOF
! 3577: cat confdefs.h >>conftest.$ac_ext
! 3578: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3579: /* end confdefs.h. */
3580: #ifdef __STDC__
3581: # include <limits.h>
3582: #else
3583: # include <assert.h>
3584: #endif
3585: Syntax error
3586: _ACEOF
1.1.1.3 ! misho 3587: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3588: case "(($ac_try" in
! 3589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3590: *) ac_try_echo=$ac_try;;
! 3591: esac
! 3592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3593: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 3594: ac_status=$?
! 3595: grep -v '^ *+' conftest.er1 >conftest.err
! 3596: rm -f conftest.er1
! 3597: cat conftest.err >&5
! 3598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3599: (exit $ac_status); } >/dev/null && {
! 3600: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3601: test ! -s conftest.err
! 3602: }; then
! 3603: :
1.1 misho 3604: else
1.1.1.3 ! misho 3605: echo "$as_me: failed program was:" >&5
! 3606: sed 's/^/| /' conftest.$ac_ext >&5
! 3607:
1.1 misho 3608: # Broken: fails on valid input.
3609: continue
3610: fi
1.1.1.3 ! misho 3611:
! 3612: rm -f conftest.err conftest.$ac_ext
1.1 misho 3613:
3614: # OK, works on sane cases. Now check whether nonexistent headers
3615: # can be detected and how.
1.1.1.3 ! misho 3616: cat >conftest.$ac_ext <<_ACEOF
! 3617: /* confdefs.h. */
! 3618: _ACEOF
! 3619: cat confdefs.h >>conftest.$ac_ext
! 3620: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3621: /* end confdefs.h. */
3622: #include <ac_nonexistent.h>
3623: _ACEOF
1.1.1.3 ! misho 3624: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3625: case "(($ac_try" in
! 3626: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3627: *) ac_try_echo=$ac_try;;
! 3628: esac
! 3629: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3630: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 3631: ac_status=$?
! 3632: grep -v '^ *+' conftest.er1 >conftest.err
! 3633: rm -f conftest.er1
! 3634: cat conftest.err >&5
! 3635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3636: (exit $ac_status); } >/dev/null && {
! 3637: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3638: test ! -s conftest.err
! 3639: }; then
1.1 misho 3640: # Broken: success on invalid input.
3641: continue
3642: else
1.1.1.3 ! misho 3643: echo "$as_me: failed program was:" >&5
! 3644: sed 's/^/| /' conftest.$ac_ext >&5
! 3645:
1.1 misho 3646: # Passes both tests.
3647: ac_preproc_ok=:
3648: break
3649: fi
1.1.1.3 ! misho 3650:
! 3651: rm -f conftest.err conftest.$ac_ext
1.1 misho 3652:
3653: done
3654: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 3655: rm -f conftest.err conftest.$ac_ext
! 3656: if $ac_preproc_ok; then
1.1 misho 3657: break
3658: fi
3659:
3660: done
3661: ac_cv_prog_CPP=$CPP
3662:
3663: fi
3664: CPP=$ac_cv_prog_CPP
3665: else
3666: ac_cv_prog_CPP=$CPP
3667: fi
1.1.1.3 ! misho 3668: { echo "$as_me:$LINENO: result: $CPP" >&5
! 3669: echo "${ECHO_T}$CPP" >&6; }
1.1 misho 3670: ac_preproc_ok=false
3671: for ac_c_preproc_warn_flag in '' yes
3672: do
3673: # Use a header file that comes with gcc, so configuring glibc
3674: # with a fresh cross-compiler works.
3675: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676: # <limits.h> exists even on freestanding compilers.
3677: # On the NeXT, cc -E runs the code through the compiler's parser,
3678: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 3679: cat >conftest.$ac_ext <<_ACEOF
! 3680: /* confdefs.h. */
! 3681: _ACEOF
! 3682: cat confdefs.h >>conftest.$ac_ext
! 3683: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3684: /* end confdefs.h. */
3685: #ifdef __STDC__
3686: # include <limits.h>
3687: #else
3688: # include <assert.h>
3689: #endif
3690: Syntax error
3691: _ACEOF
1.1.1.3 ! misho 3692: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3693: case "(($ac_try" in
! 3694: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3695: *) ac_try_echo=$ac_try;;
! 3696: esac
! 3697: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3698: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 3699: ac_status=$?
! 3700: grep -v '^ *+' conftest.er1 >conftest.err
! 3701: rm -f conftest.er1
! 3702: cat conftest.err >&5
! 3703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3704: (exit $ac_status); } >/dev/null && {
! 3705: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3706: test ! -s conftest.err
! 3707: }; then
! 3708: :
1.1 misho 3709: else
1.1.1.3 ! misho 3710: echo "$as_me: failed program was:" >&5
! 3711: sed 's/^/| /' conftest.$ac_ext >&5
! 3712:
1.1 misho 3713: # Broken: fails on valid input.
3714: continue
3715: fi
1.1.1.3 ! misho 3716:
! 3717: rm -f conftest.err conftest.$ac_ext
1.1 misho 3718:
3719: # OK, works on sane cases. Now check whether nonexistent headers
3720: # can be detected and how.
1.1.1.3 ! misho 3721: cat >conftest.$ac_ext <<_ACEOF
! 3722: /* confdefs.h. */
! 3723: _ACEOF
! 3724: cat confdefs.h >>conftest.$ac_ext
! 3725: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3726: /* end confdefs.h. */
3727: #include <ac_nonexistent.h>
3728: _ACEOF
1.1.1.3 ! misho 3729: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3730: case "(($ac_try" in
! 3731: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3732: *) ac_try_echo=$ac_try;;
! 3733: esac
! 3734: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3735: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 3736: ac_status=$?
! 3737: grep -v '^ *+' conftest.er1 >conftest.err
! 3738: rm -f conftest.er1
! 3739: cat conftest.err >&5
! 3740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3741: (exit $ac_status); } >/dev/null && {
! 3742: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3743: test ! -s conftest.err
! 3744: }; then
1.1 misho 3745: # Broken: success on invalid input.
3746: continue
3747: else
1.1.1.3 ! misho 3748: echo "$as_me: failed program was:" >&5
! 3749: sed 's/^/| /' conftest.$ac_ext >&5
! 3750:
1.1 misho 3751: # Passes both tests.
3752: ac_preproc_ok=:
3753: break
3754: fi
1.1.1.3 ! misho 3755:
! 3756: rm -f conftest.err conftest.$ac_ext
1.1 misho 3757:
3758: done
3759: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 3760: rm -f conftest.err conftest.$ac_ext
! 3761: if $ac_preproc_ok; then
! 3762: :
1.1 misho 3763: else
1.1.1.3 ! misho 3764: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
! 3765: See \`config.log' for more details." >&5
! 3766: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
! 3767: See \`config.log' for more details." >&2;}
! 3768: { (exit 1); exit 1; }; }
1.1 misho 3769: fi
3770:
3771: ac_ext=c
3772: ac_cpp='$CPP $CPPFLAGS'
3773: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776:
3777:
3778:
3779: ICC="no"
1.1.1.3 ! misho 3780: { echo "$as_me:$LINENO: checking for icc" >&5
! 3781: echo $ECHO_N "checking for icc... $ECHO_C" >&6; }
! 3782: cat >conftest.$ac_ext <<_ACEOF
! 3783: /* confdefs.h. */
! 3784: _ACEOF
! 3785: cat confdefs.h >>conftest.$ac_ext
! 3786: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3787: /* end confdefs.h. */
3788: __INTEL_COMPILER
3789: _ACEOF
3790: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 3791: $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
1.1 misho 3792: ICC="no"
1.1.1.3 ! misho 3793: { echo "$as_me:$LINENO: result: no" >&5
! 3794: echo "${ECHO_T}no" >&6; }
1.1 misho 3795: else
3796: ICC="yes"
3797: GCC="no"
1.1.1.3 ! misho 3798: { echo "$as_me:$LINENO: result: yes" >&5
! 3799: echo "${ECHO_T}yes" >&6; }
1.1 misho 3800:
3801: fi
1.1.1.3 ! misho 3802: rm -f -r conftest*
1.1 misho 3803:
3804:
3805:
3806: SUNCC="no"
1.1.1.3 ! misho 3807: { echo "$as_me:$LINENO: checking for suncc" >&5
! 3808: echo $ECHO_N "checking for suncc... $ECHO_C" >&6; }
! 3809: cat >conftest.$ac_ext <<_ACEOF
! 3810: /* confdefs.h. */
! 3811: _ACEOF
! 3812: cat confdefs.h >>conftest.$ac_ext
! 3813: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3814: /* end confdefs.h. */
3815: __SUNPRO_C
3816: _ACEOF
3817: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 3818: $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then
1.1 misho 3819: SUNCC="no"
1.1.1.3 ! misho 3820: { echo "$as_me:$LINENO: result: no" >&5
! 3821: echo "${ECHO_T}no" >&6; }
1.1 misho 3822: else
3823: SUNCC="yes"
3824: GCC="no"
3825: test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
3826: GCC=""
1.1.1.3 ! misho 3827: { echo "$as_me:$LINENO: result: yes" >&5
! 3828: echo "${ECHO_T}yes" >&6; }
1.1 misho 3829:
3830: fi
1.1.1.3 ! misho 3831: rm -f -r conftest*
1.1 misho 3832:
3833:
3834: if test "x$CC" != xcc; then
1.1.1.3 ! misho 3835: { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
! 3836: echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
1.1 misho 3837: else
1.1.1.3 ! misho 3838: { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
! 3839: echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
1.1 misho 3840: fi
1.1.1.3 ! misho 3841: set dummy $CC; ac_cc=`echo $2 |
1.1 misho 3842: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.1.1.3 ! misho 3843: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
! 3844: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3845: else
1.1.1.3 ! misho 3846: cat >conftest.$ac_ext <<_ACEOF
! 3847: /* confdefs.h. */
! 3848: _ACEOF
! 3849: cat confdefs.h >>conftest.$ac_ext
! 3850: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3851: /* end confdefs.h. */
3852:
3853: int
3854: main ()
3855: {
3856:
3857: ;
3858: return 0;
3859: }
3860: _ACEOF
3861: # Make sure it works both with $CC and with simple cc.
3862: # We do the test twice because some compilers refuse to overwrite an
3863: # existing .o file with -o, though they will create one.
3864: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3865: rm -f conftest2.*
1.1.1.3 ! misho 3866: if { (case "(($ac_try" in
1.1 misho 3867: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868: *) ac_try_echo=$ac_try;;
3869: esac
1.1.1.3 ! misho 3870: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3871: (eval "$ac_try") 2>&5
3872: ac_status=$?
1.1.1.3 ! misho 3873: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3874: (exit $ac_status); } &&
! 3875: test -f conftest2.$ac_objext && { (case "(($ac_try" in
1.1 misho 3876: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877: *) ac_try_echo=$ac_try;;
3878: esac
1.1.1.3 ! misho 3879: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3880: (eval "$ac_try") 2>&5
3881: ac_status=$?
1.1.1.3 ! misho 3882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3883: (exit $ac_status); };
1.1 misho 3884: then
3885: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3886: if test "x$CC" != xcc; then
3887: # Test first that cc exists at all.
3888: if { ac_try='cc -c conftest.$ac_ext >&5'
1.1.1.3 ! misho 3889: { (case "(($ac_try" in
1.1 misho 3890: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891: *) ac_try_echo=$ac_try;;
3892: esac
1.1.1.3 ! misho 3893: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3894: (eval "$ac_try") 2>&5
3895: ac_status=$?
1.1.1.3 ! misho 3896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3897: (exit $ac_status); }; }; then
1.1 misho 3898: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3899: rm -f conftest2.*
1.1.1.3 ! misho 3900: if { (case "(($ac_try" in
1.1 misho 3901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902: *) ac_try_echo=$ac_try;;
3903: esac
1.1.1.3 ! misho 3904: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3905: (eval "$ac_try") 2>&5
3906: ac_status=$?
1.1.1.3 ! misho 3907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3908: (exit $ac_status); } &&
! 3909: test -f conftest2.$ac_objext && { (case "(($ac_try" in
1.1 misho 3910: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911: *) ac_try_echo=$ac_try;;
3912: esac
1.1.1.3 ! misho 3913: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1 misho 3914: (eval "$ac_try") 2>&5
3915: ac_status=$?
1.1.1.3 ! misho 3916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3917: (exit $ac_status); };
1.1 misho 3918: then
3919: # cc works too.
3920: :
3921: else
3922: # cc exists but doesn't like -o.
3923: eval ac_cv_prog_cc_${ac_cc}_c_o=no
3924: fi
3925: fi
3926: fi
3927: else
3928: eval ac_cv_prog_cc_${ac_cc}_c_o=no
3929: fi
1.1.1.3 ! misho 3930: rm -f -r core conftest*
1.1 misho 3931:
3932: fi
3933: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
1.1.1.3 ! misho 3934: { echo "$as_me:$LINENO: result: yes" >&5
! 3935: echo "${ECHO_T}yes" >&6; }
1.1 misho 3936: else
1.1.1.3 ! misho 3937: { echo "$as_me:$LINENO: result: no" >&5
! 3938: echo "${ECHO_T}no" >&6; }
1.1 misho 3939:
1.1.1.3 ! misho 3940: cat >>confdefs.h <<\_ACEOF
! 3941: #define NO_MINUS_C_MINUS_O 1
! 3942: _ACEOF
1.1 misho 3943:
3944: fi
3945:
3946: ac_ext=c
3947: ac_cpp='$CPP $CPPFLAGS'
3948: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.3 ! misho 3951: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 3952: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 misho 3953: # On Suns, sometimes $CPP names a directory.
3954: if test -n "$CPP" && test -d "$CPP"; then
3955: CPP=
3956: fi
3957: if test -z "$CPP"; then
1.1.1.3 ! misho 3958: if test "${ac_cv_prog_CPP+set}" = set; then
! 3959: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 3960: else
3961: # Double quotes because CPP needs to be expanded
3962: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3963: do
3964: ac_preproc_ok=false
3965: for ac_c_preproc_warn_flag in '' yes
3966: do
3967: # Use a header file that comes with gcc, so configuring glibc
3968: # with a fresh cross-compiler works.
3969: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970: # <limits.h> exists even on freestanding compilers.
3971: # On the NeXT, cc -E runs the code through the compiler's parser,
3972: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 3973: cat >conftest.$ac_ext <<_ACEOF
! 3974: /* confdefs.h. */
! 3975: _ACEOF
! 3976: cat confdefs.h >>conftest.$ac_ext
! 3977: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 3978: /* end confdefs.h. */
3979: #ifdef __STDC__
3980: # include <limits.h>
3981: #else
3982: # include <assert.h>
3983: #endif
3984: Syntax error
3985: _ACEOF
1.1.1.3 ! misho 3986: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3987: case "(($ac_try" in
! 3988: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3989: *) ac_try_echo=$ac_try;;
! 3990: esac
! 3991: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3992: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 3993: ac_status=$?
! 3994: grep -v '^ *+' conftest.er1 >conftest.err
! 3995: rm -f conftest.er1
! 3996: cat conftest.err >&5
! 3997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3998: (exit $ac_status); } >/dev/null && {
! 3999: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4000: test ! -s conftest.err
! 4001: }; then
! 4002: :
1.1 misho 4003: else
1.1.1.3 ! misho 4004: echo "$as_me: failed program was:" >&5
! 4005: sed 's/^/| /' conftest.$ac_ext >&5
! 4006:
1.1 misho 4007: # Broken: fails on valid input.
4008: continue
4009: fi
1.1.1.3 ! misho 4010:
! 4011: rm -f conftest.err conftest.$ac_ext
1.1 misho 4012:
4013: # OK, works on sane cases. Now check whether nonexistent headers
4014: # can be detected and how.
1.1.1.3 ! misho 4015: cat >conftest.$ac_ext <<_ACEOF
! 4016: /* confdefs.h. */
! 4017: _ACEOF
! 4018: cat confdefs.h >>conftest.$ac_ext
! 4019: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4020: /* end confdefs.h. */
4021: #include <ac_nonexistent.h>
4022: _ACEOF
1.1.1.3 ! misho 4023: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4024: case "(($ac_try" in
! 4025: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4026: *) ac_try_echo=$ac_try;;
! 4027: esac
! 4028: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4029: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4030: ac_status=$?
! 4031: grep -v '^ *+' conftest.er1 >conftest.err
! 4032: rm -f conftest.er1
! 4033: cat conftest.err >&5
! 4034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4035: (exit $ac_status); } >/dev/null && {
! 4036: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4037: test ! -s conftest.err
! 4038: }; then
1.1 misho 4039: # Broken: success on invalid input.
4040: continue
4041: else
1.1.1.3 ! misho 4042: echo "$as_me: failed program was:" >&5
! 4043: sed 's/^/| /' conftest.$ac_ext >&5
! 4044:
1.1 misho 4045: # Passes both tests.
4046: ac_preproc_ok=:
4047: break
4048: fi
1.1.1.3 ! misho 4049:
! 4050: rm -f conftest.err conftest.$ac_ext
1.1 misho 4051:
4052: done
4053: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 4054: rm -f conftest.err conftest.$ac_ext
! 4055: if $ac_preproc_ok; then
1.1 misho 4056: break
4057: fi
4058:
4059: done
4060: ac_cv_prog_CPP=$CPP
4061:
4062: fi
4063: CPP=$ac_cv_prog_CPP
4064: else
4065: ac_cv_prog_CPP=$CPP
4066: fi
1.1.1.3 ! misho 4067: { echo "$as_me:$LINENO: result: $CPP" >&5
! 4068: echo "${ECHO_T}$CPP" >&6; }
1.1 misho 4069: ac_preproc_ok=false
4070: for ac_c_preproc_warn_flag in '' yes
4071: do
4072: # Use a header file that comes with gcc, so configuring glibc
4073: # with a fresh cross-compiler works.
4074: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075: # <limits.h> exists even on freestanding compilers.
4076: # On the NeXT, cc -E runs the code through the compiler's parser,
4077: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 4078: cat >conftest.$ac_ext <<_ACEOF
! 4079: /* confdefs.h. */
! 4080: _ACEOF
! 4081: cat confdefs.h >>conftest.$ac_ext
! 4082: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4083: /* end confdefs.h. */
4084: #ifdef __STDC__
4085: # include <limits.h>
4086: #else
4087: # include <assert.h>
4088: #endif
4089: Syntax error
4090: _ACEOF
1.1.1.3 ! misho 4091: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4092: case "(($ac_try" in
! 4093: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4094: *) ac_try_echo=$ac_try;;
! 4095: esac
! 4096: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4097: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4098: ac_status=$?
! 4099: grep -v '^ *+' conftest.er1 >conftest.err
! 4100: rm -f conftest.er1
! 4101: cat conftest.err >&5
! 4102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4103: (exit $ac_status); } >/dev/null && {
! 4104: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4105: test ! -s conftest.err
! 4106: }; then
! 4107: :
1.1 misho 4108: else
1.1.1.3 ! misho 4109: echo "$as_me: failed program was:" >&5
! 4110: sed 's/^/| /' conftest.$ac_ext >&5
! 4111:
1.1 misho 4112: # Broken: fails on valid input.
4113: continue
4114: fi
1.1.1.3 ! misho 4115:
! 4116: rm -f conftest.err conftest.$ac_ext
1.1 misho 4117:
4118: # OK, works on sane cases. Now check whether nonexistent headers
4119: # can be detected and how.
1.1.1.3 ! misho 4120: cat >conftest.$ac_ext <<_ACEOF
! 4121: /* confdefs.h. */
! 4122: _ACEOF
! 4123: cat confdefs.h >>conftest.$ac_ext
! 4124: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4125: /* end confdefs.h. */
4126: #include <ac_nonexistent.h>
4127: _ACEOF
1.1.1.3 ! misho 4128: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4129: case "(($ac_try" in
! 4130: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4131: *) ac_try_echo=$ac_try;;
! 4132: esac
! 4133: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4134: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4135: ac_status=$?
! 4136: grep -v '^ *+' conftest.er1 >conftest.err
! 4137: rm -f conftest.er1
! 4138: cat conftest.err >&5
! 4139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4140: (exit $ac_status); } >/dev/null && {
! 4141: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4142: test ! -s conftest.err
! 4143: }; then
1.1 misho 4144: # Broken: success on invalid input.
4145: continue
4146: else
1.1.1.3 ! misho 4147: echo "$as_me: failed program was:" >&5
! 4148: sed 's/^/| /' conftest.$ac_ext >&5
! 4149:
1.1 misho 4150: # Passes both tests.
4151: ac_preproc_ok=:
4152: break
4153: fi
1.1.1.3 ! misho 4154:
! 4155: rm -f conftest.err conftest.$ac_ext
1.1 misho 4156:
4157: done
4158: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 4159: rm -f conftest.err conftest.$ac_ext
! 4160: if $ac_preproc_ok; then
! 4161: :
1.1 misho 4162: else
1.1.1.3 ! misho 4163: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
! 4164: See \`config.log' for more details." >&5
! 4165: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
! 4166: See \`config.log' for more details." >&2;}
! 4167: { (exit 1); exit 1; }; }
1.1 misho 4168: fi
4169:
4170: ac_ext=c
4171: ac_cpp='$CPP $CPPFLAGS'
4172: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175:
4176:
1.1.1.3 ! misho 4177: { echo "$as_me:$LINENO: checking for AIX" >&5
! 4178: echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
! 4179: cat >conftest.$ac_ext <<_ACEOF
! 4180: /* confdefs.h. */
1.1 misho 4181: _ACEOF
1.1.1.3 ! misho 4182: cat confdefs.h >>conftest.$ac_ext
! 4183: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4184: /* end confdefs.h. */
1.1.1.3 ! misho 4185: #ifdef _AIX
! 4186: yes
1.1 misho 4187: #endif
4188:
4189: _ACEOF
1.1.1.3 ! misho 4190: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4191: $EGREP "yes" >/dev/null 2>&1; then
! 4192: { echo "$as_me:$LINENO: result: yes" >&5
! 4193: echo "${ECHO_T}yes" >&6; }
! 4194: cat >>confdefs.h <<\_ACEOF
! 4195: #define _ALL_SOURCE 1
1.1 misho 4196: _ACEOF
4197:
4198: else
1.1.1.3 ! misho 4199: { echo "$as_me:$LINENO: result: no" >&5
! 4200: echo "${ECHO_T}no" >&6; }
1.1 misho 4201: fi
1.1.1.3 ! misho 4202: rm -f -r conftest*
1.1 misho 4203:
4204:
1.1.1.3 ! misho 4205: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 4206: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.1 misho 4207: LN_S=$as_ln_s
4208: if test "$LN_S" = "ln -s"; then
1.1.1.3 ! misho 4209: { echo "$as_me:$LINENO: result: yes" >&5
! 4210: echo "${ECHO_T}yes" >&6; }
1.1 misho 4211: else
1.1.1.3 ! misho 4212: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 4213: echo "${ECHO_T}no, using $LN_S" >&6; }
1.1 misho 4214: fi
4215:
4216:
4217:
4218: php_with_libdir=lib
4219:
1.1.1.3 ! misho 4220: { echo "$as_me:$LINENO: checking for system library directory" >&5
! 4221: echo $ECHO_N "checking for system library directory... $ECHO_C" >&6; }
1.1 misho 4222:
4223: # Check whether --with-libdir was given.
1.1.1.3 ! misho 4224: if test "${with_libdir+set}" = set; then
1.1 misho 4225: withval=$with_libdir; PHP_LIBDIR=$withval
4226: else
4227:
4228: PHP_LIBDIR=lib
4229:
4230:
4231: fi
4232:
4233:
4234: ext_output=$PHP_LIBDIR
1.1.1.3 ! misho 4235: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 4236: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 4237:
4238:
4239:
4240:
4241:
4242: php_enable_rpath=yes
4243:
1.1.1.3 ! misho 4244: { echo "$as_me:$LINENO: checking whether to enable runpaths" >&5
! 4245: echo $ECHO_N "checking whether to enable runpaths... $ECHO_C" >&6; }
1.1 misho 4246: # Check whether --enable-rpath was given.
1.1.1.3 ! misho 4247: if test "${enable_rpath+set}" = set; then
1.1 misho 4248: enableval=$enable_rpath; PHP_RPATH=$enableval
4249: else
4250:
4251: PHP_RPATH=yes
4252:
4253:
4254: fi
4255:
4256:
4257: ext_output=$PHP_RPATH
1.1.1.3 ! misho 4258: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 4259: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 4260:
4261:
4262:
4263:
4264:
1.1.1.3 ! misho 4265: { echo "$as_me:$LINENO: checking if compiler supports -R" >&5
! 4266: echo $ECHO_N "checking if compiler supports -R... $ECHO_C" >&6; }
! 4267: if test "${php_cv_cc_dashr+set}" = set; then
! 4268: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4269: else
4270:
4271: SAVE_LIBS=$LIBS
4272: LIBS="-R /usr/$PHP_LIBDIR $LIBS"
1.1.1.3 ! misho 4273: cat >conftest.$ac_ext <<_ACEOF
! 4274: /* confdefs.h. */
! 4275: _ACEOF
! 4276: cat confdefs.h >>conftest.$ac_ext
! 4277: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4278: /* end confdefs.h. */
4279:
4280: int
4281: main ()
4282: {
4283:
4284: ;
4285: return 0;
4286: }
4287: _ACEOF
1.1.1.3 ! misho 4288: rm -f conftest.$ac_objext conftest$ac_exeext
! 4289: if { (ac_try="$ac_link"
! 4290: case "(($ac_try" in
! 4291: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4292: *) ac_try_echo=$ac_try;;
! 4293: esac
! 4294: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4295: (eval "$ac_link") 2>conftest.er1
! 4296: ac_status=$?
! 4297: grep -v '^ *+' conftest.er1 >conftest.err
! 4298: rm -f conftest.er1
! 4299: cat conftest.err >&5
! 4300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4301: (exit $ac_status); } && {
! 4302: test -z "$ac_c_werror_flag" ||
! 4303: test ! -s conftest.err
! 4304: } && test -s conftest$ac_exeext &&
! 4305: $as_test_x conftest$ac_exeext; then
1.1 misho 4306: php_cv_cc_dashr=yes
4307: else
1.1.1.3 ! misho 4308: echo "$as_me: failed program was:" >&5
! 4309: sed 's/^/| /' conftest.$ac_ext >&5
! 4310:
! 4311: php_cv_cc_dashr=no
1.1 misho 4312: fi
1.1.1.3 ! misho 4313:
! 4314: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4315: conftest$ac_exeext conftest.$ac_ext
1.1 misho 4316: LIBS=$SAVE_LIBS
4317: fi
4318:
1.1.1.3 ! misho 4319: { echo "$as_me:$LINENO: result: $php_cv_cc_dashr" >&5
! 4320: echo "${ECHO_T}$php_cv_cc_dashr" >&6; }
1.1 misho 4321: if test $php_cv_cc_dashr = "yes"; then
4322: ld_runpath_switch=-R
4323: else
1.1.1.3 ! misho 4324: { echo "$as_me:$LINENO: checking if compiler supports -Wl,-rpath," >&5
! 4325: echo $ECHO_N "checking if compiler supports -Wl,-rpath,... $ECHO_C" >&6; }
! 4326: if test "${php_cv_cc_rpath+set}" = set; then
! 4327: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4328: else
4329:
4330: SAVE_LIBS=$LIBS
4331: LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
1.1.1.3 ! misho 4332: cat >conftest.$ac_ext <<_ACEOF
! 4333: /* confdefs.h. */
! 4334: _ACEOF
! 4335: cat confdefs.h >>conftest.$ac_ext
! 4336: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4337: /* end confdefs.h. */
4338:
4339: int
4340: main ()
4341: {
4342:
4343: ;
4344: return 0;
4345: }
4346: _ACEOF
1.1.1.3 ! misho 4347: rm -f conftest.$ac_objext conftest$ac_exeext
! 4348: if { (ac_try="$ac_link"
! 4349: case "(($ac_try" in
! 4350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4351: *) ac_try_echo=$ac_try;;
! 4352: esac
! 4353: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4354: (eval "$ac_link") 2>conftest.er1
! 4355: ac_status=$?
! 4356: grep -v '^ *+' conftest.er1 >conftest.err
! 4357: rm -f conftest.er1
! 4358: cat conftest.err >&5
! 4359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4360: (exit $ac_status); } && {
! 4361: test -z "$ac_c_werror_flag" ||
! 4362: test ! -s conftest.err
! 4363: } && test -s conftest$ac_exeext &&
! 4364: $as_test_x conftest$ac_exeext; then
1.1 misho 4365: php_cv_cc_rpath=yes
4366: else
1.1.1.3 ! misho 4367: echo "$as_me: failed program was:" >&5
! 4368: sed 's/^/| /' conftest.$ac_ext >&5
! 4369:
! 4370: php_cv_cc_rpath=no
1.1 misho 4371: fi
1.1.1.3 ! misho 4372:
! 4373: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4374: conftest$ac_exeext conftest.$ac_ext
1.1 misho 4375: LIBS=$SAVE_LIBS
4376: fi
4377:
1.1.1.3 ! misho 4378: { echo "$as_me:$LINENO: result: $php_cv_cc_rpath" >&5
! 4379: echo "${ECHO_T}$php_cv_cc_rpath" >&6; }
1.1 misho 4380: if test $php_cv_cc_rpath = "yes"; then
4381: ld_runpath_switch=-Wl,-rpath,
4382: else
4383: ld_runpath_switch=-L
4384: fi
4385: fi
4386: if test "$PHP_RPATH" = "no"; then
4387: ld_runpath_switch=
4388: fi
4389:
4390:
4391:
4392: for ac_prog in gawk nawk awk mawk
4393: do
4394: # Extract the first word of "$ac_prog", so it can be a program name with args.
4395: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 4396: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4397: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 4398: if test "${ac_cv_prog_AWK+set}" = set; then
! 4399: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4400: else
4401: if test -n "$AWK"; then
4402: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4403: else
4404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405: as_dummy="/usr/xpg4/bin/:$PATH"
4406: for as_dir in $as_dummy
4407: do
4408: IFS=$as_save_IFS
4409: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 4410: for ac_exec_ext in '' $ac_executable_extensions; do
! 4411: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 4412: ac_cv_prog_AWK="$ac_prog"
1.1.1.3 ! misho 4413: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4414: break 2
4415: fi
4416: done
1.1.1.3 ! misho 4417: done
1.1 misho 4418: IFS=$as_save_IFS
4419:
4420: fi
4421: fi
4422: AWK=$ac_cv_prog_AWK
4423: if test -n "$AWK"; then
1.1.1.3 ! misho 4424: { echo "$as_me:$LINENO: result: $AWK" >&5
! 4425: echo "${ECHO_T}$AWK" >&6; }
1.1 misho 4426: else
1.1.1.3 ! misho 4427: { echo "$as_me:$LINENO: result: no" >&5
! 4428: echo "${ECHO_T}no" >&6; }
1.1 misho 4429: fi
4430:
4431:
4432: test -n "$AWK" && break
4433: done
4434: test -n "$AWK" || AWK="bork"
4435:
4436: case "$AWK" in
4437: *mawk)
1.1.1.3 ! misho 4438: { echo "$as_me:$LINENO: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
! 4439: echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
1.1 misho 4440: ;;
4441: *gawk)
4442: ;;
4443: bork)
1.1.1.3 ! misho 4444: { { echo "$as_me:$LINENO: error: Could not find awk; Install GNU awk" >&5
! 4445: echo "$as_me: error: Could not find awk; Install GNU awk" >&2;}
! 4446: { (exit 1); exit 1; }; }
1.1 misho 4447: ;;
4448: *)
1.1.1.3 ! misho 4449: { echo "$as_me:$LINENO: checking if $AWK is broken" >&5
! 4450: echo $ECHO_N "checking if $AWK is broken... $ECHO_C" >&6; }
1.1 misho 4451: if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
1.1.1.3 ! misho 4452: { echo "$as_me:$LINENO: result: yes" >&5
! 4453: echo "${ECHO_T}yes" >&6; }
! 4454: { { echo "$as_me:$LINENO: error: You should install GNU awk" >&5
! 4455: echo "$as_me: error: You should install GNU awk" >&2;}
! 4456: { (exit 1); exit 1; }; }
1.1 misho 4457: else
1.1.1.3 ! misho 4458: { echo "$as_me:$LINENO: result: no" >&5
! 4459: echo "${ECHO_T}no" >&6; }
1.1 misho 4460: fi
4461: ;;
4462: esac
4463:
4464: PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
4465:
4466:
4467:
4468: for ac_prog in 'bison -y' byacc
4469: do
4470: # Extract the first word of "$ac_prog", so it can be a program name with args.
4471: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 4472: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4473: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 4474: if test "${ac_cv_prog_YACC+set}" = set; then
! 4475: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4476: else
4477: if test -n "$YACC"; then
4478: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4479: else
4480: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481: for as_dir in $PATH
4482: do
4483: IFS=$as_save_IFS
4484: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 4485: for ac_exec_ext in '' $ac_executable_extensions; do
! 4486: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 4487: ac_cv_prog_YACC="$ac_prog"
1.1.1.3 ! misho 4488: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4489: break 2
4490: fi
4491: done
1.1.1.3 ! misho 4492: done
1.1 misho 4493: IFS=$as_save_IFS
4494:
4495: fi
4496: fi
4497: YACC=$ac_cv_prog_YACC
4498: if test -n "$YACC"; then
1.1.1.3 ! misho 4499: { echo "$as_me:$LINENO: result: $YACC" >&5
! 4500: echo "${ECHO_T}$YACC" >&6; }
1.1 misho 4501: else
1.1.1.3 ! misho 4502: { echo "$as_me:$LINENO: result: no" >&5
! 4503: echo "${ECHO_T}no" >&6; }
1.1 misho 4504: fi
4505:
4506:
4507: test -n "$YACC" && break
4508: done
4509: test -n "$YACC" || YACC="yacc"
4510:
4511:
4512: # we only support certain bison versions
1.1.1.3 ! misho 4513: bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2"
1.1 misho 4514:
4515: # for standalone build of Zend Engine
4516: test -z "$SED" && SED=sed
4517:
4518: bison_version=none
4519: if test "$YACC"; then
1.1.1.3 ! misho 4520: { echo "$as_me:$LINENO: checking for bison version" >&5
! 4521: echo $ECHO_N "checking for bison version... $ECHO_C" >&6; }
! 4522: if test "${php_cv_bison_version+set}" = set; then
! 4523: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4524: else
4525:
4526: bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
4527: php_cv_bison_version=invalid
4528: if test -n "$bison_version_vars"; then
4529: set $bison_version_vars
4530: bison_version="${1}.${2}"
4531: for bison_check_version in $bison_version_list; do
4532: if test "$bison_version" = "$bison_check_version"; then
4533: php_cv_bison_version="$bison_check_version (ok)"
4534: break
4535: fi
4536: done
4537: fi
4538:
4539: fi
1.1.1.3 ! misho 4540: { echo "$as_me:$LINENO: result: $php_cv_bison_version" >&5
! 4541: echo "${ECHO_T}$php_cv_bison_version" >&6; }
1.1 misho 4542: fi
4543: case $php_cv_bison_version in
4544: ""|invalid)
4545: bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
1.1.1.3 ! misho 4546: { echo "$as_me:$LINENO: WARNING: $bison_msg" >&5
! 4547: echo "$as_me: WARNING: $bison_msg" >&2;}
1.1 misho 4548: YACC="exit 0;"
4549: ;;
4550: esac
4551:
4552:
4553: PHP_VAR_SUBST="$PHP_VAR_SUBST YACC"
4554:
4555:
4556:
4557: # Extract the first word of "re2c", so it can be a program name with args.
4558: set dummy re2c; ac_word=$2
1.1.1.3 ! misho 4559: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4560: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 4561: if test "${ac_cv_prog_RE2C+set}" = set; then
! 4562: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4563: else
4564: if test -n "$RE2C"; then
4565: ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
4566: else
4567: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568: for as_dir in $PATH
4569: do
4570: IFS=$as_save_IFS
4571: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 4572: for ac_exec_ext in '' $ac_executable_extensions; do
! 4573: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 4574: ac_cv_prog_RE2C="re2c"
1.1.1.3 ! misho 4575: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4576: break 2
4577: fi
4578: done
1.1.1.3 ! misho 4579: done
1.1 misho 4580: IFS=$as_save_IFS
4581:
4582: fi
4583: fi
4584: RE2C=$ac_cv_prog_RE2C
4585: if test -n "$RE2C"; then
1.1.1.3 ! misho 4586: { echo "$as_me:$LINENO: result: $RE2C" >&5
! 4587: echo "${ECHO_T}$RE2C" >&6; }
1.1 misho 4588: else
1.1.1.3 ! misho 4589: { echo "$as_me:$LINENO: result: no" >&5
! 4590: echo "${ECHO_T}no" >&6; }
1.1 misho 4591: fi
4592:
4593:
4594: if test -n "$RE2C"; then
1.1.1.3 ! misho 4595: { echo "$as_me:$LINENO: checking for re2c version" >&5
! 4596: echo $ECHO_N "checking for re2c version... $ECHO_C" >&6; }
! 4597: if test "${php_cv_re2c_version+set}" = set; then
! 4598: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4599: else
4600:
4601: re2c_vernum=`$RE2C --vernum 2>/dev/null`
4602: if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
4603: php_cv_re2c_version=invalid
4604: else
4605: php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
4606: fi
4607:
4608: fi
1.1.1.3 ! misho 4609: { echo "$as_me:$LINENO: result: $php_cv_re2c_version" >&5
! 4610: echo "${ECHO_T}$php_cv_re2c_version" >&6; }
1.1 misho 4611: fi
4612: case $php_cv_re2c_version in
4613: ""|invalid)
1.1.1.3 ! misho 4614: { echo "$as_me:$LINENO: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
! 4615: echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
1.1 misho 4616: RE2C="exit 0;"
4617: ;;
4618: esac
4619:
4620: PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
4621:
4622:
4623:
4624: case $php_cv_bison_version in
4625: ""|invalid)
4626: if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
1.1.1.3 ! misho 4627: { { echo "$as_me:$LINENO: error: bison is required to build PHP/Zend when building a GIT checkout!" >&5
! 4628: echo "$as_me: error: bison is required to build PHP/Zend when building a GIT checkout!" >&2;}
! 4629: { (exit 1); exit 1; }; }
1.1 misho 4630: fi
4631: ;;
4632: esac
4633:
4634:
4635: php_enable_re2c_cgoto=no
4636:
1.1.1.3 ! misho 4637: { echo "$as_me:$LINENO: checking whether to enable computed goto gcc extension with re2c" >&5
! 4638: echo $ECHO_N "checking whether to enable computed goto gcc extension with re2c... $ECHO_C" >&6; }
1.1 misho 4639: # Check whether --enable-re2c-cgoto was given.
1.1.1.3 ! misho 4640: if test "${enable_re2c_cgoto+set}" = set; then
1.1 misho 4641: enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval
4642: else
4643:
4644: PHP_RE2C_CGOTO=no
4645:
4646:
4647: fi
4648:
4649:
4650: ext_output=$PHP_RE2C_CGOTO
1.1.1.3 ! misho 4651: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 4652: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 4653:
4654:
4655:
4656:
4657: if test "$PHP_RE2C_CGOTO" = "no"; then
4658: RE2C_FLAGS=""
4659: else
1.1.1.3 ! misho 4660: { echo "$as_me:$LINENO: checking whether re2c -g works" >&5
! 4661: echo $ECHO_N "checking whether re2c -g works... $ECHO_C" >&6; }
! 4662: cat >conftest.$ac_ext <<_ACEOF
! 4663: /* confdefs.h. */
! 4664: _ACEOF
! 4665: cat confdefs.h >>conftest.$ac_ext
! 4666: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 4667: /* end confdefs.h. */
4668:
4669: int
4670: main ()
4671: {
4672:
4673: int main(int argc, const char **argv)
4674: {
4675: argc = argc;
4676: argv = argv;
4677: label1:
4678: label2:
4679: static void *adr[] = { &&label1, &&label2};
4680: goto *adr[0];
4681: return 0;
4682: }
4683:
4684: ;
4685: return 0;
4686: }
4687: _ACEOF
1.1.1.3 ! misho 4688: rm -f conftest.$ac_objext
! 4689: if { (ac_try="$ac_compile"
! 4690: case "(($ac_try" in
! 4691: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4692: *) ac_try_echo=$ac_try;;
! 4693: esac
! 4694: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4695: (eval "$ac_compile") 2>conftest.er1
! 4696: ac_status=$?
! 4697: grep -v '^ *+' conftest.er1 >conftest.err
! 4698: rm -f conftest.er1
! 4699: cat conftest.err >&5
! 4700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4701: (exit $ac_status); } && {
! 4702: test -z "$ac_c_werror_flag" ||
! 4703: test ! -s conftest.err
! 4704: } && test -s conftest.$ac_objext; then
1.1 misho 4705:
4706: RE2C_FLAGS=""
1.1.1.3 ! misho 4707: { echo "$as_me:$LINENO: result: no" >&5
! 4708: echo "${ECHO_T}no" >&6; }
1.1 misho 4709:
4710: else
1.1.1.3 ! misho 4711: echo "$as_me: failed program was:" >&5
! 4712: sed 's/^/| /' conftest.$ac_ext >&5
! 4713:
1.1 misho 4714:
4715: RE2C_FLAGS="-g"
1.1.1.3 ! misho 4716: { echo "$as_me:$LINENO: result: yes" >&5
! 4717: echo "${ECHO_T}yes" >&6; }
1.1 misho 4718:
4719: fi
1.1.1.3 ! misho 4720:
1.1 misho 4721: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722: fi
4723:
4724: PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS"
4725:
4726:
4727:
4728: case $host_cpu in
4729: alpha*)
4730: if test "$GCC" = "yes"; then
4731: CFLAGS="$CFLAGS -mieee"
4732: else
4733: CFLAGS="$CFLAGS -ieee"
4734: fi
4735: ;;
4736: sparc*)
4737: if test "$SUNCC" = "yes"; then
4738: CFLAGS="$CFLAGS -xmemalign=8s"
4739: fi
4740: ;;
4741: esac
4742:
4743: if test "$GCC" = "yes"; then
4744: case $host_alias in
4745: *darwin*)
4746: GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'`
4747: ;;
4748: *)
4749: GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'`
4750: ;;
4751: esac
4752: if test $GCC_MAJOR_VERSION -ge 4; then
4753: CFLAGS="$CFLAGS -fvisibility=hidden"
4754: fi
4755: fi
4756:
4757: case $host_alias in
4758: *solaris*)
4759: CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
4760: if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
4761: enable_libgcc=yes
4762: fi
4763: ;;
4764: *dgux*)
4765: CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
4766: ;;
4767: *darwin*|*rhapsody*)
4768: if test -n "$GCC"; then
4769:
4770: gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp
1.1.1.3 ! misho 4771: { echo "$as_me:$LINENO: checking whether $CC supports -no-cpp-precomp" >&5
! 4772: echo $ECHO_N "checking whether $CC supports -no-cpp-precomp... $ECHO_C" >&6; }
! 4773: if test "${ac_cv_gcc_arg_no_cpp_precomp+set}" = set; then
! 4774: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 4775: else
4776:
4777: echo 'void somefunc() { };' > conftest.c
4778: cmd='$CC -no-cpp-precomp -c conftest.c'
4779: if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then
4780: ac_result=no
4781: else
4782: ac_result=yes
4783: fi
4784: eval $gcc_arg_name=$ac_result
4785: rm -f conftest.*
4786:
4787: fi
1.1.1.3 ! misho 4788: { echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5
! 4789: echo "${ECHO_T}$ac_cv_gcc_arg_no_cpp_precomp" >&6; }
1.1 misho 4790: if eval test "\$$gcc_arg_name" = "yes"; then
4791: gcc_no_cpp_precomp=yes
4792: else
4793: :
4794:
4795: fi
4796:
4797: if test "$gcc_no_cpp_precomp" = "yes"; then
4798: CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4799: fi
4800: fi
4801: php_multiple_shlib_versions_ok=yes
4802: ;;
4803: *beos*)
4804: beos_threads=1
4805: LIBS="$LIBS -lbe -lroot"
4806: ;;
4807: *mips*)
4808: CPPFLAGS="$CPPFLAGS -D_XPG_IV"
4809: ;;
4810: *hpux*)
4811: if test "$GCC" = "yes"; then
4812: CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
4813: fi
4814: ;;
4815: *netware*)
4816:
4817: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
4818: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
4819: php_c_post=
4820: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
4821: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
4822: php_cxx_post=
4823: php_lo=lo
4824:
4825: case $with_pic in
4826: yes) pic_setting='-prefer-pic';;
4827: no) pic_setting='-prefer-non-pic';;
4828: esac
4829:
4830: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
4831: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
4832: shared_c_post=
4833: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
4834: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
4835: shared_cxx_post=
4836: shared_lo=lo
4837:
4838:
4839:
4840: case /main in
4841: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
4842: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
4843: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
4844: esac
4845:
4846:
4847:
4848: b_c_pre=$php_c_pre
4849: b_cxx_pre=$php_cxx_pre
4850: b_c_meta=$php_c_meta
4851: b_cxx_meta=$php_cxx_meta
4852: b_c_post=$php_c_post
4853: b_cxx_post=$php_cxx_post
4854: b_lo=$php_lo
4855:
4856:
4857: old_IFS=$IFS
4858: for ac_src in internal_functions.c; do
4859:
4860: IFS=.
4861: set $ac_src
4862: ac_obj=$1
4863: IFS=$old_IFS
4864:
4865: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
4866:
4867: case $ac_src in
4868: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4869: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4870: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4871: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4872: esac
4873:
4874: cat >>Makefile.objects<<EOF
4875: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4876: $ac_comp
4877: EOF
4878: done
4879:
4880:
4881:
4882:
4883: case win32 in
4884: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
4885: /*) ac_srcdir=`echo "win32"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
4886: *) ac_srcdir="$abs_srcdir/win32/"; ac_bdir="win32/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
4887: esac
4888:
4889:
4890:
4891: b_c_pre=$php_c_pre
4892: b_cxx_pre=$php_cxx_pre
4893: b_c_meta=$php_c_meta
4894: b_cxx_meta=$php_cxx_meta
4895: b_c_post=$php_c_post
4896: b_cxx_post=$php_cxx_post
4897: b_lo=$php_lo
4898:
4899:
4900: old_IFS=$IFS
4901: for ac_src in sendmail.c; do
4902:
4903: IFS=.
4904: set $ac_src
4905: ac_obj=$1
4906: IFS=$old_IFS
4907:
4908: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
4909:
4910: case $ac_src in
4911: *.c) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4912: *.s) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4913: *.S) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4914: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -I$CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4915: esac
4916:
4917: cat >>Makefile.objects<<EOF
4918: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4919: $ac_comp
4920: EOF
4921: done
4922:
4923:
4924: PHP5LIB_SHARED_LIBADD=\$\(EXTRA_LIBS\)
4925: EXTENSION_DIR=sys:/php$PHP_MAJOR_VERSION/ext
4926:
4927: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP5LIB_SHARED_LIBADD"
4928:
4929:
4930: install_modules="install-modules"
4931:
4932: case $host_alias in
4933: *aix*)
4934: suffix=so
4935: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o 'netware'/php5lib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD) && mv -f 'netware'/.libs/php5lib.so 'netware'/php5lib.so'
4936: ;;
4937: *netware*)
4938: suffix=nlm
4939: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD)'
4940: ;;
4941: *)
4942: suffix=la
4943: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD)'
4944: ;;
4945: esac
4946:
4947: if test "x" = "xyes"; then
4948: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/php5lib.$suffix"
4949: else
4950: PHP_MODULES="$PHP_MODULES \$(phplibdir)/php5lib.$suffix"
4951: fi
4952:
4953: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
4954:
4955: cat >>Makefile.objects<<EOF
4956: \$(phplibdir)/php5lib.$suffix: netware/php5lib.$suffix
4957: \$(LIBTOOL) --mode=install cp netware/php5lib.$suffix \$(phplibdir)
4958:
4959: netware/php5lib.$suffix: \$(PHP_GLOBAL_OBJS) \$(PHP5LIB_SHARED_DEPENDENCIES)
4960: $link_cmd
4961:
4962: EOF
4963:
4964: ;;
4965: esac
4966:
4967: # Disable PIC mode by default where it is known to be safe to do so,
4968: # to avoid the performance hit from the lost register
1.1.1.3 ! misho 4969: { echo "$as_me:$LINENO: checking whether to force non-PIC code in shared modules" >&5
! 4970: echo $ECHO_N "checking whether to force non-PIC code in shared modules... $ECHO_C" >&6; }
1.1 misho 4971: case $host_alias in
4972: i?86-*-linux*|i?86-*-freebsd*)
4973: if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
4974: with_pic=no
1.1.1.3 ! misho 4975: { echo "$as_me:$LINENO: result: yes" >&5
! 4976: echo "${ECHO_T}yes" >&6; }
1.1 misho 4977: else
1.1.1.3 ! misho 4978: { echo "$as_me:$LINENO: result: no" >&5
! 4979: echo "${ECHO_T}no" >&6; }
1.1 misho 4980: fi
4981: ;;
4982: *)
1.1.1.3 ! misho 4983: { echo "$as_me:$LINENO: result: no" >&5
! 4984: echo "${ECHO_T}no" >&6; }
1.1 misho 4985: ;;
4986: esac
4987:
4988:
4989:
4990:
4991:
4992:
4993:
4994:
4995:
4996:
4997:
4998:
4999:
5000:
1.1.1.3 ! misho 5001: { echo "$as_me:$LINENO: checking whether /dev/urandom exists" >&5
! 5002: echo $ECHO_N "checking whether /dev/urandom exists... $ECHO_C" >&6; }
1.1 misho 5003: if test -r "/dev/urandom" && test -c "/dev/urandom"; then
5004:
1.1.1.3 ! misho 5005: cat >>confdefs.h <<\_ACEOF
! 5006: #define HAVE_DEV_URANDOM 1
! 5007: _ACEOF
1.1 misho 5008:
1.1.1.3 ! misho 5009: { echo "$as_me:$LINENO: result: yes" >&5
! 5010: echo "${ECHO_T}yes" >&6; }
1.1 misho 5011: else
1.1.1.3 ! misho 5012: { echo "$as_me:$LINENO: result: no" >&5
! 5013: echo "${ECHO_T}no" >&6; }
! 5014: { echo "$as_me:$LINENO: checking whether /dev/arandom exists" >&5
! 5015: echo $ECHO_N "checking whether /dev/arandom exists... $ECHO_C" >&6; }
1.1.1.2 misho 5016: if test -r "/dev/arandom" && test -c "/dev/arandom"; then
1.1 misho 5017:
1.1.1.3 ! misho 5018: cat >>confdefs.h <<\_ACEOF
! 5019: #define HAVE_DEV_ARANDOM 1
! 5020: _ACEOF
1.1 misho 5021:
1.1.1.3 ! misho 5022: { echo "$as_me:$LINENO: result: yes" >&5
! 5023: echo "${ECHO_T}yes" >&6; }
1.1.1.2 misho 5024: else
1.1.1.3 ! misho 5025: { echo "$as_me:$LINENO: result: no" >&5
! 5026: echo "${ECHO_T}no" >&6; }
1.1.1.2 misho 5027: fi
5028: fi
1.1 misho 5029:
5030:
5031:
5032:
5033:
5034:
5035:
5036:
5037:
5038:
5039:
5040:
5041:
5042:
5043:
5044:
5045:
5046:
5047:
5048:
5049:
5050:
5051:
5052:
1.1.1.3 ! misho 5053: if test "$beos_threads" = "1"; then
! 5054: pthreads_working="yes"
! 5055: ac_cv_pthreads_cflags=""
! 5056: else
! 5057: save_CFLAGS=$CFLAGS
! 5058: save_LIBS=$LIBS
1.1 misho 5059:
1.1.1.3 ! misho 5060: if test -n "$ac_cv_pthreads_lib"; then
! 5061: LIBS="$LIBS -l$ac_cv_pthreads_lib"
! 5062: fi
1.1 misho 5063:
1.1.1.3 ! misho 5064: if test -n "$ac_cv_pthreads_cflags"; then
! 5065: CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
! 5066: fi
1.1 misho 5067:
5068:
1.1.1.3 ! misho 5069: if test "$cross_compiling" = yes; then
1.1 misho 5070:
1.1.1.3 ! misho 5071: pthreads_working=no
! 5072: case $host_alias in
! 5073: *netware*)
! 5074: pthreads_working=yes
! 5075: esac
1.1 misho 5076:
5077:
1.1.1.3 ! misho 5078: else
! 5079: cat >conftest.$ac_ext <<_ACEOF
! 5080: /* confdefs.h. */
! 5081: _ACEOF
! 5082: cat confdefs.h >>conftest.$ac_ext
! 5083: cat >>conftest.$ac_ext <<_ACEOF
! 5084: /* end confdefs.h. */
1.1 misho 5085:
1.1.1.3 ! misho 5086: #include <pthread.h>
! 5087: #include <stddef.h>
! 5088:
! 5089: void *thread_routine(void *data) {
! 5090: return data;
! 5091: }
! 5092:
! 5093: int main() {
! 5094: pthread_t thd;
! 5095: pthread_mutexattr_t mattr;
! 5096: int data = 1;
! 5097: pthread_mutexattr_init(&mattr);
! 5098: return pthread_create(&thd, NULL, thread_routine, &data);
! 5099: }
! 5100: _ACEOF
! 5101: rm -f conftest$ac_exeext
! 5102: if { (ac_try="$ac_link"
! 5103: case "(($ac_try" in
! 5104: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5105: *) ac_try_echo=$ac_try;;
! 5106: esac
! 5107: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5108: (eval "$ac_link") 2>&5
! 5109: ac_status=$?
! 5110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5111: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5112: { (case "(($ac_try" in
! 5113: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5114: *) ac_try_echo=$ac_try;;
! 5115: esac
! 5116: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5117: (eval "$ac_try") 2>&5
! 5118: ac_status=$?
! 5119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5120: (exit $ac_status); }; }; then
! 5121:
! 5122: pthreads_working=yes
! 5123:
! 5124: else
! 5125: echo "$as_me: program exited with status $ac_status" >&5
! 5126: echo "$as_me: failed program was:" >&5
! 5127: sed 's/^/| /' conftest.$ac_ext >&5
! 5128:
! 5129: ( exit $ac_status )
! 5130:
! 5131: pthreads_working=no
! 5132:
! 5133: fi
! 5134: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5135: fi
! 5136:
! 5137:
! 5138: LIBS=$save_LIBS
! 5139: CFLAGS=$save_CFLAGS
! 5140:
! 5141: { echo "$as_me:$LINENO: checking for pthreads_cflags" >&5
! 5142: echo $ECHO_N "checking for pthreads_cflags... $ECHO_C" >&6; }
! 5143: if test "${ac_cv_pthreads_cflags+set}" = set; then
! 5144: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5145: else
! 5146:
! 5147: ac_cv_pthreads_cflags=
! 5148: if test "$pthreads_working" != "yes"; then
! 5149: for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
! 5150: ac_save=$CFLAGS
! 5151: CFLAGS="$CFLAGS $flag"
! 5152:
! 5153: if test "$cross_compiling" = yes; then
! 5154:
! 5155: pthreads_working=no
! 5156: case $host_alias in
! 5157: *netware*)
! 5158: pthreads_working=yes
! 5159: esac
! 5160:
! 5161:
! 5162: else
! 5163: cat >conftest.$ac_ext <<_ACEOF
! 5164: /* confdefs.h. */
! 5165: _ACEOF
! 5166: cat confdefs.h >>conftest.$ac_ext
! 5167: cat >>conftest.$ac_ext <<_ACEOF
! 5168: /* end confdefs.h. */
! 5169:
! 5170: #include <pthread.h>
! 5171: #include <stddef.h>
! 5172:
! 5173: void *thread_routine(void *data) {
! 5174: return data;
! 5175: }
! 5176:
! 5177: int main() {
! 5178: pthread_t thd;
! 5179: pthread_mutexattr_t mattr;
! 5180: int data = 1;
! 5181: pthread_mutexattr_init(&mattr);
! 5182: return pthread_create(&thd, NULL, thread_routine, &data);
! 5183: }
! 5184: _ACEOF
! 5185: rm -f conftest$ac_exeext
! 5186: if { (ac_try="$ac_link"
! 5187: case "(($ac_try" in
! 5188: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5189: *) ac_try_echo=$ac_try;;
! 5190: esac
! 5191: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5192: (eval "$ac_link") 2>&5
! 5193: ac_status=$?
! 5194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5195: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5196: { (case "(($ac_try" in
! 5197: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5198: *) ac_try_echo=$ac_try;;
! 5199: esac
! 5200: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5201: (eval "$ac_try") 2>&5
! 5202: ac_status=$?
! 5203: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5204: (exit $ac_status); }; }; then
! 5205:
! 5206: pthreads_working=yes
! 5207:
! 5208: else
! 5209: echo "$as_me: program exited with status $ac_status" >&5
! 5210: echo "$as_me: failed program was:" >&5
! 5211: sed 's/^/| /' conftest.$ac_ext >&5
! 5212:
! 5213: ( exit $ac_status )
! 5214:
! 5215: pthreads_working=no
! 5216:
! 5217: fi
! 5218: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5219: fi
! 5220:
! 5221:
! 5222: CFLAGS=$ac_save
! 5223: if test "$pthreads_working" = "yes"; then
! 5224: ac_cv_pthreads_cflags=$flag
! 5225: break
! 5226: fi
! 5227: done
! 5228: fi
! 5229: fi
! 5230:
! 5231: fi
! 5232: { echo "$as_me:$LINENO: result: $ac_cv_pthreads_cflags" >&5
! 5233: echo "${ECHO_T}$ac_cv_pthreads_cflags" >&6; }
! 5234:
! 5235: { echo "$as_me:$LINENO: checking for pthreads_lib" >&5
! 5236: echo $ECHO_N "checking for pthreads_lib... $ECHO_C" >&6; }
! 5237: if test "${ac_cv_pthreads_lib+set}" = set; then
! 5238: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5239: else
! 5240:
! 5241: ac_cv_pthreads_lib=
! 5242: if test "$pthreads_working" != "yes"; then
! 5243: for lib in pthread pthreads c_r; do
! 5244: ac_save=$LIBS
! 5245: LIBS="$LIBS -l$lib"
! 5246:
! 5247: if test "$cross_compiling" = yes; then
! 5248:
! 5249: pthreads_working=no
! 5250: case $host_alias in
! 5251: *netware*)
! 5252: pthreads_working=yes
! 5253: esac
! 5254:
! 5255:
! 5256: else
! 5257: cat >conftest.$ac_ext <<_ACEOF
! 5258: /* confdefs.h. */
! 5259: _ACEOF
! 5260: cat confdefs.h >>conftest.$ac_ext
! 5261: cat >>conftest.$ac_ext <<_ACEOF
! 5262: /* end confdefs.h. */
! 5263:
! 5264: #include <pthread.h>
! 5265: #include <stddef.h>
! 5266:
! 5267: void *thread_routine(void *data) {
! 5268: return data;
! 5269: }
! 5270:
! 5271: int main() {
! 5272: pthread_t thd;
! 5273: pthread_mutexattr_t mattr;
! 5274: int data = 1;
! 5275: pthread_mutexattr_init(&mattr);
! 5276: return pthread_create(&thd, NULL, thread_routine, &data);
! 5277: }
! 5278: _ACEOF
! 5279: rm -f conftest$ac_exeext
! 5280: if { (ac_try="$ac_link"
! 5281: case "(($ac_try" in
! 5282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5283: *) ac_try_echo=$ac_try;;
! 5284: esac
! 5285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5286: (eval "$ac_link") 2>&5
! 5287: ac_status=$?
! 5288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5289: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5290: { (case "(($ac_try" in
! 5291: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5292: *) ac_try_echo=$ac_try;;
! 5293: esac
! 5294: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5295: (eval "$ac_try") 2>&5
! 5296: ac_status=$?
! 5297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5298: (exit $ac_status); }; }; then
! 5299:
! 5300: pthreads_working=yes
! 5301:
! 5302: else
! 5303: echo "$as_me: program exited with status $ac_status" >&5
! 5304: echo "$as_me: failed program was:" >&5
! 5305: sed 's/^/| /' conftest.$ac_ext >&5
! 5306:
! 5307: ( exit $ac_status )
! 5308:
! 5309: pthreads_working=no
! 5310:
! 5311: fi
! 5312: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5313: fi
! 5314:
! 5315:
! 5316: LIBS=$ac_save
! 5317: if test "$pthreads_working" = "yes"; then
! 5318: ac_cv_pthreads_lib=$lib
! 5319: break
! 5320: fi
! 5321: done
! 5322: fi
! 5323:
! 5324: fi
! 5325: { echo "$as_me:$LINENO: result: $ac_cv_pthreads_lib" >&5
! 5326: echo "${ECHO_T}$ac_cv_pthreads_lib" >&6; }
! 5327:
! 5328: if test "$pthreads_working" = "yes"; then
! 5329: threads_result="POSIX-Threads found"
! 5330: else
! 5331: threads_result="POSIX-Threads not found"
! 5332: fi
! 5333:
! 5334:
! 5335: # Check whether --enable- was given.
! 5336: if test "${enable_+set}" = set; then
! 5337: enableval=$enable_;
! 5338: fi
! 5339:
! 5340:
! 5341:
! 5342:
! 5343:
! 5344: PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
! 5345:
! 5346:
! 5347:
! 5348:
! 5349:
! 5350: PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
! 5351:
! 5352:
! 5353:
! 5354: SHLIB_SUFFIX_NAME=so
! 5355: SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
! 5356: case $host_alias in
! 5357: *hpux*)
! 5358: SHLIB_SUFFIX_NAME=sl
! 5359: SHLIB_DL_SUFFIX_NAME=sl
! 5360: ;;
! 5361: *darwin*)
! 5362: SHLIB_SUFFIX_NAME=dylib
! 5363: SHLIB_DL_SUFFIX_NAME=so
! 5364: ;;
! 5365: esac
1.1 misho 5366:
5367:
5368: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5369: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5370: php_c_post=
5371: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5372: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5373: php_cxx_post=
5374: php_lo=lo
5375:
5376: case $with_pic in
5377: yes) pic_setting='-prefer-pic';;
5378: no) pic_setting='-prefer-non-pic';;
5379: esac
5380:
5381: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5382: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5383: shared_c_post=
5384: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5385: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5386: shared_cxx_post=
5387: shared_lo=lo
5388:
1.1.1.2 misho 5389: PHP_SAPI=none
1.1 misho 5390:
5391:
5392:
5393: SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME
5394: SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a
5395: SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la
5396:
5397:
1.1.1.3 ! misho 5398: { echo "$as_me:$LINENO: result: " >&5
! 5399: echo "${ECHO_T}" >&6; }
! 5400: { echo "$as_me:$LINENO: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5
! 5401: echo "${ECHO_T}${T_MD}Configuring SAPI modules${T_ME}" >&6; }
1.1 misho 5402:
5403:
5404:
5405:
5406:
5407: php_with_aolserver=no
5408:
5409:
5410:
5411: # Check whether --with-aolserver was given.
1.1.1.3 ! misho 5412: if test "${with_aolserver+set}" = set; then
1.1 misho 5413: withval=$with_aolserver; PHP_AOLSERVER=$withval
5414: else
5415:
5416: PHP_AOLSERVER=no
5417:
5418:
5419: fi
5420:
5421:
5422: ext_output=$PHP_AOLSERVER
5423:
5424:
5425:
5426:
5427:
1.1.1.3 ! misho 5428: { echo "$as_me:$LINENO: checking for AOLserver support" >&5
! 5429: echo $ECHO_N "checking for AOLserver support... $ECHO_C" >&6; }
1.1 misho 5430:
5431: if test "$PHP_AOLSERVER" != "no"; then
5432: if test -d "$PHP_AOLSERVER/include"; then
5433: PHP_AOLSERVER_SRC=$PHP_AOLSERVER
5434: fi
5435: if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then
1.1.1.3 ! misho 5436: { { echo "$as_me:$LINENO: error: Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" >&5
! 5437: echo "$as_me: error: Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" >&2;}
! 5438: { (exit 1); exit 1; }; }
1.1 misho 5439: fi
5440: if test ! -d $PHP_AOLSERVER/bin ; then
1.1.1.3 ! misho 5441: { { echo "$as_me:$LINENO: error: Please specify the path to the root of AOLserver using --with-aolserver=DIR" >&5
! 5442: echo "$as_me: error: Please specify the path to the root of AOLserver using --with-aolserver=DIR" >&2;}
! 5443: { (exit 1); exit 1; }; }
1.1 misho 5444: fi
5445:
5446: enable_maintainer_zts=yes
5447: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 5448: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 5449: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 5450: { (exit 1); exit 1; }; }
1.1 misho 5451: fi
5452:
5453:
5454: if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then
5455:
5456: if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then
5457: ai_p=$PHP_AOLSERVER_SRC/include
5458: else
5459:
5460: ep_dir="`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'`"
5461:
5462: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
5463: ai_p="$ep_realdir/`basename \"$PHP_AOLSERVER_SRC/include\"`"
5464: fi
5465:
5466:
5467:
5468: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
5469:
5470: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
5471: if test -n "$unique" && test "`eval $cmd`" = "" ; then
5472: eval "INCLUDEPATH$unique=set"
5473:
5474: if test ""; then
5475: INCLUDES="-I$ai_p $INCLUDES"
5476: else
5477: INCLUDES="$INCLUDES -I$ai_p"
5478: fi
5479:
5480: fi
5481:
5482: fi
5483:
5484:
1.1.1.3 ! misho 5485: cat >>confdefs.h <<\_ACEOF
! 5486: #define HAVE_AOLSERVER 1
! 5487: _ACEOF
1.1 misho 5488:
5489:
1.1.1.2 misho 5490: if test "shared" = "program"; then
5491: PHP_BINARIES="$PHP_BINARIES aolserver"
5492: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 5493: { { echo "$as_me:$LINENO: error:
! 5494: +--------------------------------------------------------------------+
! 5495: | *** ATTENTION *** |
! 5496: | |
! 5497: | You've configured multiple SAPIs to be build. You can build only |
! 5498: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 5499: +--------------------------------------------------------------------+
! 5500: " >&5
! 5501: echo "$as_me: error:
1.1 misho 5502: +--------------------------------------------------------------------+
5503: | *** ATTENTION *** |
5504: | |
5505: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 5506: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 5507: +--------------------------------------------------------------------+
1.1.1.3 ! misho 5508: " >&2;}
! 5509: { (exit 1); exit 1; }; }
1.1.1.2 misho 5510: else
5511: PHP_SAPI=aolserver
1.1 misho 5512: fi
5513:
5514:
5515:
1.1.1.2 misho 5516: BUILD_DIR="$BUILD_DIR sapi/aolserver"
5517:
5518:
5519:
5520: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS aolserver"
5521:
5522:
5523: case "shared" in
5524: static)
5525:
1.1 misho 5526: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5527: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5528: php_c_post=
5529: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5530: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5531: php_cxx_post=
5532: php_lo=lo
5533:
5534: case $with_pic in
5535: yes) pic_setting='-prefer-pic';;
5536: no) pic_setting='-prefer-non-pic';;
5537: esac
5538:
5539: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5540: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5541: shared_c_post=
5542: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5543: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5544: shared_cxx_post=
5545: shared_lo=lo
5546:
5547: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 5548: php_sapi_module=static
1.1 misho 5549: ;;
1.1.1.2 misho 5550: shared)
1.1 misho 5551:
5552: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5553: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5554: php_c_post=
5555: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5556: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5557: php_cxx_post=
5558: php_lo=lo
5559:
5560: case $with_pic in
5561: yes) pic_setting='-prefer-pic';;
5562: no) pic_setting='-prefer-non-pic';;
5563: esac
5564:
5565: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5566: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5567: shared_c_post=
5568: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5569: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5570: shared_cxx_post=
5571: shared_lo=lo
5572:
5573: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 5574: php_sapi_module=shared
1.1 misho 5575:
5576: php_c_pre=$shared_c_pre
5577: php_c_meta=$shared_c_meta
5578: php_c_post=$shared_c_post
5579: php_cxx_pre=$shared_cxx_pre
5580: php_cxx_meta=$shared_cxx_meta
5581: php_cxx_post=$shared_cxx_post
5582: php_lo=$shared_lo
5583: ;;
1.1.1.2 misho 5584: bundle)
1.1 misho 5585:
5586: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5587: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5588: php_c_post=
5589: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5590: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5591: php_cxx_post=
5592: php_lo=lo
5593:
5594: case $with_pic in
5595: yes) pic_setting='-prefer-pic';;
5596: no) pic_setting='-prefer-non-pic';;
5597: esac
5598:
5599: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5600: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5601: shared_c_post=
5602: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5603: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5604: shared_cxx_post=
5605: shared_lo=lo
5606:
5607: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 5608: php_sapi_module=static
1.1 misho 5609: ;;
1.1.1.2 misho 5610: esac
5611: install_sapi="install-sapi"
1.1 misho 5612:
5613:
5614: case sapi/aolserver in
5615: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5616: /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5617: *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5618: esac
5619:
5620:
5621:
5622: b_c_pre=$php_c_pre
5623: b_cxx_pre=$php_cxx_pre
5624: b_c_meta=$php_c_meta
5625: b_cxx_meta=$php_cxx_meta
5626: b_c_post=$php_c_post
5627: b_cxx_post=$php_cxx_post
5628: b_lo=$php_lo
5629:
5630:
5631: old_IFS=$IFS
5632: for ac_src in aolserver.c; do
5633:
5634: IFS=.
5635: set $ac_src
5636: ac_obj=$1
5637: IFS=$old_IFS
5638:
5639: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
5640:
5641: case $ac_src in
5642: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5643: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5644: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5645: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5646: esac
5647:
5648: cat >>Makefile.objects<<EOF
5649: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5650: $ac_comp
5651: EOF
5652: done
5653:
5654:
5655:
1.1.1.2 misho 5656:
1.1 misho 5657: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_AOLSERVER/bin/"
5658: fi
5659:
1.1.1.3 ! misho 5660: { echo "$as_me:$LINENO: result: $PHP_AOLSERVER" >&5
! 5661: echo "${ECHO_T}$PHP_AOLSERVER" >&6; }
1.1 misho 5662:
5663:
5664:
5665:
5666:
5667: php_with_apxs=no
5668:
5669:
5670:
5671: # Check whether --with-apxs was given.
1.1.1.3 ! misho 5672: if test "${with_apxs+set}" = set; then
1.1 misho 5673: withval=$with_apxs; PHP_APXS=$withval
5674: else
5675:
5676: PHP_APXS=no
5677:
5678:
5679: fi
5680:
5681:
5682: ext_output=$PHP_APXS
5683:
5684:
5685:
5686:
5687:
1.1.1.3 ! misho 5688: { echo "$as_me:$LINENO: checking for Apache 1.x module support via DSO through APXS" >&5
! 5689: echo $ECHO_N "checking for Apache 1.x module support via DSO through APXS... $ECHO_C" >&6; }
1.1 misho 5690:
5691: if test "$PHP_APXS" != "no"; then
5692: if test "$PHP_APXS" = "yes"; then
5693: APXS=apxs
5694: $APXS -q CFLAGS >/dev/null 2>&1
5695: if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
5696: APXS=/usr/sbin/apxs
5697: fi
5698: else
5699:
5700: if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then
5701: APXS=$PHP_APXS
5702: else
5703:
5704: ep_dir="`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'`"
5705:
5706: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
5707: APXS="$ep_realdir/`basename \"$PHP_APXS\"`"
5708: fi
5709:
5710: fi
5711:
5712: $APXS -q CFLAGS >/dev/null 2>&1
5713: if test "$?" != "0"; then
1.1.1.3 ! misho 5714: { echo "$as_me:$LINENO: result: " >&5
! 5715: echo "${ECHO_T}" >&6; }
! 5716: { echo "$as_me:$LINENO: result: " >&5
! 5717: echo "${ECHO_T}" >&6; }
! 5718: { echo "$as_me:$LINENO: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5
! 5719: echo "${ECHO_T}Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; }
! 5720: { echo "$as_me:$LINENO: result: " >&5
! 5721: echo "${ECHO_T}" >&6; }
! 5722: { echo "$as_me:$LINENO: result: 1. Perl is not installed;" >&5
! 5723: echo "${ECHO_T}1. Perl is not installed;" >&6; }
! 5724: { echo "$as_me:$LINENO: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5
! 5725: echo "${ECHO_T}2. Apache was not compiled with DSO support (--enable-module=so);" >&6; }
! 5726: { echo "$as_me:$LINENO: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5
! 5727: echo "${ECHO_T}3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; }
! 5728: { echo "$as_me:$LINENO: result: The output of $APXS follows" >&5
! 5729: echo "${ECHO_T}The output of $APXS follows" >&6; }
1.1 misho 5730: $APXS -q CFLAGS
1.1.1.3 ! misho 5731: { { echo "$as_me:$LINENO: error: Aborting" >&5
! 5732: echo "$as_me: error: Aborting" >&2;}
! 5733: { (exit 1); exit 1; }; }
1.1 misho 5734: fi
5735:
5736: APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
5737: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
5738: APXS_CFLAGS=`$APXS -q CFLAGS`
5739: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
5740: APACHE_INCLUDE=-I$APXS_INCLUDEDIR
5741:
5742: # Test that we're trying to configure with apache 1.x
5743:
5744: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
5745: ac_IFS=$IFS
5746: IFS="- /.
5747: "
5748: set $ac_output
5749: IFS=$ac_IFS
5750:
5751: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
5752:
5753: if test "$APACHE_VERSION" -ge 2000000; then
1.1.1.3 ! misho 5754: { { echo "$as_me:$LINENO: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" >&5
! 5755: echo "$as_me: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" >&2;}
! 5756: { (exit 1); exit 1; }; }
1.1 misho 5757: fi
5758:
5759: for flag in $APXS_CFLAGS; do
5760: case $flag in
5761: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
5762: esac
5763: done
5764:
5765: case $host_alias in
5766: *aix*)
5767: APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
5768: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
5769: PHP_AIX_LDFLAGS="-Wl,-brtl"
5770: build_type=shared
5771: ;;
5772: *darwin*)
5773: MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
5774:
5775: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
5776:
5777: SAPI_SHARED=libs/libphp5.so
5778: build_type=bundle
5779: ;;
5780: *)
5781: build_type=shared
5782: ;;
5783: esac
5784:
5785:
1.1.1.2 misho 5786: if test "$build_type" = "program"; then
5787: PHP_BINARIES="$PHP_BINARIES apache"
5788: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 5789: { { echo "$as_me:$LINENO: error:
! 5790: +--------------------------------------------------------------------+
! 5791: | *** ATTENTION *** |
! 5792: | |
! 5793: | You've configured multiple SAPIs to be build. You can build only |
! 5794: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 5795: +--------------------------------------------------------------------+
! 5796: " >&5
! 5797: echo "$as_me: error:
1.1 misho 5798: +--------------------------------------------------------------------+
5799: | *** ATTENTION *** |
5800: | |
5801: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 5802: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 5803: +--------------------------------------------------------------------+
1.1.1.3 ! misho 5804: " >&2;}
! 5805: { (exit 1); exit 1; }; }
1.1.1.2 misho 5806: else
5807: PHP_SAPI=apache
1.1 misho 5808: fi
5809:
5810:
5811:
1.1.1.2 misho 5812: BUILD_DIR="$BUILD_DIR sapi/apache"
5813:
5814:
5815:
5816: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
5817:
5818:
5819: case "$build_type" in
5820: static)
5821:
1.1 misho 5822: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5823: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5824: php_c_post=
5825: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5826: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5827: php_cxx_post=
5828: php_lo=lo
5829:
5830: case $with_pic in
5831: yes) pic_setting='-prefer-pic';;
5832: no) pic_setting='-prefer-non-pic';;
5833: esac
5834:
5835: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5836: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5837: shared_c_post=
5838: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5839: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5840: shared_cxx_post=
5841: shared_lo=lo
5842:
5843: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 5844: php_sapi_module=static
1.1 misho 5845: ;;
1.1.1.2 misho 5846: shared)
1.1 misho 5847:
5848: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5849: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5850: php_c_post=
5851: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5852: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5853: php_cxx_post=
5854: php_lo=lo
5855:
5856: case $with_pic in
5857: yes) pic_setting='-prefer-pic';;
5858: no) pic_setting='-prefer-non-pic';;
5859: esac
5860:
5861: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5862: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5863: shared_c_post=
5864: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5865: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5866: shared_cxx_post=
5867: shared_lo=lo
5868:
5869: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 5870: php_sapi_module=shared
1.1 misho 5871:
5872: php_c_pre=$shared_c_pre
5873: php_c_meta=$shared_c_meta
5874: php_c_post=$shared_c_post
5875: php_cxx_pre=$shared_cxx_pre
5876: php_cxx_meta=$shared_cxx_meta
5877: php_cxx_post=$shared_cxx_post
5878: php_lo=$shared_lo
5879: ;;
1.1.1.2 misho 5880: bundle)
1.1 misho 5881:
5882: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5883: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5884: php_c_post=
5885: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5886: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5887: php_cxx_post=
5888: php_lo=lo
5889:
5890: case $with_pic in
5891: yes) pic_setting='-prefer-pic';;
5892: no) pic_setting='-prefer-non-pic';;
5893: esac
5894:
5895: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5896: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5897: shared_c_post=
5898: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5899: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5900: shared_cxx_post=
5901: shared_lo=lo
5902:
5903: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 5904: php_sapi_module=static
1.1 misho 5905: ;;
1.1.1.2 misho 5906: esac
5907: install_sapi="install-sapi"
1.1 misho 5908:
5909:
5910: case sapi/apache in
5911: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5912: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5913: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5914: esac
5915:
5916:
5917:
5918: b_c_pre=$php_c_pre
5919: b_cxx_pre=$php_cxx_pre
5920: b_c_meta=$php_c_meta
5921: b_cxx_meta=$php_cxx_meta
5922: b_c_post=$php_c_post
5923: b_cxx_post=$php_cxx_post
5924: b_lo=$php_lo
5925:
5926:
5927: old_IFS=$IFS
5928: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
5929:
5930: IFS=.
5931: set $ac_src
5932: ac_obj=$1
5933: IFS=$old_IFS
5934:
5935: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
5936:
5937: case $ac_src in
5938: *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5939: *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5940: *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5941: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5942: esac
5943:
5944: cat >>Makefile.objects<<EOF
5945: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5946: $ac_comp
5947: EOF
5948: done
5949:
5950:
5951:
5952:
1.1.1.2 misho 5953:
1.1 misho 5954: # Test whether apxs support -S option
5955: $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
5956:
5957: if test "$?" != "0"; then
5958: APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
5959: else
5960: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
5961: if test -z `$APXS -q SYSCONFDIR`; then
5962: APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
5963: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
5964: -i -n php5 $SAPI_SHARED"
5965: else
5966: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
5967: APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
5968: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
5969: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
5970: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
5971: -i -a -n php5 $SAPI_SHARED"
5972: fi
5973: fi
5974:
5975: if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
5976: PHP_APXS_BROKEN=yes
5977: fi
5978: STRONGHOLD=
5979:
1.1.1.3 ! misho 5980: cat >>confdefs.h <<\_ACEOF
! 5981: #define HAVE_AP_CONFIG_H 1
! 5982: _ACEOF
1.1 misho 5983:
5984:
1.1.1.3 ! misho 5985: cat >>confdefs.h <<\_ACEOF
! 5986: #define HAVE_AP_COMPAT_H 1
! 5987: _ACEOF
1.1 misho 5988:
5989:
1.1.1.3 ! misho 5990: cat >>confdefs.h <<\_ACEOF
! 5991: #define HAVE_APACHE 1
! 5992: _ACEOF
1.1 misho 5993:
1.1.1.3 ! misho 5994: { echo "$as_me:$LINENO: result: yes" >&5
! 5995: echo "${ECHO_T}yes" >&6; }
1.1 misho 5996: else
1.1.1.3 ! misho 5997: { echo "$as_me:$LINENO: result: no" >&5
! 5998: echo "${ECHO_T}no" >&6; }
1.1 misho 5999: fi
6000:
6001:
6002: php_with_apache=no
6003:
6004:
6005:
6006: # Check whether --with-apache was given.
1.1.1.3 ! misho 6007: if test "${with_apache+set}" = set; then
1.1 misho 6008: withval=$with_apache; PHP_APACHE=$withval
6009: else
6010:
6011: PHP_APACHE=no
6012:
6013:
6014: fi
6015:
6016:
6017: ext_output=$PHP_APACHE
6018:
6019:
6020:
6021:
6022:
1.1.1.3 ! misho 6023: { echo "$as_me:$LINENO: checking for Apache 1.x module support" >&5
! 6024: echo $ECHO_N "checking for Apache 1.x module support... $ECHO_C" >&6; }
1.1 misho 6025:
6026: if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then
6027:
6028: if test "$PHP_APACHE" = "yes"; then
6029: # Apache's default directory
6030: PHP_APACHE=/usr/local/apache
6031: fi
6032:
6033: APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module"
6034:
6035:
1.1.1.3 ! misho 6036: cat >>confdefs.h <<\_ACEOF
! 6037: #define HAVE_APACHE 1
! 6038: _ACEOF
1.1 misho 6039:
6040: APACHE_MODULE=yes
6041:
6042: if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then
6043: PHP_APACHE=$PHP_APACHE
6044: else
6045:
6046: ep_dir="`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'`"
6047:
6048: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
6049: PHP_APACHE="$ep_realdir/`basename \"$PHP_APACHE\"`"
6050: fi
6051:
6052: # For Apache 1.2.x
6053: if test -f $PHP_APACHE/src/httpd.h; then
6054: APACHE_INCLUDE=-I$PHP_APACHE/src
6055: APACHE_TARGET=$PHP_APACHE/src
6056:
1.1.1.2 misho 6057: if test "static" = "program"; then
6058: PHP_BINARIES="$PHP_BINARIES apache"
6059: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 6060: { { echo "$as_me:$LINENO: error:
! 6061: +--------------------------------------------------------------------+
! 6062: | *** ATTENTION *** |
! 6063: | |
! 6064: | You've configured multiple SAPIs to be build. You can build only |
! 6065: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 6066: +--------------------------------------------------------------------+
! 6067: " >&5
! 6068: echo "$as_me: error:
1.1 misho 6069: +--------------------------------------------------------------------+
6070: | *** ATTENTION *** |
6071: | |
6072: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 6073: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 6074: +--------------------------------------------------------------------+
1.1.1.3 ! misho 6075: " >&2;}
! 6076: { (exit 1); exit 1; }; }
1.1.1.2 misho 6077: else
6078: PHP_SAPI=apache
1.1 misho 6079: fi
6080:
6081:
6082:
1.1.1.2 misho 6083: BUILD_DIR="$BUILD_DIR sapi/apache"
6084:
6085:
6086:
6087: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
6088:
6089:
6090: case "static" in
6091: static)
6092:
1.1 misho 6093: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6094: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6095: php_c_post=
6096: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6097: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6098: php_cxx_post=
6099: php_lo=lo
6100:
6101: case $with_pic in
6102: yes) pic_setting='-prefer-pic';;
6103: no) pic_setting='-prefer-non-pic';;
6104: esac
6105:
6106: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6107: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6108: shared_c_post=
6109: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6110: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6111: shared_cxx_post=
6112: shared_lo=lo
6113:
6114: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6115: php_sapi_module=static
1.1 misho 6116: ;;
1.1.1.2 misho 6117: shared)
1.1 misho 6118:
6119: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6120: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6121: php_c_post=
6122: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6123: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6124: php_cxx_post=
6125: php_lo=lo
6126:
6127: case $with_pic in
6128: yes) pic_setting='-prefer-pic';;
6129: no) pic_setting='-prefer-non-pic';;
6130: esac
6131:
6132: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6133: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6134: shared_c_post=
6135: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6136: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6137: shared_cxx_post=
6138: shared_lo=lo
6139:
6140: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6141: php_sapi_module=shared
1.1 misho 6142:
6143: php_c_pre=$shared_c_pre
6144: php_c_meta=$shared_c_meta
6145: php_c_post=$shared_c_post
6146: php_cxx_pre=$shared_cxx_pre
6147: php_cxx_meta=$shared_cxx_meta
6148: php_cxx_post=$shared_cxx_post
6149: php_lo=$shared_lo
6150: ;;
1.1.1.2 misho 6151: bundle)
1.1 misho 6152:
6153: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6154: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6155: php_c_post=
6156: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6157: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6158: php_cxx_post=
6159: php_lo=lo
6160:
6161: case $with_pic in
6162: yes) pic_setting='-prefer-pic';;
6163: no) pic_setting='-prefer-non-pic';;
6164: esac
6165:
6166: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6167: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6168: shared_c_post=
6169: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6170: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6171: shared_cxx_post=
6172: shared_lo=lo
6173:
6174: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 6175: php_sapi_module=static
1.1 misho 6176: ;;
1.1.1.2 misho 6177: esac
6178: install_sapi="install-sapi"
1.1 misho 6179:
6180:
6181: case sapi/apache in
6182: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6183: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6184: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6185: esac
6186:
6187:
6188:
6189: b_c_pre=$php_c_pre
6190: b_cxx_pre=$php_cxx_pre
6191: b_c_meta=$php_c_meta
6192: b_cxx_meta=$php_cxx_meta
6193: b_c_post=$php_c_post
6194: b_cxx_post=$php_cxx_post
6195: b_lo=$php_lo
6196:
6197:
6198: old_IFS=$IFS
6199: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
6200:
6201: IFS=.
6202: set $ac_src
6203: ac_obj=$1
6204: IFS=$old_IFS
6205:
6206: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6207:
6208: case $ac_src in
6209: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6210: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6211: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6212: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
6213: esac
6214:
6215: cat >>Makefile.objects<<EOF
6216: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6217: $ac_comp
6218: EOF
6219: done
6220:
6221:
6222:
1.1.1.2 misho 6223:
1.1 misho 6224: APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET"
6225: PHP_LIBS="-L. -lphp3"
1.1.1.3 ! misho 6226: { echo "$as_me:$LINENO: result: yes - Apache 1.2.x" >&5
! 6227: echo "${ECHO_T}yes - Apache 1.2.x" >&6; }
1.1 misho 6228: STRONGHOLD=
6229: if test -f $PHP_APACHE/src/ap_config.h; then
6230:
1.1.1.3 ! misho 6231: cat >>confdefs.h <<\_ACEOF
! 6232: #define HAVE_AP_CONFIG_H 1
! 6233: _ACEOF
1.1 misho 6234:
6235: fi
6236: # For Apache 2.0.x
6237: elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then
1.1.1.3 ! misho 6238: { { echo "$as_me:$LINENO: error: Use --with-apxs2 with Apache 2.x!" >&5
! 6239: echo "$as_me: error: Use --with-apxs2 with Apache 2.x!" >&2;}
! 6240: { (exit 1); exit 1; }; }
1.1 misho 6241: # For Apache 1.3.x
6242: elif test -f $PHP_APACHE/src/main/httpd.h; then
6243: APACHE_HAS_REGEX=1
6244: APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap"
6245: APACHE_TARGET=$PHP_APACHE/src/modules/php5
6246: if test ! -d $APACHE_TARGET; then
6247: mkdir $APACHE_TARGET
6248: fi
6249:
1.1.1.2 misho 6250: if test "static" = "program"; then
6251: PHP_BINARIES="$PHP_BINARIES apache"
6252: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 6253: { { echo "$as_me:$LINENO: error:
! 6254: +--------------------------------------------------------------------+
! 6255: | *** ATTENTION *** |
! 6256: | |
! 6257: | You've configured multiple SAPIs to be build. You can build only |
! 6258: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 6259: +--------------------------------------------------------------------+
! 6260: " >&5
! 6261: echo "$as_me: error:
1.1 misho 6262: +--------------------------------------------------------------------+
6263: | *** ATTENTION *** |
6264: | |
6265: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 6266: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 6267: +--------------------------------------------------------------------+
1.1.1.3 ! misho 6268: " >&2;}
! 6269: { (exit 1); exit 1; }; }
1.1.1.2 misho 6270: else
6271: PHP_SAPI=apache
1.1 misho 6272: fi
6273:
6274:
6275:
1.1.1.2 misho 6276: BUILD_DIR="$BUILD_DIR sapi/apache"
6277:
6278:
6279:
6280: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
6281:
6282:
6283: case "static" in
6284: static)
6285:
1.1 misho 6286: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6287: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6288: php_c_post=
6289: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6290: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6291: php_cxx_post=
6292: php_lo=lo
6293:
6294: case $with_pic in
6295: yes) pic_setting='-prefer-pic';;
6296: no) pic_setting='-prefer-non-pic';;
6297: esac
6298:
6299: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6300: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6301: shared_c_post=
6302: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6303: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6304: shared_cxx_post=
6305: shared_lo=lo
6306:
6307: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6308: php_sapi_module=static
1.1 misho 6309: ;;
1.1.1.2 misho 6310: shared)
1.1 misho 6311:
6312: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6313: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6314: php_c_post=
6315: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6316: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6317: php_cxx_post=
6318: php_lo=lo
6319:
6320: case $with_pic in
6321: yes) pic_setting='-prefer-pic';;
6322: no) pic_setting='-prefer-non-pic';;
6323: esac
6324:
6325: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6326: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6327: shared_c_post=
6328: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6329: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6330: shared_cxx_post=
6331: shared_lo=lo
6332:
6333: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6334: php_sapi_module=shared
1.1 misho 6335:
6336: php_c_pre=$shared_c_pre
6337: php_c_meta=$shared_c_meta
6338: php_c_post=$shared_c_post
6339: php_cxx_pre=$shared_cxx_pre
6340: php_cxx_meta=$shared_cxx_meta
6341: php_cxx_post=$shared_cxx_post
6342: php_lo=$shared_lo
6343: ;;
1.1.1.2 misho 6344: bundle)
1.1 misho 6345:
6346: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6347: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6348: php_c_post=
6349: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6350: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6351: php_cxx_post=
6352: php_lo=lo
6353:
6354: case $with_pic in
6355: yes) pic_setting='-prefer-pic';;
6356: no) pic_setting='-prefer-non-pic';;
6357: esac
6358:
6359: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6360: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6361: shared_c_post=
6362: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6363: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6364: shared_cxx_post=
6365: shared_lo=lo
6366:
6367: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 6368: php_sapi_module=static
1.1 misho 6369: ;;
1.1.1.2 misho 6370: esac
6371: install_sapi="install-sapi"
1.1 misho 6372:
6373:
6374: case sapi/apache in
6375: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6376: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6377: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6378: esac
6379:
6380:
6381:
6382: b_c_pre=$php_c_pre
6383: b_cxx_pre=$php_cxx_pre
6384: b_c_meta=$php_c_meta
6385: b_cxx_meta=$php_cxx_meta
6386: b_c_post=$php_c_post
6387: b_cxx_post=$php_cxx_post
6388: b_lo=$php_lo
6389:
6390:
6391: old_IFS=$IFS
6392: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
6393:
6394: IFS=.
6395: set $ac_src
6396: ac_obj=$1
6397: IFS=$old_IFS
6398:
6399: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6400:
6401: case $ac_src in
6402: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6403: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6404: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6405: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
6406: esac
6407:
6408: cat >>Makefile.objects<<EOF
6409: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6410: $ac_comp
6411: EOF
6412: done
6413:
6414:
6415:
1.1.1.2 misho 6416:
1.1 misho 6417: APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
6418: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
1.1.1.3 ! misho 6419: { echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
! 6420: echo "${ECHO_T}yes - Apache 1.3.x" >&6; }
1.1 misho 6421: STRONGHOLD=
6422: if test -f $PHP_APACHE/src/include/ap_config.h; then
6423:
1.1.1.3 ! misho 6424: cat >>confdefs.h <<\_ACEOF
! 6425: #define HAVE_AP_CONFIG_H 1
! 6426: _ACEOF
1.1 misho 6427:
6428: fi
6429: if test -f $PHP_APACHE/src/include/ap_compat.h; then
6430:
1.1.1.3 ! misho 6431: cat >>confdefs.h <<\_ACEOF
! 6432: #define HAVE_AP_COMPAT_H 1
! 6433: _ACEOF
1.1 misho 6434:
6435: if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
1.1.1.3 ! misho 6436: { { echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
! 6437: echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
! 6438: { (exit 1); exit 1; }; }
1.1 misho 6439: fi
6440: elif test -f $PHP_APACHE/src/include/compat.h; then
6441:
1.1.1.3 ! misho 6442: cat >>confdefs.h <<\_ACEOF
! 6443: #define HAVE_OLD_COMPAT_H 1
! 6444: _ACEOF
1.1 misho 6445:
6446: fi
6447: # Also for Apache 1.3.x
6448: elif test -f $PHP_APACHE/src/include/httpd.h; then
6449: APACHE_HAS_REGEX=1
6450: APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix"
6451: APACHE_TARGET=$PHP_APACHE/src/modules/php5
6452: if test ! -d $APACHE_TARGET; then
6453: mkdir $APACHE_TARGET
6454: fi
6455:
1.1.1.2 misho 6456: if test "static" = "program"; then
6457: PHP_BINARIES="$PHP_BINARIES apache"
6458: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 6459: { { echo "$as_me:$LINENO: error:
! 6460: +--------------------------------------------------------------------+
! 6461: | *** ATTENTION *** |
! 6462: | |
! 6463: | You've configured multiple SAPIs to be build. You can build only |
! 6464: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 6465: +--------------------------------------------------------------------+
! 6466: " >&5
! 6467: echo "$as_me: error:
1.1 misho 6468: +--------------------------------------------------------------------+
6469: | *** ATTENTION *** |
6470: | |
6471: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 6472: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 6473: +--------------------------------------------------------------------+
1.1.1.3 ! misho 6474: " >&2;}
! 6475: { (exit 1); exit 1; }; }
1.1.1.2 misho 6476: else
6477: PHP_SAPI=apache
1.1 misho 6478: fi
6479:
6480:
6481:
1.1.1.2 misho 6482: BUILD_DIR="$BUILD_DIR sapi/apache"
6483:
6484:
6485:
6486: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
6487:
6488:
6489: case "static" in
6490: static)
6491:
1.1 misho 6492: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6493: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6494: php_c_post=
6495: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6496: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6497: php_cxx_post=
6498: php_lo=lo
6499:
6500: case $with_pic in
6501: yes) pic_setting='-prefer-pic';;
6502: no) pic_setting='-prefer-non-pic';;
6503: esac
6504:
6505: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6506: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6507: shared_c_post=
6508: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6509: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6510: shared_cxx_post=
6511: shared_lo=lo
6512:
6513: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6514: php_sapi_module=static
1.1 misho 6515: ;;
1.1.1.2 misho 6516: shared)
1.1 misho 6517:
6518: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6519: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6520: php_c_post=
6521: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6522: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6523: php_cxx_post=
6524: php_lo=lo
6525:
6526: case $with_pic in
6527: yes) pic_setting='-prefer-pic';;
6528: no) pic_setting='-prefer-non-pic';;
6529: esac
6530:
6531: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6532: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6533: shared_c_post=
6534: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6535: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6536: shared_cxx_post=
6537: shared_lo=lo
6538:
6539: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6540: php_sapi_module=shared
1.1 misho 6541:
6542: php_c_pre=$shared_c_pre
6543: php_c_meta=$shared_c_meta
6544: php_c_post=$shared_c_post
6545: php_cxx_pre=$shared_cxx_pre
6546: php_cxx_meta=$shared_cxx_meta
6547: php_cxx_post=$shared_cxx_post
6548: php_lo=$shared_lo
6549: ;;
1.1.1.2 misho 6550: bundle)
1.1 misho 6551:
6552: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6553: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6554: php_c_post=
6555: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6556: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6557: php_cxx_post=
6558: php_lo=lo
6559:
6560: case $with_pic in
6561: yes) pic_setting='-prefer-pic';;
6562: no) pic_setting='-prefer-non-pic';;
6563: esac
6564:
6565: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6566: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6567: shared_c_post=
6568: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6569: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6570: shared_cxx_post=
6571: shared_lo=lo
6572:
6573: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 6574: php_sapi_module=static
1.1 misho 6575: ;;
1.1.1.2 misho 6576: esac
6577: install_sapi="install-sapi"
1.1 misho 6578:
6579:
6580: case sapi/apache in
6581: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6582: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6583: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6584: esac
6585:
6586:
6587:
6588: b_c_pre=$php_c_pre
6589: b_cxx_pre=$php_cxx_pre
6590: b_c_meta=$php_c_meta
6591: b_cxx_meta=$php_cxx_meta
6592: b_c_post=$php_c_post
6593: b_cxx_post=$php_cxx_post
6594: b_lo=$php_lo
6595:
6596:
6597: old_IFS=$IFS
6598: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
6599:
6600: IFS=.
6601: set $ac_src
6602: ac_obj=$1
6603: IFS=$old_IFS
6604:
6605: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6606:
6607: case $ac_src in
6608: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6609: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6610: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6611: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
6612: esac
6613:
6614: cat >>Makefile.objects<<EOF
6615: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6616: $ac_comp
6617: EOF
6618: done
6619:
6620:
6621:
1.1.1.2 misho 6622:
1.1 misho 6623: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
6624: APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
1.1.1.3 ! misho 6625: { echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
! 6626: echo "${ECHO_T}yes - Apache 1.3.x" >&6; }
1.1 misho 6627: STRONGHOLD=
6628: if test -f $PHP_APACHE/src/include/ap_config.h; then
6629:
1.1.1.3 ! misho 6630: cat >>confdefs.h <<\_ACEOF
! 6631: #define HAVE_AP_CONFIG_H 1
! 6632: _ACEOF
1.1 misho 6633:
6634: fi
6635: if test -f $PHP_APACHE/src/include/ap_compat.h; then
6636:
1.1.1.3 ! misho 6637: cat >>confdefs.h <<\_ACEOF
! 6638: #define HAVE_AP_COMPAT_H 1
! 6639: _ACEOF
1.1 misho 6640:
6641: if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
1.1.1.3 ! misho 6642: { { echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
! 6643: echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
! 6644: { (exit 1); exit 1; }; }
1.1 misho 6645: fi
6646: elif test -f $PHP_APACHE/src/include/compat.h; then
6647:
1.1.1.3 ! misho 6648: cat >>confdefs.h <<\_ACEOF
! 6649: #define HAVE_OLD_COMPAT_H 1
! 6650: _ACEOF
1.1 misho 6651:
6652: fi
6653: # For StrongHold 2.2
6654: elif test -f $PHP_APACHE/apache/httpd.h; then
6655: APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include"
6656: APACHE_TARGET=$PHP_APACHE/apache
6657:
1.1.1.2 misho 6658: if test "static" = "program"; then
6659: PHP_BINARIES="$PHP_BINARIES apache"
6660: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 6661: { { echo "$as_me:$LINENO: error:
! 6662: +--------------------------------------------------------------------+
! 6663: | *** ATTENTION *** |
! 6664: | |
! 6665: | You've configured multiple SAPIs to be build. You can build only |
! 6666: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 6667: +--------------------------------------------------------------------+
! 6668: " >&5
! 6669: echo "$as_me: error:
1.1 misho 6670: +--------------------------------------------------------------------+
6671: | *** ATTENTION *** |
6672: | |
6673: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 6674: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 6675: +--------------------------------------------------------------------+
1.1.1.3 ! misho 6676: " >&2;}
! 6677: { (exit 1); exit 1; }; }
1.1.1.2 misho 6678: else
6679: PHP_SAPI=apache
1.1 misho 6680: fi
6681:
6682:
6683:
1.1.1.2 misho 6684: BUILD_DIR="$BUILD_DIR sapi/apache"
6685:
6686:
6687:
6688: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
6689:
6690:
6691: case "static" in
6692: static)
6693:
1.1 misho 6694: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6695: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6696: php_c_post=
6697: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6698: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6699: php_cxx_post=
6700: php_lo=lo
6701:
6702: case $with_pic in
6703: yes) pic_setting='-prefer-pic';;
6704: no) pic_setting='-prefer-non-pic';;
6705: esac
6706:
6707: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6708: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6709: shared_c_post=
6710: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6711: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6712: shared_cxx_post=
6713: shared_lo=lo
6714:
6715: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6716: php_sapi_module=static
1.1 misho 6717: ;;
1.1.1.2 misho 6718: shared)
1.1 misho 6719:
6720: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6721: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6722: php_c_post=
6723: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6724: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6725: php_cxx_post=
6726: php_lo=lo
6727:
6728: case $with_pic in
6729: yes) pic_setting='-prefer-pic';;
6730: no) pic_setting='-prefer-non-pic';;
6731: esac
6732:
6733: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6734: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6735: shared_c_post=
6736: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6737: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6738: shared_cxx_post=
6739: shared_lo=lo
6740:
6741: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 6742: php_sapi_module=shared
1.1 misho 6743:
6744: php_c_pre=$shared_c_pre
6745: php_c_meta=$shared_c_meta
6746: php_c_post=$shared_c_post
6747: php_cxx_pre=$shared_cxx_pre
6748: php_cxx_meta=$shared_cxx_meta
6749: php_cxx_post=$shared_cxx_post
6750: php_lo=$shared_lo
6751: ;;
1.1.1.2 misho 6752: bundle)
1.1 misho 6753:
6754: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6755: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6756: php_c_post=
6757: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6758: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6759: php_cxx_post=
6760: php_lo=lo
6761:
6762: case $with_pic in
6763: yes) pic_setting='-prefer-pic';;
6764: no) pic_setting='-prefer-non-pic';;
6765: esac
6766:
6767: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6768: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6769: shared_c_post=
6770: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6771: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6772: shared_cxx_post=
6773: shared_lo=lo
6774:
6775: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 6776: php_sapi_module=static
1.1 misho 6777: ;;
1.1.1.2 misho 6778: esac
6779: install_sapi="install-sapi"
1.1 misho 6780:
6781:
6782: case sapi/apache in
6783: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6784: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6785: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6786: esac
6787:
6788:
6789:
6790: b_c_pre=$php_c_pre
6791: b_cxx_pre=$php_cxx_pre
6792: b_c_meta=$php_c_meta
6793: b_cxx_meta=$php_cxx_meta
6794: b_c_post=$php_c_post
6795: b_cxx_post=$php_cxx_post
6796: b_lo=$php_lo
6797:
6798:
6799: old_IFS=$IFS
6800: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
6801:
6802: IFS=.
6803: set $ac_src
6804: ac_obj=$1
6805: IFS=$old_IFS
6806:
6807: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6808:
6809: case $ac_src in
6810: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6811: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6812: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6813: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
6814: esac
6815:
6816: cat >>Makefile.objects<<EOF
6817: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6818: $ac_comp
6819: EOF
6820: done
6821:
6822:
6823:
1.1.1.2 misho 6824:
1.1 misho 6825: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
6826: APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET"
6827: STRONGHOLD=-DSTRONGHOLD=1
1.1.1.3 ! misho 6828: { echo "$as_me:$LINENO: result: yes - StrongHold" >&5
! 6829: echo "${ECHO_T}yes - StrongHold" >&6; }
1.1 misho 6830: if test -f $PHP_APACHE/apache/ap_config.h; then
6831:
1.1.1.3 ! misho 6832: cat >>confdefs.h <<\_ACEOF
! 6833: #define HAVE_AP_CONFIG_H 1
! 6834: _ACEOF
1.1 misho 6835:
6836: fi
6837: if test -f $PHP_APACHE/src/ap_compat.h; then
6838:
1.1.1.3 ! misho 6839: cat >>confdefs.h <<\_ACEOF
! 6840: #define HAVE_AP_COMPAT_H 1
! 6841: _ACEOF
1.1 misho 6842:
6843: if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
1.1.1.3 ! misho 6844: { { echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
! 6845: echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
! 6846: { (exit 1); exit 1; }; }
1.1 misho 6847: fi
6848: elif test -f $PHP_APACHE/src/compat.h; then
6849:
1.1.1.3 ! misho 6850: cat >>confdefs.h <<\_ACEOF
! 6851: #define HAVE_OLD_COMPAT_H 1
! 6852: _ACEOF
1.1 misho 6853:
6854: fi
6855: else
1.1.1.3 ! misho 6856: { echo "$as_me:$LINENO: result: no" >&5
! 6857: echo "${ECHO_T}no" >&6; }
! 6858: { { echo "$as_me:$LINENO: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" >&5
! 6859: echo "$as_me: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" >&2;}
! 6860: { (exit 1); exit 1; }; }
1.1 misho 6861: fi
6862: else
1.1.1.3 ! misho 6863: { echo "$as_me:$LINENO: result: no" >&5
! 6864: echo "${ECHO_T}no" >&6; }
1.1 misho 6865: fi
6866:
6867: # compatibility
6868: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
6869: enable_mod_charset=$with_mod_charset
6870: fi
6871:
6872:
6873: php_enable_mod_charset=no
6874:
1.1.1.3 ! misho 6875: { echo "$as_me:$LINENO: checking whether to enable Apache charset compatibility option" >&5
! 6876: echo $ECHO_N "checking whether to enable Apache charset compatibility option... $ECHO_C" >&6; }
1.1 misho 6877: # Check whether --enable-mod-charset was given.
1.1.1.3 ! misho 6878: if test "${enable_mod_charset+set}" = set; then
1.1 misho 6879: enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
6880: else
6881:
6882: PHP_MOD_CHARSET=no
6883:
6884:
6885: fi
6886:
6887:
6888: ext_output=$PHP_MOD_CHARSET
1.1.1.3 ! misho 6889: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 6890: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 6891:
6892:
6893:
6894:
6895: if test "$PHP_MOD_CHARSET" = "yes"; then
6896:
1.1.1.3 ! misho 6897: cat >>confdefs.h <<\_ACEOF
! 6898: #define USE_TRANSFER_TABLES 1
! 6899: _ACEOF
1.1 misho 6900:
6901: fi
6902:
6903: if test "$APACHE_MODULE" = "yes"; then
6904:
6905: if test -n "$GCC"; then
6906:
6907: gcc_arg_name=ac_cv_gcc_arg_rdynamic
1.1.1.3 ! misho 6908: { echo "$as_me:$LINENO: checking whether $CC supports -rdynamic" >&5
! 6909: echo $ECHO_N "checking whether $CC supports -rdynamic... $ECHO_C" >&6; }
! 6910: if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then
! 6911: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 6912: else
6913:
6914: echo 'void somefunc() { };' > conftest.c
6915: cmd='$CC -rdynamic -c conftest.c'
6916: if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
6917: ac_result=no
6918: else
6919: ac_result=yes
6920: fi
6921: eval $gcc_arg_name=$ac_result
6922: rm -f conftest.*
6923:
6924: fi
1.1.1.3 ! misho 6925: { echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_rdynamic" >&5
! 6926: echo "${ECHO_T}$ac_cv_gcc_arg_rdynamic" >&6; }
1.1 misho 6927: if eval test "\$$gcc_arg_name" = "yes"; then
6928: gcc_rdynamic=yes
6929: else
6930: :
6931:
6932: fi
6933:
6934: if test "$gcc_rdynamic" = "yes"; then
6935: PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
6936: fi
6937: fi
6938:
6939: $php_shtool mkdir -p sapi/apache
6940:
6941: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module"
6942:
6943: fi
6944:
6945: if test -n "$APACHE_INSTALL"; then
6946: if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
6947: APXS_EXP=-bE:sapi/apache/mod_php5.exp
6948: fi
6949:
6950:
1.1.1.3 ! misho 6951: { echo "$as_me:$LINENO: checking for member fd in BUFF *" >&5
! 6952: echo $ECHO_N "checking for member fd in BUFF *... $ECHO_C" >&6; }
! 6953: if test "${ac_cv_php_fd_in_buff+set}" = set; then
! 6954: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 6955: else
6956:
6957: save=$CPPFLAGS
6958: if test -n "$APXS_INCLUDEDIR"; then
6959: CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
6960: else
6961: CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
6962: fi
1.1.1.3 ! misho 6963: cat >conftest.$ac_ext <<_ACEOF
! 6964: /* confdefs.h. */
! 6965: _ACEOF
! 6966: cat confdefs.h >>conftest.$ac_ext
! 6967: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 6968: /* end confdefs.h. */
6969: #include <httpd.h>
6970: int
6971: main ()
6972: {
6973: conn_rec *c; int fd = c->client->fd;
6974: ;
6975: return 0;
6976: }
6977: _ACEOF
1.1.1.3 ! misho 6978: rm -f conftest.$ac_objext
! 6979: if { (ac_try="$ac_compile"
! 6980: case "(($ac_try" in
! 6981: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6982: *) ac_try_echo=$ac_try;;
! 6983: esac
! 6984: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6985: (eval "$ac_compile") 2>conftest.er1
! 6986: ac_status=$?
! 6987: grep -v '^ *+' conftest.er1 >conftest.err
! 6988: rm -f conftest.er1
! 6989: cat conftest.err >&5
! 6990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6991: (exit $ac_status); } && {
! 6992: test -z "$ac_c_werror_flag" ||
! 6993: test ! -s conftest.err
! 6994: } && test -s conftest.$ac_objext; then
1.1 misho 6995:
6996: ac_cv_php_fd_in_buff=yes
6997: else
1.1.1.3 ! misho 6998: echo "$as_me: failed program was:" >&5
! 6999: sed 's/^/| /' conftest.$ac_ext >&5
! 7000:
! 7001: ac_cv_php_fd_in_buff=no
1.1 misho 7002: fi
1.1.1.3 ! misho 7003:
1.1 misho 7004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005: CPPFLAGS=$save
7006:
7007: fi
1.1.1.3 ! misho 7008: { echo "$as_me:$LINENO: result: $ac_cv_php_fd_in_buff" >&5
! 7009: echo "${ECHO_T}$ac_cv_php_fd_in_buff" >&6; }
1.1 misho 7010: if test "$ac_cv_php_fd_in_buff" = "yes"; then
7011:
1.1.1.3 ! misho 7012: cat >>confdefs.h <<\_ACEOF
! 7013: #define PHP_APACHE_HAVE_CLIENT_FD 1
! 7014: _ACEOF
1.1 misho 7015:
7016: fi
7017:
7018: INSTALL_IT=$APACHE_INSTALL
7019:
7020:
7021: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
7022:
7023:
7024: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
7025:
7026:
7027: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
7028:
7029:
7030: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
7031:
7032:
7033: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
7034:
7035:
7036: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL"
7037:
7038:
7039: PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
7040:
7041: fi
7042:
7043:
7044:
7045:
7046: php_with_apxs2filter=no
7047:
7048:
7049:
7050: # Check whether --with-apxs2filter was given.
1.1.1.3 ! misho 7051: if test "${with_apxs2filter+set}" = set; then
1.1 misho 7052: withval=$with_apxs2filter; PHP_APXS2FILTER=$withval
7053: else
7054:
7055: PHP_APXS2FILTER=no
7056:
7057:
7058: fi
7059:
7060:
7061: ext_output=$PHP_APXS2FILTER
7062:
7063:
7064:
7065:
7066:
1.1.1.3 ! misho 7067: { echo "$as_me:$LINENO: checking for Apache 2.0 filter-module support via DSO through APXS" >&5
! 7068: echo $ECHO_N "checking for Apache 2.0 filter-module support via DSO through APXS... $ECHO_C" >&6; }
1.1 misho 7069:
7070: if test "$PHP_APXS2FILTER" != "no"; then
7071: if test "$PHP_APXS2FILTER" = "yes"; then
7072: APXS=apxs
7073: $APXS -q CFLAGS >/dev/null 2>&1
7074: if test "$?" != "0" && test -x /usr/sbin/apxs; then
7075: APXS=/usr/sbin/apxs
7076: fi
7077: else
7078:
7079: if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then
7080: APXS=$PHP_APXS2FILTER
7081: else
7082:
7083: ep_dir="`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'`"
7084:
7085: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
7086: APXS="$ep_realdir/`basename \"$PHP_APXS2FILTER\"`"
7087: fi
7088:
7089: fi
7090:
7091: $APXS -q CFLAGS >/dev/null 2>&1
7092: if test "$?" != "0"; then
1.1.1.3 ! misho 7093: { echo "$as_me:$LINENO: result: " >&5
! 7094: echo "${ECHO_T}" >&6; }
! 7095: { echo "$as_me:$LINENO: result: " >&5
! 7096: echo "${ECHO_T}" >&6; }
! 7097: { echo "$as_me:$LINENO: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5
! 7098: echo "${ECHO_T}Sorry, I cannot run apxs. Possible reasons follow:" >&6; }
! 7099: { echo "$as_me:$LINENO: result: " >&5
! 7100: echo "${ECHO_T}" >&6; }
! 7101: { echo "$as_me:$LINENO: result: 1. Perl is not installed" >&5
! 7102: echo "${ECHO_T}1. Perl is not installed" >&6; }
! 7103: { echo "$as_me:$LINENO: result: 2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&5
! 7104: echo "${ECHO_T}2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; }
! 7105: { echo "$as_me:$LINENO: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
! 7106: echo "${ECHO_T}3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
! 7107: { echo "$as_me:$LINENO: result: " >&5
! 7108: echo "${ECHO_T}" >&6; }
! 7109: { echo "$as_me:$LINENO: result: The output of $APXS follows:" >&5
! 7110: echo "${ECHO_T}The output of $APXS follows:" >&6; }
1.1 misho 7111: $APXS -q CFLAGS
1.1.1.3 ! misho 7112: { { echo "$as_me:$LINENO: error: Aborting" >&5
! 7113: echo "$as_me: error: Aborting" >&2;}
! 7114: { (exit 1); exit 1; }; }
1.1 misho 7115: fi
7116:
7117: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
7118: APXS_BINDIR=`$APXS -q BINDIR`
7119: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
7120: APXS_CFLAGS=`$APXS -q CFLAGS`
7121: APU_BINDIR=`$APXS -q APU_BINDIR`
7122: APR_BINDIR=`$APXS -q APR_BINDIR`
7123:
7124: # Pick up ap[ru]-N-config if using httpd >=2.1
7125: APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
7126: echo $APR_BINDIR/apr-config`
7127: APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
7128: echo $APU_BINDIR/apu-config`
7129:
7130: APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
7131: APU_CFLAGS="`$APU_CONFIG --includes`"
7132:
7133: for flag in $APXS_CFLAGS; do
7134: case $flag in
7135: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
7136: esac
7137: done
7138:
7139: APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
7140:
7141: # Test that we're trying to configure with apache 2.x
7142:
7143: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
7144: ac_IFS=$IFS
7145: IFS="- /.
7146: "
7147: set $ac_output
7148: IFS=$ac_IFS
7149:
7150: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
7151:
7152: if test "$APACHE_VERSION" -le 2000000; then
1.1.1.3 ! misho 7153: { { echo "$as_me:$LINENO: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" >&5
! 7154: echo "$as_me: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" >&2;}
! 7155: { (exit 1); exit 1; }; }
1.1 misho 7156: elif test "$APACHE_VERSION" -lt 2000040; then
1.1.1.3 ! misho 7157: { { echo "$as_me:$LINENO: error: Please note that Apache version >= 2.0.40 is required" >&5
! 7158: echo "$as_me: error: Please note that Apache version >= 2.0.40 is required" >&2;}
! 7159: { (exit 1); exit 1; }; }
1.1 misho 7160: fi
7161:
7162: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
7163: if test -z `$APXS -q SYSCONFDIR`; then
7164: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
7165: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
7166: -i -n php5"
7167: else
7168: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
7169: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
7170: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
7171: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
7172: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
7173: -i -a -n php5"
7174: fi
7175:
7176: case $host_alias in
7177: *aix*)
7178: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
7179:
1.1.1.2 misho 7180: if test "shared" = "program"; then
7181: PHP_BINARIES="$PHP_BINARIES apache2filter"
7182: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 7183: { { echo "$as_me:$LINENO: error:
! 7184: +--------------------------------------------------------------------+
! 7185: | *** ATTENTION *** |
! 7186: | |
! 7187: | You've configured multiple SAPIs to be build. You can build only |
! 7188: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 7189: +--------------------------------------------------------------------+
! 7190: " >&5
! 7191: echo "$as_me: error:
1.1 misho 7192: +--------------------------------------------------------------------+
7193: | *** ATTENTION *** |
7194: | |
7195: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 7196: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 7197: +--------------------------------------------------------------------+
1.1.1.3 ! misho 7198: " >&2;}
! 7199: { (exit 1); exit 1; }; }
1.1.1.2 misho 7200: else
7201: PHP_SAPI=apache2filter
1.1 misho 7202: fi
7203:
7204:
7205:
1.1.1.2 misho 7206: BUILD_DIR="$BUILD_DIR sapi/apache2filter"
7207:
7208:
7209:
7210: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
7211:
7212:
7213: case "shared" in
7214: static)
7215:
1.1 misho 7216: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7217: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7218: php_c_post=
7219: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7220: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7221: php_cxx_post=
7222: php_lo=lo
7223:
7224: case $with_pic in
7225: yes) pic_setting='-prefer-pic';;
7226: no) pic_setting='-prefer-non-pic';;
7227: esac
7228:
7229: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7230: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7231: shared_c_post=
7232: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7233: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7234: shared_cxx_post=
7235: shared_lo=lo
7236:
7237: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7238: php_sapi_module=static
1.1 misho 7239: ;;
1.1.1.2 misho 7240: shared)
1.1 misho 7241:
7242: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7243: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7244: php_c_post=
7245: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7246: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7247: php_cxx_post=
7248: php_lo=lo
7249:
7250: case $with_pic in
7251: yes) pic_setting='-prefer-pic';;
7252: no) pic_setting='-prefer-non-pic';;
7253: esac
7254:
7255: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7256: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7257: shared_c_post=
7258: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7259: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7260: shared_cxx_post=
7261: shared_lo=lo
7262:
7263: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7264: php_sapi_module=shared
1.1 misho 7265:
7266: php_c_pre=$shared_c_pre
7267: php_c_meta=$shared_c_meta
7268: php_c_post=$shared_c_post
7269: php_cxx_pre=$shared_cxx_pre
7270: php_cxx_meta=$shared_cxx_meta
7271: php_cxx_post=$shared_cxx_post
7272: php_lo=$shared_lo
7273: ;;
1.1.1.2 misho 7274: bundle)
1.1 misho 7275:
7276: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7277: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7278: php_c_post=
7279: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7280: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7281: php_cxx_post=
7282: php_lo=lo
7283:
7284: case $with_pic in
7285: yes) pic_setting='-prefer-pic';;
7286: no) pic_setting='-prefer-non-pic';;
7287: esac
7288:
7289: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7290: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7291: shared_c_post=
7292: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7293: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7294: shared_cxx_post=
7295: shared_lo=lo
7296:
7297: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 7298: php_sapi_module=static
1.1 misho 7299: ;;
1.1.1.2 misho 7300: esac
7301: install_sapi="install-sapi"
1.1 misho 7302:
7303:
7304: case sapi/apache2filter in
7305: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7306: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7307: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7308: esac
7309:
7310:
7311:
7312: b_c_pre=$php_c_pre
7313: b_cxx_pre=$php_cxx_pre
7314: b_c_meta=$php_c_meta
7315: b_cxx_meta=$php_cxx_meta
7316: b_c_post=$php_c_post
7317: b_cxx_post=$php_cxx_post
7318: b_lo=$php_lo
7319:
7320:
7321: old_IFS=$IFS
7322: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7323:
7324: IFS=.
7325: set $ac_src
7326: ac_obj=$1
7327: IFS=$old_IFS
7328:
7329: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7330:
7331: case $ac_src in
7332: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7333: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7334: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7335: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7336: esac
7337:
7338: cat >>Makefile.objects<<EOF
7339: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7340: $ac_comp
7341: EOF
7342: done
7343:
7344:
7345:
1.1.1.2 misho 7346:
1.1 misho 7347: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
7348: ;;
7349: *darwin*)
7350: if test -x "$APR_CONFIG"; then
7351: MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
7352: fi
7353: if test -x "$APU_CONFIG"; then
7354: MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
7355: fi
7356: MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
7357:
7358: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
7359:
7360:
1.1.1.2 misho 7361: if test "bundle" = "program"; then
7362: PHP_BINARIES="$PHP_BINARIES apache2filter"
7363: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 7364: { { echo "$as_me:$LINENO: error:
1.1 misho 7365: +--------------------------------------------------------------------+
7366: | *** ATTENTION *** |
7367: | |
7368: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 7369: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 7370: +--------------------------------------------------------------------+
1.1.1.3 ! misho 7371: " >&5
! 7372: echo "$as_me: error:
! 7373: +--------------------------------------------------------------------+
! 7374: | *** ATTENTION *** |
! 7375: | |
! 7376: | You've configured multiple SAPIs to be build. You can build only |
! 7377: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 7378: +--------------------------------------------------------------------+
! 7379: " >&2;}
! 7380: { (exit 1); exit 1; }; }
1.1.1.2 misho 7381: else
7382: PHP_SAPI=apache2filter
1.1 misho 7383: fi
7384:
7385:
7386:
1.1.1.2 misho 7387: BUILD_DIR="$BUILD_DIR sapi/apache2filter"
7388:
7389:
7390:
7391: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
7392:
7393:
7394: case "bundle" in
7395: static)
7396:
1.1 misho 7397: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7398: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7399: php_c_post=
7400: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7401: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7402: php_cxx_post=
7403: php_lo=lo
7404:
7405: case $with_pic in
7406: yes) pic_setting='-prefer-pic';;
7407: no) pic_setting='-prefer-non-pic';;
7408: esac
7409:
7410: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7411: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7412: shared_c_post=
7413: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7414: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7415: shared_cxx_post=
7416: shared_lo=lo
7417:
7418: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7419: php_sapi_module=static
1.1 misho 7420: ;;
1.1.1.2 misho 7421: shared)
1.1 misho 7422:
7423: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7424: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7425: php_c_post=
7426: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7427: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7428: php_cxx_post=
7429: php_lo=lo
7430:
7431: case $with_pic in
7432: yes) pic_setting='-prefer-pic';;
7433: no) pic_setting='-prefer-non-pic';;
7434: esac
7435:
7436: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7437: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7438: shared_c_post=
7439: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7440: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7441: shared_cxx_post=
7442: shared_lo=lo
7443:
7444: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7445: php_sapi_module=shared
1.1 misho 7446:
7447: php_c_pre=$shared_c_pre
7448: php_c_meta=$shared_c_meta
7449: php_c_post=$shared_c_post
7450: php_cxx_pre=$shared_cxx_pre
7451: php_cxx_meta=$shared_cxx_meta
7452: php_cxx_post=$shared_cxx_post
7453: php_lo=$shared_lo
7454: ;;
1.1.1.2 misho 7455: bundle)
1.1 misho 7456:
7457: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7458: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7459: php_c_post=
7460: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7461: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7462: php_cxx_post=
7463: php_lo=lo
7464:
7465: case $with_pic in
7466: yes) pic_setting='-prefer-pic';;
7467: no) pic_setting='-prefer-non-pic';;
7468: esac
7469:
7470: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7471: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7472: shared_c_post=
7473: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7474: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7475: shared_cxx_post=
7476: shared_lo=lo
7477:
7478: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 7479: php_sapi_module=static
1.1 misho 7480: ;;
1.1.1.2 misho 7481: esac
7482: install_sapi="install-sapi"
1.1 misho 7483:
7484:
7485: case sapi/apache2filter in
7486: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7487: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7488: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7489: esac
7490:
7491:
7492:
7493: b_c_pre=$php_c_pre
7494: b_cxx_pre=$php_cxx_pre
7495: b_c_meta=$php_c_meta
7496: b_cxx_meta=$php_cxx_meta
7497: b_c_post=$php_c_post
7498: b_cxx_post=$php_cxx_post
7499: b_lo=$php_lo
7500:
7501:
7502: old_IFS=$IFS
7503: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7504:
7505: IFS=.
7506: set $ac_src
7507: ac_obj=$1
7508: IFS=$old_IFS
7509:
7510: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7511:
7512: case $ac_src in
7513: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7514: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7515: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7516: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7517: esac
7518:
7519: cat >>Makefile.objects<<EOF
7520: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7521: $ac_comp
7522: EOF
7523: done
7524:
7525:
7526:
1.1.1.2 misho 7527:
1.1 misho 7528: SAPI_SHARED=libs/libphp5.so
7529: INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
7530: ;;
7531: *beos*)
7532: if test -f _APP_; then `rm _APP_`; fi
7533: `ln -s $APXS_BINDIR/httpd _APP_`
7534: EXTRA_LIBS="$EXTRA_LIBS _APP_"
7535:
1.1.1.2 misho 7536: if test "shared" = "program"; then
7537: PHP_BINARIES="$PHP_BINARIES apache2filter"
7538: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 7539: { { echo "$as_me:$LINENO: error:
! 7540: +--------------------------------------------------------------------+
! 7541: | *** ATTENTION *** |
! 7542: | |
! 7543: | You've configured multiple SAPIs to be build. You can build only |
! 7544: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 7545: +--------------------------------------------------------------------+
! 7546: " >&5
! 7547: echo "$as_me: error:
1.1 misho 7548: +--------------------------------------------------------------------+
7549: | *** ATTENTION *** |
7550: | |
7551: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 7552: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 7553: +--------------------------------------------------------------------+
1.1.1.3 ! misho 7554: " >&2;}
! 7555: { (exit 1); exit 1; }; }
1.1.1.2 misho 7556: else
7557: PHP_SAPI=apache2filter
1.1 misho 7558: fi
7559:
7560:
7561:
1.1.1.2 misho 7562: BUILD_DIR="$BUILD_DIR sapi/apache2filter"
7563:
7564:
7565:
7566: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
7567:
7568:
7569: case "shared" in
7570: static)
7571:
1.1 misho 7572: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7573: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7574: php_c_post=
7575: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7576: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7577: php_cxx_post=
7578: php_lo=lo
7579:
7580: case $with_pic in
7581: yes) pic_setting='-prefer-pic';;
7582: no) pic_setting='-prefer-non-pic';;
7583: esac
7584:
7585: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7586: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7587: shared_c_post=
7588: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7589: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7590: shared_cxx_post=
7591: shared_lo=lo
7592:
7593: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7594: php_sapi_module=static
1.1 misho 7595: ;;
1.1.1.2 misho 7596: shared)
1.1 misho 7597:
7598: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7599: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7600: php_c_post=
7601: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7602: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7603: php_cxx_post=
7604: php_lo=lo
7605:
7606: case $with_pic in
7607: yes) pic_setting='-prefer-pic';;
7608: no) pic_setting='-prefer-non-pic';;
7609: esac
7610:
7611: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7612: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7613: shared_c_post=
7614: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7615: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7616: shared_cxx_post=
7617: shared_lo=lo
7618:
7619: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7620: php_sapi_module=shared
1.1 misho 7621:
7622: php_c_pre=$shared_c_pre
7623: php_c_meta=$shared_c_meta
7624: php_c_post=$shared_c_post
7625: php_cxx_pre=$shared_cxx_pre
7626: php_cxx_meta=$shared_cxx_meta
7627: php_cxx_post=$shared_cxx_post
7628: php_lo=$shared_lo
7629: ;;
1.1.1.2 misho 7630: bundle)
1.1 misho 7631:
7632: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7633: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7634: php_c_post=
7635: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7636: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7637: php_cxx_post=
7638: php_lo=lo
7639:
7640: case $with_pic in
7641: yes) pic_setting='-prefer-pic';;
7642: no) pic_setting='-prefer-non-pic';;
7643: esac
7644:
7645: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7646: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7647: shared_c_post=
7648: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7649: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7650: shared_cxx_post=
7651: shared_lo=lo
7652:
7653: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 7654: php_sapi_module=static
1.1 misho 7655: ;;
1.1.1.2 misho 7656: esac
7657: install_sapi="install-sapi"
1.1 misho 7658:
7659:
7660: case sapi/apache2filter in
7661: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7662: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7663: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7664: esac
7665:
7666:
7667:
7668: b_c_pre=$php_c_pre
7669: b_cxx_pre=$php_cxx_pre
7670: b_c_meta=$php_c_meta
7671: b_cxx_meta=$php_cxx_meta
7672: b_c_post=$php_c_post
7673: b_cxx_post=$php_cxx_post
7674: b_lo=$php_lo
7675:
7676:
7677: old_IFS=$IFS
7678: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7679:
7680: IFS=.
7681: set $ac_src
7682: ac_obj=$1
7683: IFS=$old_IFS
7684:
7685: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7686:
7687: case $ac_src in
7688: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7689: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7690: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7691: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7692: esac
7693:
7694: cat >>Makefile.objects<<EOF
7695: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7696: $ac_comp
7697: EOF
7698: done
7699:
7700:
7701:
1.1.1.2 misho 7702:
1.1 misho 7703: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
7704: ;;
7705: *)
7706:
1.1.1.2 misho 7707: if test "shared" = "program"; then
7708: PHP_BINARIES="$PHP_BINARIES apache2filter"
7709: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 7710: { { echo "$as_me:$LINENO: error:
! 7711: +--------------------------------------------------------------------+
! 7712: | *** ATTENTION *** |
! 7713: | |
! 7714: | You've configured multiple SAPIs to be build. You can build only |
! 7715: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 7716: +--------------------------------------------------------------------+
! 7717: " >&5
! 7718: echo "$as_me: error:
1.1 misho 7719: +--------------------------------------------------------------------+
7720: | *** ATTENTION *** |
7721: | |
7722: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 7723: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 7724: +--------------------------------------------------------------------+
1.1.1.3 ! misho 7725: " >&2;}
! 7726: { (exit 1); exit 1; }; }
1.1.1.2 misho 7727: else
7728: PHP_SAPI=apache2filter
1.1 misho 7729: fi
7730:
7731:
7732:
1.1.1.2 misho 7733: BUILD_DIR="$BUILD_DIR sapi/apache2filter"
7734:
7735:
7736:
7737: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
7738:
7739:
7740: case "shared" in
7741: static)
7742:
1.1 misho 7743: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7744: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7745: php_c_post=
7746: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7747: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7748: php_cxx_post=
7749: php_lo=lo
7750:
7751: case $with_pic in
7752: yes) pic_setting='-prefer-pic';;
7753: no) pic_setting='-prefer-non-pic';;
7754: esac
7755:
7756: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7757: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7758: shared_c_post=
7759: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7760: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7761: shared_cxx_post=
7762: shared_lo=lo
7763:
7764: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7765: php_sapi_module=static
1.1 misho 7766: ;;
1.1.1.2 misho 7767: shared)
1.1 misho 7768:
7769: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7770: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7771: php_c_post=
7772: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7773: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7774: php_cxx_post=
7775: php_lo=lo
7776:
7777: case $with_pic in
7778: yes) pic_setting='-prefer-pic';;
7779: no) pic_setting='-prefer-non-pic';;
7780: esac
7781:
7782: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7783: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7784: shared_c_post=
7785: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7786: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7787: shared_cxx_post=
7788: shared_lo=lo
7789:
7790: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 7791: php_sapi_module=shared
1.1 misho 7792:
7793: php_c_pre=$shared_c_pre
7794: php_c_meta=$shared_c_meta
7795: php_c_post=$shared_c_post
7796: php_cxx_pre=$shared_cxx_pre
7797: php_cxx_meta=$shared_cxx_meta
7798: php_cxx_post=$shared_cxx_post
7799: php_lo=$shared_lo
7800: ;;
1.1.1.2 misho 7801: bundle)
1.1 misho 7802:
7803: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7804: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7805: php_c_post=
7806: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7807: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7808: php_cxx_post=
7809: php_lo=lo
7810:
7811: case $with_pic in
7812: yes) pic_setting='-prefer-pic';;
7813: no) pic_setting='-prefer-non-pic';;
7814: esac
7815:
7816: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7817: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7818: shared_c_post=
7819: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7820: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7821: shared_cxx_post=
7822: shared_lo=lo
7823:
7824: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 7825: php_sapi_module=static
1.1 misho 7826: ;;
1.1.1.2 misho 7827: esac
7828: install_sapi="install-sapi"
1.1 misho 7829:
7830:
7831: case sapi/apache2filter in
7832: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7833: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7834: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7835: esac
7836:
7837:
7838:
7839: b_c_pre=$php_c_pre
7840: b_cxx_pre=$php_cxx_pre
7841: b_c_meta=$php_c_meta
7842: b_cxx_meta=$php_cxx_meta
7843: b_c_post=$php_c_post
7844: b_cxx_post=$php_cxx_post
7845: b_lo=$php_lo
7846:
7847:
7848: old_IFS=$IFS
7849: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7850:
7851: IFS=.
7852: set $ac_src
7853: ac_obj=$1
7854: IFS=$old_IFS
7855:
7856: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7857:
7858: case $ac_src in
7859: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7860: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7861: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7862: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7863: esac
7864:
7865: cat >>Makefile.objects<<EOF
7866: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7867: $ac_comp
7868: EOF
7869: done
7870:
7871:
7872:
1.1.1.2 misho 7873:
1.1 misho 7874: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
7875: ;;
7876: esac
7877:
1.1.1.2 misho 7878: if test "$APACHE_VERSION" -lt 2004001; then
7879: APXS_MPM=`$APXS -q MPM_NAME`
7880: if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
7881:
7882: enable_maintainer_zts=yes
7883: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 7884: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 7885: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 7886: { (exit 1); exit 1; }; }
1.1.1.2 misho 7887: fi
7888:
7889: fi
7890: else
7891: APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
7892: if test -n "$APACHE_THREADED_MPM"; then
1.1 misho 7893:
7894: enable_maintainer_zts=yes
7895: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 7896: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 7897: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 7898: { (exit 1); exit 1; }; }
1.1 misho 7899: fi
7900:
1.1.1.2 misho 7901: fi
1.1 misho 7902: fi
1.1.1.3 ! misho 7903: { echo "$as_me:$LINENO: result: yes" >&5
! 7904: echo "${ECHO_T}yes" >&6; }
1.1 misho 7905:
7906: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
7907:
7908: else
1.1.1.3 ! misho 7909: { echo "$as_me:$LINENO: result: no" >&5
! 7910: echo "${ECHO_T}no" >&6; }
1.1 misho 7911: fi
7912:
7913:
7914:
7915:
7916: php_with_apxs2=no
7917:
7918:
7919:
7920: # Check whether --with-apxs2 was given.
1.1.1.3 ! misho 7921: if test "${with_apxs2+set}" = set; then
1.1 misho 7922: withval=$with_apxs2; PHP_APXS2=$withval
7923: else
7924:
7925: PHP_APXS2=no
7926:
7927:
7928: fi
7929:
7930:
7931: ext_output=$PHP_APXS2
7932:
7933:
7934:
7935:
7936:
1.1.1.3 ! misho 7937: { echo "$as_me:$LINENO: checking for Apache 2.0 handler-module support via DSO through APXS" >&5
! 7938: echo $ECHO_N "checking for Apache 2.0 handler-module support via DSO through APXS... $ECHO_C" >&6; }
1.1 misho 7939:
7940: if test "$PHP_APXS2" != "no"; then
7941: if test "$PHP_APXS2" = "yes"; then
7942: APXS=apxs
7943: $APXS -q CFLAGS >/dev/null 2>&1
7944: if test "$?" != "0" && test -x /usr/sbin/apxs; then
7945: APXS=/usr/sbin/apxs
7946: fi
7947: else
7948:
7949: if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then
7950: APXS=$PHP_APXS2
7951: else
7952:
7953: ep_dir="`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'`"
7954:
7955: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
7956: APXS="$ep_realdir/`basename \"$PHP_APXS2\"`"
7957: fi
7958:
7959: fi
7960:
7961: $APXS -q CFLAGS >/dev/null 2>&1
7962: if test "$?" != "0"; then
1.1.1.3 ! misho 7963: { echo "$as_me:$LINENO: result: " >&5
! 7964: echo "${ECHO_T}" >&6; }
! 7965: { echo "$as_me:$LINENO: result: " >&5
! 7966: echo "${ECHO_T}" >&6; }
! 7967: { echo "$as_me:$LINENO: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5
! 7968: echo "${ECHO_T}Sorry, I cannot run apxs. Possible reasons follow:" >&6; }
! 7969: { echo "$as_me:$LINENO: result: " >&5
! 7970: echo "${ECHO_T}" >&6; }
! 7971: { echo "$as_me:$LINENO: result: 1. Perl is not installed" >&5
! 7972: echo "${ECHO_T}1. Perl is not installed" >&6; }
! 7973: { echo "$as_me:$LINENO: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5
! 7974: echo "${ECHO_T}2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; }
! 7975: { echo "$as_me:$LINENO: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
! 7976: echo "${ECHO_T}3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
! 7977: { echo "$as_me:$LINENO: result: " >&5
! 7978: echo "${ECHO_T}" >&6; }
! 7979: { echo "$as_me:$LINENO: result: The output of $APXS follows:" >&5
! 7980: echo "${ECHO_T}The output of $APXS follows:" >&6; }
1.1 misho 7981: $APXS -q CFLAGS
1.1.1.3 ! misho 7982: { { echo "$as_me:$LINENO: error: Aborting" >&5
! 7983: echo "$as_me: error: Aborting" >&2;}
! 7984: { (exit 1); exit 1; }; }
1.1 misho 7985: fi
7986:
7987: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
7988: APXS_BINDIR=`$APXS -q BINDIR`
7989: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
7990: APXS_CFLAGS=`$APXS -q CFLAGS`
7991: APU_BINDIR=`$APXS -q APU_BINDIR`
7992: APR_BINDIR=`$APXS -q APR_BINDIR`
7993:
7994: # Pick up ap[ru]-N-config if using httpd >=2.1
7995: APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
7996: echo $APR_BINDIR/apr-config`
7997: APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
7998: echo $APU_BINDIR/apu-config`
7999:
8000: APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
8001: APU_CFLAGS="`$APU_CONFIG --includes`"
8002:
8003: for flag in $APXS_CFLAGS; do
8004: case $flag in
8005: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
8006: esac
8007: done
8008:
8009: APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
8010:
8011: # Test that we're trying to configure with apache 2.x
8012:
8013: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
8014: ac_IFS=$IFS
8015: IFS="- /.
8016: "
8017: set $ac_output
8018: IFS=$ac_IFS
8019:
8020: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
8021:
8022: if test "$APACHE_VERSION" -le 2000000; then
1.1.1.3 ! misho 8023: { { echo "$as_me:$LINENO: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" >&5
! 8024: echo "$as_me: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" >&2;}
! 8025: { (exit 1); exit 1; }; }
1.1 misho 8026: elif test "$APACHE_VERSION" -lt 2000044; then
1.1.1.3 ! misho 8027: { { echo "$as_me:$LINENO: error: Please note that Apache version >= 2.0.44 is required" >&5
! 8028: echo "$as_me: error: Please note that Apache version >= 2.0.44 is required" >&2;}
! 8029: { (exit 1); exit 1; }; }
1.1 misho 8030: fi
8031:
8032: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
8033: if test -z `$APXS -q SYSCONFDIR`; then
8034: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
8035: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
8036: -i -n php5"
8037: else
8038: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
8039: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
8040: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
8041: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
8042: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
8043: -i -a -n php5"
8044: fi
8045:
8046: case $host_alias in
8047: *aix*)
8048: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
8049:
1.1.1.2 misho 8050: if test "shared" = "program"; then
8051: PHP_BINARIES="$PHP_BINARIES apache2handler"
8052: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 8053: { { echo "$as_me:$LINENO: error:
! 8054: +--------------------------------------------------------------------+
! 8055: | *** ATTENTION *** |
! 8056: | |
! 8057: | You've configured multiple SAPIs to be build. You can build only |
! 8058: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 8059: +--------------------------------------------------------------------+
! 8060: " >&5
! 8061: echo "$as_me: error:
1.1 misho 8062: +--------------------------------------------------------------------+
8063: | *** ATTENTION *** |
8064: | |
8065: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 8066: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 8067: +--------------------------------------------------------------------+
1.1.1.3 ! misho 8068: " >&2;}
! 8069: { (exit 1); exit 1; }; }
1.1.1.2 misho 8070: else
8071: PHP_SAPI=apache2handler
1.1 misho 8072: fi
8073:
8074:
8075:
1.1.1.2 misho 8076: BUILD_DIR="$BUILD_DIR sapi/apache2handler"
8077:
8078:
8079:
8080: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
8081:
8082:
8083: case "shared" in
8084: static)
8085:
1.1 misho 8086: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8087: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8088: php_c_post=
8089: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8090: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8091: php_cxx_post=
8092: php_lo=lo
8093:
8094: case $with_pic in
8095: yes) pic_setting='-prefer-pic';;
8096: no) pic_setting='-prefer-non-pic';;
8097: esac
8098:
8099: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8100: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8101: shared_c_post=
8102: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8103: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8104: shared_cxx_post=
8105: shared_lo=lo
8106:
8107: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8108: php_sapi_module=static
1.1 misho 8109: ;;
1.1.1.2 misho 8110: shared)
1.1 misho 8111:
8112: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8113: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8114: php_c_post=
8115: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8116: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8117: php_cxx_post=
8118: php_lo=lo
8119:
8120: case $with_pic in
8121: yes) pic_setting='-prefer-pic';;
8122: no) pic_setting='-prefer-non-pic';;
8123: esac
8124:
8125: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8126: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8127: shared_c_post=
8128: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8129: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8130: shared_cxx_post=
8131: shared_lo=lo
8132:
8133: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8134: php_sapi_module=shared
1.1 misho 8135:
8136: php_c_pre=$shared_c_pre
8137: php_c_meta=$shared_c_meta
8138: php_c_post=$shared_c_post
8139: php_cxx_pre=$shared_cxx_pre
8140: php_cxx_meta=$shared_cxx_meta
8141: php_cxx_post=$shared_cxx_post
8142: php_lo=$shared_lo
8143: ;;
1.1.1.2 misho 8144: bundle)
1.1 misho 8145:
8146: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8147: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8148: php_c_post=
8149: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8150: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8151: php_cxx_post=
8152: php_lo=lo
8153:
8154: case $with_pic in
8155: yes) pic_setting='-prefer-pic';;
8156: no) pic_setting='-prefer-non-pic';;
8157: esac
8158:
8159: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8160: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8161: shared_c_post=
8162: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8163: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8164: shared_cxx_post=
8165: shared_lo=lo
8166:
8167: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 8168: php_sapi_module=static
1.1 misho 8169: ;;
1.1.1.2 misho 8170: esac
8171: install_sapi="install-sapi"
1.1 misho 8172:
8173:
8174: case sapi/apache2handler in
8175: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8176: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8177: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8178: esac
8179:
8180:
8181:
8182: b_c_pre=$php_c_pre
8183: b_cxx_pre=$php_cxx_pre
8184: b_c_meta=$php_c_meta
8185: b_cxx_meta=$php_cxx_meta
8186: b_c_post=$php_c_post
8187: b_cxx_post=$php_cxx_post
8188: b_lo=$php_lo
8189:
8190:
8191: old_IFS=$IFS
8192: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8193:
8194: IFS=.
8195: set $ac_src
8196: ac_obj=$1
8197: IFS=$old_IFS
8198:
8199: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8200:
8201: case $ac_src in
8202: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8203: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8204: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8205: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8206: esac
8207:
8208: cat >>Makefile.objects<<EOF
8209: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8210: $ac_comp
8211: EOF
8212: done
8213:
8214:
8215:
1.1.1.2 misho 8216:
1.1 misho 8217: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8218: ;;
8219: *darwin*)
8220: if test -x "$APR_CONFIG"; then
8221: MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
8222: fi
8223: if test -x "$APU_CONFIG"; then
8224: MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
8225: fi
8226: MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
8227:
8228: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
8229:
8230:
1.1.1.2 misho 8231: if test "bundle" = "program"; then
8232: PHP_BINARIES="$PHP_BINARIES apache2handler"
8233: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 8234: { { echo "$as_me:$LINENO: error:
1.1 misho 8235: +--------------------------------------------------------------------+
8236: | *** ATTENTION *** |
8237: | |
8238: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 8239: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 8240: +--------------------------------------------------------------------+
1.1.1.3 ! misho 8241: " >&5
! 8242: echo "$as_me: error:
! 8243: +--------------------------------------------------------------------+
! 8244: | *** ATTENTION *** |
! 8245: | |
! 8246: | You've configured multiple SAPIs to be build. You can build only |
! 8247: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 8248: +--------------------------------------------------------------------+
! 8249: " >&2;}
! 8250: { (exit 1); exit 1; }; }
1.1.1.2 misho 8251: else
8252: PHP_SAPI=apache2handler
1.1 misho 8253: fi
8254:
8255:
8256:
1.1.1.2 misho 8257: BUILD_DIR="$BUILD_DIR sapi/apache2handler"
8258:
8259:
8260:
8261: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
8262:
8263:
8264: case "bundle" in
8265: static)
8266:
1.1 misho 8267: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8268: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8269: php_c_post=
8270: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8271: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8272: php_cxx_post=
8273: php_lo=lo
8274:
8275: case $with_pic in
8276: yes) pic_setting='-prefer-pic';;
8277: no) pic_setting='-prefer-non-pic';;
8278: esac
8279:
8280: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8281: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8282: shared_c_post=
8283: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8284: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8285: shared_cxx_post=
8286: shared_lo=lo
8287:
8288: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8289: php_sapi_module=static
1.1 misho 8290: ;;
1.1.1.2 misho 8291: shared)
1.1 misho 8292:
8293: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8294: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8295: php_c_post=
8296: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8297: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8298: php_cxx_post=
8299: php_lo=lo
8300:
8301: case $with_pic in
8302: yes) pic_setting='-prefer-pic';;
8303: no) pic_setting='-prefer-non-pic';;
8304: esac
8305:
8306: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8307: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8308: shared_c_post=
8309: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8310: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8311: shared_cxx_post=
8312: shared_lo=lo
8313:
8314: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8315: php_sapi_module=shared
1.1 misho 8316:
8317: php_c_pre=$shared_c_pre
8318: php_c_meta=$shared_c_meta
8319: php_c_post=$shared_c_post
8320: php_cxx_pre=$shared_cxx_pre
8321: php_cxx_meta=$shared_cxx_meta
8322: php_cxx_post=$shared_cxx_post
8323: php_lo=$shared_lo
8324: ;;
1.1.1.2 misho 8325: bundle)
1.1 misho 8326:
8327: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8328: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8329: php_c_post=
8330: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8331: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8332: php_cxx_post=
8333: php_lo=lo
8334:
8335: case $with_pic in
8336: yes) pic_setting='-prefer-pic';;
8337: no) pic_setting='-prefer-non-pic';;
8338: esac
8339:
8340: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8341: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8342: shared_c_post=
8343: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8344: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8345: shared_cxx_post=
8346: shared_lo=lo
8347:
8348: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 8349: php_sapi_module=static
1.1 misho 8350: ;;
1.1.1.2 misho 8351: esac
8352: install_sapi="install-sapi"
1.1 misho 8353:
8354:
8355: case sapi/apache2handler in
8356: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8357: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8358: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8359: esac
8360:
8361:
8362:
8363: b_c_pre=$php_c_pre
8364: b_cxx_pre=$php_cxx_pre
8365: b_c_meta=$php_c_meta
8366: b_cxx_meta=$php_cxx_meta
8367: b_c_post=$php_c_post
8368: b_cxx_post=$php_cxx_post
8369: b_lo=$php_lo
8370:
8371:
8372: old_IFS=$IFS
8373: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8374:
8375: IFS=.
8376: set $ac_src
8377: ac_obj=$1
8378: IFS=$old_IFS
8379:
8380: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8381:
8382: case $ac_src in
8383: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8384: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8385: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8386: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8387: esac
8388:
8389: cat >>Makefile.objects<<EOF
8390: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8391: $ac_comp
8392: EOF
8393: done
8394:
8395:
8396:
1.1.1.2 misho 8397:
1.1 misho 8398: SAPI_SHARED=libs/libphp5.so
8399: INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
8400: ;;
8401: *beos*)
8402: if test -f _APP_; then `rm _APP_`; fi
8403: `ln -s $APXS_BINDIR/httpd _APP_`
8404: EXTRA_LIBS="$EXTRA_LIBS _APP_"
8405:
1.1.1.2 misho 8406: if test "shared" = "program"; then
8407: PHP_BINARIES="$PHP_BINARIES apache2handler"
8408: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 8409: { { echo "$as_me:$LINENO: error:
! 8410: +--------------------------------------------------------------------+
! 8411: | *** ATTENTION *** |
! 8412: | |
! 8413: | You've configured multiple SAPIs to be build. You can build only |
! 8414: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 8415: +--------------------------------------------------------------------+
! 8416: " >&5
! 8417: echo "$as_me: error:
1.1 misho 8418: +--------------------------------------------------------------------+
8419: | *** ATTENTION *** |
8420: | |
8421: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 8422: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 8423: +--------------------------------------------------------------------+
1.1.1.3 ! misho 8424: " >&2;}
! 8425: { (exit 1); exit 1; }; }
1.1.1.2 misho 8426: else
8427: PHP_SAPI=apache2handler
1.1 misho 8428: fi
8429:
8430:
8431:
1.1.1.2 misho 8432: BUILD_DIR="$BUILD_DIR sapi/apache2handler"
8433:
8434:
8435:
8436: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
8437:
8438:
8439: case "shared" in
8440: static)
8441:
1.1 misho 8442: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8443: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8444: php_c_post=
8445: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8446: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8447: php_cxx_post=
8448: php_lo=lo
8449:
8450: case $with_pic in
8451: yes) pic_setting='-prefer-pic';;
8452: no) pic_setting='-prefer-non-pic';;
8453: esac
8454:
8455: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8456: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8457: shared_c_post=
8458: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8459: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8460: shared_cxx_post=
8461: shared_lo=lo
8462:
8463: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8464: php_sapi_module=static
1.1 misho 8465: ;;
1.1.1.2 misho 8466: shared)
1.1 misho 8467:
8468: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8469: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8470: php_c_post=
8471: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8472: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8473: php_cxx_post=
8474: php_lo=lo
8475:
8476: case $with_pic in
8477: yes) pic_setting='-prefer-pic';;
8478: no) pic_setting='-prefer-non-pic';;
8479: esac
8480:
8481: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8482: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8483: shared_c_post=
8484: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8485: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8486: shared_cxx_post=
8487: shared_lo=lo
8488:
8489: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8490: php_sapi_module=shared
1.1 misho 8491:
8492: php_c_pre=$shared_c_pre
8493: php_c_meta=$shared_c_meta
8494: php_c_post=$shared_c_post
8495: php_cxx_pre=$shared_cxx_pre
8496: php_cxx_meta=$shared_cxx_meta
8497: php_cxx_post=$shared_cxx_post
8498: php_lo=$shared_lo
8499: ;;
1.1.1.2 misho 8500: bundle)
1.1 misho 8501:
8502: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8503: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8504: php_c_post=
8505: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8506: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8507: php_cxx_post=
8508: php_lo=lo
8509:
8510: case $with_pic in
8511: yes) pic_setting='-prefer-pic';;
8512: no) pic_setting='-prefer-non-pic';;
8513: esac
8514:
8515: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8516: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8517: shared_c_post=
8518: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8519: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8520: shared_cxx_post=
8521: shared_lo=lo
8522:
8523: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 8524: php_sapi_module=static
1.1 misho 8525: ;;
1.1.1.2 misho 8526: esac
8527: install_sapi="install-sapi"
1.1 misho 8528:
8529:
8530: case sapi/apache2handler in
8531: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8532: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8533: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8534: esac
8535:
8536:
8537:
8538: b_c_pre=$php_c_pre
8539: b_cxx_pre=$php_cxx_pre
8540: b_c_meta=$php_c_meta
8541: b_cxx_meta=$php_cxx_meta
8542: b_c_post=$php_c_post
8543: b_cxx_post=$php_cxx_post
8544: b_lo=$php_lo
8545:
8546:
8547: old_IFS=$IFS
8548: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8549:
8550: IFS=.
8551: set $ac_src
8552: ac_obj=$1
8553: IFS=$old_IFS
8554:
8555: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8556:
8557: case $ac_src in
8558: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8559: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8560: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8561: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8562: esac
8563:
8564: cat >>Makefile.objects<<EOF
8565: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8566: $ac_comp
8567: EOF
8568: done
8569:
8570:
8571:
1.1.1.2 misho 8572:
1.1 misho 8573: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8574: ;;
8575: *)
8576:
1.1.1.2 misho 8577: if test "shared" = "program"; then
8578: PHP_BINARIES="$PHP_BINARIES apache2handler"
8579: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 8580: { { echo "$as_me:$LINENO: error:
! 8581: +--------------------------------------------------------------------+
! 8582: | *** ATTENTION *** |
! 8583: | |
! 8584: | You've configured multiple SAPIs to be build. You can build only |
! 8585: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 8586: +--------------------------------------------------------------------+
! 8587: " >&5
! 8588: echo "$as_me: error:
1.1 misho 8589: +--------------------------------------------------------------------+
8590: | *** ATTENTION *** |
8591: | |
8592: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 8593: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 8594: +--------------------------------------------------------------------+
1.1.1.3 ! misho 8595: " >&2;}
! 8596: { (exit 1); exit 1; }; }
1.1.1.2 misho 8597: else
8598: PHP_SAPI=apache2handler
1.1 misho 8599: fi
8600:
8601:
8602:
1.1.1.2 misho 8603: BUILD_DIR="$BUILD_DIR sapi/apache2handler"
8604:
8605:
8606:
8607: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
8608:
8609:
8610: case "shared" in
8611: static)
8612:
1.1 misho 8613: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8614: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8615: php_c_post=
8616: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8617: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8618: php_cxx_post=
8619: php_lo=lo
8620:
8621: case $with_pic in
8622: yes) pic_setting='-prefer-pic';;
8623: no) pic_setting='-prefer-non-pic';;
8624: esac
8625:
8626: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8627: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8628: shared_c_post=
8629: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8630: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8631: shared_cxx_post=
8632: shared_lo=lo
8633:
8634: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8635: php_sapi_module=static
1.1 misho 8636: ;;
1.1.1.2 misho 8637: shared)
1.1 misho 8638:
8639: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8640: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8641: php_c_post=
8642: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8643: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8644: php_cxx_post=
8645: php_lo=lo
8646:
8647: case $with_pic in
8648: yes) pic_setting='-prefer-pic';;
8649: no) pic_setting='-prefer-non-pic';;
8650: esac
8651:
8652: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8653: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8654: shared_c_post=
8655: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8656: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8657: shared_cxx_post=
8658: shared_lo=lo
8659:
8660: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8661: php_sapi_module=shared
1.1 misho 8662:
8663: php_c_pre=$shared_c_pre
8664: php_c_meta=$shared_c_meta
8665: php_c_post=$shared_c_post
8666: php_cxx_pre=$shared_cxx_pre
8667: php_cxx_meta=$shared_cxx_meta
8668: php_cxx_post=$shared_cxx_post
8669: php_lo=$shared_lo
8670: ;;
1.1.1.2 misho 8671: bundle)
1.1 misho 8672:
8673: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8674: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8675: php_c_post=
8676: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8677: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8678: php_cxx_post=
8679: php_lo=lo
8680:
8681: case $with_pic in
8682: yes) pic_setting='-prefer-pic';;
8683: no) pic_setting='-prefer-non-pic';;
8684: esac
8685:
8686: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8687: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8688: shared_c_post=
8689: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8690: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8691: shared_cxx_post=
8692: shared_lo=lo
8693:
8694: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 8695: php_sapi_module=static
1.1 misho 8696: ;;
1.1.1.2 misho 8697: esac
8698: install_sapi="install-sapi"
1.1 misho 8699:
8700:
8701: case sapi/apache2handler in
8702: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8703: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8704: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8705: esac
8706:
8707:
8708:
8709: b_c_pre=$php_c_pre
8710: b_cxx_pre=$php_cxx_pre
8711: b_c_meta=$php_c_meta
8712: b_cxx_meta=$php_cxx_meta
8713: b_c_post=$php_c_post
8714: b_cxx_post=$php_cxx_post
8715: b_lo=$php_lo
8716:
8717:
8718: old_IFS=$IFS
8719: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8720:
8721: IFS=.
8722: set $ac_src
8723: ac_obj=$1
8724: IFS=$old_IFS
8725:
8726: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8727:
8728: case $ac_src in
8729: *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8730: *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8731: *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8732: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8733: esac
8734:
8735: cat >>Makefile.objects<<EOF
8736: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8737: $ac_comp
8738: EOF
8739: done
8740:
8741:
8742:
1.1.1.2 misho 8743:
1.1 misho 8744: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8745: ;;
8746: esac
8747:
1.1.1.2 misho 8748: if test "$APACHE_VERSION" -lt 2004001; then
8749: APXS_MPM=`$APXS -q MPM_NAME`
8750: if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
8751:
8752: enable_maintainer_zts=yes
8753: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 8754: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 8755: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 8756: { (exit 1); exit 1; }; }
1.1.1.2 misho 8757: fi
8758:
8759: fi
8760: else
8761: APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
8762: if test -n "$APACHE_THREADED_MPM"; then
1.1 misho 8763:
8764: enable_maintainer_zts=yes
8765: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 8766: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 8767: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 8768: { (exit 1); exit 1; }; }
1.1 misho 8769: fi
8770:
1.1.1.2 misho 8771: fi
1.1 misho 8772: fi
1.1.1.3 ! misho 8773: { echo "$as_me:$LINENO: result: yes" >&5
! 8774: echo "${ECHO_T}yes" >&6; }
1.1 misho 8775:
8776: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
8777:
8778: else
1.1.1.3 ! misho 8779: { echo "$as_me:$LINENO: result: no" >&5
! 8780: echo "${ECHO_T}no" >&6; }
1.1 misho 8781: fi
8782:
8783:
8784:
8785:
8786:
8787: php_with_apache_hooks=no
8788:
8789:
8790:
8791: # Check whether --with-apache-hooks was given.
1.1.1.3 ! misho 8792: if test "${with_apache_hooks+set}" = set; then
1.1 misho 8793: withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval
8794: else
8795:
8796: PHP_APACHE_HOOKS=no
8797:
8798:
8799: fi
8800:
8801:
8802: ext_output=$PHP_APACHE_HOOKS
8803:
8804:
8805:
8806:
8807:
1.1.1.3 ! misho 8808: { echo "$as_me:$LINENO: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5
! 8809: echo $ECHO_N "checking for Apache 1.x (hooks) module support via DSO through APXS... $ECHO_C" >&6; }
1.1 misho 8810:
8811: if test "$PHP_APACHE_HOOKS" != "no"; then
8812: if test "$PHP_APACHE_HOOKS" = "yes"; then
8813: APXS=apxs
8814: $APXS -q CFLAGS >/dev/null 2>&1
8815: if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
8816: APXS=/usr/sbin/apxs
8817: fi
8818: else
8819:
8820: if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then
8821: APXS=$PHP_APACHE_HOOKS
8822: else
8823:
8824: ep_dir="`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'`"
8825:
8826: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
8827: APXS="$ep_realdir/`basename \"$PHP_APACHE_HOOKS\"`"
8828: fi
8829:
8830: fi
8831:
8832: $APXS -q CFLAGS >/dev/null 2>&1
8833: if test "$?" != "0"; then
1.1.1.3 ! misho 8834: { echo "$as_me:$LINENO: result: " >&5
! 8835: echo "${ECHO_T}" >&6; }
! 8836: { echo "$as_me:$LINENO: result: " >&5
! 8837: echo "${ECHO_T}" >&6; }
! 8838: { echo "$as_me:$LINENO: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5
! 8839: echo "${ECHO_T}Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; }
! 8840: { echo "$as_me:$LINENO: result: " >&5
! 8841: echo "${ECHO_T}" >&6; }
! 8842: { echo "$as_me:$LINENO: result: 1. Perl is not installed;" >&5
! 8843: echo "${ECHO_T}1. Perl is not installed;" >&6; }
! 8844: { echo "$as_me:$LINENO: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5
! 8845: echo "${ECHO_T}2. Apache was not compiled with DSO support (--enable-module=so);" >&6; }
! 8846: { echo "$as_me:$LINENO: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5
! 8847: echo "${ECHO_T}3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; }
! 8848: { echo "$as_me:$LINENO: result: The output of $APXS follows" >&5
! 8849: echo "${ECHO_T}The output of $APXS follows" >&6; }
1.1 misho 8850: $APXS -q CFLAGS
1.1.1.3 ! misho 8851: { { echo "$as_me:$LINENO: error: Aborting" >&5
! 8852: echo "$as_me: error: Aborting" >&2;}
! 8853: { (exit 1); exit 1; }; }
1.1 misho 8854: fi
8855:
8856: APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
8857: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
8858: APXS_CFLAGS=`$APXS -q CFLAGS`
8859: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
8860: APACHE_INCLUDE=-I$APXS_INCLUDEDIR
8861:
8862: # Test that we're trying to configure with apache 1.x
8863:
8864: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
8865: ac_IFS=$IFS
8866: IFS="- /.
8867: "
8868: set $ac_output
8869: IFS=$ac_IFS
8870:
8871: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
8872:
8873: if test "$APACHE_VERSION" -ge 2000000; then
1.1.1.3 ! misho 8874: { { echo "$as_me:$LINENO: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" >&5
! 8875: echo "$as_me: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" >&2;}
! 8876: { (exit 1); exit 1; }; }
1.1 misho 8877: fi
8878:
8879: for flag in $APXS_CFLAGS; do
8880: case $flag in
8881: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
8882: esac
8883: done
8884:
8885: case $host_alias in
8886: *aix*)
8887: APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
8888: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
8889: PHP_AIX_LDFLAGS="-Wl,-brtl"
8890: build_type=shared
8891: ;;
8892: *darwin*)
8893: MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
8894:
8895: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
8896:
8897: SAPI_SHARED=libs/libphp5.so
8898: build_type=bundle
8899: ;;
8900: *)
8901: build_type=shared
8902: ;;
8903: esac
8904:
8905:
1.1.1.2 misho 8906: if test "$build_type" = "program"; then
8907: PHP_BINARIES="$PHP_BINARIES apache_hooks"
8908: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 8909: { { echo "$as_me:$LINENO: error:
! 8910: +--------------------------------------------------------------------+
! 8911: | *** ATTENTION *** |
! 8912: | |
! 8913: | You've configured multiple SAPIs to be build. You can build only |
! 8914: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 8915: +--------------------------------------------------------------------+
! 8916: " >&5
! 8917: echo "$as_me: error:
1.1 misho 8918: +--------------------------------------------------------------------+
8919: | *** ATTENTION *** |
8920: | |
8921: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 8922: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 8923: +--------------------------------------------------------------------+
1.1.1.3 ! misho 8924: " >&2;}
! 8925: { (exit 1); exit 1; }; }
1.1.1.2 misho 8926: else
8927: PHP_SAPI=apache_hooks
1.1 misho 8928: fi
8929:
8930:
8931:
1.1.1.2 misho 8932: BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
8933:
8934:
8935:
8936: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
8937:
8938:
8939: case "$build_type" in
8940: static)
8941:
1.1 misho 8942: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8943: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8944: php_c_post=
8945: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8946: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8947: php_cxx_post=
8948: php_lo=lo
8949:
8950: case $with_pic in
8951: yes) pic_setting='-prefer-pic';;
8952: no) pic_setting='-prefer-non-pic';;
8953: esac
8954:
8955: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8956: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8957: shared_c_post=
8958: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8959: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8960: shared_cxx_post=
8961: shared_lo=lo
8962:
8963: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8964: php_sapi_module=static
1.1 misho 8965: ;;
1.1.1.2 misho 8966: shared)
1.1 misho 8967:
8968: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8969: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8970: php_c_post=
8971: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8972: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8973: php_cxx_post=
8974: php_lo=lo
8975:
8976: case $with_pic in
8977: yes) pic_setting='-prefer-pic';;
8978: no) pic_setting='-prefer-non-pic';;
8979: esac
8980:
8981: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8982: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8983: shared_c_post=
8984: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8985: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8986: shared_cxx_post=
8987: shared_lo=lo
8988:
8989: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 8990: php_sapi_module=shared
1.1 misho 8991:
8992: php_c_pre=$shared_c_pre
8993: php_c_meta=$shared_c_meta
8994: php_c_post=$shared_c_post
8995: php_cxx_pre=$shared_cxx_pre
8996: php_cxx_meta=$shared_cxx_meta
8997: php_cxx_post=$shared_cxx_post
8998: php_lo=$shared_lo
8999: ;;
1.1.1.2 misho 9000: bundle)
1.1 misho 9001:
9002: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9003: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9004: php_c_post=
9005: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9006: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9007: php_cxx_post=
9008: php_lo=lo
9009:
9010: case $with_pic in
9011: yes) pic_setting='-prefer-pic';;
9012: no) pic_setting='-prefer-non-pic';;
9013: esac
9014:
9015: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9016: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9017: shared_c_post=
9018: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9019: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9020: shared_cxx_post=
9021: shared_lo=lo
9022:
9023: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 9024: php_sapi_module=static
1.1 misho 9025: ;;
1.1.1.2 misho 9026: esac
9027: install_sapi="install-sapi"
1.1 misho 9028:
9029:
9030: case sapi/apache_hooks in
9031: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9032: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9033: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9034: esac
9035:
9036:
9037:
9038: b_c_pre=$php_c_pre
9039: b_cxx_pre=$php_cxx_pre
9040: b_c_meta=$php_c_meta
9041: b_cxx_meta=$php_cxx_meta
9042: b_c_post=$php_c_post
9043: b_cxx_post=$php_cxx_post
9044: b_lo=$php_lo
9045:
9046:
9047: old_IFS=$IFS
9048: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9049:
9050: IFS=.
9051: set $ac_src
9052: ac_obj=$1
9053: IFS=$old_IFS
9054:
9055: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9056:
9057: case $ac_src in
9058: *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9059: *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9060: *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9061: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9062: esac
9063:
9064: cat >>Makefile.objects<<EOF
9065: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9066: $ac_comp
9067: EOF
9068: done
9069:
9070:
9071:
9072:
1.1.1.2 misho 9073:
1.1 misho 9074: # Test whether apxs support -S option
9075: $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
9076:
9077: if test "$?" != "0"; then
9078: APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
9079: else
9080: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
9081: if test -z `$APXS -q SYSCONFDIR`; then
9082: APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
9083: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
9084: -i -n php5 $SAPI_SHARED"
9085: else
9086: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
9087: APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
9088: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
9089: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
9090: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
9091: -i -a -n php5 $SAPI_SHARED"
9092: fi
9093: fi
9094:
9095: if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
9096: PHP_APXS_BROKEN=yes
9097: fi
9098: STRONGHOLD=
9099:
1.1.1.3 ! misho 9100: cat >>confdefs.h <<\_ACEOF
! 9101: #define HAVE_AP_CONFIG_H 1
! 9102: _ACEOF
1.1 misho 9103:
9104:
1.1.1.3 ! misho 9105: cat >>confdefs.h <<\_ACEOF
! 9106: #define HAVE_AP_COMPAT_H 1
! 9107: _ACEOF
1.1 misho 9108:
9109:
1.1.1.3 ! misho 9110: cat >>confdefs.h <<\_ACEOF
! 9111: #define HAVE_APACHE_HOOKS 1
! 9112: _ACEOF
1.1 misho 9113:
1.1.1.3 ! misho 9114: { echo "$as_me:$LINENO: result: yes" >&5
! 9115: echo "${ECHO_T}yes" >&6; }
1.1 misho 9116: else
1.1.1.3 ! misho 9117: { echo "$as_me:$LINENO: result: no" >&5
! 9118: echo "${ECHO_T}no" >&6; }
1.1 misho 9119: fi
9120:
9121:
9122: php_with_apache_hooks_static=no
9123:
9124:
9125:
9126: # Check whether --with-apache-hooks-static was given.
1.1.1.3 ! misho 9127: if test "${with_apache_hooks_static+set}" = set; then
1.1 misho 9128: withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval
9129: else
9130:
9131: PHP_APACHE_HOOKS_STATIC=no
9132:
9133:
9134: fi
9135:
9136:
9137: ext_output=$PHP_APACHE_HOOKS_STATIC
9138:
9139:
9140:
9141:
9142:
1.1.1.3 ! misho 9143: { echo "$as_me:$LINENO: checking for Apache 1.x (hooks) module support" >&5
! 9144: echo $ECHO_N "checking for Apache 1.x (hooks) module support... $ECHO_C" >&6; }
1.1 misho 9145:
9146: if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then
9147:
9148: if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then
9149: # Apache's default directory
9150: PHP_APACHE_HOOKS_STATIC=/usr/local/apache
9151: fi
9152:
9153: APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module"
9154:
9155:
1.1.1.3 ! misho 9156: cat >>confdefs.h <<\_ACEOF
! 9157: #define HAVE_APACHE 1
! 9158: _ACEOF
1.1 misho 9159:
9160: APACHE_HOOKS_MODULE=yes
9161:
9162: if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then
9163: PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC
9164: else
9165:
9166: ep_dir="`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'`"
9167:
9168: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
9169: PHP_APACHE_HOOKS_STATIC="$ep_realdir/`basename \"$PHP_APACHE_HOOKS_STATIC\"`"
9170: fi
9171:
9172: # For Apache 1.2.x
9173: if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then
9174: APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src
9175: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src
9176:
1.1.1.2 misho 9177: if test "static" = "program"; then
9178: PHP_BINARIES="$PHP_BINARIES apache_hooks"
9179: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 9180: { { echo "$as_me:$LINENO: error:
! 9181: +--------------------------------------------------------------------+
! 9182: | *** ATTENTION *** |
! 9183: | |
! 9184: | You've configured multiple SAPIs to be build. You can build only |
! 9185: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 9186: +--------------------------------------------------------------------+
! 9187: " >&5
! 9188: echo "$as_me: error:
1.1 misho 9189: +--------------------------------------------------------------------+
9190: | *** ATTENTION *** |
9191: | |
9192: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 9193: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 9194: +--------------------------------------------------------------------+
1.1.1.3 ! misho 9195: " >&2;}
! 9196: { (exit 1); exit 1; }; }
1.1.1.2 misho 9197: else
9198: PHP_SAPI=apache_hooks
1.1 misho 9199: fi
9200:
9201:
9202:
1.1.1.2 misho 9203: BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
9204:
9205:
9206:
9207: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
9208:
9209:
9210: case "static" in
9211: static)
9212:
1.1 misho 9213: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9214: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9215: php_c_post=
9216: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9217: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9218: php_cxx_post=
9219: php_lo=lo
9220:
9221: case $with_pic in
9222: yes) pic_setting='-prefer-pic';;
9223: no) pic_setting='-prefer-non-pic';;
9224: esac
9225:
9226: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9227: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9228: shared_c_post=
9229: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9230: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9231: shared_cxx_post=
9232: shared_lo=lo
9233:
9234: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9235: php_sapi_module=static
1.1 misho 9236: ;;
1.1.1.2 misho 9237: shared)
1.1 misho 9238:
9239: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9240: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9241: php_c_post=
9242: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9243: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9244: php_cxx_post=
9245: php_lo=lo
9246:
9247: case $with_pic in
9248: yes) pic_setting='-prefer-pic';;
9249: no) pic_setting='-prefer-non-pic';;
9250: esac
9251:
9252: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9253: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9254: shared_c_post=
9255: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9256: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9257: shared_cxx_post=
9258: shared_lo=lo
9259:
9260: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9261: php_sapi_module=shared
1.1 misho 9262:
9263: php_c_pre=$shared_c_pre
9264: php_c_meta=$shared_c_meta
9265: php_c_post=$shared_c_post
9266: php_cxx_pre=$shared_cxx_pre
9267: php_cxx_meta=$shared_cxx_meta
9268: php_cxx_post=$shared_cxx_post
9269: php_lo=$shared_lo
9270: ;;
1.1.1.2 misho 9271: bundle)
1.1 misho 9272:
9273: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9274: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9275: php_c_post=
9276: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9277: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9278: php_cxx_post=
9279: php_lo=lo
9280:
9281: case $with_pic in
9282: yes) pic_setting='-prefer-pic';;
9283: no) pic_setting='-prefer-non-pic';;
9284: esac
9285:
9286: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9287: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9288: shared_c_post=
9289: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9290: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9291: shared_cxx_post=
9292: shared_lo=lo
9293:
9294: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 9295: php_sapi_module=static
1.1 misho 9296: ;;
1.1.1.2 misho 9297: esac
9298: install_sapi="install-sapi"
1.1 misho 9299:
1.1.1.2 misho 9300:
9301: case sapi/apache_hooks in
9302: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9303: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9304: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 9305: esac
9306:
9307:
9308:
9309: b_c_pre=$php_c_pre
9310: b_cxx_pre=$php_cxx_pre
9311: b_c_meta=$php_c_meta
9312: b_cxx_meta=$php_cxx_meta
9313: b_c_post=$php_c_post
9314: b_cxx_post=$php_cxx_post
9315: b_lo=$php_lo
9316:
9317:
9318: old_IFS=$IFS
9319: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9320:
9321: IFS=.
9322: set $ac_src
9323: ac_obj=$1
9324: IFS=$old_IFS
9325:
9326: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9327:
9328: case $ac_src in
9329: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9330: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9331: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9332: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9333: esac
9334:
9335: cat >>Makefile.objects<<EOF
9336: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9337: $ac_comp
9338: EOF
9339: done
9340:
9341:
9342:
1.1.1.2 misho 9343:
1.1 misho 9344: APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
9345: PHP_LIBS="-L. -lphp3"
1.1.1.3 ! misho 9346: { echo "$as_me:$LINENO: result: yes - Apache 1.2.x" >&5
! 9347: echo "${ECHO_T}yes - Apache 1.2.x" >&6; }
1.1 misho 9348: STRONGHOLD=
9349: if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then
9350:
1.1.1.3 ! misho 9351: cat >>confdefs.h <<\_ACEOF
! 9352: #define HAVE_AP_CONFIG_H 1
! 9353: _ACEOF
1.1 misho 9354:
9355: fi
9356: # For Apache 2.0.x
9357: elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then
1.1.1.3 ! misho 9358: { { echo "$as_me:$LINENO: error: Use --with-apxs2 with Apache 2.x!" >&5
! 9359: echo "$as_me: error: Use --with-apxs2 with Apache 2.x!" >&2;}
! 9360: { (exit 1); exit 1; }; }
1.1 misho 9361: # For Apache 1.3.x
9362: elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then
9363: APACHE_HAS_REGEX=1
9364: APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap"
9365: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
9366: if test ! -d $APACHE_TARGET; then
9367: mkdir $APACHE_TARGET
9368: fi
9369:
1.1.1.2 misho 9370: if test "static" = "program"; then
9371: PHP_BINARIES="$PHP_BINARIES apache_hooks"
9372: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 9373: { { echo "$as_me:$LINENO: error:
! 9374: +--------------------------------------------------------------------+
! 9375: | *** ATTENTION *** |
! 9376: | |
! 9377: | You've configured multiple SAPIs to be build. You can build only |
! 9378: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 9379: +--------------------------------------------------------------------+
! 9380: " >&5
! 9381: echo "$as_me: error:
1.1 misho 9382: +--------------------------------------------------------------------+
9383: | *** ATTENTION *** |
9384: | |
9385: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 9386: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 9387: +--------------------------------------------------------------------+
1.1.1.3 ! misho 9388: " >&2;}
! 9389: { (exit 1); exit 1; }; }
1.1.1.2 misho 9390: else
9391: PHP_SAPI=apache_hooks
1.1 misho 9392: fi
9393:
9394:
9395:
1.1.1.2 misho 9396: BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
9397:
9398:
9399:
9400: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
9401:
9402:
9403: case "static" in
9404: static)
9405:
1.1 misho 9406: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9407: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9408: php_c_post=
9409: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9410: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9411: php_cxx_post=
9412: php_lo=lo
9413:
9414: case $with_pic in
9415: yes) pic_setting='-prefer-pic';;
9416: no) pic_setting='-prefer-non-pic';;
9417: esac
9418:
9419: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9420: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9421: shared_c_post=
9422: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9423: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9424: shared_cxx_post=
9425: shared_lo=lo
9426:
9427: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9428: php_sapi_module=static
1.1 misho 9429: ;;
1.1.1.2 misho 9430: shared)
1.1 misho 9431:
9432: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9433: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9434: php_c_post=
9435: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9436: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9437: php_cxx_post=
9438: php_lo=lo
9439:
9440: case $with_pic in
9441: yes) pic_setting='-prefer-pic';;
9442: no) pic_setting='-prefer-non-pic';;
9443: esac
9444:
9445: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9446: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9447: shared_c_post=
9448: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9449: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9450: shared_cxx_post=
9451: shared_lo=lo
9452:
9453: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9454: php_sapi_module=shared
1.1 misho 9455:
9456: php_c_pre=$shared_c_pre
9457: php_c_meta=$shared_c_meta
9458: php_c_post=$shared_c_post
9459: php_cxx_pre=$shared_cxx_pre
9460: php_cxx_meta=$shared_cxx_meta
9461: php_cxx_post=$shared_cxx_post
9462: php_lo=$shared_lo
9463: ;;
1.1.1.2 misho 9464: bundle)
1.1 misho 9465:
9466: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9467: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9468: php_c_post=
9469: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9470: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9471: php_cxx_post=
9472: php_lo=lo
9473:
9474: case $with_pic in
9475: yes) pic_setting='-prefer-pic';;
9476: no) pic_setting='-prefer-non-pic';;
9477: esac
9478:
9479: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9480: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9481: shared_c_post=
9482: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9483: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9484: shared_cxx_post=
9485: shared_lo=lo
9486:
9487: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 9488: php_sapi_module=static
1.1 misho 9489: ;;
1.1.1.2 misho 9490: esac
9491: install_sapi="install-sapi"
1.1 misho 9492:
9493:
9494: case sapi/apache_hooks in
9495: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9496: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9497: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9498: esac
9499:
9500:
9501:
9502: b_c_pre=$php_c_pre
9503: b_cxx_pre=$php_cxx_pre
9504: b_c_meta=$php_c_meta
9505: b_cxx_meta=$php_cxx_meta
9506: b_c_post=$php_c_post
9507: b_cxx_post=$php_cxx_post
9508: b_lo=$php_lo
9509:
9510:
9511: old_IFS=$IFS
9512: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9513:
9514: IFS=.
9515: set $ac_src
9516: ac_obj=$1
9517: IFS=$old_IFS
9518:
9519: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9520:
9521: case $ac_src in
9522: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9523: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9524: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9525: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9526: esac
9527:
9528: cat >>Makefile.objects<<EOF
9529: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9530: $ac_comp
9531: EOF
9532: done
9533:
9534:
9535:
1.1.1.2 misho 9536:
1.1 misho 9537: APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache_hooks/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache_hooks/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
9538: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
1.1.1.3 ! misho 9539: { echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
! 9540: echo "${ECHO_T}yes - Apache 1.3.x" >&6; }
1.1 misho 9541: STRONGHOLD=
9542: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
9543:
1.1.1.3 ! misho 9544: cat >>confdefs.h <<\_ACEOF
! 9545: #define HAVE_AP_CONFIG_H 1
! 9546: _ACEOF
1.1 misho 9547:
9548: fi
9549: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
9550:
1.1.1.3 ! misho 9551: cat >>confdefs.h <<\_ACEOF
! 9552: #define HAVE_AP_COMPAT_H 1
! 9553: _ACEOF
1.1 misho 9554:
9555: if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
1.1.1.3 ! misho 9556: { { echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
! 9557: echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
! 9558: { (exit 1); exit 1; }; }
1.1 misho 9559: fi
9560: elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
9561:
1.1.1.3 ! misho 9562: cat >>confdefs.h <<\_ACEOF
! 9563: #define HAVE_OLD_COMPAT_H 1
! 9564: _ACEOF
1.1 misho 9565:
9566: fi
9567: # Also for Apache 1.3.x
9568: elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then
9569: APACHE_HAS_REGEX=1
9570: APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix"
9571: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
9572: if test ! -d $APACHE_TARGET; then
9573: mkdir $APACHE_TARGET
9574: fi
9575:
1.1.1.2 misho 9576: if test "static" = "program"; then
9577: PHP_BINARIES="$PHP_BINARIES apache_hooks"
9578: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 9579: { { echo "$as_me:$LINENO: error:
! 9580: +--------------------------------------------------------------------+
! 9581: | *** ATTENTION *** |
! 9582: | |
! 9583: | You've configured multiple SAPIs to be build. You can build only |
! 9584: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 9585: +--------------------------------------------------------------------+
! 9586: " >&5
! 9587: echo "$as_me: error:
1.1 misho 9588: +--------------------------------------------------------------------+
9589: | *** ATTENTION *** |
9590: | |
9591: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 9592: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 9593: +--------------------------------------------------------------------+
1.1.1.3 ! misho 9594: " >&2;}
! 9595: { (exit 1); exit 1; }; }
1.1.1.2 misho 9596: else
9597: PHP_SAPI=apache_hooks
1.1 misho 9598: fi
9599:
9600:
9601:
1.1.1.2 misho 9602: BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
9603:
9604:
9605:
9606: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
9607:
9608:
9609: case "static" in
9610: static)
9611:
1.1 misho 9612: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9613: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9614: php_c_post=
9615: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9616: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9617: php_cxx_post=
9618: php_lo=lo
9619:
9620: case $with_pic in
9621: yes) pic_setting='-prefer-pic';;
9622: no) pic_setting='-prefer-non-pic';;
9623: esac
9624:
9625: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9626: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9627: shared_c_post=
9628: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9629: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9630: shared_cxx_post=
9631: shared_lo=lo
9632:
9633: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9634: php_sapi_module=static
1.1 misho 9635: ;;
1.1.1.2 misho 9636: shared)
1.1 misho 9637:
9638: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9639: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9640: php_c_post=
9641: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9642: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9643: php_cxx_post=
9644: php_lo=lo
9645:
9646: case $with_pic in
9647: yes) pic_setting='-prefer-pic';;
9648: no) pic_setting='-prefer-non-pic';;
9649: esac
9650:
9651: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9652: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9653: shared_c_post=
9654: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9655: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9656: shared_cxx_post=
9657: shared_lo=lo
9658:
9659: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9660: php_sapi_module=shared
1.1 misho 9661:
9662: php_c_pre=$shared_c_pre
9663: php_c_meta=$shared_c_meta
9664: php_c_post=$shared_c_post
9665: php_cxx_pre=$shared_cxx_pre
9666: php_cxx_meta=$shared_cxx_meta
9667: php_cxx_post=$shared_cxx_post
9668: php_lo=$shared_lo
9669: ;;
1.1.1.2 misho 9670: bundle)
1.1 misho 9671:
9672: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9673: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9674: php_c_post=
9675: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9676: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9677: php_cxx_post=
9678: php_lo=lo
9679:
9680: case $with_pic in
9681: yes) pic_setting='-prefer-pic';;
9682: no) pic_setting='-prefer-non-pic';;
9683: esac
9684:
9685: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9686: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9687: shared_c_post=
9688: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9689: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9690: shared_cxx_post=
9691: shared_lo=lo
9692:
9693: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 9694: php_sapi_module=static
1.1 misho 9695: ;;
1.1.1.2 misho 9696: esac
9697: install_sapi="install-sapi"
1.1 misho 9698:
9699:
9700: case sapi/apache_hooks in
9701: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9702: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9703: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9704: esac
9705:
9706:
9707:
9708: b_c_pre=$php_c_pre
9709: b_cxx_pre=$php_cxx_pre
9710: b_c_meta=$php_c_meta
9711: b_cxx_meta=$php_cxx_meta
9712: b_c_post=$php_c_post
9713: b_cxx_post=$php_cxx_post
9714: b_lo=$php_lo
9715:
9716:
9717: old_IFS=$IFS
9718: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9719:
9720: IFS=.
9721: set $ac_src
9722: ac_obj=$1
9723: IFS=$old_IFS
9724:
9725: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9726:
9727: case $ac_src in
9728: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9729: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9730: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9731: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9732: esac
9733:
9734: cat >>Makefile.objects<<EOF
9735: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9736: $ac_comp
9737: EOF
9738: done
9739:
9740:
9741:
1.1.1.2 misho 9742:
1.1 misho 9743: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
9744: APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache_hooks/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache_hooks/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
1.1.1.3 ! misho 9745: { echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
! 9746: echo "${ECHO_T}yes - Apache 1.3.x" >&6; }
1.1 misho 9747: STRONGHOLD=
9748: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
9749:
1.1.1.3 ! misho 9750: cat >>confdefs.h <<\_ACEOF
! 9751: #define HAVE_AP_CONFIG_H 1
! 9752: _ACEOF
1.1 misho 9753:
9754: fi
9755: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
9756:
1.1.1.3 ! misho 9757: cat >>confdefs.h <<\_ACEOF
! 9758: #define HAVE_AP_COMPAT_H 1
! 9759: _ACEOF
1.1 misho 9760:
9761: if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
1.1.1.3 ! misho 9762: { { echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
! 9763: echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
! 9764: { (exit 1); exit 1; }; }
1.1 misho 9765: fi
9766: elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
9767:
1.1.1.3 ! misho 9768: cat >>confdefs.h <<\_ACEOF
! 9769: #define HAVE_OLD_COMPAT_H 1
! 9770: _ACEOF
1.1 misho 9771:
9772: fi
9773: # For StrongHold 2.2
9774: elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then
9775: APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include"
9776: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache
9777:
1.1.1.2 misho 9778: if test "static" = "program"; then
9779: PHP_BINARIES="$PHP_BINARIES apache_hooks"
9780: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 9781: { { echo "$as_me:$LINENO: error:
! 9782: +--------------------------------------------------------------------+
! 9783: | *** ATTENTION *** |
! 9784: | |
! 9785: | You've configured multiple SAPIs to be build. You can build only |
! 9786: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 9787: +--------------------------------------------------------------------+
! 9788: " >&5
! 9789: echo "$as_me: error:
1.1 misho 9790: +--------------------------------------------------------------------+
9791: | *** ATTENTION *** |
9792: | |
9793: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 9794: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 9795: +--------------------------------------------------------------------+
1.1.1.3 ! misho 9796: " >&2;}
! 9797: { (exit 1); exit 1; }; }
1.1.1.2 misho 9798: else
9799: PHP_SAPI=apache_hooks
1.1 misho 9800: fi
9801:
9802:
9803:
1.1.1.2 misho 9804: BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
9805:
9806:
9807:
9808: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
9809:
9810:
9811: case "static" in
9812: static)
9813:
1.1 misho 9814: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9815: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9816: php_c_post=
9817: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9818: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9819: php_cxx_post=
9820: php_lo=lo
9821:
9822: case $with_pic in
9823: yes) pic_setting='-prefer-pic';;
9824: no) pic_setting='-prefer-non-pic';;
9825: esac
9826:
9827: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9828: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9829: shared_c_post=
9830: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9831: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9832: shared_cxx_post=
9833: shared_lo=lo
9834:
9835: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9836: php_sapi_module=static
1.1 misho 9837: ;;
1.1.1.2 misho 9838: shared)
1.1 misho 9839:
9840: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9841: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9842: php_c_post=
9843: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9844: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9845: php_cxx_post=
9846: php_lo=lo
9847:
9848: case $with_pic in
9849: yes) pic_setting='-prefer-pic';;
9850: no) pic_setting='-prefer-non-pic';;
9851: esac
9852:
9853: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9854: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9855: shared_c_post=
9856: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9857: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9858: shared_cxx_post=
9859: shared_lo=lo
9860:
9861: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 9862: php_sapi_module=shared
1.1 misho 9863:
9864: php_c_pre=$shared_c_pre
9865: php_c_meta=$shared_c_meta
9866: php_c_post=$shared_c_post
9867: php_cxx_pre=$shared_cxx_pre
9868: php_cxx_meta=$shared_cxx_meta
9869: php_cxx_post=$shared_cxx_post
9870: php_lo=$shared_lo
9871: ;;
1.1.1.2 misho 9872: bundle)
1.1 misho 9873:
9874: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9875: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9876: php_c_post=
9877: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9878: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9879: php_cxx_post=
9880: php_lo=lo
9881:
9882: case $with_pic in
9883: yes) pic_setting='-prefer-pic';;
9884: no) pic_setting='-prefer-non-pic';;
9885: esac
9886:
9887: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9888: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9889: shared_c_post=
9890: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9891: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9892: shared_cxx_post=
9893: shared_lo=lo
9894:
9895: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 9896: php_sapi_module=static
1.1 misho 9897: ;;
1.1.1.2 misho 9898: esac
9899: install_sapi="install-sapi"
1.1 misho 9900:
9901:
9902: case sapi/apache_hooks in
9903: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9904: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9905: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9906: esac
9907:
9908:
9909:
9910: b_c_pre=$php_c_pre
9911: b_cxx_pre=$php_cxx_pre
9912: b_c_meta=$php_c_meta
9913: b_cxx_meta=$php_cxx_meta
9914: b_c_post=$php_c_post
9915: b_cxx_post=$php_cxx_post
9916: b_lo=$php_lo
9917:
9918:
9919: old_IFS=$IFS
9920: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9921:
9922: IFS=.
9923: set $ac_src
9924: ac_obj=$1
9925: IFS=$old_IFS
9926:
9927: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9928:
9929: case $ac_src in
9930: *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9931: *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9932: *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9933: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9934: esac
9935:
9936: cat >>Makefile.objects<<EOF
9937: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9938: $ac_comp
9939: EOF
9940: done
9941:
9942:
9943:
1.1.1.2 misho 9944:
1.1 misho 9945: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
9946: APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
9947: STRONGHOLD=-DSTRONGHOLD=1
1.1.1.3 ! misho 9948: { echo "$as_me:$LINENO: result: yes - StrongHold" >&5
! 9949: echo "${ECHO_T}yes - StrongHold" >&6; }
1.1 misho 9950: if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then
9951:
1.1.1.3 ! misho 9952: cat >>confdefs.h <<\_ACEOF
! 9953: #define HAVE_AP_CONFIG_H 1
! 9954: _ACEOF
1.1 misho 9955:
9956: fi
9957: if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then
9958:
1.1.1.3 ! misho 9959: cat >>confdefs.h <<\_ACEOF
! 9960: #define HAVE_AP_COMPAT_H 1
! 9961: _ACEOF
1.1 misho 9962:
9963: if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
1.1.1.3 ! misho 9964: { { echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
! 9965: echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
! 9966: { (exit 1); exit 1; }; }
1.1 misho 9967: fi
9968: elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then
9969:
1.1.1.3 ! misho 9970: cat >>confdefs.h <<\_ACEOF
! 9971: #define HAVE_OLD_COMPAT_H 1
! 9972: _ACEOF
1.1 misho 9973:
9974: fi
9975: else
1.1.1.3 ! misho 9976: { echo "$as_me:$LINENO: result: no" >&5
! 9977: echo "${ECHO_T}no" >&6; }
! 9978: { { echo "$as_me:$LINENO: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" >&5
! 9979: echo "$as_me: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" >&2;}
! 9980: { (exit 1); exit 1; }; }
1.1 misho 9981: fi
9982: else
1.1.1.3 ! misho 9983: { echo "$as_me:$LINENO: result: no" >&5
! 9984: echo "${ECHO_T}no" >&6; }
1.1 misho 9985: fi
9986:
9987: # compatibility
9988: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
9989: enable_mod_charset=$with_mod_charset
9990: fi
9991:
9992:
9993: php_enable_mod_charset=no
9994:
1.1.1.3 ! misho 9995: { echo "$as_me:$LINENO: checking whether to enable Apache charset compatibility option" >&5
! 9996: echo $ECHO_N "checking whether to enable Apache charset compatibility option... $ECHO_C" >&6; }
1.1 misho 9997: # Check whether --enable-mod-charset was given.
1.1.1.3 ! misho 9998: if test "${enable_mod_charset+set}" = set; then
1.1 misho 9999: enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
10000: else
10001:
10002: PHP_MOD_CHARSET=no
10003:
10004:
10005: fi
10006:
10007:
10008: ext_output=$PHP_MOD_CHARSET
1.1.1.3 ! misho 10009: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 10010: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 10011:
10012:
10013:
10014:
10015: if test "$PHP_MOD_CHARSET" = "yes"; then
10016:
1.1.1.3 ! misho 10017: cat >>confdefs.h <<\_ACEOF
! 10018: #define USE_TRANSFER_TABLES 1
! 10019: _ACEOF
1.1 misho 10020:
10021: fi
10022:
10023: if test "$APACHE_HOOKS_MODULE" = "yes"; then
10024:
10025: if test -n "$GCC"; then
10026:
10027: gcc_arg_name=ac_cv_gcc_arg_rdynamic
1.1.1.3 ! misho 10028: { echo "$as_me:$LINENO: checking whether $CC supports -rdynamic" >&5
! 10029: echo $ECHO_N "checking whether $CC supports -rdynamic... $ECHO_C" >&6; }
! 10030: if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then
! 10031: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 10032: else
10033:
10034: echo 'void somefunc() { };' > conftest.c
10035: cmd='$CC -rdynamic -c conftest.c'
10036: if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
10037: ac_result=no
10038: else
10039: ac_result=yes
10040: fi
10041: eval $gcc_arg_name=$ac_result
10042: rm -f conftest.*
10043:
10044: fi
1.1.1.3 ! misho 10045: { echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_rdynamic" >&5
! 10046: echo "${ECHO_T}$ac_cv_gcc_arg_rdynamic" >&6; }
1.1 misho 10047: if eval test "\$$gcc_arg_name" = "yes"; then
10048: gcc_rdynamic=yes
10049: else
10050: :
10051:
10052: fi
10053:
10054: if test "$gcc_rdynamic" = "yes"; then
10055: PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
10056: fi
10057: fi
10058:
10059: $php_shtool mkdir -p sapi/apache_hooks
10060:
10061: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module"
10062:
10063: fi
10064:
10065: if test -n "$APACHE_HOOKS_INSTALL"; then
10066: if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
10067: APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp
10068: fi
10069:
10070:
1.1.1.3 ! misho 10071: { echo "$as_me:$LINENO: checking for member fd in BUFF *" >&5
! 10072: echo $ECHO_N "checking for member fd in BUFF *... $ECHO_C" >&6; }
! 10073: if test "${ac_cv_php_fd_in_buff+set}" = set; then
! 10074: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 10075: else
10076:
10077: save=$CPPFLAGS
10078: if test -n "$APXS_INCLUDEDIR"; then
10079: CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
10080: else
10081: CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
10082: fi
1.1.1.3 ! misho 10083: cat >conftest.$ac_ext <<_ACEOF
! 10084: /* confdefs.h. */
! 10085: _ACEOF
! 10086: cat confdefs.h >>conftest.$ac_ext
! 10087: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 10088: /* end confdefs.h. */
10089: #include <httpd.h>
10090: int
10091: main ()
10092: {
10093: conn_rec *c; int fd = c->client->fd;
10094: ;
10095: return 0;
10096: }
10097: _ACEOF
1.1.1.3 ! misho 10098: rm -f conftest.$ac_objext
! 10099: if { (ac_try="$ac_compile"
! 10100: case "(($ac_try" in
! 10101: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10102: *) ac_try_echo=$ac_try;;
! 10103: esac
! 10104: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10105: (eval "$ac_compile") 2>conftest.er1
! 10106: ac_status=$?
! 10107: grep -v '^ *+' conftest.er1 >conftest.err
! 10108: rm -f conftest.er1
! 10109: cat conftest.err >&5
! 10110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10111: (exit $ac_status); } && {
! 10112: test -z "$ac_c_werror_flag" ||
! 10113: test ! -s conftest.err
! 10114: } && test -s conftest.$ac_objext; then
1.1 misho 10115:
10116: ac_cv_php_fd_in_buff=yes
10117: else
1.1.1.3 ! misho 10118: echo "$as_me: failed program was:" >&5
! 10119: sed 's/^/| /' conftest.$ac_ext >&5
! 10120:
! 10121: ac_cv_php_fd_in_buff=no
1.1 misho 10122: fi
1.1.1.3 ! misho 10123:
1.1 misho 10124: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10125: CPPFLAGS=$save
10126:
10127: fi
1.1.1.3 ! misho 10128: { echo "$as_me:$LINENO: result: $ac_cv_php_fd_in_buff" >&5
! 10129: echo "${ECHO_T}$ac_cv_php_fd_in_buff" >&6; }
1.1 misho 10130: if test "$ac_cv_php_fd_in_buff" = "yes"; then
10131:
1.1.1.3 ! misho 10132: cat >>confdefs.h <<\_ACEOF
! 10133: #define PHP_APACHE_HAVE_CLIENT_FD 1
! 10134: _ACEOF
1.1 misho 10135:
10136: fi
10137:
10138: INSTALL_IT=$APACHE_HOOKS_INSTALL
10139:
10140:
10141: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
10142:
10143:
10144: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
10145:
10146:
10147: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
10148:
10149:
10150: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
10151:
10152:
10153: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
10154:
10155:
10156: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL"
10157:
10158:
10159: PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
10160:
10161: fi
10162:
10163:
10164:
10165: RESULT=no
10166:
10167: php_with_caudium=no
10168:
10169:
10170:
10171: # Check whether --with-caudium was given.
1.1.1.3 ! misho 10172: if test "${with_caudium+set}" = set; then
1.1 misho 10173: withval=$with_caudium; PHP_CAUDIUM=$withval
10174: else
10175:
10176: PHP_CAUDIUM=no
10177:
10178:
10179: fi
10180:
10181:
10182: ext_output=$PHP_CAUDIUM
10183:
10184:
10185:
10186:
10187:
1.1.1.3 ! misho 10188: { echo "$as_me:$LINENO: checking for Caudium support" >&5
! 10189: echo $ECHO_N "checking for Caudium support... $ECHO_C" >&6; }
1.1 misho 10190:
10191: if test "$PHP_CAUDIUM" != "no"; then
10192: if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi
10193: if test ! -d $PHP_CAUDIUM ; then
10194: if test "$prefix" = "NONE"; then
10195: PHP_CAUDIUM=/usr/local/caudium/server/
10196: else
10197: PHP_CAUDIUM=$prefix/caudium/server/
10198: fi
10199: fi
10200: if test -f $PHP_CAUDIUM/bin/caudium; then
10201: PIKE=$PHP_CAUDIUM/bin/caudium
10202: elif test -f $PHP_CAUDIUM/bin/pike; then
10203: PIKE=$PHP_CAUDIUM/bin/pike
10204: else
1.1.1.3 ! misho 10205: { { echo "$as_me:$LINENO: error: Could not find a pike in $PHP_CAUDIUM/bin/" >&5
! 10206: echo "$as_me: error: Could not find a pike in $PHP_CAUDIUM/bin/" >&2;}
! 10207: { (exit 1); exit 1; }; }
1.1 misho 10208: fi
10209: if $PIKE -e 'float v; int rel;sscanf(version(), "Pike v%f release %d", v, rel);v += rel/10000.0; if(v < 7.0268) exit(1); exit(0);'; then
10210: PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
10211: PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' `
10212: if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
1.1.1.3 ! misho 10213: { { echo "$as_me:$LINENO: error: Failed to figure out Pike module and include directories" >&5
! 10214: echo "$as_me: error: Failed to figure out Pike module and include directories" >&2;}
! 10215: { (exit 1); exit 1; }; }
1.1 misho 10216: fi
1.1.1.3 ! misho 10217: { echo "$as_me:$LINENO: result: yes" >&5
! 10218: echo "${ECHO_T}yes" >&6; }
1.1 misho 10219: PIKE=`echo $PIKE | pike -e 'int tries=100;
10220: string orig,pike=Stdio.File("stdin")->read()-"\n";
10221: orig=pike;
10222: if(search(orig, "/"))
10223: orig = combine_path(getcwd(), orig);
10224: while(!catch(pike=readlink(pike)) && tries--)
10225: ;
10226: write(combine_path(dirname(orig), pike)); '`
10227:
10228: if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
10229:
10230: if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
10231: ai_p=$PIKE_INCLUDE_DIR
10232: else
10233:
10234: ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
10235:
10236: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
10237: ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
10238: fi
10239:
10240:
10241:
10242: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
10243:
10244: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
10245: if test -n "$unique" && test "`eval $cmd`" = "" ; then
10246: eval "INCLUDEPATH$unique=set"
10247:
10248: if test ""; then
10249: INCLUDES="-I$ai_p $INCLUDES"
10250: else
10251: INCLUDES="$INCLUDES -I$ai_p"
10252: fi
10253:
10254: fi
10255:
10256: fi
10257:
10258: if test "$prefix" != "NONE"; then
10259: PIKE_C_INCLUDE=$prefix/include/`basename $PIKE`
10260: else
10261: PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE`
10262: fi
1.1.1.3 ! misho 10263: { echo "$as_me:$LINENO: checking for C includes in $PIKE_C_INCLUDE" >&5
! 10264: echo $ECHO_N "checking for C includes in $PIKE_C_INCLUDE... $ECHO_C" >&6; }
1.1 misho 10265: if test -f $PIKE_C_INCLUDE/version.h; then
10266: PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
10267: ###### VERSION MATCH CHECK #######
10268: PMAJOR="^#define PIKE_MAJOR_VERSION"
10269: PMINOR="^#define PIKE_MINOR_VERSION"
10270: PBUILD="^#define PIKE_BUILD_VERSION"
10271:
10272: PIKE_CMAJOR_VERSION=0
10273: PIKE_CMINOR_VERSION=0
10274: PIKE_CBUILD_VERSION=0
10275:
10276: PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
10277: if test -z "$PIKE_CMAJOR_VERSION"; then
10278: if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then
10279: PIKE_CMAJOR_VERSION=6
10280: fi
10281: else
10282: PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
10283: PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
10284: fi
10285:
10286: if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then
10287:
10288: if test "$PIKE_C_INCLUDE" != "/usr/include"; then
10289:
10290: if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then
10291: ai_p=$PIKE_C_INCLUDE
10292: else
10293:
10294: ep_dir="`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
10295:
10296: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
10297: ai_p="$ep_realdir/`basename \"$PIKE_C_INCLUDE\"`"
10298: fi
10299:
10300:
10301:
10302: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
10303:
10304: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
10305: if test -n "$unique" && test "`eval $cmd`" = "" ; then
10306: eval "INCLUDEPATH$unique=set"
10307:
10308: if test ""; then
10309: INCLUDES="-I$ai_p $INCLUDES"
10310: else
10311: INCLUDES="$INCLUDES -I$ai_p"
10312: fi
10313:
10314: fi
10315:
10316: fi
10317:
10318: PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE"
1.1.1.3 ! misho 10319: { echo "$as_me:$LINENO: result: found" >&5
! 10320: echo "${ECHO_T}found" >&6; }
1.1 misho 10321: else
1.1.1.3 ! misho 10322: { echo "$as_me:$LINENO: result: version mismatch" >&5
! 10323: echo "${ECHO_T}version mismatch" >&6; }
1.1 misho 10324: fi
10325: else
1.1.1.3 ! misho 10326: { echo "$as_me:$LINENO: result: not found" >&5
! 10327: echo "${ECHO_T}not found" >&6; }
1.1 misho 10328: fi
10329: else
1.1.1.3 ! misho 10330: { { echo "$as_me:$LINENO: error: Caudium PHP5 requires Pike 7.0 or newer" >&5
! 10331: echo "$as_me: error: Caudium PHP5 requires Pike 7.0 or newer" >&2;}
! 10332: { (exit 1); exit 1; }; }
1.1 misho 10333: fi
10334: PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
10335:
1.1.1.3 ! misho 10336: cat >>confdefs.h <<\_ACEOF
! 10337: #define HAVE_CAUDIUM 1
! 10338: _ACEOF
1.1 misho 10339:
10340:
1.1.1.2 misho 10341: if test "shared" = "program"; then
10342: PHP_BINARIES="$PHP_BINARIES caudium"
10343: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 10344: { { echo "$as_me:$LINENO: error:
! 10345: +--------------------------------------------------------------------+
! 10346: | *** ATTENTION *** |
! 10347: | |
! 10348: | You've configured multiple SAPIs to be build. You can build only |
! 10349: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 10350: +--------------------------------------------------------------------+
! 10351: " >&5
! 10352: echo "$as_me: error:
1.1 misho 10353: +--------------------------------------------------------------------+
10354: | *** ATTENTION *** |
10355: | |
10356: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 10357: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 10358: +--------------------------------------------------------------------+
1.1.1.3 ! misho 10359: " >&2;}
! 10360: { (exit 1); exit 1; }; }
1.1.1.2 misho 10361: else
10362: PHP_SAPI=caudium
1.1 misho 10363: fi
10364:
10365:
10366:
1.1.1.2 misho 10367: BUILD_DIR="$BUILD_DIR sapi/caudium"
10368:
10369:
10370:
10371: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS caudium"
10372:
10373:
10374: case "shared" in
10375: static)
10376:
1.1 misho 10377: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10378: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10379: php_c_post=
10380: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10381: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10382: php_cxx_post=
10383: php_lo=lo
10384:
10385: case $with_pic in
10386: yes) pic_setting='-prefer-pic';;
10387: no) pic_setting='-prefer-non-pic';;
10388: esac
10389:
10390: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10391: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10392: shared_c_post=
10393: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10394: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10395: shared_cxx_post=
10396: shared_lo=lo
10397:
10398: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 10399: php_sapi_module=static
1.1 misho 10400: ;;
1.1.1.2 misho 10401: shared)
1.1 misho 10402:
10403: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10404: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10405: php_c_post=
10406: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10407: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10408: php_cxx_post=
10409: php_lo=lo
10410:
10411: case $with_pic in
10412: yes) pic_setting='-prefer-pic';;
10413: no) pic_setting='-prefer-non-pic';;
10414: esac
10415:
10416: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10417: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10418: shared_c_post=
10419: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10420: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10421: shared_cxx_post=
10422: shared_lo=lo
10423:
10424: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 10425: php_sapi_module=shared
1.1 misho 10426:
10427: php_c_pre=$shared_c_pre
10428: php_c_meta=$shared_c_meta
10429: php_c_post=$shared_c_post
10430: php_cxx_pre=$shared_cxx_pre
10431: php_cxx_meta=$shared_cxx_meta
10432: php_cxx_post=$shared_cxx_post
10433: php_lo=$shared_lo
10434: ;;
1.1.1.2 misho 10435: bundle)
1.1 misho 10436:
10437: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10438: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10439: php_c_post=
10440: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10441: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10442: php_cxx_post=
10443: php_lo=lo
10444:
10445: case $with_pic in
10446: yes) pic_setting='-prefer-pic';;
10447: no) pic_setting='-prefer-non-pic';;
10448: esac
10449:
10450: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10451: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10452: shared_c_post=
10453: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10454: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10455: shared_cxx_post=
10456: shared_lo=lo
10457:
10458: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 10459: php_sapi_module=static
1.1 misho 10460: ;;
1.1.1.2 misho 10461: esac
10462: install_sapi="install-sapi"
1.1 misho 10463:
10464:
10465: case sapi/caudium in
10466: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10467: /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10468: *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10469: esac
10470:
10471:
10472:
10473: b_c_pre=$php_c_pre
10474: b_cxx_pre=$php_cxx_pre
10475: b_c_meta=$php_c_meta
10476: b_cxx_meta=$php_cxx_meta
10477: b_c_post=$php_c_post
10478: b_cxx_post=$php_cxx_post
10479: b_lo=$php_lo
10480:
10481:
10482: old_IFS=$IFS
10483: for ac_src in caudium.c; do
10484:
10485: IFS=.
10486: set $ac_src
10487: ac_obj=$1
10488: IFS=$old_IFS
10489:
10490: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10491:
10492: case $ac_src in
10493: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10494: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10495: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10496: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
10497: esac
10498:
10499: cat >>Makefile.objects<<EOF
10500: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10501: $ac_comp
10502: EOF
10503: done
10504:
10505:
10506:
1.1.1.2 misho 10507:
1.1 misho 10508: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so"
10509: RESULT=" *** Pike binary used: $PIKE
10510: *** Pike include dir(s) used: $PIKE_INCLUDE_DIR
10511: *** Pike version: $PIKE_VERSION"
10512:
10513: enable_maintainer_zts=yes
10514: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 10515: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 10516: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 10517: { (exit 1); exit 1; }; }
1.1 misho 10518: fi
10519:
10520: fi
1.1.1.3 ! misho 10521: { echo "$as_me:$LINENO: result: $RESULT" >&5
! 10522: echo "${ECHO_T}$RESULT" >&6; }
1.1 misho 10523:
10524:
10525:
10526:
10527: php_enable_cli=yes
10528:
10529:
10530: # Check whether --enable-cli was given.
1.1.1.3 ! misho 10531: if test "${enable_cli+set}" = set; then
1.1 misho 10532: enableval=$enable_cli; PHP_CLI=$enableval
10533: else
10534:
10535: PHP_CLI=yes
10536:
10537:
10538: fi
10539:
10540:
10541: ext_output=$PHP_CLI
10542:
10543:
10544:
10545:
10546:
1.1.1.3 ! misho 10547: { echo "$as_me:$LINENO: checking for CLI build" >&5
! 10548: echo $ECHO_N "checking for CLI build... $ECHO_C" >&6; }
1.1 misho 10549: if test "$PHP_CLI" != "no"; then
10550:
10551: src=$abs_srcdir/sapi/cli/Makefile.frag
1.1.1.2 misho 10552: ac_srcdir=$ext_srcdir
10553: ac_builddir=$ext_builddir
1.1 misho 10554: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
10555:
10556:
1.1.1.2 misho 10557: SAPI_CLI_PATH=sapi/cli/php
10558:
10559:
10560: if test "program" = "program"; then
10561: PHP_BINARIES="$PHP_BINARIES cli"
10562: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 10563: { { echo "$as_me:$LINENO: error:
! 10564: +--------------------------------------------------------------------+
! 10565: | *** ATTENTION *** |
! 10566: | |
! 10567: | You've configured multiple SAPIs to be build. You can build only |
! 10568: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 10569: +--------------------------------------------------------------------+
! 10570: " >&5
! 10571: echo "$as_me: error:
1.1.1.2 misho 10572: +--------------------------------------------------------------------+
10573: | *** ATTENTION *** |
10574: | |
10575: | You've configured multiple SAPIs to be build. You can build only |
10576: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
10577: +--------------------------------------------------------------------+
1.1.1.3 ! misho 10578: " >&2;}
! 10579: { (exit 1); exit 1; }; }
1.1.1.2 misho 10580: else
10581: PHP_SAPI=cli
10582: fi
10583:
10584:
10585:
10586: BUILD_DIR="$BUILD_DIR sapi/cli"
10587:
10588:
10589:
10590: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli"
10591:
10592:
10593:
10594: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10595: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10596: php_c_post=
10597: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10598: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10599: php_cxx_post=
10600: php_lo=lo
10601:
10602: case $with_pic in
10603: yes) pic_setting='-prefer-pic';;
10604: no) pic_setting='-prefer-non-pic';;
10605: esac
10606:
10607: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10608: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10609: shared_c_post=
10610: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10611: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10612: shared_cxx_post=
10613: shared_lo=lo
10614:
10615: install_binaries="install-binaries"
10616: install_binary_targets="$install_binary_targets install-cli"
10617:
10618: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS"
10619:
10620:
10621: case sapi/cli in
10622: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10623: /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10624: *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10625: esac
10626:
10627:
10628:
10629: b_c_pre=$php_c_pre
10630: b_cxx_pre=$php_cxx_pre
10631: b_c_meta=$php_c_meta
10632: b_cxx_meta=$php_cxx_meta
10633: b_c_post=$php_c_post
10634: b_cxx_post=$php_cxx_post
10635: b_lo=$php_lo
10636:
10637:
10638: old_IFS=$IFS
10639: for ac_src in php_cli.c php_http_parser.c php_cli_server.c; do
10640:
10641: IFS=.
10642: set $ac_src
10643: ac_obj=$1
10644: IFS=$old_IFS
10645:
10646: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
10647:
10648: case $ac_src in
10649: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10650: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10651: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10652: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
10653: esac
10654:
10655: cat >>Makefile.objects<<EOF
10656: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10657: $ac_comp
10658: EOF
10659: done
10660:
10661:
1.1 misho 10662:
10663:
10664: case $host_alias in
10665: *aix*)
1.1.1.2 misho 10666: if test "$php_sapi_module" = "shared"; then
10667: BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1 misho 10668: else
1.1.1.2 misho 10669: BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1 misho 10670: fi
10671: ;;
10672: *darwin*)
1.1.1.2 misho 10673: BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1 misho 10674: ;;
10675: *netware*)
1.1.1.2 misho 10676: BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp5lib -o \$(SAPI_CLI_PATH)"
1.1 misho 10677: ;;
10678: *)
1.1.1.2 misho 10679: BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1 misho 10680: ;;
10681: esac
10682:
1.1.1.2 misho 10683: PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)"
1.1 misho 10684:
1.1.1.2 misho 10685: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
10686:
10687:
10688:
10689: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH"
1.1 misho 10690:
10691:
1.1.1.2 misho 10692: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI"
10693:
1.1 misho 10694:
10695:
10696: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1"
10697:
1.1.1.3 ! misho 10698:
! 10699:
! 10700:
! 10701: for header_file in sapi/cli/cli.h; do
! 10702:
! 10703:
! 10704: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
! 10705:
! 10706: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
! 10707: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 10708: eval "INSTALLHEADERS$unique=set"
! 10709:
! 10710: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
! 10711:
! 10712: fi
! 10713:
! 10714: done
! 10715:
! 10716:
1.1 misho 10717: fi
1.1.1.3 ! misho 10718: { echo "$as_me:$LINENO: result: $PHP_CLI" >&5
! 10719: echo "${ECHO_T}$PHP_CLI" >&6; }
1.1 misho 10720:
10721:
10722:
10723: php_with_continuity=no
10724:
1.1.1.3 ! misho 10725: { echo "$as_me:$LINENO: checking for Continuity support" >&5
! 10726: echo $ECHO_N "checking for Continuity support... $ECHO_C" >&6; }
1.1 misho 10727:
10728: # Check whether --with-continuity was given.
1.1.1.3 ! misho 10729: if test "${with_continuity+set}" = set; then
1.1 misho 10730: withval=$with_continuity; PHP_CONTINUITY=$withval
10731: else
10732:
10733: PHP_CONTINUITY=no
10734:
10735:
10736: fi
10737:
10738:
10739: ext_output=$PHP_CONTINUITY
1.1.1.3 ! misho 10740: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 10741: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 10742:
10743:
10744:
10745:
10746: if test "$PHP_CONTINUITY" != "no"; then
10747: if test ! -d $PHP_CONTINUITY; then
1.1.1.3 ! misho 10748: { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Continuity server using --with-continuity=DIR" >&5
! 10749: echo "$as_me: error: Please specify the path to the root of your Continuity server using --with-continuity=DIR" >&2;}
! 10750: { (exit 1); exit 1; }; }
1.1 misho 10751: fi
1.1.1.3 ! misho 10752: { echo "$as_me:$LINENO: checking for Continuity include files" >&5
! 10753: echo $ECHO_N "checking for Continuity include files... $ECHO_C" >&6; }
1.1 misho 10754: if test -d $PHP_CONTINUITY/include ; then
10755: CAPI_INCLUDE=$PHP_CONTINUITY/include
1.1.1.3 ! misho 10756: { echo "$as_me:$LINENO: result: Continuity Binary Distribution" >&5
! 10757: echo "${ECHO_T}Continuity Binary Distribution" >&6; }
1.1 misho 10758: else
1.1.1.3 ! misho 10759: { { echo "$as_me:$LINENO: error: Cannot find your CAPI include files in either DIR/src or DIR/include" >&5
! 10760: echo "$as_me: error: Cannot find your CAPI include files in either DIR/src or DIR/include" >&2;}
! 10761: { (exit 1); exit 1; }; }
1.1 misho 10762: fi
10763:
10764:
1.1.1.2 misho 10765: if test "shared" = "program"; then
10766: PHP_BINARIES="$PHP_BINARIES continuity"
10767: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 10768: { { echo "$as_me:$LINENO: error:
! 10769: +--------------------------------------------------------------------+
! 10770: | *** ATTENTION *** |
! 10771: | |
! 10772: | You've configured multiple SAPIs to be build. You can build only |
! 10773: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 10774: +--------------------------------------------------------------------+
! 10775: " >&5
! 10776: echo "$as_me: error:
1.1 misho 10777: +--------------------------------------------------------------------+
10778: | *** ATTENTION *** |
10779: | |
10780: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 10781: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 10782: +--------------------------------------------------------------------+
1.1.1.3 ! misho 10783: " >&2;}
! 10784: { (exit 1); exit 1; }; }
1.1.1.2 misho 10785: else
10786: PHP_SAPI=continuity
1.1 misho 10787: fi
10788:
10789:
10790:
1.1.1.2 misho 10791: BUILD_DIR="$BUILD_DIR sapi/continuity"
10792:
10793:
10794:
10795: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS continuity"
10796:
10797:
10798: case "shared" in
10799: static)
10800:
1.1 misho 10801: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10802: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10803: php_c_post=
10804: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10805: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10806: php_cxx_post=
10807: php_lo=lo
10808:
10809: case $with_pic in
10810: yes) pic_setting='-prefer-pic';;
10811: no) pic_setting='-prefer-non-pic';;
10812: esac
10813:
10814: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10815: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10816: shared_c_post=
10817: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10818: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10819: shared_cxx_post=
10820: shared_lo=lo
10821:
10822: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 10823: php_sapi_module=static
1.1 misho 10824: ;;
1.1.1.2 misho 10825: shared)
1.1 misho 10826:
10827: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10828: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10829: php_c_post=
10830: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10831: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10832: php_cxx_post=
10833: php_lo=lo
10834:
10835: case $with_pic in
10836: yes) pic_setting='-prefer-pic';;
10837: no) pic_setting='-prefer-non-pic';;
10838: esac
10839:
10840: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10841: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10842: shared_c_post=
10843: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10844: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10845: shared_cxx_post=
10846: shared_lo=lo
10847:
10848: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 10849: php_sapi_module=shared
1.1 misho 10850:
10851: php_c_pre=$shared_c_pre
10852: php_c_meta=$shared_c_meta
10853: php_c_post=$shared_c_post
10854: php_cxx_pre=$shared_cxx_pre
10855: php_cxx_meta=$shared_cxx_meta
10856: php_cxx_post=$shared_cxx_post
10857: php_lo=$shared_lo
10858: ;;
1.1.1.2 misho 10859: bundle)
1.1 misho 10860:
10861: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10862: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10863: php_c_post=
10864: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10865: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10866: php_cxx_post=
10867: php_lo=lo
10868:
10869: case $with_pic in
10870: yes) pic_setting='-prefer-pic';;
10871: no) pic_setting='-prefer-non-pic';;
10872: esac
10873:
10874: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10875: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10876: shared_c_post=
10877: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10878: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10879: shared_cxx_post=
10880: shared_lo=lo
10881:
10882: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 10883: php_sapi_module=static
1.1 misho 10884: ;;
1.1.1.2 misho 10885: esac
10886: install_sapi="install-sapi"
1.1 misho 10887:
10888:
10889: case sapi/continuity in
10890: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10891: /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10892: *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10893: esac
10894:
10895:
10896:
10897: b_c_pre=$php_c_pre
10898: b_cxx_pre=$php_cxx_pre
10899: b_c_meta=$php_c_meta
10900: b_cxx_meta=$php_cxx_meta
10901: b_c_post=$php_c_post
10902: b_cxx_post=$php_cxx_post
10903: b_lo=$php_lo
10904:
10905:
10906: old_IFS=$IFS
10907: for ac_src in capi.c; do
10908:
10909: IFS=.
10910: set $ac_src
10911: ac_obj=$1
10912: IFS=$old_IFS
10913:
10914: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10915:
10916: case $ac_src in
10917: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10918: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10919: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10920: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
10921: esac
10922:
10923: cat >>Makefile.objects<<EOF
10924: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10925: $ac_comp
10926: EOF
10927: done
10928:
10929:
10930:
10931:
1.1.1.2 misho 10932:
1.1 misho 10933: if test "$CAPI_INCLUDE" != "/usr/include"; then
10934:
10935: if test -z "$CAPI_INCLUDE" || echo "$CAPI_INCLUDE" | grep '^/' >/dev/null ; then
10936: ai_p=$CAPI_INCLUDE
10937: else
10938:
10939: ep_dir="`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
10940:
10941: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
10942: ai_p="$ep_realdir/`basename \"$CAPI_INCLUDE\"`"
10943: fi
10944:
10945:
10946:
10947: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
10948:
10949: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
10950: if test -n "$unique" && test "`eval $cmd`" = "" ; then
10951: eval "INCLUDEPATH$unique=set"
10952:
10953: if test ""; then
10954: INCLUDES="-I$ai_p $INCLUDES"
10955: else
10956: INCLUDES="$INCLUDES -I$ai_p"
10957: fi
10958:
10959: fi
10960:
10961: fi
10962:
10963:
10964: enable_maintainer_zts=yes
10965: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 10966: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 10967: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 10968: { (exit 1); exit 1; }; }
1.1 misho 10969: fi
10970:
10971:
1.1.1.3 ! misho 10972: cat >>confdefs.h <<\_ACEOF
! 10973: #define HAVE_CONTINUITY 1
! 10974: _ACEOF
1.1 misho 10975:
10976: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
10977: fi
10978:
10979:
10980:
10981:
10982: php_enable_embed=no
10983:
10984:
10985: # Check whether --enable-embed was given.
1.1.1.3 ! misho 10986: if test "${enable_embed+set}" = set; then
1.1 misho 10987: enableval=$enable_embed; PHP_EMBED=$enableval
10988: else
10989:
10990: PHP_EMBED=no
10991:
10992:
10993: fi
10994:
10995:
10996: ext_output=$PHP_EMBED
10997:
10998:
10999:
11000:
11001:
1.1.1.3 ! misho 11002: { echo "$as_me:$LINENO: checking for embedded SAPI library support" >&5
! 11003: echo $ECHO_N "checking for embedded SAPI library support... $ECHO_C" >&6; }
1.1 misho 11004:
11005: if test "$PHP_EMBED" != "no"; then
11006: case "$PHP_EMBED" in
11007: yes|shared)
11008: PHP_EMBED_TYPE=shared
11009: INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
11010: ;;
11011: static)
11012: PHP_EMBED_TYPE=static
11013: INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
11014: ;;
11015: *)
11016: PHP_EMBED_TYPE=no
11017: ;;
11018: esac
11019: if test "$PHP_EMBED_TYPE" != "no"; then
11020:
1.1.1.2 misho 11021: if test "$PHP_EMBED_TYPE" = "program"; then
11022: PHP_BINARIES="$PHP_BINARIES embed"
11023: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 11024: { { echo "$as_me:$LINENO: error:
! 11025: +--------------------------------------------------------------------+
! 11026: | *** ATTENTION *** |
! 11027: | |
! 11028: | You've configured multiple SAPIs to be build. You can build only |
! 11029: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 11030: +--------------------------------------------------------------------+
! 11031: " >&5
! 11032: echo "$as_me: error:
1.1 misho 11033: +--------------------------------------------------------------------+
11034: | *** ATTENTION *** |
11035: | |
11036: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 11037: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 11038: +--------------------------------------------------------------------+
1.1.1.3 ! misho 11039: " >&2;}
! 11040: { (exit 1); exit 1; }; }
1.1.1.2 misho 11041: else
11042: PHP_SAPI=embed
1.1 misho 11043: fi
11044:
11045:
11046:
1.1.1.2 misho 11047: BUILD_DIR="$BUILD_DIR sapi/embed"
11048:
11049:
11050:
11051: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed"
11052:
11053:
11054: case "$PHP_EMBED_TYPE" in
11055: static)
11056:
1.1 misho 11057: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11058: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11059: php_c_post=
11060: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11061: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11062: php_cxx_post=
11063: php_lo=lo
11064:
11065: case $with_pic in
11066: yes) pic_setting='-prefer-pic';;
11067: no) pic_setting='-prefer-non-pic';;
11068: esac
11069:
11070: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11071: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11072: shared_c_post=
11073: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11074: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11075: shared_cxx_post=
11076: shared_lo=lo
11077:
11078: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 11079: php_sapi_module=static
1.1 misho 11080: ;;
1.1.1.2 misho 11081: shared)
1.1 misho 11082:
11083: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11084: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11085: php_c_post=
11086: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11087: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11088: php_cxx_post=
11089: php_lo=lo
11090:
11091: case $with_pic in
11092: yes) pic_setting='-prefer-pic';;
11093: no) pic_setting='-prefer-non-pic';;
11094: esac
11095:
11096: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11097: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11098: shared_c_post=
11099: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11100: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11101: shared_cxx_post=
11102: shared_lo=lo
11103:
11104: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 11105: php_sapi_module=shared
1.1 misho 11106:
11107: php_c_pre=$shared_c_pre
11108: php_c_meta=$shared_c_meta
11109: php_c_post=$shared_c_post
11110: php_cxx_pre=$shared_cxx_pre
11111: php_cxx_meta=$shared_cxx_meta
11112: php_cxx_post=$shared_cxx_post
11113: php_lo=$shared_lo
11114: ;;
1.1.1.2 misho 11115: bundle)
1.1 misho 11116:
11117: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11118: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11119: php_c_post=
11120: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11121: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11122: php_cxx_post=
11123: php_lo=lo
11124:
11125: case $with_pic in
11126: yes) pic_setting='-prefer-pic';;
11127: no) pic_setting='-prefer-non-pic';;
11128: esac
11129:
11130: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11131: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11132: shared_c_post=
11133: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11134: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11135: shared_cxx_post=
11136: shared_lo=lo
11137:
11138: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 11139: php_sapi_module=static
1.1 misho 11140: ;;
1.1.1.2 misho 11141: esac
11142: install_sapi="install-sapi"
1.1 misho 11143:
11144:
11145: case sapi/embed in
11146: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11147: /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11148: *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11149: esac
11150:
11151:
11152:
11153: b_c_pre=$php_c_pre
11154: b_cxx_pre=$php_cxx_pre
11155: b_c_meta=$php_c_meta
11156: b_cxx_meta=$php_cxx_meta
11157: b_c_post=$php_c_post
11158: b_cxx_post=$php_cxx_post
11159: b_lo=$php_lo
11160:
11161:
11162: old_IFS=$IFS
11163: for ac_src in php_embed.c; do
11164:
11165: IFS=.
11166: set $ac_src
11167: ac_obj=$1
11168: IFS=$old_IFS
11169:
11170: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11171:
11172: case $ac_src in
11173: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11174: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11175: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11176: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
11177: esac
11178:
11179: cat >>Makefile.objects<<EOF
11180: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11181: $ac_comp
11182: EOF
11183: done
11184:
11185:
11186:
11187:
11188:
1.1.1.2 misho 11189:
1.1 misho 11190: for header_file in sapi/embed/php_embed.h; do
11191:
11192:
11193: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
11194:
11195: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
11196: if test -n "$unique" && test "`eval $cmd`" = "" ; then
11197: eval "INSTALLHEADERS$unique=set"
11198:
11199: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
11200:
11201: fi
11202:
11203: done
11204:
11205:
11206: fi
1.1.1.3 ! misho 11207: { echo "$as_me:$LINENO: result: $PHP_EMBED_TYPE" >&5
! 11208: echo "${ECHO_T}$PHP_EMBED_TYPE" >&6; }
1.1 misho 11209: else
1.1.1.3 ! misho 11210: { echo "$as_me:$LINENO: result: no" >&5
! 11211: echo "${ECHO_T}no" >&6; }
1.1 misho 11212: fi
11213:
11214:
11215:
11216:
11217: php_enable_fpm=no
11218:
11219:
11220: # Check whether --enable-fpm was given.
1.1.1.3 ! misho 11221: if test "${enable_fpm+set}" = set; then
1.1 misho 11222: enableval=$enable_fpm; PHP_FPM=$enableval
11223: else
11224:
11225: PHP_FPM=no
11226:
11227:
11228: fi
11229:
11230:
11231: ext_output=$PHP_FPM
11232:
11233:
11234:
11235:
11236:
11237:
11238:
11239:
11240:
11241:
11242:
11243:
11244:
11245:
11246:
11247:
11248:
11249:
11250:
11251:
11252:
11253:
11254:
11255:
11256:
11257:
11258:
11259:
11260:
11261:
11262:
11263:
11264:
11265:
1.1.1.3 ! misho 11266: { echo "$as_me:$LINENO: checking for FPM build" >&5
! 11267: echo $ECHO_N "checking for FPM build... $ECHO_C" >&6; }
1.1 misho 11268: if test "$PHP_FPM" != "no"; then
1.1.1.3 ! misho 11269: { echo "$as_me:$LINENO: result: $PHP_FPM" >&5
! 11270: echo "${ECHO_T}$PHP_FPM" >&6; }
1.1 misho 11271:
1.1.1.3 ! misho 11272: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 11273: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 11274: if test "${ac_cv_header_stdc+set}" = set; then
! 11275: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 11276: else
1.1.1.3 ! misho 11277: cat >conftest.$ac_ext <<_ACEOF
! 11278: /* confdefs.h. */
! 11279: _ACEOF
! 11280: cat confdefs.h >>conftest.$ac_ext
! 11281: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 11282: /* end confdefs.h. */
1.1.1.3 ! misho 11283: #include <stdlib.h>
! 11284: #include <stdarg.h>
! 11285: #include <string.h>
! 11286: #include <float.h>
1.1 misho 11287:
11288: int
11289: main ()
11290: {
1.1.1.3 ! misho 11291:
1.1 misho 11292: ;
11293: return 0;
11294: }
11295: _ACEOF
1.1.1.3 ! misho 11296: rm -f conftest.$ac_objext
! 11297: if { (ac_try="$ac_compile"
! 11298: case "(($ac_try" in
! 11299: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11300: *) ac_try_echo=$ac_try;;
! 11301: esac
! 11302: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11303: (eval "$ac_compile") 2>conftest.er1
! 11304: ac_status=$?
! 11305: grep -v '^ *+' conftest.er1 >conftest.err
! 11306: rm -f conftest.er1
! 11307: cat conftest.err >&5
! 11308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11309: (exit $ac_status); } && {
! 11310: test -z "$ac_c_werror_flag" ||
! 11311: test ! -s conftest.err
! 11312: } && test -s conftest.$ac_objext; then
! 11313: ac_cv_header_stdc=yes
1.1 misho 11314: else
1.1.1.3 ! misho 11315: echo "$as_me: failed program was:" >&5
! 11316: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11317:
1.1.1.3 ! misho 11318: ac_cv_header_stdc=no
1.1 misho 11319: fi
11320:
1.1.1.3 ! misho 11321: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11322:
! 11323: if test $ac_cv_header_stdc = yes; then
! 11324: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 11325: cat >conftest.$ac_ext <<_ACEOF
! 11326: /* confdefs.h. */
! 11327: _ACEOF
! 11328: cat confdefs.h >>conftest.$ac_ext
! 11329: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 11330: /* end confdefs.h. */
1.1.1.3 ! misho 11331: #include <string.h>
1.1 misho 11332:
11333: _ACEOF
1.1.1.3 ! misho 11334: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 11335: $EGREP "memchr" >/dev/null 2>&1; then
! 11336: :
! 11337: else
! 11338: ac_cv_header_stdc=no
1.1 misho 11339: fi
1.1.1.3 ! misho 11340: rm -f -r conftest*
! 11341:
1.1 misho 11342: fi
11343:
1.1.1.3 ! misho 11344: if test $ac_cv_header_stdc = yes; then
! 11345: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 11346: cat >conftest.$ac_ext <<_ACEOF
! 11347: /* confdefs.h. */
! 11348: _ACEOF
! 11349: cat confdefs.h >>conftest.$ac_ext
! 11350: cat >>conftest.$ac_ext <<_ACEOF
! 11351: /* end confdefs.h. */
! 11352: #include <stdlib.h>
! 11353:
! 11354: _ACEOF
! 11355: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 11356: $EGREP "free" >/dev/null 2>&1; then
! 11357: :
1.1 misho 11358: else
1.1.1.3 ! misho 11359: ac_cv_header_stdc=no
1.1 misho 11360: fi
1.1.1.3 ! misho 11361: rm -f -r conftest*
1.1 misho 11362:
11363: fi
11364:
1.1.1.3 ! misho 11365: if test $ac_cv_header_stdc = yes; then
! 11366: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 11367: if test "$cross_compiling" = yes; then
! 11368: :
! 11369: else
! 11370: cat >conftest.$ac_ext <<_ACEOF
! 11371: /* confdefs.h. */
! 11372: _ACEOF
! 11373: cat confdefs.h >>conftest.$ac_ext
! 11374: cat >>conftest.$ac_ext <<_ACEOF
! 11375: /* end confdefs.h. */
! 11376: #include <ctype.h>
! 11377: #include <stdlib.h>
! 11378: #if ((' ' & 0x0FF) == 0x020)
! 11379: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 11380: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 11381: #else
! 11382: # define ISLOWER(c) \
! 11383: (('a' <= (c) && (c) <= 'i') \
! 11384: || ('j' <= (c) && (c) <= 'r') \
! 11385: || ('s' <= (c) && (c) <= 'z'))
! 11386: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 11387: #endif
1.1 misho 11388:
1.1.1.3 ! misho 11389: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 11390: int
! 11391: main ()
! 11392: {
! 11393: int i;
! 11394: for (i = 0; i < 256; i++)
! 11395: if (XOR (islower (i), ISLOWER (i))
! 11396: || toupper (i) != TOUPPER (i))
! 11397: return 2;
! 11398: return 0;
! 11399: }
1.1 misho 11400: _ACEOF
1.1.1.3 ! misho 11401: rm -f conftest$ac_exeext
! 11402: if { (ac_try="$ac_link"
! 11403: case "(($ac_try" in
! 11404: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11405: *) ac_try_echo=$ac_try;;
! 11406: esac
! 11407: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11408: (eval "$ac_link") 2>&5
! 11409: ac_status=$?
! 11410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11411: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 11412: { (case "(($ac_try" in
! 11413: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11414: *) ac_try_echo=$ac_try;;
! 11415: esac
! 11416: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11417: (eval "$ac_try") 2>&5
! 11418: ac_status=$?
! 11419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11420: (exit $ac_status); }; }; then
! 11421: :
! 11422: else
! 11423: echo "$as_me: program exited with status $ac_status" >&5
! 11424: echo "$as_me: failed program was:" >&5
! 11425: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11426:
1.1.1.3 ! misho 11427: ( exit $ac_status )
! 11428: ac_cv_header_stdc=no
! 11429: fi
! 11430: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 11431: fi
11432:
11433:
1.1.1.3 ! misho 11434: fi
! 11435: fi
! 11436: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 11437: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
! 11438: if test $ac_cv_header_stdc = yes; then
! 11439:
! 11440: cat >>confdefs.h <<\_ACEOF
! 11441: #define STDC_HEADERS 1
1.1 misho 11442: _ACEOF
11443:
11444: fi
11445:
1.1.1.3 ! misho 11446: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 11447:
! 11448:
! 11449:
! 11450:
! 11451:
! 11452:
! 11453:
! 11454:
! 11455:
! 11456: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 11457: inttypes.h stdint.h unistd.h
! 11458: do
! 11459: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 11460: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 11461: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 11462: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11463: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11464: else
! 11465: cat >conftest.$ac_ext <<_ACEOF
! 11466: /* confdefs.h. */
! 11467: _ACEOF
! 11468: cat confdefs.h >>conftest.$ac_ext
! 11469: cat >>conftest.$ac_ext <<_ACEOF
! 11470: /* end confdefs.h. */
! 11471: $ac_includes_default
! 11472:
! 11473: #include <$ac_header>
! 11474: _ACEOF
! 11475: rm -f conftest.$ac_objext
! 11476: if { (ac_try="$ac_compile"
! 11477: case "(($ac_try" in
! 11478: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11479: *) ac_try_echo=$ac_try;;
! 11480: esac
! 11481: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11482: (eval "$ac_compile") 2>conftest.er1
! 11483: ac_status=$?
! 11484: grep -v '^ *+' conftest.er1 >conftest.err
! 11485: rm -f conftest.er1
! 11486: cat conftest.err >&5
! 11487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11488: (exit $ac_status); } && {
! 11489: test -z "$ac_c_werror_flag" ||
! 11490: test ! -s conftest.err
! 11491: } && test -s conftest.$ac_objext; then
! 11492: eval "$as_ac_Header=yes"
! 11493: else
! 11494: echo "$as_me: failed program was:" >&5
! 11495: sed 's/^/| /' conftest.$ac_ext >&5
! 11496:
! 11497: eval "$as_ac_Header=no"
! 11498: fi
1.1 misho 11499:
1.1.1.3 ! misho 11500: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11501: fi
! 11502: ac_res=`eval echo '${'$as_ac_Header'}'`
! 11503: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11504: echo "${ECHO_T}$ac_res" >&6; }
! 11505: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 11506: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 11507: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 11508: _ACEOF
11509:
11510: fi
11511:
11512: done
11513:
11514:
11515:
11516:
1.1.1.3 ! misho 11517:
! 11518:
! 11519: for ac_func in setenv clearenv setproctitle
! 11520: do
! 11521: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 11522: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 11523: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 11524: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 11525: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11526: else
! 11527: cat >conftest.$ac_ext <<_ACEOF
! 11528: /* confdefs.h. */
! 11529: _ACEOF
! 11530: cat confdefs.h >>conftest.$ac_ext
! 11531: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 11532: /* end confdefs.h. */
1.1.1.3 ! misho 11533: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 11534: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 11535: #define $ac_func innocuous_$ac_func
! 11536:
! 11537: /* System header to define __stub macros and hopefully few prototypes,
! 11538: which can conflict with char $ac_func (); below.
! 11539: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 11540: <limits.h> exists even on freestanding compilers. */
! 11541:
! 11542: #ifdef __STDC__
! 11543: # include <limits.h>
! 11544: #else
! 11545: # include <assert.h>
! 11546: #endif
! 11547:
! 11548: #undef $ac_func
! 11549:
! 11550: /* Override any GCC internal prototype to avoid an error.
! 11551: Use char because int might match the return type of a GCC
! 11552: builtin and then its argument prototype would still apply. */
! 11553: #ifdef __cplusplus
! 11554: extern "C"
! 11555: #endif
! 11556: char $ac_func ();
! 11557: /* The GNU C library defines this for functions which it implements
! 11558: to always fail with ENOSYS. Some functions are actually named
! 11559: something starting with __ and the normal name is an alias. */
! 11560: #if defined __stub_$ac_func || defined __stub___$ac_func
! 11561: choke me
! 11562: #endif
! 11563:
1.1 misho 11564: int
11565: main ()
11566: {
1.1.1.3 ! misho 11567: return $ac_func ();
1.1 misho 11568: ;
11569: return 0;
11570: }
11571: _ACEOF
1.1.1.3 ! misho 11572: rm -f conftest.$ac_objext conftest$ac_exeext
! 11573: if { (ac_try="$ac_link"
! 11574: case "(($ac_try" in
! 11575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11576: *) ac_try_echo=$ac_try;;
! 11577: esac
! 11578: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11579: (eval "$ac_link") 2>conftest.er1
! 11580: ac_status=$?
! 11581: grep -v '^ *+' conftest.er1 >conftest.err
! 11582: rm -f conftest.er1
! 11583: cat conftest.err >&5
! 11584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11585: (exit $ac_status); } && {
! 11586: test -z "$ac_c_werror_flag" ||
! 11587: test ! -s conftest.err
! 11588: } && test -s conftest$ac_exeext &&
! 11589: $as_test_x conftest$ac_exeext; then
! 11590: eval "$as_ac_var=yes"
1.1 misho 11591: else
1.1.1.3 ! misho 11592: echo "$as_me: failed program was:" >&5
! 11593: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11594:
1.1.1.3 ! misho 11595: eval "$as_ac_var=no"
1.1 misho 11596: fi
11597:
1.1.1.3 ! misho 11598: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11599: conftest$ac_exeext conftest.$ac_ext
! 11600: fi
! 11601: ac_res=`eval echo '${'$as_ac_var'}'`
! 11602: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11603: echo "${ECHO_T}$ac_res" >&6; }
! 11604: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 11605: cat >>confdefs.h <<_ACEOF
! 11606: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 11607: _ACEOF
1.1 misho 11608:
1.1.1.3 ! misho 11609: fi
! 11610: done
1.1 misho 11611:
11612:
1.1.1.3 ! misho 11613: { echo "$as_me:$LINENO: checking for library containing socket" >&5
! 11614: echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
! 11615: if test "${ac_cv_search_socket+set}" = set; then
! 11616: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11617: else
! 11618: ac_func_search_save_LIBS=$LIBS
! 11619: cat >conftest.$ac_ext <<_ACEOF
! 11620: /* confdefs.h. */
! 11621: _ACEOF
! 11622: cat confdefs.h >>conftest.$ac_ext
! 11623: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 11624: /* end confdefs.h. */
1.1.1.3 ! misho 11625:
! 11626: /* Override any GCC internal prototype to avoid an error.
! 11627: Use char because int might match the return type of a GCC
! 11628: builtin and then its argument prototype would still apply. */
! 11629: #ifdef __cplusplus
! 11630: extern "C"
! 11631: #endif
! 11632: char socket ();
1.1 misho 11633: int
11634: main ()
11635: {
1.1.1.3 ! misho 11636: return socket ();
1.1 misho 11637: ;
11638: return 0;
11639: }
11640: _ACEOF
1.1.1.3 ! misho 11641: for ac_lib in '' socket; do
! 11642: if test -z "$ac_lib"; then
! 11643: ac_res="none required"
! 11644: else
! 11645: ac_res=-l$ac_lib
! 11646: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 11647: fi
! 11648: rm -f conftest.$ac_objext conftest$ac_exeext
! 11649: if { (ac_try="$ac_link"
! 11650: case "(($ac_try" in
! 11651: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11652: *) ac_try_echo=$ac_try;;
! 11653: esac
! 11654: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11655: (eval "$ac_link") 2>conftest.er1
! 11656: ac_status=$?
! 11657: grep -v '^ *+' conftest.er1 >conftest.err
! 11658: rm -f conftest.er1
! 11659: cat conftest.err >&5
! 11660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11661: (exit $ac_status); } && {
! 11662: test -z "$ac_c_werror_flag" ||
! 11663: test ! -s conftest.err
! 11664: } && test -s conftest$ac_exeext &&
! 11665: $as_test_x conftest$ac_exeext; then
! 11666: ac_cv_search_socket=$ac_res
1.1 misho 11667: else
1.1.1.3 ! misho 11668: echo "$as_me: failed program was:" >&5
! 11669: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11670:
11671:
11672: fi
11673:
1.1.1.3 ! misho 11674: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11675: conftest$ac_exeext
! 11676: if test "${ac_cv_search_socket+set}" = set; then
! 11677: break
! 11678: fi
! 11679: done
! 11680: if test "${ac_cv_search_socket+set}" = set; then
! 11681: :
! 11682: else
! 11683: ac_cv_search_socket=no
! 11684: fi
! 11685: rm conftest.$ac_ext
! 11686: LIBS=$ac_func_search_save_LIBS
! 11687: fi
! 11688: { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
! 11689: echo "${ECHO_T}$ac_cv_search_socket" >&6; }
! 11690: ac_res=$ac_cv_search_socket
! 11691: if test "$ac_res" != no; then
! 11692: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 misho 11693:
1.1.1.3 ! misho 11694: fi
1.1 misho 11695:
1.1.1.3 ! misho 11696: { echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
! 11697: echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6; }
! 11698: if test "${ac_cv_search_inet_addr+set}" = set; then
! 11699: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11700: else
! 11701: ac_func_search_save_LIBS=$LIBS
! 11702: cat >conftest.$ac_ext <<_ACEOF
! 11703: /* confdefs.h. */
! 11704: _ACEOF
! 11705: cat confdefs.h >>conftest.$ac_ext
! 11706: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 11707: /* end confdefs.h. */
1.1.1.3 ! misho 11708:
! 11709: /* Override any GCC internal prototype to avoid an error.
! 11710: Use char because int might match the return type of a GCC
! 11711: builtin and then its argument prototype would still apply. */
! 11712: #ifdef __cplusplus
! 11713: extern "C"
! 11714: #endif
! 11715: char inet_addr ();
1.1 misho 11716: int
11717: main ()
11718: {
1.1.1.3 ! misho 11719: return inet_addr ();
1.1 misho 11720: ;
11721: return 0;
11722: }
11723: _ACEOF
1.1.1.3 ! misho 11724: for ac_lib in '' nsl; do
! 11725: if test -z "$ac_lib"; then
! 11726: ac_res="none required"
! 11727: else
! 11728: ac_res=-l$ac_lib
! 11729: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 11730: fi
! 11731: rm -f conftest.$ac_objext conftest$ac_exeext
! 11732: if { (ac_try="$ac_link"
! 11733: case "(($ac_try" in
! 11734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11735: *) ac_try_echo=$ac_try;;
! 11736: esac
! 11737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11738: (eval "$ac_link") 2>conftest.er1
! 11739: ac_status=$?
! 11740: grep -v '^ *+' conftest.er1 >conftest.err
! 11741: rm -f conftest.er1
! 11742: cat conftest.err >&5
! 11743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11744: (exit $ac_status); } && {
! 11745: test -z "$ac_c_werror_flag" ||
! 11746: test ! -s conftest.err
! 11747: } && test -s conftest$ac_exeext &&
! 11748: $as_test_x conftest$ac_exeext; then
! 11749: ac_cv_search_inet_addr=$ac_res
1.1 misho 11750: else
1.1.1.3 ! misho 11751: echo "$as_me: failed program was:" >&5
! 11752: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11753:
11754:
11755: fi
11756:
1.1.1.3 ! misho 11757: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11758: conftest$ac_exeext
! 11759: if test "${ac_cv_search_inet_addr+set}" = set; then
! 11760: break
! 11761: fi
! 11762: done
! 11763: if test "${ac_cv_search_inet_addr+set}" = set; then
! 11764: :
! 11765: else
! 11766: ac_cv_search_inet_addr=no
! 11767: fi
! 11768: rm conftest.$ac_ext
! 11769: LIBS=$ac_func_search_save_LIBS
! 11770: fi
! 11771: { echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
! 11772: echo "${ECHO_T}$ac_cv_search_inet_addr" >&6; }
! 11773: ac_res=$ac_cv_search_inet_addr
! 11774: if test "$ac_res" != no; then
! 11775: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 misho 11776:
1.1.1.3 ! misho 11777: fi
1.1 misho 11778:
11779:
11780:
11781:
11782:
11783:
11784:
11785:
1.1.1.3 ! misho 11786: for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
! 11787: do
! 11788: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 11789: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11790: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 11791: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 11792: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11793: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11794: fi
! 11795: ac_res=`eval echo '${'$as_ac_Header'}'`
! 11796: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11797: echo "${ECHO_T}$ac_res" >&6; }
! 11798: else
! 11799: # Is the header compilable?
! 11800: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 11801: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 11802: cat >conftest.$ac_ext <<_ACEOF
! 11803: /* confdefs.h. */
1.1 misho 11804: _ACEOF
1.1.1.3 ! misho 11805: cat confdefs.h >>conftest.$ac_ext
! 11806: cat >>conftest.$ac_ext <<_ACEOF
! 11807: /* end confdefs.h. */
! 11808: $ac_includes_default
! 11809: #include <$ac_header>
! 11810: _ACEOF
! 11811: rm -f conftest.$ac_objext
! 11812: if { (ac_try="$ac_compile"
! 11813: case "(($ac_try" in
! 11814: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11815: *) ac_try_echo=$ac_try;;
! 11816: esac
! 11817: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11818: (eval "$ac_compile") 2>conftest.er1
! 11819: ac_status=$?
! 11820: grep -v '^ *+' conftest.er1 >conftest.err
! 11821: rm -f conftest.er1
! 11822: cat conftest.err >&5
! 11823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11824: (exit $ac_status); } && {
! 11825: test -z "$ac_c_werror_flag" ||
! 11826: test ! -s conftest.err
! 11827: } && test -s conftest.$ac_objext; then
! 11828: ac_header_compiler=yes
1.1 misho 11829: else
1.1.1.3 ! misho 11830: echo "$as_me: failed program was:" >&5
! 11831: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11832:
1.1.1.3 ! misho 11833: ac_header_compiler=no
1.1 misho 11834: fi
11835:
1.1.1.3 ! misho 11836: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11837: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 11838: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 misho 11839:
1.1.1.3 ! misho 11840: # Is the header present?
! 11841: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 11842: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 11843: cat >conftest.$ac_ext <<_ACEOF
! 11844: /* confdefs.h. */
! 11845: _ACEOF
! 11846: cat confdefs.h >>conftest.$ac_ext
! 11847: cat >>conftest.$ac_ext <<_ACEOF
! 11848: /* end confdefs.h. */
! 11849: #include <$ac_header>
! 11850: _ACEOF
! 11851: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11852: case "(($ac_try" in
! 11853: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11854: *) ac_try_echo=$ac_try;;
! 11855: esac
! 11856: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11857: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 11858: ac_status=$?
! 11859: grep -v '^ *+' conftest.er1 >conftest.err
! 11860: rm -f conftest.er1
! 11861: cat conftest.err >&5
! 11862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11863: (exit $ac_status); } >/dev/null && {
! 11864: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11865: test ! -s conftest.err
! 11866: }; then
! 11867: ac_header_preproc=yes
! 11868: else
! 11869: echo "$as_me: failed program was:" >&5
! 11870: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11871:
1.1.1.3 ! misho 11872: ac_header_preproc=no
! 11873: fi
1.1 misho 11874:
1.1.1.3 ! misho 11875: rm -f conftest.err conftest.$ac_ext
! 11876: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 11877: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 misho 11878:
1.1.1.3 ! misho 11879: # So? What about this header?
! 11880: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 11881: yes:no: )
! 11882: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 11883: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 11884: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 11885: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 11886: ac_header_preproc=yes
! 11887: ;;
! 11888: no:yes:* )
! 11889: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 11890: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 11891: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 11892: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 11893: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 11894: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 11895: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 11896: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 11897: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 11898: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 11899: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 11900: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 11901:
1.1.1.3 ! misho 11902: ;;
! 11903: esac
! 11904: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 11905: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 11906: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11907: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11908: else
! 11909: eval "$as_ac_Header=\$ac_header_preproc"
! 11910: fi
! 11911: ac_res=`eval echo '${'$as_ac_Header'}'`
! 11912: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11913: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 11914:
1.1.1.3 ! misho 11915: fi
! 11916: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 11917: cat >>confdefs.h <<_ACEOF
! 11918: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 11919: _ACEOF
11920:
1.1.1.3 ! misho 11921: fi
1.1 misho 11922:
1.1.1.3 ! misho 11923: done
1.1 misho 11924:
11925:
11926:
11927:
1.1.1.3 ! misho 11928: for ac_header in sys/select.h sys/socket.h sys/time.h
! 11929: do
! 11930: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 11931: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11932: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 11933: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 11934: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11935: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11936: fi
! 11937: ac_res=`eval echo '${'$as_ac_Header'}'`
! 11938: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11939: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 11940: else
1.1.1.3 ! misho 11941: # Is the header compilable?
! 11942: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 11943: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 11944: cat >conftest.$ac_ext <<_ACEOF
! 11945: /* confdefs.h. */
! 11946: _ACEOF
! 11947: cat confdefs.h >>conftest.$ac_ext
! 11948: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 11949: /* end confdefs.h. */
1.1.1.3 ! misho 11950: $ac_includes_default
! 11951: #include <$ac_header>
! 11952: _ACEOF
! 11953: rm -f conftest.$ac_objext
! 11954: if { (ac_try="$ac_compile"
! 11955: case "(($ac_try" in
! 11956: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11957: *) ac_try_echo=$ac_try;;
! 11958: esac
! 11959: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11960: (eval "$ac_compile") 2>conftest.er1
! 11961: ac_status=$?
! 11962: grep -v '^ *+' conftest.er1 >conftest.err
! 11963: rm -f conftest.er1
! 11964: cat conftest.err >&5
! 11965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11966: (exit $ac_status); } && {
! 11967: test -z "$ac_c_werror_flag" ||
! 11968: test ! -s conftest.err
! 11969: } && test -s conftest.$ac_objext; then
! 11970: ac_header_compiler=yes
! 11971: else
! 11972: echo "$as_me: failed program was:" >&5
! 11973: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 11974:
1.1.1.3 ! misho 11975: ac_header_compiler=no
! 11976: fi
1.1 misho 11977:
1.1.1.3 ! misho 11978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11979: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 11980: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 misho 11981:
1.1.1.3 ! misho 11982: # Is the header present?
! 11983: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 11984: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 11985: cat >conftest.$ac_ext <<_ACEOF
! 11986: /* confdefs.h. */
! 11987: _ACEOF
! 11988: cat confdefs.h >>conftest.$ac_ext
! 11989: cat >>conftest.$ac_ext <<_ACEOF
! 11990: /* end confdefs.h. */
! 11991: #include <$ac_header>
! 11992: _ACEOF
! 11993: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11994: case "(($ac_try" in
! 11995: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11996: *) ac_try_echo=$ac_try;;
! 11997: esac
! 11998: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11999: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 12000: ac_status=$?
! 12001: grep -v '^ *+' conftest.er1 >conftest.err
! 12002: rm -f conftest.er1
! 12003: cat conftest.err >&5
! 12004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12005: (exit $ac_status); } >/dev/null && {
! 12006: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 12007: test ! -s conftest.err
! 12008: }; then
! 12009: ac_header_preproc=yes
! 12010: else
! 12011: echo "$as_me: failed program was:" >&5
! 12012: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 12013:
1.1.1.3 ! misho 12014: ac_header_preproc=no
! 12015: fi
1.1 misho 12016:
1.1.1.3 ! misho 12017: rm -f conftest.err conftest.$ac_ext
! 12018: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 12019: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 misho 12020:
1.1.1.3 ! misho 12021: # So? What about this header?
! 12022: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 12023: yes:no: )
! 12024: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 12025: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 12026: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 12027: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 12028: ac_header_preproc=yes
! 12029: ;;
! 12030: no:yes:* )
! 12031: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 12032: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 12033: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 12034: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 12035: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 12036: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 12037: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 12038: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 12039: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 12040: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 12041: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 12042: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 12043:
1.1.1.3 ! misho 12044: ;;
! 12045: esac
! 12046: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12047: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 12048: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12049: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12050: else
! 12051: eval "$as_ac_Header=\$ac_header_preproc"
! 12052: fi
! 12053: ac_res=`eval echo '${'$as_ac_Header'}'`
! 12054: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12055: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 12056:
1.1.1.3 ! misho 12057: fi
! 12058: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 12059: cat >>confdefs.h <<_ACEOF
! 12060: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 12061: _ACEOF
1.1 misho 12062:
1.1.1.3 ! misho 12063: fi
1.1 misho 12064:
1.1.1.3 ! misho 12065: done
1.1 misho 12066:
12067:
12068:
1.1.1.3 ! misho 12069: for ac_header in arpa/inet.h netinet/in.h
! 12070: do
! 12071: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 12072: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12073: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12074: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 12075: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12076: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12077: fi
! 12078: ac_res=`eval echo '${'$as_ac_Header'}'`
! 12079: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12080: echo "${ECHO_T}$ac_res" >&6; }
! 12081: else
! 12082: # Is the header compilable?
! 12083: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 12084: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 12085: cat >conftest.$ac_ext <<_ACEOF
! 12086: /* confdefs.h. */
1.1 misho 12087: _ACEOF
1.1.1.3 ! misho 12088: cat confdefs.h >>conftest.$ac_ext
! 12089: cat >>conftest.$ac_ext <<_ACEOF
! 12090: /* end confdefs.h. */
! 12091: $ac_includes_default
! 12092: #include <$ac_header>
! 12093: _ACEOF
! 12094: rm -f conftest.$ac_objext
! 12095: if { (ac_try="$ac_compile"
! 12096: case "(($ac_try" in
! 12097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12098: *) ac_try_echo=$ac_try;;
! 12099: esac
! 12100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12101: (eval "$ac_compile") 2>conftest.er1
! 12102: ac_status=$?
! 12103: grep -v '^ *+' conftest.er1 >conftest.err
! 12104: rm -f conftest.er1
! 12105: cat conftest.err >&5
! 12106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12107: (exit $ac_status); } && {
! 12108: test -z "$ac_c_werror_flag" ||
! 12109: test ! -s conftest.err
! 12110: } && test -s conftest.$ac_objext; then
! 12111: ac_header_compiler=yes
1.1 misho 12112: else
1.1.1.3 ! misho 12113: echo "$as_me: failed program was:" >&5
! 12114: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 12115:
1.1.1.3 ! misho 12116: ac_header_compiler=no
1.1 misho 12117: fi
12118:
1.1.1.3 ! misho 12119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 12120: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 12121: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 misho 12122:
1.1.1.3 ! misho 12123: # Is the header present?
! 12124: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 12125: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 12126: cat >conftest.$ac_ext <<_ACEOF
! 12127: /* confdefs.h. */
! 12128: _ACEOF
! 12129: cat confdefs.h >>conftest.$ac_ext
! 12130: cat >>conftest.$ac_ext <<_ACEOF
! 12131: /* end confdefs.h. */
! 12132: #include <$ac_header>
! 12133: _ACEOF
! 12134: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 12135: case "(($ac_try" in
! 12136: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12137: *) ac_try_echo=$ac_try;;
! 12138: esac
! 12139: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12140: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 12141: ac_status=$?
! 12142: grep -v '^ *+' conftest.er1 >conftest.err
! 12143: rm -f conftest.er1
! 12144: cat conftest.err >&5
! 12145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12146: (exit $ac_status); } >/dev/null && {
! 12147: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 12148: test ! -s conftest.err
! 12149: }; then
! 12150: ac_header_preproc=yes
! 12151: else
! 12152: echo "$as_me: failed program was:" >&5
! 12153: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 12154:
1.1.1.3 ! misho 12155: ac_header_preproc=no
! 12156: fi
1.1 misho 12157:
1.1.1.3 ! misho 12158: rm -f conftest.err conftest.$ac_ext
! 12159: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 12160: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 misho 12161:
1.1.1.3 ! misho 12162: # So? What about this header?
! 12163: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 12164: yes:no: )
! 12165: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 12166: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 12167: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 12168: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 12169: ac_header_preproc=yes
! 12170: ;;
! 12171: no:yes:* )
! 12172: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 12173: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 12174: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 12175: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 12176: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 12177: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 12178: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 12179: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 12180: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 12181: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 12182: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 12183: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 12184:
1.1.1.3 ! misho 12185: ;;
! 12186: esac
! 12187: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12188: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 12189: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12190: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12191: else
! 12192: eval "$as_ac_Header=\$ac_header_preproc"
! 12193: fi
! 12194: ac_res=`eval echo '${'$as_ac_Header'}'`
! 12195: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12196: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 12197:
1.1.1.3 ! misho 12198: fi
! 12199: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 12200: cat >>confdefs.h <<_ACEOF
! 12201: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 12202: _ACEOF
12203:
1.1.1.3 ! misho 12204: fi
1.1 misho 12205:
1.1.1.3 ! misho 12206: done
1.1 misho 12207:
1.1.1.3 ! misho 12208:
! 12209: for ac_header in sysexits.h
! 12210: do
! 12211: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 12212: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12213: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12214: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 12215: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12216: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12217: fi
! 12218: ac_res=`eval echo '${'$as_ac_Header'}'`
! 12219: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12220: echo "${ECHO_T}$ac_res" >&6; }
! 12221: else
! 12222: # Is the header compilable?
! 12223: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 12224: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 12225: cat >conftest.$ac_ext <<_ACEOF
! 12226: /* confdefs.h. */
! 12227: _ACEOF
! 12228: cat confdefs.h >>conftest.$ac_ext
! 12229: cat >>conftest.$ac_ext <<_ACEOF
! 12230: /* end confdefs.h. */
! 12231: $ac_includes_default
! 12232: #include <$ac_header>
! 12233: _ACEOF
! 12234: rm -f conftest.$ac_objext
! 12235: if { (ac_try="$ac_compile"
! 12236: case "(($ac_try" in
! 12237: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12238: *) ac_try_echo=$ac_try;;
! 12239: esac
! 12240: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12241: (eval "$ac_compile") 2>conftest.er1
! 12242: ac_status=$?
! 12243: grep -v '^ *+' conftest.er1 >conftest.err
! 12244: rm -f conftest.er1
! 12245: cat conftest.err >&5
! 12246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12247: (exit $ac_status); } && {
! 12248: test -z "$ac_c_werror_flag" ||
! 12249: test ! -s conftest.err
! 12250: } && test -s conftest.$ac_objext; then
! 12251: ac_header_compiler=yes
! 12252: else
! 12253: echo "$as_me: failed program was:" >&5
! 12254: sed 's/^/| /' conftest.$ac_ext >&5
! 12255:
! 12256: ac_header_compiler=no
! 12257: fi
! 12258:
! 12259: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 12260: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 12261: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 12262:
! 12263: # Is the header present?
! 12264: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 12265: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 12266: cat >conftest.$ac_ext <<_ACEOF
! 12267: /* confdefs.h. */
! 12268: _ACEOF
! 12269: cat confdefs.h >>conftest.$ac_ext
! 12270: cat >>conftest.$ac_ext <<_ACEOF
! 12271: /* end confdefs.h. */
! 12272: #include <$ac_header>
! 12273: _ACEOF
! 12274: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 12275: case "(($ac_try" in
! 12276: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12277: *) ac_try_echo=$ac_try;;
! 12278: esac
! 12279: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12280: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 12281: ac_status=$?
! 12282: grep -v '^ *+' conftest.er1 >conftest.err
! 12283: rm -f conftest.er1
! 12284: cat conftest.err >&5
! 12285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12286: (exit $ac_status); } >/dev/null && {
! 12287: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 12288: test ! -s conftest.err
! 12289: }; then
! 12290: ac_header_preproc=yes
! 12291: else
! 12292: echo "$as_me: failed program was:" >&5
! 12293: sed 's/^/| /' conftest.$ac_ext >&5
! 12294:
! 12295: ac_header_preproc=no
! 12296: fi
! 12297:
! 12298: rm -f conftest.err conftest.$ac_ext
! 12299: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 12300: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 12301:
! 12302: # So? What about this header?
! 12303: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 12304: yes:no: )
! 12305: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 12306: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 12307: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 12308: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 12309: ac_header_preproc=yes
! 12310: ;;
! 12311: no:yes:* )
! 12312: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 12313: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 12314: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 12315: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 12316: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 12317: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 12318: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 12319: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 12320: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 12321: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 12322: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 12323: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 12324:
! 12325: ;;
! 12326: esac
! 12327: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12328: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 12329: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 12330: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12331: else
! 12332: eval "$as_ac_Header=\$ac_header_preproc"
! 12333: fi
! 12334: ac_res=`eval echo '${'$as_ac_Header'}'`
! 12335: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12336: echo "${ECHO_T}$ac_res" >&6; }
! 12337:
! 12338: fi
! 12339: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 12340: cat >>confdefs.h <<_ACEOF
! 12341: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 12342: _ACEOF
! 12343:
! 12344: fi
! 12345:
! 12346: done
! 12347:
! 12348:
! 12349:
! 12350: { echo "$as_me:$LINENO: checking for prctl" >&5
! 12351: echo $ECHO_N "checking for prctl... $ECHO_C" >&6; }
! 12352:
! 12353: cat >conftest.$ac_ext <<_ACEOF
! 12354: /* confdefs.h. */
! 12355: _ACEOF
! 12356: cat confdefs.h >>conftest.$ac_ext
! 12357: cat >>conftest.$ac_ext <<_ACEOF
! 12358: /* end confdefs.h. */
! 12359: #include <sys/prctl.h>
! 12360: int
! 12361: main ()
! 12362: {
! 12363: prctl(0, 0, 0, 0, 0);
! 12364: ;
! 12365: return 0;
! 12366: }
! 12367: _ACEOF
! 12368: rm -f conftest.$ac_objext
! 12369: if { (ac_try="$ac_compile"
! 12370: case "(($ac_try" in
! 12371: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12372: *) ac_try_echo=$ac_try;;
! 12373: esac
! 12374: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12375: (eval "$ac_compile") 2>conftest.er1
! 12376: ac_status=$?
! 12377: grep -v '^ *+' conftest.er1 >conftest.err
! 12378: rm -f conftest.er1
! 12379: cat conftest.err >&5
! 12380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12381: (exit $ac_status); } && {
! 12382: test -z "$ac_c_werror_flag" ||
! 12383: test ! -s conftest.err
! 12384: } && test -s conftest.$ac_objext; then
! 12385:
! 12386:
! 12387: cat >>confdefs.h <<\_ACEOF
! 12388: #define HAVE_PRCTL 1
! 12389: _ACEOF
! 12390:
! 12391: { echo "$as_me:$LINENO: result: yes" >&5
! 12392: echo "${ECHO_T}yes" >&6; }
! 12393:
! 12394: else
! 12395: echo "$as_me: failed program was:" >&5
! 12396: sed 's/^/| /' conftest.$ac_ext >&5
! 12397:
! 12398:
! 12399: { echo "$as_me:$LINENO: result: no" >&5
! 12400: echo "${ECHO_T}no" >&6; }
! 12401:
! 12402: fi
! 12403:
! 12404: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 12405:
! 12406:
! 12407: have_clock_gettime=no
! 12408:
! 12409: { echo "$as_me:$LINENO: checking for clock_gettime" >&5
! 12410: echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
! 12411:
! 12412: cat >conftest.$ac_ext <<_ACEOF
! 12413: /* confdefs.h. */
! 12414: _ACEOF
! 12415: cat confdefs.h >>conftest.$ac_ext
! 12416: cat >>conftest.$ac_ext <<_ACEOF
! 12417: /* end confdefs.h. */
! 12418: #include <time.h>
! 12419: int
! 12420: main ()
! 12421: {
! 12422: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
! 12423: ;
! 12424: return 0;
! 12425: }
! 12426: _ACEOF
! 12427: rm -f conftest.$ac_objext conftest$ac_exeext
! 12428: if { (ac_try="$ac_link"
! 12429: case "(($ac_try" in
! 12430: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12431: *) ac_try_echo=$ac_try;;
! 12432: esac
! 12433: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12434: (eval "$ac_link") 2>conftest.er1
! 12435: ac_status=$?
! 12436: grep -v '^ *+' conftest.er1 >conftest.err
! 12437: rm -f conftest.er1
! 12438: cat conftest.err >&5
! 12439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12440: (exit $ac_status); } && {
! 12441: test -z "$ac_c_werror_flag" ||
! 12442: test ! -s conftest.err
! 12443: } && test -s conftest$ac_exeext &&
! 12444: $as_test_x conftest$ac_exeext; then
! 12445:
! 12446: have_clock_gettime=yes
! 12447: { echo "$as_me:$LINENO: result: yes" >&5
! 12448: echo "${ECHO_T}yes" >&6; }
! 12449:
! 12450: else
! 12451: echo "$as_me: failed program was:" >&5
! 12452: sed 's/^/| /' conftest.$ac_ext >&5
! 12453:
! 12454:
! 12455: { echo "$as_me:$LINENO: result: no" >&5
! 12456: echo "${ECHO_T}no" >&6; }
! 12457:
! 12458: fi
! 12459:
! 12460: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12461: conftest$ac_exeext conftest.$ac_ext
! 12462:
! 12463: if test "$have_clock_gettime" = "no"; then
! 12464: { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
! 12465: echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
! 12466:
! 12467: SAVED_LIBS="$LIBS"
! 12468: LIBS="$LIBS -lrt"
! 12469:
! 12470: cat >conftest.$ac_ext <<_ACEOF
! 12471: /* confdefs.h. */
! 12472: _ACEOF
! 12473: cat confdefs.h >>conftest.$ac_ext
! 12474: cat >>conftest.$ac_ext <<_ACEOF
! 12475: /* end confdefs.h. */
! 12476: #include <time.h>
! 12477: int
! 12478: main ()
! 12479: {
! 12480: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
! 12481: ;
! 12482: return 0;
! 12483: }
! 12484: _ACEOF
! 12485: rm -f conftest.$ac_objext conftest$ac_exeext
! 12486: if { (ac_try="$ac_link"
! 12487: case "(($ac_try" in
! 12488: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12489: *) ac_try_echo=$ac_try;;
! 12490: esac
! 12491: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12492: (eval "$ac_link") 2>conftest.er1
! 12493: ac_status=$?
! 12494: grep -v '^ *+' conftest.er1 >conftest.err
! 12495: rm -f conftest.er1
! 12496: cat conftest.err >&5
! 12497: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12498: (exit $ac_status); } && {
! 12499: test -z "$ac_c_werror_flag" ||
! 12500: test ! -s conftest.err
! 12501: } && test -s conftest$ac_exeext &&
! 12502: $as_test_x conftest$ac_exeext; then
! 12503:
! 12504: have_clock_gettime=yes
! 12505: { echo "$as_me:$LINENO: result: yes" >&5
! 12506: echo "${ECHO_T}yes" >&6; }
! 12507:
! 12508: else
! 12509: echo "$as_me: failed program was:" >&5
! 12510: sed 's/^/| /' conftest.$ac_ext >&5
! 12511:
! 12512:
! 12513: LIBS="$SAVED_LIBS"
! 12514: { echo "$as_me:$LINENO: result: no" >&5
! 12515: echo "${ECHO_T}no" >&6; }
! 12516:
! 12517: fi
! 12518:
! 12519: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12520: conftest$ac_exeext conftest.$ac_ext
! 12521: fi
! 12522:
! 12523: if test "$have_clock_gettime" = "yes"; then
! 12524:
! 12525: cat >>confdefs.h <<\_ACEOF
! 12526: #define HAVE_CLOCK_GETTIME 1
! 12527: _ACEOF
! 12528:
! 12529: fi
! 12530:
! 12531: have_clock_get_time=no
! 12532:
! 12533: if test "$have_clock_gettime" = "no"; then
! 12534: { echo "$as_me:$LINENO: checking for clock_get_time" >&5
! 12535: echo $ECHO_N "checking for clock_get_time... $ECHO_C" >&6; }
! 12536:
! 12537: if test "$cross_compiling" = yes; then
! 12538: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 12539: See \`config.log' for more details." >&5
! 12540: echo "$as_me: error: cannot run test program while cross compiling
! 12541: See \`config.log' for more details." >&2;}
! 12542: { (exit 1); exit 1; }; }
! 12543: else
! 12544: cat >conftest.$ac_ext <<_ACEOF
! 12545: /* confdefs.h. */
! 12546: _ACEOF
! 12547: cat confdefs.h >>conftest.$ac_ext
! 12548: cat >>conftest.$ac_ext <<_ACEOF
! 12549: /* end confdefs.h. */
! 12550: #include <mach/mach.h>
! 12551: #include <mach/clock.h>
! 12552: #include <mach/mach_error.h>
! 12553:
! 12554: int main()
! 12555: {
! 12556: kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
! 12557: ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
! 12558:
! 12559: if (ret != KERN_SUCCESS) {
! 12560: return 1;
! 12561: }
! 12562:
! 12563: ret = clock_get_time(aClock, &aTime);
! 12564: if (ret != KERN_SUCCESS) {
! 12565: return 2;
! 12566: }
! 12567:
! 12568: return 0;
! 12569: }
! 12570:
! 12571: _ACEOF
! 12572: rm -f conftest$ac_exeext
! 12573: if { (ac_try="$ac_link"
! 12574: case "(($ac_try" in
! 12575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12576: *) ac_try_echo=$ac_try;;
! 12577: esac
! 12578: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12579: (eval "$ac_link") 2>&5
! 12580: ac_status=$?
! 12581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12582: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 12583: { (case "(($ac_try" in
! 12584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12585: *) ac_try_echo=$ac_try;;
! 12586: esac
! 12587: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12588: (eval "$ac_try") 2>&5
! 12589: ac_status=$?
! 12590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12591: (exit $ac_status); }; }; then
! 12592:
! 12593: have_clock_get_time=yes
! 12594: { echo "$as_me:$LINENO: result: yes" >&5
! 12595: echo "${ECHO_T}yes" >&6; }
! 12596:
! 12597: else
! 12598: echo "$as_me: program exited with status $ac_status" >&5
! 12599: echo "$as_me: failed program was:" >&5
! 12600: sed 's/^/| /' conftest.$ac_ext >&5
! 12601:
! 12602: ( exit $ac_status )
! 12603:
! 12604: { echo "$as_me:$LINENO: result: no" >&5
! 12605: echo "${ECHO_T}no" >&6; }
! 12606:
! 12607: fi
! 12608: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 12609: fi
! 12610:
! 12611:
! 12612: fi
! 12613:
! 12614: if test "$have_clock_get_time" = "yes"; then
! 12615:
! 12616: cat >>confdefs.h <<\_ACEOF
! 12617: #define HAVE_CLOCK_GET_TIME 1
! 12618: _ACEOF
! 12619:
! 12620: fi
! 12621:
! 12622:
! 12623: have_ptrace=no
! 12624: have_broken_ptrace=no
! 12625:
! 12626: { echo "$as_me:$LINENO: checking for ptrace" >&5
! 12627: echo $ECHO_N "checking for ptrace... $ECHO_C" >&6; }
! 12628:
! 12629: cat >conftest.$ac_ext <<_ACEOF
! 12630: /* confdefs.h. */
! 12631: _ACEOF
! 12632: cat confdefs.h >>conftest.$ac_ext
! 12633: cat >>conftest.$ac_ext <<_ACEOF
! 12634: /* end confdefs.h. */
! 12635:
! 12636: #include <sys/types.h>
! 12637: #include <sys/ptrace.h>
! 12638: int
! 12639: main ()
! 12640: {
! 12641: ptrace(0, 0, (void *) 0, 0);
! 12642: ;
! 12643: return 0;
! 12644: }
! 12645: _ACEOF
! 12646: rm -f conftest.$ac_objext
! 12647: if { (ac_try="$ac_compile"
! 12648: case "(($ac_try" in
! 12649: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12650: *) ac_try_echo=$ac_try;;
! 12651: esac
! 12652: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12653: (eval "$ac_compile") 2>conftest.er1
! 12654: ac_status=$?
! 12655: grep -v '^ *+' conftest.er1 >conftest.err
! 12656: rm -f conftest.er1
! 12657: cat conftest.err >&5
! 12658: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12659: (exit $ac_status); } && {
! 12660: test -z "$ac_c_werror_flag" ||
! 12661: test ! -s conftest.err
! 12662: } && test -s conftest.$ac_objext; then
! 12663:
! 12664: have_ptrace=yes
! 12665: { echo "$as_me:$LINENO: result: yes" >&5
! 12666: echo "${ECHO_T}yes" >&6; }
! 12667:
! 12668: else
! 12669: echo "$as_me: failed program was:" >&5
! 12670: sed 's/^/| /' conftest.$ac_ext >&5
! 12671:
! 12672:
! 12673: { echo "$as_me:$LINENO: result: no" >&5
! 12674: echo "${ECHO_T}no" >&6; }
! 12675:
! 12676: fi
! 12677:
! 12678: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 12679:
! 12680: if test "$have_ptrace" = "yes"; then
! 12681: { echo "$as_me:$LINENO: checking whether ptrace works" >&5
! 12682: echo $ECHO_N "checking whether ptrace works... $ECHO_C" >&6; }
! 12683:
! 12684: if test "$cross_compiling" = yes; then
! 12685:
! 12686: { echo "$as_me:$LINENO: result: skipped (cross compiling)" >&5
! 12687: echo "${ECHO_T}skipped (cross compiling)" >&6; }
! 12688:
! 12689: else
! 12690: cat >conftest.$ac_ext <<_ACEOF
! 12691: /* confdefs.h. */
! 12692: _ACEOF
! 12693: cat confdefs.h >>conftest.$ac_ext
! 12694: cat >>conftest.$ac_ext <<_ACEOF
! 12695: /* end confdefs.h. */
! 12696:
! 12697: #include <unistd.h>
! 12698: #include <signal.h>
! 12699: #include <sys/wait.h>
! 12700: #include <sys/types.h>
! 12701: #include <sys/ptrace.h>
! 12702: #include <errno.h>
! 12703:
! 12704: #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
! 12705: #define PTRACE_ATTACH PT_ATTACH
! 12706: #endif
! 12707:
! 12708: #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
! 12709: #define PTRACE_DETACH PT_DETACH
! 12710: #endif
! 12711:
! 12712: #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
! 12713: #define PTRACE_PEEKDATA PT_READ_D
! 12714: #endif
! 12715:
! 12716: int main()
! 12717: {
! 12718: long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
! 12719: long v2;
! 12720: pid_t child;
! 12721: int status;
! 12722:
! 12723: if ( (child = fork()) ) { /* parent */
! 12724: int ret = 0;
! 12725:
! 12726: if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
! 12727: return 2;
! 12728: }
! 12729:
! 12730: waitpid(child, &status, 0);
! 12731:
! 12732: #ifdef PT_IO
! 12733: struct ptrace_io_desc ptio = {
! 12734: .piod_op = PIOD_READ_D,
! 12735: .piod_offs = &v1,
! 12736: .piod_addr = &v2,
! 12737: .piod_len = sizeof(v1)
! 12738: };
! 12739:
! 12740: if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
! 12741: ret = 3;
! 12742: }
! 12743: #else
! 12744: errno = 0;
! 12745:
! 12746: v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
! 12747:
! 12748: if (errno) {
! 12749: ret = 4;
! 12750: }
! 12751: #endif
! 12752: ptrace(PTRACE_DETACH, child, (void *) 1, 0);
! 12753:
! 12754: kill(child, SIGKILL);
! 12755:
! 12756: return ret ? ret : (v1 != v2);
! 12757: }
! 12758: else { /* child */
! 12759: sleep(10);
! 12760: return 0;
! 12761: }
! 12762: }
! 12763:
! 12764: _ACEOF
! 12765: rm -f conftest$ac_exeext
! 12766: if { (ac_try="$ac_link"
! 12767: case "(($ac_try" in
! 12768: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12769: *) ac_try_echo=$ac_try;;
! 12770: esac
! 12771: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12772: (eval "$ac_link") 2>&5
! 12773: ac_status=$?
! 12774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12775: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 12776: { (case "(($ac_try" in
! 12777: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12778: *) ac_try_echo=$ac_try;;
! 12779: esac
! 12780: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12781: (eval "$ac_try") 2>&5
! 12782: ac_status=$?
! 12783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12784: (exit $ac_status); }; }; then
! 12785:
! 12786: { echo "$as_me:$LINENO: result: yes" >&5
! 12787: echo "${ECHO_T}yes" >&6; }
! 12788:
! 12789: else
! 12790: echo "$as_me: program exited with status $ac_status" >&5
! 12791: echo "$as_me: failed program was:" >&5
! 12792: sed 's/^/| /' conftest.$ac_ext >&5
! 12793:
! 12794: ( exit $ac_status )
! 12795:
! 12796: have_ptrace=no
! 12797: have_broken_ptrace=yes
! 12798: { echo "$as_me:$LINENO: result: no" >&5
! 12799: echo "${ECHO_T}no" >&6; }
! 12800:
! 12801: fi
! 12802: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 12803: fi
! 12804:
! 12805:
! 12806: fi
! 12807:
! 12808: if test "$have_ptrace" = "yes"; then
! 12809:
! 12810: cat >>confdefs.h <<\_ACEOF
! 12811: #define HAVE_PTRACE 1
! 12812: _ACEOF
! 12813:
! 12814: fi
! 12815:
! 12816: have_mach_vm_read=no
! 12817:
! 12818: if test "$have_broken_ptrace" = "yes"; then
! 12819: { echo "$as_me:$LINENO: checking for mach_vm_read" >&5
! 12820: echo $ECHO_N "checking for mach_vm_read... $ECHO_C" >&6; }
! 12821:
! 12822: cat >conftest.$ac_ext <<_ACEOF
! 12823: /* confdefs.h. */
! 12824: _ACEOF
! 12825: cat confdefs.h >>conftest.$ac_ext
! 12826: cat >>conftest.$ac_ext <<_ACEOF
! 12827: /* end confdefs.h. */
! 12828: #include <mach/mach.h>
! 12829: #include <mach/mach_vm.h>
! 12830:
! 12831: int
! 12832: main ()
! 12833: {
! 12834:
! 12835: mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0);
! 12836:
! 12837: ;
! 12838: return 0;
! 12839: }
! 12840: _ACEOF
! 12841: rm -f conftest.$ac_objext
! 12842: if { (ac_try="$ac_compile"
! 12843: case "(($ac_try" in
! 12844: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12845: *) ac_try_echo=$ac_try;;
! 12846: esac
! 12847: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12848: (eval "$ac_compile") 2>conftest.er1
! 12849: ac_status=$?
! 12850: grep -v '^ *+' conftest.er1 >conftest.err
! 12851: rm -f conftest.er1
! 12852: cat conftest.err >&5
! 12853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12854: (exit $ac_status); } && {
! 12855: test -z "$ac_c_werror_flag" ||
! 12856: test ! -s conftest.err
! 12857: } && test -s conftest.$ac_objext; then
! 12858:
! 12859: have_mach_vm_read=yes
! 12860: { echo "$as_me:$LINENO: result: yes" >&5
! 12861: echo "${ECHO_T}yes" >&6; }
! 12862:
! 12863: else
! 12864: echo "$as_me: failed program was:" >&5
! 12865: sed 's/^/| /' conftest.$ac_ext >&5
! 12866:
! 12867:
! 12868: { echo "$as_me:$LINENO: result: no" >&5
! 12869: echo "${ECHO_T}no" >&6; }
1.1 misho 12870:
12871: fi
1.1.1.3 ! misho 12872:
1.1 misho 12873: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874: fi
12875:
12876: if test "$have_mach_vm_read" = "yes"; then
12877:
1.1.1.3 ! misho 12878: cat >>confdefs.h <<\_ACEOF
! 12879: #define HAVE_MACH_VM_READ 1
! 12880: _ACEOF
1.1 misho 12881:
12882: fi
12883:
12884: proc_mem_file=""
12885:
12886: if test -r /proc/$$/mem ; then
12887: proc_mem_file="mem"
12888: else
12889: if test -r /proc/$$/as ; then
12890: proc_mem_file="as"
12891: fi
12892: fi
12893:
12894: if test -n "$proc_mem_file" ; then
1.1.1.3 ! misho 12895: { echo "$as_me:$LINENO: checking for proc mem file" >&5
! 12896: echo $ECHO_N "checking for proc mem file... $ECHO_C" >&6; }
! 12897:
! 12898: if test "$cross_compiling" = yes; then
! 12899:
! 12900: { echo "$as_me:$LINENO: result: skipped (cross compiling)" >&5
! 12901: echo "${ECHO_T}skipped (cross compiling)" >&6; }
1.1 misho 12902:
12903: else
1.1.1.3 ! misho 12904: cat >conftest.$ac_ext <<_ACEOF
! 12905: /* confdefs.h. */
! 12906: _ACEOF
! 12907: cat confdefs.h >>conftest.$ac_ext
! 12908: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 12909: /* end confdefs.h. */
12910:
12911: #define _GNU_SOURCE
12912: #define _FILE_OFFSET_BITS 64
12913: #include <stdint.h>
12914: #include <unistd.h>
12915: #include <sys/types.h>
12916: #include <sys/stat.h>
12917: #include <fcntl.h>
12918: #include <stdio.h>
12919: int main()
12920: {
12921: long v1 = (unsigned int) -1, v2 = 0;
12922: char buf[128];
12923: int fd;
12924: sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
12925: fd = open(buf, O_RDONLY);
12926: if (0 > fd) {
12927: return 1;
12928: }
12929: if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
12930: close(fd);
12931: return 1;
12932: }
12933: close(fd);
12934: return v1 != v2;
12935: }
12936:
12937: _ACEOF
1.1.1.3 ! misho 12938: rm -f conftest$ac_exeext
! 12939: if { (ac_try="$ac_link"
! 12940: case "(($ac_try" in
! 12941: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12942: *) ac_try_echo=$ac_try;;
! 12943: esac
! 12944: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12945: (eval "$ac_link") 2>&5
! 12946: ac_status=$?
! 12947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12948: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 12949: { (case "(($ac_try" in
! 12950: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12951: *) ac_try_echo=$ac_try;;
! 12952: esac
! 12953: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12954: (eval "$ac_try") 2>&5
! 12955: ac_status=$?
! 12956: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12957: (exit $ac_status); }; }; then
1.1 misho 12958:
1.1.1.3 ! misho 12959: { echo "$as_me:$LINENO: result: $proc_mem_file" >&5
! 12960: echo "${ECHO_T}$proc_mem_file" >&6; }
1.1 misho 12961:
12962: else
1.1.1.3 ! misho 12963: echo "$as_me: program exited with status $ac_status" >&5
! 12964: echo "$as_me: failed program was:" >&5
! 12965: sed 's/^/| /' conftest.$ac_ext >&5
! 12966:
! 12967: ( exit $ac_status )
1.1 misho 12968:
12969: proc_mem_file=""
1.1.1.3 ! misho 12970: { echo "$as_me:$LINENO: result: no" >&5
! 12971: echo "${ECHO_T}no" >&6; }
1.1 misho 12972:
12973: fi
1.1.1.3 ! misho 12974: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 12975: fi
12976:
1.1.1.3 ! misho 12977:
1.1 misho 12978: fi
12979:
12980: if test -n "$proc_mem_file"; then
12981:
12982: cat >>confdefs.h <<_ACEOF
12983: #define PROC_MEM_FILE "$proc_mem_file"
12984: _ACEOF
12985:
12986: fi
12987:
12988: fpm_trace_type=""
12989:
12990: if test "$have_ptrace" = "yes"; then
12991: fpm_trace_type=ptrace
12992:
12993: elif test -n "$proc_mem_file"; then
12994: fpm_trace_type=pread
12995:
12996: elif test "$have_mach_vm_read" = "yes" ; then
12997: fpm_trace_type=mach
12998:
12999: else
1.1.1.3 ! misho 13000: { echo "$as_me:$LINENO: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5
! 13001: echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;}
1.1 misho 13002: fi
13003:
13004:
13005:
1.1.1.3 ! misho 13006: { echo "$as_me:$LINENO: checking if gcc supports __sync_bool_compare_and_swap" >&5
! 13007: echo $ECHO_N "checking if gcc supports __sync_bool_compare_and_swap... $ECHO_C" >&6; }
! 13008: cat >conftest.$ac_ext <<_ACEOF
! 13009: /* confdefs.h. */
! 13010: _ACEOF
! 13011: cat confdefs.h >>conftest.$ac_ext
! 13012: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13013: /* end confdefs.h. */
13014:
13015: int
13016: main ()
13017: {
13018:
13019: int variable = 1;
13020: return (__sync_bool_compare_and_swap(&variable, 1, 2)
13021: && __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
13022:
13023: ;
13024: return 0;
13025: }
13026: _ACEOF
1.1.1.3 ! misho 13027: rm -f conftest.$ac_objext conftest$ac_exeext
! 13028: if { (ac_try="$ac_link"
! 13029: case "(($ac_try" in
! 13030: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13031: *) ac_try_echo=$ac_try;;
! 13032: esac
! 13033: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13034: (eval "$ac_link") 2>conftest.er1
! 13035: ac_status=$?
! 13036: grep -v '^ *+' conftest.er1 >conftest.err
! 13037: rm -f conftest.er1
! 13038: cat conftest.err >&5
! 13039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13040: (exit $ac_status); } && {
! 13041: test -z "$ac_c_werror_flag" ||
! 13042: test ! -s conftest.err
! 13043: } && test -s conftest$ac_exeext &&
! 13044: $as_test_x conftest$ac_exeext; then
1.1 misho 13045:
1.1.1.3 ! misho 13046: { echo "$as_me:$LINENO: result: yes" >&5
! 13047: echo "${ECHO_T}yes" >&6; }
1.1 misho 13048:
1.1.1.3 ! misho 13049: cat >>confdefs.h <<\_ACEOF
! 13050: #define HAVE_BUILTIN_ATOMIC 1
! 13051: _ACEOF
1.1 misho 13052:
13053:
13054: else
1.1.1.3 ! misho 13055: echo "$as_me: failed program was:" >&5
! 13056: sed 's/^/| /' conftest.$ac_ext >&5
! 13057:
1.1 misho 13058:
1.1.1.3 ! misho 13059: { echo "$as_me:$LINENO: result: no" >&5
! 13060: echo "${ECHO_T}no" >&6; }
1.1 misho 13061:
13062: fi
1.1.1.3 ! misho 13063:
! 13064: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 13065: conftest$ac_exeext conftest.$ac_ext
1.1 misho 13066:
13067:
13068: have_lq=no
13069:
1.1.1.3 ! misho 13070: { echo "$as_me:$LINENO: checking for TCP_INFO" >&5
! 13071: echo $ECHO_N "checking for TCP_INFO... $ECHO_C" >&6; }
1.1 misho 13072:
1.1.1.3 ! misho 13073: cat >conftest.$ac_ext <<_ACEOF
! 13074: /* confdefs.h. */
! 13075: _ACEOF
! 13076: cat confdefs.h >>conftest.$ac_ext
! 13077: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13078: /* end confdefs.h. */
13079: #include <netinet/tcp.h>
13080: int
13081: main ()
13082: {
1.1.1.3 ! misho 13083: struct tcp_info ti; int x = TCP_INFO;
1.1 misho 13084: ;
13085: return 0;
13086: }
13087: _ACEOF
1.1.1.3 ! misho 13088: rm -f conftest.$ac_objext
! 13089: if { (ac_try="$ac_compile"
! 13090: case "(($ac_try" in
! 13091: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13092: *) ac_try_echo=$ac_try;;
! 13093: esac
! 13094: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13095: (eval "$ac_compile") 2>conftest.er1
! 13096: ac_status=$?
! 13097: grep -v '^ *+' conftest.er1 >conftest.err
! 13098: rm -f conftest.er1
! 13099: cat conftest.err >&5
! 13100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13101: (exit $ac_status); } && {
! 13102: test -z "$ac_c_werror_flag" ||
! 13103: test ! -s conftest.err
! 13104: } && test -s conftest.$ac_objext; then
1.1 misho 13105:
13106: have_lq=tcp_info
1.1.1.3 ! misho 13107: { echo "$as_me:$LINENO: result: yes" >&5
! 13108: echo "${ECHO_T}yes" >&6; }
1.1 misho 13109:
13110: else
1.1.1.3 ! misho 13111: echo "$as_me: failed program was:" >&5
! 13112: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 13113:
1.1.1.3 ! misho 13114:
! 13115: { echo "$as_me:$LINENO: result: no" >&5
! 13116: echo "${ECHO_T}no" >&6; }
1.1 misho 13117:
13118: fi
1.1.1.3 ! misho 13119:
1.1 misho 13120: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13121:
13122: if test "$have_lq" = "tcp_info"; then
13123:
1.1.1.3 ! misho 13124: cat >>confdefs.h <<\_ACEOF
! 13125: #define HAVE_LQ_TCP_INFO 1
! 13126: _ACEOF
1.1 misho 13127:
13128: fi
13129:
13130: if test "$have_lq" = "no" ; then
1.1.1.3 ! misho 13131: { echo "$as_me:$LINENO: checking for SO_LISTENQLEN" >&5
! 13132: echo $ECHO_N "checking for SO_LISTENQLEN... $ECHO_C" >&6; }
1.1 misho 13133:
1.1.1.3 ! misho 13134: cat >conftest.$ac_ext <<_ACEOF
! 13135: /* confdefs.h. */
! 13136: _ACEOF
! 13137: cat confdefs.h >>conftest.$ac_ext
! 13138: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13139: /* end confdefs.h. */
13140: #include <sys/socket.h>
13141: int
13142: main ()
13143: {
13144: int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN;
13145: ;
13146: return 0;
13147: }
13148: _ACEOF
1.1.1.3 ! misho 13149: rm -f conftest.$ac_objext
! 13150: if { (ac_try="$ac_compile"
! 13151: case "(($ac_try" in
! 13152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13153: *) ac_try_echo=$ac_try;;
! 13154: esac
! 13155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13156: (eval "$ac_compile") 2>conftest.er1
! 13157: ac_status=$?
! 13158: grep -v '^ *+' conftest.er1 >conftest.err
! 13159: rm -f conftest.er1
! 13160: cat conftest.err >&5
! 13161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13162: (exit $ac_status); } && {
! 13163: test -z "$ac_c_werror_flag" ||
! 13164: test ! -s conftest.err
! 13165: } && test -s conftest.$ac_objext; then
1.1 misho 13166:
13167: have_lq=so_listenq
1.1.1.3 ! misho 13168: { echo "$as_me:$LINENO: result: yes" >&5
! 13169: echo "${ECHO_T}yes" >&6; }
1.1 misho 13170:
13171: else
1.1.1.3 ! misho 13172: echo "$as_me: failed program was:" >&5
! 13173: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 13174:
1.1.1.3 ! misho 13175:
! 13176: { echo "$as_me:$LINENO: result: no" >&5
! 13177: echo "${ECHO_T}no" >&6; }
1.1 misho 13178:
13179: fi
1.1.1.3 ! misho 13180:
1.1 misho 13181: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182:
1.1.1.3 ! misho 13183: if test "$have_lq" = "tcp_info"; then
1.1 misho 13184:
1.1.1.3 ! misho 13185: cat >>confdefs.h <<\_ACEOF
! 13186: #define HAVE_LQ_SO_LISTENQ 1
! 13187: _ACEOF
1.1 misho 13188:
13189: fi
13190: fi
13191:
13192:
1.1.1.3 ! misho 13193: { echo "$as_me:$LINENO: checking for sysconf" >&5
! 13194: echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
1.1 misho 13195:
1.1.1.3 ! misho 13196: cat >conftest.$ac_ext <<_ACEOF
! 13197: /* confdefs.h. */
! 13198: _ACEOF
! 13199: cat confdefs.h >>conftest.$ac_ext
! 13200: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13201: /* end confdefs.h. */
13202: #include <unistd.h>
13203: int
13204: main ()
13205: {
13206: sysconf(_SC_CLK_TCK);
13207: ;
13208: return 0;
13209: }
13210: _ACEOF
1.1.1.3 ! misho 13211: rm -f conftest.$ac_objext
! 13212: if { (ac_try="$ac_compile"
! 13213: case "(($ac_try" in
! 13214: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13215: *) ac_try_echo=$ac_try;;
! 13216: esac
! 13217: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13218: (eval "$ac_compile") 2>conftest.er1
! 13219: ac_status=$?
! 13220: grep -v '^ *+' conftest.er1 >conftest.err
! 13221: rm -f conftest.er1
! 13222: cat conftest.err >&5
! 13223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13224: (exit $ac_status); } && {
! 13225: test -z "$ac_c_werror_flag" ||
! 13226: test ! -s conftest.err
! 13227: } && test -s conftest.$ac_objext; then
1.1 misho 13228:
13229:
1.1.1.3 ! misho 13230: cat >>confdefs.h <<\_ACEOF
! 13231: #define HAVE_SYSCONF 1
! 13232: _ACEOF
1.1 misho 13233:
1.1.1.3 ! misho 13234: { echo "$as_me:$LINENO: result: yes" >&5
! 13235: echo "${ECHO_T}yes" >&6; }
1.1 misho 13236:
13237: else
1.1.1.3 ! misho 13238: echo "$as_me: failed program was:" >&5
! 13239: sed 's/^/| /' conftest.$ac_ext >&5
! 13240:
1.1 misho 13241:
1.1.1.3 ! misho 13242: { echo "$as_me:$LINENO: result: no" >&5
! 13243: echo "${ECHO_T}no" >&6; }
1.1 misho 13244:
13245: fi
1.1.1.3 ! misho 13246:
1.1 misho 13247: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248:
13249:
1.1.1.3 ! misho 13250: { echo "$as_me:$LINENO: checking for times" >&5
! 13251: echo $ECHO_N "checking for times... $ECHO_C" >&6; }
1.1 misho 13252:
1.1.1.3 ! misho 13253: cat >conftest.$ac_ext <<_ACEOF
! 13254: /* confdefs.h. */
! 13255: _ACEOF
! 13256: cat confdefs.h >>conftest.$ac_ext
! 13257: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13258: /* end confdefs.h. */
13259: #include <sys/times.h>
13260: int
13261: main ()
13262: {
13263: struct tms t; times(&t);
13264: ;
13265: return 0;
13266: }
13267: _ACEOF
1.1.1.3 ! misho 13268: rm -f conftest.$ac_objext
! 13269: if { (ac_try="$ac_compile"
! 13270: case "(($ac_try" in
! 13271: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13272: *) ac_try_echo=$ac_try;;
! 13273: esac
! 13274: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13275: (eval "$ac_compile") 2>conftest.er1
! 13276: ac_status=$?
! 13277: grep -v '^ *+' conftest.er1 >conftest.err
! 13278: rm -f conftest.er1
! 13279: cat conftest.err >&5
! 13280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13281: (exit $ac_status); } && {
! 13282: test -z "$ac_c_werror_flag" ||
! 13283: test ! -s conftest.err
! 13284: } && test -s conftest.$ac_objext; then
1.1 misho 13285:
13286:
1.1.1.3 ! misho 13287: cat >>confdefs.h <<\_ACEOF
! 13288: #define HAVE_TIMES 1
! 13289: _ACEOF
1.1 misho 13290:
1.1.1.3 ! misho 13291: { echo "$as_me:$LINENO: result: yes" >&5
! 13292: echo "${ECHO_T}yes" >&6; }
1.1 misho 13293:
13294: else
1.1.1.3 ! misho 13295: echo "$as_me: failed program was:" >&5
! 13296: sed 's/^/| /' conftest.$ac_ext >&5
! 13297:
1.1 misho 13298:
1.1.1.3 ! misho 13299: { echo "$as_me:$LINENO: result: no" >&5
! 13300: echo "${ECHO_T}no" >&6; }
1.1 misho 13301:
13302: fi
1.1.1.3 ! misho 13303:
1.1 misho 13304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305:
13306:
1.1.1.3 ! misho 13307: { echo "$as_me:$LINENO: checking for kqueue" >&5
! 13308: echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
1.1 misho 13309:
1.1.1.3 ! misho 13310: cat >conftest.$ac_ext <<_ACEOF
! 13311: /* confdefs.h. */
! 13312: _ACEOF
! 13313: cat confdefs.h >>conftest.$ac_ext
! 13314: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13315: /* end confdefs.h. */
13316:
13317: #include <sys/types.h>
13318: #include <sys/event.h>
13319: #include <sys/time.h>
13320:
13321: int
13322: main ()
13323: {
13324:
13325: int kfd;
13326: struct kevent k;
13327: kfd = kqueue();
13328: /* 0 -> STDIN_FILENO */
13329: EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL);
13330:
13331: ;
13332: return 0;
13333: }
13334: _ACEOF
1.1.1.3 ! misho 13335: rm -f conftest.$ac_objext
! 13336: if { (ac_try="$ac_compile"
! 13337: case "(($ac_try" in
! 13338: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13339: *) ac_try_echo=$ac_try;;
! 13340: esac
! 13341: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13342: (eval "$ac_compile") 2>conftest.er1
! 13343: ac_status=$?
! 13344: grep -v '^ *+' conftest.er1 >conftest.err
! 13345: rm -f conftest.er1
! 13346: cat conftest.err >&5
! 13347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13348: (exit $ac_status); } && {
! 13349: test -z "$ac_c_werror_flag" ||
! 13350: test ! -s conftest.err
! 13351: } && test -s conftest.$ac_objext; then
1.1 misho 13352:
13353:
1.1.1.3 ! misho 13354: cat >>confdefs.h <<\_ACEOF
! 13355: #define HAVE_KQUEUE 1
! 13356: _ACEOF
1.1 misho 13357:
1.1.1.3 ! misho 13358: { echo "$as_me:$LINENO: result: yes" >&5
! 13359: echo "${ECHO_T}yes" >&6; }
1.1 misho 13360:
13361: else
1.1.1.3 ! misho 13362: echo "$as_me: failed program was:" >&5
! 13363: sed 's/^/| /' conftest.$ac_ext >&5
! 13364:
1.1 misho 13365:
1.1.1.3 ! misho 13366: { echo "$as_me:$LINENO: result: no" >&5
! 13367: echo "${ECHO_T}no" >&6; }
1.1 misho 13368:
13369: fi
1.1.1.3 ! misho 13370:
1.1 misho 13371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372:
13373:
1.1.1.3 ! misho 13374: { echo "$as_me:$LINENO: checking for port framework" >&5
! 13375: echo $ECHO_N "checking for port framework... $ECHO_C" >&6; }
1.1 misho 13376:
1.1.1.3 ! misho 13377: cat >conftest.$ac_ext <<_ACEOF
! 13378: /* confdefs.h. */
! 13379: _ACEOF
! 13380: cat confdefs.h >>conftest.$ac_ext
! 13381: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13382: /* end confdefs.h. */
13383:
13384: #include <port.h>
13385:
13386: int
13387: main ()
13388: {
13389:
13390: int port;
13391:
13392: port = port_create();
13393: if (port < 0) {
13394: return 1;
13395: }
13396:
13397: ;
13398: return 0;
13399: }
13400: _ACEOF
1.1.1.3 ! misho 13401: rm -f conftest.$ac_objext
! 13402: if { (ac_try="$ac_compile"
! 13403: case "(($ac_try" in
! 13404: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13405: *) ac_try_echo=$ac_try;;
! 13406: esac
! 13407: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13408: (eval "$ac_compile") 2>conftest.er1
! 13409: ac_status=$?
! 13410: grep -v '^ *+' conftest.er1 >conftest.err
! 13411: rm -f conftest.er1
! 13412: cat conftest.err >&5
! 13413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13414: (exit $ac_status); } && {
! 13415: test -z "$ac_c_werror_flag" ||
! 13416: test ! -s conftest.err
! 13417: } && test -s conftest.$ac_objext; then
1.1 misho 13418:
13419:
1.1.1.3 ! misho 13420: cat >>confdefs.h <<\_ACEOF
! 13421: #define HAVE_PORT 1
! 13422: _ACEOF
1.1 misho 13423:
1.1.1.3 ! misho 13424: { echo "$as_me:$LINENO: result: yes" >&5
! 13425: echo "${ECHO_T}yes" >&6; }
1.1 misho 13426:
13427: else
1.1.1.3 ! misho 13428: echo "$as_me: failed program was:" >&5
! 13429: sed 's/^/| /' conftest.$ac_ext >&5
! 13430:
1.1 misho 13431:
1.1.1.3 ! misho 13432: { echo "$as_me:$LINENO: result: no" >&5
! 13433: echo "${ECHO_T}no" >&6; }
1.1 misho 13434:
13435: fi
1.1.1.3 ! misho 13436:
1.1 misho 13437: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438:
13439:
1.1.1.3 ! misho 13440: { echo "$as_me:$LINENO: checking for /dev/poll" >&5
! 13441: echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
1.1 misho 13442:
1.1.1.3 ! misho 13443: cat >conftest.$ac_ext <<_ACEOF
! 13444: /* confdefs.h. */
! 13445: _ACEOF
! 13446: cat confdefs.h >>conftest.$ac_ext
! 13447: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13448: /* end confdefs.h. */
13449:
13450: #include <stdio.h>
13451: #include <sys/devpoll.h>
13452:
13453: int
13454: main ()
13455: {
13456:
13457: int n, dp;
13458: struct dvpoll dvp;
13459: dp = 0;
13460: dvp.dp_fds = NULL;
13461: dvp.dp_nfds = 0;
13462: dvp.dp_timeout = 0;
13463: n = ioctl(dp, DP_POLL, &dvp)
13464:
13465: ;
13466: return 0;
13467: }
13468: _ACEOF
1.1.1.3 ! misho 13469: rm -f conftest.$ac_objext
! 13470: if { (ac_try="$ac_compile"
! 13471: case "(($ac_try" in
! 13472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13473: *) ac_try_echo=$ac_try;;
! 13474: esac
! 13475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13476: (eval "$ac_compile") 2>conftest.er1
! 13477: ac_status=$?
! 13478: grep -v '^ *+' conftest.er1 >conftest.err
! 13479: rm -f conftest.er1
! 13480: cat conftest.err >&5
! 13481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13482: (exit $ac_status); } && {
! 13483: test -z "$ac_c_werror_flag" ||
! 13484: test ! -s conftest.err
! 13485: } && test -s conftest.$ac_objext; then
! 13486:
1.1 misho 13487:
1.1.1.3 ! misho 13488: cat >>confdefs.h <<\_ACEOF
! 13489: #define HAVE_DEVPOLL 1
! 13490: _ACEOF
! 13491:
! 13492: { echo "$as_me:$LINENO: result: yes" >&5
! 13493: echo "${ECHO_T}yes" >&6; }
1.1 misho 13494:
13495: else
1.1.1.3 ! misho 13496: echo "$as_me: failed program was:" >&5
! 13497: sed 's/^/| /' conftest.$ac_ext >&5
! 13498:
1.1 misho 13499:
1.1.1.3 ! misho 13500: { echo "$as_me:$LINENO: result: no" >&5
! 13501: echo "${ECHO_T}no" >&6; }
1.1 misho 13502:
13503: fi
1.1.1.3 ! misho 13504:
1.1 misho 13505: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506:
13507:
1.1.1.3 ! misho 13508: { echo "$as_me:$LINENO: checking for epoll" >&5
! 13509: echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
1.1 misho 13510:
1.1.1.3 ! misho 13511: cat >conftest.$ac_ext <<_ACEOF
! 13512: /* confdefs.h. */
! 13513: _ACEOF
! 13514: cat confdefs.h >>conftest.$ac_ext
! 13515: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13516: /* end confdefs.h. */
13517:
13518: #include <sys/epoll.h>
13519:
13520: int
13521: main ()
13522: {
13523:
13524: int epollfd;
13525: struct epoll_event e;
13526:
13527: epollfd = epoll_create(1);
13528: if (epollfd < 0) {
13529: return 1;
13530: }
13531:
13532: e.events = EPOLLIN | EPOLLET;
13533: e.data.fd = 0;
13534:
13535: if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) {
13536: return 1;
13537: }
13538:
13539: e.events = 0;
13540: if (epoll_wait(epollfd, &e, 1, 1) < 0) {
13541: return 1;
13542: }
13543:
13544: ;
13545: return 0;
13546: }
13547: _ACEOF
1.1.1.3 ! misho 13548: rm -f conftest.$ac_objext
! 13549: if { (ac_try="$ac_compile"
! 13550: case "(($ac_try" in
! 13551: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13552: *) ac_try_echo=$ac_try;;
! 13553: esac
! 13554: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13555: (eval "$ac_compile") 2>conftest.er1
! 13556: ac_status=$?
! 13557: grep -v '^ *+' conftest.er1 >conftest.err
! 13558: rm -f conftest.er1
! 13559: cat conftest.err >&5
! 13560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13561: (exit $ac_status); } && {
! 13562: test -z "$ac_c_werror_flag" ||
! 13563: test ! -s conftest.err
! 13564: } && test -s conftest.$ac_objext; then
1.1 misho 13565:
13566:
1.1.1.3 ! misho 13567: cat >>confdefs.h <<\_ACEOF
! 13568: #define HAVE_EPOLL 1
! 13569: _ACEOF
1.1 misho 13570:
1.1.1.3 ! misho 13571: { echo "$as_me:$LINENO: result: yes" >&5
! 13572: echo "${ECHO_T}yes" >&6; }
1.1 misho 13573:
13574: else
1.1.1.3 ! misho 13575: echo "$as_me: failed program was:" >&5
! 13576: sed 's/^/| /' conftest.$ac_ext >&5
! 13577:
1.1 misho 13578:
1.1.1.3 ! misho 13579: { echo "$as_me:$LINENO: result: no" >&5
! 13580: echo "${ECHO_T}no" >&6; }
1.1 misho 13581:
13582: fi
1.1.1.3 ! misho 13583:
1.1 misho 13584: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585:
13586:
1.1.1.3 ! misho 13587: { echo "$as_me:$LINENO: checking for poll" >&5
! 13588: echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
1.1 misho 13589:
1.1.1.3 ! misho 13590: cat >conftest.$ac_ext <<_ACEOF
! 13591: /* confdefs.h. */
! 13592: _ACEOF
! 13593: cat confdefs.h >>conftest.$ac_ext
! 13594: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13595: /* end confdefs.h. */
13596:
13597: #include <poll.h>
13598:
13599: int
13600: main ()
13601: {
13602:
13603: struct pollfd fds[2];
13604:
13605: fds[0].fd = 0;
13606: fds[0].events = POLLIN;
13607:
13608: fds[1].fd = 0;
13609: fds[1].events = POLLIN;
13610:
13611: poll(fds, 2, 1);
13612:
13613: ;
13614: return 0;
13615: }
13616: _ACEOF
1.1.1.3 ! misho 13617: rm -f conftest.$ac_objext
! 13618: if { (ac_try="$ac_compile"
! 13619: case "(($ac_try" in
! 13620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13621: *) ac_try_echo=$ac_try;;
! 13622: esac
! 13623: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13624: (eval "$ac_compile") 2>conftest.er1
! 13625: ac_status=$?
! 13626: grep -v '^ *+' conftest.er1 >conftest.err
! 13627: rm -f conftest.er1
! 13628: cat conftest.err >&5
! 13629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13630: (exit $ac_status); } && {
! 13631: test -z "$ac_c_werror_flag" ||
! 13632: test ! -s conftest.err
! 13633: } && test -s conftest.$ac_objext; then
1.1 misho 13634:
13635:
1.1.1.3 ! misho 13636: cat >>confdefs.h <<\_ACEOF
! 13637: #define HAVE_POLL 1
! 13638: _ACEOF
1.1 misho 13639:
1.1.1.3 ! misho 13640: { echo "$as_me:$LINENO: result: yes" >&5
! 13641: echo "${ECHO_T}yes" >&6; }
1.1 misho 13642:
13643: else
1.1.1.3 ! misho 13644: echo "$as_me: failed program was:" >&5
! 13645: sed 's/^/| /' conftest.$ac_ext >&5
! 13646:
1.1 misho 13647:
1.1.1.3 ! misho 13648: { echo "$as_me:$LINENO: result: no" >&5
! 13649: echo "${ECHO_T}no" >&6; }
1.1 misho 13650:
13651: fi
1.1.1.3 ! misho 13652:
1.1 misho 13653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654:
13655:
1.1.1.3 ! misho 13656: { echo "$as_me:$LINENO: checking for select" >&5
! 13657: echo $ECHO_N "checking for select... $ECHO_C" >&6; }
1.1 misho 13658:
1.1.1.3 ! misho 13659: cat >conftest.$ac_ext <<_ACEOF
! 13660: /* confdefs.h. */
! 13661: _ACEOF
! 13662: cat confdefs.h >>conftest.$ac_ext
! 13663: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 13664: /* end confdefs.h. */
13665:
13666: /* According to POSIX.1-2001 */
13667: #include <sys/select.h>
13668:
13669: /* According to earlier standards */
13670: #include <sys/time.h>
13671: #include <sys/types.h>
13672: #include <unistd.h>
13673:
13674: int
13675: main ()
13676: {
13677:
13678: fd_set fds;
13679: struct timeval t;
13680: t.tv_sec = 0;
13681: t.tv_usec = 42;
13682: FD_ZERO(&fds);
13683: /* 0 -> STDIN_FILENO */
13684: FD_SET(0, &fds);
13685: select(FD_SETSIZE, &fds, NULL, NULL, &t);
13686:
13687: ;
13688: return 0;
13689: }
13690: _ACEOF
1.1.1.3 ! misho 13691: rm -f conftest.$ac_objext
! 13692: if { (ac_try="$ac_compile"
! 13693: case "(($ac_try" in
! 13694: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13695: *) ac_try_echo=$ac_try;;
! 13696: esac
! 13697: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13698: (eval "$ac_compile") 2>conftest.er1
! 13699: ac_status=$?
! 13700: grep -v '^ *+' conftest.er1 >conftest.err
! 13701: rm -f conftest.er1
! 13702: cat conftest.err >&5
! 13703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13704: (exit $ac_status); } && {
! 13705: test -z "$ac_c_werror_flag" ||
! 13706: test ! -s conftest.err
! 13707: } && test -s conftest.$ac_objext; then
1.1 misho 13708:
13709:
1.1.1.3 ! misho 13710: cat >>confdefs.h <<\_ACEOF
! 13711: #define HAVE_SELECT 1
! 13712: _ACEOF
1.1 misho 13713:
1.1.1.3 ! misho 13714: { echo "$as_me:$LINENO: result: yes" >&5
! 13715: echo "${ECHO_T}yes" >&6; }
1.1 misho 13716:
13717: else
1.1.1.3 ! misho 13718: echo "$as_me: failed program was:" >&5
! 13719: sed 's/^/| /' conftest.$ac_ext >&5
! 13720:
1.1 misho 13721:
1.1.1.3 ! misho 13722: { echo "$as_me:$LINENO: result: no" >&5
! 13723: echo "${ECHO_T}no" >&6; }
1.1 misho 13724:
13725: fi
1.1.1.3 ! misho 13726:
1.1 misho 13727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728:
13729:
13730:
13731: php_with_fpm_user=nobody
13732:
13733:
13734:
13735: # Check whether --with-fpm-user was given.
1.1.1.3 ! misho 13736: if test "${with_fpm_user+set}" = set; then
1.1 misho 13737: withval=$with_fpm_user; PHP_FPM_USER=$withval
13738: else
13739:
13740: PHP_FPM_USER=nobody
13741:
13742:
13743: fi
13744:
13745:
13746: ext_output=$PHP_FPM_USER
13747:
13748:
13749:
13750:
13751:
13752:
13753: php_with_fpm_group=nobody
13754:
13755:
13756:
13757: # Check whether --with-fpm-group was given.
1.1.1.3 ! misho 13758: if test "${with_fpm_group+set}" = set; then
1.1 misho 13759: withval=$with_fpm_group; PHP_FPM_GROUP=$withval
13760: else
13761:
13762: PHP_FPM_GROUP=nobody
13763:
13764:
13765: fi
13766:
13767:
13768: ext_output=$PHP_FPM_GROUP
13769:
13770:
13771:
13772:
13773:
1.1.1.3 ! misho 13774:
! 13775: php_with_fpm_systemd=no
! 13776:
! 13777:
! 13778:
! 13779: # Check whether --with-fpm-systemd was given.
! 13780: if test "${with_fpm_systemd+set}" = set; then
! 13781: withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval
! 13782: else
! 13783:
! 13784: PHP_FPM_SYSTEMD=no
! 13785:
! 13786:
! 13787: fi
! 13788:
! 13789:
! 13790: ext_output=$PHP_FPM_SYSTEMD
! 13791:
! 13792:
! 13793:
! 13794:
! 13795:
! 13796: if test "$PHP_FPM_SYSTEMD" != "no" ; then
! 13797: { echo "$as_me:$LINENO: checking for sd_notify in -lsystemd-daemon" >&5
! 13798: echo $ECHO_N "checking for sd_notify in -lsystemd-daemon... $ECHO_C" >&6; }
! 13799: if test "${ac_cv_lib_systemd_daemon_sd_notify+set}" = set; then
! 13800: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13801: else
! 13802: ac_check_lib_save_LIBS=$LIBS
! 13803: LIBS="-lsystemd-daemon $LIBS"
! 13804: cat >conftest.$ac_ext <<_ACEOF
! 13805: /* confdefs.h. */
! 13806: _ACEOF
! 13807: cat confdefs.h >>conftest.$ac_ext
! 13808: cat >>conftest.$ac_ext <<_ACEOF
! 13809: /* end confdefs.h. */
! 13810:
! 13811: /* Override any GCC internal prototype to avoid an error.
! 13812: Use char because int might match the return type of a GCC
! 13813: builtin and then its argument prototype would still apply. */
! 13814: #ifdef __cplusplus
! 13815: extern "C"
! 13816: #endif
! 13817: char sd_notify ();
! 13818: int
! 13819: main ()
! 13820: {
! 13821: return sd_notify ();
! 13822: ;
! 13823: return 0;
! 13824: }
! 13825: _ACEOF
! 13826: rm -f conftest.$ac_objext conftest$ac_exeext
! 13827: if { (ac_try="$ac_link"
! 13828: case "(($ac_try" in
! 13829: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13830: *) ac_try_echo=$ac_try;;
! 13831: esac
! 13832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13833: (eval "$ac_link") 2>conftest.er1
! 13834: ac_status=$?
! 13835: grep -v '^ *+' conftest.er1 >conftest.err
! 13836: rm -f conftest.er1
! 13837: cat conftest.err >&5
! 13838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13839: (exit $ac_status); } && {
! 13840: test -z "$ac_c_werror_flag" ||
! 13841: test ! -s conftest.err
! 13842: } && test -s conftest$ac_exeext &&
! 13843: $as_test_x conftest$ac_exeext; then
! 13844: ac_cv_lib_systemd_daemon_sd_notify=yes
! 13845: else
! 13846: echo "$as_me: failed program was:" >&5
! 13847: sed 's/^/| /' conftest.$ac_ext >&5
! 13848:
! 13849: ac_cv_lib_systemd_daemon_sd_notify=no
! 13850: fi
! 13851:
! 13852: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 13853: conftest$ac_exeext conftest.$ac_ext
! 13854: LIBS=$ac_check_lib_save_LIBS
! 13855: fi
! 13856: { echo "$as_me:$LINENO: result: $ac_cv_lib_systemd_daemon_sd_notify" >&5
! 13857: echo "${ECHO_T}$ac_cv_lib_systemd_daemon_sd_notify" >&6; }
! 13858: if test $ac_cv_lib_systemd_daemon_sd_notify = yes; then
! 13859: SYSTEMD_LIBS="-lsystemd-daemon"
! 13860: fi
! 13861:
! 13862:
! 13863: for ac_header in systemd/sd-daemon.h
! 13864: do
! 13865: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 13866: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13867: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13868: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13869: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13870: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13871: fi
! 13872: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13873: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13874: echo "${ECHO_T}$ac_res" >&6; }
! 13875: else
! 13876: # Is the header compilable?
! 13877: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13878: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 13879: cat >conftest.$ac_ext <<_ACEOF
! 13880: /* confdefs.h. */
! 13881: _ACEOF
! 13882: cat confdefs.h >>conftest.$ac_ext
! 13883: cat >>conftest.$ac_ext <<_ACEOF
! 13884: /* end confdefs.h. */
! 13885: $ac_includes_default
! 13886: #include <$ac_header>
! 13887: _ACEOF
! 13888: rm -f conftest.$ac_objext
! 13889: if { (ac_try="$ac_compile"
! 13890: case "(($ac_try" in
! 13891: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13892: *) ac_try_echo=$ac_try;;
! 13893: esac
! 13894: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13895: (eval "$ac_compile") 2>conftest.er1
! 13896: ac_status=$?
! 13897: grep -v '^ *+' conftest.er1 >conftest.err
! 13898: rm -f conftest.er1
! 13899: cat conftest.err >&5
! 13900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13901: (exit $ac_status); } && {
! 13902: test -z "$ac_c_werror_flag" ||
! 13903: test ! -s conftest.err
! 13904: } && test -s conftest.$ac_objext; then
! 13905: ac_header_compiler=yes
! 13906: else
! 13907: echo "$as_me: failed program was:" >&5
! 13908: sed 's/^/| /' conftest.$ac_ext >&5
! 13909:
! 13910: ac_header_compiler=no
! 13911: fi
! 13912:
! 13913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13914: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13915: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 13916:
! 13917: # Is the header present?
! 13918: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13919: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 13920: cat >conftest.$ac_ext <<_ACEOF
! 13921: /* confdefs.h. */
! 13922: _ACEOF
! 13923: cat confdefs.h >>conftest.$ac_ext
! 13924: cat >>conftest.$ac_ext <<_ACEOF
! 13925: /* end confdefs.h. */
! 13926: #include <$ac_header>
! 13927: _ACEOF
! 13928: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13929: case "(($ac_try" in
! 13930: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13931: *) ac_try_echo=$ac_try;;
! 13932: esac
! 13933: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13934: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 13935: ac_status=$?
! 13936: grep -v '^ *+' conftest.er1 >conftest.err
! 13937: rm -f conftest.er1
! 13938: cat conftest.err >&5
! 13939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13940: (exit $ac_status); } >/dev/null && {
! 13941: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13942: test ! -s conftest.err
! 13943: }; then
! 13944: ac_header_preproc=yes
! 13945: else
! 13946: echo "$as_me: failed program was:" >&5
! 13947: sed 's/^/| /' conftest.$ac_ext >&5
! 13948:
! 13949: ac_header_preproc=no
! 13950: fi
! 13951:
! 13952: rm -f conftest.err conftest.$ac_ext
! 13953: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13954: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 13955:
! 13956: # So? What about this header?
! 13957: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 13958: yes:no: )
! 13959: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 13960: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 13961: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 13962: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 13963: ac_header_preproc=yes
! 13964: ;;
! 13965: no:yes:* )
! 13966: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 13967: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 13968: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 13969: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 13970: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 13971: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 13972: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 13973: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 13974: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 13975: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 13976: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 13977: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 13978:
! 13979: ;;
! 13980: esac
! 13981: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13982: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13983: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13984: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13985: else
! 13986: eval "$as_ac_Header=\$ac_header_preproc"
! 13987: fi
! 13988: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13989: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13990: echo "${ECHO_T}$ac_res" >&6; }
! 13991:
! 13992: fi
! 13993: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 13994: cat >>confdefs.h <<_ACEOF
! 13995: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 13996: _ACEOF
! 13997: HAVE_SD_DAEMON_H="yes"
! 13998: else
! 13999: HAVE_SD_DAEMON_H="no"
! 14000: fi
! 14001:
! 14002: done
! 14003:
! 14004: if test $HAVE_SD_DAEMON_H = "no" || test -z "${SYSTEMD_LIBS}"; then
! 14005: { { echo "$as_me:$LINENO: error: Your system does not support systemd." >&5
! 14006: echo "$as_me: error: Your system does not support systemd." >&2;}
! 14007: { (exit 1); exit 1; }; }
! 14008: else
! 14009:
! 14010: cat >>confdefs.h <<\_ACEOF
! 14011: #define HAVE_SYSTEMD 1
! 14012: _ACEOF
! 14013:
! 14014: PHP_FPM_SD_FILES="fpm/fpm_systemd.c"
! 14015:
! 14016:
! 14017: case systemd-daemon in
! 14018: c|c_r|pthread*) ;;
! 14019: *)
! 14020: LIBS="-lsystemd-daemon $LIBS"
! 14021: ;;
! 14022: esac
! 14023:
! 14024:
! 14025: php_fpm_systemd=notify
! 14026: fi
! 14027: else
! 14028: php_fpm_systemd=simple
! 14029: fi
! 14030:
! 14031:
! 14032: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd"
! 14033:
! 14034:
! 14035:
! 14036:
! 14037: cat >>confdefs.h <<_ACEOF
! 14038: #define PHP_FPM_SYSTEMD "$php_fpm_systemd"
! 14039: _ACEOF
! 14040:
! 14041:
1.1 misho 14042: if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then
14043: php_fpm_user="nobody"
14044: else
14045: php_fpm_user="$PHP_FPM_USER"
14046: fi
14047:
14048: if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then
14049: php_fpm_group="nobody"
14050: else
14051: php_fpm_group="$PHP_FPM_GROUP"
14052: fi
14053:
14054:
14055:
14056: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user"
14057:
14058:
14059:
14060:
14061:
14062: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group"
14063:
14064:
14065:
14066: php_fpm_sysconfdir=`eval echo $sysconfdir`
14067:
14068:
14069: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir"
14070:
14071:
14072:
14073: php_fpm_localstatedir=`eval echo $localstatedir`
14074:
14075:
14076: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir"
14077:
14078:
14079:
14080: php_fpm_prefix=`eval echo $prefix`
14081:
14082:
14083: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix"
14084:
14085:
14086:
14087:
14088:
14089: cat >>confdefs.h <<_ACEOF
14090: #define PHP_FPM_USER "$php_fpm_user"
14091: _ACEOF
14092:
14093:
14094: cat >>confdefs.h <<_ACEOF
14095: #define PHP_FPM_GROUP "$php_fpm_group"
14096: _ACEOF
14097:
14098:
14099:
1.1.1.3 ! misho 14100: cat >>confdefs.h <<_ACEOF
! 14101: #define PHP_FPM_USER "$php_fpm_user"
! 14102: _ACEOF
! 14103:
! 14104:
! 14105: cat >>confdefs.h <<_ACEOF
! 14106: #define PHP_FPM_GROUP "$php_fpm_group"
! 14107: _ACEOF
! 14108:
! 14109:
! 14110:
1.1.1.2 misho 14111:
14112: BUILD_DIR="$BUILD_DIR sapi/fpm/fpm"
14113:
14114:
14115:
14116:
14117: BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events"
14118:
14119:
14120:
1.1.1.3 ! misho 14121: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html"
1.1 misho 14122:
14123:
14124: src=$abs_srcdir/sapi/fpm/Makefile.frag
1.1.1.2 misho 14125: ac_srcdir=$ext_srcdir
14126: ac_builddir=$ext_builddir
1.1 misho 14127: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
14128:
14129:
14130: SAPI_FPM_PATH=sapi/fpm/php-fpm
14131:
1.1.1.3 ! misho 14132:
1.1 misho 14133: if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
14134: PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
14135: fi
14136:
14137: PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
14138:
14139: PHP_FPM_FILES="fpm/fastcgi.c \
14140: fpm/fpm.c \
14141: fpm/fpm_children.c \
14142: fpm/fpm_cleanup.c \
14143: fpm/fpm_clock.c \
14144: fpm/fpm_conf.c \
14145: fpm/fpm_env.c \
14146: fpm/fpm_events.c \
14147: fpm/fpm_log.c \
14148: fpm/fpm_main.c \
14149: fpm/fpm_php.c \
14150: fpm/fpm_php_trace.c \
14151: fpm/fpm_process_ctl.c \
14152: fpm/fpm_request.c \
14153: fpm/fpm_shm.c \
14154: fpm/fpm_scoreboard.c \
14155: fpm/fpm_signals.c \
14156: fpm/fpm_sockets.c \
14157: fpm/fpm_status.c \
14158: fpm/fpm_stdio.c \
14159: fpm/fpm_unix.c \
14160: fpm/fpm_worker_pool.c \
14161: fpm/zlog.c \
14162: fpm/events/select.c \
14163: fpm/events/poll.c \
14164: fpm/events/epoll.c \
14165: fpm/events/kqueue.c \
14166: fpm/events/devpoll.c \
14167: fpm/events/port.c \
14168: "
14169:
14170:
1.1.1.2 misho 14171: if test "program" = "program"; then
14172: PHP_BINARIES="$PHP_BINARIES fpm"
14173: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 14174: { { echo "$as_me:$LINENO: error:
! 14175: +--------------------------------------------------------------------+
! 14176: | *** ATTENTION *** |
! 14177: | |
! 14178: | You've configured multiple SAPIs to be build. You can build only |
! 14179: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 14180: +--------------------------------------------------------------------+
! 14181: " >&5
! 14182: echo "$as_me: error:
1.1.1.2 misho 14183: +--------------------------------------------------------------------+
14184: | *** ATTENTION *** |
14185: | |
14186: | You've configured multiple SAPIs to be build. You can build only |
14187: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
14188: +--------------------------------------------------------------------+
1.1.1.3 ! misho 14189: " >&2;}
! 14190: { (exit 1); exit 1; }; }
1.1.1.2 misho 14191: else
14192: PHP_SAPI=fpm
14193: fi
1.1 misho 14194:
14195:
14196:
1.1.1.2 misho 14197: BUILD_DIR="$BUILD_DIR sapi/fpm"
1.1 misho 14198:
14199:
14200:
1.1.1.2 misho 14201: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm"
1.1 misho 14202:
14203:
14204:
1.1.1.2 misho 14205: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14206: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14207: php_c_post=
14208: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14209: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14210: php_cxx_post=
14211: php_lo=lo
1.1 misho 14212:
1.1.1.2 misho 14213: case $with_pic in
14214: yes) pic_setting='-prefer-pic';;
14215: no) pic_setting='-prefer-non-pic';;
14216: esac
14217:
14218: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14219: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14220: shared_c_post=
14221: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14222: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14223: shared_cxx_post=
14224: shared_lo=lo
1.1 misho 14225:
1.1.1.2 misho 14226: install_binaries="install-binaries"
14227: install_binary_targets="$install_binary_targets install-fpm"
1.1 misho 14228:
1.1.1.2 misho 14229: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS"
1.1 misho 14230:
14231:
1.1.1.2 misho 14232: case sapi/fpm in
1.1 misho 14233: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 14234: /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14235: *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 14236: esac
14237:
14238:
14239:
14240: b_c_pre=$php_c_pre
14241: b_cxx_pre=$php_cxx_pre
14242: b_c_meta=$php_c_meta
14243: b_cxx_meta=$php_cxx_meta
14244: b_c_post=$php_c_post
14245: b_cxx_post=$php_cxx_post
14246: b_lo=$php_lo
14247:
14248:
14249: old_IFS=$IFS
1.1.1.3 ! misho 14250: for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do
1.1 misho 14251:
14252: IFS=.
14253: set $ac_src
14254: ac_obj=$1
14255: IFS=$old_IFS
14256:
14257: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
14258:
14259: case $ac_src in
1.1.1.2 misho 14260: *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14261: *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14262: *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14263: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
1.1 misho 14264: esac
14265:
14266: cat >>Makefile.objects<<EOF
14267: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14268: $ac_comp
14269: EOF
14270: done
14271:
14272:
14273:
1.1.1.2 misho 14274:
1.1 misho 14275: case $host_alias in
14276: *aix*)
1.1.1.2 misho 14277: BUILD_FPM="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
1.1 misho 14278: ;;
14279: *darwin*)
1.1.1.2 misho 14280: BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
1.1 misho 14281: ;;
14282: *)
1.1.1.2 misho 14283: BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
1.1 misho 14284: ;;
14285: esac
14286:
14287:
1.1.1.2 misho 14288: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH"
1.1 misho 14289:
14290:
1.1.1.2 misho 14291: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM"
1.1 misho 14292:
14293:
14294: else
1.1.1.3 ! misho 14295: { echo "$as_me:$LINENO: result: no" >&5
! 14296: echo "${ECHO_T}no" >&6; }
1.1 misho 14297: fi
14298:
14299:
14300:
14301: php_with_isapi=no
14302:
1.1.1.3 ! misho 14303: { echo "$as_me:$LINENO: checking for Zeus ISAPI support" >&5
! 14304: echo $ECHO_N "checking for Zeus ISAPI support... $ECHO_C" >&6; }
1.1 misho 14305:
14306: # Check whether --with-isapi was given.
1.1.1.3 ! misho 14307: if test "${with_isapi+set}" = set; then
1.1 misho 14308: withval=$with_isapi; PHP_ISAPI=$withval
14309: else
14310:
14311: PHP_ISAPI=no
14312:
14313:
14314: fi
14315:
14316:
14317: ext_output=$PHP_ISAPI
1.1.1.3 ! misho 14318: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 14319: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 14320:
14321:
14322:
14323:
14324: if test "$PHP_ISAPI" != "no"; then
14325: if test "$PHP_ISAPI" = "yes"; then
14326: ZEUSPATH=/usr/local/zeus # the default
14327: else
14328: ZEUSPATH=$PHP_ISAPI
14329: fi
1.1.1.3 ! misho 14330: test -f "$ZEUSPATH/web/include/httpext.h" || { { echo "$as_me:$LINENO: error: Unable to find httpext.h in $ZEUSPATH/web/include" >&5
! 14331: echo "$as_me: error: Unable to find httpext.h in $ZEUSPATH/web/include" >&2;}
! 14332: { (exit 1); exit 1; }; }
1.1 misho 14333:
14334: enable_maintainer_zts=yes
14335: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 14336: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 14337: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 14338: { (exit 1); exit 1; }; }
1.1 misho 14339: fi
14340:
14341:
1.1.1.3 ! misho 14342: cat >>confdefs.h <<\_ACEOF
! 14343: #define WITH_ZEUS 1
! 14344: _ACEOF
1.1 misho 14345:
14346:
14347: if test "$ZEUSPATH/web/include" != "/usr/include"; then
14348:
14349: if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then
14350: ai_p=$ZEUSPATH/web/include
14351: else
14352:
14353: ep_dir="`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'`"
14354:
14355: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14356: ai_p="$ep_realdir/`basename \"$ZEUSPATH/web/include\"`"
14357: fi
14358:
14359:
14360:
14361: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14362:
14363: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14364: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14365: eval "INCLUDEPATH$unique=set"
14366:
14367: if test ""; then
14368: INCLUDES="-I$ai_p $INCLUDES"
14369: else
14370: INCLUDES="$INCLUDES -I$ai_p"
14371: fi
14372:
14373: fi
14374:
14375: fi
14376:
14377:
1.1.1.2 misho 14378: if test "shared" = "program"; then
14379: PHP_BINARIES="$PHP_BINARIES isapi"
14380: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 14381: { { echo "$as_me:$LINENO: error:
! 14382: +--------------------------------------------------------------------+
! 14383: | *** ATTENTION *** |
! 14384: | |
! 14385: | You've configured multiple SAPIs to be build. You can build only |
! 14386: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 14387: +--------------------------------------------------------------------+
! 14388: " >&5
! 14389: echo "$as_me: error:
1.1 misho 14390: +--------------------------------------------------------------------+
14391: | *** ATTENTION *** |
14392: | |
14393: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 14394: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 14395: +--------------------------------------------------------------------+
1.1.1.3 ! misho 14396: " >&2;}
! 14397: { (exit 1); exit 1; }; }
1.1.1.2 misho 14398: else
14399: PHP_SAPI=isapi
1.1 misho 14400: fi
14401:
14402:
14403:
1.1.1.2 misho 14404: BUILD_DIR="$BUILD_DIR sapi/isapi"
14405:
14406:
14407:
14408: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS isapi"
14409:
14410:
14411: case "shared" in
14412: static)
14413:
1.1 misho 14414: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14415: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14416: php_c_post=
14417: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14418: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14419: php_cxx_post=
14420: php_lo=lo
14421:
14422: case $with_pic in
14423: yes) pic_setting='-prefer-pic';;
14424: no) pic_setting='-prefer-non-pic';;
14425: esac
14426:
14427: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14428: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14429: shared_c_post=
14430: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14431: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14432: shared_cxx_post=
14433: shared_lo=lo
14434:
14435: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 14436: php_sapi_module=static
1.1 misho 14437: ;;
1.1.1.2 misho 14438: shared)
1.1 misho 14439:
14440: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14441: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14442: php_c_post=
14443: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14444: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14445: php_cxx_post=
14446: php_lo=lo
14447:
14448: case $with_pic in
14449: yes) pic_setting='-prefer-pic';;
14450: no) pic_setting='-prefer-non-pic';;
14451: esac
14452:
14453: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14454: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14455: shared_c_post=
14456: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14457: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14458: shared_cxx_post=
14459: shared_lo=lo
14460:
14461: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 14462: php_sapi_module=shared
1.1 misho 14463:
14464: php_c_pre=$shared_c_pre
14465: php_c_meta=$shared_c_meta
14466: php_c_post=$shared_c_post
14467: php_cxx_pre=$shared_cxx_pre
14468: php_cxx_meta=$shared_cxx_meta
14469: php_cxx_post=$shared_cxx_post
14470: php_lo=$shared_lo
14471: ;;
1.1.1.2 misho 14472: bundle)
1.1 misho 14473:
14474: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14475: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14476: php_c_post=
14477: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14478: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14479: php_cxx_post=
14480: php_lo=lo
14481:
14482: case $with_pic in
14483: yes) pic_setting='-prefer-pic';;
14484: no) pic_setting='-prefer-non-pic';;
14485: esac
14486:
14487: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14488: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14489: shared_c_post=
14490: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14491: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14492: shared_cxx_post=
14493: shared_lo=lo
14494:
14495: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 14496: php_sapi_module=static
1.1 misho 14497: ;;
1.1.1.2 misho 14498: esac
14499: install_sapi="install-sapi"
1.1 misho 14500:
14501:
14502: case sapi/isapi in
14503: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14504: /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14505: *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14506: esac
14507:
14508:
14509:
14510: b_c_pre=$php_c_pre
14511: b_cxx_pre=$php_cxx_pre
14512: b_c_meta=$php_c_meta
14513: b_cxx_meta=$php_cxx_meta
14514: b_c_post=$php_c_post
14515: b_cxx_post=$php_cxx_post
14516: b_lo=$php_lo
14517:
14518:
14519: old_IFS=$IFS
14520: for ac_src in php5isapi.c; do
14521:
14522: IFS=.
14523: set $ac_src
14524: ac_obj=$1
14525: IFS=$old_IFS
14526:
14527: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14528:
14529: case $ac_src in
14530: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14531: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14532: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14533: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
14534: esac
14535:
14536: cat >>Makefile.objects<<EOF
14537: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14538: $ac_comp
14539: EOF
14540: done
14541:
14542:
14543:
1.1.1.2 misho 14544:
1.1 misho 14545: INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$ZEUSPATH/web/bin/"
14546: fi
14547:
14548:
14549:
1.1.1.3 ! misho 14550: { echo "$as_me:$LINENO: checking for LiteSpeed support" >&5
! 14551: echo $ECHO_N "checking for LiteSpeed support... $ECHO_C" >&6; }
1.1 misho 14552:
14553:
14554: php_with_litespeed=no
14555:
14556:
14557:
14558: # Check whether --with-litespeed was given.
1.1.1.3 ! misho 14559: if test "${with_litespeed+set}" = set; then
1.1 misho 14560: withval=$with_litespeed; PHP_LITESPEED=$withval
14561: else
14562:
14563: PHP_LITESPEED=no
14564: test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL
14565:
14566: fi
14567:
14568:
14569:
14570: ext_output="yes, shared"
14571: ext_shared=yes
14572: case $PHP_LITESPEED in
14573: shared,*)
14574: PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'`
14575: ;;
14576: shared)
14577: PHP_LITESPEED=yes
14578: ;;
14579: no)
14580: ext_output=no
14581: ext_shared=no
14582: ;;
14583: *)
14584: ext_output=yes
14585: ext_shared=no
14586: ;;
14587: esac
14588:
14589:
14590:
14591:
14592:
14593:
14594:
14595:
14596: if test "$PHP_LITESPEED" != "no"; then
14597:
14598: src=$abs_srcdir/sapi/litespeed/Makefile.frag
14599: ac_srcdir=$abs_srcdir/sapi/litespeed
14600: ac_builddir=sapi/litespeed
14601: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
14602:
14603: SAPI_LITESPEED_PATH=sapi/litespeed/php
14604:
1.1.1.2 misho 14605: if test "program" = "program"; then
14606: PHP_BINARIES="$PHP_BINARIES litespeed"
14607: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 14608: { { echo "$as_me:$LINENO: error:
! 14609: +--------------------------------------------------------------------+
! 14610: | *** ATTENTION *** |
! 14611: | |
! 14612: | You've configured multiple SAPIs to be build. You can build only |
! 14613: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 14614: +--------------------------------------------------------------------+
! 14615: " >&5
! 14616: echo "$as_me: error:
1.1 misho 14617: +--------------------------------------------------------------------+
14618: | *** ATTENTION *** |
14619: | |
14620: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 14621: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 14622: +--------------------------------------------------------------------+
1.1.1.3 ! misho 14623: " >&2;}
! 14624: { (exit 1); exit 1; }; }
1.1.1.2 misho 14625: else
14626: PHP_SAPI=litespeed
1.1 misho 14627: fi
14628:
14629:
14630:
1.1.1.2 misho 14631: BUILD_DIR="$BUILD_DIR sapi/litespeed"
1.1 misho 14632:
14633:
14634:
1.1.1.2 misho 14635: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed"
1.1 misho 14636:
14637:
14638:
14639: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14640: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14641: php_c_post=
14642: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14643: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14644: php_cxx_post=
14645: php_lo=lo
14646:
14647: case $with_pic in
14648: yes) pic_setting='-prefer-pic';;
14649: no) pic_setting='-prefer-non-pic';;
14650: esac
14651:
14652: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14653: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14654: shared_c_post=
14655: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14656: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14657: shared_cxx_post=
14658: shared_lo=lo
14659:
1.1.1.2 misho 14660: install_binaries="install-binaries"
14661: install_binary_targets="$install_binary_targets install-litespeed"
1.1 misho 14662:
1.1.1.2 misho 14663: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS"
1.1 misho 14664:
14665:
14666: case sapi/litespeed in
14667: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14668: /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14669: *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14670: esac
14671:
14672:
14673:
14674: b_c_pre=$php_c_pre
14675: b_cxx_pre=$php_cxx_pre
14676: b_c_meta=$php_c_meta
14677: b_cxx_meta=$php_cxx_meta
14678: b_c_post=$php_c_post
14679: b_cxx_post=$php_cxx_post
14680: b_lo=$php_lo
14681:
14682:
14683: old_IFS=$IFS
14684: for ac_src in lsapi_main.c lsapilib.c; do
14685:
14686: IFS=.
14687: set $ac_src
14688: ac_obj=$1
14689: IFS=$old_IFS
14690:
1.1.1.2 misho 14691: PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 14692:
14693: case $ac_src in
14694: *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14695: *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14696: *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14697: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
14698: esac
14699:
14700: cat >>Makefile.objects<<EOF
14701: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14702: $ac_comp
14703: EOF
14704: done
14705:
14706:
14707:
14708: case $host_alias in
14709: *darwin*)
1.1.1.2 misho 14710: BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_LITESPEED_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1 misho 14711: ;;
14712: *cygwin*)
14713: SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
1.1.1.2 misho 14714: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1 misho 14715: ;;
14716: *)
1.1.1.2 misho 14717: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1 misho 14718: ;;
14719: esac
14720:
14721:
1.1.1.2 misho 14722: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_LITESPEED_PATH"
14723:
14724:
1.1 misho 14725: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_LITESPEED"
14726:
14727: fi
14728:
1.1.1.3 ! misho 14729: { echo "$as_me:$LINENO: result: $PHP_LITESPEED" >&5
! 14730: echo "${ECHO_T}$PHP_LITESPEED" >&6; }
1.1 misho 14731:
14732:
14733:
14734: php_with_milter=no
14735:
1.1.1.3 ! misho 14736: { echo "$as_me:$LINENO: checking for Milter support" >&5
! 14737: echo $ECHO_N "checking for Milter support... $ECHO_C" >&6; }
1.1 misho 14738:
14739: # Check whether --with-milter was given.
1.1.1.3 ! misho 14740: if test "${with_milter+set}" = set; then
1.1 misho 14741: withval=$with_milter; PHP_MILTER=$withval
14742: else
14743:
14744: PHP_MILTER=no
14745:
14746:
14747: fi
14748:
14749:
14750: ext_output=$PHP_MILTER
1.1.1.3 ! misho 14751: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 14752: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 14753:
14754:
14755:
14756:
14757: if test "$PHP_MILTER" != "no"; then
14758: if test "$PHP_MILTER" = "yes"; then
14759: if test -f /usr/lib/libmilter.a ; then
14760: MILTERPATH=/usr/lib
14761: else
14762: if test -f /usr/lib/libmilter/libmilter.a ; then
14763: MILTERPATH=/usr/lib/libmilter
14764: else
1.1.1.3 ! misho 14765: { { echo "$as_me:$LINENO: error: Unable to find libmilter.a" >&5
! 14766: echo "$as_me: error: Unable to find libmilter.a" >&2;}
! 14767: { (exit 1); exit 1; }; }
1.1 misho 14768: fi
14769: fi
14770: else
14771: MILTERPATH=$PHP_MILTER
14772: fi
14773:
14774: SAPI_MILTER_PATH=sapi/milter/php-milter
14775:
14776: enable_maintainer_zts=yes
14777: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 14778: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 14779: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 14780: { (exit 1); exit 1; }; }
1.1 misho 14781: fi
14782:
14783:
14784: src=$abs_srcdir/sapi/milter/Makefile.frag
14785: ac_srcdir=$ext_srcdir
14786: ac_builddir=$ext_builddir
14787: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
14788:
14789:
1.1.1.2 misho 14790: if test "program" = "program"; then
14791: PHP_BINARIES="$PHP_BINARIES milter"
14792: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 14793: { { echo "$as_me:$LINENO: error:
! 14794: +--------------------------------------------------------------------+
! 14795: | *** ATTENTION *** |
! 14796: | |
! 14797: | You've configured multiple SAPIs to be build. You can build only |
! 14798: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 14799: +--------------------------------------------------------------------+
! 14800: " >&5
! 14801: echo "$as_me: error:
1.1 misho 14802: +--------------------------------------------------------------------+
14803: | *** ATTENTION *** |
14804: | |
14805: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 14806: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 14807: +--------------------------------------------------------------------+
1.1.1.3 ! misho 14808: " >&2;}
! 14809: { (exit 1); exit 1; }; }
1.1.1.2 misho 14810: else
14811: PHP_SAPI=milter
1.1 misho 14812: fi
14813:
14814:
14815:
1.1.1.2 misho 14816: BUILD_DIR="$BUILD_DIR sapi/milter"
1.1 misho 14817:
14818:
14819:
1.1.1.2 misho 14820: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS milter"
1.1 misho 14821:
14822:
14823:
14824: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14825: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14826: php_c_post=
14827: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14828: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14829: php_cxx_post=
14830: php_lo=lo
14831:
14832: case $with_pic in
14833: yes) pic_setting='-prefer-pic';;
14834: no) pic_setting='-prefer-non-pic';;
14835: esac
14836:
14837: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14838: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14839: shared_c_post=
14840: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14841: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14842: shared_cxx_post=
14843: shared_lo=lo
14844:
1.1.1.2 misho 14845: install_binaries="install-binaries"
14846: install_binary_targets="$install_binary_targets install-milter"
1.1 misho 14847:
1.1.1.2 misho 14848: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MILTER_OBJS"
1.1 misho 14849:
14850:
14851: case sapi/milter in
14852: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14853: /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14854: *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14855: esac
14856:
14857:
14858:
14859: b_c_pre=$php_c_pre
14860: b_cxx_pre=$php_cxx_pre
14861: b_c_meta=$php_c_meta
14862: b_cxx_meta=$php_cxx_meta
14863: b_c_post=$php_c_post
14864: b_cxx_post=$php_cxx_post
14865: b_lo=$php_lo
14866:
14867:
14868: old_IFS=$IFS
14869: for ac_src in php_milter.c getopt.c; do
14870:
14871: IFS=.
14872: set $ac_src
14873: ac_obj=$1
14874: IFS=$old_IFS
14875:
1.1.1.2 misho 14876: PHP_MILTER_OBJS="$PHP_MILTER_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 14877:
14878: case $ac_src in
14879: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14880: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14881: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
14882: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
14883: esac
14884:
14885: cat >>Makefile.objects<<EOF
14886: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14887: $ac_comp
14888: EOF
14889: done
14890:
14891:
14892:
14893:
14894:
14895: if test -n "$MILTERPATH"; then
14896:
14897: if test "$MILTERPATH" != "/usr/$PHP_LIBDIR" && test "$MILTERPATH" != "/usr/lib"; then
14898:
14899: if test -z "$MILTERPATH" || echo "$MILTERPATH" | grep '^/' >/dev/null ; then
14900: ai_p=$MILTERPATH
14901: else
14902:
14903: ep_dir="`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'`"
14904:
14905: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14906: ai_p="$ep_realdir/`basename \"$MILTERPATH\"`"
14907: fi
14908:
14909:
14910:
14911:
14912:
14913: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14914:
14915: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
14916: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14917: eval "LIBPATH$unique=set"
14918:
14919: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
14920: LDFLAGS="$LDFLAGS -L$ai_p"
14921: PHP_RPATHS="$PHP_RPATHS $ai_p"
14922:
14923: fi
14924:
14925:
14926:
14927: fi
14928:
14929: fi
14930:
14931:
14932: case milter in
14933: c|c_r|pthread*) ;;
14934: *)
14935: LIBS="-lmilter $LIBS"
14936: ;;
14937: esac
14938:
14939:
14940:
14941:
1.1.1.2 misho 14942: BUILD_MILTER="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_MILTER_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_MILTER_PATH)"
1.1 misho 14943:
14944: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH"
14945:
14946:
14947: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER"
14948:
14949: fi
14950:
14951:
14952:
14953: php_with_nsapi=no
14954:
1.1.1.3 ! misho 14955: { echo "$as_me:$LINENO: checking for NSAPI support" >&5
! 14956: echo $ECHO_N "checking for NSAPI support... $ECHO_C" >&6; }
1.1 misho 14957:
14958: # Check whether --with-nsapi was given.
1.1.1.3 ! misho 14959: if test "${with_nsapi+set}" = set; then
1.1 misho 14960: withval=$with_nsapi; PHP_NSAPI=$withval
14961: else
14962:
14963: PHP_NSAPI=no
14964:
14965:
14966: fi
14967:
14968:
14969: ext_output=$PHP_NSAPI
1.1.1.3 ! misho 14970: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 14971: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 14972:
14973:
14974:
14975:
14976: if test "$PHP_NSAPI" != "no"; then
14977: if test ! -d $PHP_NSAPI/bin ; then
1.1.1.3 ! misho 14978: { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" >&5
! 14979: echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" >&2;}
! 14980: { (exit 1); exit 1; }; }
1.1 misho 14981: fi
1.1.1.3 ! misho 14982: { echo "$as_me:$LINENO: checking for NSAPI include files" >&5
! 14983: echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6; }
1.1 misho 14984: if test -d $PHP_NSAPI/include ; then
14985: NSAPI_INC_DIR="$PHP_NSAPI/include"
1.1.1.3 ! misho 14986: { echo "$as_me:$LINENO: result: Netscape 3.x / Sun 7.x style" >&5
! 14987: echo "${ECHO_T}Netscape 3.x / Sun 7.x style" >&6; }
! 14988:
! 14989: for ac_header in $NSAPI_INC_DIR/nsapi.h
! 14990: do
! 14991: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 14992: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 14993: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 14994: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 14995: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 14996: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14997: fi
! 14998: ac_res=`eval echo '${'$as_ac_Header'}'`
! 14999: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15000: echo "${ECHO_T}$ac_res" >&6; }
! 15001: else
! 15002: # Is the header compilable?
! 15003: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 15004: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 15005: cat >conftest.$ac_ext <<_ACEOF
! 15006: /* confdefs.h. */
! 15007: _ACEOF
! 15008: cat confdefs.h >>conftest.$ac_ext
! 15009: cat >>conftest.$ac_ext <<_ACEOF
! 15010: /* end confdefs.h. */
! 15011: $ac_includes_default
! 15012: #include <$ac_header>
! 15013: _ACEOF
! 15014: rm -f conftest.$ac_objext
! 15015: if { (ac_try="$ac_compile"
! 15016: case "(($ac_try" in
! 15017: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15018: *) ac_try_echo=$ac_try;;
! 15019: esac
! 15020: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15021: (eval "$ac_compile") 2>conftest.er1
! 15022: ac_status=$?
! 15023: grep -v '^ *+' conftest.er1 >conftest.err
! 15024: rm -f conftest.er1
! 15025: cat conftest.err >&5
! 15026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15027: (exit $ac_status); } && {
! 15028: test -z "$ac_c_werror_flag" ||
! 15029: test ! -s conftest.err
! 15030: } && test -s conftest.$ac_objext; then
! 15031: ac_header_compiler=yes
! 15032: else
! 15033: echo "$as_me: failed program was:" >&5
! 15034: sed 's/^/| /' conftest.$ac_ext >&5
! 15035:
! 15036: ac_header_compiler=no
! 15037: fi
! 15038:
! 15039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 15040: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 15041: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 15042:
! 15043: # Is the header present?
! 15044: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 15045: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 15046: cat >conftest.$ac_ext <<_ACEOF
! 15047: /* confdefs.h. */
! 15048: _ACEOF
! 15049: cat confdefs.h >>conftest.$ac_ext
! 15050: cat >>conftest.$ac_ext <<_ACEOF
! 15051: /* end confdefs.h. */
! 15052: #include <$ac_header>
! 15053: _ACEOF
! 15054: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 15055: case "(($ac_try" in
! 15056: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15057: *) ac_try_echo=$ac_try;;
! 15058: esac
! 15059: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15060: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 15061: ac_status=$?
! 15062: grep -v '^ *+' conftest.er1 >conftest.err
! 15063: rm -f conftest.er1
! 15064: cat conftest.err >&5
! 15065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15066: (exit $ac_status); } >/dev/null && {
! 15067: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 15068: test ! -s conftest.err
! 15069: }; then
! 15070: ac_header_preproc=yes
! 15071: else
! 15072: echo "$as_me: failed program was:" >&5
! 15073: sed 's/^/| /' conftest.$ac_ext >&5
! 15074:
! 15075: ac_header_preproc=no
! 15076: fi
! 15077:
! 15078: rm -f conftest.err conftest.$ac_ext
! 15079: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 15080: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 15081:
! 15082: # So? What about this header?
! 15083: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 15084: yes:no: )
! 15085: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 15086: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 15087: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 15088: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 15089: ac_header_preproc=yes
! 15090: ;;
! 15091: no:yes:* )
! 15092: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 15093: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 15094: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 15095: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 15096: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 15097: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 15098: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 15099: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 15100: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 15101: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 15102: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 15103: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 15104:
! 15105: ;;
! 15106: esac
! 15107: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 15108: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 15109: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 15110: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15111: else
! 15112: eval "$as_ac_Header=\$ac_header_preproc"
! 15113: fi
! 15114: ac_res=`eval echo '${'$as_ac_Header'}'`
! 15115: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15116: echo "${ECHO_T}$ac_res" >&6; }
! 15117:
! 15118: fi
! 15119: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 15120: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 15121: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 15122: _ACEOF
15123:
15124: fi
15125:
15126: done
15127:
15128: NSAPI_INCLUDE="-I$NSAPI_INC_DIR"
15129: fi
15130: if test -d $PHP_NSAPI/plugins/include ; then
15131: NSAPI_INC_DIR="$PHP_NSAPI/plugins/include"
1.1.1.3 ! misho 15132: { echo "$as_me:$LINENO: result: iPlanet 4.x / Sun 6.x style" >&5
! 15133: echo "${ECHO_T}iPlanet 4.x / Sun 6.x style" >&6; }
! 15134:
! 15135: for ac_header in $NSAPI_INC_DIR/nsapi.h
! 15136: do
! 15137: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 15138: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 15139: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 15140: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 15141: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 15142: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15143: fi
! 15144: ac_res=`eval echo '${'$as_ac_Header'}'`
! 15145: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15146: echo "${ECHO_T}$ac_res" >&6; }
! 15147: else
! 15148: # Is the header compilable?
! 15149: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 15150: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 15151: cat >conftest.$ac_ext <<_ACEOF
! 15152: /* confdefs.h. */
! 15153: _ACEOF
! 15154: cat confdefs.h >>conftest.$ac_ext
! 15155: cat >>conftest.$ac_ext <<_ACEOF
! 15156: /* end confdefs.h. */
! 15157: $ac_includes_default
! 15158: #include <$ac_header>
! 15159: _ACEOF
! 15160: rm -f conftest.$ac_objext
! 15161: if { (ac_try="$ac_compile"
! 15162: case "(($ac_try" in
! 15163: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15164: *) ac_try_echo=$ac_try;;
! 15165: esac
! 15166: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15167: (eval "$ac_compile") 2>conftest.er1
! 15168: ac_status=$?
! 15169: grep -v '^ *+' conftest.er1 >conftest.err
! 15170: rm -f conftest.er1
! 15171: cat conftest.err >&5
! 15172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15173: (exit $ac_status); } && {
! 15174: test -z "$ac_c_werror_flag" ||
! 15175: test ! -s conftest.err
! 15176: } && test -s conftest.$ac_objext; then
! 15177: ac_header_compiler=yes
! 15178: else
! 15179: echo "$as_me: failed program was:" >&5
! 15180: sed 's/^/| /' conftest.$ac_ext >&5
! 15181:
! 15182: ac_header_compiler=no
! 15183: fi
! 15184:
! 15185: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 15186: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 15187: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 15188:
! 15189: # Is the header present?
! 15190: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 15191: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 15192: cat >conftest.$ac_ext <<_ACEOF
! 15193: /* confdefs.h. */
! 15194: _ACEOF
! 15195: cat confdefs.h >>conftest.$ac_ext
! 15196: cat >>conftest.$ac_ext <<_ACEOF
! 15197: /* end confdefs.h. */
! 15198: #include <$ac_header>
! 15199: _ACEOF
! 15200: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 15201: case "(($ac_try" in
! 15202: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15203: *) ac_try_echo=$ac_try;;
! 15204: esac
! 15205: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15206: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 15207: ac_status=$?
! 15208: grep -v '^ *+' conftest.er1 >conftest.err
! 15209: rm -f conftest.er1
! 15210: cat conftest.err >&5
! 15211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15212: (exit $ac_status); } >/dev/null && {
! 15213: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 15214: test ! -s conftest.err
! 15215: }; then
! 15216: ac_header_preproc=yes
! 15217: else
! 15218: echo "$as_me: failed program was:" >&5
! 15219: sed 's/^/| /' conftest.$ac_ext >&5
! 15220:
! 15221: ac_header_preproc=no
! 15222: fi
! 15223:
! 15224: rm -f conftest.err conftest.$ac_ext
! 15225: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 15226: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 15227:
! 15228: # So? What about this header?
! 15229: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 15230: yes:no: )
! 15231: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 15232: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 15233: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 15234: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 15235: ac_header_preproc=yes
! 15236: ;;
! 15237: no:yes:* )
! 15238: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 15239: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 15240: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 15241: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 15242: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 15243: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 15244: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 15245: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 15246: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 15247: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 15248: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 15249: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 15250:
! 15251: ;;
! 15252: esac
! 15253: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 15254: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 15255: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 15256: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15257: else
! 15258: eval "$as_ac_Header=\$ac_header_preproc"
! 15259: fi
! 15260: ac_res=`eval echo '${'$as_ac_Header'}'`
! 15261: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 15262: echo "${ECHO_T}$ac_res" >&6; }
! 15263:
! 15264: fi
! 15265: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 15266: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 15267: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 15268: _ACEOF
15269:
15270: fi
15271:
15272: done
15273:
15274: NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR"
15275: fi
15276: if test -z "$NSAPI_INCLUDE"; then
1.1.1.3 ! misho 15277: { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" >&5
! 15278: echo "$as_me: error: Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" >&2;}
! 15279: { (exit 1); exit 1; }; }
1.1 misho 15280: fi
15281:
15282:
15283: for ac_i in $NSAPI_INCLUDE; do
15284: case $ac_i in
15285: -I*)
15286: ac_ii=`echo $ac_i|cut -c 3-`
15287:
15288: if test "$ac_ii" != "/usr/include"; then
15289:
15290: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
15291: ai_p=$ac_ii
15292: else
15293:
15294: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
15295:
15296: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15297: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
15298: fi
15299:
15300:
15301:
15302: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15303:
15304: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15305: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15306: eval "INCLUDEPATH$unique=set"
15307:
15308: if test ""; then
15309: INCLUDES="-I$ai_p $INCLUDES"
15310: else
15311: INCLUDES="$INCLUDES -I$ai_p"
15312: fi
15313:
15314: fi
15315:
15316: fi
15317:
15318: ;;
15319: esac
15320: done
15321:
15322:
15323: enable_maintainer_zts=yes
15324: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 15325: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 15326: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 15327: { (exit 1); exit 1; }; }
1.1 misho 15328: fi
15329:
15330:
1.1.1.3 ! misho 15331: cat >>confdefs.h <<\_ACEOF
! 15332: #define HAVE_NSAPI 1
! 15333: _ACEOF
1.1 misho 15334:
15335:
1.1.1.2 misho 15336: if test "shared" = "program"; then
15337: PHP_BINARIES="$PHP_BINARIES nsapi"
15338: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 15339: { { echo "$as_me:$LINENO: error:
! 15340: +--------------------------------------------------------------------+
! 15341: | *** ATTENTION *** |
! 15342: | |
! 15343: | You've configured multiple SAPIs to be build. You can build only |
! 15344: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 15345: +--------------------------------------------------------------------+
! 15346: " >&5
! 15347: echo "$as_me: error:
1.1 misho 15348: +--------------------------------------------------------------------+
15349: | *** ATTENTION *** |
15350: | |
15351: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 15352: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 15353: +--------------------------------------------------------------------+
1.1.1.3 ! misho 15354: " >&2;}
! 15355: { (exit 1); exit 1; }; }
1.1.1.2 misho 15356: else
15357: PHP_SAPI=nsapi
1.1 misho 15358: fi
15359:
15360:
15361:
1.1.1.2 misho 15362: BUILD_DIR="$BUILD_DIR sapi/nsapi"
15363:
15364:
15365:
15366: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS nsapi"
15367:
15368:
15369: case "shared" in
15370: static)
15371:
1.1 misho 15372: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15373: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15374: php_c_post=
15375: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15376: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15377: php_cxx_post=
15378: php_lo=lo
15379:
15380: case $with_pic in
15381: yes) pic_setting='-prefer-pic';;
15382: no) pic_setting='-prefer-non-pic';;
15383: esac
15384:
15385: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15386: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15387: shared_c_post=
15388: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15389: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15390: shared_cxx_post=
15391: shared_lo=lo
15392:
15393: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 15394: php_sapi_module=static
1.1 misho 15395: ;;
1.1.1.2 misho 15396: shared)
1.1 misho 15397:
15398: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15399: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15400: php_c_post=
15401: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15402: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15403: php_cxx_post=
15404: php_lo=lo
15405:
15406: case $with_pic in
15407: yes) pic_setting='-prefer-pic';;
15408: no) pic_setting='-prefer-non-pic';;
15409: esac
15410:
15411: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15412: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15413: shared_c_post=
15414: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15415: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15416: shared_cxx_post=
15417: shared_lo=lo
15418:
15419: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 15420: php_sapi_module=shared
1.1 misho 15421:
15422: php_c_pre=$shared_c_pre
15423: php_c_meta=$shared_c_meta
15424: php_c_post=$shared_c_post
15425: php_cxx_pre=$shared_cxx_pre
15426: php_cxx_meta=$shared_cxx_meta
15427: php_cxx_post=$shared_cxx_post
15428: php_lo=$shared_lo
15429: ;;
1.1.1.2 misho 15430: bundle)
1.1 misho 15431:
15432: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15433: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15434: php_c_post=
15435: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15436: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15437: php_cxx_post=
15438: php_lo=lo
15439:
15440: case $with_pic in
15441: yes) pic_setting='-prefer-pic';;
15442: no) pic_setting='-prefer-non-pic';;
15443: esac
15444:
15445: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15446: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15447: shared_c_post=
15448: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15449: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15450: shared_cxx_post=
15451: shared_lo=lo
15452:
15453: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 15454: php_sapi_module=static
1.1 misho 15455: ;;
1.1.1.2 misho 15456: esac
15457: install_sapi="install-sapi"
1.1 misho 15458:
15459:
15460: case sapi/nsapi in
15461: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15462: /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15463: *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15464: esac
15465:
15466:
15467:
15468: b_c_pre=$php_c_pre
15469: b_cxx_pre=$php_cxx_pre
15470: b_c_meta=$php_c_meta
15471: b_cxx_meta=$php_cxx_meta
15472: b_c_post=$php_c_post
15473: b_cxx_post=$php_cxx_post
15474: b_lo=$php_lo
15475:
15476:
15477: old_IFS=$IFS
15478: for ac_src in nsapi.c; do
15479:
15480: IFS=.
15481: set $ac_src
15482: ac_obj=$1
15483: IFS=$old_IFS
15484:
15485: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15486:
15487: case $ac_src in
15488: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15489: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15490: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15491: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
15492: esac
15493:
15494: cat >>Makefile.objects<<EOF
15495: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15496: $ac_comp
15497: EOF
15498: done
15499:
15500:
15501:
1.1.1.2 misho 15502:
1.1 misho 15503: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_NSAPI/bin/"
15504: fi
15505:
15506:
15507:
15508:
15509:
15510: php_with_phttpd=no
15511:
1.1.1.3 ! misho 15512: { echo "$as_me:$LINENO: checking for PHTTPD support" >&5
! 15513: echo $ECHO_N "checking for PHTTPD support... $ECHO_C" >&6; }
1.1 misho 15514:
15515: # Check whether --with-phttpd was given.
1.1.1.3 ! misho 15516: if test "${with_phttpd+set}" = set; then
1.1 misho 15517: withval=$with_phttpd; PHP_PHTTPD=$withval
15518: else
15519:
15520: PHP_PHTTPD=no
15521:
15522:
15523: fi
15524:
15525:
15526: ext_output=$PHP_PHTTPD
1.1.1.3 ! misho 15527: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 15528: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 15529:
15530:
15531:
15532:
15533: if test "$PHP_PHTTPD" != "no"; then
15534: if test ! -d $PHP_PHTTPD ; then
1.1.1.3 ! misho 15535: { { echo "$as_me:$LINENO: error: You did not specify a directory" >&5
! 15536: echo "$as_me: error: You did not specify a directory" >&2;}
! 15537: { (exit 1); exit 1; }; }
1.1 misho 15538: fi
15539:
15540: enable_maintainer_zts=yes
15541: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 15542: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 15543: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 15544: { (exit 1); exit 1; }; }
1.1 misho 15545: fi
15546:
15547:
15548: if test "$PHP_PHTTPD/include" != "/usr/include"; then
15549:
15550: if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then
15551: ai_p=$PHP_PHTTPD/include
15552: else
15553:
15554: ep_dir="`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'`"
15555:
15556: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15557: ai_p="$ep_realdir/`basename \"$PHP_PHTTPD/include\"`"
15558: fi
15559:
15560:
15561:
15562: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15563:
15564: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15565: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15566: eval "INCLUDEPATH$unique=set"
15567:
15568: if test ""; then
15569: INCLUDES="-I$ai_p $INCLUDES"
15570: else
15571: INCLUDES="$INCLUDES -I$ai_p"
15572: fi
15573:
15574: fi
15575:
15576: fi
15577:
15578:
1.1.1.3 ! misho 15579: cat >>confdefs.h <<\_ACEOF
! 15580: #define HAVE_PHTTPD 1
! 15581: _ACEOF
1.1 misho 15582:
15583:
1.1.1.2 misho 15584: if test "shared" = "program"; then
15585: PHP_BINARIES="$PHP_BINARIES phttpd"
15586: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 15587: { { echo "$as_me:$LINENO: error:
! 15588: +--------------------------------------------------------------------+
! 15589: | *** ATTENTION *** |
! 15590: | |
! 15591: | You've configured multiple SAPIs to be build. You can build only |
! 15592: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 15593: +--------------------------------------------------------------------+
! 15594: " >&5
! 15595: echo "$as_me: error:
1.1 misho 15596: +--------------------------------------------------------------------+
15597: | *** ATTENTION *** |
15598: | |
15599: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 15600: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 15601: +--------------------------------------------------------------------+
1.1.1.3 ! misho 15602: " >&2;}
! 15603: { (exit 1); exit 1; }; }
1.1.1.2 misho 15604: else
15605: PHP_SAPI=phttpd
1.1 misho 15606: fi
15607:
15608:
15609:
1.1.1.2 misho 15610: BUILD_DIR="$BUILD_DIR sapi/phttpd"
15611:
15612:
15613:
15614: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phttpd"
15615:
15616:
15617: case "shared" in
15618: static)
15619:
1.1 misho 15620: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15621: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15622: php_c_post=
15623: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15624: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15625: php_cxx_post=
15626: php_lo=lo
15627:
15628: case $with_pic in
15629: yes) pic_setting='-prefer-pic';;
15630: no) pic_setting='-prefer-non-pic';;
15631: esac
15632:
15633: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15634: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15635: shared_c_post=
15636: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15637: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15638: shared_cxx_post=
15639: shared_lo=lo
15640:
15641: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 15642: php_sapi_module=static
1.1 misho 15643: ;;
1.1.1.2 misho 15644: shared)
1.1 misho 15645:
15646: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15647: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15648: php_c_post=
15649: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15650: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15651: php_cxx_post=
15652: php_lo=lo
15653:
15654: case $with_pic in
15655: yes) pic_setting='-prefer-pic';;
15656: no) pic_setting='-prefer-non-pic';;
15657: esac
15658:
15659: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15660: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15661: shared_c_post=
15662: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15663: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15664: shared_cxx_post=
15665: shared_lo=lo
15666:
15667: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 15668: php_sapi_module=shared
1.1 misho 15669:
15670: php_c_pre=$shared_c_pre
15671: php_c_meta=$shared_c_meta
15672: php_c_post=$shared_c_post
15673: php_cxx_pre=$shared_cxx_pre
15674: php_cxx_meta=$shared_cxx_meta
15675: php_cxx_post=$shared_cxx_post
15676: php_lo=$shared_lo
15677: ;;
1.1.1.2 misho 15678: bundle)
1.1 misho 15679:
15680: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15681: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15682: php_c_post=
15683: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15684: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15685: php_cxx_post=
15686: php_lo=lo
15687:
15688: case $with_pic in
15689: yes) pic_setting='-prefer-pic';;
15690: no) pic_setting='-prefer-non-pic';;
15691: esac
15692:
15693: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15694: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15695: shared_c_post=
15696: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15697: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15698: shared_cxx_post=
15699: shared_lo=lo
15700:
15701: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 15702: php_sapi_module=static
1.1 misho 15703: ;;
1.1.1.2 misho 15704: esac
15705: install_sapi="install-sapi"
1.1 misho 15706:
15707:
15708: case sapi/phttpd in
15709: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15710: /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15711: *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15712: esac
15713:
15714:
15715:
15716: b_c_pre=$php_c_pre
15717: b_cxx_pre=$php_cxx_pre
15718: b_c_meta=$php_c_meta
15719: b_cxx_meta=$php_cxx_meta
15720: b_c_post=$php_c_post
15721: b_cxx_post=$php_cxx_post
15722: b_lo=$php_lo
15723:
15724:
15725: old_IFS=$IFS
15726: for ac_src in phttpd.c; do
15727:
15728: IFS=.
15729: set $ac_src
15730: ac_obj=$1
15731: IFS=$old_IFS
15732:
15733: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15734:
15735: case $ac_src in
15736: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15737: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15738: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15739: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
15740: esac
15741:
15742: cat >>Makefile.objects<<EOF
15743: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15744: $ac_comp
15745: EOF
15746: done
15747:
15748:
15749:
1.1.1.2 misho 15750:
1.1 misho 15751: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_PHTTPD/modules/"
15752: fi
15753:
15754:
15755:
15756:
15757: php_with_pi3web=no
15758:
1.1.1.3 ! misho 15759: { echo "$as_me:$LINENO: checking for Pi3Web support" >&5
! 15760: echo $ECHO_N "checking for Pi3Web support... $ECHO_C" >&6; }
1.1 misho 15761:
15762: # Check whether --with-pi3web was given.
1.1.1.3 ! misho 15763: if test "${with_pi3web+set}" = set; then
1.1 misho 15764: withval=$with_pi3web; PHP_PI3WEB=$withval
15765: else
15766:
15767: PHP_PI3WEB=no
15768:
15769:
15770: fi
15771:
15772:
15773: ext_output=$PHP_PI3WEB
1.1.1.3 ! misho 15774: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 15775: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 15776:
15777:
15778:
15779:
15780: if test "$PHP_PI3WEB" != "no"; then
15781: if test "$PHP_PI3WEB" = "yes"; then
15782: PI3PATH=../.. # the default
15783: else
15784: PI3PATH=$PHP_PI3WEB
15785: fi
1.1.1.3 ! misho 15786: test -f "$PI3PATH/PiAPI/PiAPI.h" || { { echo "$as_me:$LINENO: error: Unable to find PiAPI.h in $PI3PATH/PiAPI" >&5
! 15787: echo "$as_me: error: Unable to find PiAPI.h in $PI3PATH/PiAPI" >&2;}
! 15788: { (exit 1); exit 1; }; }
1.1 misho 15789:
15790: enable_maintainer_zts=yes
15791: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 15792: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 15793: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 15794: { (exit 1); exit 1; }; }
1.1 misho 15795: fi
15796:
15797:
1.1.1.3 ! misho 15798: cat >>confdefs.h <<\_ACEOF
! 15799: #define WITH_PI3WEB 1
! 15800: _ACEOF
1.1 misho 15801:
15802:
15803: if test "$PI3PATH/PiAPI" != "/usr/include"; then
15804:
15805: if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then
15806: ai_p=$PI3PATH/PiAPI
15807: else
15808:
15809: ep_dir="`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'`"
15810:
15811: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15812: ai_p="$ep_realdir/`basename \"$PI3PATH/PiAPI\"`"
15813: fi
15814:
15815:
15816:
15817: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15818:
15819: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15820: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15821: eval "INCLUDEPATH$unique=set"
15822:
15823: if test ""; then
15824: INCLUDES="-I$ai_p $INCLUDES"
15825: else
15826: INCLUDES="$INCLUDES -I$ai_p"
15827: fi
15828:
15829: fi
15830:
15831: fi
15832:
15833:
15834: if test "$PI3PATH/Pi2API" != "/usr/include"; then
15835:
15836: if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then
15837: ai_p=$PI3PATH/Pi2API
15838: else
15839:
15840: ep_dir="`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'`"
15841:
15842: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15843: ai_p="$ep_realdir/`basename \"$PI3PATH/Pi2API\"`"
15844: fi
15845:
15846:
15847:
15848: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15849:
15850: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15851: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15852: eval "INCLUDEPATH$unique=set"
15853:
15854: if test ""; then
15855: INCLUDES="-I$ai_p $INCLUDES"
15856: else
15857: INCLUDES="$INCLUDES -I$ai_p"
15858: fi
15859:
15860: fi
15861:
15862: fi
15863:
15864:
15865: if test "$PI3PATH/Pi3API" != "/usr/include"; then
15866:
15867: if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then
15868: ai_p=$PI3PATH/Pi3API
15869: else
15870:
15871: ep_dir="`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'`"
15872:
15873: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15874: ai_p="$ep_realdir/`basename \"$PI3PATH/Pi3API\"`"
15875: fi
15876:
15877:
15878:
15879: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15880:
15881: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15882: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15883: eval "INCLUDEPATH$unique=set"
15884:
15885: if test ""; then
15886: INCLUDES="-I$ai_p $INCLUDES"
15887: else
15888: INCLUDES="$INCLUDES -I$ai_p"
15889: fi
15890:
15891: fi
15892:
15893: fi
15894:
15895:
15896: if test "$PI3PATH/PHP5" != "/usr/include"; then
15897:
15898: if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then
15899: ai_p=$PI3PATH/PHP5
15900: else
15901:
15902: ep_dir="`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'`"
15903:
15904: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15905: ai_p="$ep_realdir/`basename \"$PI3PATH/PHP5\"`"
15906: fi
15907:
15908:
15909:
15910: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15911:
15912: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15913: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15914: eval "INCLUDEPATH$unique=set"
15915:
15916: if test ""; then
15917: INCLUDES="-I$ai_p $INCLUDES"
15918: else
15919: INCLUDES="$INCLUDES -I$ai_p"
15920: fi
15921:
15922: fi
15923:
15924: fi
15925:
15926:
1.1.1.2 misho 15927: if test "shared" = "program"; then
15928: PHP_BINARIES="$PHP_BINARIES pi3web"
15929: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 15930: { { echo "$as_me:$LINENO: error:
1.1 misho 15931: +--------------------------------------------------------------------+
15932: | *** ATTENTION *** |
15933: | |
15934: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 15935: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 15936: +--------------------------------------------------------------------+
1.1.1.3 ! misho 15937: " >&5
! 15938: echo "$as_me: error:
! 15939: +--------------------------------------------------------------------+
! 15940: | *** ATTENTION *** |
! 15941: | |
! 15942: | You've configured multiple SAPIs to be build. You can build only |
! 15943: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 15944: +--------------------------------------------------------------------+
! 15945: " >&2;}
! 15946: { (exit 1); exit 1; }; }
1.1.1.2 misho 15947: else
15948: PHP_SAPI=pi3web
1.1 misho 15949: fi
15950:
15951:
15952:
1.1.1.2 misho 15953: BUILD_DIR="$BUILD_DIR sapi/pi3web"
15954:
15955:
15956:
15957: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS pi3web"
15958:
15959:
15960: case "shared" in
15961: static)
15962:
1.1 misho 15963: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15964: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15965: php_c_post=
15966: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15967: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15968: php_cxx_post=
15969: php_lo=lo
15970:
15971: case $with_pic in
15972: yes) pic_setting='-prefer-pic';;
15973: no) pic_setting='-prefer-non-pic';;
15974: esac
15975:
15976: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15977: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15978: shared_c_post=
15979: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15980: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15981: shared_cxx_post=
15982: shared_lo=lo
15983:
15984: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 15985: php_sapi_module=static
1.1 misho 15986: ;;
1.1.1.2 misho 15987: shared)
1.1 misho 15988:
15989: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15990: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15991: php_c_post=
15992: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15993: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15994: php_cxx_post=
15995: php_lo=lo
15996:
15997: case $with_pic in
15998: yes) pic_setting='-prefer-pic';;
15999: no) pic_setting='-prefer-non-pic';;
16000: esac
16001:
16002: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16003: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16004: shared_c_post=
16005: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16006: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16007: shared_cxx_post=
16008: shared_lo=lo
16009:
16010: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16011: php_sapi_module=shared
1.1 misho 16012:
16013: php_c_pre=$shared_c_pre
16014: php_c_meta=$shared_c_meta
16015: php_c_post=$shared_c_post
16016: php_cxx_pre=$shared_cxx_pre
16017: php_cxx_meta=$shared_cxx_meta
16018: php_cxx_post=$shared_cxx_post
16019: php_lo=$shared_lo
16020: ;;
1.1.1.2 misho 16021: bundle)
1.1 misho 16022:
16023: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16024: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16025: php_c_post=
16026: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16027: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16028: php_cxx_post=
16029: php_lo=lo
16030:
16031: case $with_pic in
16032: yes) pic_setting='-prefer-pic';;
16033: no) pic_setting='-prefer-non-pic';;
16034: esac
16035:
16036: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16037: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16038: shared_c_post=
16039: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16040: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16041: shared_cxx_post=
16042: shared_lo=lo
16043:
16044: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 16045: php_sapi_module=static
1.1 misho 16046: ;;
1.1.1.2 misho 16047: esac
16048: install_sapi="install-sapi"
1.1 misho 16049:
16050:
16051: case sapi/pi3web in
16052: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16053: /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16054: *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16055: esac
16056:
16057:
16058:
16059: b_c_pre=$php_c_pre
16060: b_cxx_pre=$php_cxx_pre
16061: b_c_meta=$php_c_meta
16062: b_cxx_meta=$php_cxx_meta
16063: b_c_post=$php_c_post
16064: b_cxx_post=$php_cxx_post
16065: b_lo=$php_lo
16066:
16067:
16068: old_IFS=$IFS
16069: for ac_src in pi3web_sapi.c; do
16070:
16071: IFS=.
16072: set $ac_src
16073: ac_obj=$1
16074: IFS=$old_IFS
16075:
16076: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16077:
16078: case $ac_src in
16079: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16080: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16081: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16082: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
16083: esac
16084:
16085: cat >>Makefile.objects<<EOF
16086: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16087: $ac_comp
16088: EOF
16089: done
16090:
16091:
16092:
1.1.1.2 misho 16093:
1.1 misho 16094: INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
16095: fi
16096:
16097:
16098:
16099:
16100: php_with_roxen=no
16101:
16102:
16103:
16104: # Check whether --with-roxen was given.
1.1.1.3 ! misho 16105: if test "${with_roxen+set}" = set; then
1.1 misho 16106: withval=$with_roxen; PHP_ROXEN=$withval
16107: else
16108:
16109: PHP_ROXEN=no
16110:
16111:
16112: fi
16113:
16114:
16115: ext_output=$PHP_ROXEN
16116:
16117:
16118:
16119:
16120:
16121:
16122: php_enable_roxen_zts=no
16123:
1.1.1.3 ! misho 16124: { echo "$as_me:$LINENO: checking whether Roxen module is build using ZTS" >&5
! 16125: echo $ECHO_N "checking whether Roxen module is build using ZTS... $ECHO_C" >&6; }
1.1 misho 16126: # Check whether --enable-roxen-zts was given.
1.1.1.3 ! misho 16127: if test "${enable_roxen_zts+set}" = set; then
1.1 misho 16128: enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval
16129: else
16130:
16131: PHP_ROXEN_ZTS=no
16132:
16133:
16134: fi
16135:
16136:
16137: ext_output=$PHP_ROXEN_ZTS
1.1.1.3 ! misho 16138: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 16139: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 16140:
16141:
16142:
16143:
16144: RESULT=
1.1.1.3 ! misho 16145: { echo "$as_me:$LINENO: checking for Roxen/Pike support" >&5
! 16146: echo $ECHO_N "checking for Roxen/Pike support... $ECHO_C" >&6; }
1.1 misho 16147: if test "$PHP_ROXEN" != "no"; then
16148: if test ! -d $PHP_ROXEN ; then
1.1.1.3 ! misho 16149: { { echo "$as_me:$LINENO: error: You did not specify a directory" >&5
! 16150: echo "$as_me: error: You did not specify a directory" >&2;}
! 16151: { (exit 1); exit 1; }; }
1.1 misho 16152: fi
16153: if test -f $PHP_ROXEN/bin/roxen; then
16154: PIKE=$PHP_ROXEN/bin/roxen
16155: elif test -f $PHP_ROXEN/bin/pike; then
16156: PIKE=$PHP_ROXEN/bin/pike
16157: else
1.1.1.3 ! misho 16158: { { echo "$as_me:$LINENO: error: Could not find a pike in $PHP_ROXEN/bin/" >&5
! 16159: echo "$as_me: error: Could not find a pike in $PHP_ROXEN/bin/" >&2;}
! 16160: { (exit 1); exit 1; }; }
1.1 misho 16161: fi
16162:
16163: if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then
16164: PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
16165: PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'`
16166: if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
1.1.1.3 ! misho 16167: { { echo "$as_me:$LINENO: error: Failed to figure out Pike module and include directories" >&5
! 16168: echo "$as_me: error: Failed to figure out Pike module and include directories" >&2;}
! 16169: { (exit 1); exit 1; }; }
1.1 misho 16170: fi
16171: else
1.1.1.3 ! misho 16172: { { echo "$as_me:$LINENO: error: Roxen/PHP requires Pike 0.7.79 or newer" >&5
! 16173: echo "$as_me: error: Roxen/PHP requires Pike 0.7.79 or newer" >&2;}
! 16174: { (exit 1); exit 1; }; }
1.1 misho 16175: fi
16176:
16177:
16178: if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
16179:
16180: if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
16181: ai_p=$PIKE_INCLUDE_DIR
16182: else
16183:
16184: ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
16185:
16186: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16187: ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
16188: fi
16189:
16190:
16191:
16192: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
16193:
16194: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
16195: if test -n "$unique" && test "`eval $cmd`" = "" ; then
16196: eval "INCLUDEPATH$unique=set"
16197:
16198: if test ""; then
16199: INCLUDES="-I$ai_p $INCLUDES"
16200: else
16201: INCLUDES="$INCLUDES -I$ai_p"
16202: fi
16203:
16204: fi
16205:
16206: fi
16207:
16208:
1.1.1.3 ! misho 16209: cat >>confdefs.h <<\_ACEOF
! 16210: #define HAVE_ROXEN 1
! 16211: _ACEOF
1.1 misho 16212:
16213:
1.1.1.2 misho 16214: if test "shared" = "program"; then
16215: PHP_BINARIES="$PHP_BINARIES roxen"
16216: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 16217: { { echo "$as_me:$LINENO: error:
! 16218: +--------------------------------------------------------------------+
! 16219: | *** ATTENTION *** |
! 16220: | |
! 16221: | You've configured multiple SAPIs to be build. You can build only |
! 16222: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 16223: +--------------------------------------------------------------------+
! 16224: " >&5
! 16225: echo "$as_me: error:
1.1 misho 16226: +--------------------------------------------------------------------+
16227: | *** ATTENTION *** |
16228: | |
16229: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 16230: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 16231: +--------------------------------------------------------------------+
1.1.1.3 ! misho 16232: " >&2;}
! 16233: { (exit 1); exit 1; }; }
1.1.1.2 misho 16234: else
16235: PHP_SAPI=roxen
1.1 misho 16236: fi
16237:
16238:
16239:
1.1.1.2 misho 16240: BUILD_DIR="$BUILD_DIR sapi/roxen"
16241:
16242:
16243:
16244: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS roxen"
16245:
16246:
16247: case "shared" in
16248: static)
16249:
1.1 misho 16250: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16251: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16252: php_c_post=
16253: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16254: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16255: php_cxx_post=
16256: php_lo=lo
16257:
16258: case $with_pic in
16259: yes) pic_setting='-prefer-pic';;
16260: no) pic_setting='-prefer-non-pic';;
16261: esac
16262:
16263: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16264: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16265: shared_c_post=
16266: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16267: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16268: shared_cxx_post=
16269: shared_lo=lo
16270:
16271: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16272: php_sapi_module=static
1.1 misho 16273: ;;
1.1.1.2 misho 16274: shared)
1.1 misho 16275:
16276: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16277: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16278: php_c_post=
16279: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16280: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16281: php_cxx_post=
16282: php_lo=lo
16283:
16284: case $with_pic in
16285: yes) pic_setting='-prefer-pic';;
16286: no) pic_setting='-prefer-non-pic';;
16287: esac
16288:
16289: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16290: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16291: shared_c_post=
16292: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16293: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16294: shared_cxx_post=
16295: shared_lo=lo
16296:
16297: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16298: php_sapi_module=shared
1.1 misho 16299:
16300: php_c_pre=$shared_c_pre
16301: php_c_meta=$shared_c_meta
16302: php_c_post=$shared_c_post
16303: php_cxx_pre=$shared_cxx_pre
16304: php_cxx_meta=$shared_cxx_meta
16305: php_cxx_post=$shared_cxx_post
16306: php_lo=$shared_lo
16307: ;;
1.1.1.2 misho 16308: bundle)
1.1 misho 16309:
16310: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16311: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16312: php_c_post=
16313: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16314: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16315: php_cxx_post=
16316: php_lo=lo
16317:
16318: case $with_pic in
16319: yes) pic_setting='-prefer-pic';;
16320: no) pic_setting='-prefer-non-pic';;
16321: esac
16322:
16323: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16324: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16325: shared_c_post=
16326: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16327: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16328: shared_cxx_post=
16329: shared_lo=lo
16330:
16331: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 16332: php_sapi_module=static
1.1 misho 16333: ;;
1.1.1.2 misho 16334: esac
16335: install_sapi="install-sapi"
1.1 misho 16336:
16337:
16338: case sapi/roxen in
16339: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16340: /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16341: *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16342: esac
16343:
16344:
16345:
16346: b_c_pre=$php_c_pre
16347: b_cxx_pre=$php_cxx_pre
16348: b_c_meta=$php_c_meta
16349: b_cxx_meta=$php_cxx_meta
16350: b_c_post=$php_c_post
16351: b_cxx_post=$php_cxx_post
16352: b_lo=$php_lo
16353:
16354:
16355: old_IFS=$IFS
16356: for ac_src in roxen.c; do
16357:
16358: IFS=.
16359: set $ac_src
16360: ac_obj=$1
16361: IFS=$old_IFS
16362:
16363: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16364:
16365: case $ac_src in
16366: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16367: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16368: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16369: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
16370: esac
16371:
16372: cat >>Makefile.objects<<EOF
16373: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16374: $ac_comp
16375: EOF
16376: done
16377:
16378:
16379:
1.1.1.2 misho 16380:
1.1 misho 16381: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PIKE_MODULE_DIR/PHP5.so"
16382: RESULT="yes
16383: Pike binary used: $PIKE
16384: Pike include dir: $PIKE_INCLUDE_DIR
16385: Pike module directory: $PIKE_MODULE_DIR"
16386: PIKE_INCLUDE_DIR=" -I$PIKE_INCLUDE_DIR "
16387:
16388: if test "$PHP_ROXEN_ZTS" != "no"; then
16389:
16390: enable_maintainer_zts=yes
16391: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 16392: { { echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
! 16393: echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
! 16394: { (exit 1); exit 1; }; }
1.1 misho 16395: fi
16396:
16397:
1.1.1.3 ! misho 16398: cat >>confdefs.h <<\_ACEOF
! 16399: #define ROXEN_USE_ZTS 1
! 16400: _ACEOF
1.1 misho 16401:
16402: fi
16403: fi
1.1.1.3 ! misho 16404: { echo "$as_me:$LINENO: result: $RESULT" >&5
! 16405: echo "${ECHO_T}$RESULT" >&6; }
1.1 misho 16406:
16407:
16408:
16409:
16410: php_with_thttpd=no
16411:
16412:
16413:
16414: # Check whether --with-thttpd was given.
1.1.1.3 ! misho 16415: if test "${with_thttpd+set}" = set; then
1.1 misho 16416: withval=$with_thttpd; PHP_THTTPD=$withval
16417: else
16418:
16419: PHP_THTTPD=no
16420:
16421:
16422: fi
16423:
16424:
16425: ext_output=$PHP_THTTPD
16426:
16427:
16428:
16429:
16430:
1.1.1.3 ! misho 16431: { echo "$as_me:$LINENO: checking for thttpd" >&5
! 16432: echo $ECHO_N "checking for thttpd... $ECHO_C" >&6; }
1.1 misho 16433:
16434: if test "$PHP_THTTPD" != "no"; then
16435: if test ! -d $PHP_THTTPD; then
1.1.1.3 ! misho 16436: { echo "$as_me:$LINENO: result: thttpd directory does not exist ($PHP_THTTPD)" >&5
! 16437: echo "${ECHO_T}thttpd directory does not exist ($PHP_THTTPD)" >&6; }
1.1 misho 16438: fi
16439:
16440:
16441: if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then
16442: THTTPD=$PHP_THTTPD
16443: else
16444:
16445: ep_dir="`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
16446:
16447: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16448: THTTPD="$ep_realdir/`basename \"$PHP_THTTPD\"`"
16449: fi
16450:
16451:
16452: if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then
16453: patch="test -f $THTTPD/php_patched || \
16454: (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)"
16455:
16456: elif grep Premium $PHP_THTTPD/version.h >/dev/null; then
16457: patch=
16458: else
1.1.1.3 ! misho 16459: { { echo "$as_me:$LINENO: error: This version only supports thttpd-2.21b and Premium thttpd" >&5
! 16460: echo "$as_me: error: This version only supports thttpd-2.21b and Premium thttpd" >&2;}
! 16461: { (exit 1); exit 1; }; }
1.1 misho 16462: fi
16463:
16464: if test -n "$GCC"; then
16465:
16466: gcc_arg_name=ac_cv_gcc_arg_rdynamic
1.1.1.3 ! misho 16467: { echo "$as_me:$LINENO: checking whether $CC supports -rdynamic" >&5
! 16468: echo $ECHO_N "checking whether $CC supports -rdynamic... $ECHO_C" >&6; }
! 16469: if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then
! 16470: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 16471: else
16472:
16473: echo 'void somefunc() { };' > conftest.c
16474: cmd='$CC -rdynamic -c conftest.c'
16475: if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
16476: ac_result=no
16477: else
16478: ac_result=yes
16479: fi
16480: eval $gcc_arg_name=$ac_result
16481: rm -f conftest.*
16482:
16483: fi
1.1.1.3 ! misho 16484: { echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_rdynamic" >&5
! 16485: echo "${ECHO_T}$ac_cv_gcc_arg_rdynamic" >&6; }
1.1 misho 16486: if eval test "\$$gcc_arg_name" = "yes"; then
16487: gcc_rdynamic=yes
16488: else
16489: :
16490:
16491: fi
16492:
16493: if test "$gcc_rdynamic" = "yes"; then
16494: PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
16495: fi
16496: fi
16497:
16498: INSTALL_IT="\
16499: echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \
16500: echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \
16501: echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \
16502: rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \
16503: \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \
16504: \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\
16505: $patch"
16506: PHP_THTTPD="yes, using $THTTPD"
16507:
16508: if test "$THTTPD" != "/usr/include"; then
16509:
16510: if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then
16511: ai_p=$THTTPD
16512: else
16513:
16514: ep_dir="`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
16515:
16516: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16517: ai_p="$ep_realdir/`basename \"$THTTPD\"`"
16518: fi
16519:
16520:
16521:
16522: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
16523:
16524: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
16525: if test -n "$unique" && test "`eval $cmd`" = "" ; then
16526: eval "INCLUDEPATH$unique=set"
16527:
16528: if test ""; then
16529: INCLUDES="-I$ai_p $INCLUDES"
16530: else
16531: INCLUDES="$INCLUDES -I$ai_p"
16532: fi
16533:
16534: fi
16535:
16536: fi
16537:
16538:
1.1.1.2 misho 16539: if test "static" = "program"; then
16540: PHP_BINARIES="$PHP_BINARIES thttpd"
16541: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 16542: { { echo "$as_me:$LINENO: error:
! 16543: +--------------------------------------------------------------------+
! 16544: | *** ATTENTION *** |
! 16545: | |
! 16546: | You've configured multiple SAPIs to be build. You can build only |
! 16547: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 16548: +--------------------------------------------------------------------+
! 16549: " >&5
! 16550: echo "$as_me: error:
1.1 misho 16551: +--------------------------------------------------------------------+
16552: | *** ATTENTION *** |
16553: | |
16554: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 16555: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 16556: +--------------------------------------------------------------------+
1.1.1.3 ! misho 16557: " >&2;}
! 16558: { (exit 1); exit 1; }; }
1.1.1.2 misho 16559: else
16560: PHP_SAPI=thttpd
1.1 misho 16561: fi
16562:
16563:
16564:
1.1.1.2 misho 16565: BUILD_DIR="$BUILD_DIR sapi/thttpd"
16566:
16567:
16568:
16569: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS thttpd"
16570:
16571:
16572: case "static" in
16573: static)
16574:
1.1 misho 16575: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16576: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16577: php_c_post=
16578: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16579: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16580: php_cxx_post=
16581: php_lo=lo
16582:
16583: case $with_pic in
16584: yes) pic_setting='-prefer-pic';;
16585: no) pic_setting='-prefer-non-pic';;
16586: esac
16587:
16588: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16589: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16590: shared_c_post=
16591: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16592: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16593: shared_cxx_post=
16594: shared_lo=lo
16595:
16596: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16597: php_sapi_module=static
1.1 misho 16598: ;;
1.1.1.2 misho 16599: shared)
1.1 misho 16600:
16601: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16602: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16603: php_c_post=
16604: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16605: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16606: php_cxx_post=
16607: php_lo=lo
16608:
16609: case $with_pic in
16610: yes) pic_setting='-prefer-pic';;
16611: no) pic_setting='-prefer-non-pic';;
16612: esac
16613:
16614: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16615: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16616: shared_c_post=
16617: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16618: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16619: shared_cxx_post=
16620: shared_lo=lo
16621:
16622: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16623: php_sapi_module=shared
1.1 misho 16624:
16625: php_c_pre=$shared_c_pre
16626: php_c_meta=$shared_c_meta
16627: php_c_post=$shared_c_post
16628: php_cxx_pre=$shared_cxx_pre
16629: php_cxx_meta=$shared_cxx_meta
16630: php_cxx_post=$shared_cxx_post
16631: php_lo=$shared_lo
16632: ;;
1.1.1.2 misho 16633: bundle)
1.1 misho 16634:
16635: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16636: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16637: php_c_post=
16638: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16639: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16640: php_cxx_post=
16641: php_lo=lo
16642:
16643: case $with_pic in
16644: yes) pic_setting='-prefer-pic';;
16645: no) pic_setting='-prefer-non-pic';;
16646: esac
16647:
16648: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16649: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16650: shared_c_post=
16651: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16652: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16653: shared_cxx_post=
16654: shared_lo=lo
16655:
16656: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 16657: php_sapi_module=static
1.1 misho 16658: ;;
1.1.1.2 misho 16659: esac
16660: install_sapi="install-sapi"
1.1 misho 16661:
16662:
16663:
16664: fi
1.1.1.3 ! misho 16665: { echo "$as_me:$LINENO: result: $PHP_THTTPD" >&5
! 16666: echo "${ECHO_T}$PHP_THTTPD" >&6; }
1.1 misho 16667:
16668:
16669:
16670: php_with_tux=no
16671:
16672:
16673:
16674: # Check whether --with-tux was given.
1.1.1.3 ! misho 16675: if test "${with_tux+set}" = set; then
1.1 misho 16676: withval=$with_tux; PHP_TUX=$withval
16677: else
16678:
16679: PHP_TUX=no
16680:
16681:
16682: fi
16683:
16684:
16685: ext_output=$PHP_TUX
16686:
16687:
16688:
16689:
16690:
1.1.1.3 ! misho 16691: { echo "$as_me:$LINENO: checking for TUX" >&5
! 16692: echo $ECHO_N "checking for TUX... $ECHO_C" >&6; }
1.1 misho 16693: if test "$PHP_TUX" != "no"; then
16694: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so"
1.1.1.3 ! misho 16695:
! 16696: for ac_header in tuxmodule.h
! 16697: do
! 16698: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16699: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 16700: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 16701: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 16702: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 16703: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16704: fi
! 16705: ac_res=`eval echo '${'$as_ac_Header'}'`
! 16706: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16707: echo "${ECHO_T}$ac_res" >&6; }
! 16708: else
! 16709: # Is the header compilable?
! 16710: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 16711: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 16712: cat >conftest.$ac_ext <<_ACEOF
! 16713: /* confdefs.h. */
! 16714: _ACEOF
! 16715: cat confdefs.h >>conftest.$ac_ext
! 16716: cat >>conftest.$ac_ext <<_ACEOF
! 16717: /* end confdefs.h. */
! 16718: $ac_includes_default
! 16719: #include <$ac_header>
! 16720: _ACEOF
! 16721: rm -f conftest.$ac_objext
! 16722: if { (ac_try="$ac_compile"
! 16723: case "(($ac_try" in
! 16724: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16725: *) ac_try_echo=$ac_try;;
! 16726: esac
! 16727: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16728: (eval "$ac_compile") 2>conftest.er1
! 16729: ac_status=$?
! 16730: grep -v '^ *+' conftest.er1 >conftest.err
! 16731: rm -f conftest.er1
! 16732: cat conftest.err >&5
! 16733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16734: (exit $ac_status); } && {
! 16735: test -z "$ac_c_werror_flag" ||
! 16736: test ! -s conftest.err
! 16737: } && test -s conftest.$ac_objext; then
! 16738: ac_header_compiler=yes
! 16739: else
! 16740: echo "$as_me: failed program was:" >&5
! 16741: sed 's/^/| /' conftest.$ac_ext >&5
! 16742:
! 16743: ac_header_compiler=no
! 16744: fi
! 16745:
! 16746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 16747: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 16748: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 16749:
! 16750: # Is the header present?
! 16751: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 16752: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 16753: cat >conftest.$ac_ext <<_ACEOF
! 16754: /* confdefs.h. */
! 16755: _ACEOF
! 16756: cat confdefs.h >>conftest.$ac_ext
! 16757: cat >>conftest.$ac_ext <<_ACEOF
! 16758: /* end confdefs.h. */
! 16759: #include <$ac_header>
! 16760: _ACEOF
! 16761: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 16762: case "(($ac_try" in
! 16763: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16764: *) ac_try_echo=$ac_try;;
! 16765: esac
! 16766: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16767: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 16768: ac_status=$?
! 16769: grep -v '^ *+' conftest.er1 >conftest.err
! 16770: rm -f conftest.er1
! 16771: cat conftest.err >&5
! 16772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16773: (exit $ac_status); } >/dev/null && {
! 16774: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 16775: test ! -s conftest.err
! 16776: }; then
! 16777: ac_header_preproc=yes
! 16778: else
! 16779: echo "$as_me: failed program was:" >&5
! 16780: sed 's/^/| /' conftest.$ac_ext >&5
! 16781:
! 16782: ac_header_preproc=no
! 16783: fi
! 16784:
! 16785: rm -f conftest.err conftest.$ac_ext
! 16786: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 16787: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 16788:
! 16789: # So? What about this header?
! 16790: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 16791: yes:no: )
! 16792: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 16793: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 16794: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 16795: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 16796: ac_header_preproc=yes
! 16797: ;;
! 16798: no:yes:* )
! 16799: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 16800: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 16801: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 16802: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 16803: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 16804: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 16805: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 16806: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 16807: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 16808: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 16809: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 16810: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 16811:
! 16812: ;;
! 16813: esac
! 16814: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 16815: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 16816: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 16817: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16818: else
! 16819: eval "$as_ac_Header=\$ac_header_preproc"
! 16820: fi
! 16821: ac_res=`eval echo '${'$as_ac_Header'}'`
! 16822: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16823: echo "${ECHO_T}$ac_res" >&6; }
! 16824:
! 16825: fi
! 16826: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 16827: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 16828: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 16829: _ACEOF
16830: :
16831: else
1.1.1.3 ! misho 16832: { { echo "$as_me:$LINENO: error: Cannot find tuxmodule.h" >&5
! 16833: echo "$as_me: error: Cannot find tuxmodule.h" >&2;}
! 16834: { (exit 1); exit 1; }; }
1.1 misho 16835: fi
16836:
16837: done
16838:
16839:
1.1.1.2 misho 16840: if test "shared" = "program"; then
16841: PHP_BINARIES="$PHP_BINARIES tux"
16842: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 16843: { { echo "$as_me:$LINENO: error:
! 16844: +--------------------------------------------------------------------+
! 16845: | *** ATTENTION *** |
! 16846: | |
! 16847: | You've configured multiple SAPIs to be build. You can build only |
! 16848: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 16849: +--------------------------------------------------------------------+
! 16850: " >&5
! 16851: echo "$as_me: error:
1.1 misho 16852: +--------------------------------------------------------------------+
16853: | *** ATTENTION *** |
16854: | |
16855: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 16856: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 16857: +--------------------------------------------------------------------+
1.1.1.3 ! misho 16858: " >&2;}
! 16859: { (exit 1); exit 1; }; }
1.1.1.2 misho 16860: else
16861: PHP_SAPI=tux
1.1 misho 16862: fi
16863:
16864:
16865:
1.1.1.2 misho 16866: BUILD_DIR="$BUILD_DIR sapi/tux"
16867:
16868:
16869:
16870: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS tux"
16871:
16872:
16873: case "shared" in
16874: static)
16875:
1.1 misho 16876: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16877: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16878: php_c_post=
16879: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16880: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16881: php_cxx_post=
16882: php_lo=lo
16883:
16884: case $with_pic in
16885: yes) pic_setting='-prefer-pic';;
16886: no) pic_setting='-prefer-non-pic';;
16887: esac
16888:
16889: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16890: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16891: shared_c_post=
16892: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16893: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16894: shared_cxx_post=
16895: shared_lo=lo
16896:
16897: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16898: php_sapi_module=static
1.1 misho 16899: ;;
1.1.1.2 misho 16900: shared)
1.1 misho 16901:
16902: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16903: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16904: php_c_post=
16905: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16906: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16907: php_cxx_post=
16908: php_lo=lo
16909:
16910: case $with_pic in
16911: yes) pic_setting='-prefer-pic';;
16912: no) pic_setting='-prefer-non-pic';;
16913: esac
16914:
16915: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16916: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16917: shared_c_post=
16918: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16919: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16920: shared_cxx_post=
16921: shared_lo=lo
16922:
16923: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 16924: php_sapi_module=shared
1.1 misho 16925:
16926: php_c_pre=$shared_c_pre
16927: php_c_meta=$shared_c_meta
16928: php_c_post=$shared_c_post
16929: php_cxx_pre=$shared_cxx_pre
16930: php_cxx_meta=$shared_cxx_meta
16931: php_cxx_post=$shared_cxx_post
16932: php_lo=$shared_lo
16933: ;;
1.1.1.2 misho 16934: bundle)
1.1 misho 16935:
16936: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16937: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16938: php_c_post=
16939: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16940: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16941: php_cxx_post=
16942: php_lo=lo
16943:
16944: case $with_pic in
16945: yes) pic_setting='-prefer-pic';;
16946: no) pic_setting='-prefer-non-pic';;
16947: esac
16948:
16949: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16950: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16951: shared_c_post=
16952: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16953: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16954: shared_cxx_post=
16955: shared_lo=lo
16956:
16957: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 16958: php_sapi_module=static
1.1 misho 16959: ;;
1.1.1.2 misho 16960: esac
16961: install_sapi="install-sapi"
1.1 misho 16962:
16963:
16964: case sapi/tux in
16965: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16966: /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16967: *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16968: esac
16969:
16970:
16971:
16972: b_c_pre=$php_c_pre
16973: b_cxx_pre=$php_cxx_pre
16974: b_c_meta=$php_c_meta
16975: b_cxx_meta=$php_cxx_meta
16976: b_c_post=$php_c_post
16977: b_cxx_post=$php_cxx_post
16978: b_lo=$php_lo
16979:
16980:
16981: old_IFS=$IFS
16982: for ac_src in php_tux.c; do
16983:
16984: IFS=.
16985: set $ac_src
16986: ac_obj=$1
16987: IFS=$old_IFS
16988:
16989: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16990:
16991: case $ac_src in
16992: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16993: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16994: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16995: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
16996: esac
16997:
16998: cat >>Makefile.objects<<EOF
16999: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
17000: $ac_comp
17001: EOF
17002: done
17003:
17004:
17005:
1.1.1.2 misho 17006:
1.1.1.3 ! misho 17007: { echo "$as_me:$LINENO: result: $PHP_TUX" >&5
! 17008: echo "${ECHO_T}$PHP_TUX" >&6; }
1.1 misho 17009: else
1.1.1.3 ! misho 17010: { echo "$as_me:$LINENO: result: no" >&5
! 17011: echo "${ECHO_T}no" >&6; }
1.1 misho 17012: fi
17013:
17014:
17015:
17016: php_with_webjames=no
17017:
17018:
17019:
17020: # Check whether --with-webjames was given.
1.1.1.3 ! misho 17021: if test "${with_webjames+set}" = set; then
1.1 misho 17022: withval=$with_webjames; PHP_WEBJAMES=$withval
17023: else
17024:
17025: PHP_WEBJAMES=no
17026:
17027:
17028: fi
17029:
17030:
17031: ext_output=$PHP_WEBJAMES
17032:
17033:
17034:
17035:
17036:
1.1.1.3 ! misho 17037: { echo "$as_me:$LINENO: checking for webjames" >&5
! 17038: echo $ECHO_N "checking for webjames... $ECHO_C" >&6; }
1.1 misho 17039:
17040: if test "$PHP_WEBJAMES" != "no"; then
17041:
17042: if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
17043: PHP_WEBJAMES=$PHP_WEBJAMES
17044: else
17045:
17046: ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
17047:
17048: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17049: PHP_WEBJAMES="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
17050: fi
17051:
17052: INSTALL_IT="\
17053: echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \
17054: echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \
17055: echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;"
17056:
17057: if test "$PHP_WEBJAMES" != "/usr/include"; then
17058:
17059: if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
17060: ai_p=$PHP_WEBJAMES
17061: else
17062:
17063: ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
17064:
17065: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17066: ai_p="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
17067: fi
17068:
17069:
17070:
17071: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17072:
17073: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17074: if test -n "$unique" && test "`eval $cmd`" = "" ; then
17075: eval "INCLUDEPATH$unique=set"
17076:
17077: if test ""; then
17078: INCLUDES="-I$ai_p $INCLUDES"
17079: else
17080: INCLUDES="$INCLUDES -I$ai_p"
17081: fi
17082:
17083: fi
17084:
17085: fi
17086:
17087:
1.1.1.2 misho 17088: if test "static" = "program"; then
17089: PHP_BINARIES="$PHP_BINARIES webjames"
17090: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 17091: { { echo "$as_me:$LINENO: error:
! 17092: +--------------------------------------------------------------------+
! 17093: | *** ATTENTION *** |
! 17094: | |
! 17095: | You've configured multiple SAPIs to be build. You can build only |
! 17096: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 17097: +--------------------------------------------------------------------+
! 17098: " >&5
! 17099: echo "$as_me: error:
1.1 misho 17100: +--------------------------------------------------------------------+
17101: | *** ATTENTION *** |
17102: | |
17103: | You've configured multiple SAPIs to be build. You can build only |
1.1.1.2 misho 17104: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
1.1 misho 17105: +--------------------------------------------------------------------+
1.1.1.3 ! misho 17106: " >&2;}
! 17107: { (exit 1); exit 1; }; }
1.1.1.2 misho 17108: else
17109: PHP_SAPI=webjames
1.1 misho 17110: fi
17111:
17112:
17113:
1.1.1.2 misho 17114: BUILD_DIR="$BUILD_DIR sapi/webjames"
17115:
17116:
17117:
17118: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS webjames"
17119:
17120:
17121: case "static" in
17122: static)
17123:
1.1 misho 17124: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17125: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17126: php_c_post=
17127: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17128: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17129: php_cxx_post=
17130: php_lo=lo
17131:
17132: case $with_pic in
17133: yes) pic_setting='-prefer-pic';;
17134: no) pic_setting='-prefer-non-pic';;
17135: esac
17136:
17137: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17138: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17139: shared_c_post=
17140: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17141: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17142: shared_cxx_post=
17143: shared_lo=lo
17144:
17145: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 17146: php_sapi_module=static
1.1 misho 17147: ;;
1.1.1.2 misho 17148: shared)
1.1 misho 17149:
17150: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17151: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17152: php_c_post=
17153: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17154: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17155: php_cxx_post=
17156: php_lo=lo
17157:
17158: case $with_pic in
17159: yes) pic_setting='-prefer-pic';;
17160: no) pic_setting='-prefer-non-pic';;
17161: esac
17162:
17163: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17164: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17165: shared_c_post=
17166: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17167: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17168: shared_cxx_post=
17169: shared_lo=lo
17170:
17171: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 misho 17172: php_sapi_module=shared
1.1 misho 17173:
17174: php_c_pre=$shared_c_pre
17175: php_c_meta=$shared_c_meta
17176: php_c_post=$shared_c_post
17177: php_cxx_pre=$shared_cxx_pre
17178: php_cxx_meta=$shared_cxx_meta
17179: php_cxx_post=$shared_cxx_post
17180: php_lo=$shared_lo
17181: ;;
1.1.1.2 misho 17182: bundle)
1.1 misho 17183:
17184: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17185: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17186: php_c_post=
17187: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17188: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17189: php_cxx_post=
17190: php_lo=lo
17191:
17192: case $with_pic in
17193: yes) pic_setting='-prefer-pic';;
17194: no) pic_setting='-prefer-non-pic';;
17195: esac
17196:
17197: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17198: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17199: shared_c_post=
17200: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17201: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17202: shared_cxx_post=
17203: shared_lo=lo
17204:
17205: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 misho 17206: php_sapi_module=static
1.1 misho 17207: ;;
1.1.1.2 misho 17208: esac
17209: install_sapi="install-sapi"
1.1 misho 17210:
17211:
17212: case sapi/webjames in
17213: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
17214: /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
17215: *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
17216: esac
17217:
17218:
17219:
17220: b_c_pre=$php_c_pre
17221: b_cxx_pre=$php_cxx_pre
17222: b_c_meta=$php_c_meta
17223: b_cxx_meta=$php_cxx_meta
17224: b_c_post=$php_c_post
17225: b_cxx_post=$php_cxx_post
17226: b_lo=$php_lo
17227:
17228:
17229: old_IFS=$IFS
17230: for ac_src in webjames.c; do
17231:
17232: IFS=.
17233: set $ac_src
17234: ac_obj=$1
17235: IFS=$old_IFS
17236:
17237: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
17238:
17239: case $ac_src in
17240: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17241: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17242: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17243: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
17244: esac
17245:
17246: cat >>Makefile.objects<<EOF
17247: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
17248: $ac_comp
17249: EOF
17250: done
17251:
17252:
17253:
1.1.1.2 misho 17254:
1.1.1.3 ! misho 17255: { echo "$as_me:$LINENO: result: yes, using $PHP_WEBJAMES" >&5
! 17256: echo "${ECHO_T}yes, using $PHP_WEBJAMES" >&6; }
1.1 misho 17257: else
1.1.1.3 ! misho 17258: { echo "$as_me:$LINENO: result: no" >&5
! 17259: echo "${ECHO_T}no" >&6; }
1.1 misho 17260: fi
17261:
17262:
17263:
17264: php_enable_cgi=yes
17265:
17266:
17267: # Check whether --enable-cgi was given.
1.1.1.3 ! misho 17268: if test "${enable_cgi+set}" = set; then
1.1 misho 17269: enableval=$enable_cgi; PHP_CGI=$enableval
17270: else
17271:
17272: PHP_CGI=yes
17273:
17274:
17275: fi
17276:
17277:
17278: ext_output=$PHP_CGI
17279:
17280:
17281:
17282:
17283:
1.1.1.3 ! misho 17284: { echo "$as_me:$LINENO: checking for CGI build" >&5
! 17285: echo $ECHO_N "checking for CGI build... $ECHO_C" >&6; }
1.1.1.2 misho 17286: if test "$PHP_CGI" != "no"; then
1.1.1.3 ! misho 17287: { echo "$as_me:$LINENO: result: yes" >&5
! 17288: echo "${ECHO_T}yes" >&6; }
! 17289: { echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
! 17290: echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6; }
! 17291: cat >conftest.$ac_ext <<_ACEOF
! 17292: /* confdefs.h. */
! 17293: _ACEOF
! 17294: cat confdefs.h >>conftest.$ac_ext
! 17295: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 17296: /* end confdefs.h. */
17297: #include <sys/socket.h>
17298:
17299: _ACEOF
17300: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 17301: $EGREP "socklen_t" >/dev/null 2>&1; then
! 17302: { echo "$as_me:$LINENO: result: yes" >&5
! 17303: echo "${ECHO_T}yes" >&6; }
1.1 misho 17304:
1.1.1.3 ! misho 17305: cat >>confdefs.h <<\_ACEOF
! 17306: #define HAVE_SOCKLEN_T 1
! 17307: _ACEOF
1.1 misho 17308:
17309: else
1.1.1.3 ! misho 17310: { echo "$as_me:$LINENO: result: no" >&5
! 17311: echo "${ECHO_T}no" >&6; }
1.1 misho 17312: fi
1.1.1.3 ! misho 17313: rm -f -r conftest*
1.1 misho 17314:
17315:
1.1.1.3 ! misho 17316: { echo "$as_me:$LINENO: checking for sun_len in sys/un.h" >&5
! 17317: echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6; }
! 17318: cat >conftest.$ac_ext <<_ACEOF
! 17319: /* confdefs.h. */
! 17320: _ACEOF
! 17321: cat confdefs.h >>conftest.$ac_ext
! 17322: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 17323: /* end confdefs.h. */
17324: #include <sys/un.h>
17325:
17326: _ACEOF
17327: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 17328: $EGREP "sun_len" >/dev/null 2>&1; then
! 17329: { echo "$as_me:$LINENO: result: yes" >&5
! 17330: echo "${ECHO_T}yes" >&6; }
1.1 misho 17331:
1.1.1.3 ! misho 17332: cat >>confdefs.h <<\_ACEOF
! 17333: #define HAVE_SOCKADDR_UN_SUN_LEN 1
! 17334: _ACEOF
1.1 misho 17335:
17336: else
1.1.1.3 ! misho 17337: { echo "$as_me:$LINENO: result: no" >&5
! 17338: echo "${ECHO_T}no" >&6; }
1.1 misho 17339: fi
1.1.1.3 ! misho 17340: rm -f -r conftest*
1.1 misho 17341:
17342:
1.1.1.3 ! misho 17343: { echo "$as_me:$LINENO: checking whether cross-process locking is required by accept()" >&5
! 17344: echo $ECHO_N "checking whether cross-process locking is required by accept()... $ECHO_C" >&6; }
1.1 misho 17345: case "`uname -sr`" in
17346: IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
1.1.1.3 ! misho 17347: { echo "$as_me:$LINENO: result: yes" >&5
! 17348: echo "${ECHO_T}yes" >&6; }
1.1 misho 17349:
1.1.1.3 ! misho 17350: cat >>confdefs.h <<\_ACEOF
! 17351: #define USE_LOCKING 1
! 17352: _ACEOF
1.1 misho 17353:
17354: ;;
17355: *)
1.1.1.3 ! misho 17356: { echo "$as_me:$LINENO: result: no" >&5
! 17357: echo "${ECHO_T}no" >&6; }
1.1 misho 17358: ;;
17359: esac
17360:
17361:
17362: src=$abs_srcdir/sapi/cgi/Makefile.frag
17363: ac_srcdir=$ext_srcdir
17364: ac_builddir=$ext_builddir
17365: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
17366:
17367:
17368: case $host_alias in
17369: *cygwin* )
17370: SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
17371: ;;
17372: * )
17373: SAPI_CGI_PATH=sapi/cgi/php-cgi
17374: ;;
17375: esac
17376:
17377:
1.1.1.2 misho 17378: if test "program" = "program"; then
17379: PHP_BINARIES="$PHP_BINARIES cgi"
17380: elif test "$PHP_SAPI" != "none"; then
1.1.1.3 ! misho 17381: { { echo "$as_me:$LINENO: error:
! 17382: +--------------------------------------------------------------------+
! 17383: | *** ATTENTION *** |
! 17384: | |
! 17385: | You've configured multiple SAPIs to be build. You can build only |
! 17386: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
! 17387: +--------------------------------------------------------------------+
! 17388: " >&5
! 17389: echo "$as_me: error:
1.1.1.2 misho 17390: +--------------------------------------------------------------------+
17391: | *** ATTENTION *** |
17392: | |
17393: | You've configured multiple SAPIs to be build. You can build only |
17394: | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
17395: +--------------------------------------------------------------------+
1.1.1.3 ! misho 17396: " >&2;}
! 17397: { (exit 1); exit 1; }; }
1.1.1.2 misho 17398: else
17399: PHP_SAPI=cgi
17400: fi
1.1 misho 17401:
17402:
17403:
1.1.1.2 misho 17404: BUILD_DIR="$BUILD_DIR sapi/cgi"
1.1 misho 17405:
17406:
17407:
1.1.1.2 misho 17408: PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi"
1.1 misho 17409:
17410:
17411:
1.1.1.2 misho 17412: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17413: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17414: php_c_post=
17415: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17416: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17417: php_cxx_post=
17418: php_lo=lo
1.1 misho 17419:
1.1.1.2 misho 17420: case $with_pic in
17421: yes) pic_setting='-prefer-pic';;
17422: no) pic_setting='-prefer-non-pic';;
17423: esac
1.1 misho 17424:
1.1.1.2 misho 17425: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17426: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17427: shared_c_post=
17428: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17429: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17430: shared_cxx_post=
17431: shared_lo=lo
1.1 misho 17432:
1.1.1.2 misho 17433: install_binaries="install-binaries"
17434: install_binary_targets="$install_binary_targets install-cgi"
1.1 misho 17435:
1.1.1.2 misho 17436: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS"
1.1 misho 17437:
17438:
1.1.1.2 misho 17439: case sapi/cgi in
1.1 misho 17440: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 17441: /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
17442: *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 17443: esac
17444:
17445:
17446:
17447: b_c_pre=$php_c_pre
17448: b_cxx_pre=$php_cxx_pre
17449: b_c_meta=$php_c_meta
17450: b_cxx_meta=$php_cxx_meta
17451: b_c_post=$php_c_post
17452: b_cxx_post=$php_cxx_post
17453: b_lo=$php_lo
17454:
17455:
17456: old_IFS=$IFS
1.1.1.2 misho 17457: for ac_src in cgi_main.c fastcgi.c; do
1.1 misho 17458:
17459: IFS=.
17460: set $ac_src
17461: ac_obj=$1
17462: IFS=$old_IFS
17463:
17464: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
17465:
17466: case $ac_src in
17467: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17468: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17469: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17470: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
17471: esac
17472:
17473: cat >>Makefile.objects<<EOF
17474: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
17475: $ac_comp
17476: EOF
17477: done
17478:
17479:
17480:
1.1.1.2 misho 17481:
1.1 misho 17482: case $host_alias in
17483: *aix*)
1.1.1.2 misho 17484: if test "$php_sapi_module" = "shared"; then
17485: BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
17486: else
17487: BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
17488: fi
1.1 misho 17489: ;;
17490: *darwin*)
1.1.1.2 misho 17491: BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
1.1 misho 17492: ;;
17493: *)
1.1.1.2 misho 17494: BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
1.1 misho 17495: ;;
17496: esac
17497:
1.1.1.2 misho 17498:
17499: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH"
17500:
1.1 misho 17501:
17502: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI"
17503:
1.1.1.2 misho 17504: else
1.1.1.3 ! misho 17505: { echo "$as_me:$LINENO: result: yes" >&5
! 17506: echo "${ECHO_T}yes" >&6; }
1.1.1.2 misho 17507: fi
1.1 misho 17508:
17509:
17510:
1.1.1.3 ! misho 17511: { echo "$as_me:$LINENO: checking for chosen SAPI module" >&5
! 17512: echo $ECHO_N "checking for chosen SAPI module... $ECHO_C" >&6; }
! 17513: { echo "$as_me:$LINENO: result: $PHP_SAPI" >&5
! 17514: echo "${ECHO_T}$PHP_SAPI" >&6; }
1.1 misho 17515:
1.1.1.3 ! misho 17516: { echo "$as_me:$LINENO: checking for executable SAPI binaries" >&5
! 17517: echo $ECHO_N "checking for executable SAPI binaries... $ECHO_C" >&6; }
1.1.1.2 misho 17518: if test "$PHP_BINARIES"; then
1.1.1.3 ! misho 17519: { echo "$as_me:$LINENO: result: $PHP_BINARIES" >&5
! 17520: echo "${ECHO_T}$PHP_BINARIES" >&6; }
1.1.1.2 misho 17521: else
1.1.1.3 ! misho 17522: { echo "$as_me:$LINENO: result: none" >&5
! 17523: echo "${ECHO_T}none" >&6; }
1.1.1.2 misho 17524: fi
17525:
17526: if test -z "$PHP_INSTALLED_SAPIS"; then
1.1.1.3 ! misho 17527: { { echo "$as_me:$LINENO: error: Nothing to build." >&5
! 17528: echo "$as_me: error: Nothing to build." >&2;}
! 17529: { (exit 1); exit 1; }; }
1.1.1.2 misho 17530: fi
17531:
1.1 misho 17532: if test "$enable_maintainer_zts" = "yes"; then
17533:
17534: if test -n "$ac_cv_pthreads_lib"; then
17535: LIBS="$LIBS -l$ac_cv_pthreads_lib"
17536: fi
17537:
17538: if test -n "$ac_cv_pthreads_cflags"; then
17539: CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
17540: fi
17541:
1.1.1.3 ! misho 17542:
! 17543: if test -z "$host_alias" && test -n "$host"; then
! 17544: host_alias=$host
! 17545: fi
! 17546: if test -z "$host_alias"; then
! 17547: { { echo "$as_me:$LINENO: error: host_alias is not set. Make sure to run config.guess" >&5
! 17548: echo "$as_me: error: host_alias is not set. Make sure to run config.guess" >&2;}
! 17549: { (exit 1); exit 1; }; }
! 17550: fi
! 17551: case $host_alias in
! 17552: *solaris*)
! 17553: PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
! 17554: *freebsd*)
! 17555: PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";;
! 17556: *linux*)
! 17557: PTHREAD_FLAGS=-D_REENTRANT;;
! 17558: *aix*)
! 17559: PTHREAD_FLAGS=-D_THREAD_SAFE;;
! 17560: *irix*)
! 17561: PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;;
! 17562: *hpux*)
! 17563: PTHREAD_FLAGS=-D_REENTRANT;;
! 17564: *sco*)
! 17565: PTHREAD_FLAGS=-D_REENTRANT;;
! 17566: esac
! 17567:
! 17568: if test -n "$PTHREAD_FLAGS"; then
! 17569: CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS"
! 17570: fi
! 17571:
1.1 misho 17572: fi
17573:
17574:
17575:
1.1.1.3 ! misho 17576: { echo "$as_me:$LINENO: result: " >&5
! 17577: echo "${ECHO_T}" >&6; }
! 17578: { echo "$as_me:$LINENO: result: ${T_MD}Running system checks${T_ME}" >&5
! 17579: echo "${ECHO_T}${T_MD}Running system checks${T_ME}" >&6; }
1.1 misho 17580:
17581:
17582:
17583: PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
17584: # Extract the first word of "sendmail", so it can be a program name with args.
17585: set dummy sendmail; ac_word=$2
1.1.1.3 ! misho 17586: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 17587: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 17588: if test "${ac_cv_path_PROG_SENDMAIL+set}" = set; then
! 17589: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 17590: else
17591: case $PROG_SENDMAIL in
17592: [\\/]* | ?:[\\/]*)
17593: ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
17594: ;;
17595: *)
17596: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597: as_dummy="$PATH:$PHP_ALT_PATH"
17598: for as_dir in $as_dummy
17599: do
17600: IFS=$as_save_IFS
17601: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 17602: for ac_exec_ext in '' $ac_executable_extensions; do
! 17603: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 17604: ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 17605: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 17606: break 2
17607: fi
17608: done
1.1.1.3 ! misho 17609: done
1.1 misho 17610: IFS=$as_save_IFS
17611:
17612: ;;
17613: esac
17614: fi
17615: PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
17616: if test -n "$PROG_SENDMAIL"; then
1.1.1.3 ! misho 17617: { echo "$as_me:$LINENO: result: $PROG_SENDMAIL" >&5
! 17618: echo "${ECHO_T}$PROG_SENDMAIL" >&6; }
1.1 misho 17619: else
1.1.1.3 ! misho 17620: { echo "$as_me:$LINENO: result: no" >&5
! 17621: echo "${ECHO_T}no" >&6; }
1.1 misho 17622: fi
17623:
17624:
17625:
17626: PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL"
17627:
17628:
17629:
17630:
1.1.1.3 ! misho 17631: { echo "$as_me:$LINENO: checking whether system uses EBCDIC" >&5
! 17632: echo $ECHO_N "checking whether system uses EBCDIC... $ECHO_C" >&6; }
! 17633: if test "${ac_cv_ebcdic+set}" = set; then
! 17634: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 17635: else
17636:
1.1.1.3 ! misho 17637: if test "$cross_compiling" = yes; then
1.1 misho 17638:
17639: ac_cv_ebcdic=no
17640:
17641: else
1.1.1.3 ! misho 17642: cat >conftest.$ac_ext <<_ACEOF
! 17643: /* confdefs.h. */
! 17644: _ACEOF
! 17645: cat confdefs.h >>conftest.$ac_ext
! 17646: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 17647: /* end confdefs.h. */
17648:
17649: int main(void) {
17650: return (unsigned char)'A' != (unsigned char)0xC1;
17651: }
17652:
17653: _ACEOF
1.1.1.3 ! misho 17654: rm -f conftest$ac_exeext
! 17655: if { (ac_try="$ac_link"
! 17656: case "(($ac_try" in
! 17657: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17658: *) ac_try_echo=$ac_try;;
! 17659: esac
! 17660: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17661: (eval "$ac_link") 2>&5
! 17662: ac_status=$?
! 17663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17664: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 17665: { (case "(($ac_try" in
! 17666: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17667: *) ac_try_echo=$ac_try;;
! 17668: esac
! 17669: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17670: (eval "$ac_try") 2>&5
! 17671: ac_status=$?
! 17672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17673: (exit $ac_status); }; }; then
1.1 misho 17674:
17675: ac_cv_ebcdic=yes
17676:
17677: else
1.1.1.3 ! misho 17678: echo "$as_me: program exited with status $ac_status" >&5
! 17679: echo "$as_me: failed program was:" >&5
! 17680: sed 's/^/| /' conftest.$ac_ext >&5
! 17681:
! 17682: ( exit $ac_status )
1.1 misho 17683:
17684: ac_cv_ebcdic=no
17685:
17686: fi
1.1.1.3 ! misho 17687: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 17688: fi
17689:
1.1.1.3 ! misho 17690:
1.1 misho 17691: fi
1.1.1.3 ! misho 17692: { echo "$as_me:$LINENO: result: $ac_cv_ebcdic" >&5
! 17693: echo "${ECHO_T}$ac_cv_ebcdic" >&6; }
1.1 misho 17694: if test "$ac_cv_ebcdic" = "yes"; then
17695:
1.1.1.3 ! misho 17696: cat >>confdefs.h <<\_ACEOF
! 17697: #define CHARSET_EBCDIC 1
! 17698: _ACEOF
1.1 misho 17699:
17700: fi
17701:
17702:
1.1.1.3 ! misho 17703: { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
! 17704: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
! 17705: if test "${ac_cv_c_bigendian_php+set}" = set; then
! 17706: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 17707: else
17708:
17709: ac_cv_c_bigendian_php=unknown
1.1.1.3 ! misho 17710: if test "$cross_compiling" = yes; then
1.1 misho 17711: ac_cv_c_bigendian_php=unknown
17712: else
1.1.1.3 ! misho 17713: cat >conftest.$ac_ext <<_ACEOF
! 17714: /* confdefs.h. */
! 17715: _ACEOF
! 17716: cat confdefs.h >>conftest.$ac_ext
! 17717: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 17718: /* end confdefs.h. */
17719:
17720: int main(void)
17721: {
17722: short one = 1;
17723: char *cp = (char *)&one;
17724:
17725: if (*cp == 0) {
17726: return(0);
17727: } else {
17728: return(1);
17729: }
17730: }
17731:
17732: _ACEOF
1.1.1.3 ! misho 17733: rm -f conftest$ac_exeext
! 17734: if { (ac_try="$ac_link"
! 17735: case "(($ac_try" in
! 17736: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17737: *) ac_try_echo=$ac_try;;
! 17738: esac
! 17739: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17740: (eval "$ac_link") 2>&5
! 17741: ac_status=$?
! 17742: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17743: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 17744: { (case "(($ac_try" in
! 17745: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17746: *) ac_try_echo=$ac_try;;
! 17747: esac
! 17748: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17749: (eval "$ac_try") 2>&5
! 17750: ac_status=$?
! 17751: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17752: (exit $ac_status); }; }; then
1.1 misho 17753: ac_cv_c_bigendian_php=yes
17754: else
1.1.1.3 ! misho 17755: echo "$as_me: program exited with status $ac_status" >&5
! 17756: echo "$as_me: failed program was:" >&5
! 17757: sed 's/^/| /' conftest.$ac_ext >&5
! 17758:
! 17759: ( exit $ac_status )
! 17760: ac_cv_c_bigendian_php=no
1.1 misho 17761: fi
1.1.1.3 ! misho 17762: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 17763: fi
17764:
17765:
1.1.1.3 ! misho 17766:
1.1 misho 17767: fi
1.1.1.3 ! misho 17768: { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian_php" >&5
! 17769: echo "${ECHO_T}$ac_cv_c_bigendian_php" >&6; }
1.1 misho 17770: if test $ac_cv_c_bigendian_php = yes; then
17771:
1.1.1.3 ! misho 17772: cat >>confdefs.h <<\_ACEOF
! 17773: #define WORDS_BIGENDIAN
! 17774: _ACEOF
1.1 misho 17775:
17776: fi
17777:
17778:
17779:
1.1.1.3 ! misho 17780: { echo "$as_me:$LINENO: checking whether writing to stdout works" >&5
! 17781: echo $ECHO_N "checking whether writing to stdout works... $ECHO_C" >&6; }
! 17782: if test "${ac_cv_write_stdout+set}" = set; then
! 17783: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 17784: else
17785:
1.1.1.3 ! misho 17786: if test "$cross_compiling" = yes; then
1.1 misho 17787:
17788: ac_cv_write_stdout=no
17789:
17790: else
1.1.1.3 ! misho 17791: cat >conftest.$ac_ext <<_ACEOF
! 17792: /* confdefs.h. */
! 17793: _ACEOF
! 17794: cat confdefs.h >>conftest.$ac_ext
! 17795: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 17796: /* end confdefs.h. */
17797:
17798: #ifdef HAVE_UNISTD_H
17799: #include <unistd.h>
17800: #endif
17801:
17802: #define TEXT "This is the test message -- "
17803:
17804: main()
17805: {
17806: int n;
17807:
17808: n = write(1, TEXT, sizeof(TEXT)-1);
17809: return (!(n == sizeof(TEXT)-1));
17810: }
17811:
17812: _ACEOF
1.1.1.3 ! misho 17813: rm -f conftest$ac_exeext
! 17814: if { (ac_try="$ac_link"
! 17815: case "(($ac_try" in
! 17816: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17817: *) ac_try_echo=$ac_try;;
! 17818: esac
! 17819: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17820: (eval "$ac_link") 2>&5
! 17821: ac_status=$?
! 17822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17823: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 17824: { (case "(($ac_try" in
! 17825: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17826: *) ac_try_echo=$ac_try;;
! 17827: esac
! 17828: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17829: (eval "$ac_try") 2>&5
! 17830: ac_status=$?
! 17831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17832: (exit $ac_status); }; }; then
1.1 misho 17833:
17834: ac_cv_write_stdout=yes
17835:
17836: else
1.1.1.3 ! misho 17837: echo "$as_me: program exited with status $ac_status" >&5
! 17838: echo "$as_me: failed program was:" >&5
! 17839: sed 's/^/| /' conftest.$ac_ext >&5
! 17840:
! 17841: ( exit $ac_status )
1.1 misho 17842:
17843: ac_cv_write_stdout=no
17844:
17845: fi
1.1.1.3 ! misho 17846: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 17847: fi
17848:
17849:
1.1.1.3 ! misho 17850:
1.1 misho 17851: fi
1.1.1.3 ! misho 17852: { echo "$as_me:$LINENO: result: $ac_cv_write_stdout" >&5
! 17853: echo "${ECHO_T}$ac_cv_write_stdout" >&6; }
1.1 misho 17854: if test "$ac_cv_write_stdout" = "yes"; then
17855:
1.1.1.3 ! misho 17856: cat >>confdefs.h <<\_ACEOF
! 17857: #define PHP_WRITE_STDOUT 1
! 17858: _ACEOF
1.1 misho 17859:
17860: fi
17861:
17862:
17863: if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
17864: CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
17865: LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
17866: fi
17867: test -d /usr/ucblib &&
17868: if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then
17869:
17870: if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then
17871: ai_p=/usr/ucblib
17872: else
17873:
17874: ep_dir="`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'`"
17875:
17876: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17877: ai_p="$ep_realdir/`basename \"/usr/ucblib\"`"
17878: fi
17879:
17880:
17881:
17882:
17883:
17884: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17885:
17886: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
17887: if test -n "$unique" && test "`eval $cmd`" = "" ; then
17888: eval "LIBPATH$unique=set"
17889:
17890: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
17891: LDFLAGS="$LDFLAGS -L$ai_p"
17892: PHP_RPATHS="$PHP_RPATHS $ai_p"
17893:
17894: fi
17895:
17896:
17897:
17898: fi
17899:
17900:
17901:
17902:
17903:
17904:
17905: unset ac_cv_func_socket
17906: unset ac_cv_func___socket
17907: unset found
17908:
1.1.1.3 ! misho 17909: { echo "$as_me:$LINENO: checking for socket" >&5
! 17910: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
! 17911: if test "${ac_cv_func_socket+set}" = set; then
! 17912: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 17913: else
1.1.1.3 ! misho 17914: cat >conftest.$ac_ext <<_ACEOF
! 17915: /* confdefs.h. */
! 17916: _ACEOF
! 17917: cat confdefs.h >>conftest.$ac_ext
! 17918: cat >>conftest.$ac_ext <<_ACEOF
! 17919: /* end confdefs.h. */
! 17920: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
! 17921: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17922: #define socket innocuous_socket
! 17923:
! 17924: /* System header to define __stub macros and hopefully few prototypes,
! 17925: which can conflict with char socket (); below.
! 17926: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17927: <limits.h> exists even on freestanding compilers. */
! 17928:
! 17929: #ifdef __STDC__
! 17930: # include <limits.h>
! 17931: #else
! 17932: # include <assert.h>
! 17933: #endif
! 17934:
! 17935: #undef socket
! 17936:
! 17937: /* Override any GCC internal prototype to avoid an error.
! 17938: Use char because int might match the return type of a GCC
! 17939: builtin and then its argument prototype would still apply. */
! 17940: #ifdef __cplusplus
! 17941: extern "C"
! 17942: #endif
! 17943: char socket ();
! 17944: /* The GNU C library defines this for functions which it implements
! 17945: to always fail with ENOSYS. Some functions are actually named
! 17946: something starting with __ and the normal name is an alias. */
! 17947: #if defined __stub_socket || defined __stub___socket
! 17948: choke me
! 17949: #endif
! 17950:
! 17951: int
! 17952: main ()
! 17953: {
! 17954: return socket ();
! 17955: ;
! 17956: return 0;
! 17957: }
! 17958: _ACEOF
! 17959: rm -f conftest.$ac_objext conftest$ac_exeext
! 17960: if { (ac_try="$ac_link"
! 17961: case "(($ac_try" in
! 17962: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17963: *) ac_try_echo=$ac_try;;
! 17964: esac
! 17965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17966: (eval "$ac_link") 2>conftest.er1
! 17967: ac_status=$?
! 17968: grep -v '^ *+' conftest.er1 >conftest.err
! 17969: rm -f conftest.er1
! 17970: cat conftest.err >&5
! 17971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17972: (exit $ac_status); } && {
! 17973: test -z "$ac_c_werror_flag" ||
! 17974: test ! -s conftest.err
! 17975: } && test -s conftest$ac_exeext &&
! 17976: $as_test_x conftest$ac_exeext; then
! 17977: ac_cv_func_socket=yes
! 17978: else
! 17979: echo "$as_me: failed program was:" >&5
! 17980: sed 's/^/| /' conftest.$ac_ext >&5
! 17981:
! 17982: ac_cv_func_socket=no
! 17983: fi
! 17984:
! 17985: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17986: conftest$ac_exeext conftest.$ac_ext
! 17987: fi
! 17988: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
! 17989: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
! 17990: if test $ac_cv_func_socket = yes; then
! 17991: found=yes
! 17992: else
! 17993: { echo "$as_me:$LINENO: checking for __socket" >&5
! 17994: echo $ECHO_N "checking for __socket... $ECHO_C" >&6; }
! 17995: if test "${ac_cv_func___socket+set}" = set; then
! 17996: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17997: else
! 17998: cat >conftest.$ac_ext <<_ACEOF
! 17999: /* confdefs.h. */
! 18000: _ACEOF
! 18001: cat confdefs.h >>conftest.$ac_ext
! 18002: cat >>conftest.$ac_ext <<_ACEOF
! 18003: /* end confdefs.h. */
! 18004: /* Define __socket to an innocuous variant, in case <limits.h> declares __socket.
! 18005: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18006: #define __socket innocuous___socket
! 18007:
! 18008: /* System header to define __stub macros and hopefully few prototypes,
! 18009: which can conflict with char __socket (); below.
! 18010: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18011: <limits.h> exists even on freestanding compilers. */
! 18012:
! 18013: #ifdef __STDC__
! 18014: # include <limits.h>
! 18015: #else
! 18016: # include <assert.h>
! 18017: #endif
! 18018:
! 18019: #undef __socket
! 18020:
! 18021: /* Override any GCC internal prototype to avoid an error.
! 18022: Use char because int might match the return type of a GCC
! 18023: builtin and then its argument prototype would still apply. */
! 18024: #ifdef __cplusplus
! 18025: extern "C"
! 18026: #endif
! 18027: char __socket ();
! 18028: /* The GNU C library defines this for functions which it implements
! 18029: to always fail with ENOSYS. Some functions are actually named
! 18030: something starting with __ and the normal name is an alias. */
! 18031: #if defined __stub___socket || defined __stub_____socket
! 18032: choke me
! 18033: #endif
! 18034:
! 18035: int
! 18036: main ()
! 18037: {
! 18038: return __socket ();
! 18039: ;
! 18040: return 0;
! 18041: }
! 18042: _ACEOF
! 18043: rm -f conftest.$ac_objext conftest$ac_exeext
! 18044: if { (ac_try="$ac_link"
! 18045: case "(($ac_try" in
! 18046: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18047: *) ac_try_echo=$ac_try;;
! 18048: esac
! 18049: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18050: (eval "$ac_link") 2>conftest.er1
! 18051: ac_status=$?
! 18052: grep -v '^ *+' conftest.er1 >conftest.err
! 18053: rm -f conftest.er1
! 18054: cat conftest.err >&5
! 18055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18056: (exit $ac_status); } && {
! 18057: test -z "$ac_c_werror_flag" ||
! 18058: test ! -s conftest.err
! 18059: } && test -s conftest$ac_exeext &&
! 18060: $as_test_x conftest$ac_exeext; then
! 18061: ac_cv_func___socket=yes
! 18062: else
! 18063: echo "$as_me: failed program was:" >&5
! 18064: sed 's/^/| /' conftest.$ac_ext >&5
! 18065:
! 18066: ac_cv_func___socket=no
! 18067: fi
! 18068:
! 18069: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18070: conftest$ac_exeext conftest.$ac_ext
! 18071: fi
! 18072: { echo "$as_me:$LINENO: result: $ac_cv_func___socket" >&5
! 18073: echo "${ECHO_T}$ac_cv_func___socket" >&6; }
! 18074: if test $ac_cv_func___socket = yes; then
! 18075: found=yes
! 18076: else
! 18077: found=no
! 18078: fi
! 18079:
! 18080: fi
1.1 misho 18081:
18082:
18083: case $found in
18084: yes)
18085:
1.1.1.3 ! misho 18086: cat >>confdefs.h <<\_ACEOF
! 18087: #define HAVE_SOCKET 1
! 18088: _ACEOF
1.1 misho 18089:
18090: ac_cv_func_socket=yes
18091: ;;
18092:
18093: *)
18094:
18095: unset ac_cv_lib_socket_socket
18096: unset ac_cv_lib_socket___socket
18097: unset found
1.1.1.3 ! misho 18098: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
! 18099: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
! 18100: if test "${ac_cv_lib_socket_socket+set}" = set; then
! 18101: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 18102: else
18103: ac_check_lib_save_LIBS=$LIBS
18104: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 18105: cat >conftest.$ac_ext <<_ACEOF
! 18106: /* confdefs.h. */
! 18107: _ACEOF
! 18108: cat confdefs.h >>conftest.$ac_ext
! 18109: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18110: /* end confdefs.h. */
18111:
18112: /* Override any GCC internal prototype to avoid an error.
18113: Use char because int might match the return type of a GCC
18114: builtin and then its argument prototype would still apply. */
18115: #ifdef __cplusplus
18116: extern "C"
18117: #endif
18118: char socket ();
18119: int
18120: main ()
18121: {
18122: return socket ();
18123: ;
18124: return 0;
18125: }
18126: _ACEOF
1.1.1.3 ! misho 18127: rm -f conftest.$ac_objext conftest$ac_exeext
! 18128: if { (ac_try="$ac_link"
! 18129: case "(($ac_try" in
! 18130: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18131: *) ac_try_echo=$ac_try;;
! 18132: esac
! 18133: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18134: (eval "$ac_link") 2>conftest.er1
! 18135: ac_status=$?
! 18136: grep -v '^ *+' conftest.er1 >conftest.err
! 18137: rm -f conftest.er1
! 18138: cat conftest.err >&5
! 18139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18140: (exit $ac_status); } && {
! 18141: test -z "$ac_c_werror_flag" ||
! 18142: test ! -s conftest.err
! 18143: } && test -s conftest$ac_exeext &&
! 18144: $as_test_x conftest$ac_exeext; then
1.1 misho 18145: ac_cv_lib_socket_socket=yes
18146: else
1.1.1.3 ! misho 18147: echo "$as_me: failed program was:" >&5
! 18148: sed 's/^/| /' conftest.$ac_ext >&5
! 18149:
! 18150: ac_cv_lib_socket_socket=no
1.1 misho 18151: fi
1.1.1.3 ! misho 18152:
! 18153: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18154: conftest$ac_exeext conftest.$ac_ext
1.1 misho 18155: LIBS=$ac_check_lib_save_LIBS
18156: fi
1.1.1.3 ! misho 18157: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
! 18158: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
! 18159: if test $ac_cv_lib_socket_socket = yes; then
1.1 misho 18160: found=yes
18161: else
18162:
1.1.1.3 ! misho 18163: { echo "$as_me:$LINENO: checking for __socket in -lsocket" >&5
! 18164: echo $ECHO_N "checking for __socket in -lsocket... $ECHO_C" >&6; }
! 18165: if test "${ac_cv_lib_socket___socket+set}" = set; then
! 18166: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 18167: else
18168: ac_check_lib_save_LIBS=$LIBS
18169: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 18170: cat >conftest.$ac_ext <<_ACEOF
! 18171: /* confdefs.h. */
! 18172: _ACEOF
! 18173: cat confdefs.h >>conftest.$ac_ext
! 18174: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18175: /* end confdefs.h. */
18176:
18177: /* Override any GCC internal prototype to avoid an error.
18178: Use char because int might match the return type of a GCC
18179: builtin and then its argument prototype would still apply. */
18180: #ifdef __cplusplus
18181: extern "C"
18182: #endif
18183: char __socket ();
18184: int
18185: main ()
18186: {
18187: return __socket ();
18188: ;
18189: return 0;
18190: }
18191: _ACEOF
1.1.1.3 ! misho 18192: rm -f conftest.$ac_objext conftest$ac_exeext
! 18193: if { (ac_try="$ac_link"
! 18194: case "(($ac_try" in
! 18195: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18196: *) ac_try_echo=$ac_try;;
! 18197: esac
! 18198: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18199: (eval "$ac_link") 2>conftest.er1
! 18200: ac_status=$?
! 18201: grep -v '^ *+' conftest.er1 >conftest.err
! 18202: rm -f conftest.er1
! 18203: cat conftest.err >&5
! 18204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18205: (exit $ac_status); } && {
! 18206: test -z "$ac_c_werror_flag" ||
! 18207: test ! -s conftest.err
! 18208: } && test -s conftest$ac_exeext &&
! 18209: $as_test_x conftest$ac_exeext; then
1.1 misho 18210: ac_cv_lib_socket___socket=yes
18211: else
1.1.1.3 ! misho 18212: echo "$as_me: failed program was:" >&5
! 18213: sed 's/^/| /' conftest.$ac_ext >&5
! 18214:
! 18215: ac_cv_lib_socket___socket=no
1.1 misho 18216: fi
1.1.1.3 ! misho 18217:
! 18218: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18219: conftest$ac_exeext conftest.$ac_ext
1.1 misho 18220: LIBS=$ac_check_lib_save_LIBS
18221: fi
1.1.1.3 ! misho 18222: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___socket" >&5
! 18223: echo "${ECHO_T}$ac_cv_lib_socket___socket" >&6; }
! 18224: if test $ac_cv_lib_socket___socket = yes; then
1.1 misho 18225: found=yes
18226: else
18227: found=no
18228: fi
18229:
18230:
18231: fi
18232:
18233:
18234: if test "$found" = "yes"; then
18235: ac_libs=$LIBS
18236: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 18237: if test "$cross_compiling" = yes; then
1.1 misho 18238: found=no
18239: else
1.1.1.3 ! misho 18240: cat >conftest.$ac_ext <<_ACEOF
! 18241: /* confdefs.h. */
! 18242: _ACEOF
! 18243: cat confdefs.h >>conftest.$ac_ext
! 18244: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18245: /* end confdefs.h. */
18246: main() { return (0); }
18247: _ACEOF
1.1.1.3 ! misho 18248: rm -f conftest$ac_exeext
! 18249: if { (ac_try="$ac_link"
! 18250: case "(($ac_try" in
! 18251: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18252: *) ac_try_echo=$ac_try;;
! 18253: esac
! 18254: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18255: (eval "$ac_link") 2>&5
! 18256: ac_status=$?
! 18257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18258: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 18259: { (case "(($ac_try" in
! 18260: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18261: *) ac_try_echo=$ac_try;;
! 18262: esac
! 18263: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18264: (eval "$ac_try") 2>&5
! 18265: ac_status=$?
! 18266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18267: (exit $ac_status); }; }; then
1.1 misho 18268: found=yes
18269: else
1.1.1.3 ! misho 18270: echo "$as_me: program exited with status $ac_status" >&5
! 18271: echo "$as_me: failed program was:" >&5
! 18272: sed 's/^/| /' conftest.$ac_ext >&5
! 18273:
! 18274: ( exit $ac_status )
! 18275: found=no
1.1 misho 18276: fi
1.1.1.3 ! misho 18277: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 18278: fi
18279:
1.1.1.3 ! misho 18280:
1.1 misho 18281: LIBS=$ac_libs
18282: fi
18283:
18284: if test "$found" = "yes"; then
18285:
18286:
18287: case socket in
18288: c|c_r|pthread*) ;;
18289: *)
18290: LIBS="-lsocket $LIBS"
18291: ;;
18292: esac
18293:
18294:
18295:
1.1.1.3 ! misho 18296: cat >>confdefs.h <<\_ACEOF
! 18297: #define HAVE_SOCKET 1
! 18298: _ACEOF
1.1 misho 18299:
18300:
1.1.1.3 ! misho 18301: cat >>confdefs.h <<\_ACEOF
! 18302: #define HAVE_LIBSOCKET 1
! 18303: _ACEOF
1.1 misho 18304:
18305: ac_cv_func_socket=yes
18306: else
18307:
18308: :
18309:
18310: fi
18311:
18312: ;;
18313:
18314: esac
18315:
18316:
18317: unset ac_cv_func_socketpair
18318: unset ac_cv_func___socketpair
18319: unset found
18320:
1.1.1.3 ! misho 18321: { echo "$as_me:$LINENO: checking for socketpair" >&5
! 18322: echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
! 18323: if test "${ac_cv_func_socketpair+set}" = set; then
! 18324: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18325: else
! 18326: cat >conftest.$ac_ext <<_ACEOF
! 18327: /* confdefs.h. */
! 18328: _ACEOF
! 18329: cat confdefs.h >>conftest.$ac_ext
! 18330: cat >>conftest.$ac_ext <<_ACEOF
! 18331: /* end confdefs.h. */
! 18332: /* Define socketpair to an innocuous variant, in case <limits.h> declares socketpair.
! 18333: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18334: #define socketpair innocuous_socketpair
! 18335:
! 18336: /* System header to define __stub macros and hopefully few prototypes,
! 18337: which can conflict with char socketpair (); below.
! 18338: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18339: <limits.h> exists even on freestanding compilers. */
! 18340:
! 18341: #ifdef __STDC__
! 18342: # include <limits.h>
! 18343: #else
! 18344: # include <assert.h>
! 18345: #endif
! 18346:
! 18347: #undef socketpair
! 18348:
! 18349: /* Override any GCC internal prototype to avoid an error.
! 18350: Use char because int might match the return type of a GCC
! 18351: builtin and then its argument prototype would still apply. */
! 18352: #ifdef __cplusplus
! 18353: extern "C"
! 18354: #endif
! 18355: char socketpair ();
! 18356: /* The GNU C library defines this for functions which it implements
! 18357: to always fail with ENOSYS. Some functions are actually named
! 18358: something starting with __ and the normal name is an alias. */
! 18359: #if defined __stub_socketpair || defined __stub___socketpair
! 18360: choke me
! 18361: #endif
! 18362:
! 18363: int
! 18364: main ()
! 18365: {
! 18366: return socketpair ();
! 18367: ;
! 18368: return 0;
! 18369: }
! 18370: _ACEOF
! 18371: rm -f conftest.$ac_objext conftest$ac_exeext
! 18372: if { (ac_try="$ac_link"
! 18373: case "(($ac_try" in
! 18374: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18375: *) ac_try_echo=$ac_try;;
! 18376: esac
! 18377: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18378: (eval "$ac_link") 2>conftest.er1
! 18379: ac_status=$?
! 18380: grep -v '^ *+' conftest.er1 >conftest.err
! 18381: rm -f conftest.er1
! 18382: cat conftest.err >&5
! 18383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18384: (exit $ac_status); } && {
! 18385: test -z "$ac_c_werror_flag" ||
! 18386: test ! -s conftest.err
! 18387: } && test -s conftest$ac_exeext &&
! 18388: $as_test_x conftest$ac_exeext; then
! 18389: ac_cv_func_socketpair=yes
! 18390: else
! 18391: echo "$as_me: failed program was:" >&5
! 18392: sed 's/^/| /' conftest.$ac_ext >&5
! 18393:
! 18394: ac_cv_func_socketpair=no
! 18395: fi
! 18396:
! 18397: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18398: conftest$ac_exeext conftest.$ac_ext
! 18399: fi
! 18400: { echo "$as_me:$LINENO: result: $ac_cv_func_socketpair" >&5
! 18401: echo "${ECHO_T}$ac_cv_func_socketpair" >&6; }
! 18402: if test $ac_cv_func_socketpair = yes; then
1.1 misho 18403: found=yes
18404: else
1.1.1.3 ! misho 18405: { echo "$as_me:$LINENO: checking for __socketpair" >&5
! 18406: echo $ECHO_N "checking for __socketpair... $ECHO_C" >&6; }
! 18407: if test "${ac_cv_func___socketpair+set}" = set; then
! 18408: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18409: else
! 18410: cat >conftest.$ac_ext <<_ACEOF
! 18411: /* confdefs.h. */
! 18412: _ACEOF
! 18413: cat confdefs.h >>conftest.$ac_ext
! 18414: cat >>conftest.$ac_ext <<_ACEOF
! 18415: /* end confdefs.h. */
! 18416: /* Define __socketpair to an innocuous variant, in case <limits.h> declares __socketpair.
! 18417: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18418: #define __socketpair innocuous___socketpair
! 18419:
! 18420: /* System header to define __stub macros and hopefully few prototypes,
! 18421: which can conflict with char __socketpair (); below.
! 18422: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18423: <limits.h> exists even on freestanding compilers. */
! 18424:
! 18425: #ifdef __STDC__
! 18426: # include <limits.h>
! 18427: #else
! 18428: # include <assert.h>
! 18429: #endif
! 18430:
! 18431: #undef __socketpair
! 18432:
! 18433: /* Override any GCC internal prototype to avoid an error.
! 18434: Use char because int might match the return type of a GCC
! 18435: builtin and then its argument prototype would still apply. */
! 18436: #ifdef __cplusplus
! 18437: extern "C"
! 18438: #endif
! 18439: char __socketpair ();
! 18440: /* The GNU C library defines this for functions which it implements
! 18441: to always fail with ENOSYS. Some functions are actually named
! 18442: something starting with __ and the normal name is an alias. */
! 18443: #if defined __stub___socketpair || defined __stub_____socketpair
! 18444: choke me
! 18445: #endif
! 18446:
! 18447: int
! 18448: main ()
! 18449: {
! 18450: return __socketpair ();
! 18451: ;
! 18452: return 0;
! 18453: }
! 18454: _ACEOF
! 18455: rm -f conftest.$ac_objext conftest$ac_exeext
! 18456: if { (ac_try="$ac_link"
! 18457: case "(($ac_try" in
! 18458: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18459: *) ac_try_echo=$ac_try;;
! 18460: esac
! 18461: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18462: (eval "$ac_link") 2>conftest.er1
! 18463: ac_status=$?
! 18464: grep -v '^ *+' conftest.er1 >conftest.err
! 18465: rm -f conftest.er1
! 18466: cat conftest.err >&5
! 18467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18468: (exit $ac_status); } && {
! 18469: test -z "$ac_c_werror_flag" ||
! 18470: test ! -s conftest.err
! 18471: } && test -s conftest$ac_exeext &&
! 18472: $as_test_x conftest$ac_exeext; then
! 18473: ac_cv_func___socketpair=yes
! 18474: else
! 18475: echo "$as_me: failed program was:" >&5
! 18476: sed 's/^/| /' conftest.$ac_ext >&5
! 18477:
! 18478: ac_cv_func___socketpair=no
! 18479: fi
! 18480:
! 18481: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18482: conftest$ac_exeext conftest.$ac_ext
! 18483: fi
! 18484: { echo "$as_me:$LINENO: result: $ac_cv_func___socketpair" >&5
! 18485: echo "${ECHO_T}$ac_cv_func___socketpair" >&6; }
! 18486: if test $ac_cv_func___socketpair = yes; then
1.1 misho 18487: found=yes
18488: else
18489: found=no
18490: fi
18491:
18492: fi
18493:
18494:
18495: case $found in
18496: yes)
18497:
1.1.1.3 ! misho 18498: cat >>confdefs.h <<\_ACEOF
! 18499: #define HAVE_SOCKETPAIR 1
! 18500: _ACEOF
1.1 misho 18501:
18502: ac_cv_func_socketpair=yes
18503: ;;
18504:
18505: *)
18506:
18507: unset ac_cv_lib_socket_socketpair
18508: unset ac_cv_lib_socket___socketpair
18509: unset found
1.1.1.3 ! misho 18510: { echo "$as_me:$LINENO: checking for socketpair in -lsocket" >&5
! 18511: echo $ECHO_N "checking for socketpair in -lsocket... $ECHO_C" >&6; }
! 18512: if test "${ac_cv_lib_socket_socketpair+set}" = set; then
! 18513: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 18514: else
18515: ac_check_lib_save_LIBS=$LIBS
18516: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 18517: cat >conftest.$ac_ext <<_ACEOF
! 18518: /* confdefs.h. */
! 18519: _ACEOF
! 18520: cat confdefs.h >>conftest.$ac_ext
! 18521: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18522: /* end confdefs.h. */
18523:
18524: /* Override any GCC internal prototype to avoid an error.
18525: Use char because int might match the return type of a GCC
18526: builtin and then its argument prototype would still apply. */
18527: #ifdef __cplusplus
18528: extern "C"
18529: #endif
18530: char socketpair ();
18531: int
18532: main ()
18533: {
18534: return socketpair ();
18535: ;
18536: return 0;
18537: }
18538: _ACEOF
1.1.1.3 ! misho 18539: rm -f conftest.$ac_objext conftest$ac_exeext
! 18540: if { (ac_try="$ac_link"
! 18541: case "(($ac_try" in
! 18542: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18543: *) ac_try_echo=$ac_try;;
! 18544: esac
! 18545: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18546: (eval "$ac_link") 2>conftest.er1
! 18547: ac_status=$?
! 18548: grep -v '^ *+' conftest.er1 >conftest.err
! 18549: rm -f conftest.er1
! 18550: cat conftest.err >&5
! 18551: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18552: (exit $ac_status); } && {
! 18553: test -z "$ac_c_werror_flag" ||
! 18554: test ! -s conftest.err
! 18555: } && test -s conftest$ac_exeext &&
! 18556: $as_test_x conftest$ac_exeext; then
1.1 misho 18557: ac_cv_lib_socket_socketpair=yes
18558: else
1.1.1.3 ! misho 18559: echo "$as_me: failed program was:" >&5
! 18560: sed 's/^/| /' conftest.$ac_ext >&5
! 18561:
! 18562: ac_cv_lib_socket_socketpair=no
1.1 misho 18563: fi
1.1.1.3 ! misho 18564:
! 18565: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18566: conftest$ac_exeext conftest.$ac_ext
1.1 misho 18567: LIBS=$ac_check_lib_save_LIBS
18568: fi
1.1.1.3 ! misho 18569: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socketpair" >&5
! 18570: echo "${ECHO_T}$ac_cv_lib_socket_socketpair" >&6; }
! 18571: if test $ac_cv_lib_socket_socketpair = yes; then
1.1 misho 18572: found=yes
18573: else
18574:
1.1.1.3 ! misho 18575: { echo "$as_me:$LINENO: checking for __socketpair in -lsocket" >&5
! 18576: echo $ECHO_N "checking for __socketpair in -lsocket... $ECHO_C" >&6; }
! 18577: if test "${ac_cv_lib_socket___socketpair+set}" = set; then
! 18578: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 18579: else
18580: ac_check_lib_save_LIBS=$LIBS
18581: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 18582: cat >conftest.$ac_ext <<_ACEOF
! 18583: /* confdefs.h. */
! 18584: _ACEOF
! 18585: cat confdefs.h >>conftest.$ac_ext
! 18586: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18587: /* end confdefs.h. */
18588:
18589: /* Override any GCC internal prototype to avoid an error.
18590: Use char because int might match the return type of a GCC
18591: builtin and then its argument prototype would still apply. */
18592: #ifdef __cplusplus
18593: extern "C"
18594: #endif
18595: char __socketpair ();
18596: int
18597: main ()
18598: {
18599: return __socketpair ();
18600: ;
18601: return 0;
18602: }
18603: _ACEOF
1.1.1.3 ! misho 18604: rm -f conftest.$ac_objext conftest$ac_exeext
! 18605: if { (ac_try="$ac_link"
! 18606: case "(($ac_try" in
! 18607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18608: *) ac_try_echo=$ac_try;;
! 18609: esac
! 18610: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18611: (eval "$ac_link") 2>conftest.er1
! 18612: ac_status=$?
! 18613: grep -v '^ *+' conftest.er1 >conftest.err
! 18614: rm -f conftest.er1
! 18615: cat conftest.err >&5
! 18616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18617: (exit $ac_status); } && {
! 18618: test -z "$ac_c_werror_flag" ||
! 18619: test ! -s conftest.err
! 18620: } && test -s conftest$ac_exeext &&
! 18621: $as_test_x conftest$ac_exeext; then
1.1 misho 18622: ac_cv_lib_socket___socketpair=yes
18623: else
1.1.1.3 ! misho 18624: echo "$as_me: failed program was:" >&5
! 18625: sed 's/^/| /' conftest.$ac_ext >&5
! 18626:
! 18627: ac_cv_lib_socket___socketpair=no
1.1 misho 18628: fi
1.1.1.3 ! misho 18629:
! 18630: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18631: conftest$ac_exeext conftest.$ac_ext
1.1 misho 18632: LIBS=$ac_check_lib_save_LIBS
18633: fi
1.1.1.3 ! misho 18634: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___socketpair" >&5
! 18635: echo "${ECHO_T}$ac_cv_lib_socket___socketpair" >&6; }
! 18636: if test $ac_cv_lib_socket___socketpair = yes; then
1.1 misho 18637: found=yes
18638: else
18639: found=no
18640: fi
18641:
18642:
18643: fi
18644:
18645:
18646: if test "$found" = "yes"; then
18647: ac_libs=$LIBS
18648: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 18649: if test "$cross_compiling" = yes; then
1.1 misho 18650: found=no
18651: else
1.1.1.3 ! misho 18652: cat >conftest.$ac_ext <<_ACEOF
! 18653: /* confdefs.h. */
! 18654: _ACEOF
! 18655: cat confdefs.h >>conftest.$ac_ext
! 18656: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18657: /* end confdefs.h. */
18658: main() { return (0); }
18659: _ACEOF
1.1.1.3 ! misho 18660: rm -f conftest$ac_exeext
! 18661: if { (ac_try="$ac_link"
! 18662: case "(($ac_try" in
! 18663: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18664: *) ac_try_echo=$ac_try;;
! 18665: esac
! 18666: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18667: (eval "$ac_link") 2>&5
! 18668: ac_status=$?
! 18669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18670: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 18671: { (case "(($ac_try" in
! 18672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18673: *) ac_try_echo=$ac_try;;
! 18674: esac
! 18675: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18676: (eval "$ac_try") 2>&5
! 18677: ac_status=$?
! 18678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18679: (exit $ac_status); }; }; then
1.1 misho 18680: found=yes
18681: else
1.1.1.3 ! misho 18682: echo "$as_me: program exited with status $ac_status" >&5
! 18683: echo "$as_me: failed program was:" >&5
! 18684: sed 's/^/| /' conftest.$ac_ext >&5
! 18685:
! 18686: ( exit $ac_status )
! 18687: found=no
1.1 misho 18688: fi
1.1.1.3 ! misho 18689: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 18690: fi
18691:
1.1.1.3 ! misho 18692:
1.1 misho 18693: LIBS=$ac_libs
18694: fi
18695:
18696: if test "$found" = "yes"; then
18697:
18698:
18699: case socket in
18700: c|c_r|pthread*) ;;
18701: *)
18702: LIBS="-lsocket $LIBS"
18703: ;;
18704: esac
18705:
18706:
18707:
1.1.1.3 ! misho 18708: cat >>confdefs.h <<\_ACEOF
! 18709: #define HAVE_SOCKETPAIR 1
! 18710: _ACEOF
1.1 misho 18711:
18712:
1.1.1.3 ! misho 18713: cat >>confdefs.h <<\_ACEOF
! 18714: #define HAVE_LIBSOCKET 1
! 18715: _ACEOF
1.1 misho 18716:
18717: ac_cv_func_socketpair=yes
18718: else
18719:
18720: :
18721:
18722: fi
18723:
18724: ;;
18725:
18726: esac
18727:
18728:
18729: unset ac_cv_func_htonl
18730: unset ac_cv_func___htonl
18731: unset found
18732:
1.1.1.3 ! misho 18733: { echo "$as_me:$LINENO: checking for htonl" >&5
! 18734: echo $ECHO_N "checking for htonl... $ECHO_C" >&6; }
! 18735: if test "${ac_cv_func_htonl+set}" = set; then
! 18736: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18737: else
! 18738: cat >conftest.$ac_ext <<_ACEOF
! 18739: /* confdefs.h. */
! 18740: _ACEOF
! 18741: cat confdefs.h >>conftest.$ac_ext
! 18742: cat >>conftest.$ac_ext <<_ACEOF
! 18743: /* end confdefs.h. */
! 18744: /* Define htonl to an innocuous variant, in case <limits.h> declares htonl.
! 18745: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18746: #define htonl innocuous_htonl
! 18747:
! 18748: /* System header to define __stub macros and hopefully few prototypes,
! 18749: which can conflict with char htonl (); below.
! 18750: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18751: <limits.h> exists even on freestanding compilers. */
! 18752:
! 18753: #ifdef __STDC__
! 18754: # include <limits.h>
! 18755: #else
! 18756: # include <assert.h>
! 18757: #endif
! 18758:
! 18759: #undef htonl
! 18760:
! 18761: /* Override any GCC internal prototype to avoid an error.
! 18762: Use char because int might match the return type of a GCC
! 18763: builtin and then its argument prototype would still apply. */
! 18764: #ifdef __cplusplus
! 18765: extern "C"
! 18766: #endif
! 18767: char htonl ();
! 18768: /* The GNU C library defines this for functions which it implements
! 18769: to always fail with ENOSYS. Some functions are actually named
! 18770: something starting with __ and the normal name is an alias. */
! 18771: #if defined __stub_htonl || defined __stub___htonl
! 18772: choke me
! 18773: #endif
! 18774:
! 18775: int
! 18776: main ()
! 18777: {
! 18778: return htonl ();
! 18779: ;
! 18780: return 0;
! 18781: }
! 18782: _ACEOF
! 18783: rm -f conftest.$ac_objext conftest$ac_exeext
! 18784: if { (ac_try="$ac_link"
! 18785: case "(($ac_try" in
! 18786: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18787: *) ac_try_echo=$ac_try;;
! 18788: esac
! 18789: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18790: (eval "$ac_link") 2>conftest.er1
! 18791: ac_status=$?
! 18792: grep -v '^ *+' conftest.er1 >conftest.err
! 18793: rm -f conftest.er1
! 18794: cat conftest.err >&5
! 18795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18796: (exit $ac_status); } && {
! 18797: test -z "$ac_c_werror_flag" ||
! 18798: test ! -s conftest.err
! 18799: } && test -s conftest$ac_exeext &&
! 18800: $as_test_x conftest$ac_exeext; then
! 18801: ac_cv_func_htonl=yes
! 18802: else
! 18803: echo "$as_me: failed program was:" >&5
! 18804: sed 's/^/| /' conftest.$ac_ext >&5
! 18805:
! 18806: ac_cv_func_htonl=no
! 18807: fi
! 18808:
! 18809: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18810: conftest$ac_exeext conftest.$ac_ext
! 18811: fi
! 18812: { echo "$as_me:$LINENO: result: $ac_cv_func_htonl" >&5
! 18813: echo "${ECHO_T}$ac_cv_func_htonl" >&6; }
! 18814: if test $ac_cv_func_htonl = yes; then
1.1 misho 18815: found=yes
18816: else
1.1.1.3 ! misho 18817: { echo "$as_me:$LINENO: checking for __htonl" >&5
! 18818: echo $ECHO_N "checking for __htonl... $ECHO_C" >&6; }
! 18819: if test "${ac_cv_func___htonl+set}" = set; then
! 18820: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18821: else
! 18822: cat >conftest.$ac_ext <<_ACEOF
! 18823: /* confdefs.h. */
! 18824: _ACEOF
! 18825: cat confdefs.h >>conftest.$ac_ext
! 18826: cat >>conftest.$ac_ext <<_ACEOF
! 18827: /* end confdefs.h. */
! 18828: /* Define __htonl to an innocuous variant, in case <limits.h> declares __htonl.
! 18829: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18830: #define __htonl innocuous___htonl
! 18831:
! 18832: /* System header to define __stub macros and hopefully few prototypes,
! 18833: which can conflict with char __htonl (); below.
! 18834: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18835: <limits.h> exists even on freestanding compilers. */
! 18836:
! 18837: #ifdef __STDC__
! 18838: # include <limits.h>
! 18839: #else
! 18840: # include <assert.h>
! 18841: #endif
! 18842:
! 18843: #undef __htonl
! 18844:
! 18845: /* Override any GCC internal prototype to avoid an error.
! 18846: Use char because int might match the return type of a GCC
! 18847: builtin and then its argument prototype would still apply. */
! 18848: #ifdef __cplusplus
! 18849: extern "C"
! 18850: #endif
! 18851: char __htonl ();
! 18852: /* The GNU C library defines this for functions which it implements
! 18853: to always fail with ENOSYS. Some functions are actually named
! 18854: something starting with __ and the normal name is an alias. */
! 18855: #if defined __stub___htonl || defined __stub_____htonl
! 18856: choke me
! 18857: #endif
! 18858:
! 18859: int
! 18860: main ()
! 18861: {
! 18862: return __htonl ();
! 18863: ;
! 18864: return 0;
! 18865: }
! 18866: _ACEOF
! 18867: rm -f conftest.$ac_objext conftest$ac_exeext
! 18868: if { (ac_try="$ac_link"
! 18869: case "(($ac_try" in
! 18870: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18871: *) ac_try_echo=$ac_try;;
! 18872: esac
! 18873: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18874: (eval "$ac_link") 2>conftest.er1
! 18875: ac_status=$?
! 18876: grep -v '^ *+' conftest.er1 >conftest.err
! 18877: rm -f conftest.er1
! 18878: cat conftest.err >&5
! 18879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18880: (exit $ac_status); } && {
! 18881: test -z "$ac_c_werror_flag" ||
! 18882: test ! -s conftest.err
! 18883: } && test -s conftest$ac_exeext &&
! 18884: $as_test_x conftest$ac_exeext; then
! 18885: ac_cv_func___htonl=yes
! 18886: else
! 18887: echo "$as_me: failed program was:" >&5
! 18888: sed 's/^/| /' conftest.$ac_ext >&5
! 18889:
! 18890: ac_cv_func___htonl=no
! 18891: fi
! 18892:
! 18893: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18894: conftest$ac_exeext conftest.$ac_ext
! 18895: fi
! 18896: { echo "$as_me:$LINENO: result: $ac_cv_func___htonl" >&5
! 18897: echo "${ECHO_T}$ac_cv_func___htonl" >&6; }
! 18898: if test $ac_cv_func___htonl = yes; then
1.1 misho 18899: found=yes
18900: else
18901: found=no
18902: fi
18903:
18904: fi
18905:
18906:
18907: case $found in
18908: yes)
18909:
1.1.1.3 ! misho 18910: cat >>confdefs.h <<\_ACEOF
! 18911: #define HAVE_HTONL 1
! 18912: _ACEOF
1.1 misho 18913:
18914: ac_cv_func_htonl=yes
18915: ;;
18916:
18917: *)
18918:
18919: unset ac_cv_lib_socket_htonl
18920: unset ac_cv_lib_socket___htonl
18921: unset found
1.1.1.3 ! misho 18922: { echo "$as_me:$LINENO: checking for htonl in -lsocket" >&5
! 18923: echo $ECHO_N "checking for htonl in -lsocket... $ECHO_C" >&6; }
! 18924: if test "${ac_cv_lib_socket_htonl+set}" = set; then
! 18925: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 18926: else
18927: ac_check_lib_save_LIBS=$LIBS
18928: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 18929: cat >conftest.$ac_ext <<_ACEOF
! 18930: /* confdefs.h. */
! 18931: _ACEOF
! 18932: cat confdefs.h >>conftest.$ac_ext
! 18933: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18934: /* end confdefs.h. */
18935:
18936: /* Override any GCC internal prototype to avoid an error.
18937: Use char because int might match the return type of a GCC
18938: builtin and then its argument prototype would still apply. */
18939: #ifdef __cplusplus
18940: extern "C"
18941: #endif
18942: char htonl ();
18943: int
18944: main ()
18945: {
18946: return htonl ();
18947: ;
18948: return 0;
18949: }
18950: _ACEOF
1.1.1.3 ! misho 18951: rm -f conftest.$ac_objext conftest$ac_exeext
! 18952: if { (ac_try="$ac_link"
! 18953: case "(($ac_try" in
! 18954: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18955: *) ac_try_echo=$ac_try;;
! 18956: esac
! 18957: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18958: (eval "$ac_link") 2>conftest.er1
! 18959: ac_status=$?
! 18960: grep -v '^ *+' conftest.er1 >conftest.err
! 18961: rm -f conftest.er1
! 18962: cat conftest.err >&5
! 18963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18964: (exit $ac_status); } && {
! 18965: test -z "$ac_c_werror_flag" ||
! 18966: test ! -s conftest.err
! 18967: } && test -s conftest$ac_exeext &&
! 18968: $as_test_x conftest$ac_exeext; then
1.1 misho 18969: ac_cv_lib_socket_htonl=yes
18970: else
1.1.1.3 ! misho 18971: echo "$as_me: failed program was:" >&5
! 18972: sed 's/^/| /' conftest.$ac_ext >&5
! 18973:
! 18974: ac_cv_lib_socket_htonl=no
1.1 misho 18975: fi
1.1.1.3 ! misho 18976:
! 18977: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18978: conftest$ac_exeext conftest.$ac_ext
1.1 misho 18979: LIBS=$ac_check_lib_save_LIBS
18980: fi
1.1.1.3 ! misho 18981: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_htonl" >&5
! 18982: echo "${ECHO_T}$ac_cv_lib_socket_htonl" >&6; }
! 18983: if test $ac_cv_lib_socket_htonl = yes; then
1.1 misho 18984: found=yes
18985: else
18986:
1.1.1.3 ! misho 18987: { echo "$as_me:$LINENO: checking for __htonl in -lsocket" >&5
! 18988: echo $ECHO_N "checking for __htonl in -lsocket... $ECHO_C" >&6; }
! 18989: if test "${ac_cv_lib_socket___htonl+set}" = set; then
! 18990: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 18991: else
18992: ac_check_lib_save_LIBS=$LIBS
18993: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 18994: cat >conftest.$ac_ext <<_ACEOF
! 18995: /* confdefs.h. */
! 18996: _ACEOF
! 18997: cat confdefs.h >>conftest.$ac_ext
! 18998: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 18999: /* end confdefs.h. */
19000:
19001: /* Override any GCC internal prototype to avoid an error.
19002: Use char because int might match the return type of a GCC
19003: builtin and then its argument prototype would still apply. */
19004: #ifdef __cplusplus
19005: extern "C"
19006: #endif
19007: char __htonl ();
19008: int
19009: main ()
19010: {
19011: return __htonl ();
19012: ;
19013: return 0;
19014: }
19015: _ACEOF
1.1.1.3 ! misho 19016: rm -f conftest.$ac_objext conftest$ac_exeext
! 19017: if { (ac_try="$ac_link"
! 19018: case "(($ac_try" in
! 19019: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19020: *) ac_try_echo=$ac_try;;
! 19021: esac
! 19022: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19023: (eval "$ac_link") 2>conftest.er1
! 19024: ac_status=$?
! 19025: grep -v '^ *+' conftest.er1 >conftest.err
! 19026: rm -f conftest.er1
! 19027: cat conftest.err >&5
! 19028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19029: (exit $ac_status); } && {
! 19030: test -z "$ac_c_werror_flag" ||
! 19031: test ! -s conftest.err
! 19032: } && test -s conftest$ac_exeext &&
! 19033: $as_test_x conftest$ac_exeext; then
1.1 misho 19034: ac_cv_lib_socket___htonl=yes
19035: else
1.1.1.3 ! misho 19036: echo "$as_me: failed program was:" >&5
! 19037: sed 's/^/| /' conftest.$ac_ext >&5
! 19038:
! 19039: ac_cv_lib_socket___htonl=no
1.1 misho 19040: fi
1.1.1.3 ! misho 19041:
! 19042: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19043: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19044: LIBS=$ac_check_lib_save_LIBS
19045: fi
1.1.1.3 ! misho 19046: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___htonl" >&5
! 19047: echo "${ECHO_T}$ac_cv_lib_socket___htonl" >&6; }
! 19048: if test $ac_cv_lib_socket___htonl = yes; then
1.1 misho 19049: found=yes
19050: else
19051: found=no
19052: fi
19053:
19054:
19055: fi
19056:
19057:
19058: if test "$found" = "yes"; then
19059: ac_libs=$LIBS
19060: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 19061: if test "$cross_compiling" = yes; then
1.1 misho 19062: found=no
19063: else
1.1.1.3 ! misho 19064: cat >conftest.$ac_ext <<_ACEOF
! 19065: /* confdefs.h. */
! 19066: _ACEOF
! 19067: cat confdefs.h >>conftest.$ac_ext
! 19068: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19069: /* end confdefs.h. */
19070: main() { return (0); }
19071: _ACEOF
1.1.1.3 ! misho 19072: rm -f conftest$ac_exeext
! 19073: if { (ac_try="$ac_link"
! 19074: case "(($ac_try" in
! 19075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19076: *) ac_try_echo=$ac_try;;
! 19077: esac
! 19078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19079: (eval "$ac_link") 2>&5
! 19080: ac_status=$?
! 19081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19082: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 19083: { (case "(($ac_try" in
! 19084: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19085: *) ac_try_echo=$ac_try;;
! 19086: esac
! 19087: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19088: (eval "$ac_try") 2>&5
! 19089: ac_status=$?
! 19090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19091: (exit $ac_status); }; }; then
1.1 misho 19092: found=yes
19093: else
1.1.1.3 ! misho 19094: echo "$as_me: program exited with status $ac_status" >&5
! 19095: echo "$as_me: failed program was:" >&5
! 19096: sed 's/^/| /' conftest.$ac_ext >&5
! 19097:
! 19098: ( exit $ac_status )
! 19099: found=no
1.1 misho 19100: fi
1.1.1.3 ! misho 19101: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 19102: fi
19103:
1.1.1.3 ! misho 19104:
1.1 misho 19105: LIBS=$ac_libs
19106: fi
19107:
19108: if test "$found" = "yes"; then
19109:
19110:
19111: case socket in
19112: c|c_r|pthread*) ;;
19113: *)
19114: LIBS="-lsocket $LIBS"
19115: ;;
19116: esac
19117:
19118:
19119:
1.1.1.3 ! misho 19120: cat >>confdefs.h <<\_ACEOF
! 19121: #define HAVE_HTONL 1
! 19122: _ACEOF
1.1 misho 19123:
19124:
1.1.1.3 ! misho 19125: cat >>confdefs.h <<\_ACEOF
! 19126: #define HAVE_LIBSOCKET 1
! 19127: _ACEOF
1.1 misho 19128:
19129: ac_cv_func_htonl=yes
19130: else
19131:
19132: :
19133:
19134: fi
19135:
19136: ;;
19137:
19138: esac
19139:
19140:
19141: unset ac_cv_func_gethostname
19142: unset ac_cv_func___gethostname
19143: unset found
19144:
1.1.1.3 ! misho 19145: { echo "$as_me:$LINENO: checking for gethostname" >&5
! 19146: echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; }
! 19147: if test "${ac_cv_func_gethostname+set}" = set; then
! 19148: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19149: else
1.1.1.3 ! misho 19150: cat >conftest.$ac_ext <<_ACEOF
! 19151: /* confdefs.h. */
! 19152: _ACEOF
! 19153: cat confdefs.h >>conftest.$ac_ext
! 19154: cat >>conftest.$ac_ext <<_ACEOF
! 19155: /* end confdefs.h. */
! 19156: /* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
! 19157: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 19158: #define gethostname innocuous_gethostname
1.1 misho 19159:
1.1.1.3 ! misho 19160: /* System header to define __stub macros and hopefully few prototypes,
! 19161: which can conflict with char gethostname (); below.
! 19162: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 19163: <limits.h> exists even on freestanding compilers. */
1.1 misho 19164:
1.1.1.3 ! misho 19165: #ifdef __STDC__
! 19166: # include <limits.h>
! 19167: #else
! 19168: # include <assert.h>
! 19169: #endif
1.1 misho 19170:
1.1.1.3 ! misho 19171: #undef gethostname
1.1 misho 19172:
19173: /* Override any GCC internal prototype to avoid an error.
19174: Use char because int might match the return type of a GCC
19175: builtin and then its argument prototype would still apply. */
19176: #ifdef __cplusplus
19177: extern "C"
19178: #endif
19179: char gethostname ();
1.1.1.3 ! misho 19180: /* The GNU C library defines this for functions which it implements
! 19181: to always fail with ENOSYS. Some functions are actually named
! 19182: something starting with __ and the normal name is an alias. */
! 19183: #if defined __stub_gethostname || defined __stub___gethostname
! 19184: choke me
! 19185: #endif
! 19186:
1.1 misho 19187: int
19188: main ()
19189: {
19190: return gethostname ();
19191: ;
19192: return 0;
19193: }
19194: _ACEOF
1.1.1.3 ! misho 19195: rm -f conftest.$ac_objext conftest$ac_exeext
! 19196: if { (ac_try="$ac_link"
! 19197: case "(($ac_try" in
! 19198: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19199: *) ac_try_echo=$ac_try;;
! 19200: esac
! 19201: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19202: (eval "$ac_link") 2>conftest.er1
! 19203: ac_status=$?
! 19204: grep -v '^ *+' conftest.er1 >conftest.err
! 19205: rm -f conftest.er1
! 19206: cat conftest.err >&5
! 19207: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19208: (exit $ac_status); } && {
! 19209: test -z "$ac_c_werror_flag" ||
! 19210: test ! -s conftest.err
! 19211: } && test -s conftest$ac_exeext &&
! 19212: $as_test_x conftest$ac_exeext; then
! 19213: ac_cv_func_gethostname=yes
1.1 misho 19214: else
1.1.1.3 ! misho 19215: echo "$as_me: failed program was:" >&5
! 19216: sed 's/^/| /' conftest.$ac_ext >&5
! 19217:
! 19218: ac_cv_func_gethostname=no
1.1 misho 19219: fi
1.1.1.3 ! misho 19220:
! 19221: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19222: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19223: fi
1.1.1.3 ! misho 19224: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
! 19225: echo "${ECHO_T}$ac_cv_func_gethostname" >&6; }
! 19226: if test $ac_cv_func_gethostname = yes; then
1.1 misho 19227: found=yes
19228: else
1.1.1.3 ! misho 19229: { echo "$as_me:$LINENO: checking for __gethostname" >&5
! 19230: echo $ECHO_N "checking for __gethostname... $ECHO_C" >&6; }
! 19231: if test "${ac_cv_func___gethostname+set}" = set; then
! 19232: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19233: else
1.1.1.3 ! misho 19234: cat >conftest.$ac_ext <<_ACEOF
! 19235: /* confdefs.h. */
! 19236: _ACEOF
! 19237: cat confdefs.h >>conftest.$ac_ext
! 19238: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19239: /* end confdefs.h. */
1.1.1.3 ! misho 19240: /* Define __gethostname to an innocuous variant, in case <limits.h> declares __gethostname.
! 19241: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 19242: #define __gethostname innocuous___gethostname
! 19243:
! 19244: /* System header to define __stub macros and hopefully few prototypes,
! 19245: which can conflict with char __gethostname (); below.
! 19246: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 19247: <limits.h> exists even on freestanding compilers. */
! 19248:
! 19249: #ifdef __STDC__
! 19250: # include <limits.h>
! 19251: #else
! 19252: # include <assert.h>
! 19253: #endif
! 19254:
! 19255: #undef __gethostname
1.1 misho 19256:
19257: /* Override any GCC internal prototype to avoid an error.
19258: Use char because int might match the return type of a GCC
19259: builtin and then its argument prototype would still apply. */
19260: #ifdef __cplusplus
19261: extern "C"
19262: #endif
19263: char __gethostname ();
1.1.1.3 ! misho 19264: /* The GNU C library defines this for functions which it implements
! 19265: to always fail with ENOSYS. Some functions are actually named
! 19266: something starting with __ and the normal name is an alias. */
! 19267: #if defined __stub___gethostname || defined __stub_____gethostname
! 19268: choke me
! 19269: #endif
! 19270:
1.1 misho 19271: int
19272: main ()
19273: {
19274: return __gethostname ();
19275: ;
19276: return 0;
19277: }
19278: _ACEOF
1.1.1.3 ! misho 19279: rm -f conftest.$ac_objext conftest$ac_exeext
! 19280: if { (ac_try="$ac_link"
! 19281: case "(($ac_try" in
! 19282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19283: *) ac_try_echo=$ac_try;;
! 19284: esac
! 19285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19286: (eval "$ac_link") 2>conftest.er1
! 19287: ac_status=$?
! 19288: grep -v '^ *+' conftest.er1 >conftest.err
! 19289: rm -f conftest.er1
! 19290: cat conftest.err >&5
! 19291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19292: (exit $ac_status); } && {
! 19293: test -z "$ac_c_werror_flag" ||
! 19294: test ! -s conftest.err
! 19295: } && test -s conftest$ac_exeext &&
! 19296: $as_test_x conftest$ac_exeext; then
! 19297: ac_cv_func___gethostname=yes
1.1 misho 19298: else
1.1.1.3 ! misho 19299: echo "$as_me: failed program was:" >&5
! 19300: sed 's/^/| /' conftest.$ac_ext >&5
! 19301:
! 19302: ac_cv_func___gethostname=no
1.1 misho 19303: fi
1.1.1.3 ! misho 19304:
! 19305: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19306: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19307: fi
1.1.1.3 ! misho 19308: { echo "$as_me:$LINENO: result: $ac_cv_func___gethostname" >&5
! 19309: echo "${ECHO_T}$ac_cv_func___gethostname" >&6; }
! 19310: if test $ac_cv_func___gethostname = yes; then
1.1 misho 19311: found=yes
19312: else
19313: found=no
19314: fi
19315:
19316: fi
19317:
19318:
19319: case $found in
19320: yes)
19321:
1.1.1.3 ! misho 19322: cat >>confdefs.h <<\_ACEOF
! 19323: #define HAVE_GETHOSTNAME 1
! 19324: _ACEOF
1.1 misho 19325:
1.1.1.3 ! misho 19326: ac_cv_func_gethostname=yes
1.1 misho 19327: ;;
19328:
19329: *)
19330:
1.1.1.3 ! misho 19331: unset ac_cv_lib_nsl_gethostname
! 19332: unset ac_cv_lib_nsl___gethostname
1.1 misho 19333: unset found
1.1.1.3 ! misho 19334: { echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
! 19335: echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6; }
! 19336: if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
! 19337: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19338: else
19339: ac_check_lib_save_LIBS=$LIBS
19340: LIBS="-lnsl $LIBS"
1.1.1.3 ! misho 19341: cat >conftest.$ac_ext <<_ACEOF
! 19342: /* confdefs.h. */
! 19343: _ACEOF
! 19344: cat confdefs.h >>conftest.$ac_ext
! 19345: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19346: /* end confdefs.h. */
19347:
19348: /* Override any GCC internal prototype to avoid an error.
19349: Use char because int might match the return type of a GCC
19350: builtin and then its argument prototype would still apply. */
19351: #ifdef __cplusplus
19352: extern "C"
19353: #endif
1.1.1.3 ! misho 19354: char gethostname ();
1.1 misho 19355: int
19356: main ()
19357: {
1.1.1.3 ! misho 19358: return gethostname ();
1.1 misho 19359: ;
19360: return 0;
19361: }
19362: _ACEOF
1.1.1.3 ! misho 19363: rm -f conftest.$ac_objext conftest$ac_exeext
! 19364: if { (ac_try="$ac_link"
! 19365: case "(($ac_try" in
! 19366: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19367: *) ac_try_echo=$ac_try;;
! 19368: esac
! 19369: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19370: (eval "$ac_link") 2>conftest.er1
! 19371: ac_status=$?
! 19372: grep -v '^ *+' conftest.er1 >conftest.err
! 19373: rm -f conftest.er1
! 19374: cat conftest.err >&5
! 19375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19376: (exit $ac_status); } && {
! 19377: test -z "$ac_c_werror_flag" ||
! 19378: test ! -s conftest.err
! 19379: } && test -s conftest$ac_exeext &&
! 19380: $as_test_x conftest$ac_exeext; then
! 19381: ac_cv_lib_nsl_gethostname=yes
1.1 misho 19382: else
1.1.1.3 ! misho 19383: echo "$as_me: failed program was:" >&5
! 19384: sed 's/^/| /' conftest.$ac_ext >&5
! 19385:
! 19386: ac_cv_lib_nsl_gethostname=no
1.1 misho 19387: fi
1.1.1.3 ! misho 19388:
! 19389: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19390: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19391: LIBS=$ac_check_lib_save_LIBS
19392: fi
1.1.1.3 ! misho 19393: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
! 19394: echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6; }
! 19395: if test $ac_cv_lib_nsl_gethostname = yes; then
1.1 misho 19396: found=yes
19397: else
19398:
1.1.1.3 ! misho 19399: { echo "$as_me:$LINENO: checking for __gethostname in -lnsl" >&5
! 19400: echo $ECHO_N "checking for __gethostname in -lnsl... $ECHO_C" >&6; }
! 19401: if test "${ac_cv_lib_nsl___gethostname+set}" = set; then
! 19402: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19403: else
19404: ac_check_lib_save_LIBS=$LIBS
19405: LIBS="-lnsl $LIBS"
1.1.1.3 ! misho 19406: cat >conftest.$ac_ext <<_ACEOF
! 19407: /* confdefs.h. */
! 19408: _ACEOF
! 19409: cat confdefs.h >>conftest.$ac_ext
! 19410: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19411: /* end confdefs.h. */
19412:
19413: /* Override any GCC internal prototype to avoid an error.
19414: Use char because int might match the return type of a GCC
19415: builtin and then its argument prototype would still apply. */
19416: #ifdef __cplusplus
19417: extern "C"
19418: #endif
1.1.1.3 ! misho 19419: char __gethostname ();
1.1 misho 19420: int
19421: main ()
19422: {
1.1.1.3 ! misho 19423: return __gethostname ();
1.1 misho 19424: ;
19425: return 0;
19426: }
19427: _ACEOF
1.1.1.3 ! misho 19428: rm -f conftest.$ac_objext conftest$ac_exeext
! 19429: if { (ac_try="$ac_link"
! 19430: case "(($ac_try" in
! 19431: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19432: *) ac_try_echo=$ac_try;;
! 19433: esac
! 19434: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19435: (eval "$ac_link") 2>conftest.er1
! 19436: ac_status=$?
! 19437: grep -v '^ *+' conftest.er1 >conftest.err
! 19438: rm -f conftest.er1
! 19439: cat conftest.err >&5
! 19440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19441: (exit $ac_status); } && {
! 19442: test -z "$ac_c_werror_flag" ||
! 19443: test ! -s conftest.err
! 19444: } && test -s conftest$ac_exeext &&
! 19445: $as_test_x conftest$ac_exeext; then
! 19446: ac_cv_lib_nsl___gethostname=yes
1.1 misho 19447: else
1.1.1.3 ! misho 19448: echo "$as_me: failed program was:" >&5
! 19449: sed 's/^/| /' conftest.$ac_ext >&5
! 19450:
! 19451: ac_cv_lib_nsl___gethostname=no
1.1 misho 19452: fi
1.1.1.3 ! misho 19453:
! 19454: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19455: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19456: LIBS=$ac_check_lib_save_LIBS
19457: fi
1.1.1.3 ! misho 19458: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl___gethostname" >&5
! 19459: echo "${ECHO_T}$ac_cv_lib_nsl___gethostname" >&6; }
! 19460: if test $ac_cv_lib_nsl___gethostname = yes; then
1.1 misho 19461: found=yes
19462: else
19463: found=no
19464: fi
19465:
19466:
19467: fi
19468:
19469:
19470: if test "$found" = "yes"; then
19471: ac_libs=$LIBS
19472: LIBS="$LIBS -lnsl"
1.1.1.3 ! misho 19473: if test "$cross_compiling" = yes; then
1.1 misho 19474: found=no
19475: else
1.1.1.3 ! misho 19476: cat >conftest.$ac_ext <<_ACEOF
! 19477: /* confdefs.h. */
! 19478: _ACEOF
! 19479: cat confdefs.h >>conftest.$ac_ext
! 19480: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19481: /* end confdefs.h. */
19482: main() { return (0); }
19483: _ACEOF
1.1.1.3 ! misho 19484: rm -f conftest$ac_exeext
! 19485: if { (ac_try="$ac_link"
! 19486: case "(($ac_try" in
! 19487: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19488: *) ac_try_echo=$ac_try;;
! 19489: esac
! 19490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19491: (eval "$ac_link") 2>&5
! 19492: ac_status=$?
! 19493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19494: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 19495: { (case "(($ac_try" in
! 19496: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19497: *) ac_try_echo=$ac_try;;
! 19498: esac
! 19499: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19500: (eval "$ac_try") 2>&5
! 19501: ac_status=$?
! 19502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19503: (exit $ac_status); }; }; then
1.1 misho 19504: found=yes
19505: else
1.1.1.3 ! misho 19506: echo "$as_me: program exited with status $ac_status" >&5
! 19507: echo "$as_me: failed program was:" >&5
! 19508: sed 's/^/| /' conftest.$ac_ext >&5
! 19509:
! 19510: ( exit $ac_status )
! 19511: found=no
1.1 misho 19512: fi
1.1.1.3 ! misho 19513: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 19514: fi
19515:
1.1.1.3 ! misho 19516:
1.1 misho 19517: LIBS=$ac_libs
19518: fi
19519:
19520: if test "$found" = "yes"; then
19521:
19522:
19523: case nsl in
19524: c|c_r|pthread*) ;;
19525: *)
19526: LIBS="-lnsl $LIBS"
19527: ;;
19528: esac
19529:
19530:
19531:
1.1.1.3 ! misho 19532: cat >>confdefs.h <<\_ACEOF
! 19533: #define HAVE_GETHOSTNAME 1
! 19534: _ACEOF
1.1 misho 19535:
19536:
1.1.1.3 ! misho 19537: cat >>confdefs.h <<\_ACEOF
! 19538: #define HAVE_LIBNSL 1
! 19539: _ACEOF
1.1 misho 19540:
1.1.1.3 ! misho 19541: ac_cv_func_gethostname=yes
1.1 misho 19542: else
19543:
19544: :
19545:
19546: fi
19547:
19548: ;;
19549:
19550: esac
19551:
19552:
1.1.1.3 ! misho 19553: unset ac_cv_func_gethostbyaddr
! 19554: unset ac_cv_func___gethostbyaddr
1.1 misho 19555: unset found
19556:
1.1.1.3 ! misho 19557: { echo "$as_me:$LINENO: checking for gethostbyaddr" >&5
! 19558: echo $ECHO_N "checking for gethostbyaddr... $ECHO_C" >&6; }
! 19559: if test "${ac_cv_func_gethostbyaddr+set}" = set; then
! 19560: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19561: else
1.1.1.3 ! misho 19562: cat >conftest.$ac_ext <<_ACEOF
! 19563: /* confdefs.h. */
! 19564: _ACEOF
! 19565: cat confdefs.h >>conftest.$ac_ext
! 19566: cat >>conftest.$ac_ext <<_ACEOF
! 19567: /* end confdefs.h. */
! 19568: /* Define gethostbyaddr to an innocuous variant, in case <limits.h> declares gethostbyaddr.
! 19569: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 19570: #define gethostbyaddr innocuous_gethostbyaddr
1.1 misho 19571:
1.1.1.3 ! misho 19572: /* System header to define __stub macros and hopefully few prototypes,
! 19573: which can conflict with char gethostbyaddr (); below.
! 19574: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 19575: <limits.h> exists even on freestanding compilers. */
1.1 misho 19576:
1.1.1.3 ! misho 19577: #ifdef __STDC__
! 19578: # include <limits.h>
! 19579: #else
! 19580: # include <assert.h>
! 19581: #endif
1.1 misho 19582:
1.1.1.3 ! misho 19583: #undef gethostbyaddr
1.1 misho 19584:
19585: /* Override any GCC internal prototype to avoid an error.
19586: Use char because int might match the return type of a GCC
19587: builtin and then its argument prototype would still apply. */
19588: #ifdef __cplusplus
19589: extern "C"
19590: #endif
1.1.1.3 ! misho 19591: char gethostbyaddr ();
! 19592: /* The GNU C library defines this for functions which it implements
! 19593: to always fail with ENOSYS. Some functions are actually named
! 19594: something starting with __ and the normal name is an alias. */
! 19595: #if defined __stub_gethostbyaddr || defined __stub___gethostbyaddr
! 19596: choke me
! 19597: #endif
! 19598:
1.1 misho 19599: int
19600: main ()
19601: {
1.1.1.3 ! misho 19602: return gethostbyaddr ();
1.1 misho 19603: ;
19604: return 0;
19605: }
19606: _ACEOF
1.1.1.3 ! misho 19607: rm -f conftest.$ac_objext conftest$ac_exeext
! 19608: if { (ac_try="$ac_link"
! 19609: case "(($ac_try" in
! 19610: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19611: *) ac_try_echo=$ac_try;;
! 19612: esac
! 19613: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19614: (eval "$ac_link") 2>conftest.er1
! 19615: ac_status=$?
! 19616: grep -v '^ *+' conftest.er1 >conftest.err
! 19617: rm -f conftest.er1
! 19618: cat conftest.err >&5
! 19619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19620: (exit $ac_status); } && {
! 19621: test -z "$ac_c_werror_flag" ||
! 19622: test ! -s conftest.err
! 19623: } && test -s conftest$ac_exeext &&
! 19624: $as_test_x conftest$ac_exeext; then
! 19625: ac_cv_func_gethostbyaddr=yes
1.1 misho 19626: else
1.1.1.3 ! misho 19627: echo "$as_me: failed program was:" >&5
! 19628: sed 's/^/| /' conftest.$ac_ext >&5
! 19629:
! 19630: ac_cv_func_gethostbyaddr=no
1.1 misho 19631: fi
1.1.1.3 ! misho 19632:
! 19633: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19634: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19635: fi
1.1.1.3 ! misho 19636: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr" >&5
! 19637: echo "${ECHO_T}$ac_cv_func_gethostbyaddr" >&6; }
! 19638: if test $ac_cv_func_gethostbyaddr = yes; then
1.1 misho 19639: found=yes
19640: else
1.1.1.3 ! misho 19641: { echo "$as_me:$LINENO: checking for __gethostbyaddr" >&5
! 19642: echo $ECHO_N "checking for __gethostbyaddr... $ECHO_C" >&6; }
! 19643: if test "${ac_cv_func___gethostbyaddr+set}" = set; then
! 19644: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19645: else
1.1.1.3 ! misho 19646: cat >conftest.$ac_ext <<_ACEOF
! 19647: /* confdefs.h. */
! 19648: _ACEOF
! 19649: cat confdefs.h >>conftest.$ac_ext
! 19650: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19651: /* end confdefs.h. */
1.1.1.3 ! misho 19652: /* Define __gethostbyaddr to an innocuous variant, in case <limits.h> declares __gethostbyaddr.
! 19653: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 19654: #define __gethostbyaddr innocuous___gethostbyaddr
! 19655:
! 19656: /* System header to define __stub macros and hopefully few prototypes,
! 19657: which can conflict with char __gethostbyaddr (); below.
! 19658: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 19659: <limits.h> exists even on freestanding compilers. */
! 19660:
! 19661: #ifdef __STDC__
! 19662: # include <limits.h>
! 19663: #else
! 19664: # include <assert.h>
! 19665: #endif
! 19666:
! 19667: #undef __gethostbyaddr
1.1 misho 19668:
19669: /* Override any GCC internal prototype to avoid an error.
19670: Use char because int might match the return type of a GCC
19671: builtin and then its argument prototype would still apply. */
19672: #ifdef __cplusplus
19673: extern "C"
19674: #endif
1.1.1.3 ! misho 19675: char __gethostbyaddr ();
! 19676: /* The GNU C library defines this for functions which it implements
! 19677: to always fail with ENOSYS. Some functions are actually named
! 19678: something starting with __ and the normal name is an alias. */
! 19679: #if defined __stub___gethostbyaddr || defined __stub_____gethostbyaddr
! 19680: choke me
! 19681: #endif
! 19682:
1.1 misho 19683: int
19684: main ()
19685: {
1.1.1.3 ! misho 19686: return __gethostbyaddr ();
1.1 misho 19687: ;
19688: return 0;
19689: }
19690: _ACEOF
1.1.1.3 ! misho 19691: rm -f conftest.$ac_objext conftest$ac_exeext
! 19692: if { (ac_try="$ac_link"
! 19693: case "(($ac_try" in
! 19694: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19695: *) ac_try_echo=$ac_try;;
! 19696: esac
! 19697: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19698: (eval "$ac_link") 2>conftest.er1
! 19699: ac_status=$?
! 19700: grep -v '^ *+' conftest.er1 >conftest.err
! 19701: rm -f conftest.er1
! 19702: cat conftest.err >&5
! 19703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19704: (exit $ac_status); } && {
! 19705: test -z "$ac_c_werror_flag" ||
! 19706: test ! -s conftest.err
! 19707: } && test -s conftest$ac_exeext &&
! 19708: $as_test_x conftest$ac_exeext; then
! 19709: ac_cv_func___gethostbyaddr=yes
1.1 misho 19710: else
1.1.1.3 ! misho 19711: echo "$as_me: failed program was:" >&5
! 19712: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 19713:
1.1.1.3 ! misho 19714: ac_cv_func___gethostbyaddr=no
1.1 misho 19715: fi
19716:
1.1.1.3 ! misho 19717: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19718: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19719: fi
1.1.1.3 ! misho 19720: { echo "$as_me:$LINENO: result: $ac_cv_func___gethostbyaddr" >&5
! 19721: echo "${ECHO_T}$ac_cv_func___gethostbyaddr" >&6; }
! 19722: if test $ac_cv_func___gethostbyaddr = yes; then
1.1 misho 19723: found=yes
19724: else
19725: found=no
19726: fi
19727:
19728: fi
19729:
19730:
19731: case $found in
19732: yes)
19733:
1.1.1.3 ! misho 19734: cat >>confdefs.h <<\_ACEOF
! 19735: #define HAVE_GETHOSTBYADDR 1
! 19736: _ACEOF
1.1 misho 19737:
1.1.1.3 ! misho 19738: ac_cv_func_gethostbyaddr=yes
1.1 misho 19739: ;;
19740:
19741: *)
19742:
1.1.1.3 ! misho 19743: unset ac_cv_lib_nsl_gethostbyaddr
! 19744: unset ac_cv_lib_nsl___gethostbyaddr
1.1 misho 19745: unset found
1.1.1.3 ! misho 19746: { echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5
! 19747: echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6; }
! 19748: if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
! 19749: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19750: else
19751: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 ! misho 19752: LIBS="-lnsl $LIBS"
! 19753: cat >conftest.$ac_ext <<_ACEOF
! 19754: /* confdefs.h. */
! 19755: _ACEOF
! 19756: cat confdefs.h >>conftest.$ac_ext
! 19757: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19758: /* end confdefs.h. */
19759:
19760: /* Override any GCC internal prototype to avoid an error.
19761: Use char because int might match the return type of a GCC
19762: builtin and then its argument prototype would still apply. */
19763: #ifdef __cplusplus
19764: extern "C"
19765: #endif
1.1.1.3 ! misho 19766: char gethostbyaddr ();
1.1 misho 19767: int
19768: main ()
19769: {
1.1.1.3 ! misho 19770: return gethostbyaddr ();
1.1 misho 19771: ;
19772: return 0;
19773: }
19774: _ACEOF
1.1.1.3 ! misho 19775: rm -f conftest.$ac_objext conftest$ac_exeext
! 19776: if { (ac_try="$ac_link"
! 19777: case "(($ac_try" in
! 19778: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19779: *) ac_try_echo=$ac_try;;
! 19780: esac
! 19781: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19782: (eval "$ac_link") 2>conftest.er1
! 19783: ac_status=$?
! 19784: grep -v '^ *+' conftest.er1 >conftest.err
! 19785: rm -f conftest.er1
! 19786: cat conftest.err >&5
! 19787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19788: (exit $ac_status); } && {
! 19789: test -z "$ac_c_werror_flag" ||
! 19790: test ! -s conftest.err
! 19791: } && test -s conftest$ac_exeext &&
! 19792: $as_test_x conftest$ac_exeext; then
! 19793: ac_cv_lib_nsl_gethostbyaddr=yes
1.1 misho 19794: else
1.1.1.3 ! misho 19795: echo "$as_me: failed program was:" >&5
! 19796: sed 's/^/| /' conftest.$ac_ext >&5
! 19797:
! 19798: ac_cv_lib_nsl_gethostbyaddr=no
1.1 misho 19799: fi
1.1.1.3 ! misho 19800:
! 19801: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19802: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19803: LIBS=$ac_check_lib_save_LIBS
19804: fi
1.1.1.3 ! misho 19805: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
! 19806: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6; }
! 19807: if test $ac_cv_lib_nsl_gethostbyaddr = yes; then
1.1 misho 19808: found=yes
19809: else
19810:
1.1.1.3 ! misho 19811: { echo "$as_me:$LINENO: checking for __gethostbyaddr in -lnsl" >&5
! 19812: echo $ECHO_N "checking for __gethostbyaddr in -lnsl... $ECHO_C" >&6; }
! 19813: if test "${ac_cv_lib_nsl___gethostbyaddr+set}" = set; then
! 19814: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19815: else
19816: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 ! misho 19817: LIBS="-lnsl $LIBS"
! 19818: cat >conftest.$ac_ext <<_ACEOF
! 19819: /* confdefs.h. */
! 19820: _ACEOF
! 19821: cat confdefs.h >>conftest.$ac_ext
! 19822: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19823: /* end confdefs.h. */
19824:
19825: /* Override any GCC internal prototype to avoid an error.
19826: Use char because int might match the return type of a GCC
19827: builtin and then its argument prototype would still apply. */
19828: #ifdef __cplusplus
19829: extern "C"
19830: #endif
1.1.1.3 ! misho 19831: char __gethostbyaddr ();
1.1 misho 19832: int
19833: main ()
19834: {
1.1.1.3 ! misho 19835: return __gethostbyaddr ();
1.1 misho 19836: ;
19837: return 0;
19838: }
19839: _ACEOF
1.1.1.3 ! misho 19840: rm -f conftest.$ac_objext conftest$ac_exeext
! 19841: if { (ac_try="$ac_link"
! 19842: case "(($ac_try" in
! 19843: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19844: *) ac_try_echo=$ac_try;;
! 19845: esac
! 19846: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19847: (eval "$ac_link") 2>conftest.er1
! 19848: ac_status=$?
! 19849: grep -v '^ *+' conftest.er1 >conftest.err
! 19850: rm -f conftest.er1
! 19851: cat conftest.err >&5
! 19852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19853: (exit $ac_status); } && {
! 19854: test -z "$ac_c_werror_flag" ||
! 19855: test ! -s conftest.err
! 19856: } && test -s conftest$ac_exeext &&
! 19857: $as_test_x conftest$ac_exeext; then
! 19858: ac_cv_lib_nsl___gethostbyaddr=yes
1.1 misho 19859: else
1.1.1.3 ! misho 19860: echo "$as_me: failed program was:" >&5
! 19861: sed 's/^/| /' conftest.$ac_ext >&5
! 19862:
! 19863: ac_cv_lib_nsl___gethostbyaddr=no
1.1 misho 19864: fi
1.1.1.3 ! misho 19865:
! 19866: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19867: conftest$ac_exeext conftest.$ac_ext
1.1 misho 19868: LIBS=$ac_check_lib_save_LIBS
19869: fi
1.1.1.3 ! misho 19870: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl___gethostbyaddr" >&5
! 19871: echo "${ECHO_T}$ac_cv_lib_nsl___gethostbyaddr" >&6; }
! 19872: if test $ac_cv_lib_nsl___gethostbyaddr = yes; then
1.1 misho 19873: found=yes
19874: else
19875: found=no
19876: fi
19877:
19878:
19879: fi
19880:
19881:
19882: if test "$found" = "yes"; then
19883: ac_libs=$LIBS
1.1.1.3 ! misho 19884: LIBS="$LIBS -lnsl"
! 19885: if test "$cross_compiling" = yes; then
1.1 misho 19886: found=no
19887: else
1.1.1.3 ! misho 19888: cat >conftest.$ac_ext <<_ACEOF
! 19889: /* confdefs.h. */
! 19890: _ACEOF
! 19891: cat confdefs.h >>conftest.$ac_ext
! 19892: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19893: /* end confdefs.h. */
19894: main() { return (0); }
19895: _ACEOF
1.1.1.3 ! misho 19896: rm -f conftest$ac_exeext
! 19897: if { (ac_try="$ac_link"
! 19898: case "(($ac_try" in
! 19899: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19900: *) ac_try_echo=$ac_try;;
! 19901: esac
! 19902: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19903: (eval "$ac_link") 2>&5
! 19904: ac_status=$?
! 19905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19906: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 19907: { (case "(($ac_try" in
! 19908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19909: *) ac_try_echo=$ac_try;;
! 19910: esac
! 19911: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19912: (eval "$ac_try") 2>&5
! 19913: ac_status=$?
! 19914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19915: (exit $ac_status); }; }; then
1.1 misho 19916: found=yes
19917: else
1.1.1.3 ! misho 19918: echo "$as_me: program exited with status $ac_status" >&5
! 19919: echo "$as_me: failed program was:" >&5
! 19920: sed 's/^/| /' conftest.$ac_ext >&5
! 19921:
! 19922: ( exit $ac_status )
! 19923: found=no
1.1 misho 19924: fi
1.1.1.3 ! misho 19925: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 19926: fi
19927:
1.1.1.3 ! misho 19928:
1.1 misho 19929: LIBS=$ac_libs
19930: fi
19931:
19932: if test "$found" = "yes"; then
19933:
19934:
1.1.1.3 ! misho 19935: case nsl in
1.1 misho 19936: c|c_r|pthread*) ;;
19937: *)
1.1.1.3 ! misho 19938: LIBS="-lnsl $LIBS"
1.1 misho 19939: ;;
19940: esac
19941:
19942:
19943:
1.1.1.3 ! misho 19944: cat >>confdefs.h <<\_ACEOF
! 19945: #define HAVE_GETHOSTBYADDR 1
! 19946: _ACEOF
1.1 misho 19947:
19948:
1.1.1.3 ! misho 19949: cat >>confdefs.h <<\_ACEOF
! 19950: #define HAVE_LIBNSL 1
! 19951: _ACEOF
1.1 misho 19952:
1.1.1.3 ! misho 19953: ac_cv_func_gethostbyaddr=yes
1.1 misho 19954: else
19955:
19956: :
19957:
19958: fi
19959:
19960: ;;
19961:
19962: esac
19963:
19964:
1.1.1.3 ! misho 19965: unset ac_cv_func_yp_get_default_domain
! 19966: unset ac_cv_func___yp_get_default_domain
! 19967: unset found
1.1 misho 19968:
1.1.1.3 ! misho 19969: { echo "$as_me:$LINENO: checking for yp_get_default_domain" >&5
! 19970: echo $ECHO_N "checking for yp_get_default_domain... $ECHO_C" >&6; }
! 19971: if test "${ac_cv_func_yp_get_default_domain+set}" = set; then
! 19972: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 19973: else
1.1.1.3 ! misho 19974: cat >conftest.$ac_ext <<_ACEOF
! 19975: /* confdefs.h. */
! 19976: _ACEOF
! 19977: cat confdefs.h >>conftest.$ac_ext
! 19978: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 19979: /* end confdefs.h. */
1.1.1.3 ! misho 19980: /* Define yp_get_default_domain to an innocuous variant, in case <limits.h> declares yp_get_default_domain.
! 19981: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 19982: #define yp_get_default_domain innocuous_yp_get_default_domain
! 19983:
! 19984: /* System header to define __stub macros and hopefully few prototypes,
! 19985: which can conflict with char yp_get_default_domain (); below.
! 19986: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 19987: <limits.h> exists even on freestanding compilers. */
! 19988:
! 19989: #ifdef __STDC__
! 19990: # include <limits.h>
! 19991: #else
! 19992: # include <assert.h>
! 19993: #endif
! 19994:
! 19995: #undef yp_get_default_domain
1.1 misho 19996:
19997: /* Override any GCC internal prototype to avoid an error.
19998: Use char because int might match the return type of a GCC
19999: builtin and then its argument prototype would still apply. */
20000: #ifdef __cplusplus
20001: extern "C"
20002: #endif
1.1.1.3 ! misho 20003: char yp_get_default_domain ();
! 20004: /* The GNU C library defines this for functions which it implements
! 20005: to always fail with ENOSYS. Some functions are actually named
! 20006: something starting with __ and the normal name is an alias. */
! 20007: #if defined __stub_yp_get_default_domain || defined __stub___yp_get_default_domain
! 20008: choke me
! 20009: #endif
! 20010:
1.1 misho 20011: int
20012: main ()
20013: {
1.1.1.3 ! misho 20014: return yp_get_default_domain ();
1.1 misho 20015: ;
20016: return 0;
20017: }
20018: _ACEOF
1.1.1.3 ! misho 20019: rm -f conftest.$ac_objext conftest$ac_exeext
! 20020: if { (ac_try="$ac_link"
! 20021: case "(($ac_try" in
! 20022: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20023: *) ac_try_echo=$ac_try;;
! 20024: esac
! 20025: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20026: (eval "$ac_link") 2>conftest.er1
! 20027: ac_status=$?
! 20028: grep -v '^ *+' conftest.er1 >conftest.err
! 20029: rm -f conftest.er1
! 20030: cat conftest.err >&5
! 20031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20032: (exit $ac_status); } && {
! 20033: test -z "$ac_c_werror_flag" ||
! 20034: test ! -s conftest.err
! 20035: } && test -s conftest$ac_exeext &&
! 20036: $as_test_x conftest$ac_exeext; then
! 20037: ac_cv_func_yp_get_default_domain=yes
1.1 misho 20038: else
1.1.1.3 ! misho 20039: echo "$as_me: failed program was:" >&5
! 20040: sed 's/^/| /' conftest.$ac_ext >&5
! 20041:
! 20042: ac_cv_func_yp_get_default_domain=no
1.1 misho 20043: fi
1.1.1.3 ! misho 20044:
! 20045: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20046: conftest$ac_exeext conftest.$ac_ext
1.1 misho 20047: fi
1.1.1.3 ! misho 20048: { echo "$as_me:$LINENO: result: $ac_cv_func_yp_get_default_domain" >&5
! 20049: echo "${ECHO_T}$ac_cv_func_yp_get_default_domain" >&6; }
! 20050: if test $ac_cv_func_yp_get_default_domain = yes; then
! 20051: found=yes
! 20052: else
! 20053: { echo "$as_me:$LINENO: checking for __yp_get_default_domain" >&5
! 20054: echo $ECHO_N "checking for __yp_get_default_domain... $ECHO_C" >&6; }
! 20055: if test "${ac_cv_func___yp_get_default_domain+set}" = set; then
! 20056: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20057: else
! 20058: cat >conftest.$ac_ext <<_ACEOF
! 20059: /* confdefs.h. */
1.1 misho 20060: _ACEOF
1.1.1.3 ! misho 20061: cat confdefs.h >>conftest.$ac_ext
! 20062: cat >>conftest.$ac_ext <<_ACEOF
! 20063: /* end confdefs.h. */
! 20064: /* Define __yp_get_default_domain to an innocuous variant, in case <limits.h> declares __yp_get_default_domain.
! 20065: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20066: #define __yp_get_default_domain innocuous___yp_get_default_domain
1.1 misho 20067:
1.1.1.3 ! misho 20068: /* System header to define __stub macros and hopefully few prototypes,
! 20069: which can conflict with char __yp_get_default_domain (); below.
! 20070: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20071: <limits.h> exists even on freestanding compilers. */
1.1 misho 20072:
1.1.1.3 ! misho 20073: #ifdef __STDC__
! 20074: # include <limits.h>
! 20075: #else
! 20076: # include <assert.h>
! 20077: #endif
1.1 misho 20078:
1.1.1.3 ! misho 20079: #undef __yp_get_default_domain
1.1 misho 20080:
1.1.1.3 ! misho 20081: /* Override any GCC internal prototype to avoid an error.
! 20082: Use char because int might match the return type of a GCC
! 20083: builtin and then its argument prototype would still apply. */
! 20084: #ifdef __cplusplus
! 20085: extern "C"
! 20086: #endif
! 20087: char __yp_get_default_domain ();
! 20088: /* The GNU C library defines this for functions which it implements
! 20089: to always fail with ENOSYS. Some functions are actually named
! 20090: something starting with __ and the normal name is an alias. */
! 20091: #if defined __stub___yp_get_default_domain || defined __stub_____yp_get_default_domain
! 20092: choke me
! 20093: #endif
1.1 misho 20094:
1.1.1.3 ! misho 20095: int
! 20096: main ()
! 20097: {
! 20098: return __yp_get_default_domain ();
! 20099: ;
! 20100: return 0;
! 20101: }
! 20102: _ACEOF
! 20103: rm -f conftest.$ac_objext conftest$ac_exeext
! 20104: if { (ac_try="$ac_link"
! 20105: case "(($ac_try" in
! 20106: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20107: *) ac_try_echo=$ac_try;;
! 20108: esac
! 20109: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20110: (eval "$ac_link") 2>conftest.er1
! 20111: ac_status=$?
! 20112: grep -v '^ *+' conftest.er1 >conftest.err
! 20113: rm -f conftest.er1
! 20114: cat conftest.err >&5
! 20115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20116: (exit $ac_status); } && {
! 20117: test -z "$ac_c_werror_flag" ||
! 20118: test ! -s conftest.err
! 20119: } && test -s conftest$ac_exeext &&
! 20120: $as_test_x conftest$ac_exeext; then
! 20121: ac_cv_func___yp_get_default_domain=yes
1.1 misho 20122: else
1.1.1.3 ! misho 20123: echo "$as_me: failed program was:" >&5
! 20124: sed 's/^/| /' conftest.$ac_ext >&5
! 20125:
! 20126: ac_cv_func___yp_get_default_domain=no
! 20127: fi
! 20128:
! 20129: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20130: conftest$ac_exeext conftest.$ac_ext
! 20131: fi
! 20132: { echo "$as_me:$LINENO: result: $ac_cv_func___yp_get_default_domain" >&5
! 20133: echo "${ECHO_T}$ac_cv_func___yp_get_default_domain" >&6; }
! 20134: if test $ac_cv_func___yp_get_default_domain = yes; then
1.1 misho 20135: found=yes
20136: else
20137: found=no
20138: fi
20139:
20140: fi
20141:
20142:
20143: case $found in
20144: yes)
20145:
1.1.1.3 ! misho 20146: cat >>confdefs.h <<\_ACEOF
! 20147: #define HAVE_YP_GET_DEFAULT_DOMAIN 1
! 20148: _ACEOF
1.1 misho 20149:
1.1.1.3 ! misho 20150: ac_cv_func_yp_get_default_domain=yes
1.1 misho 20151: ;;
20152:
20153: *)
20154:
1.1.1.3 ! misho 20155: unset ac_cv_lib_nsl_yp_get_default_domain
! 20156: unset ac_cv_lib_nsl___yp_get_default_domain
1.1 misho 20157: unset found
1.1.1.3 ! misho 20158: { echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
! 20159: echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6; }
! 20160: if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
! 20161: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20162: else
20163: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 ! misho 20164: LIBS="-lnsl $LIBS"
! 20165: cat >conftest.$ac_ext <<_ACEOF
! 20166: /* confdefs.h. */
! 20167: _ACEOF
! 20168: cat confdefs.h >>conftest.$ac_ext
! 20169: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20170: /* end confdefs.h. */
20171:
20172: /* Override any GCC internal prototype to avoid an error.
20173: Use char because int might match the return type of a GCC
20174: builtin and then its argument prototype would still apply. */
20175: #ifdef __cplusplus
20176: extern "C"
20177: #endif
1.1.1.3 ! misho 20178: char yp_get_default_domain ();
1.1 misho 20179: int
20180: main ()
20181: {
1.1.1.3 ! misho 20182: return yp_get_default_domain ();
1.1 misho 20183: ;
20184: return 0;
20185: }
20186: _ACEOF
1.1.1.3 ! misho 20187: rm -f conftest.$ac_objext conftest$ac_exeext
! 20188: if { (ac_try="$ac_link"
! 20189: case "(($ac_try" in
! 20190: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20191: *) ac_try_echo=$ac_try;;
! 20192: esac
! 20193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20194: (eval "$ac_link") 2>conftest.er1
! 20195: ac_status=$?
! 20196: grep -v '^ *+' conftest.er1 >conftest.err
! 20197: rm -f conftest.er1
! 20198: cat conftest.err >&5
! 20199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20200: (exit $ac_status); } && {
! 20201: test -z "$ac_c_werror_flag" ||
! 20202: test ! -s conftest.err
! 20203: } && test -s conftest$ac_exeext &&
! 20204: $as_test_x conftest$ac_exeext; then
! 20205: ac_cv_lib_nsl_yp_get_default_domain=yes
1.1 misho 20206: else
1.1.1.3 ! misho 20207: echo "$as_me: failed program was:" >&5
! 20208: sed 's/^/| /' conftest.$ac_ext >&5
! 20209:
! 20210: ac_cv_lib_nsl_yp_get_default_domain=no
1.1 misho 20211: fi
1.1.1.3 ! misho 20212:
! 20213: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20214: conftest$ac_exeext conftest.$ac_ext
1.1 misho 20215: LIBS=$ac_check_lib_save_LIBS
20216: fi
1.1.1.3 ! misho 20217: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
! 20218: echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
! 20219: if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
1.1 misho 20220: found=yes
20221: else
20222:
1.1.1.3 ! misho 20223: { echo "$as_me:$LINENO: checking for __yp_get_default_domain in -lnsl" >&5
! 20224: echo $ECHO_N "checking for __yp_get_default_domain in -lnsl... $ECHO_C" >&6; }
! 20225: if test "${ac_cv_lib_nsl___yp_get_default_domain+set}" = set; then
! 20226: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20227: else
20228: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 ! misho 20229: LIBS="-lnsl $LIBS"
! 20230: cat >conftest.$ac_ext <<_ACEOF
! 20231: /* confdefs.h. */
! 20232: _ACEOF
! 20233: cat confdefs.h >>conftest.$ac_ext
! 20234: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20235: /* end confdefs.h. */
20236:
20237: /* Override any GCC internal prototype to avoid an error.
20238: Use char because int might match the return type of a GCC
20239: builtin and then its argument prototype would still apply. */
20240: #ifdef __cplusplus
20241: extern "C"
20242: #endif
1.1.1.3 ! misho 20243: char __yp_get_default_domain ();
1.1 misho 20244: int
20245: main ()
20246: {
1.1.1.3 ! misho 20247: return __yp_get_default_domain ();
1.1 misho 20248: ;
20249: return 0;
20250: }
20251: _ACEOF
1.1.1.3 ! misho 20252: rm -f conftest.$ac_objext conftest$ac_exeext
! 20253: if { (ac_try="$ac_link"
! 20254: case "(($ac_try" in
! 20255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20256: *) ac_try_echo=$ac_try;;
! 20257: esac
! 20258: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20259: (eval "$ac_link") 2>conftest.er1
! 20260: ac_status=$?
! 20261: grep -v '^ *+' conftest.er1 >conftest.err
! 20262: rm -f conftest.er1
! 20263: cat conftest.err >&5
! 20264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20265: (exit $ac_status); } && {
! 20266: test -z "$ac_c_werror_flag" ||
! 20267: test ! -s conftest.err
! 20268: } && test -s conftest$ac_exeext &&
! 20269: $as_test_x conftest$ac_exeext; then
! 20270: ac_cv_lib_nsl___yp_get_default_domain=yes
1.1 misho 20271: else
1.1.1.3 ! misho 20272: echo "$as_me: failed program was:" >&5
! 20273: sed 's/^/| /' conftest.$ac_ext >&5
! 20274:
! 20275: ac_cv_lib_nsl___yp_get_default_domain=no
1.1 misho 20276: fi
1.1.1.3 ! misho 20277:
! 20278: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20279: conftest$ac_exeext conftest.$ac_ext
1.1 misho 20280: LIBS=$ac_check_lib_save_LIBS
20281: fi
1.1.1.3 ! misho 20282: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5
! 20283: echo "${ECHO_T}$ac_cv_lib_nsl___yp_get_default_domain" >&6; }
! 20284: if test $ac_cv_lib_nsl___yp_get_default_domain = yes; then
1.1 misho 20285: found=yes
20286: else
20287: found=no
20288: fi
20289:
20290:
20291: fi
20292:
20293:
20294: if test "$found" = "yes"; then
20295: ac_libs=$LIBS
1.1.1.3 ! misho 20296: LIBS="$LIBS -lnsl"
! 20297: if test "$cross_compiling" = yes; then
1.1 misho 20298: found=no
20299: else
1.1.1.3 ! misho 20300: cat >conftest.$ac_ext <<_ACEOF
! 20301: /* confdefs.h. */
! 20302: _ACEOF
! 20303: cat confdefs.h >>conftest.$ac_ext
! 20304: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20305: /* end confdefs.h. */
20306: main() { return (0); }
20307: _ACEOF
1.1.1.3 ! misho 20308: rm -f conftest$ac_exeext
! 20309: if { (ac_try="$ac_link"
! 20310: case "(($ac_try" in
! 20311: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20312: *) ac_try_echo=$ac_try;;
! 20313: esac
! 20314: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20315: (eval "$ac_link") 2>&5
! 20316: ac_status=$?
! 20317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20318: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 20319: { (case "(($ac_try" in
! 20320: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20321: *) ac_try_echo=$ac_try;;
! 20322: esac
! 20323: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20324: (eval "$ac_try") 2>&5
! 20325: ac_status=$?
! 20326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20327: (exit $ac_status); }; }; then
1.1 misho 20328: found=yes
20329: else
1.1.1.3 ! misho 20330: echo "$as_me: program exited with status $ac_status" >&5
! 20331: echo "$as_me: failed program was:" >&5
! 20332: sed 's/^/| /' conftest.$ac_ext >&5
! 20333:
! 20334: ( exit $ac_status )
! 20335: found=no
1.1 misho 20336: fi
1.1.1.3 ! misho 20337: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 20338: fi
20339:
1.1.1.3 ! misho 20340:
1.1 misho 20341: LIBS=$ac_libs
20342: fi
20343:
20344: if test "$found" = "yes"; then
20345:
20346:
1.1.1.3 ! misho 20347: case nsl in
1.1 misho 20348: c|c_r|pthread*) ;;
20349: *)
1.1.1.3 ! misho 20350: LIBS="-lnsl $LIBS"
1.1 misho 20351: ;;
20352: esac
20353:
20354:
20355:
1.1.1.3 ! misho 20356: cat >>confdefs.h <<\_ACEOF
! 20357: #define HAVE_YP_GET_DEFAULT_DOMAIN 1
! 20358: _ACEOF
1.1 misho 20359:
20360:
1.1.1.3 ! misho 20361: cat >>confdefs.h <<\_ACEOF
! 20362: #define HAVE_LIBNSL 1
! 20363: _ACEOF
1.1 misho 20364:
1.1.1.3 ! misho 20365: ac_cv_func_yp_get_default_domain=yes
1.1 misho 20366: else
20367:
1.1.1.3 ! misho 20368: :
1.1 misho 20369:
1.1.1.3 ! misho 20370: fi
! 20371:
! 20372: ;;
! 20373:
! 20374: esac
! 20375:
! 20376:
! 20377:
! 20378: unset ac_cv_func_dlopen
! 20379: unset ac_cv_func___dlopen
! 20380: unset found
! 20381:
! 20382: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 20383: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
! 20384: if test "${ac_cv_func_dlopen+set}" = set; then
! 20385: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20386: else
! 20387: cat >conftest.$ac_ext <<_ACEOF
! 20388: /* confdefs.h. */
! 20389: _ACEOF
! 20390: cat confdefs.h >>conftest.$ac_ext
! 20391: cat >>conftest.$ac_ext <<_ACEOF
! 20392: /* end confdefs.h. */
! 20393: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 20394: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20395: #define dlopen innocuous_dlopen
! 20396:
! 20397: /* System header to define __stub macros and hopefully few prototypes,
! 20398: which can conflict with char dlopen (); below.
! 20399: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20400: <limits.h> exists even on freestanding compilers. */
! 20401:
! 20402: #ifdef __STDC__
! 20403: # include <limits.h>
! 20404: #else
! 20405: # include <assert.h>
! 20406: #endif
! 20407:
! 20408: #undef dlopen
! 20409:
! 20410: /* Override any GCC internal prototype to avoid an error.
! 20411: Use char because int might match the return type of a GCC
! 20412: builtin and then its argument prototype would still apply. */
! 20413: #ifdef __cplusplus
! 20414: extern "C"
! 20415: #endif
! 20416: char dlopen ();
! 20417: /* The GNU C library defines this for functions which it implements
! 20418: to always fail with ENOSYS. Some functions are actually named
! 20419: something starting with __ and the normal name is an alias. */
! 20420: #if defined __stub_dlopen || defined __stub___dlopen
! 20421: choke me
! 20422: #endif
! 20423:
! 20424: int
! 20425: main ()
! 20426: {
! 20427: return dlopen ();
! 20428: ;
! 20429: return 0;
! 20430: }
! 20431: _ACEOF
! 20432: rm -f conftest.$ac_objext conftest$ac_exeext
! 20433: if { (ac_try="$ac_link"
! 20434: case "(($ac_try" in
! 20435: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20436: *) ac_try_echo=$ac_try;;
! 20437: esac
! 20438: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20439: (eval "$ac_link") 2>conftest.er1
! 20440: ac_status=$?
! 20441: grep -v '^ *+' conftest.er1 >conftest.err
! 20442: rm -f conftest.er1
! 20443: cat conftest.err >&5
! 20444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20445: (exit $ac_status); } && {
! 20446: test -z "$ac_c_werror_flag" ||
! 20447: test ! -s conftest.err
! 20448: } && test -s conftest$ac_exeext &&
! 20449: $as_test_x conftest$ac_exeext; then
! 20450: ac_cv_func_dlopen=yes
! 20451: else
! 20452: echo "$as_me: failed program was:" >&5
! 20453: sed 's/^/| /' conftest.$ac_ext >&5
! 20454:
! 20455: ac_cv_func_dlopen=no
! 20456: fi
! 20457:
! 20458: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20459: conftest$ac_exeext conftest.$ac_ext
! 20460: fi
! 20461: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 20462: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
! 20463: if test $ac_cv_func_dlopen = yes; then
! 20464: found=yes
! 20465: else
! 20466: { echo "$as_me:$LINENO: checking for __dlopen" >&5
! 20467: echo $ECHO_N "checking for __dlopen... $ECHO_C" >&6; }
! 20468: if test "${ac_cv_func___dlopen+set}" = set; then
! 20469: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20470: else
! 20471: cat >conftest.$ac_ext <<_ACEOF
! 20472: /* confdefs.h. */
! 20473: _ACEOF
! 20474: cat confdefs.h >>conftest.$ac_ext
! 20475: cat >>conftest.$ac_ext <<_ACEOF
! 20476: /* end confdefs.h. */
! 20477: /* Define __dlopen to an innocuous variant, in case <limits.h> declares __dlopen.
! 20478: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20479: #define __dlopen innocuous___dlopen
! 20480:
! 20481: /* System header to define __stub macros and hopefully few prototypes,
! 20482: which can conflict with char __dlopen (); below.
! 20483: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20484: <limits.h> exists even on freestanding compilers. */
! 20485:
! 20486: #ifdef __STDC__
! 20487: # include <limits.h>
! 20488: #else
! 20489: # include <assert.h>
! 20490: #endif
! 20491:
! 20492: #undef __dlopen
! 20493:
! 20494: /* Override any GCC internal prototype to avoid an error.
! 20495: Use char because int might match the return type of a GCC
! 20496: builtin and then its argument prototype would still apply. */
! 20497: #ifdef __cplusplus
! 20498: extern "C"
! 20499: #endif
! 20500: char __dlopen ();
! 20501: /* The GNU C library defines this for functions which it implements
! 20502: to always fail with ENOSYS. Some functions are actually named
! 20503: something starting with __ and the normal name is an alias. */
! 20504: #if defined __stub___dlopen || defined __stub_____dlopen
! 20505: choke me
! 20506: #endif
! 20507:
! 20508: int
! 20509: main ()
! 20510: {
! 20511: return __dlopen ();
! 20512: ;
! 20513: return 0;
! 20514: }
! 20515: _ACEOF
! 20516: rm -f conftest.$ac_objext conftest$ac_exeext
! 20517: if { (ac_try="$ac_link"
! 20518: case "(($ac_try" in
! 20519: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20520: *) ac_try_echo=$ac_try;;
! 20521: esac
! 20522: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20523: (eval "$ac_link") 2>conftest.er1
! 20524: ac_status=$?
! 20525: grep -v '^ *+' conftest.er1 >conftest.err
! 20526: rm -f conftest.er1
! 20527: cat conftest.err >&5
! 20528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20529: (exit $ac_status); } && {
! 20530: test -z "$ac_c_werror_flag" ||
! 20531: test ! -s conftest.err
! 20532: } && test -s conftest$ac_exeext &&
! 20533: $as_test_x conftest$ac_exeext; then
! 20534: ac_cv_func___dlopen=yes
! 20535: else
! 20536: echo "$as_me: failed program was:" >&5
! 20537: sed 's/^/| /' conftest.$ac_ext >&5
! 20538:
! 20539: ac_cv_func___dlopen=no
! 20540: fi
! 20541:
! 20542: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20543: conftest$ac_exeext conftest.$ac_ext
! 20544: fi
! 20545: { echo "$as_me:$LINENO: result: $ac_cv_func___dlopen" >&5
! 20546: echo "${ECHO_T}$ac_cv_func___dlopen" >&6; }
! 20547: if test $ac_cv_func___dlopen = yes; then
! 20548: found=yes
! 20549: else
! 20550: found=no
! 20551: fi
! 20552:
! 20553: fi
! 20554:
! 20555:
! 20556: case $found in
! 20557: yes)
! 20558:
! 20559: cat >>confdefs.h <<\_ACEOF
! 20560: #define HAVE_DLOPEN 1
! 20561: _ACEOF
! 20562:
! 20563: ac_cv_func_dlopen=yes
! 20564: ;;
! 20565:
! 20566: *)
! 20567:
! 20568: unset ac_cv_lib_dl_dlopen
! 20569: unset ac_cv_lib_dl___dlopen
! 20570: unset found
! 20571: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 20572: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 20573: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 20574: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20575: else
20576: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 ! misho 20577: LIBS="-ldl $LIBS"
! 20578: cat >conftest.$ac_ext <<_ACEOF
! 20579: /* confdefs.h. */
! 20580: _ACEOF
! 20581: cat confdefs.h >>conftest.$ac_ext
! 20582: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20583: /* end confdefs.h. */
20584:
20585: /* Override any GCC internal prototype to avoid an error.
20586: Use char because int might match the return type of a GCC
20587: builtin and then its argument prototype would still apply. */
20588: #ifdef __cplusplus
20589: extern "C"
20590: #endif
1.1.1.3 ! misho 20591: char dlopen ();
1.1 misho 20592: int
20593: main ()
20594: {
1.1.1.3 ! misho 20595: return dlopen ();
1.1 misho 20596: ;
20597: return 0;
20598: }
20599: _ACEOF
1.1.1.3 ! misho 20600: rm -f conftest.$ac_objext conftest$ac_exeext
! 20601: if { (ac_try="$ac_link"
! 20602: case "(($ac_try" in
! 20603: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20604: *) ac_try_echo=$ac_try;;
! 20605: esac
! 20606: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20607: (eval "$ac_link") 2>conftest.er1
! 20608: ac_status=$?
! 20609: grep -v '^ *+' conftest.er1 >conftest.err
! 20610: rm -f conftest.er1
! 20611: cat conftest.err >&5
! 20612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20613: (exit $ac_status); } && {
! 20614: test -z "$ac_c_werror_flag" ||
! 20615: test ! -s conftest.err
! 20616: } && test -s conftest$ac_exeext &&
! 20617: $as_test_x conftest$ac_exeext; then
! 20618: ac_cv_lib_dl_dlopen=yes
1.1 misho 20619: else
1.1.1.3 ! misho 20620: echo "$as_me: failed program was:" >&5
! 20621: sed 's/^/| /' conftest.$ac_ext >&5
! 20622:
! 20623: ac_cv_lib_dl_dlopen=no
1.1 misho 20624: fi
1.1.1.3 ! misho 20625:
! 20626: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20627: conftest$ac_exeext conftest.$ac_ext
1.1 misho 20628: LIBS=$ac_check_lib_save_LIBS
20629: fi
1.1.1.3 ! misho 20630: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 20631: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 20632: if test $ac_cv_lib_dl_dlopen = yes; then
1.1 misho 20633: found=yes
20634: else
20635:
1.1.1.3 ! misho 20636: { echo "$as_me:$LINENO: checking for __dlopen in -ldl" >&5
! 20637: echo $ECHO_N "checking for __dlopen in -ldl... $ECHO_C" >&6; }
! 20638: if test "${ac_cv_lib_dl___dlopen+set}" = set; then
! 20639: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20640: else
20641: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 ! misho 20642: LIBS="-ldl $LIBS"
! 20643: cat >conftest.$ac_ext <<_ACEOF
! 20644: /* confdefs.h. */
! 20645: _ACEOF
! 20646: cat confdefs.h >>conftest.$ac_ext
! 20647: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20648: /* end confdefs.h. */
20649:
20650: /* Override any GCC internal prototype to avoid an error.
20651: Use char because int might match the return type of a GCC
20652: builtin and then its argument prototype would still apply. */
20653: #ifdef __cplusplus
20654: extern "C"
20655: #endif
1.1.1.3 ! misho 20656: char __dlopen ();
1.1 misho 20657: int
20658: main ()
20659: {
1.1.1.3 ! misho 20660: return __dlopen ();
1.1 misho 20661: ;
20662: return 0;
20663: }
20664: _ACEOF
1.1.1.3 ! misho 20665: rm -f conftest.$ac_objext conftest$ac_exeext
! 20666: if { (ac_try="$ac_link"
! 20667: case "(($ac_try" in
! 20668: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20669: *) ac_try_echo=$ac_try;;
! 20670: esac
! 20671: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20672: (eval "$ac_link") 2>conftest.er1
! 20673: ac_status=$?
! 20674: grep -v '^ *+' conftest.er1 >conftest.err
! 20675: rm -f conftest.er1
! 20676: cat conftest.err >&5
! 20677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20678: (exit $ac_status); } && {
! 20679: test -z "$ac_c_werror_flag" ||
! 20680: test ! -s conftest.err
! 20681: } && test -s conftest$ac_exeext &&
! 20682: $as_test_x conftest$ac_exeext; then
! 20683: ac_cv_lib_dl___dlopen=yes
1.1 misho 20684: else
1.1.1.3 ! misho 20685: echo "$as_me: failed program was:" >&5
! 20686: sed 's/^/| /' conftest.$ac_ext >&5
! 20687:
! 20688: ac_cv_lib_dl___dlopen=no
1.1 misho 20689: fi
1.1.1.3 ! misho 20690:
! 20691: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20692: conftest$ac_exeext conftest.$ac_ext
1.1 misho 20693: LIBS=$ac_check_lib_save_LIBS
20694: fi
1.1.1.3 ! misho 20695: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl___dlopen" >&5
! 20696: echo "${ECHO_T}$ac_cv_lib_dl___dlopen" >&6; }
! 20697: if test $ac_cv_lib_dl___dlopen = yes; then
1.1 misho 20698: found=yes
20699: else
20700: found=no
20701: fi
20702:
20703:
20704: fi
20705:
20706:
20707: if test "$found" = "yes"; then
20708: ac_libs=$LIBS
1.1.1.3 ! misho 20709: LIBS="$LIBS -ldl"
! 20710: if test "$cross_compiling" = yes; then
1.1 misho 20711: found=no
20712: else
1.1.1.3 ! misho 20713: cat >conftest.$ac_ext <<_ACEOF
! 20714: /* confdefs.h. */
! 20715: _ACEOF
! 20716: cat confdefs.h >>conftest.$ac_ext
! 20717: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20718: /* end confdefs.h. */
20719: main() { return (0); }
20720: _ACEOF
1.1.1.3 ! misho 20721: rm -f conftest$ac_exeext
! 20722: if { (ac_try="$ac_link"
! 20723: case "(($ac_try" in
! 20724: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20725: *) ac_try_echo=$ac_try;;
! 20726: esac
! 20727: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20728: (eval "$ac_link") 2>&5
! 20729: ac_status=$?
! 20730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20731: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 20732: { (case "(($ac_try" in
! 20733: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20734: *) ac_try_echo=$ac_try;;
! 20735: esac
! 20736: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20737: (eval "$ac_try") 2>&5
! 20738: ac_status=$?
! 20739: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20740: (exit $ac_status); }; }; then
1.1 misho 20741: found=yes
20742: else
1.1.1.3 ! misho 20743: echo "$as_me: program exited with status $ac_status" >&5
! 20744: echo "$as_me: failed program was:" >&5
! 20745: sed 's/^/| /' conftest.$ac_ext >&5
! 20746:
! 20747: ( exit $ac_status )
! 20748: found=no
1.1 misho 20749: fi
1.1.1.3 ! misho 20750: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 20751: fi
20752:
1.1.1.3 ! misho 20753:
1.1 misho 20754: LIBS=$ac_libs
20755: fi
20756:
20757: if test "$found" = "yes"; then
20758:
20759:
1.1.1.3 ! misho 20760: case dl in
1.1 misho 20761: c|c_r|pthread*) ;;
20762: *)
1.1.1.3 ! misho 20763: LIBS="-ldl $LIBS"
1.1 misho 20764: ;;
20765: esac
20766:
20767:
20768:
1.1.1.3 ! misho 20769: cat >>confdefs.h <<\_ACEOF
! 20770: #define HAVE_DLOPEN 1
! 20771: _ACEOF
1.1 misho 20772:
20773:
1.1.1.3 ! misho 20774: cat >>confdefs.h <<\_ACEOF
! 20775: #define HAVE_LIBDL 1
! 20776: _ACEOF
1.1 misho 20777:
1.1.1.3 ! misho 20778: ac_cv_func_dlopen=yes
1.1 misho 20779: else
20780:
20781: :
20782:
20783: fi
20784:
20785: ;;
20786:
20787: esac
20788:
1.1.1.3 ! misho 20789: if test "$ac_cv_func_dlopen" = "yes"; then
! 20790:
! 20791: cat >>confdefs.h <<\_ACEOF
! 20792: #define HAVE_LIBDL 1
! 20793: _ACEOF
1.1 misho 20794:
1.1.1.3 ! misho 20795: fi
1.1 misho 20796:
1.1.1.3 ! misho 20797: { echo "$as_me:$LINENO: checking for sin in -lm" >&5
! 20798: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
! 20799: if test "${ac_cv_lib_m_sin+set}" = set; then
! 20800: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20801: else
1.1.1.3 ! misho 20802: ac_check_lib_save_LIBS=$LIBS
! 20803: LIBS="-lm $LIBS"
! 20804: cat >conftest.$ac_ext <<_ACEOF
! 20805: /* confdefs.h. */
! 20806: _ACEOF
! 20807: cat confdefs.h >>conftest.$ac_ext
! 20808: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20809: /* end confdefs.h. */
20810:
1.1.1.3 ! misho 20811: /* Override any GCC internal prototype to avoid an error.
! 20812: Use char because int might match the return type of a GCC
! 20813: builtin and then its argument prototype would still apply. */
! 20814: #ifdef __cplusplus
! 20815: extern "C"
! 20816: #endif
! 20817: char sin ();
1.1 misho 20818: int
20819: main ()
20820: {
1.1.1.3 ! misho 20821: return sin ();
1.1 misho 20822: ;
20823: return 0;
20824: }
20825: _ACEOF
1.1.1.3 ! misho 20826: rm -f conftest.$ac_objext conftest$ac_exeext
! 20827: if { (ac_try="$ac_link"
! 20828: case "(($ac_try" in
! 20829: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20830: *) ac_try_echo=$ac_try;;
! 20831: esac
! 20832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20833: (eval "$ac_link") 2>conftest.er1
! 20834: ac_status=$?
! 20835: grep -v '^ *+' conftest.er1 >conftest.err
! 20836: rm -f conftest.er1
! 20837: cat conftest.err >&5
! 20838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20839: (exit $ac_status); } && {
! 20840: test -z "$ac_c_werror_flag" ||
! 20841: test ! -s conftest.err
! 20842: } && test -s conftest$ac_exeext &&
! 20843: $as_test_x conftest$ac_exeext; then
! 20844: ac_cv_lib_m_sin=yes
1.1 misho 20845: else
1.1.1.3 ! misho 20846: echo "$as_me: failed program was:" >&5
! 20847: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 20848:
1.1.1.3 ! misho 20849: ac_cv_lib_m_sin=no
! 20850: fi
1.1 misho 20851:
1.1.1.3 ! misho 20852: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20853: conftest$ac_exeext conftest.$ac_ext
! 20854: LIBS=$ac_check_lib_save_LIBS
! 20855: fi
! 20856: { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
! 20857: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
! 20858: if test $ac_cv_lib_m_sin = yes; then
! 20859: cat >>confdefs.h <<_ACEOF
! 20860: #define HAVE_LIBM 1
1.1 misho 20861: _ACEOF
20862:
1.1.1.3 ! misho 20863: LIBS="-lm $LIBS"
1.1 misho 20864:
20865: fi
20866:
20867:
20868:
1.1.1.3 ! misho 20869: unset ac_cv_func_inet_aton
! 20870: unset ac_cv_func___inet_aton
! 20871: unset found
1.1 misho 20872:
1.1.1.3 ! misho 20873: { echo "$as_me:$LINENO: checking for inet_aton" >&5
! 20874: echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
! 20875: if test "${ac_cv_func_inet_aton+set}" = set; then
! 20876: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20877: else
1.1.1.3 ! misho 20878: cat >conftest.$ac_ext <<_ACEOF
! 20879: /* confdefs.h. */
! 20880: _ACEOF
! 20881: cat confdefs.h >>conftest.$ac_ext
! 20882: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20883: /* end confdefs.h. */
1.1.1.3 ! misho 20884: /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
! 20885: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20886: #define inet_aton innocuous_inet_aton
! 20887:
! 20888: /* System header to define __stub macros and hopefully few prototypes,
! 20889: which can conflict with char inet_aton (); below.
! 20890: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20891: <limits.h> exists even on freestanding compilers. */
! 20892:
! 20893: #ifdef __STDC__
! 20894: # include <limits.h>
1.1 misho 20895: #else
1.1.1.3 ! misho 20896: # include <assert.h>
! 20897: #endif
! 20898:
! 20899: #undef inet_aton
! 20900:
! 20901: /* Override any GCC internal prototype to avoid an error.
! 20902: Use char because int might match the return type of a GCC
! 20903: builtin and then its argument prototype would still apply. */
! 20904: #ifdef __cplusplus
! 20905: extern "C"
! 20906: #endif
! 20907: char inet_aton ();
! 20908: /* The GNU C library defines this for functions which it implements
! 20909: to always fail with ENOSYS. Some functions are actually named
! 20910: something starting with __ and the normal name is an alias. */
! 20911: #if defined __stub_inet_aton || defined __stub___inet_aton
! 20912: choke me
1.1 misho 20913: #endif
20914:
20915: int
20916: main ()
20917: {
1.1.1.3 ! misho 20918: return inet_aton ();
! 20919: ;
1.1 misho 20920: return 0;
20921: }
20922: _ACEOF
1.1.1.3 ! misho 20923: rm -f conftest.$ac_objext conftest$ac_exeext
! 20924: if { (ac_try="$ac_link"
! 20925: case "(($ac_try" in
! 20926: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20927: *) ac_try_echo=$ac_try;;
! 20928: esac
! 20929: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20930: (eval "$ac_link") 2>conftest.er1
! 20931: ac_status=$?
! 20932: grep -v '^ *+' conftest.er1 >conftest.err
! 20933: rm -f conftest.er1
! 20934: cat conftest.err >&5
! 20935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20936: (exit $ac_status); } && {
! 20937: test -z "$ac_c_werror_flag" ||
! 20938: test ! -s conftest.err
! 20939: } && test -s conftest$ac_exeext &&
! 20940: $as_test_x conftest$ac_exeext; then
! 20941: ac_cv_func_inet_aton=yes
1.1 misho 20942: else
1.1.1.3 ! misho 20943: echo "$as_me: failed program was:" >&5
! 20944: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 20945:
1.1.1.3 ! misho 20946: ac_cv_func_inet_aton=no
1.1 misho 20947: fi
20948:
1.1.1.3 ! misho 20949: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20950: conftest$ac_exeext conftest.$ac_ext
1.1 misho 20951: fi
1.1.1.3 ! misho 20952: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
! 20953: echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
! 20954: if test $ac_cv_func_inet_aton = yes; then
! 20955: found=yes
! 20956: else
! 20957: { echo "$as_me:$LINENO: checking for __inet_aton" >&5
! 20958: echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6; }
! 20959: if test "${ac_cv_func___inet_aton+set}" = set; then
! 20960: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 20961: else
1.1.1.3 ! misho 20962: cat >conftest.$ac_ext <<_ACEOF
! 20963: /* confdefs.h. */
! 20964: _ACEOF
! 20965: cat confdefs.h >>conftest.$ac_ext
! 20966: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 20967: /* end confdefs.h. */
1.1.1.3 ! misho 20968: /* Define __inet_aton to an innocuous variant, in case <limits.h> declares __inet_aton.
! 20969: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20970: #define __inet_aton innocuous___inet_aton
! 20971:
! 20972: /* System header to define __stub macros and hopefully few prototypes,
! 20973: which can conflict with char __inet_aton (); below.
! 20974: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20975: <limits.h> exists even on freestanding compilers. */
! 20976:
! 20977: #ifdef __STDC__
! 20978: # include <limits.h>
! 20979: #else
! 20980: # include <assert.h>
! 20981: #endif
! 20982:
! 20983: #undef __inet_aton
! 20984:
! 20985: /* Override any GCC internal prototype to avoid an error.
! 20986: Use char because int might match the return type of a GCC
! 20987: builtin and then its argument prototype would still apply. */
! 20988: #ifdef __cplusplus
! 20989: extern "C"
! 20990: #endif
! 20991: char __inet_aton ();
! 20992: /* The GNU C library defines this for functions which it implements
! 20993: to always fail with ENOSYS. Some functions are actually named
! 20994: something starting with __ and the normal name is an alias. */
! 20995: #if defined __stub___inet_aton || defined __stub_____inet_aton
! 20996: choke me
! 20997: #endif
1.1 misho 20998:
20999: int
21000: main ()
21001: {
1.1.1.3 ! misho 21002: return __inet_aton ();
1.1 misho 21003: ;
21004: return 0;
21005: }
21006: _ACEOF
1.1.1.3 ! misho 21007: rm -f conftest.$ac_objext conftest$ac_exeext
! 21008: if { (ac_try="$ac_link"
! 21009: case "(($ac_try" in
! 21010: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21011: *) ac_try_echo=$ac_try;;
! 21012: esac
! 21013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21014: (eval "$ac_link") 2>conftest.er1
! 21015: ac_status=$?
! 21016: grep -v '^ *+' conftest.er1 >conftest.err
! 21017: rm -f conftest.er1
! 21018: cat conftest.err >&5
! 21019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21020: (exit $ac_status); } && {
! 21021: test -z "$ac_c_werror_flag" ||
! 21022: test ! -s conftest.err
! 21023: } && test -s conftest$ac_exeext &&
! 21024: $as_test_x conftest$ac_exeext; then
! 21025: ac_cv_func___inet_aton=yes
1.1 misho 21026: else
1.1.1.3 ! misho 21027: echo "$as_me: failed program was:" >&5
! 21028: sed 's/^/| /' conftest.$ac_ext >&5
! 21029:
! 21030: ac_cv_func___inet_aton=no
1.1 misho 21031: fi
1.1.1.3 ! misho 21032:
! 21033: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21034: conftest$ac_exeext conftest.$ac_ext
! 21035: fi
! 21036: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
! 21037: echo "${ECHO_T}$ac_cv_func___inet_aton" >&6; }
! 21038: if test $ac_cv_func___inet_aton = yes; then
! 21039: found=yes
! 21040: else
! 21041: found=no
1.1 misho 21042: fi
21043:
21044: fi
21045:
1.1.1.3 ! misho 21046:
! 21047: case $found in
! 21048: yes)
! 21049:
! 21050: cat >>confdefs.h <<\_ACEOF
! 21051: #define HAVE_INET_ATON 1
! 21052: _ACEOF
! 21053:
! 21054: ac_cv_func_inet_aton=yes
! 21055: ;;
! 21056:
! 21057: *)
! 21058:
! 21059: unset ac_cv_lib_resolv_inet_aton
! 21060: unset ac_cv_lib_resolv___inet_aton
! 21061: unset found
! 21062: { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
! 21063: echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
! 21064: if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
! 21065: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 21066: else
1.1.1.3 ! misho 21067: ac_check_lib_save_LIBS=$LIBS
! 21068: LIBS="-lresolv $LIBS"
! 21069: cat >conftest.$ac_ext <<_ACEOF
! 21070: /* confdefs.h. */
! 21071: _ACEOF
! 21072: cat confdefs.h >>conftest.$ac_ext
! 21073: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21074: /* end confdefs.h. */
21075:
21076: /* Override any GCC internal prototype to avoid an error.
21077: Use char because int might match the return type of a GCC
21078: builtin and then its argument prototype would still apply. */
21079: #ifdef __cplusplus
21080: extern "C"
21081: #endif
1.1.1.3 ! misho 21082: char inet_aton ();
1.1 misho 21083: int
21084: main ()
21085: {
1.1.1.3 ! misho 21086: return inet_aton ();
1.1 misho 21087: ;
21088: return 0;
21089: }
21090: _ACEOF
1.1.1.3 ! misho 21091: rm -f conftest.$ac_objext conftest$ac_exeext
! 21092: if { (ac_try="$ac_link"
! 21093: case "(($ac_try" in
! 21094: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21095: *) ac_try_echo=$ac_try;;
! 21096: esac
! 21097: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21098: (eval "$ac_link") 2>conftest.er1
! 21099: ac_status=$?
! 21100: grep -v '^ *+' conftest.er1 >conftest.err
! 21101: rm -f conftest.er1
! 21102: cat conftest.err >&5
! 21103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21104: (exit $ac_status); } && {
! 21105: test -z "$ac_c_werror_flag" ||
! 21106: test ! -s conftest.err
! 21107: } && test -s conftest$ac_exeext &&
! 21108: $as_test_x conftest$ac_exeext; then
! 21109: ac_cv_lib_resolv_inet_aton=yes
1.1 misho 21110: else
1.1.1.3 ! misho 21111: echo "$as_me: failed program was:" >&5
! 21112: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21113:
1.1.1.3 ! misho 21114: ac_cv_lib_resolv_inet_aton=no
1.1 misho 21115: fi
21116:
1.1.1.3 ! misho 21117: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21118: conftest$ac_exeext conftest.$ac_ext
! 21119: LIBS=$ac_check_lib_save_LIBS
! 21120: fi
! 21121: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
! 21122: echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
! 21123: if test $ac_cv_lib_resolv_inet_aton = yes; then
! 21124: found=yes
1.1 misho 21125: else
1.1.1.3 ! misho 21126:
! 21127: { echo "$as_me:$LINENO: checking for __inet_aton in -lresolv" >&5
! 21128: echo $ECHO_N "checking for __inet_aton in -lresolv... $ECHO_C" >&6; }
! 21129: if test "${ac_cv_lib_resolv___inet_aton+set}" = set; then
! 21130: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 21131: else
1.1.1.3 ! misho 21132: ac_check_lib_save_LIBS=$LIBS
! 21133: LIBS="-lresolv $LIBS"
! 21134: cat >conftest.$ac_ext <<_ACEOF
! 21135: /* confdefs.h. */
! 21136: _ACEOF
! 21137: cat confdefs.h >>conftest.$ac_ext
! 21138: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21139: /* end confdefs.h. */
21140:
21141: /* Override any GCC internal prototype to avoid an error.
21142: Use char because int might match the return type of a GCC
21143: builtin and then its argument prototype would still apply. */
21144: #ifdef __cplusplus
21145: extern "C"
21146: #endif
1.1.1.3 ! misho 21147: char __inet_aton ();
1.1 misho 21148: int
21149: main ()
21150: {
1.1.1.3 ! misho 21151: return __inet_aton ();
1.1 misho 21152: ;
21153: return 0;
21154: }
21155: _ACEOF
1.1.1.3 ! misho 21156: rm -f conftest.$ac_objext conftest$ac_exeext
! 21157: if { (ac_try="$ac_link"
! 21158: case "(($ac_try" in
! 21159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21160: *) ac_try_echo=$ac_try;;
! 21161: esac
! 21162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21163: (eval "$ac_link") 2>conftest.er1
! 21164: ac_status=$?
! 21165: grep -v '^ *+' conftest.er1 >conftest.err
! 21166: rm -f conftest.er1
! 21167: cat conftest.err >&5
! 21168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21169: (exit $ac_status); } && {
! 21170: test -z "$ac_c_werror_flag" ||
! 21171: test ! -s conftest.err
! 21172: } && test -s conftest$ac_exeext &&
! 21173: $as_test_x conftest$ac_exeext; then
! 21174: ac_cv_lib_resolv___inet_aton=yes
! 21175: else
! 21176: echo "$as_me: failed program was:" >&5
! 21177: sed 's/^/| /' conftest.$ac_ext >&5
! 21178:
! 21179: ac_cv_lib_resolv___inet_aton=no
1.1 misho 21180: fi
21181:
1.1.1.3 ! misho 21182: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21183: conftest$ac_exeext conftest.$ac_ext
! 21184: LIBS=$ac_check_lib_save_LIBS
1.1 misho 21185: fi
1.1.1.3 ! misho 21186: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___inet_aton" >&5
! 21187: echo "${ECHO_T}$ac_cv_lib_resolv___inet_aton" >&6; }
! 21188: if test $ac_cv_lib_resolv___inet_aton = yes; then
! 21189: found=yes
! 21190: else
! 21191: found=no
1.1 misho 21192: fi
1.1.1.3 ! misho 21193:
1.1 misho 21194:
21195: fi
21196:
1.1.1.3 ! misho 21197:
! 21198: if test "$found" = "yes"; then
! 21199: ac_libs=$LIBS
! 21200: LIBS="$LIBS -lresolv"
! 21201: if test "$cross_compiling" = yes; then
! 21202: found=no
! 21203: else
! 21204: cat >conftest.$ac_ext <<_ACEOF
! 21205: /* confdefs.h. */
! 21206: _ACEOF
! 21207: cat confdefs.h >>conftest.$ac_ext
! 21208: cat >>conftest.$ac_ext <<_ACEOF
! 21209: /* end confdefs.h. */
! 21210: main() { return (0); }
! 21211: _ACEOF
! 21212: rm -f conftest$ac_exeext
! 21213: if { (ac_try="$ac_link"
! 21214: case "(($ac_try" in
! 21215: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21216: *) ac_try_echo=$ac_try;;
! 21217: esac
! 21218: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21219: (eval "$ac_link") 2>&5
! 21220: ac_status=$?
! 21221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21222: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 21223: { (case "(($ac_try" in
! 21224: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21225: *) ac_try_echo=$ac_try;;
! 21226: esac
! 21227: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21228: (eval "$ac_try") 2>&5
! 21229: ac_status=$?
! 21230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21231: (exit $ac_status); }; }; then
! 21232: found=yes
! 21233: else
! 21234: echo "$as_me: program exited with status $ac_status" >&5
! 21235: echo "$as_me: failed program was:" >&5
! 21236: sed 's/^/| /' conftest.$ac_ext >&5
! 21237:
! 21238: ( exit $ac_status )
! 21239: found=no
! 21240: fi
! 21241: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 21242: fi
21243:
21244:
1.1.1.3 ! misho 21245: LIBS=$ac_libs
! 21246: fi
1.1 misho 21247:
1.1.1.3 ! misho 21248: if test "$found" = "yes"; then
1.1 misho 21249:
21250:
1.1.1.3 ! misho 21251: case resolv in
! 21252: c|c_r|pthread*) ;;
! 21253: *)
! 21254: LIBS="-lresolv $LIBS"
! 21255: ;;
! 21256: esac
1.1 misho 21257:
21258:
21259:
1.1.1.3 ! misho 21260: cat >>confdefs.h <<\_ACEOF
! 21261: #define HAVE_INET_ATON 1
! 21262: _ACEOF
1.1 misho 21263:
21264:
1.1.1.3 ! misho 21265: cat >>confdefs.h <<\_ACEOF
! 21266: #define HAVE_LIBRESOLV 1
! 21267: _ACEOF
1.1 misho 21268:
1.1.1.3 ! misho 21269: ac_cv_func_inet_aton=yes
! 21270: else
1.1 misho 21271:
21272:
1.1.1.3 ! misho 21273: unset ac_cv_lib_bind_inet_aton
! 21274: unset ac_cv_lib_bind___inet_aton
! 21275: unset found
! 21276: { echo "$as_me:$LINENO: checking for inet_aton in -lbind" >&5
! 21277: echo $ECHO_N "checking for inet_aton in -lbind... $ECHO_C" >&6; }
! 21278: if test "${ac_cv_lib_bind_inet_aton+set}" = set; then
! 21279: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21280: else
! 21281: ac_check_lib_save_LIBS=$LIBS
! 21282: LIBS="-lbind $LIBS"
! 21283: cat >conftest.$ac_ext <<_ACEOF
! 21284: /* confdefs.h. */
! 21285: _ACEOF
! 21286: cat confdefs.h >>conftest.$ac_ext
! 21287: cat >>conftest.$ac_ext <<_ACEOF
! 21288: /* end confdefs.h. */
! 21289:
! 21290: /* Override any GCC internal prototype to avoid an error.
! 21291: Use char because int might match the return type of a GCC
! 21292: builtin and then its argument prototype would still apply. */
! 21293: #ifdef __cplusplus
! 21294: extern "C"
! 21295: #endif
! 21296: char inet_aton ();
1.1 misho 21297: int
21298: main ()
21299: {
1.1.1.3 ! misho 21300: return inet_aton ();
1.1 misho 21301: ;
21302: return 0;
21303: }
21304: _ACEOF
1.1.1.3 ! misho 21305: rm -f conftest.$ac_objext conftest$ac_exeext
! 21306: if { (ac_try="$ac_link"
! 21307: case "(($ac_try" in
! 21308: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21309: *) ac_try_echo=$ac_try;;
! 21310: esac
! 21311: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21312: (eval "$ac_link") 2>conftest.er1
! 21313: ac_status=$?
! 21314: grep -v '^ *+' conftest.er1 >conftest.err
! 21315: rm -f conftest.er1
! 21316: cat conftest.err >&5
! 21317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21318: (exit $ac_status); } && {
! 21319: test -z "$ac_c_werror_flag" ||
! 21320: test ! -s conftest.err
! 21321: } && test -s conftest$ac_exeext &&
! 21322: $as_test_x conftest$ac_exeext; then
! 21323: ac_cv_lib_bind_inet_aton=yes
! 21324: else
! 21325: echo "$as_me: failed program was:" >&5
! 21326: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21327:
1.1.1.3 ! misho 21328: ac_cv_lib_bind_inet_aton=no
! 21329: fi
1.1 misho 21330:
1.1.1.3 ! misho 21331: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21332: conftest$ac_exeext conftest.$ac_ext
! 21333: LIBS=$ac_check_lib_save_LIBS
! 21334: fi
! 21335: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_aton" >&5
! 21336: echo "${ECHO_T}$ac_cv_lib_bind_inet_aton" >&6; }
! 21337: if test $ac_cv_lib_bind_inet_aton = yes; then
! 21338: found=yes
! 21339: else
1.1 misho 21340:
1.1.1.3 ! misho 21341: { echo "$as_me:$LINENO: checking for __inet_aton in -lbind" >&5
! 21342: echo $ECHO_N "checking for __inet_aton in -lbind... $ECHO_C" >&6; }
! 21343: if test "${ac_cv_lib_bind___inet_aton+set}" = set; then
! 21344: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 21345: else
1.1.1.3 ! misho 21346: ac_check_lib_save_LIBS=$LIBS
! 21347: LIBS="-lbind $LIBS"
! 21348: cat >conftest.$ac_ext <<_ACEOF
! 21349: /* confdefs.h. */
! 21350: _ACEOF
! 21351: cat confdefs.h >>conftest.$ac_ext
! 21352: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21353: /* end confdefs.h. */
21354:
1.1.1.3 ! misho 21355: /* Override any GCC internal prototype to avoid an error.
! 21356: Use char because int might match the return type of a GCC
! 21357: builtin and then its argument prototype would still apply. */
! 21358: #ifdef __cplusplus
! 21359: extern "C"
! 21360: #endif
! 21361: char __inet_aton ();
! 21362: int
! 21363: main ()
! 21364: {
! 21365: return __inet_aton ();
! 21366: ;
! 21367: return 0;
! 21368: }
! 21369: _ACEOF
! 21370: rm -f conftest.$ac_objext conftest$ac_exeext
! 21371: if { (ac_try="$ac_link"
! 21372: case "(($ac_try" in
! 21373: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21374: *) ac_try_echo=$ac_try;;
! 21375: esac
! 21376: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21377: (eval "$ac_link") 2>conftest.er1
! 21378: ac_status=$?
! 21379: grep -v '^ *+' conftest.er1 >conftest.err
! 21380: rm -f conftest.er1
! 21381: cat conftest.err >&5
! 21382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21383: (exit $ac_status); } && {
! 21384: test -z "$ac_c_werror_flag" ||
! 21385: test ! -s conftest.err
! 21386: } && test -s conftest$ac_exeext &&
! 21387: $as_test_x conftest$ac_exeext; then
! 21388: ac_cv_lib_bind___inet_aton=yes
! 21389: else
! 21390: echo "$as_me: failed program was:" >&5
! 21391: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21392:
1.1.1.3 ! misho 21393: ac_cv_lib_bind___inet_aton=no
! 21394: fi
1.1 misho 21395:
1.1.1.3 ! misho 21396: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21397: conftest$ac_exeext conftest.$ac_ext
! 21398: LIBS=$ac_check_lib_save_LIBS
! 21399: fi
! 21400: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_aton" >&5
! 21401: echo "${ECHO_T}$ac_cv_lib_bind___inet_aton" >&6; }
! 21402: if test $ac_cv_lib_bind___inet_aton = yes; then
! 21403: found=yes
! 21404: else
! 21405: found=no
! 21406: fi
1.1 misho 21407:
21408:
1.1.1.3 ! misho 21409: fi
1.1 misho 21410:
21411:
1.1.1.3 ! misho 21412: if test "$found" = "yes"; then
! 21413: ac_libs=$LIBS
! 21414: LIBS="$LIBS -lbind"
! 21415: if test "$cross_compiling" = yes; then
! 21416: found=no
! 21417: else
! 21418: cat >conftest.$ac_ext <<_ACEOF
! 21419: /* confdefs.h. */
1.1 misho 21420: _ACEOF
1.1.1.3 ! misho 21421: cat confdefs.h >>conftest.$ac_ext
! 21422: cat >>conftest.$ac_ext <<_ACEOF
! 21423: /* end confdefs.h. */
! 21424: main() { return (0); }
! 21425: _ACEOF
! 21426: rm -f conftest$ac_exeext
! 21427: if { (ac_try="$ac_link"
! 21428: case "(($ac_try" in
! 21429: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21430: *) ac_try_echo=$ac_try;;
! 21431: esac
! 21432: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21433: (eval "$ac_link") 2>&5
! 21434: ac_status=$?
! 21435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21436: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 21437: { (case "(($ac_try" in
! 21438: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21439: *) ac_try_echo=$ac_try;;
! 21440: esac
! 21441: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21442: (eval "$ac_try") 2>&5
! 21443: ac_status=$?
! 21444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21445: (exit $ac_status); }; }; then
! 21446: found=yes
1.1 misho 21447: else
1.1.1.3 ! misho 21448: echo "$as_me: program exited with status $ac_status" >&5
! 21449: echo "$as_me: failed program was:" >&5
! 21450: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21451:
1.1.1.3 ! misho 21452: ( exit $ac_status )
! 21453: found=no
1.1 misho 21454: fi
1.1.1.3 ! misho 21455: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 21456: fi
21457:
21458:
1.1.1.3 ! misho 21459: LIBS=$ac_libs
! 21460: fi
1.1 misho 21461:
1.1.1.3 ! misho 21462: if test "$found" = "yes"; then
1.1 misho 21463:
21464:
1.1.1.3 ! misho 21465: case bind in
! 21466: c|c_r|pthread*) ;;
! 21467: *)
! 21468: LIBS="-lbind $LIBS"
! 21469: ;;
! 21470: esac
! 21471:
1.1 misho 21472:
21473:
1.1.1.3 ! misho 21474: cat >>confdefs.h <<\_ACEOF
! 21475: #define HAVE_INET_ATON 1
! 21476: _ACEOF
1.1 misho 21477:
21478:
1.1.1.3 ! misho 21479: cat >>confdefs.h <<\_ACEOF
! 21480: #define HAVE_LIBBIND 1
1.1 misho 21481: _ACEOF
21482:
1.1.1.3 ! misho 21483: ac_cv_func_inet_aton=yes
! 21484: else
1.1 misho 21485:
1.1.1.3 ! misho 21486: :
1.1 misho 21487:
21488: fi
21489:
21490:
1.1.1.3 ! misho 21491: fi
1.1 misho 21492:
1.1.1.3 ! misho 21493: ;;
1.1 misho 21494:
21495: esac
21496:
21497:
21498:
1.1.1.3 ! misho 21499: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 21500: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 21501: if test "${ac_cv_header_stdc+set}" = set; then
! 21502: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21503: else
! 21504: cat >conftest.$ac_ext <<_ACEOF
! 21505: /* confdefs.h. */
! 21506: _ACEOF
! 21507: cat confdefs.h >>conftest.$ac_ext
! 21508: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21509: /* end confdefs.h. */
1.1.1.3 ! misho 21510: #include <stdlib.h>
! 21511: #include <stdarg.h>
! 21512: #include <string.h>
! 21513: #include <float.h>
1.1 misho 21514:
21515: int
21516: main ()
21517: {
21518:
21519: ;
21520: return 0;
21521: }
21522: _ACEOF
1.1.1.3 ! misho 21523: rm -f conftest.$ac_objext
! 21524: if { (ac_try="$ac_compile"
! 21525: case "(($ac_try" in
! 21526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21527: *) ac_try_echo=$ac_try;;
! 21528: esac
! 21529: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21530: (eval "$ac_compile") 2>conftest.er1
! 21531: ac_status=$?
! 21532: grep -v '^ *+' conftest.er1 >conftest.err
! 21533: rm -f conftest.er1
! 21534: cat conftest.err >&5
! 21535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21536: (exit $ac_status); } && {
! 21537: test -z "$ac_c_werror_flag" ||
! 21538: test ! -s conftest.err
! 21539: } && test -s conftest.$ac_objext; then
! 21540: ac_cv_header_stdc=yes
1.1 misho 21541: else
1.1.1.3 ! misho 21542: echo "$as_me: failed program was:" >&5
! 21543: sed 's/^/| /' conftest.$ac_ext >&5
! 21544:
! 21545: ac_cv_header_stdc=no
1.1 misho 21546: fi
1.1.1.3 ! misho 21547:
1.1 misho 21548: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21549:
1.1.1.3 ! misho 21550: if test $ac_cv_header_stdc = yes; then
! 21551: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 21552: cat >conftest.$ac_ext <<_ACEOF
! 21553: /* confdefs.h. */
! 21554: _ACEOF
! 21555: cat confdefs.h >>conftest.$ac_ext
! 21556: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21557: /* end confdefs.h. */
1.1.1.3 ! misho 21558: #include <string.h>
1.1 misho 21559:
21560: _ACEOF
1.1.1.3 ! misho 21561: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 21562: $EGREP "memchr" >/dev/null 2>&1; then
! 21563: :
1.1 misho 21564: else
1.1.1.3 ! misho 21565: ac_cv_header_stdc=no
1.1 misho 21566: fi
1.1.1.3 ! misho 21567: rm -f -r conftest*
1.1 misho 21568:
21569: fi
21570:
1.1.1.3 ! misho 21571: if test $ac_cv_header_stdc = yes; then
! 21572: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 21573: cat >conftest.$ac_ext <<_ACEOF
! 21574: /* confdefs.h. */
! 21575: _ACEOF
! 21576: cat confdefs.h >>conftest.$ac_ext
! 21577: cat >>conftest.$ac_ext <<_ACEOF
! 21578: /* end confdefs.h. */
! 21579: #include <stdlib.h>
1.1 misho 21580:
1.1.1.3 ! misho 21581: _ACEOF
! 21582: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 21583: $EGREP "free" >/dev/null 2>&1; then
! 21584: :
! 21585: else
! 21586: ac_cv_header_stdc=no
! 21587: fi
! 21588: rm -f -r conftest*
1.1 misho 21589:
1.1.1.3 ! misho 21590: fi
1.1 misho 21591:
1.1.1.3 ! misho 21592: if test $ac_cv_header_stdc = yes; then
! 21593: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 21594: if test "$cross_compiling" = yes; then
! 21595: :
1.1 misho 21596: else
1.1.1.3 ! misho 21597: cat >conftest.$ac_ext <<_ACEOF
! 21598: /* confdefs.h. */
! 21599: _ACEOF
! 21600: cat confdefs.h >>conftest.$ac_ext
! 21601: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21602: /* end confdefs.h. */
1.1.1.3 ! misho 21603: #include <ctype.h>
! 21604: #include <stdlib.h>
! 21605: #if ((' ' & 0x0FF) == 0x020)
! 21606: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 21607: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 21608: #else
! 21609: # define ISLOWER(c) \
! 21610: (('a' <= (c) && (c) <= 'i') \
! 21611: || ('j' <= (c) && (c) <= 'r') \
! 21612: || ('s' <= (c) && (c) <= 'z'))
! 21613: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 21614: #endif
1.1 misho 21615:
1.1.1.3 ! misho 21616: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 misho 21617: int
21618: main ()
21619: {
1.1.1.3 ! misho 21620: int i;
! 21621: for (i = 0; i < 256; i++)
! 21622: if (XOR (islower (i), ISLOWER (i))
! 21623: || toupper (i) != TOUPPER (i))
! 21624: return 2;
1.1 misho 21625: return 0;
21626: }
21627: _ACEOF
1.1.1.3 ! misho 21628: rm -f conftest$ac_exeext
! 21629: if { (ac_try="$ac_link"
! 21630: case "(($ac_try" in
! 21631: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21632: *) ac_try_echo=$ac_try;;
! 21633: esac
! 21634: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21635: (eval "$ac_link") 2>&5
! 21636: ac_status=$?
! 21637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21638: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 21639: { (case "(($ac_try" in
! 21640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21641: *) ac_try_echo=$ac_try;;
! 21642: esac
! 21643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21644: (eval "$ac_try") 2>&5
! 21645: ac_status=$?
! 21646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21647: (exit $ac_status); }; }; then
! 21648: :
1.1 misho 21649: else
1.1.1.3 ! misho 21650: echo "$as_me: program exited with status $ac_status" >&5
! 21651: echo "$as_me: failed program was:" >&5
! 21652: sed 's/^/| /' conftest.$ac_ext >&5
! 21653:
! 21654: ( exit $ac_status )
! 21655: ac_cv_header_stdc=no
1.1 misho 21656: fi
1.1.1.3 ! misho 21657: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 21658: fi
21659:
21660:
21661: fi
1.1.1.3 ! misho 21662: fi
! 21663: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 21664: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
! 21665: if test $ac_cv_header_stdc = yes; then
1.1 misho 21666:
1.1.1.3 ! misho 21667: cat >>confdefs.h <<\_ACEOF
! 21668: #define STDC_HEADERS 1
1.1 misho 21669: _ACEOF
21670:
21671: fi
21672:
21673:
21674:
21675:
21676:
1.1.1.3 ! misho 21677:
! 21678: ac_header_dirent=no
! 21679: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
! 21680: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
! 21681: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 21682: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
! 21683: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 21684: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 21685: else
1.1.1.3 ! misho 21686: cat >conftest.$ac_ext <<_ACEOF
! 21687: /* confdefs.h. */
! 21688: _ACEOF
! 21689: cat confdefs.h >>conftest.$ac_ext
! 21690: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21691: /* end confdefs.h. */
1.1.1.3 ! misho 21692: #include <sys/types.h>
! 21693: #include <$ac_hdr>
1.1 misho 21694:
21695: int
21696: main ()
21697: {
1.1.1.3 ! misho 21698: if ((DIR *) 0)
! 21699: return 0;
1.1 misho 21700: ;
21701: return 0;
21702: }
21703: _ACEOF
1.1.1.3 ! misho 21704: rm -f conftest.$ac_objext
! 21705: if { (ac_try="$ac_compile"
! 21706: case "(($ac_try" in
! 21707: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21708: *) ac_try_echo=$ac_try;;
! 21709: esac
! 21710: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21711: (eval "$ac_compile") 2>conftest.er1
! 21712: ac_status=$?
! 21713: grep -v '^ *+' conftest.er1 >conftest.err
! 21714: rm -f conftest.er1
! 21715: cat conftest.err >&5
! 21716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21717: (exit $ac_status); } && {
! 21718: test -z "$ac_c_werror_flag" ||
! 21719: test ! -s conftest.err
! 21720: } && test -s conftest.$ac_objext; then
! 21721: eval "$as_ac_Header=yes"
1.1 misho 21722: else
1.1.1.3 ! misho 21723: echo "$as_me: failed program was:" >&5
! 21724: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21725:
1.1.1.3 ! misho 21726: eval "$as_ac_Header=no"
1.1 misho 21727: fi
21728:
1.1.1.3 ! misho 21729: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 21730: fi
! 21731: ac_res=`eval echo '${'$as_ac_Header'}'`
! 21732: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21733: echo "${ECHO_T}$ac_res" >&6; }
! 21734: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 21735: cat >>confdefs.h <<_ACEOF
! 21736: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
! 21737: _ACEOF
1.1 misho 21738:
1.1.1.3 ! misho 21739: ac_header_dirent=$ac_hdr; break
! 21740: fi
1.1 misho 21741:
1.1.1.3 ! misho 21742: done
! 21743: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
! 21744: if test $ac_header_dirent = dirent.h; then
! 21745: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 21746: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
! 21747: if test "${ac_cv_search_opendir+set}" = set; then
! 21748: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21749: else
! 21750: ac_func_search_save_LIBS=$LIBS
! 21751: cat >conftest.$ac_ext <<_ACEOF
! 21752: /* confdefs.h. */
! 21753: _ACEOF
! 21754: cat confdefs.h >>conftest.$ac_ext
! 21755: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21756: /* end confdefs.h. */
1.1.1.3 ! misho 21757:
! 21758: /* Override any GCC internal prototype to avoid an error.
! 21759: Use char because int might match the return type of a GCC
! 21760: builtin and then its argument prototype would still apply. */
! 21761: #ifdef __cplusplus
! 21762: extern "C"
! 21763: #endif
! 21764: char opendir ();
1.1 misho 21765: int
21766: main ()
21767: {
1.1.1.3 ! misho 21768: return opendir ();
1.1 misho 21769: ;
21770: return 0;
21771: }
21772: _ACEOF
1.1.1.3 ! misho 21773: for ac_lib in '' dir; do
! 21774: if test -z "$ac_lib"; then
! 21775: ac_res="none required"
! 21776: else
! 21777: ac_res=-l$ac_lib
! 21778: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 21779: fi
! 21780: rm -f conftest.$ac_objext conftest$ac_exeext
! 21781: if { (ac_try="$ac_link"
! 21782: case "(($ac_try" in
! 21783: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21784: *) ac_try_echo=$ac_try;;
! 21785: esac
! 21786: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21787: (eval "$ac_link") 2>conftest.er1
! 21788: ac_status=$?
! 21789: grep -v '^ *+' conftest.er1 >conftest.err
! 21790: rm -f conftest.er1
! 21791: cat conftest.err >&5
! 21792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21793: (exit $ac_status); } && {
! 21794: test -z "$ac_c_werror_flag" ||
! 21795: test ! -s conftest.err
! 21796: } && test -s conftest$ac_exeext &&
! 21797: $as_test_x conftest$ac_exeext; then
! 21798: ac_cv_search_opendir=$ac_res
1.1 misho 21799: else
1.1.1.3 ! misho 21800: echo "$as_me: failed program was:" >&5
! 21801: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21802:
21803:
1.1.1.3 ! misho 21804: fi
1.1 misho 21805:
1.1.1.3 ! misho 21806: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21807: conftest$ac_exeext
! 21808: if test "${ac_cv_search_opendir+set}" = set; then
! 21809: break
! 21810: fi
! 21811: done
! 21812: if test "${ac_cv_search_opendir+set}" = set; then
! 21813: :
! 21814: else
! 21815: ac_cv_search_opendir=no
! 21816: fi
! 21817: rm conftest.$ac_ext
! 21818: LIBS=$ac_func_search_save_LIBS
! 21819: fi
! 21820: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 21821: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 21822: ac_res=$ac_cv_search_opendir
! 21823: if test "$ac_res" != no; then
! 21824: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 misho 21825:
21826: fi
1.1.1.3 ! misho 21827:
! 21828: else
! 21829: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 21830: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
! 21831: if test "${ac_cv_search_opendir+set}" = set; then
! 21832: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21833: else
! 21834: ac_func_search_save_LIBS=$LIBS
! 21835: cat >conftest.$ac_ext <<_ACEOF
! 21836: /* confdefs.h. */
! 21837: _ACEOF
! 21838: cat confdefs.h >>conftest.$ac_ext
! 21839: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 21840: /* end confdefs.h. */
1.1.1.3 ! misho 21841:
! 21842: /* Override any GCC internal prototype to avoid an error.
! 21843: Use char because int might match the return type of a GCC
! 21844: builtin and then its argument prototype would still apply. */
! 21845: #ifdef __cplusplus
! 21846: extern "C"
! 21847: #endif
! 21848: char opendir ();
1.1 misho 21849: int
21850: main ()
21851: {
1.1.1.3 ! misho 21852: return opendir ();
1.1 misho 21853: ;
21854: return 0;
21855: }
21856: _ACEOF
1.1.1.3 ! misho 21857: for ac_lib in '' x; do
! 21858: if test -z "$ac_lib"; then
! 21859: ac_res="none required"
! 21860: else
! 21861: ac_res=-l$ac_lib
! 21862: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 21863: fi
! 21864: rm -f conftest.$ac_objext conftest$ac_exeext
! 21865: if { (ac_try="$ac_link"
! 21866: case "(($ac_try" in
! 21867: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21868: *) ac_try_echo=$ac_try;;
! 21869: esac
! 21870: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21871: (eval "$ac_link") 2>conftest.er1
! 21872: ac_status=$?
! 21873: grep -v '^ *+' conftest.er1 >conftest.err
! 21874: rm -f conftest.er1
! 21875: cat conftest.err >&5
! 21876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21877: (exit $ac_status); } && {
! 21878: test -z "$ac_c_werror_flag" ||
! 21879: test ! -s conftest.err
! 21880: } && test -s conftest$ac_exeext &&
! 21881: $as_test_x conftest$ac_exeext; then
! 21882: ac_cv_search_opendir=$ac_res
1.1 misho 21883: else
1.1.1.3 ! misho 21884: echo "$as_me: failed program was:" >&5
! 21885: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 21886:
21887:
1.1.1.3 ! misho 21888: fi
1.1 misho 21889:
1.1.1.3 ! misho 21890: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21891: conftest$ac_exeext
! 21892: if test "${ac_cv_search_opendir+set}" = set; then
! 21893: break
! 21894: fi
! 21895: done
! 21896: if test "${ac_cv_search_opendir+set}" = set; then
! 21897: :
! 21898: else
! 21899: ac_cv_search_opendir=no
! 21900: fi
! 21901: rm conftest.$ac_ext
! 21902: LIBS=$ac_func_search_save_LIBS
! 21903: fi
! 21904: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 21905: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 21906: ac_res=$ac_cv_search_opendir
! 21907: if test "$ac_res" != no; then
! 21908: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 misho 21909:
21910: fi
21911:
1.1.1.3 ! misho 21912: fi
1.1 misho 21913:
21914:
21915:
21916:
21917:
21918:
21919:
21920:
21921:
21922:
21923:
21924:
21925:
21926:
21927:
21928:
21929:
21930:
21931:
21932:
21933:
21934:
21935:
21936:
21937:
21938:
21939:
21940:
21941:
21942:
21943:
21944:
21945:
21946:
21947:
21948:
21949:
21950:
21951:
21952:
21953:
21954:
21955:
21956:
21957:
21958:
21959:
21960:
21961:
21962:
21963:
21964:
21965:
21966:
21967:
21968:
1.1.1.3 ! misho 21969: for ac_header in \
! 21970: inttypes.h \
! 21971: stdint.h \
! 21972: dirent.h \
! 21973: ApplicationServices/ApplicationServices.h \
! 21974: sys/param.h \
! 21975: sys/types.h \
! 21976: sys/time.h \
! 21977: netinet/in.h \
! 21978: alloca.h \
! 21979: arpa/inet.h \
! 21980: arpa/nameser.h \
! 21981: assert.h \
! 21982: crypt.h \
! 21983: dns.h \
! 21984: fcntl.h \
! 21985: grp.h \
! 21986: ieeefp.h \
! 21987: langinfo.h \
! 21988: limits.h \
! 21989: locale.h \
! 21990: monetary.h \
! 21991: netdb.h \
! 21992: pwd.h \
! 21993: resolv.h \
! 21994: signal.h \
! 21995: stdarg.h \
! 21996: stdlib.h \
! 21997: string.h \
! 21998: syslog.h \
! 21999: sysexits.h \
! 22000: sys/ioctl.h \
! 22001: sys/file.h \
! 22002: sys/mman.h \
! 22003: sys/mount.h \
! 22004: sys/poll.h \
! 22005: sys/resource.h \
! 22006: sys/select.h \
! 22007: sys/socket.h \
! 22008: sys/stat.h \
! 22009: sys/statfs.h \
! 22010: sys/statvfs.h \
! 22011: sys/vfs.h \
! 22012: sys/sysexits.h \
! 22013: sys/varargs.h \
! 22014: sys/wait.h \
! 22015: sys/loadavg.h \
! 22016: termios.h \
! 22017: unistd.h \
! 22018: unix.h \
! 22019: utime.h \
! 22020: sys/utsname.h \
! 22021: sys/ipc.h \
! 22022: dlfcn.h \
! 22023: assert.h
1.1 misho 22024:
1.1.1.3 ! misho 22025: do
! 22026: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 22027: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 22028: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 22029: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 22030: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22031: else
! 22032: cat >conftest.$ac_ext <<_ACEOF
! 22033: /* confdefs.h. */
1.1 misho 22034: _ACEOF
1.1.1.3 ! misho 22035: cat confdefs.h >>conftest.$ac_ext
! 22036: cat >>conftest.$ac_ext <<_ACEOF
! 22037: /* end confdefs.h. */
1.1 misho 22038:
1.1.1.3 ! misho 22039: #ifdef HAVE_SYS_PARAM_H
! 22040: #include <sys/param.h>
! 22041: #endif
! 22042: #ifdef HAVE_SYS_TYPES_H
! 22043: #include <sys/types.h>
! 22044: #endif
! 22045: #ifdef HAVE_SYS_TIME_H
! 22046: #include <sys/time.h>
! 22047: #endif
! 22048: #ifdef HAVE_NETINET_IN_H
! 22049: #include <netinet/in.h>
! 22050: #endif
! 22051: #ifdef HAVE_ARPA_NAMESER_H
! 22052: #include <arpa/nameser.h>
! 22053: #endif
1.1 misho 22054:
22055:
1.1.1.3 ! misho 22056: #include <$ac_header>
! 22057: _ACEOF
! 22058: rm -f conftest.$ac_objext
! 22059: if { (ac_try="$ac_compile"
! 22060: case "(($ac_try" in
! 22061: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22062: *) ac_try_echo=$ac_try;;
! 22063: esac
! 22064: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22065: (eval "$ac_compile") 2>conftest.er1
! 22066: ac_status=$?
! 22067: grep -v '^ *+' conftest.er1 >conftest.err
! 22068: rm -f conftest.er1
! 22069: cat conftest.err >&5
! 22070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22071: (exit $ac_status); } && {
! 22072: test -z "$ac_c_werror_flag" ||
! 22073: test ! -s conftest.err
! 22074: } && test -s conftest.$ac_objext; then
! 22075: eval "$as_ac_Header=yes"
1.1 misho 22076: else
1.1.1.3 ! misho 22077: echo "$as_me: failed program was:" >&5
! 22078: sed 's/^/| /' conftest.$ac_ext >&5
! 22079:
! 22080: eval "$as_ac_Header=no"
! 22081: fi
! 22082:
! 22083: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 22084: fi
1.1.1.3 ! misho 22085: ac_res=`eval echo '${'$as_ac_Header'}'`
! 22086: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22087: echo "${ECHO_T}$ac_res" >&6; }
! 22088: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 22089: cat >>confdefs.h <<_ACEOF
! 22090: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 22091: _ACEOF
1.1 misho 22092:
22093: fi
1.1.1.3 ! misho 22094:
! 22095: done
1.1 misho 22096:
22097:
22098:
1.1.1.3 ! misho 22099: { echo "$as_me:$LINENO: checking for fopencookie" >&5
! 22100: echo $ECHO_N "checking for fopencookie... $ECHO_C" >&6; }
! 22101: if test "${ac_cv_func_fopencookie+set}" = set; then
! 22102: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22103: else
! 22104: cat >conftest.$ac_ext <<_ACEOF
! 22105: /* confdefs.h. */
1.1 misho 22106: _ACEOF
1.1.1.3 ! misho 22107: cat confdefs.h >>conftest.$ac_ext
! 22108: cat >>conftest.$ac_ext <<_ACEOF
! 22109: /* end confdefs.h. */
! 22110: /* Define fopencookie to an innocuous variant, in case <limits.h> declares fopencookie.
! 22111: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22112: #define fopencookie innocuous_fopencookie
1.1 misho 22113:
1.1.1.3 ! misho 22114: /* System header to define __stub macros and hopefully few prototypes,
! 22115: which can conflict with char fopencookie (); below.
! 22116: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 22117: <limits.h> exists even on freestanding compilers. */
1.1 misho 22118:
1.1.1.3 ! misho 22119: #ifdef __STDC__
! 22120: # include <limits.h>
! 22121: #else
! 22122: # include <assert.h>
! 22123: #endif
! 22124:
! 22125: #undef fopencookie
! 22126:
! 22127: /* Override any GCC internal prototype to avoid an error.
! 22128: Use char because int might match the return type of a GCC
! 22129: builtin and then its argument prototype would still apply. */
! 22130: #ifdef __cplusplus
! 22131: extern "C"
! 22132: #endif
! 22133: char fopencookie ();
! 22134: /* The GNU C library defines this for functions which it implements
! 22135: to always fail with ENOSYS. Some functions are actually named
! 22136: something starting with __ and the normal name is an alias. */
! 22137: #if defined __stub_fopencookie || defined __stub___fopencookie
! 22138: choke me
! 22139: #endif
1.1 misho 22140:
1.1.1.3 ! misho 22141: int
! 22142: main ()
! 22143: {
! 22144: return fopencookie ();
! 22145: ;
! 22146: return 0;
! 22147: }
! 22148: _ACEOF
! 22149: rm -f conftest.$ac_objext conftest$ac_exeext
! 22150: if { (ac_try="$ac_link"
! 22151: case "(($ac_try" in
! 22152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22153: *) ac_try_echo=$ac_try;;
! 22154: esac
! 22155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22156: (eval "$ac_link") 2>conftest.er1
! 22157: ac_status=$?
! 22158: grep -v '^ *+' conftest.er1 >conftest.err
! 22159: rm -f conftest.er1
! 22160: cat conftest.err >&5
! 22161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22162: (exit $ac_status); } && {
! 22163: test -z "$ac_c_werror_flag" ||
! 22164: test ! -s conftest.err
! 22165: } && test -s conftest$ac_exeext &&
! 22166: $as_test_x conftest$ac_exeext; then
! 22167: ac_cv_func_fopencookie=yes
1.1 misho 22168: else
1.1.1.3 ! misho 22169: echo "$as_me: failed program was:" >&5
! 22170: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22171:
1.1.1.3 ! misho 22172: ac_cv_func_fopencookie=no
1.1 misho 22173: fi
22174:
1.1.1.3 ! misho 22175: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22176: conftest$ac_exeext conftest.$ac_ext
! 22177: fi
! 22178: { echo "$as_me:$LINENO: result: $ac_cv_func_fopencookie" >&5
! 22179: echo "${ECHO_T}$ac_cv_func_fopencookie" >&6; }
! 22180: if test $ac_cv_func_fopencookie = yes; then
! 22181: have_glibc_fopencookie=yes
! 22182: fi
1.1 misho 22183:
22184:
1.1.1.3 ! misho 22185: if test "$have_glibc_fopencookie" = "yes"; then
! 22186: cat >conftest.$ac_ext <<_ACEOF
! 22187: /* confdefs.h. */
1.1 misho 22188: _ACEOF
1.1.1.3 ! misho 22189: cat confdefs.h >>conftest.$ac_ext
! 22190: cat >>conftest.$ac_ext <<_ACEOF
! 22191: /* end confdefs.h. */
1.1 misho 22192:
1.1.1.3 ! misho 22193: #define _GNU_SOURCE
! 22194: #include <stdio.h>
1.1 misho 22195:
1.1.1.3 ! misho 22196: int
! 22197: main ()
! 22198: {
! 22199: cookie_io_functions_t cookie;
! 22200: ;
! 22201: return 0;
! 22202: }
! 22203: _ACEOF
! 22204: rm -f conftest.$ac_objext
! 22205: if { (ac_try="$ac_compile"
! 22206: case "(($ac_try" in
! 22207: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22208: *) ac_try_echo=$ac_try;;
! 22209: esac
! 22210: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22211: (eval "$ac_compile") 2>conftest.er1
! 22212: ac_status=$?
! 22213: grep -v '^ *+' conftest.er1 >conftest.err
! 22214: rm -f conftest.er1
! 22215: cat conftest.err >&5
! 22216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22217: (exit $ac_status); } && {
! 22218: test -z "$ac_c_werror_flag" ||
! 22219: test ! -s conftest.err
! 22220: } && test -s conftest.$ac_objext; then
! 22221: have_cookie_io_functions_t=yes
1.1 misho 22222: else
1.1.1.3 ! misho 22223: echo "$as_me: failed program was:" >&5
! 22224: sed 's/^/| /' conftest.$ac_ext >&5
! 22225:
1.1 misho 22226:
22227: fi
22228:
1.1.1.3 ! misho 22229: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 22230:
1.1.1.3 ! misho 22231: if test "$have_cookie_io_functions_t" = "yes"; then
! 22232: cookie_io_functions_t=cookie_io_functions_t
! 22233: have_fopen_cookie=yes
1.1 misho 22234:
1.1.1.3 ! misho 22235: if test "$cross_compiling" = yes; then
! 22236:
! 22237: cookie_io_functions_use_off64_t=no
! 22238:
! 22239: else
! 22240: cat >conftest.$ac_ext <<_ACEOF
! 22241: /* confdefs.h. */
1.1 misho 22242: _ACEOF
1.1.1.3 ! misho 22243: cat confdefs.h >>conftest.$ac_ext
! 22244: cat >>conftest.$ac_ext <<_ACEOF
! 22245: /* end confdefs.h. */
1.1 misho 22246:
1.1.1.3 ! misho 22247: #define _GNU_SOURCE
! 22248: #include <stdio.h>
1.1 misho 22249:
1.1.1.3 ! misho 22250: struct cookiedata {
! 22251: __off64_t pos;
! 22252: };
1.1 misho 22253:
1.1.1.3 ! misho 22254: __ssize_t reader(void *cookie, char *buffer, size_t size)
! 22255: { return size; }
! 22256: __ssize_t writer(void *cookie, const char *buffer, size_t size)
! 22257: { return size; }
! 22258: int closer(void *cookie)
! 22259: { return 0; }
! 22260: int seeker(void *cookie, __off64_t *position, int whence)
! 22261: { ((struct cookiedata*)cookie)->pos = *position; return 0; }
1.1 misho 22262:
1.1.1.3 ! misho 22263: cookie_io_functions_t funcs = {reader, writer, seeker, closer};
! 22264:
! 22265: main() {
! 22266: struct cookiedata g = { 0 };
! 22267: FILE *fp = fopencookie(&g, "r", funcs);
1.1 misho 22268:
1.1.1.3 ! misho 22269: if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
! 22270: exit(0);
! 22271: exit(1);
! 22272: }
1.1 misho 22273:
22274:
22275: _ACEOF
1.1.1.3 ! misho 22276: rm -f conftest$ac_exeext
! 22277: if { (ac_try="$ac_link"
! 22278: case "(($ac_try" in
! 22279: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22280: *) ac_try_echo=$ac_try;;
! 22281: esac
! 22282: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22283: (eval "$ac_link") 2>&5
! 22284: ac_status=$?
! 22285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22286: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 22287: { (case "(($ac_try" in
! 22288: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22289: *) ac_try_echo=$ac_try;;
! 22290: esac
! 22291: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22292: (eval "$ac_try") 2>&5
! 22293: ac_status=$?
! 22294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22295: (exit $ac_status); }; }; then
1.1 misho 22296:
1.1.1.3 ! misho 22297: cookie_io_functions_use_off64_t=yes
1.1 misho 22298:
1.1.1.3 ! misho 22299: else
! 22300: echo "$as_me: program exited with status $ac_status" >&5
! 22301: echo "$as_me: failed program was:" >&5
! 22302: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22303:
1.1.1.3 ! misho 22304: ( exit $ac_status )
1.1 misho 22305:
1.1.1.3 ! misho 22306: cookie_io_functions_use_off64_t=no
1.1 misho 22307:
1.1.1.3 ! misho 22308: fi
! 22309: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 22310: fi
1.1 misho 22311:
22312:
22313:
1.1.1.3 ! misho 22314: else
! 22315:
! 22316: cat >conftest.$ac_ext <<_ACEOF
! 22317: /* confdefs.h. */
! 22318: _ACEOF
! 22319: cat confdefs.h >>conftest.$ac_ext
! 22320: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 22321: /* end confdefs.h. */
22322:
1.1.1.3 ! misho 22323: #define _GNU_SOURCE
! 22324: #include <stdio.h>
1.1 misho 22325:
1.1.1.3 ! misho 22326: int
! 22327: main ()
1.1 misho 22328: {
1.1.1.3 ! misho 22329: _IO_cookie_io_functions_t cookie;
! 22330: ;
! 22331: return 0;
1.1 misho 22332: }
22333: _ACEOF
1.1.1.3 ! misho 22334: rm -f conftest.$ac_objext
! 22335: if { (ac_try="$ac_compile"
! 22336: case "(($ac_try" in
! 22337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22338: *) ac_try_echo=$ac_try;;
! 22339: esac
! 22340: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22341: (eval "$ac_compile") 2>conftest.er1
! 22342: ac_status=$?
! 22343: grep -v '^ *+' conftest.er1 >conftest.err
! 22344: rm -f conftest.er1
! 22345: cat conftest.err >&5
! 22346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22347: (exit $ac_status); } && {
! 22348: test -z "$ac_c_werror_flag" ||
! 22349: test ! -s conftest.err
! 22350: } && test -s conftest.$ac_objext; then
! 22351: have_IO_cookie_io_functions_t=yes
1.1 misho 22352: else
1.1.1.3 ! misho 22353: echo "$as_me: failed program was:" >&5
! 22354: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22355:
22356:
22357: fi
22358:
1.1.1.3 ! misho 22359: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 22360: if test "$have_cookie_io_functions_t" = "yes" ; then
! 22361: cookie_io_functions_t=_IO_cookie_io_functions_t
! 22362: have_fopen_cookie=yes
! 22363: fi
! 22364: fi
1.1 misho 22365:
1.1.1.3 ! misho 22366: if test "$have_fopen_cookie" = "yes" ; then
1.1 misho 22367:
1.1.1.3 ! misho 22368: cat >>confdefs.h <<\_ACEOF
! 22369: #define HAVE_FOPENCOOKIE 1
1.1 misho 22370: _ACEOF
22371:
22372:
22373: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 22374: #define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t
1.1 misho 22375: _ACEOF
22376:
1.1.1.3 ! misho 22377: if test "$cookie_io_functions_use_off64_t" = "yes" ; then
1.1 misho 22378:
1.1.1.3 ! misho 22379: cat >>confdefs.h <<\_ACEOF
! 22380: #define COOKIE_SEEKER_USES_OFF64_T 1
! 22381: _ACEOF
1.1 misho 22382:
1.1.1.3 ! misho 22383: fi
! 22384: fi
1.1 misho 22385: fi
22386:
22387:
1.1.1.3 ! misho 22388: { echo "$as_me:$LINENO: checking for broken getcwd" >&5
! 22389: echo $ECHO_N "checking for broken getcwd... $ECHO_C" >&6; }
! 22390: os=`uname -sr 2>/dev/null`
! 22391: case $os in
! 22392: SunOS*)
1.1 misho 22393:
1.1.1.3 ! misho 22394: cat >>confdefs.h <<\_ACEOF
! 22395: #define HAVE_BROKEN_GETCWD 1
! 22396: _ACEOF
1.1 misho 22397:
1.1.1.3 ! misho 22398: { echo "$as_me:$LINENO: result: yes" >&5
! 22399: echo "${ECHO_T}yes" >&6; };;
! 22400: *)
! 22401: { echo "$as_me:$LINENO: result: no" >&5
! 22402: echo "${ECHO_T}no" >&6; };;
! 22403: esac
1.1 misho 22404:
22405:
1.1.1.3 ! misho 22406: { echo "$as_me:$LINENO: checking for broken libc stdio" >&5
! 22407: echo $ECHO_N "checking for broken libc stdio... $ECHO_C" >&6; }
! 22408: if test "${_cv_have_broken_glibc_fopen_append+set}" = set; then
! 22409: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 22410: else
1.1.1.3 ! misho 22411:
! 22412: if test "$cross_compiling" = yes; then
! 22413: cat >conftest.$ac_ext <<_ACEOF
! 22414: /* confdefs.h. */
! 22415: _ACEOF
! 22416: cat confdefs.h >>conftest.$ac_ext
! 22417: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 22418: /* end confdefs.h. */
22419:
1.1.1.3 ! misho 22420: #include <features.h>
1.1 misho 22421:
1.1.1.3 ! misho 22422: int
! 22423: main ()
1.1 misho 22424: {
22425:
1.1.1.3 ! misho 22426: #if !__GLIBC_PREREQ(2,2)
! 22427: choke me
! 22428: #endif
1.1 misho 22429:
1.1.1.3 ! misho 22430: ;
! 22431: return 0;
! 22432: }
! 22433: _ACEOF
! 22434: rm -f conftest.$ac_objext
! 22435: if { (ac_try="$ac_compile"
! 22436: case "(($ac_try" in
! 22437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22438: *) ac_try_echo=$ac_try;;
! 22439: esac
! 22440: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22441: (eval "$ac_compile") 2>conftest.er1
! 22442: ac_status=$?
! 22443: grep -v '^ *+' conftest.er1 >conftest.err
! 22444: rm -f conftest.er1
! 22445: cat conftest.err >&5
! 22446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22447: (exit $ac_status); } && {
! 22448: test -z "$ac_c_werror_flag" ||
! 22449: test ! -s conftest.err
! 22450: } && test -s conftest.$ac_objext; then
! 22451: _cv_have_broken_glibc_fopen_append=yes
1.1 misho 22452: else
1.1.1.3 ! misho 22453: echo "$as_me: failed program was:" >&5
! 22454: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22455:
1.1.1.3 ! misho 22456: _cv_have_broken_glibc_fopen_append=no
1.1 misho 22457: fi
22458:
1.1.1.3 ! misho 22459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 22460:
1.1.1.3 ! misho 22461: else
! 22462: cat >conftest.$ac_ext <<_ACEOF
! 22463: /* confdefs.h. */
! 22464: _ACEOF
! 22465: cat confdefs.h >>conftest.$ac_ext
! 22466: cat >>conftest.$ac_ext <<_ACEOF
! 22467: /* end confdefs.h. */
1.1 misho 22468:
1.1.1.3 ! misho 22469: #include <stdio.h>
! 22470: int main(int argc, char *argv[])
! 22471: {
! 22472: FILE *fp;
! 22473: long position;
! 22474: char *filename = "/tmp/phpglibccheck";
! 22475:
! 22476: fp = fopen(filename, "w");
! 22477: if (fp == NULL) {
! 22478: perror("fopen");
! 22479: exit(2);
! 22480: }
! 22481: fputs("foobar", fp);
! 22482: fclose(fp);
1.1 misho 22483:
1.1.1.3 ! misho 22484: fp = fopen(filename, "a+");
! 22485: position = ftell(fp);
! 22486: fclose(fp);
! 22487: unlink(filename);
! 22488: if (position == 0)
! 22489: return 1;
! 22490: return 0;
! 22491: }
1.1 misho 22492:
22493: _ACEOF
1.1.1.3 ! misho 22494: rm -f conftest$ac_exeext
! 22495: if { (ac_try="$ac_link"
! 22496: case "(($ac_try" in
! 22497: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22498: *) ac_try_echo=$ac_try;;
! 22499: esac
! 22500: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22501: (eval "$ac_link") 2>&5
! 22502: ac_status=$?
! 22503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22504: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 22505: { (case "(($ac_try" in
! 22506: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22507: *) ac_try_echo=$ac_try;;
! 22508: esac
! 22509: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22510: (eval "$ac_try") 2>&5
! 22511: ac_status=$?
! 22512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22513: (exit $ac_status); }; }; then
! 22514: _cv_have_broken_glibc_fopen_append=no
! 22515: else
! 22516: echo "$as_me: program exited with status $ac_status" >&5
! 22517: echo "$as_me: failed program was:" >&5
! 22518: sed 's/^/| /' conftest.$ac_ext >&5
! 22519:
! 22520: ( exit $ac_status )
! 22521: _cv_have_broken_glibc_fopen_append=yes
! 22522: fi
! 22523: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 22524: fi
1.1 misho 22525:
22526:
1.1.1.3 ! misho 22527: fi
1.1 misho 22528:
22529:
1.1.1.3 ! misho 22530: if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
! 22531: { echo "$as_me:$LINENO: result: yes" >&5
! 22532: echo "${ECHO_T}yes" >&6; }
! 22533:
! 22534: cat >>confdefs.h <<\_ACEOF
! 22535: #define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1
! 22536: _ACEOF
1.1 misho 22537:
1.1.1.3 ! misho 22538: else
! 22539: { echo "$as_me:$LINENO: result: no" >&5
! 22540: echo "${ECHO_T}no" >&6; }
1.1 misho 22541: fi
22542:
22543:
22544:
1.1.1.3 ! misho 22545: { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
! 22546: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
! 22547: if test "${ac_cv_struct_tm+set}" = set; then
! 22548: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22549: else
! 22550: cat >conftest.$ac_ext <<_ACEOF
! 22551: /* confdefs.h. */
! 22552: _ACEOF
! 22553: cat confdefs.h >>conftest.$ac_ext
! 22554: cat >>conftest.$ac_ext <<_ACEOF
! 22555: /* end confdefs.h. */
! 22556: #include <sys/types.h>
! 22557: #include <time.h>
1.1 misho 22558:
1.1.1.3 ! misho 22559: int
! 22560: main ()
! 22561: {
! 22562: struct tm tm;
! 22563: int *p = &tm.tm_sec;
! 22564: return !p;
! 22565: ;
! 22566: return 0;
! 22567: }
! 22568: _ACEOF
! 22569: rm -f conftest.$ac_objext
! 22570: if { (ac_try="$ac_compile"
! 22571: case "(($ac_try" in
! 22572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22573: *) ac_try_echo=$ac_try;;
! 22574: esac
! 22575: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22576: (eval "$ac_compile") 2>conftest.er1
! 22577: ac_status=$?
! 22578: grep -v '^ *+' conftest.er1 >conftest.err
! 22579: rm -f conftest.er1
! 22580: cat conftest.err >&5
! 22581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22582: (exit $ac_status); } && {
! 22583: test -z "$ac_c_werror_flag" ||
! 22584: test ! -s conftest.err
! 22585: } && test -s conftest.$ac_objext; then
! 22586: ac_cv_struct_tm=time.h
1.1 misho 22587: else
1.1.1.3 ! misho 22588: echo "$as_me: failed program was:" >&5
! 22589: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22590:
1.1.1.3 ! misho 22591: ac_cv_struct_tm=sys/time.h
! 22592: fi
1.1 misho 22593:
1.1.1.3 ! misho 22594: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 22595: fi
! 22596: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
! 22597: echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
! 22598: if test $ac_cv_struct_tm = sys/time.h; then
! 22599:
! 22600: cat >>confdefs.h <<\_ACEOF
! 22601: #define TM_IN_SYS_TIME 1
! 22602: _ACEOF
! 22603:
! 22604: fi
1.1 misho 22605:
1.1.1.3 ! misho 22606: { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
! 22607: echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
! 22608: if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
! 22609: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 22610: else
1.1.1.3 ! misho 22611: cat >conftest.$ac_ext <<_ACEOF
! 22612: /* confdefs.h. */
! 22613: _ACEOF
! 22614: cat confdefs.h >>conftest.$ac_ext
! 22615: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 22616: /* end confdefs.h. */
1.1.1.3 ! misho 22617: #include <sys/types.h>
! 22618: #include <$ac_cv_struct_tm>
1.1 misho 22619:
22620:
1.1.1.3 ! misho 22621: int
! 22622: main ()
1.1 misho 22623: {
1.1.1.3 ! misho 22624: static struct tm ac_aggr;
! 22625: if (ac_aggr.tm_zone)
! 22626: return 0;
! 22627: ;
! 22628: return 0;
1.1 misho 22629: }
1.1.1.3 ! misho 22630: _ACEOF
! 22631: rm -f conftest.$ac_objext
! 22632: if { (ac_try="$ac_compile"
! 22633: case "(($ac_try" in
! 22634: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22635: *) ac_try_echo=$ac_try;;
! 22636: esac
! 22637: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22638: (eval "$ac_compile") 2>conftest.er1
! 22639: ac_status=$?
! 22640: grep -v '^ *+' conftest.er1 >conftest.err
! 22641: rm -f conftest.er1
! 22642: cat conftest.err >&5
! 22643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22644: (exit $ac_status); } && {
! 22645: test -z "$ac_c_werror_flag" ||
! 22646: test ! -s conftest.err
! 22647: } && test -s conftest.$ac_objext; then
! 22648: ac_cv_member_struct_tm_tm_zone=yes
! 22649: else
! 22650: echo "$as_me: failed program was:" >&5
! 22651: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22652:
1.1.1.3 ! misho 22653: cat >conftest.$ac_ext <<_ACEOF
! 22654: /* confdefs.h. */
1.1 misho 22655: _ACEOF
1.1.1.3 ! misho 22656: cat confdefs.h >>conftest.$ac_ext
! 22657: cat >>conftest.$ac_ext <<_ACEOF
! 22658: /* end confdefs.h. */
! 22659: #include <sys/types.h>
! 22660: #include <$ac_cv_struct_tm>
1.1 misho 22661:
22662:
1.1.1.3 ! misho 22663: int
! 22664: main ()
! 22665: {
! 22666: static struct tm ac_aggr;
! 22667: if (sizeof ac_aggr.tm_zone)
! 22668: return 0;
! 22669: ;
! 22670: return 0;
! 22671: }
! 22672: _ACEOF
! 22673: rm -f conftest.$ac_objext
! 22674: if { (ac_try="$ac_compile"
! 22675: case "(($ac_try" in
! 22676: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22677: *) ac_try_echo=$ac_try;;
! 22678: esac
! 22679: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22680: (eval "$ac_compile") 2>conftest.er1
! 22681: ac_status=$?
! 22682: grep -v '^ *+' conftest.er1 >conftest.err
! 22683: rm -f conftest.er1
! 22684: cat conftest.err >&5
! 22685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22686: (exit $ac_status); } && {
! 22687: test -z "$ac_c_werror_flag" ||
! 22688: test ! -s conftest.err
! 22689: } && test -s conftest.$ac_objext; then
! 22690: ac_cv_member_struct_tm_tm_zone=yes
1.1 misho 22691: else
1.1.1.3 ! misho 22692: echo "$as_me: failed program was:" >&5
! 22693: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22694:
1.1.1.3 ! misho 22695: ac_cv_member_struct_tm_tm_zone=no
! 22696: fi
1.1 misho 22697:
1.1.1.3 ! misho 22698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 22699: fi
1.1.1.3 ! misho 22700:
! 22701: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 22702: fi
1.1.1.3 ! misho 22703: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
! 22704: echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
! 22705: if test $ac_cv_member_struct_tm_tm_zone = yes; then
! 22706:
! 22707: cat >>confdefs.h <<_ACEOF
! 22708: #define HAVE_STRUCT_TM_TM_ZONE 1
! 22709: _ACEOF
1.1 misho 22710:
22711:
22712: fi
22713:
1.1.1.3 ! misho 22714: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1.1 misho 22715:
1.1.1.3 ! misho 22716: cat >>confdefs.h <<\_ACEOF
! 22717: #define HAVE_TM_ZONE 1
! 22718: _ACEOF
1.1 misho 22719:
1.1.1.3 ! misho 22720: else
! 22721: { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
! 22722: echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
! 22723: if test "${ac_cv_have_decl_tzname+set}" = set; then
! 22724: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22725: else
! 22726: cat >conftest.$ac_ext <<_ACEOF
! 22727: /* confdefs.h. */
! 22728: _ACEOF
! 22729: cat confdefs.h >>conftest.$ac_ext
! 22730: cat >>conftest.$ac_ext <<_ACEOF
! 22731: /* end confdefs.h. */
! 22732: #include <time.h>
! 22733:
! 22734: int
! 22735: main ()
! 22736: {
! 22737: #ifndef tzname
! 22738: (void) tzname;
! 22739: #endif
! 22740:
! 22741: ;
! 22742: return 0;
! 22743: }
1.1 misho 22744: _ACEOF
1.1.1.3 ! misho 22745: rm -f conftest.$ac_objext
! 22746: if { (ac_try="$ac_compile"
! 22747: case "(($ac_try" in
! 22748: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22749: *) ac_try_echo=$ac_try;;
! 22750: esac
! 22751: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22752: (eval "$ac_compile") 2>conftest.er1
! 22753: ac_status=$?
! 22754: grep -v '^ *+' conftest.er1 >conftest.err
! 22755: rm -f conftest.er1
! 22756: cat conftest.err >&5
! 22757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22758: (exit $ac_status); } && {
! 22759: test -z "$ac_c_werror_flag" ||
! 22760: test ! -s conftest.err
! 22761: } && test -s conftest.$ac_objext; then
! 22762: ac_cv_have_decl_tzname=yes
! 22763: else
! 22764: echo "$as_me: failed program was:" >&5
! 22765: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22766:
1.1.1.3 ! misho 22767: ac_cv_have_decl_tzname=no
! 22768: fi
! 22769:
! 22770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 22771: fi
! 22772: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
! 22773: echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
! 22774: if test $ac_cv_have_decl_tzname = yes; then
1.1 misho 22775:
22776: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 22777: #define HAVE_DECL_TZNAME 1
1.1 misho 22778: _ACEOF
22779:
22780:
1.1.1.3 ! misho 22781: else
! 22782: cat >>confdefs.h <<_ACEOF
! 22783: #define HAVE_DECL_TZNAME 0
! 22784: _ACEOF
1.1 misho 22785:
22786:
1.1.1.3 ! misho 22787: fi
1.1 misho 22788:
22789:
1.1.1.3 ! misho 22790: { echo "$as_me:$LINENO: checking for tzname" >&5
! 22791: echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
! 22792: if test "${ac_cv_var_tzname+set}" = set; then
! 22793: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22794: else
! 22795: cat >conftest.$ac_ext <<_ACEOF
! 22796: /* confdefs.h. */
! 22797: _ACEOF
! 22798: cat confdefs.h >>conftest.$ac_ext
! 22799: cat >>conftest.$ac_ext <<_ACEOF
! 22800: /* end confdefs.h. */
! 22801: #include <time.h>
! 22802: #if !HAVE_DECL_TZNAME
! 22803: extern char *tzname[];
! 22804: #endif
1.1 misho 22805:
1.1.1.3 ! misho 22806: int
! 22807: main ()
! 22808: {
! 22809: return tzname[0][0];
! 22810: ;
! 22811: return 0;
! 22812: }
1.1 misho 22813: _ACEOF
1.1.1.3 ! misho 22814: rm -f conftest.$ac_objext conftest$ac_exeext
! 22815: if { (ac_try="$ac_link"
! 22816: case "(($ac_try" in
! 22817: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22818: *) ac_try_echo=$ac_try;;
! 22819: esac
! 22820: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22821: (eval "$ac_link") 2>conftest.er1
! 22822: ac_status=$?
! 22823: grep -v '^ *+' conftest.er1 >conftest.err
! 22824: rm -f conftest.er1
! 22825: cat conftest.err >&5
! 22826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22827: (exit $ac_status); } && {
! 22828: test -z "$ac_c_werror_flag" ||
! 22829: test ! -s conftest.err
! 22830: } && test -s conftest$ac_exeext &&
! 22831: $as_test_x conftest$ac_exeext; then
! 22832: ac_cv_var_tzname=yes
! 22833: else
! 22834: echo "$as_me: failed program was:" >&5
! 22835: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 22836:
1.1.1.3 ! misho 22837: ac_cv_var_tzname=no
! 22838: fi
! 22839:
! 22840: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22841: conftest$ac_exeext conftest.$ac_ext
! 22842: fi
! 22843: { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
! 22844: echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
! 22845: if test $ac_cv_var_tzname = yes; then
1.1 misho 22846:
1.1.1.3 ! misho 22847: cat >>confdefs.h <<\_ACEOF
! 22848: #define HAVE_TZNAME 1
! 22849: _ACEOF
1.1 misho 22850:
1.1.1.3 ! misho 22851: fi
1.1 misho 22852: fi
22853:
22854:
22855:
1.1.1.3 ! misho 22856: { echo "$as_me:$LINENO: checking for missing declarations of reentrant functions" >&5
! 22857: echo $ECHO_N "checking for missing declarations of reentrant functions... $ECHO_C" >&6; }
! 22858: cat >conftest.$ac_ext <<_ACEOF
! 22859: /* confdefs.h. */
1.1 misho 22860: _ACEOF
1.1.1.3 ! misho 22861: cat confdefs.h >>conftest.$ac_ext
! 22862: cat >>conftest.$ac_ext <<_ACEOF
! 22863: /* end confdefs.h. */
! 22864: #include <time.h>
! 22865: int
! 22866: main ()
! 22867: {
! 22868: struct tm *(*func)() = localtime_r
! 22869: ;
! 22870: return 0;
! 22871: }
! 22872: _ACEOF
! 22873: rm -f conftest.$ac_objext
! 22874: if { (ac_try="$ac_compile"
! 22875: case "(($ac_try" in
! 22876: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22877: *) ac_try_echo=$ac_try;;
! 22878: esac
! 22879: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22880: (eval "$ac_compile") 2>conftest.er1
! 22881: ac_status=$?
! 22882: grep -v '^ *+' conftest.er1 >conftest.err
! 22883: rm -f conftest.er1
! 22884: cat conftest.err >&5
! 22885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22886: (exit $ac_status); } && {
! 22887: test -z "$ac_c_werror_flag" ||
! 22888: test ! -s conftest.err
! 22889: } && test -s conftest.$ac_objext; then
1.1 misho 22890:
1.1.1.3 ! misho 22891: :
1.1 misho 22892:
22893: else
1.1.1.3 ! misho 22894: echo "$as_me: failed program was:" >&5
! 22895: sed 's/^/| /' conftest.$ac_ext >&5
! 22896:
! 22897:
! 22898:
! 22899: cat >>confdefs.h <<\_ACEOF
! 22900: #define MISSING_LOCALTIME_R_DECL 1
! 22901: _ACEOF
! 22902:
1.1 misho 22903:
22904: fi
22905:
1.1.1.3 ! misho 22906: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 22907: cat >conftest.$ac_ext <<_ACEOF
! 22908: /* confdefs.h. */
! 22909: _ACEOF
! 22910: cat confdefs.h >>conftest.$ac_ext
! 22911: cat >>conftest.$ac_ext <<_ACEOF
! 22912: /* end confdefs.h. */
! 22913: #include <time.h>
! 22914: int
! 22915: main ()
! 22916: {
! 22917: struct tm *(*func)() = gmtime_r
! 22918: ;
! 22919: return 0;
! 22920: }
! 22921: _ACEOF
! 22922: rm -f conftest.$ac_objext
! 22923: if { (ac_try="$ac_compile"
! 22924: case "(($ac_try" in
! 22925: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22926: *) ac_try_echo=$ac_try;;
! 22927: esac
! 22928: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22929: (eval "$ac_compile") 2>conftest.er1
! 22930: ac_status=$?
! 22931: grep -v '^ *+' conftest.er1 >conftest.err
! 22932: rm -f conftest.er1
! 22933: cat conftest.err >&5
! 22934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22935: (exit $ac_status); } && {
! 22936: test -z "$ac_c_werror_flag" ||
! 22937: test ! -s conftest.err
! 22938: } && test -s conftest.$ac_objext; then
! 22939:
! 22940: :
1.1 misho 22941:
22942: else
1.1.1.3 ! misho 22943: echo "$as_me: failed program was:" >&5
! 22944: sed 's/^/| /' conftest.$ac_ext >&5
! 22945:
! 22946:
! 22947:
! 22948: cat >>confdefs.h <<\_ACEOF
! 22949: #define MISSING_GMTIME_R_DECL 1
! 22950: _ACEOF
! 22951:
! 22952:
1.1 misho 22953: fi
22954:
1.1.1.3 ! misho 22955: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 22956: cat >conftest.$ac_ext <<_ACEOF
! 22957: /* confdefs.h. */
! 22958: _ACEOF
! 22959: cat confdefs.h >>conftest.$ac_ext
! 22960: cat >>conftest.$ac_ext <<_ACEOF
! 22961: /* end confdefs.h. */
! 22962: #include <time.h>
! 22963: int
! 22964: main ()
! 22965: {
! 22966: char *(*func)() = asctime_r
! 22967: ;
! 22968: return 0;
! 22969: }
1.1 misho 22970: _ACEOF
1.1.1.3 ! misho 22971: rm -f conftest.$ac_objext
! 22972: if { (ac_try="$ac_compile"
! 22973: case "(($ac_try" in
! 22974: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22975: *) ac_try_echo=$ac_try;;
! 22976: esac
! 22977: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22978: (eval "$ac_compile") 2>conftest.er1
! 22979: ac_status=$?
! 22980: grep -v '^ *+' conftest.er1 >conftest.err
! 22981: rm -f conftest.er1
! 22982: cat conftest.err >&5
! 22983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22984: (exit $ac_status); } && {
! 22985: test -z "$ac_c_werror_flag" ||
! 22986: test ! -s conftest.err
! 22987: } && test -s conftest.$ac_objext; then
1.1 misho 22988:
1.1.1.3 ! misho 22989: :
1.1 misho 22990:
1.1.1.3 ! misho 22991: else
! 22992: echo "$as_me: failed program was:" >&5
! 22993: sed 's/^/| /' conftest.$ac_ext >&5
! 22994:
! 22995:
! 22996:
! 22997: cat >>confdefs.h <<\_ACEOF
! 22998: #define MISSING_ASCTIME_R_DECL 1
! 22999: _ACEOF
1.1 misho 23000:
23001:
1.1.1.3 ! misho 23002: fi
1.1 misho 23003:
1.1.1.3 ! misho 23004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23005: cat >conftest.$ac_ext <<_ACEOF
! 23006: /* confdefs.h. */
! 23007: _ACEOF
! 23008: cat confdefs.h >>conftest.$ac_ext
! 23009: cat >>conftest.$ac_ext <<_ACEOF
! 23010: /* end confdefs.h. */
! 23011: #include <time.h>
! 23012: int
! 23013: main ()
! 23014: {
! 23015: char *(*func)() = ctime_r
! 23016: ;
! 23017: return 0;
! 23018: }
! 23019: _ACEOF
! 23020: rm -f conftest.$ac_objext
! 23021: if { (ac_try="$ac_compile"
! 23022: case "(($ac_try" in
! 23023: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23024: *) ac_try_echo=$ac_try;;
! 23025: esac
! 23026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23027: (eval "$ac_compile") 2>conftest.er1
! 23028: ac_status=$?
! 23029: grep -v '^ *+' conftest.er1 >conftest.err
! 23030: rm -f conftest.er1
! 23031: cat conftest.err >&5
! 23032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23033: (exit $ac_status); } && {
! 23034: test -z "$ac_c_werror_flag" ||
! 23035: test ! -s conftest.err
! 23036: } && test -s conftest.$ac_objext; then
1.1 misho 23037:
1.1.1.3 ! misho 23038: :
1.1 misho 23039:
23040: else
1.1.1.3 ! misho 23041: echo "$as_me: failed program was:" >&5
! 23042: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23043:
1.1.1.3 ! misho 23044:
! 23045:
! 23046: cat >>confdefs.h <<\_ACEOF
! 23047: #define MISSING_CTIME_R_DECL 1
1.1 misho 23048: _ACEOF
23049:
1.1.1.3 ! misho 23050:
1.1 misho 23051: fi
23052:
1.1.1.3 ! misho 23053: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23054: cat >conftest.$ac_ext <<_ACEOF
! 23055: /* confdefs.h. */
! 23056: _ACEOF
! 23057: cat confdefs.h >>conftest.$ac_ext
! 23058: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23059: /* end confdefs.h. */
1.1.1.3 ! misho 23060: #include <string.h>
! 23061: int
! 23062: main ()
! 23063: {
! 23064: char *(*func)() = strtok_r
! 23065: ;
! 23066: return 0;
! 23067: }
1.1 misho 23068: _ACEOF
1.1.1.3 ! misho 23069: rm -f conftest.$ac_objext
! 23070: if { (ac_try="$ac_compile"
! 23071: case "(($ac_try" in
! 23072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23073: *) ac_try_echo=$ac_try;;
! 23074: esac
! 23075: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23076: (eval "$ac_compile") 2>conftest.er1
! 23077: ac_status=$?
! 23078: grep -v '^ *+' conftest.er1 >conftest.err
! 23079: rm -f conftest.er1
! 23080: cat conftest.err >&5
! 23081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23082: (exit $ac_status); } && {
! 23083: test -z "$ac_c_werror_flag" ||
! 23084: test ! -s conftest.err
! 23085: } && test -s conftest.$ac_objext; then
! 23086:
! 23087: :
! 23088:
1.1 misho 23089: else
1.1.1.3 ! misho 23090: echo "$as_me: failed program was:" >&5
! 23091: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23092:
23093:
23094:
1.1.1.3 ! misho 23095: cat >>confdefs.h <<\_ACEOF
! 23096: #define MISSING_STRTOK_R_DECL 1
! 23097: _ACEOF
1.1 misho 23098:
23099:
23100: fi
23101:
1.1.1.3 ! misho 23102: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23103: { echo "$as_me:$LINENO: result: done" >&5
! 23104: echo "${ECHO_T}done" >&6; }
1.1 misho 23105:
23106:
1.1.1.3 ! misho 23107: { echo "$as_me:$LINENO: checking for fclose declaration" >&5
! 23108: echo $ECHO_N "checking for fclose declaration... $ECHO_C" >&6; }
! 23109: cat >conftest.$ac_ext <<_ACEOF
! 23110: /* confdefs.h. */
! 23111: _ACEOF
! 23112: cat confdefs.h >>conftest.$ac_ext
! 23113: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23114: /* end confdefs.h. */
1.1.1.3 ! misho 23115: #include <stdio.h>
1.1 misho 23116: int
23117: main ()
23118: {
1.1.1.3 ! misho 23119: int (*func)() = fclose
1.1 misho 23120: ;
23121: return 0;
23122: }
23123: _ACEOF
1.1.1.3 ! misho 23124: rm -f conftest.$ac_objext
! 23125: if { (ac_try="$ac_compile"
! 23126: case "(($ac_try" in
! 23127: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23128: *) ac_try_echo=$ac_try;;
! 23129: esac
! 23130: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23131: (eval "$ac_compile") 2>conftest.er1
! 23132: ac_status=$?
! 23133: grep -v '^ *+' conftest.er1 >conftest.err
! 23134: rm -f conftest.er1
! 23135: cat conftest.err >&5
! 23136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23137: (exit $ac_status); } && {
! 23138: test -z "$ac_c_werror_flag" ||
! 23139: test ! -s conftest.err
! 23140: } && test -s conftest.$ac_objext; then
! 23141:
! 23142:
! 23143: cat >>confdefs.h <<\_ACEOF
! 23144: #define MISSING_FCLOSE_DECL 0
! 23145: _ACEOF
! 23146:
! 23147: { echo "$as_me:$LINENO: result: ok" >&5
! 23148: echo "${ECHO_T}ok" >&6; }
! 23149:
1.1 misho 23150: else
1.1.1.3 ! misho 23151: echo "$as_me: failed program was:" >&5
! 23152: sed 's/^/| /' conftest.$ac_ext >&5
! 23153:
! 23154:
! 23155:
! 23156: cat >>confdefs.h <<\_ACEOF
! 23157: #define MISSING_FCLOSE_DECL 1
! 23158: _ACEOF
! 23159:
! 23160: { echo "$as_me:$LINENO: result: missing" >&5
! 23161: echo "${ECHO_T}missing" >&6; }
! 23162:
1.1 misho 23163: fi
1.1.1.3 ! misho 23164:
1.1 misho 23165: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166:
23167:
23168:
1.1.1.3 ! misho 23169: { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
! 23170: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
! 23171: if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
! 23172: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 23173: else
1.1.1.3 ! misho 23174: cat >conftest.$ac_ext <<_ACEOF
! 23175: /* confdefs.h. */
! 23176: _ACEOF
! 23177: cat confdefs.h >>conftest.$ac_ext
! 23178: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23179: /* end confdefs.h. */
23180: #include <sys/types.h>
1.1.1.3 ! misho 23181: #include <$ac_cv_struct_tm>
1.1 misho 23182: int
23183: main ()
23184: {
1.1.1.3 ! misho 23185: struct tm tm; tm.tm_gmtoff;
1.1 misho 23186: ;
23187: return 0;
23188: }
23189: _ACEOF
1.1.1.3 ! misho 23190: rm -f conftest.$ac_objext
! 23191: if { (ac_try="$ac_compile"
! 23192: case "(($ac_try" in
! 23193: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23194: *) ac_try_echo=$ac_try;;
! 23195: esac
! 23196: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23197: (eval "$ac_compile") 2>conftest.er1
! 23198: ac_status=$?
! 23199: grep -v '^ *+' conftest.er1 >conftest.err
! 23200: rm -f conftest.er1
! 23201: cat conftest.err >&5
! 23202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23203: (exit $ac_status); } && {
! 23204: test -z "$ac_c_werror_flag" ||
! 23205: test ! -s conftest.err
! 23206: } && test -s conftest.$ac_objext; then
! 23207: ac_cv_struct_tm_gmtoff=yes
1.1 misho 23208: else
1.1.1.3 ! misho 23209: echo "$as_me: failed program was:" >&5
! 23210: sed 's/^/| /' conftest.$ac_ext >&5
! 23211:
! 23212: ac_cv_struct_tm_gmtoff=no
1.1 misho 23213: fi
23214:
1.1.1.3 ! misho 23215: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23216: fi
1.1.1.3 ! misho 23217: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
! 23218: echo "${ECHO_T}$ac_cv_struct_tm_gmtoff" >&6; }
! 23219:
! 23220: if test "$ac_cv_struct_tm_gmtoff" = yes; then
1.1 misho 23221:
1.1.1.3 ! misho 23222: cat >>confdefs.h <<\_ACEOF
! 23223: #define HAVE_TM_GMTOFF 1
! 23224: _ACEOF
1.1 misho 23225:
1.1.1.3 ! misho 23226: fi
1.1 misho 23227:
23228:
1.1.1.3 ! misho 23229: { echo "$as_me:$LINENO: checking for struct flock" >&5
! 23230: echo $ECHO_N "checking for struct flock... $ECHO_C" >&6; }
! 23231: if test "${ac_cv_struct_flock+set}" = set; then
! 23232: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 23233: else
1.1.1.3 ! misho 23234: cat >conftest.$ac_ext <<_ACEOF
! 23235: /* confdefs.h. */
! 23236: _ACEOF
! 23237: cat confdefs.h >>conftest.$ac_ext
! 23238: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23239: /* end confdefs.h. */
1.1.1.3 ! misho 23240:
! 23241: #include <unistd.h>
! 23242: #include <fcntl.h>
! 23243:
1.1 misho 23244: int
23245: main ()
23246: {
1.1.1.3 ! misho 23247: struct flock x;
1.1 misho 23248: ;
23249: return 0;
23250: }
23251: _ACEOF
1.1.1.3 ! misho 23252: rm -f conftest.$ac_objext
! 23253: if { (ac_try="$ac_compile"
! 23254: case "(($ac_try" in
! 23255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23256: *) ac_try_echo=$ac_try;;
! 23257: esac
! 23258: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23259: (eval "$ac_compile") 2>conftest.er1
! 23260: ac_status=$?
! 23261: grep -v '^ *+' conftest.er1 >conftest.err
! 23262: rm -f conftest.er1
! 23263: cat conftest.err >&5
! 23264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23265: (exit $ac_status); } && {
! 23266: test -z "$ac_c_werror_flag" ||
! 23267: test ! -s conftest.err
! 23268: } && test -s conftest.$ac_objext; then
! 23269:
! 23270: ac_cv_struct_flock=yes
! 23271:
1.1 misho 23272: else
1.1.1.3 ! misho 23273: echo "$as_me: failed program was:" >&5
! 23274: sed 's/^/| /' conftest.$ac_ext >&5
! 23275:
! 23276:
! 23277: ac_cv_struct_flock=no
! 23278:
! 23279: fi
! 23280:
! 23281: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23282:
1.1 misho 23283: fi
1.1.1.3 ! misho 23284: { echo "$as_me:$LINENO: result: $ac_cv_struct_flock" >&5
! 23285: echo "${ECHO_T}$ac_cv_struct_flock" >&6; }
! 23286: if test "$ac_cv_struct_flock" = "yes" ; then
! 23287:
! 23288: cat >>confdefs.h <<\_ACEOF
! 23289: #define HAVE_STRUCT_FLOCK 1
! 23290: _ACEOF
! 23291:
1.1 misho 23292: fi
23293:
23294:
1.1.1.3 ! misho 23295: { echo "$as_me:$LINENO: checking for socklen_t" >&5
! 23296: echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
! 23297: if test "${ac_cv_socklen_t+set}" = set; then
! 23298: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23299: else
! 23300: cat >conftest.$ac_ext <<_ACEOF
! 23301: /* confdefs.h. */
1.1 misho 23302: _ACEOF
1.1.1.3 ! misho 23303: cat confdefs.h >>conftest.$ac_ext
! 23304: cat >>conftest.$ac_ext <<_ACEOF
! 23305: /* end confdefs.h. */
1.1 misho 23306:
1.1.1.3 ! misho 23307: #include <sys/types.h>
! 23308: #include <sys/socket.h>
1.1 misho 23309:
1.1.1.3 ! misho 23310: int
! 23311: main ()
! 23312: {
1.1 misho 23313:
1.1.1.3 ! misho 23314: socklen_t x;
1.1 misho 23315:
1.1.1.3 ! misho 23316: ;
! 23317: return 0;
! 23318: }
! 23319: _ACEOF
! 23320: rm -f conftest.$ac_objext
! 23321: if { (ac_try="$ac_compile"
! 23322: case "(($ac_try" in
! 23323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23324: *) ac_try_echo=$ac_try;;
! 23325: esac
! 23326: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23327: (eval "$ac_compile") 2>conftest.er1
! 23328: ac_status=$?
! 23329: grep -v '^ *+' conftest.er1 >conftest.err
! 23330: rm -f conftest.er1
! 23331: cat conftest.err >&5
! 23332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23333: (exit $ac_status); } && {
! 23334: test -z "$ac_c_werror_flag" ||
! 23335: test ! -s conftest.err
! 23336: } && test -s conftest.$ac_objext; then
1.1 misho 23337:
1.1.1.3 ! misho 23338: ac_cv_socklen_t=yes
1.1 misho 23339:
1.1.1.3 ! misho 23340: else
! 23341: echo "$as_me: failed program was:" >&5
! 23342: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23343:
23344:
1.1.1.3 ! misho 23345: ac_cv_socklen_t=no
1.1 misho 23346:
23347: fi
23348:
1.1.1.3 ! misho 23349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23350: fi
1.1.1.3 ! misho 23351: { echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
! 23352: echo "${ECHO_T}$ac_cv_socklen_t" >&6; }
! 23353: if test "$ac_cv_socklen_t" = "yes"; then
1.1 misho 23354:
1.1.1.3 ! misho 23355: cat >>confdefs.h <<\_ACEOF
! 23356: #define HAVE_SOCKLEN_T 1
! 23357: _ACEOF
1.1 misho 23358:
1.1.1.3 ! misho 23359: fi
1.1 misho 23360:
23361:
1.1.1.3 ! misho 23362: { echo "$as_me:$LINENO: checking for size_t" >&5
! 23363: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
! 23364: if test "${ac_cv_type_size_t+set}" = set; then
! 23365: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 23366: else
1.1.1.3 ! misho 23367: cat >conftest.$ac_ext <<_ACEOF
! 23368: /* confdefs.h. */
! 23369: _ACEOF
! 23370: cat confdefs.h >>conftest.$ac_ext
! 23371: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23372: /* end confdefs.h. */
1.1.1.3 ! misho 23373: $ac_includes_default
! 23374: typedef size_t ac__type_new_;
1.1 misho 23375: int
23376: main ()
23377: {
1.1.1.3 ! misho 23378: if ((ac__type_new_ *) 0)
! 23379: return 0;
! 23380: if (sizeof (ac__type_new_))
! 23381: return 0;
1.1 misho 23382: ;
23383: return 0;
23384: }
23385: _ACEOF
1.1.1.3 ! misho 23386: rm -f conftest.$ac_objext
! 23387: if { (ac_try="$ac_compile"
! 23388: case "(($ac_try" in
! 23389: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23390: *) ac_try_echo=$ac_try;;
! 23391: esac
! 23392: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23393: (eval "$ac_compile") 2>conftest.er1
! 23394: ac_status=$?
! 23395: grep -v '^ *+' conftest.er1 >conftest.err
! 23396: rm -f conftest.er1
! 23397: cat conftest.err >&5
! 23398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23399: (exit $ac_status); } && {
! 23400: test -z "$ac_c_werror_flag" ||
! 23401: test ! -s conftest.err
! 23402: } && test -s conftest.$ac_objext; then
! 23403: ac_cv_type_size_t=yes
1.1 misho 23404: else
1.1.1.3 ! misho 23405: echo "$as_me: failed program was:" >&5
! 23406: sed 's/^/| /' conftest.$ac_ext >&5
! 23407:
! 23408: ac_cv_type_size_t=no
1.1 misho 23409: fi
1.1.1.3 ! misho 23410:
! 23411: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23412: fi
1.1.1.3 ! misho 23413: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 23414: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
1.1 misho 23415:
1.1.1.3 ! misho 23416: # The cast to long int works around a bug in the HP C Compiler
! 23417: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 23418: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 23419: # This bug is HP SR number 8606223364.
! 23420: { echo "$as_me:$LINENO: checking size of size_t" >&5
! 23421: echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
! 23422: if test "${ac_cv_sizeof_size_t+set}" = set; then
! 23423: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 23424: else
1.1.1.3 ! misho 23425: if test "$cross_compiling" = yes; then
! 23426: # Depending upon the size, compute the lo and hi bounds.
! 23427: cat >conftest.$ac_ext <<_ACEOF
! 23428: /* confdefs.h. */
! 23429: _ACEOF
! 23430: cat confdefs.h >>conftest.$ac_ext
! 23431: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23432: /* end confdefs.h. */
1.1.1.3 ! misho 23433: $ac_includes_default
! 23434: typedef size_t ac__type_sizeof_;
! 23435: int
! 23436: main ()
! 23437: {
! 23438: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 23439: test_array [0] = 0
1.1 misho 23440:
1.1.1.3 ! misho 23441: ;
! 23442: return 0;
! 23443: }
! 23444: _ACEOF
! 23445: rm -f conftest.$ac_objext
! 23446: if { (ac_try="$ac_compile"
! 23447: case "(($ac_try" in
! 23448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23449: *) ac_try_echo=$ac_try;;
! 23450: esac
! 23451: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23452: (eval "$ac_compile") 2>conftest.er1
! 23453: ac_status=$?
! 23454: grep -v '^ *+' conftest.er1 >conftest.err
! 23455: rm -f conftest.er1
! 23456: cat conftest.err >&5
! 23457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23458: (exit $ac_status); } && {
! 23459: test -z "$ac_c_werror_flag" ||
! 23460: test ! -s conftest.err
! 23461: } && test -s conftest.$ac_objext; then
! 23462: ac_lo=0 ac_mid=0
! 23463: while :; do
! 23464: cat >conftest.$ac_ext <<_ACEOF
! 23465: /* confdefs.h. */
! 23466: _ACEOF
! 23467: cat confdefs.h >>conftest.$ac_ext
! 23468: cat >>conftest.$ac_ext <<_ACEOF
! 23469: /* end confdefs.h. */
! 23470: $ac_includes_default
! 23471: typedef size_t ac__type_sizeof_;
1.1 misho 23472: int
23473: main ()
23474: {
1.1.1.3 ! misho 23475: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 23476: test_array [0] = 0
! 23477:
1.1 misho 23478: ;
23479: return 0;
23480: }
23481: _ACEOF
1.1.1.3 ! misho 23482: rm -f conftest.$ac_objext
! 23483: if { (ac_try="$ac_compile"
! 23484: case "(($ac_try" in
! 23485: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23486: *) ac_try_echo=$ac_try;;
! 23487: esac
! 23488: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23489: (eval "$ac_compile") 2>conftest.er1
! 23490: ac_status=$?
! 23491: grep -v '^ *+' conftest.er1 >conftest.err
! 23492: rm -f conftest.er1
! 23493: cat conftest.err >&5
! 23494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23495: (exit $ac_status); } && {
! 23496: test -z "$ac_c_werror_flag" ||
! 23497: test ! -s conftest.err
! 23498: } && test -s conftest.$ac_objext; then
! 23499: ac_hi=$ac_mid; break
1.1 misho 23500: else
1.1.1.3 ! misho 23501: echo "$as_me: failed program was:" >&5
! 23502: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23503:
1.1.1.3 ! misho 23504: ac_lo=`expr $ac_mid + 1`
! 23505: if test $ac_lo -le $ac_mid; then
! 23506: ac_lo= ac_hi=
! 23507: break
! 23508: fi
! 23509: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 23510: fi
23511:
1.1.1.3 ! misho 23512: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23513: done
1.1 misho 23514: else
1.1.1.3 ! misho 23515: echo "$as_me: failed program was:" >&5
! 23516: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23517:
1.1.1.3 ! misho 23518: cat >conftest.$ac_ext <<_ACEOF
! 23519: /* confdefs.h. */
! 23520: _ACEOF
! 23521: cat confdefs.h >>conftest.$ac_ext
! 23522: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23523: /* end confdefs.h. */
1.1.1.3 ! misho 23524: $ac_includes_default
! 23525: typedef size_t ac__type_sizeof_;
1.1 misho 23526: int
23527: main ()
23528: {
1.1.1.3 ! misho 23529: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 23530: test_array [0] = 0
! 23531:
1.1 misho 23532: ;
23533: return 0;
23534: }
23535: _ACEOF
1.1.1.3 ! misho 23536: rm -f conftest.$ac_objext
! 23537: if { (ac_try="$ac_compile"
! 23538: case "(($ac_try" in
! 23539: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23540: *) ac_try_echo=$ac_try;;
! 23541: esac
! 23542: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23543: (eval "$ac_compile") 2>conftest.er1
! 23544: ac_status=$?
! 23545: grep -v '^ *+' conftest.er1 >conftest.err
! 23546: rm -f conftest.er1
! 23547: cat conftest.err >&5
! 23548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23549: (exit $ac_status); } && {
! 23550: test -z "$ac_c_werror_flag" ||
! 23551: test ! -s conftest.err
! 23552: } && test -s conftest.$ac_objext; then
! 23553: ac_hi=-1 ac_mid=-1
! 23554: while :; do
! 23555: cat >conftest.$ac_ext <<_ACEOF
! 23556: /* confdefs.h. */
! 23557: _ACEOF
! 23558: cat confdefs.h >>conftest.$ac_ext
! 23559: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23560: /* end confdefs.h. */
1.1.1.3 ! misho 23561: $ac_includes_default
! 23562: typedef size_t ac__type_sizeof_;
! 23563: int
! 23564: main ()
! 23565: {
! 23566: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 23567: test_array [0] = 0
1.1 misho 23568:
1.1.1.3 ! misho 23569: ;
! 23570: return 0;
1.1 misho 23571: }
23572: _ACEOF
1.1.1.3 ! misho 23573: rm -f conftest.$ac_objext
! 23574: if { (ac_try="$ac_compile"
! 23575: case "(($ac_try" in
! 23576: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23577: *) ac_try_echo=$ac_try;;
! 23578: esac
! 23579: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23580: (eval "$ac_compile") 2>conftest.er1
! 23581: ac_status=$?
! 23582: grep -v '^ *+' conftest.er1 >conftest.err
! 23583: rm -f conftest.er1
! 23584: cat conftest.err >&5
! 23585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23586: (exit $ac_status); } && {
! 23587: test -z "$ac_c_werror_flag" ||
! 23588: test ! -s conftest.err
! 23589: } && test -s conftest.$ac_objext; then
! 23590: ac_lo=$ac_mid; break
1.1 misho 23591: else
1.1.1.3 ! misho 23592: echo "$as_me: failed program was:" >&5
! 23593: sed 's/^/| /' conftest.$ac_ext >&5
! 23594:
! 23595: ac_hi=`expr '(' $ac_mid ')' - 1`
! 23596: if test $ac_mid -le $ac_hi; then
! 23597: ac_lo= ac_hi=
! 23598: break
! 23599: fi
! 23600: ac_mid=`expr 2 '*' $ac_mid`
1.1 misho 23601: fi
23602:
1.1.1.3 ! misho 23603: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23604: done
1.1 misho 23605: else
1.1.1.3 ! misho 23606: echo "$as_me: failed program was:" >&5
! 23607: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23608:
1.1.1.3 ! misho 23609: ac_lo= ac_hi=
! 23610: fi
1.1 misho 23611:
1.1.1.3 ! misho 23612: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23613: fi
23614:
1.1.1.3 ! misho 23615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 23616: # Binary search between lo and hi bounds.
! 23617: while test "x$ac_lo" != "x$ac_hi"; do
! 23618: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 23619: cat >conftest.$ac_ext <<_ACEOF
! 23620: /* confdefs.h. */
! 23621: _ACEOF
! 23622: cat confdefs.h >>conftest.$ac_ext
! 23623: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23624: /* end confdefs.h. */
1.1.1.3 ! misho 23625: $ac_includes_default
! 23626: typedef size_t ac__type_sizeof_;
1.1 misho 23627: int
23628: main ()
23629: {
1.1.1.3 ! misho 23630: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 23631: test_array [0] = 0
! 23632:
1.1 misho 23633: ;
23634: return 0;
23635: }
23636: _ACEOF
1.1.1.3 ! misho 23637: rm -f conftest.$ac_objext
! 23638: if { (ac_try="$ac_compile"
! 23639: case "(($ac_try" in
! 23640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23641: *) ac_try_echo=$ac_try;;
1.1 misho 23642: esac
1.1.1.3 ! misho 23643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23644: (eval "$ac_compile") 2>conftest.er1
! 23645: ac_status=$?
! 23646: grep -v '^ *+' conftest.er1 >conftest.err
! 23647: rm -f conftest.er1
! 23648: cat conftest.err >&5
! 23649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23650: (exit $ac_status); } && {
! 23651: test -z "$ac_c_werror_flag" ||
! 23652: test ! -s conftest.err
! 23653: } && test -s conftest.$ac_objext; then
! 23654: ac_hi=$ac_mid
1.1 misho 23655: else
1.1.1.3 ! misho 23656: echo "$as_me: failed program was:" >&5
! 23657: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23658:
1.1.1.3 ! misho 23659: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 23660: fi
23661:
1.1.1.3 ! misho 23662: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23663: done
1.1.1.3 ! misho 23664: case $ac_lo in
! 23665: ?*) ac_cv_sizeof_size_t=$ac_lo;;
! 23666: '') if test "$ac_cv_type_size_t" = yes; then
! 23667: { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
! 23668: See \`config.log' for more details." >&5
! 23669: echo "$as_me: error: cannot compute sizeof (size_t)
! 23670: See \`config.log' for more details." >&2;}
! 23671: { (exit 77); exit 77; }; }
! 23672: else
! 23673: ac_cv_sizeof_size_t=0
! 23674: fi ;;
! 23675: esac
1.1 misho 23676: else
1.1.1.3 ! misho 23677: cat >conftest.$ac_ext <<_ACEOF
! 23678: /* confdefs.h. */
! 23679: _ACEOF
! 23680: cat confdefs.h >>conftest.$ac_ext
! 23681: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23682: /* end confdefs.h. */
23683: $ac_includes_default
1.1.1.3 ! misho 23684: typedef size_t ac__type_sizeof_;
! 23685: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 23686: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 23687: #include <stdio.h>
! 23688: #include <stdlib.h>
1.1 misho 23689: int
23690: main ()
23691: {
1.1.1.3 ! misho 23692:
! 23693: FILE *f = fopen ("conftest.val", "w");
! 23694: if (! f)
! 23695: return 1;
! 23696: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 23697: {
! 23698: long int i = longval ();
! 23699: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 23700: return 1;
! 23701: fprintf (f, "%ld\n", i);
! 23702: }
! 23703: else
! 23704: {
! 23705: unsigned long int i = ulongval ();
! 23706: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 23707: return 1;
! 23708: fprintf (f, "%lu\n", i);
! 23709: }
! 23710: return ferror (f) || fclose (f) != 0;
! 23711:
1.1 misho 23712: ;
23713: return 0;
23714: }
23715: _ACEOF
1.1.1.3 ! misho 23716: rm -f conftest$ac_exeext
! 23717: if { (ac_try="$ac_link"
! 23718: case "(($ac_try" in
! 23719: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23720: *) ac_try_echo=$ac_try;;
! 23721: esac
! 23722: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23723: (eval "$ac_link") 2>&5
! 23724: ac_status=$?
! 23725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23726: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 23727: { (case "(($ac_try" in
! 23728: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23729: *) ac_try_echo=$ac_try;;
! 23730: esac
! 23731: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23732: (eval "$ac_try") 2>&5
! 23733: ac_status=$?
! 23734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23735: (exit $ac_status); }; }; then
! 23736: ac_cv_sizeof_size_t=`cat conftest.val`
1.1 misho 23737: else
1.1.1.3 ! misho 23738: echo "$as_me: program exited with status $ac_status" >&5
! 23739: echo "$as_me: failed program was:" >&5
! 23740: sed 's/^/| /' conftest.$ac_ext >&5
! 23741:
! 23742: ( exit $ac_status )
! 23743: if test "$ac_cv_type_size_t" = yes; then
! 23744: { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
! 23745: See \`config.log' for more details." >&5
! 23746: echo "$as_me: error: cannot compute sizeof (size_t)
! 23747: See \`config.log' for more details." >&2;}
! 23748: { (exit 77); exit 77; }; }
! 23749: else
! 23750: ac_cv_sizeof_size_t=0
! 23751: fi
1.1 misho 23752: fi
1.1.1.3 ! misho 23753: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 23754: fi
1.1.1.3 ! misho 23755: rm -f conftest.val
1.1 misho 23756: fi
1.1.1.3 ! misho 23757: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
! 23758: echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
1.1 misho 23759:
23760:
23761:
1.1.1.3 ! misho 23762: cat >>confdefs.h <<_ACEOF
! 23763: #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
! 23764: _ACEOF
! 23765:
! 23766:
! 23767: { echo "$as_me:$LINENO: checking for long long" >&5
! 23768: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
! 23769: if test "${ac_cv_type_long_long+set}" = set; then
! 23770: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 23771: else
1.1.1.3 ! misho 23772: cat >conftest.$ac_ext <<_ACEOF
! 23773: /* confdefs.h. */
! 23774: _ACEOF
! 23775: cat confdefs.h >>conftest.$ac_ext
! 23776: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23777: /* end confdefs.h. */
1.1.1.3 ! misho 23778: $ac_includes_default
! 23779: typedef long long ac__type_new_;
1.1 misho 23780: int
23781: main ()
23782: {
1.1.1.3 ! misho 23783: if ((ac__type_new_ *) 0)
! 23784: return 0;
! 23785: if (sizeof (ac__type_new_))
! 23786: return 0;
1.1 misho 23787: ;
23788: return 0;
23789: }
23790: _ACEOF
1.1.1.3 ! misho 23791: rm -f conftest.$ac_objext
! 23792: if { (ac_try="$ac_compile"
! 23793: case "(($ac_try" in
! 23794: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23795: *) ac_try_echo=$ac_try;;
! 23796: esac
! 23797: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23798: (eval "$ac_compile") 2>conftest.er1
! 23799: ac_status=$?
! 23800: grep -v '^ *+' conftest.er1 >conftest.err
! 23801: rm -f conftest.er1
! 23802: cat conftest.err >&5
! 23803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23804: (exit $ac_status); } && {
! 23805: test -z "$ac_c_werror_flag" ||
! 23806: test ! -s conftest.err
! 23807: } && test -s conftest.$ac_objext; then
! 23808: ac_cv_type_long_long=yes
1.1 misho 23809: else
1.1.1.3 ! misho 23810: echo "$as_me: failed program was:" >&5
! 23811: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23812:
1.1.1.3 ! misho 23813: ac_cv_type_long_long=no
! 23814: fi
1.1 misho 23815:
1.1.1.3 ! misho 23816: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23817: fi
1.1.1.3 ! misho 23818: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 23819: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
1.1 misho 23820:
1.1.1.3 ! misho 23821: # The cast to long int works around a bug in the HP C Compiler
! 23822: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 23823: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 23824: # This bug is HP SR number 8606223364.
! 23825: { echo "$as_me:$LINENO: checking size of long long" >&5
! 23826: echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
! 23827: if test "${ac_cv_sizeof_long_long+set}" = set; then
! 23828: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 23829: else
1.1.1.3 ! misho 23830: if test "$cross_compiling" = yes; then
! 23831: # Depending upon the size, compute the lo and hi bounds.
! 23832: cat >conftest.$ac_ext <<_ACEOF
! 23833: /* confdefs.h. */
! 23834: _ACEOF
! 23835: cat confdefs.h >>conftest.$ac_ext
! 23836: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23837: /* end confdefs.h. */
1.1.1.3 ! misho 23838: $ac_includes_default
! 23839: typedef long long ac__type_sizeof_;
1.1 misho 23840: int
23841: main ()
23842: {
1.1.1.3 ! misho 23843: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 23844: test_array [0] = 0
! 23845:
1.1 misho 23846: ;
23847: return 0;
23848: }
23849: _ACEOF
1.1.1.3 ! misho 23850: rm -f conftest.$ac_objext
! 23851: if { (ac_try="$ac_compile"
! 23852: case "(($ac_try" in
! 23853: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23854: *) ac_try_echo=$ac_try;;
! 23855: esac
! 23856: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23857: (eval "$ac_compile") 2>conftest.er1
! 23858: ac_status=$?
! 23859: grep -v '^ *+' conftest.er1 >conftest.err
! 23860: rm -f conftest.er1
! 23861: cat conftest.err >&5
! 23862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23863: (exit $ac_status); } && {
! 23864: test -z "$ac_c_werror_flag" ||
! 23865: test ! -s conftest.err
! 23866: } && test -s conftest.$ac_objext; then
! 23867: ac_lo=0 ac_mid=0
! 23868: while :; do
! 23869: cat >conftest.$ac_ext <<_ACEOF
! 23870: /* confdefs.h. */
! 23871: _ACEOF
! 23872: cat confdefs.h >>conftest.$ac_ext
! 23873: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23874: /* end confdefs.h. */
1.1.1.3 ! misho 23875: $ac_includes_default
! 23876: typedef long long ac__type_sizeof_;
! 23877: int
! 23878: main ()
! 23879: {
! 23880: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 23881: test_array [0] = 0
1.1 misho 23882:
1.1.1.3 ! misho 23883: ;
! 23884: return 0;
! 23885: }
1.1 misho 23886: _ACEOF
1.1.1.3 ! misho 23887: rm -f conftest.$ac_objext
! 23888: if { (ac_try="$ac_compile"
! 23889: case "(($ac_try" in
! 23890: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23891: *) ac_try_echo=$ac_try;;
! 23892: esac
! 23893: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23894: (eval "$ac_compile") 2>conftest.er1
! 23895: ac_status=$?
! 23896: grep -v '^ *+' conftest.er1 >conftest.err
! 23897: rm -f conftest.er1
! 23898: cat conftest.err >&5
! 23899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23900: (exit $ac_status); } && {
! 23901: test -z "$ac_c_werror_flag" ||
! 23902: test ! -s conftest.err
! 23903: } && test -s conftest.$ac_objext; then
! 23904: ac_hi=$ac_mid; break
1.1 misho 23905: else
1.1.1.3 ! misho 23906: echo "$as_me: failed program was:" >&5
! 23907: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23908:
1.1.1.3 ! misho 23909: ac_lo=`expr $ac_mid + 1`
! 23910: if test $ac_lo -le $ac_mid; then
! 23911: ac_lo= ac_hi=
! 23912: break
! 23913: fi
! 23914: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 23915: fi
23916:
1.1.1.3 ! misho 23917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 23918: done
23919: else
1.1.1.3 ! misho 23920: echo "$as_me: failed program was:" >&5
! 23921: sed 's/^/| /' conftest.$ac_ext >&5
! 23922:
! 23923: cat >conftest.$ac_ext <<_ACEOF
! 23924: /* confdefs.h. */
! 23925: _ACEOF
! 23926: cat confdefs.h >>conftest.$ac_ext
! 23927: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23928: /* end confdefs.h. */
23929: $ac_includes_default
1.1.1.3 ! misho 23930: typedef long long ac__type_sizeof_;
1.1 misho 23931: int
1.1.1.3 ! misho 23932: main ()
1.1 misho 23933: {
1.1.1.3 ! misho 23934: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 23935: test_array [0] = 0
1.1 misho 23936:
1.1.1.3 ! misho 23937: ;
! 23938: return 0;
1.1 misho 23939: }
23940: _ACEOF
1.1.1.3 ! misho 23941: rm -f conftest.$ac_objext
! 23942: if { (ac_try="$ac_compile"
! 23943: case "(($ac_try" in
! 23944: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23945: *) ac_try_echo=$ac_try;;
! 23946: esac
! 23947: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23948: (eval "$ac_compile") 2>conftest.er1
! 23949: ac_status=$?
! 23950: grep -v '^ *+' conftest.er1 >conftest.err
! 23951: rm -f conftest.er1
! 23952: cat conftest.err >&5
! 23953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23954: (exit $ac_status); } && {
! 23955: test -z "$ac_c_werror_flag" ||
! 23956: test ! -s conftest.err
! 23957: } && test -s conftest.$ac_objext; then
! 23958: ac_hi=-1 ac_mid=-1
! 23959: while :; do
! 23960: cat >conftest.$ac_ext <<_ACEOF
! 23961: /* confdefs.h. */
1.1 misho 23962: _ACEOF
1.1.1.3 ! misho 23963: cat confdefs.h >>conftest.$ac_ext
! 23964: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 23965: /* end confdefs.h. */
1.1.1.3 ! misho 23966: $ac_includes_default
! 23967: typedef long long ac__type_sizeof_;
1.1 misho 23968: int
23969: main ()
23970: {
1.1.1.3 ! misho 23971: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 23972: test_array [0] = 0
1.1 misho 23973:
23974: ;
23975: return 0;
23976: }
23977: _ACEOF
1.1.1.3 ! misho 23978: rm -f conftest.$ac_objext
! 23979: if { (ac_try="$ac_compile"
! 23980: case "(($ac_try" in
! 23981: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23982: *) ac_try_echo=$ac_try;;
! 23983: esac
! 23984: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23985: (eval "$ac_compile") 2>conftest.er1
! 23986: ac_status=$?
! 23987: grep -v '^ *+' conftest.er1 >conftest.err
! 23988: rm -f conftest.er1
! 23989: cat conftest.err >&5
! 23990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23991: (exit $ac_status); } && {
! 23992: test -z "$ac_c_werror_flag" ||
! 23993: test ! -s conftest.err
! 23994: } && test -s conftest.$ac_objext; then
! 23995: ac_lo=$ac_mid; break
1.1 misho 23996: else
1.1.1.3 ! misho 23997: echo "$as_me: failed program was:" >&5
! 23998: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 23999:
1.1.1.3 ! misho 24000: ac_hi=`expr '(' $ac_mid ')' - 1`
! 24001: if test $ac_mid -le $ac_hi; then
! 24002: ac_lo= ac_hi=
! 24003: break
! 24004: fi
! 24005: ac_mid=`expr 2 '*' $ac_mid`
1.1 misho 24006: fi
24007:
1.1.1.3 ! misho 24008: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24009: done
1.1 misho 24010: else
1.1.1.3 ! misho 24011: echo "$as_me: failed program was:" >&5
! 24012: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24013:
1.1.1.3 ! misho 24014: ac_lo= ac_hi=
! 24015: fi
1.1 misho 24016:
1.1.1.3 ! misho 24017: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24018: fi
1.1 misho 24019:
1.1.1.3 ! misho 24020: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24021: # Binary search between lo and hi bounds.
! 24022: while test "x$ac_lo" != "x$ac_hi"; do
! 24023: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 24024: cat >conftest.$ac_ext <<_ACEOF
! 24025: /* confdefs.h. */
! 24026: _ACEOF
! 24027: cat confdefs.h >>conftest.$ac_ext
! 24028: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 24029: /* end confdefs.h. */
1.1.1.3 ! misho 24030: $ac_includes_default
! 24031: typedef long long ac__type_sizeof_;
! 24032: int
! 24033: main ()
! 24034: {
! 24035: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 24036: test_array [0] = 0
1.1 misho 24037:
1.1.1.3 ! misho 24038: ;
! 24039: return 0;
1.1 misho 24040: }
24041: _ACEOF
1.1.1.3 ! misho 24042: rm -f conftest.$ac_objext
! 24043: if { (ac_try="$ac_compile"
! 24044: case "(($ac_try" in
! 24045: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24046: *) ac_try_echo=$ac_try;;
! 24047: esac
! 24048: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24049: (eval "$ac_compile") 2>conftest.er1
! 24050: ac_status=$?
! 24051: grep -v '^ *+' conftest.er1 >conftest.err
! 24052: rm -f conftest.er1
! 24053: cat conftest.err >&5
! 24054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24055: (exit $ac_status); } && {
! 24056: test -z "$ac_c_werror_flag" ||
! 24057: test ! -s conftest.err
! 24058: } && test -s conftest.$ac_objext; then
! 24059: ac_hi=$ac_mid
1.1 misho 24060: else
1.1.1.3 ! misho 24061: echo "$as_me: failed program was:" >&5
! 24062: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24063:
1.1.1.3 ! misho 24064: ac_lo=`expr '(' $ac_mid ')' + 1`
! 24065: fi
1.1 misho 24066:
1.1.1.3 ! misho 24067: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24068: done
! 24069: case $ac_lo in
! 24070: ?*) ac_cv_sizeof_long_long=$ac_lo;;
! 24071: '') if test "$ac_cv_type_long_long" = yes; then
! 24072: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
! 24073: See \`config.log' for more details." >&5
! 24074: echo "$as_me: error: cannot compute sizeof (long long)
! 24075: See \`config.log' for more details." >&2;}
! 24076: { (exit 77); exit 77; }; }
! 24077: else
! 24078: ac_cv_sizeof_long_long=0
! 24079: fi ;;
! 24080: esac
1.1 misho 24081: else
1.1.1.3 ! misho 24082: cat >conftest.$ac_ext <<_ACEOF
! 24083: /* confdefs.h. */
! 24084: _ACEOF
! 24085: cat confdefs.h >>conftest.$ac_ext
! 24086: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 24087: /* end confdefs.h. */
1.1.1.3 ! misho 24088: $ac_includes_default
! 24089: typedef long long ac__type_sizeof_;
! 24090: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 24091: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 24092: #include <stdio.h>
! 24093: #include <stdlib.h>
! 24094: int
! 24095: main ()
! 24096: {
1.1 misho 24097:
1.1.1.3 ! misho 24098: FILE *f = fopen ("conftest.val", "w");
! 24099: if (! f)
! 24100: return 1;
! 24101: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 24102: {
! 24103: long int i = longval ();
! 24104: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 24105: return 1;
! 24106: fprintf (f, "%ld\n", i);
! 24107: }
! 24108: else
! 24109: {
! 24110: unsigned long int i = ulongval ();
! 24111: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 24112: return 1;
! 24113: fprintf (f, "%lu\n", i);
! 24114: }
! 24115: return ferror (f) || fclose (f) != 0;
1.1 misho 24116:
1.1.1.3 ! misho 24117: ;
! 24118: return 0;
1.1 misho 24119: }
24120: _ACEOF
1.1.1.3 ! misho 24121: rm -f conftest$ac_exeext
! 24122: if { (ac_try="$ac_link"
! 24123: case "(($ac_try" in
! 24124: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24125: *) ac_try_echo=$ac_try;;
! 24126: esac
! 24127: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24128: (eval "$ac_link") 2>&5
! 24129: ac_status=$?
! 24130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24131: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 24132: { (case "(($ac_try" in
! 24133: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24134: *) ac_try_echo=$ac_try;;
! 24135: esac
! 24136: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24137: (eval "$ac_try") 2>&5
! 24138: ac_status=$?
! 24139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24140: (exit $ac_status); }; }; then
! 24141: ac_cv_sizeof_long_long=`cat conftest.val`
1.1 misho 24142: else
1.1.1.3 ! misho 24143: echo "$as_me: program exited with status $ac_status" >&5
! 24144: echo "$as_me: failed program was:" >&5
! 24145: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24146:
1.1.1.3 ! misho 24147: ( exit $ac_status )
! 24148: if test "$ac_cv_type_long_long" = yes; then
! 24149: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
! 24150: See \`config.log' for more details." >&5
! 24151: echo "$as_me: error: cannot compute sizeof (long long)
! 24152: See \`config.log' for more details." >&2;}
! 24153: { (exit 77); exit 77; }; }
! 24154: else
! 24155: ac_cv_sizeof_long_long=0
! 24156: fi
1.1 misho 24157: fi
1.1.1.3 ! misho 24158: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 24159: fi
1.1.1.3 ! misho 24160: rm -f conftest.val
1.1 misho 24161: fi
1.1.1.3 ! misho 24162: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
! 24163: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
1.1 misho 24164:
24165:
24166:
1.1.1.3 ! misho 24167: cat >>confdefs.h <<_ACEOF
! 24168: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1.1 misho 24169: _ACEOF
24170:
24171:
1.1.1.3 ! misho 24172: { echo "$as_me:$LINENO: checking for long long int" >&5
! 24173: echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
! 24174: if test "${ac_cv_type_long_long_int+set}" = set; then
! 24175: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 24176: else
1.1.1.3 ! misho 24177: cat >conftest.$ac_ext <<_ACEOF
! 24178: /* confdefs.h. */
! 24179: _ACEOF
! 24180: cat confdefs.h >>conftest.$ac_ext
! 24181: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 24182: /* end confdefs.h. */
1.1.1.3 ! misho 24183: $ac_includes_default
! 24184: typedef long long int ac__type_new_;
! 24185: int
! 24186: main ()
! 24187: {
! 24188: if ((ac__type_new_ *) 0)
! 24189: return 0;
! 24190: if (sizeof (ac__type_new_))
! 24191: return 0;
! 24192: ;
! 24193: return 0;
! 24194: }
1.1 misho 24195: _ACEOF
1.1.1.3 ! misho 24196: rm -f conftest.$ac_objext
! 24197: if { (ac_try="$ac_compile"
! 24198: case "(($ac_try" in
! 24199: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24200: *) ac_try_echo=$ac_try;;
! 24201: esac
! 24202: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24203: (eval "$ac_compile") 2>conftest.er1
! 24204: ac_status=$?
! 24205: grep -v '^ *+' conftest.er1 >conftest.err
! 24206: rm -f conftest.er1
! 24207: cat conftest.err >&5
! 24208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24209: (exit $ac_status); } && {
! 24210: test -z "$ac_c_werror_flag" ||
! 24211: test ! -s conftest.err
! 24212: } && test -s conftest.$ac_objext; then
! 24213: ac_cv_type_long_long_int=yes
1.1 misho 24214: else
1.1.1.3 ! misho 24215: echo "$as_me: failed program was:" >&5
! 24216: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24217:
1.1.1.3 ! misho 24218: ac_cv_type_long_long_int=no
1.1 misho 24219: fi
24220:
1.1.1.3 ! misho 24221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 24222: fi
1.1.1.3 ! misho 24223: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
! 24224: echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
1.1 misho 24225:
1.1.1.3 ! misho 24226: # The cast to long int works around a bug in the HP C Compiler
! 24227: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 24228: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 24229: # This bug is HP SR number 8606223364.
! 24230: { echo "$as_me:$LINENO: checking size of long long int" >&5
! 24231: echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
! 24232: if test "${ac_cv_sizeof_long_long_int+set}" = set; then
! 24233: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 24234: else
1.1.1.3 ! misho 24235: if test "$cross_compiling" = yes; then
! 24236: # Depending upon the size, compute the lo and hi bounds.
! 24237: cat >conftest.$ac_ext <<_ACEOF
! 24238: /* confdefs.h. */
1.1 misho 24239: _ACEOF
1.1.1.3 ! misho 24240: cat confdefs.h >>conftest.$ac_ext
! 24241: cat >>conftest.$ac_ext <<_ACEOF
! 24242: /* end confdefs.h. */
! 24243: $ac_includes_default
! 24244: typedef long long int ac__type_sizeof_;
! 24245: int
! 24246: main ()
! 24247: {
! 24248: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 24249: test_array [0] = 0
1.1 misho 24250:
1.1.1.3 ! misho 24251: ;
! 24252: return 0;
! 24253: }
! 24254: _ACEOF
! 24255: rm -f conftest.$ac_objext
! 24256: if { (ac_try="$ac_compile"
! 24257: case "(($ac_try" in
! 24258: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24259: *) ac_try_echo=$ac_try;;
! 24260: esac
! 24261: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24262: (eval "$ac_compile") 2>conftest.er1
! 24263: ac_status=$?
! 24264: grep -v '^ *+' conftest.er1 >conftest.err
! 24265: rm -f conftest.er1
! 24266: cat conftest.err >&5
! 24267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24268: (exit $ac_status); } && {
! 24269: test -z "$ac_c_werror_flag" ||
! 24270: test ! -s conftest.err
! 24271: } && test -s conftest.$ac_objext; then
! 24272: ac_lo=0 ac_mid=0
! 24273: while :; do
! 24274: cat >conftest.$ac_ext <<_ACEOF
! 24275: /* confdefs.h. */
! 24276: _ACEOF
! 24277: cat confdefs.h >>conftest.$ac_ext
! 24278: cat >>conftest.$ac_ext <<_ACEOF
! 24279: /* end confdefs.h. */
! 24280: $ac_includes_default
! 24281: typedef long long int ac__type_sizeof_;
! 24282: int
! 24283: main ()
! 24284: {
! 24285: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 24286: test_array [0] = 0
1.1 misho 24287:
1.1.1.3 ! misho 24288: ;
! 24289: return 0;
! 24290: }
1.1 misho 24291: _ACEOF
1.1.1.3 ! misho 24292: rm -f conftest.$ac_objext
! 24293: if { (ac_try="$ac_compile"
! 24294: case "(($ac_try" in
! 24295: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24296: *) ac_try_echo=$ac_try;;
! 24297: esac
! 24298: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24299: (eval "$ac_compile") 2>conftest.er1
! 24300: ac_status=$?
! 24301: grep -v '^ *+' conftest.er1 >conftest.err
! 24302: rm -f conftest.er1
! 24303: cat conftest.err >&5
! 24304: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24305: (exit $ac_status); } && {
! 24306: test -z "$ac_c_werror_flag" ||
! 24307: test ! -s conftest.err
! 24308: } && test -s conftest.$ac_objext; then
! 24309: ac_hi=$ac_mid; break
1.1 misho 24310: else
1.1.1.3 ! misho 24311: echo "$as_me: failed program was:" >&5
! 24312: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24313:
1.1.1.3 ! misho 24314: ac_lo=`expr $ac_mid + 1`
! 24315: if test $ac_lo -le $ac_mid; then
! 24316: ac_lo= ac_hi=
! 24317: break
! 24318: fi
! 24319: ac_mid=`expr 2 '*' $ac_mid + 1`
! 24320: fi
1.1 misho 24321:
1.1.1.3 ! misho 24322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24323: done
1.1 misho 24324: else
1.1.1.3 ! misho 24325: echo "$as_me: failed program was:" >&5
! 24326: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24327:
1.1.1.3 ! misho 24328: cat >conftest.$ac_ext <<_ACEOF
! 24329: /* confdefs.h. */
! 24330: _ACEOF
! 24331: cat confdefs.h >>conftest.$ac_ext
! 24332: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 24333: /* end confdefs.h. */
1.1.1.3 ! misho 24334: $ac_includes_default
! 24335: typedef long long int ac__type_sizeof_;
1.1 misho 24336: int
24337: main ()
24338: {
1.1.1.3 ! misho 24339: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 24340: test_array [0] = 0
1.1 misho 24341:
24342: ;
24343: return 0;
24344: }
24345: _ACEOF
1.1.1.3 ! misho 24346: rm -f conftest.$ac_objext
! 24347: if { (ac_try="$ac_compile"
! 24348: case "(($ac_try" in
! 24349: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24350: *) ac_try_echo=$ac_try;;
! 24351: esac
! 24352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24353: (eval "$ac_compile") 2>conftest.er1
! 24354: ac_status=$?
! 24355: grep -v '^ *+' conftest.er1 >conftest.err
! 24356: rm -f conftest.er1
! 24357: cat conftest.err >&5
! 24358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24359: (exit $ac_status); } && {
! 24360: test -z "$ac_c_werror_flag" ||
! 24361: test ! -s conftest.err
! 24362: } && test -s conftest.$ac_objext; then
! 24363: ac_hi=-1 ac_mid=-1
! 24364: while :; do
! 24365: cat >conftest.$ac_ext <<_ACEOF
! 24366: /* confdefs.h. */
! 24367: _ACEOF
! 24368: cat confdefs.h >>conftest.$ac_ext
! 24369: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 24370: /* end confdefs.h. */
1.1.1.3 ! misho 24371: $ac_includes_default
! 24372: typedef long long int ac__type_sizeof_;
1.1 misho 24373: int
24374: main ()
24375: {
1.1.1.3 ! misho 24376: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 24377: test_array [0] = 0
1.1 misho 24378:
24379: ;
24380: return 0;
24381: }
24382: _ACEOF
1.1.1.3 ! misho 24383: rm -f conftest.$ac_objext
! 24384: if { (ac_try="$ac_compile"
! 24385: case "(($ac_try" in
! 24386: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24387: *) ac_try_echo=$ac_try;;
! 24388: esac
! 24389: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24390: (eval "$ac_compile") 2>conftest.er1
! 24391: ac_status=$?
! 24392: grep -v '^ *+' conftest.er1 >conftest.err
! 24393: rm -f conftest.er1
! 24394: cat conftest.err >&5
! 24395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24396: (exit $ac_status); } && {
! 24397: test -z "$ac_c_werror_flag" ||
! 24398: test ! -s conftest.err
! 24399: } && test -s conftest.$ac_objext; then
! 24400: ac_lo=$ac_mid; break
! 24401: else
! 24402: echo "$as_me: failed program was:" >&5
! 24403: sed 's/^/| /' conftest.$ac_ext >&5
! 24404:
! 24405: ac_hi=`expr '(' $ac_mid ')' - 1`
! 24406: if test $ac_mid -le $ac_hi; then
! 24407: ac_lo= ac_hi=
! 24408: break
! 24409: fi
! 24410: ac_mid=`expr 2 '*' $ac_mid`
1.1 misho 24411: fi
1.1.1.3 ! misho 24412:
1.1 misho 24413: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 ! misho 24414: done
! 24415: else
! 24416: echo "$as_me: failed program was:" >&5
! 24417: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24418:
1.1.1.3 ! misho 24419: ac_lo= ac_hi=
! 24420: fi
1.1 misho 24421:
1.1.1.3 ! misho 24422: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24423: fi
1.1 misho 24424:
1.1.1.3 ! misho 24425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24426: # Binary search between lo and hi bounds.
! 24427: while test "x$ac_lo" != "x$ac_hi"; do
! 24428: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 24429: cat >conftest.$ac_ext <<_ACEOF
! 24430: /* confdefs.h. */
! 24431: _ACEOF
! 24432: cat confdefs.h >>conftest.$ac_ext
! 24433: cat >>conftest.$ac_ext <<_ACEOF
! 24434: /* end confdefs.h. */
! 24435: $ac_includes_default
! 24436: typedef long long int ac__type_sizeof_;
1.1 misho 24437: int
24438: main ()
24439: {
1.1.1.3 ! misho 24440: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 24441: test_array [0] = 0
1.1 misho 24442:
24443: ;
24444: return 0;
24445: }
24446: _ACEOF
1.1.1.3 ! misho 24447: rm -f conftest.$ac_objext
! 24448: if { (ac_try="$ac_compile"
! 24449: case "(($ac_try" in
! 24450: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24451: *) ac_try_echo=$ac_try;;
! 24452: esac
! 24453: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24454: (eval "$ac_compile") 2>conftest.er1
! 24455: ac_status=$?
! 24456: grep -v '^ *+' conftest.er1 >conftest.err
! 24457: rm -f conftest.er1
! 24458: cat conftest.err >&5
! 24459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24460: (exit $ac_status); } && {
! 24461: test -z "$ac_c_werror_flag" ||
! 24462: test ! -s conftest.err
! 24463: } && test -s conftest.$ac_objext; then
! 24464: ac_hi=$ac_mid
! 24465: else
! 24466: echo "$as_me: failed program was:" >&5
! 24467: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 24468:
1.1.1.3 ! misho 24469: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 24470: fi
24471:
1.1.1.3 ! misho 24472: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24473: done
! 24474: case $ac_lo in
! 24475: ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
! 24476: '') if test "$ac_cv_type_long_long_int" = yes; then
! 24477: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
! 24478: See \`config.log' for more details." >&5
! 24479: echo "$as_me: error: cannot compute sizeof (long long int)
! 24480: See \`config.log' for more details." >&2;}
! 24481: { (exit 77); exit 77; }; }
! 24482: else
! 24483: ac_cv_sizeof_long_long_int=0
! 24484: fi ;;
! 24485: esac
! 24486: else
! 24487: cat >conftest.$ac_ext <<_ACEOF
! 24488: /* confdefs.h. */
! 24489: _ACEOF
! 24490: cat confdefs.h >>conftest.$ac_ext
! 24491: cat >>conftest.$ac_ext <<_ACEOF
! 24492: /* end confdefs.h. */
! 24493: $ac_includes_default
! 24494: typedef long long int ac__type_sizeof_;
! 24495: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 24496: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 24497: #include <stdio.h>
! 24498: #include <stdlib.h>
! 24499: int
! 24500: main ()
! 24501: {
! 24502:
! 24503: FILE *f = fopen ("conftest.val", "w");
! 24504: if (! f)
! 24505: return 1;
! 24506: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 24507: {
! 24508: long int i = longval ();
! 24509: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 24510: return 1;
! 24511: fprintf (f, "%ld\n", i);
! 24512: }
! 24513: else
! 24514: {
! 24515: unsigned long int i = ulongval ();
! 24516: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 24517: return 1;
! 24518: fprintf (f, "%lu\n", i);
! 24519: }
! 24520: return ferror (f) || fclose (f) != 0;
! 24521:
! 24522: ;
! 24523: return 0;
! 24524: }
! 24525: _ACEOF
! 24526: rm -f conftest$ac_exeext
! 24527: if { (ac_try="$ac_link"
! 24528: case "(($ac_try" in
! 24529: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24530: *) ac_try_echo=$ac_try;;
! 24531: esac
! 24532: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24533: (eval "$ac_link") 2>&5
! 24534: ac_status=$?
! 24535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24536: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 24537: { (case "(($ac_try" in
! 24538: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24539: *) ac_try_echo=$ac_try;;
! 24540: esac
! 24541: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24542: (eval "$ac_try") 2>&5
! 24543: ac_status=$?
! 24544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24545: (exit $ac_status); }; }; then
! 24546: ac_cv_sizeof_long_long_int=`cat conftest.val`
! 24547: else
! 24548: echo "$as_me: program exited with status $ac_status" >&5
! 24549: echo "$as_me: failed program was:" >&5
! 24550: sed 's/^/| /' conftest.$ac_ext >&5
! 24551:
! 24552: ( exit $ac_status )
! 24553: if test "$ac_cv_type_long_long_int" = yes; then
! 24554: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
! 24555: See \`config.log' for more details." >&5
! 24556: echo "$as_me: error: cannot compute sizeof (long long int)
! 24557: See \`config.log' for more details." >&2;}
! 24558: { (exit 77); exit 77; }; }
! 24559: else
! 24560: ac_cv_sizeof_long_long_int=0
! 24561: fi
! 24562: fi
! 24563: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 24564: fi
! 24565: rm -f conftest.val
! 24566: fi
! 24567: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
! 24568: echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
! 24569:
! 24570:
! 24571:
! 24572: cat >>confdefs.h <<_ACEOF
! 24573: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
! 24574: _ACEOF
! 24575:
! 24576:
! 24577: { echo "$as_me:$LINENO: checking for long" >&5
! 24578: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
! 24579: if test "${ac_cv_type_long+set}" = set; then
! 24580: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24581: else
! 24582: cat >conftest.$ac_ext <<_ACEOF
! 24583: /* confdefs.h. */
! 24584: _ACEOF
! 24585: cat confdefs.h >>conftest.$ac_ext
! 24586: cat >>conftest.$ac_ext <<_ACEOF
! 24587: /* end confdefs.h. */
! 24588: $ac_includes_default
! 24589: typedef long ac__type_new_;
! 24590: int
! 24591: main ()
! 24592: {
! 24593: if ((ac__type_new_ *) 0)
! 24594: return 0;
! 24595: if (sizeof (ac__type_new_))
! 24596: return 0;
! 24597: ;
! 24598: return 0;
! 24599: }
! 24600: _ACEOF
! 24601: rm -f conftest.$ac_objext
! 24602: if { (ac_try="$ac_compile"
! 24603: case "(($ac_try" in
! 24604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24605: *) ac_try_echo=$ac_try;;
! 24606: esac
! 24607: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24608: (eval "$ac_compile") 2>conftest.er1
! 24609: ac_status=$?
! 24610: grep -v '^ *+' conftest.er1 >conftest.err
! 24611: rm -f conftest.er1
! 24612: cat conftest.err >&5
! 24613: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24614: (exit $ac_status); } && {
! 24615: test -z "$ac_c_werror_flag" ||
! 24616: test ! -s conftest.err
! 24617: } && test -s conftest.$ac_objext; then
! 24618: ac_cv_type_long=yes
! 24619: else
! 24620: echo "$as_me: failed program was:" >&5
! 24621: sed 's/^/| /' conftest.$ac_ext >&5
! 24622:
! 24623: ac_cv_type_long=no
! 24624: fi
! 24625:
! 24626: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24627: fi
! 24628: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 24629: echo "${ECHO_T}$ac_cv_type_long" >&6; }
! 24630:
! 24631: # The cast to long int works around a bug in the HP C Compiler
! 24632: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 24633: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 24634: # This bug is HP SR number 8606223364.
! 24635: { echo "$as_me:$LINENO: checking size of long" >&5
! 24636: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
! 24637: if test "${ac_cv_sizeof_long+set}" = set; then
! 24638: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24639: else
! 24640: if test "$cross_compiling" = yes; then
! 24641: # Depending upon the size, compute the lo and hi bounds.
! 24642: cat >conftest.$ac_ext <<_ACEOF
! 24643: /* confdefs.h. */
! 24644: _ACEOF
! 24645: cat confdefs.h >>conftest.$ac_ext
! 24646: cat >>conftest.$ac_ext <<_ACEOF
! 24647: /* end confdefs.h. */
! 24648: $ac_includes_default
! 24649: typedef long ac__type_sizeof_;
! 24650: int
! 24651: main ()
! 24652: {
! 24653: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 24654: test_array [0] = 0
! 24655:
! 24656: ;
! 24657: return 0;
! 24658: }
! 24659: _ACEOF
! 24660: rm -f conftest.$ac_objext
! 24661: if { (ac_try="$ac_compile"
! 24662: case "(($ac_try" in
! 24663: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24664: *) ac_try_echo=$ac_try;;
! 24665: esac
! 24666: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24667: (eval "$ac_compile") 2>conftest.er1
! 24668: ac_status=$?
! 24669: grep -v '^ *+' conftest.er1 >conftest.err
! 24670: rm -f conftest.er1
! 24671: cat conftest.err >&5
! 24672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24673: (exit $ac_status); } && {
! 24674: test -z "$ac_c_werror_flag" ||
! 24675: test ! -s conftest.err
! 24676: } && test -s conftest.$ac_objext; then
! 24677: ac_lo=0 ac_mid=0
! 24678: while :; do
! 24679: cat >conftest.$ac_ext <<_ACEOF
! 24680: /* confdefs.h. */
! 24681: _ACEOF
! 24682: cat confdefs.h >>conftest.$ac_ext
! 24683: cat >>conftest.$ac_ext <<_ACEOF
! 24684: /* end confdefs.h. */
! 24685: $ac_includes_default
! 24686: typedef long ac__type_sizeof_;
! 24687: int
! 24688: main ()
! 24689: {
! 24690: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 24691: test_array [0] = 0
! 24692:
! 24693: ;
! 24694: return 0;
! 24695: }
! 24696: _ACEOF
! 24697: rm -f conftest.$ac_objext
! 24698: if { (ac_try="$ac_compile"
! 24699: case "(($ac_try" in
! 24700: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24701: *) ac_try_echo=$ac_try;;
! 24702: esac
! 24703: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24704: (eval "$ac_compile") 2>conftest.er1
! 24705: ac_status=$?
! 24706: grep -v '^ *+' conftest.er1 >conftest.err
! 24707: rm -f conftest.er1
! 24708: cat conftest.err >&5
! 24709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24710: (exit $ac_status); } && {
! 24711: test -z "$ac_c_werror_flag" ||
! 24712: test ! -s conftest.err
! 24713: } && test -s conftest.$ac_objext; then
! 24714: ac_hi=$ac_mid; break
! 24715: else
! 24716: echo "$as_me: failed program was:" >&5
! 24717: sed 's/^/| /' conftest.$ac_ext >&5
! 24718:
! 24719: ac_lo=`expr $ac_mid + 1`
! 24720: if test $ac_lo -le $ac_mid; then
! 24721: ac_lo= ac_hi=
! 24722: break
! 24723: fi
! 24724: ac_mid=`expr 2 '*' $ac_mid + 1`
! 24725: fi
! 24726:
! 24727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24728: done
! 24729: else
! 24730: echo "$as_me: failed program was:" >&5
! 24731: sed 's/^/| /' conftest.$ac_ext >&5
! 24732:
! 24733: cat >conftest.$ac_ext <<_ACEOF
! 24734: /* confdefs.h. */
! 24735: _ACEOF
! 24736: cat confdefs.h >>conftest.$ac_ext
! 24737: cat >>conftest.$ac_ext <<_ACEOF
! 24738: /* end confdefs.h. */
! 24739: $ac_includes_default
! 24740: typedef long ac__type_sizeof_;
! 24741: int
! 24742: main ()
! 24743: {
! 24744: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 24745: test_array [0] = 0
! 24746:
! 24747: ;
! 24748: return 0;
! 24749: }
! 24750: _ACEOF
! 24751: rm -f conftest.$ac_objext
! 24752: if { (ac_try="$ac_compile"
! 24753: case "(($ac_try" in
! 24754: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24755: *) ac_try_echo=$ac_try;;
! 24756: esac
! 24757: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24758: (eval "$ac_compile") 2>conftest.er1
! 24759: ac_status=$?
! 24760: grep -v '^ *+' conftest.er1 >conftest.err
! 24761: rm -f conftest.er1
! 24762: cat conftest.err >&5
! 24763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24764: (exit $ac_status); } && {
! 24765: test -z "$ac_c_werror_flag" ||
! 24766: test ! -s conftest.err
! 24767: } && test -s conftest.$ac_objext; then
! 24768: ac_hi=-1 ac_mid=-1
! 24769: while :; do
! 24770: cat >conftest.$ac_ext <<_ACEOF
! 24771: /* confdefs.h. */
! 24772: _ACEOF
! 24773: cat confdefs.h >>conftest.$ac_ext
! 24774: cat >>conftest.$ac_ext <<_ACEOF
! 24775: /* end confdefs.h. */
! 24776: $ac_includes_default
! 24777: typedef long ac__type_sizeof_;
! 24778: int
! 24779: main ()
! 24780: {
! 24781: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 24782: test_array [0] = 0
! 24783:
! 24784: ;
! 24785: return 0;
! 24786: }
! 24787: _ACEOF
! 24788: rm -f conftest.$ac_objext
! 24789: if { (ac_try="$ac_compile"
! 24790: case "(($ac_try" in
! 24791: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24792: *) ac_try_echo=$ac_try;;
! 24793: esac
! 24794: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24795: (eval "$ac_compile") 2>conftest.er1
! 24796: ac_status=$?
! 24797: grep -v '^ *+' conftest.er1 >conftest.err
! 24798: rm -f conftest.er1
! 24799: cat conftest.err >&5
! 24800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24801: (exit $ac_status); } && {
! 24802: test -z "$ac_c_werror_flag" ||
! 24803: test ! -s conftest.err
! 24804: } && test -s conftest.$ac_objext; then
! 24805: ac_lo=$ac_mid; break
! 24806: else
! 24807: echo "$as_me: failed program was:" >&5
! 24808: sed 's/^/| /' conftest.$ac_ext >&5
! 24809:
! 24810: ac_hi=`expr '(' $ac_mid ')' - 1`
! 24811: if test $ac_mid -le $ac_hi; then
! 24812: ac_lo= ac_hi=
! 24813: break
! 24814: fi
! 24815: ac_mid=`expr 2 '*' $ac_mid`
! 24816: fi
! 24817:
! 24818: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24819: done
! 24820: else
! 24821: echo "$as_me: failed program was:" >&5
! 24822: sed 's/^/| /' conftest.$ac_ext >&5
! 24823:
! 24824: ac_lo= ac_hi=
! 24825: fi
! 24826:
! 24827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24828: fi
! 24829:
! 24830: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24831: # Binary search between lo and hi bounds.
! 24832: while test "x$ac_lo" != "x$ac_hi"; do
! 24833: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 24834: cat >conftest.$ac_ext <<_ACEOF
! 24835: /* confdefs.h. */
! 24836: _ACEOF
! 24837: cat confdefs.h >>conftest.$ac_ext
! 24838: cat >>conftest.$ac_ext <<_ACEOF
! 24839: /* end confdefs.h. */
! 24840: $ac_includes_default
! 24841: typedef long ac__type_sizeof_;
! 24842: int
! 24843: main ()
! 24844: {
! 24845: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 24846: test_array [0] = 0
! 24847:
! 24848: ;
! 24849: return 0;
! 24850: }
! 24851: _ACEOF
! 24852: rm -f conftest.$ac_objext
! 24853: if { (ac_try="$ac_compile"
! 24854: case "(($ac_try" in
! 24855: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24856: *) ac_try_echo=$ac_try;;
! 24857: esac
! 24858: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24859: (eval "$ac_compile") 2>conftest.er1
! 24860: ac_status=$?
! 24861: grep -v '^ *+' conftest.er1 >conftest.err
! 24862: rm -f conftest.er1
! 24863: cat conftest.err >&5
! 24864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24865: (exit $ac_status); } && {
! 24866: test -z "$ac_c_werror_flag" ||
! 24867: test ! -s conftest.err
! 24868: } && test -s conftest.$ac_objext; then
! 24869: ac_hi=$ac_mid
! 24870: else
! 24871: echo "$as_me: failed program was:" >&5
! 24872: sed 's/^/| /' conftest.$ac_ext >&5
! 24873:
! 24874: ac_lo=`expr '(' $ac_mid ')' + 1`
! 24875: fi
! 24876:
! 24877: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 24878: done
! 24879: case $ac_lo in
! 24880: ?*) ac_cv_sizeof_long=$ac_lo;;
! 24881: '') if test "$ac_cv_type_long" = yes; then
! 24882: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 24883: See \`config.log' for more details." >&5
! 24884: echo "$as_me: error: cannot compute sizeof (long)
! 24885: See \`config.log' for more details." >&2;}
! 24886: { (exit 77); exit 77; }; }
! 24887: else
! 24888: ac_cv_sizeof_long=0
! 24889: fi ;;
! 24890: esac
! 24891: else
! 24892: cat >conftest.$ac_ext <<_ACEOF
! 24893: /* confdefs.h. */
! 24894: _ACEOF
! 24895: cat confdefs.h >>conftest.$ac_ext
! 24896: cat >>conftest.$ac_ext <<_ACEOF
! 24897: /* end confdefs.h. */
! 24898: $ac_includes_default
! 24899: typedef long ac__type_sizeof_;
! 24900: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 24901: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 24902: #include <stdio.h>
! 24903: #include <stdlib.h>
! 24904: int
! 24905: main ()
! 24906: {
! 24907:
! 24908: FILE *f = fopen ("conftest.val", "w");
! 24909: if (! f)
! 24910: return 1;
! 24911: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 24912: {
! 24913: long int i = longval ();
! 24914: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 24915: return 1;
! 24916: fprintf (f, "%ld\n", i);
! 24917: }
! 24918: else
! 24919: {
! 24920: unsigned long int i = ulongval ();
! 24921: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 24922: return 1;
! 24923: fprintf (f, "%lu\n", i);
! 24924: }
! 24925: return ferror (f) || fclose (f) != 0;
! 24926:
! 24927: ;
! 24928: return 0;
! 24929: }
! 24930: _ACEOF
! 24931: rm -f conftest$ac_exeext
! 24932: if { (ac_try="$ac_link"
! 24933: case "(($ac_try" in
! 24934: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24935: *) ac_try_echo=$ac_try;;
! 24936: esac
! 24937: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24938: (eval "$ac_link") 2>&5
! 24939: ac_status=$?
! 24940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24941: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 24942: { (case "(($ac_try" in
! 24943: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 24944: *) ac_try_echo=$ac_try;;
! 24945: esac
! 24946: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 24947: (eval "$ac_try") 2>&5
! 24948: ac_status=$?
! 24949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24950: (exit $ac_status); }; }; then
! 24951: ac_cv_sizeof_long=`cat conftest.val`
! 24952: else
! 24953: echo "$as_me: program exited with status $ac_status" >&5
! 24954: echo "$as_me: failed program was:" >&5
! 24955: sed 's/^/| /' conftest.$ac_ext >&5
! 24956:
! 24957: ( exit $ac_status )
! 24958: if test "$ac_cv_type_long" = yes; then
! 24959: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 24960: See \`config.log' for more details." >&5
! 24961: echo "$as_me: error: cannot compute sizeof (long)
! 24962: See \`config.log' for more details." >&2;}
! 24963: { (exit 77); exit 77; }; }
! 24964: else
! 24965: ac_cv_sizeof_long=0
! 24966: fi
! 24967: fi
! 24968: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 24969: fi
! 24970: rm -f conftest.val
! 24971: fi
! 24972: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 24973: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
! 24974:
! 24975:
! 24976:
! 24977: cat >>confdefs.h <<_ACEOF
! 24978: #define SIZEOF_LONG $ac_cv_sizeof_long
! 24979: _ACEOF
! 24980:
! 24981:
! 24982: { echo "$as_me:$LINENO: checking for int" >&5
! 24983: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
! 24984: if test "${ac_cv_type_int+set}" = set; then
! 24985: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24986: else
! 24987: cat >conftest.$ac_ext <<_ACEOF
! 24988: /* confdefs.h. */
! 24989: _ACEOF
! 24990: cat confdefs.h >>conftest.$ac_ext
! 24991: cat >>conftest.$ac_ext <<_ACEOF
! 24992: /* end confdefs.h. */
! 24993: $ac_includes_default
! 24994: typedef int ac__type_new_;
! 24995: int
! 24996: main ()
! 24997: {
! 24998: if ((ac__type_new_ *) 0)
! 24999: return 0;
! 25000: if (sizeof (ac__type_new_))
! 25001: return 0;
! 25002: ;
! 25003: return 0;
! 25004: }
! 25005: _ACEOF
! 25006: rm -f conftest.$ac_objext
! 25007: if { (ac_try="$ac_compile"
! 25008: case "(($ac_try" in
! 25009: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25010: *) ac_try_echo=$ac_try;;
! 25011: esac
! 25012: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25013: (eval "$ac_compile") 2>conftest.er1
! 25014: ac_status=$?
! 25015: grep -v '^ *+' conftest.er1 >conftest.err
! 25016: rm -f conftest.er1
! 25017: cat conftest.err >&5
! 25018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25019: (exit $ac_status); } && {
! 25020: test -z "$ac_c_werror_flag" ||
! 25021: test ! -s conftest.err
! 25022: } && test -s conftest.$ac_objext; then
! 25023: ac_cv_type_int=yes
! 25024: else
! 25025: echo "$as_me: failed program was:" >&5
! 25026: sed 's/^/| /' conftest.$ac_ext >&5
! 25027:
! 25028: ac_cv_type_int=no
! 25029: fi
! 25030:
! 25031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25032: fi
! 25033: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 25034: echo "${ECHO_T}$ac_cv_type_int" >&6; }
! 25035:
! 25036: # The cast to long int works around a bug in the HP C Compiler
! 25037: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 25038: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 25039: # This bug is HP SR number 8606223364.
! 25040: { echo "$as_me:$LINENO: checking size of int" >&5
! 25041: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
! 25042: if test "${ac_cv_sizeof_int+set}" = set; then
! 25043: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25044: else
! 25045: if test "$cross_compiling" = yes; then
! 25046: # Depending upon the size, compute the lo and hi bounds.
! 25047: cat >conftest.$ac_ext <<_ACEOF
! 25048: /* confdefs.h. */
! 25049: _ACEOF
! 25050: cat confdefs.h >>conftest.$ac_ext
! 25051: cat >>conftest.$ac_ext <<_ACEOF
! 25052: /* end confdefs.h. */
! 25053: $ac_includes_default
! 25054: typedef int ac__type_sizeof_;
! 25055: int
! 25056: main ()
! 25057: {
! 25058: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 25059: test_array [0] = 0
! 25060:
! 25061: ;
! 25062: return 0;
! 25063: }
! 25064: _ACEOF
! 25065: rm -f conftest.$ac_objext
! 25066: if { (ac_try="$ac_compile"
! 25067: case "(($ac_try" in
! 25068: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25069: *) ac_try_echo=$ac_try;;
! 25070: esac
! 25071: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25072: (eval "$ac_compile") 2>conftest.er1
! 25073: ac_status=$?
! 25074: grep -v '^ *+' conftest.er1 >conftest.err
! 25075: rm -f conftest.er1
! 25076: cat conftest.err >&5
! 25077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25078: (exit $ac_status); } && {
! 25079: test -z "$ac_c_werror_flag" ||
! 25080: test ! -s conftest.err
! 25081: } && test -s conftest.$ac_objext; then
! 25082: ac_lo=0 ac_mid=0
! 25083: while :; do
! 25084: cat >conftest.$ac_ext <<_ACEOF
! 25085: /* confdefs.h. */
! 25086: _ACEOF
! 25087: cat confdefs.h >>conftest.$ac_ext
! 25088: cat >>conftest.$ac_ext <<_ACEOF
! 25089: /* end confdefs.h. */
! 25090: $ac_includes_default
! 25091: typedef int ac__type_sizeof_;
! 25092: int
! 25093: main ()
! 25094: {
! 25095: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 25096: test_array [0] = 0
! 25097:
! 25098: ;
! 25099: return 0;
! 25100: }
! 25101: _ACEOF
! 25102: rm -f conftest.$ac_objext
! 25103: if { (ac_try="$ac_compile"
! 25104: case "(($ac_try" in
! 25105: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25106: *) ac_try_echo=$ac_try;;
! 25107: esac
! 25108: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25109: (eval "$ac_compile") 2>conftest.er1
! 25110: ac_status=$?
! 25111: grep -v '^ *+' conftest.er1 >conftest.err
! 25112: rm -f conftest.er1
! 25113: cat conftest.err >&5
! 25114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25115: (exit $ac_status); } && {
! 25116: test -z "$ac_c_werror_flag" ||
! 25117: test ! -s conftest.err
! 25118: } && test -s conftest.$ac_objext; then
! 25119: ac_hi=$ac_mid; break
! 25120: else
! 25121: echo "$as_me: failed program was:" >&5
! 25122: sed 's/^/| /' conftest.$ac_ext >&5
! 25123:
! 25124: ac_lo=`expr $ac_mid + 1`
! 25125: if test $ac_lo -le $ac_mid; then
! 25126: ac_lo= ac_hi=
! 25127: break
! 25128: fi
! 25129: ac_mid=`expr 2 '*' $ac_mid + 1`
! 25130: fi
! 25131:
! 25132: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25133: done
! 25134: else
! 25135: echo "$as_me: failed program was:" >&5
! 25136: sed 's/^/| /' conftest.$ac_ext >&5
! 25137:
! 25138: cat >conftest.$ac_ext <<_ACEOF
! 25139: /* confdefs.h. */
! 25140: _ACEOF
! 25141: cat confdefs.h >>conftest.$ac_ext
! 25142: cat >>conftest.$ac_ext <<_ACEOF
! 25143: /* end confdefs.h. */
! 25144: $ac_includes_default
! 25145: typedef int ac__type_sizeof_;
! 25146: int
! 25147: main ()
! 25148: {
! 25149: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 25150: test_array [0] = 0
! 25151:
! 25152: ;
! 25153: return 0;
! 25154: }
! 25155: _ACEOF
! 25156: rm -f conftest.$ac_objext
! 25157: if { (ac_try="$ac_compile"
! 25158: case "(($ac_try" in
! 25159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25160: *) ac_try_echo=$ac_try;;
! 25161: esac
! 25162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25163: (eval "$ac_compile") 2>conftest.er1
! 25164: ac_status=$?
! 25165: grep -v '^ *+' conftest.er1 >conftest.err
! 25166: rm -f conftest.er1
! 25167: cat conftest.err >&5
! 25168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25169: (exit $ac_status); } && {
! 25170: test -z "$ac_c_werror_flag" ||
! 25171: test ! -s conftest.err
! 25172: } && test -s conftest.$ac_objext; then
! 25173: ac_hi=-1 ac_mid=-1
! 25174: while :; do
! 25175: cat >conftest.$ac_ext <<_ACEOF
! 25176: /* confdefs.h. */
! 25177: _ACEOF
! 25178: cat confdefs.h >>conftest.$ac_ext
! 25179: cat >>conftest.$ac_ext <<_ACEOF
! 25180: /* end confdefs.h. */
! 25181: $ac_includes_default
! 25182: typedef int ac__type_sizeof_;
! 25183: int
! 25184: main ()
! 25185: {
! 25186: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 25187: test_array [0] = 0
! 25188:
! 25189: ;
! 25190: return 0;
! 25191: }
! 25192: _ACEOF
! 25193: rm -f conftest.$ac_objext
! 25194: if { (ac_try="$ac_compile"
! 25195: case "(($ac_try" in
! 25196: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25197: *) ac_try_echo=$ac_try;;
! 25198: esac
! 25199: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25200: (eval "$ac_compile") 2>conftest.er1
! 25201: ac_status=$?
! 25202: grep -v '^ *+' conftest.er1 >conftest.err
! 25203: rm -f conftest.er1
! 25204: cat conftest.err >&5
! 25205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25206: (exit $ac_status); } && {
! 25207: test -z "$ac_c_werror_flag" ||
! 25208: test ! -s conftest.err
! 25209: } && test -s conftest.$ac_objext; then
! 25210: ac_lo=$ac_mid; break
! 25211: else
! 25212: echo "$as_me: failed program was:" >&5
! 25213: sed 's/^/| /' conftest.$ac_ext >&5
! 25214:
! 25215: ac_hi=`expr '(' $ac_mid ')' - 1`
! 25216: if test $ac_mid -le $ac_hi; then
! 25217: ac_lo= ac_hi=
! 25218: break
! 25219: fi
! 25220: ac_mid=`expr 2 '*' $ac_mid`
! 25221: fi
! 25222:
! 25223: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25224: done
! 25225: else
! 25226: echo "$as_me: failed program was:" >&5
! 25227: sed 's/^/| /' conftest.$ac_ext >&5
! 25228:
! 25229: ac_lo= ac_hi=
! 25230: fi
! 25231:
! 25232: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25233: fi
! 25234:
! 25235: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25236: # Binary search between lo and hi bounds.
! 25237: while test "x$ac_lo" != "x$ac_hi"; do
! 25238: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 25239: cat >conftest.$ac_ext <<_ACEOF
! 25240: /* confdefs.h. */
! 25241: _ACEOF
! 25242: cat confdefs.h >>conftest.$ac_ext
! 25243: cat >>conftest.$ac_ext <<_ACEOF
! 25244: /* end confdefs.h. */
! 25245: $ac_includes_default
! 25246: typedef int ac__type_sizeof_;
! 25247: int
! 25248: main ()
! 25249: {
! 25250: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 25251: test_array [0] = 0
! 25252:
! 25253: ;
! 25254: return 0;
! 25255: }
! 25256: _ACEOF
! 25257: rm -f conftest.$ac_objext
! 25258: if { (ac_try="$ac_compile"
! 25259: case "(($ac_try" in
! 25260: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25261: *) ac_try_echo=$ac_try;;
! 25262: esac
! 25263: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25264: (eval "$ac_compile") 2>conftest.er1
! 25265: ac_status=$?
! 25266: grep -v '^ *+' conftest.er1 >conftest.err
! 25267: rm -f conftest.er1
! 25268: cat conftest.err >&5
! 25269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25270: (exit $ac_status); } && {
! 25271: test -z "$ac_c_werror_flag" ||
! 25272: test ! -s conftest.err
! 25273: } && test -s conftest.$ac_objext; then
! 25274: ac_hi=$ac_mid
! 25275: else
! 25276: echo "$as_me: failed program was:" >&5
! 25277: sed 's/^/| /' conftest.$ac_ext >&5
! 25278:
! 25279: ac_lo=`expr '(' $ac_mid ')' + 1`
! 25280: fi
! 25281:
! 25282: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25283: done
! 25284: case $ac_lo in
! 25285: ?*) ac_cv_sizeof_int=$ac_lo;;
! 25286: '') if test "$ac_cv_type_int" = yes; then
! 25287: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 25288: See \`config.log' for more details." >&5
! 25289: echo "$as_me: error: cannot compute sizeof (int)
! 25290: See \`config.log' for more details." >&2;}
! 25291: { (exit 77); exit 77; }; }
! 25292: else
! 25293: ac_cv_sizeof_int=0
! 25294: fi ;;
! 25295: esac
! 25296: else
! 25297: cat >conftest.$ac_ext <<_ACEOF
! 25298: /* confdefs.h. */
! 25299: _ACEOF
! 25300: cat confdefs.h >>conftest.$ac_ext
! 25301: cat >>conftest.$ac_ext <<_ACEOF
! 25302: /* end confdefs.h. */
! 25303: $ac_includes_default
! 25304: typedef int ac__type_sizeof_;
! 25305: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 25306: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 25307: #include <stdio.h>
! 25308: #include <stdlib.h>
! 25309: int
! 25310: main ()
! 25311: {
! 25312:
! 25313: FILE *f = fopen ("conftest.val", "w");
! 25314: if (! f)
! 25315: return 1;
! 25316: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 25317: {
! 25318: long int i = longval ();
! 25319: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 25320: return 1;
! 25321: fprintf (f, "%ld\n", i);
! 25322: }
! 25323: else
! 25324: {
! 25325: unsigned long int i = ulongval ();
! 25326: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 25327: return 1;
! 25328: fprintf (f, "%lu\n", i);
! 25329: }
! 25330: return ferror (f) || fclose (f) != 0;
! 25331:
! 25332: ;
! 25333: return 0;
! 25334: }
! 25335: _ACEOF
! 25336: rm -f conftest$ac_exeext
! 25337: if { (ac_try="$ac_link"
! 25338: case "(($ac_try" in
! 25339: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25340: *) ac_try_echo=$ac_try;;
! 25341: esac
! 25342: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25343: (eval "$ac_link") 2>&5
! 25344: ac_status=$?
! 25345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25346: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 25347: { (case "(($ac_try" in
! 25348: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25349: *) ac_try_echo=$ac_try;;
! 25350: esac
! 25351: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25352: (eval "$ac_try") 2>&5
! 25353: ac_status=$?
! 25354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25355: (exit $ac_status); }; }; then
! 25356: ac_cv_sizeof_int=`cat conftest.val`
! 25357: else
! 25358: echo "$as_me: program exited with status $ac_status" >&5
! 25359: echo "$as_me: failed program was:" >&5
! 25360: sed 's/^/| /' conftest.$ac_ext >&5
! 25361:
! 25362: ( exit $ac_status )
! 25363: if test "$ac_cv_type_int" = yes; then
! 25364: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 25365: See \`config.log' for more details." >&5
! 25366: echo "$as_me: error: cannot compute sizeof (int)
! 25367: See \`config.log' for more details." >&2;}
! 25368: { (exit 77); exit 77; }; }
! 25369: else
! 25370: ac_cv_sizeof_int=0
! 25371: fi
! 25372: fi
! 25373: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 25374: fi
! 25375: rm -f conftest.val
! 25376: fi
! 25377: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 25378: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
! 25379:
! 25380:
! 25381:
! 25382: cat >>confdefs.h <<_ACEOF
! 25383: #define SIZEOF_INT $ac_cv_sizeof_int
! 25384: _ACEOF
! 25385:
! 25386:
! 25387:
! 25388:
! 25389: { echo "$as_me:$LINENO: checking size of intmax_t" >&5
! 25390: echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6; }
! 25391:
! 25392: php_cache_value=php_cv_sizeof_intmax_t
! 25393: if test "${php_cv_sizeof_intmax_t+set}" = set; then
! 25394: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25395: else
! 25396:
! 25397: old_LIBS=$LIBS
! 25398: LIBS=
! 25399: old_LDFLAGS=$LDFLAGS
! 25400: LDFLAGS=
! 25401: if test "$cross_compiling" = yes; then
! 25402:
! 25403: eval $php_cache_value=0
! 25404:
! 25405: else
! 25406: cat >conftest.$ac_ext <<_ACEOF
! 25407: /* confdefs.h. */
! 25408: _ACEOF
! 25409: cat confdefs.h >>conftest.$ac_ext
! 25410: cat >>conftest.$ac_ext <<_ACEOF
! 25411: /* end confdefs.h. */
! 25412: #include <stdio.h>
! 25413: #if STDC_HEADERS
! 25414: #include <stdlib.h>
! 25415: #include <stddef.h>
! 25416: #endif
! 25417: #ifdef HAVE_INTTYPES_H
! 25418: #include <inttypes.h>
! 25419: #endif
! 25420: #ifdef HAVE_UNISTD_H
! 25421: #include <unistd.h>
! 25422: #endif
! 25423:
! 25424:
! 25425: int main()
! 25426: {
! 25427: FILE *fp = fopen("conftestval", "w");
! 25428: if (!fp) return(1);
! 25429: fprintf(fp, "%d\n", sizeof(intmax_t));
! 25430: return(0);
! 25431: }
! 25432:
! 25433: _ACEOF
! 25434: rm -f conftest$ac_exeext
! 25435: if { (ac_try="$ac_link"
! 25436: case "(($ac_try" in
! 25437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25438: *) ac_try_echo=$ac_try;;
! 25439: esac
! 25440: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25441: (eval "$ac_link") 2>&5
! 25442: ac_status=$?
! 25443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25444: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 25445: { (case "(($ac_try" in
! 25446: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25447: *) ac_try_echo=$ac_try;;
! 25448: esac
! 25449: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25450: (eval "$ac_try") 2>&5
! 25451: ac_status=$?
! 25452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25453: (exit $ac_status); }; }; then
! 25454:
! 25455: eval $php_cache_value=`cat conftestval`
! 25456:
! 25457: else
! 25458: echo "$as_me: program exited with status $ac_status" >&5
! 25459: echo "$as_me: failed program was:" >&5
! 25460: sed 's/^/| /' conftest.$ac_ext >&5
! 25461:
! 25462: ( exit $ac_status )
! 25463:
! 25464: eval $php_cache_value=0
! 25465:
! 25466: fi
! 25467: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 25468: fi
! 25469:
! 25470:
! 25471: LDFLAGS=$old_LDFLAGS
! 25472: LIBS=$old_LIBS
! 25473:
! 25474: fi
! 25475:
! 25476: if eval test "\$$php_cache_value" != "0"; then
! 25477:
! 25478:
! 25479: cat >>confdefs.h <<_ACEOF
! 25480: #define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t
! 25481: _ACEOF
! 25482:
! 25483:
! 25484: cat >>confdefs.h <<_ACEOF
! 25485: #define HAVE_INTMAX_T 1
! 25486: _ACEOF
! 25487:
! 25488:
! 25489:
! 25490: fi
! 25491:
! 25492: { echo "$as_me:$LINENO: result: $php_cv_sizeof_intmax_t" >&5
! 25493: echo "${ECHO_T}$php_cv_sizeof_intmax_t" >&6; }
! 25494:
! 25495:
! 25496: { echo "$as_me:$LINENO: checking size of ssize_t" >&5
! 25497: echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
! 25498:
! 25499: php_cache_value=php_cv_sizeof_ssize_t
! 25500: if test "${php_cv_sizeof_ssize_t+set}" = set; then
! 25501: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25502: else
! 25503:
! 25504: old_LIBS=$LIBS
! 25505: LIBS=
! 25506: old_LDFLAGS=$LDFLAGS
! 25507: LDFLAGS=
! 25508: if test "$cross_compiling" = yes; then
! 25509:
! 25510: eval $php_cache_value=8
! 25511:
! 25512: else
! 25513: cat >conftest.$ac_ext <<_ACEOF
! 25514: /* confdefs.h. */
! 25515: _ACEOF
! 25516: cat confdefs.h >>conftest.$ac_ext
! 25517: cat >>conftest.$ac_ext <<_ACEOF
! 25518: /* end confdefs.h. */
! 25519: #include <stdio.h>
! 25520: #if STDC_HEADERS
! 25521: #include <stdlib.h>
! 25522: #include <stddef.h>
! 25523: #endif
! 25524: #ifdef HAVE_INTTYPES_H
! 25525: #include <inttypes.h>
! 25526: #endif
! 25527: #ifdef HAVE_UNISTD_H
! 25528: #include <unistd.h>
! 25529: #endif
! 25530:
! 25531:
! 25532: int main()
! 25533: {
! 25534: FILE *fp = fopen("conftestval", "w");
! 25535: if (!fp) return(1);
! 25536: fprintf(fp, "%d\n", sizeof(ssize_t));
! 25537: return(0);
! 25538: }
! 25539:
! 25540: _ACEOF
! 25541: rm -f conftest$ac_exeext
! 25542: if { (ac_try="$ac_link"
! 25543: case "(($ac_try" in
! 25544: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25545: *) ac_try_echo=$ac_try;;
! 25546: esac
! 25547: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25548: (eval "$ac_link") 2>&5
! 25549: ac_status=$?
! 25550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25551: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 25552: { (case "(($ac_try" in
! 25553: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25554: *) ac_try_echo=$ac_try;;
! 25555: esac
! 25556: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25557: (eval "$ac_try") 2>&5
! 25558: ac_status=$?
! 25559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25560: (exit $ac_status); }; }; then
! 25561:
! 25562: eval $php_cache_value=`cat conftestval`
! 25563:
! 25564: else
! 25565: echo "$as_me: program exited with status $ac_status" >&5
! 25566: echo "$as_me: failed program was:" >&5
! 25567: sed 's/^/| /' conftest.$ac_ext >&5
! 25568:
! 25569: ( exit $ac_status )
! 25570:
! 25571: eval $php_cache_value=0
! 25572:
! 25573: fi
! 25574: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 25575: fi
! 25576:
! 25577:
! 25578: LDFLAGS=$old_LDFLAGS
! 25579: LIBS=$old_LIBS
! 25580:
! 25581: fi
! 25582:
! 25583: if eval test "\$$php_cache_value" != "0"; then
! 25584:
! 25585:
! 25586: cat >>confdefs.h <<_ACEOF
! 25587: #define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t
! 25588: _ACEOF
! 25589:
! 25590:
! 25591: cat >>confdefs.h <<_ACEOF
! 25592: #define HAVE_SSIZE_T 1
! 25593: _ACEOF
! 25594:
! 25595:
! 25596:
! 25597: fi
! 25598:
! 25599: { echo "$as_me:$LINENO: result: $php_cv_sizeof_ssize_t" >&5
! 25600: echo "${ECHO_T}$php_cv_sizeof_ssize_t" >&6; }
! 25601:
! 25602:
! 25603: { echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
! 25604: echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6; }
! 25605:
! 25606: php_cache_value=php_cv_sizeof_ptrdiff_t
! 25607: if test "${php_cv_sizeof_ptrdiff_t+set}" = set; then
! 25608: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25609: else
! 25610:
! 25611: old_LIBS=$LIBS
! 25612: LIBS=
! 25613: old_LDFLAGS=$LDFLAGS
! 25614: LDFLAGS=
! 25615: if test "$cross_compiling" = yes; then
! 25616:
! 25617: eval $php_cache_value=8
! 25618:
! 25619: else
! 25620: cat >conftest.$ac_ext <<_ACEOF
! 25621: /* confdefs.h. */
! 25622: _ACEOF
! 25623: cat confdefs.h >>conftest.$ac_ext
! 25624: cat >>conftest.$ac_ext <<_ACEOF
! 25625: /* end confdefs.h. */
! 25626: #include <stdio.h>
! 25627: #if STDC_HEADERS
! 25628: #include <stdlib.h>
! 25629: #include <stddef.h>
! 25630: #endif
! 25631: #ifdef HAVE_INTTYPES_H
! 25632: #include <inttypes.h>
! 25633: #endif
! 25634: #ifdef HAVE_UNISTD_H
! 25635: #include <unistd.h>
! 25636: #endif
! 25637:
! 25638:
! 25639: int main()
! 25640: {
! 25641: FILE *fp = fopen("conftestval", "w");
! 25642: if (!fp) return(1);
! 25643: fprintf(fp, "%d\n", sizeof(ptrdiff_t));
! 25644: return(0);
! 25645: }
! 25646:
! 25647: _ACEOF
! 25648: rm -f conftest$ac_exeext
! 25649: if { (ac_try="$ac_link"
! 25650: case "(($ac_try" in
! 25651: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25652: *) ac_try_echo=$ac_try;;
! 25653: esac
! 25654: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25655: (eval "$ac_link") 2>&5
! 25656: ac_status=$?
! 25657: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25658: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 25659: { (case "(($ac_try" in
! 25660: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25661: *) ac_try_echo=$ac_try;;
! 25662: esac
! 25663: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25664: (eval "$ac_try") 2>&5
! 25665: ac_status=$?
! 25666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25667: (exit $ac_status); }; }; then
! 25668:
! 25669: eval $php_cache_value=`cat conftestval`
! 25670:
! 25671: else
! 25672: echo "$as_me: program exited with status $ac_status" >&5
! 25673: echo "$as_me: failed program was:" >&5
! 25674: sed 's/^/| /' conftest.$ac_ext >&5
! 25675:
! 25676: ( exit $ac_status )
! 25677:
! 25678: eval $php_cache_value=0
! 25679:
! 25680: fi
! 25681: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 25682: fi
! 25683:
! 25684:
! 25685: LDFLAGS=$old_LDFLAGS
! 25686: LIBS=$old_LIBS
! 25687:
! 25688: fi
! 25689:
! 25690: if eval test "\$$php_cache_value" != "0"; then
! 25691:
! 25692:
! 25693: cat >>confdefs.h <<_ACEOF
! 25694: #define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t
! 25695: _ACEOF
! 25696:
! 25697:
! 25698: cat >>confdefs.h <<_ACEOF
! 25699: #define HAVE_PTRDIFF_T 1
! 25700: _ACEOF
! 25701:
! 25702:
! 25703:
! 25704: fi
! 25705:
! 25706: { echo "$as_me:$LINENO: result: $php_cv_sizeof_ptrdiff_t" >&5
! 25707: echo "${ECHO_T}$php_cv_sizeof_ptrdiff_t" >&6; }
! 25708:
! 25709:
! 25710: { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
! 25711: echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
! 25712: if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
! 25713: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25714: else
! 25715: cat >conftest.$ac_ext <<_ACEOF
! 25716: /* confdefs.h. */
! 25717: _ACEOF
! 25718: cat confdefs.h >>conftest.$ac_ext
! 25719: cat >>conftest.$ac_ext <<_ACEOF
! 25720: /* end confdefs.h. */
! 25721: $ac_includes_default
! 25722: int
! 25723: main ()
! 25724: {
! 25725: static struct stat ac_aggr;
! 25726: if (ac_aggr.st_blksize)
! 25727: return 0;
! 25728: ;
! 25729: return 0;
! 25730: }
! 25731: _ACEOF
! 25732: rm -f conftest.$ac_objext
! 25733: if { (ac_try="$ac_compile"
! 25734: case "(($ac_try" in
! 25735: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25736: *) ac_try_echo=$ac_try;;
! 25737: esac
! 25738: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25739: (eval "$ac_compile") 2>conftest.er1
! 25740: ac_status=$?
! 25741: grep -v '^ *+' conftest.er1 >conftest.err
! 25742: rm -f conftest.er1
! 25743: cat conftest.err >&5
! 25744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25745: (exit $ac_status); } && {
! 25746: test -z "$ac_c_werror_flag" ||
! 25747: test ! -s conftest.err
! 25748: } && test -s conftest.$ac_objext; then
! 25749: ac_cv_member_struct_stat_st_blksize=yes
! 25750: else
! 25751: echo "$as_me: failed program was:" >&5
! 25752: sed 's/^/| /' conftest.$ac_ext >&5
! 25753:
! 25754: cat >conftest.$ac_ext <<_ACEOF
! 25755: /* confdefs.h. */
! 25756: _ACEOF
! 25757: cat confdefs.h >>conftest.$ac_ext
! 25758: cat >>conftest.$ac_ext <<_ACEOF
! 25759: /* end confdefs.h. */
! 25760: $ac_includes_default
! 25761: int
! 25762: main ()
! 25763: {
! 25764: static struct stat ac_aggr;
! 25765: if (sizeof ac_aggr.st_blksize)
! 25766: return 0;
! 25767: ;
! 25768: return 0;
! 25769: }
! 25770: _ACEOF
! 25771: rm -f conftest.$ac_objext
! 25772: if { (ac_try="$ac_compile"
! 25773: case "(($ac_try" in
! 25774: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25775: *) ac_try_echo=$ac_try;;
! 25776: esac
! 25777: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25778: (eval "$ac_compile") 2>conftest.er1
! 25779: ac_status=$?
! 25780: grep -v '^ *+' conftest.er1 >conftest.err
! 25781: rm -f conftest.er1
! 25782: cat conftest.err >&5
! 25783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25784: (exit $ac_status); } && {
! 25785: test -z "$ac_c_werror_flag" ||
! 25786: test ! -s conftest.err
! 25787: } && test -s conftest.$ac_objext; then
! 25788: ac_cv_member_struct_stat_st_blksize=yes
! 25789: else
! 25790: echo "$as_me: failed program was:" >&5
! 25791: sed 's/^/| /' conftest.$ac_ext >&5
! 25792:
! 25793: ac_cv_member_struct_stat_st_blksize=no
! 25794: fi
! 25795:
! 25796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25797: fi
! 25798:
! 25799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25800: fi
! 25801: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
! 25802: echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
! 25803: if test $ac_cv_member_struct_stat_st_blksize = yes; then
! 25804:
! 25805: cat >>confdefs.h <<_ACEOF
! 25806: #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
! 25807: _ACEOF
! 25808:
! 25809:
! 25810: cat >>confdefs.h <<\_ACEOF
! 25811: #define HAVE_ST_BLKSIZE 1
! 25812: _ACEOF
! 25813:
! 25814: fi
! 25815:
! 25816:
! 25817: if test "`uname -s 2>/dev/null`" != "QNX"; then
! 25818: { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
! 25819: echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
! 25820: if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
! 25821: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25822: else
! 25823: cat >conftest.$ac_ext <<_ACEOF
! 25824: /* confdefs.h. */
! 25825: _ACEOF
! 25826: cat confdefs.h >>conftest.$ac_ext
! 25827: cat >>conftest.$ac_ext <<_ACEOF
! 25828: /* end confdefs.h. */
! 25829: $ac_includes_default
! 25830: int
! 25831: main ()
! 25832: {
! 25833: static struct stat ac_aggr;
! 25834: if (ac_aggr.st_blocks)
! 25835: return 0;
! 25836: ;
! 25837: return 0;
! 25838: }
! 25839: _ACEOF
! 25840: rm -f conftest.$ac_objext
! 25841: if { (ac_try="$ac_compile"
! 25842: case "(($ac_try" in
! 25843: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25844: *) ac_try_echo=$ac_try;;
! 25845: esac
! 25846: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25847: (eval "$ac_compile") 2>conftest.er1
! 25848: ac_status=$?
! 25849: grep -v '^ *+' conftest.er1 >conftest.err
! 25850: rm -f conftest.er1
! 25851: cat conftest.err >&5
! 25852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25853: (exit $ac_status); } && {
! 25854: test -z "$ac_c_werror_flag" ||
! 25855: test ! -s conftest.err
! 25856: } && test -s conftest.$ac_objext; then
! 25857: ac_cv_member_struct_stat_st_blocks=yes
! 25858: else
! 25859: echo "$as_me: failed program was:" >&5
! 25860: sed 's/^/| /' conftest.$ac_ext >&5
! 25861:
! 25862: cat >conftest.$ac_ext <<_ACEOF
! 25863: /* confdefs.h. */
! 25864: _ACEOF
! 25865: cat confdefs.h >>conftest.$ac_ext
! 25866: cat >>conftest.$ac_ext <<_ACEOF
! 25867: /* end confdefs.h. */
! 25868: $ac_includes_default
! 25869: int
! 25870: main ()
! 25871: {
! 25872: static struct stat ac_aggr;
! 25873: if (sizeof ac_aggr.st_blocks)
! 25874: return 0;
! 25875: ;
! 25876: return 0;
! 25877: }
! 25878: _ACEOF
! 25879: rm -f conftest.$ac_objext
! 25880: if { (ac_try="$ac_compile"
! 25881: case "(($ac_try" in
! 25882: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25883: *) ac_try_echo=$ac_try;;
! 25884: esac
! 25885: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25886: (eval "$ac_compile") 2>conftest.er1
! 25887: ac_status=$?
! 25888: grep -v '^ *+' conftest.er1 >conftest.err
! 25889: rm -f conftest.er1
! 25890: cat conftest.err >&5
! 25891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25892: (exit $ac_status); } && {
! 25893: test -z "$ac_c_werror_flag" ||
! 25894: test ! -s conftest.err
! 25895: } && test -s conftest.$ac_objext; then
! 25896: ac_cv_member_struct_stat_st_blocks=yes
! 25897: else
! 25898: echo "$as_me: failed program was:" >&5
! 25899: sed 's/^/| /' conftest.$ac_ext >&5
! 25900:
! 25901: ac_cv_member_struct_stat_st_blocks=no
! 25902: fi
! 25903:
! 25904: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25905: fi
! 25906:
! 25907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 25908: fi
! 25909: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
! 25910: echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
! 25911: if test $ac_cv_member_struct_stat_st_blocks = yes; then
! 25912:
! 25913: cat >>confdefs.h <<_ACEOF
! 25914: #define HAVE_STRUCT_STAT_ST_BLOCKS 1
! 25915: _ACEOF
! 25916:
! 25917:
! 25918: cat >>confdefs.h <<\_ACEOF
! 25919: #define HAVE_ST_BLOCKS 1
! 25920: _ACEOF
! 25921:
! 25922: else
! 25923: case " $LIBOBJS " in
! 25924: *" fileblocks.$ac_objext "* ) ;;
! 25925: *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
! 25926: ;;
! 25927: esac
! 25928:
! 25929: fi
! 25930:
! 25931:
! 25932: else
! 25933: { echo "$as_me:$LINENO: WARNING: warnings level for cc set to 0" >&5
! 25934: echo "$as_me: WARNING: warnings level for cc set to 0" >&2;}
! 25935: WARNING_LEVEL=0
! 25936: fi
! 25937: { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
! 25938: echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
! 25939: if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
! 25940: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25941: else
! 25942: cat >conftest.$ac_ext <<_ACEOF
! 25943: /* confdefs.h. */
! 25944: _ACEOF
! 25945: cat confdefs.h >>conftest.$ac_ext
! 25946: cat >>conftest.$ac_ext <<_ACEOF
! 25947: /* end confdefs.h. */
! 25948: $ac_includes_default
! 25949: int
! 25950: main ()
! 25951: {
! 25952: static struct stat ac_aggr;
! 25953: if (ac_aggr.st_rdev)
! 25954: return 0;
! 25955: ;
! 25956: return 0;
! 25957: }
! 25958: _ACEOF
! 25959: rm -f conftest.$ac_objext
! 25960: if { (ac_try="$ac_compile"
! 25961: case "(($ac_try" in
! 25962: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 25963: *) ac_try_echo=$ac_try;;
! 25964: esac
! 25965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 25966: (eval "$ac_compile") 2>conftest.er1
! 25967: ac_status=$?
! 25968: grep -v '^ *+' conftest.er1 >conftest.err
! 25969: rm -f conftest.er1
! 25970: cat conftest.err >&5
! 25971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25972: (exit $ac_status); } && {
! 25973: test -z "$ac_c_werror_flag" ||
! 25974: test ! -s conftest.err
! 25975: } && test -s conftest.$ac_objext; then
! 25976: ac_cv_member_struct_stat_st_rdev=yes
! 25977: else
! 25978: echo "$as_me: failed program was:" >&5
! 25979: sed 's/^/| /' conftest.$ac_ext >&5
! 25980:
! 25981: cat >conftest.$ac_ext <<_ACEOF
! 25982: /* confdefs.h. */
! 25983: _ACEOF
! 25984: cat confdefs.h >>conftest.$ac_ext
! 25985: cat >>conftest.$ac_ext <<_ACEOF
! 25986: /* end confdefs.h. */
! 25987: $ac_includes_default
! 25988: int
! 25989: main ()
! 25990: {
! 25991: static struct stat ac_aggr;
! 25992: if (sizeof ac_aggr.st_rdev)
! 25993: return 0;
! 25994: ;
! 25995: return 0;
! 25996: }
! 25997: _ACEOF
! 25998: rm -f conftest.$ac_objext
! 25999: if { (ac_try="$ac_compile"
! 26000: case "(($ac_try" in
! 26001: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26002: *) ac_try_echo=$ac_try;;
! 26003: esac
! 26004: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26005: (eval "$ac_compile") 2>conftest.er1
! 26006: ac_status=$?
! 26007: grep -v '^ *+' conftest.er1 >conftest.err
! 26008: rm -f conftest.er1
! 26009: cat conftest.err >&5
! 26010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26011: (exit $ac_status); } && {
! 26012: test -z "$ac_c_werror_flag" ||
! 26013: test ! -s conftest.err
! 26014: } && test -s conftest.$ac_objext; then
! 26015: ac_cv_member_struct_stat_st_rdev=yes
! 26016: else
! 26017: echo "$as_me: failed program was:" >&5
! 26018: sed 's/^/| /' conftest.$ac_ext >&5
! 26019:
! 26020: ac_cv_member_struct_stat_st_rdev=no
! 26021: fi
! 26022:
! 26023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 26024: fi
! 26025:
! 26026: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 26027: fi
! 26028: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
! 26029: echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
! 26030: if test $ac_cv_member_struct_stat_st_rdev = yes; then
! 26031:
! 26032: cat >>confdefs.h <<_ACEOF
! 26033: #define HAVE_STRUCT_STAT_ST_RDEV 1
! 26034: _ACEOF
! 26035:
! 26036:
! 26037: cat >>confdefs.h <<\_ACEOF
! 26038: #define HAVE_ST_RDEV 1
! 26039: _ACEOF
! 26040:
! 26041: fi
! 26042:
! 26043:
! 26044:
! 26045: { echo "$as_me:$LINENO: checking for size_t" >&5
! 26046: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
! 26047: if test "${ac_cv_type_size_t+set}" = set; then
! 26048: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26049: else
! 26050: cat >conftest.$ac_ext <<_ACEOF
! 26051: /* confdefs.h. */
! 26052: _ACEOF
! 26053: cat confdefs.h >>conftest.$ac_ext
! 26054: cat >>conftest.$ac_ext <<_ACEOF
! 26055: /* end confdefs.h. */
! 26056: $ac_includes_default
! 26057: typedef size_t ac__type_new_;
! 26058: int
! 26059: main ()
! 26060: {
! 26061: if ((ac__type_new_ *) 0)
! 26062: return 0;
! 26063: if (sizeof (ac__type_new_))
! 26064: return 0;
! 26065: ;
! 26066: return 0;
! 26067: }
! 26068: _ACEOF
! 26069: rm -f conftest.$ac_objext
! 26070: if { (ac_try="$ac_compile"
! 26071: case "(($ac_try" in
! 26072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26073: *) ac_try_echo=$ac_try;;
! 26074: esac
! 26075: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26076: (eval "$ac_compile") 2>conftest.er1
! 26077: ac_status=$?
! 26078: grep -v '^ *+' conftest.er1 >conftest.err
! 26079: rm -f conftest.er1
! 26080: cat conftest.err >&5
! 26081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26082: (exit $ac_status); } && {
! 26083: test -z "$ac_c_werror_flag" ||
! 26084: test ! -s conftest.err
! 26085: } && test -s conftest.$ac_objext; then
! 26086: ac_cv_type_size_t=yes
! 26087: else
! 26088: echo "$as_me: failed program was:" >&5
! 26089: sed 's/^/| /' conftest.$ac_ext >&5
! 26090:
! 26091: ac_cv_type_size_t=no
! 26092: fi
! 26093:
! 26094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 26095: fi
! 26096: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 26097: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
! 26098: if test $ac_cv_type_size_t = yes; then
! 26099: :
! 26100: else
! 26101:
! 26102: cat >>confdefs.h <<_ACEOF
! 26103: #define size_t unsigned int
! 26104: _ACEOF
! 26105:
! 26106: fi
! 26107:
! 26108: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
! 26109: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
! 26110: if test "${ac_cv_type_uid_t+set}" = set; then
! 26111: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26112: else
! 26113: cat >conftest.$ac_ext <<_ACEOF
! 26114: /* confdefs.h. */
! 26115: _ACEOF
! 26116: cat confdefs.h >>conftest.$ac_ext
! 26117: cat >>conftest.$ac_ext <<_ACEOF
! 26118: /* end confdefs.h. */
! 26119: #include <sys/types.h>
! 26120:
! 26121: _ACEOF
! 26122: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 26123: $EGREP "uid_t" >/dev/null 2>&1; then
! 26124: ac_cv_type_uid_t=yes
! 26125: else
! 26126: ac_cv_type_uid_t=no
! 26127: fi
! 26128: rm -f -r conftest*
! 26129:
! 26130: fi
! 26131: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
! 26132: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
! 26133: if test $ac_cv_type_uid_t = no; then
! 26134:
! 26135: cat >>confdefs.h <<\_ACEOF
! 26136: #define uid_t int
! 26137: _ACEOF
! 26138:
! 26139:
! 26140: cat >>confdefs.h <<\_ACEOF
! 26141: #define gid_t int
! 26142: _ACEOF
! 26143:
! 26144: fi
! 26145:
! 26146:
! 26147:
! 26148: { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
! 26149: echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
! 26150: if test "${ac_cv_sockaddr_storage+set}" = set; then
! 26151: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26152: else
! 26153: cat >conftest.$ac_ext <<_ACEOF
! 26154: /* confdefs.h. */
! 26155: _ACEOF
! 26156: cat confdefs.h >>conftest.$ac_ext
! 26157: cat >>conftest.$ac_ext <<_ACEOF
! 26158: /* end confdefs.h. */
! 26159: #include <sys/types.h>
! 26160: #include <sys/socket.h>
! 26161: int
! 26162: main ()
! 26163: {
! 26164: struct sockaddr_storage s; s
! 26165: ;
! 26166: return 0;
! 26167: }
! 26168: _ACEOF
! 26169: rm -f conftest.$ac_objext
! 26170: if { (ac_try="$ac_compile"
! 26171: case "(($ac_try" in
! 26172: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26173: *) ac_try_echo=$ac_try;;
! 26174: esac
! 26175: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26176: (eval "$ac_compile") 2>conftest.er1
! 26177: ac_status=$?
! 26178: grep -v '^ *+' conftest.er1 >conftest.err
! 26179: rm -f conftest.er1
! 26180: cat conftest.err >&5
! 26181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26182: (exit $ac_status); } && {
! 26183: test -z "$ac_c_werror_flag" ||
! 26184: test ! -s conftest.err
! 26185: } && test -s conftest.$ac_objext; then
! 26186: ac_cv_sockaddr_storage=yes
! 26187: else
! 26188: echo "$as_me: failed program was:" >&5
! 26189: sed 's/^/| /' conftest.$ac_ext >&5
! 26190:
! 26191: ac_cv_sockaddr_storage=no
! 26192: fi
! 26193:
! 26194: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 26195:
! 26196: fi
! 26197: { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_storage" >&5
! 26198: echo "${ECHO_T}$ac_cv_sockaddr_storage" >&6; }
! 26199: if test "$ac_cv_sockaddr_storage" = "yes"; then
! 26200:
! 26201: cat >>confdefs.h <<\_ACEOF
! 26202: #define HAVE_SOCKADDR_STORAGE 1
! 26203: _ACEOF
! 26204:
! 26205: fi
! 26206: { echo "$as_me:$LINENO: checking for field sa_len in struct sockaddr" >&5
! 26207: echo $ECHO_N "checking for field sa_len in struct sockaddr... $ECHO_C" >&6; }
! 26208: if test "${ac_cv_sockaddr_sa_len+set}" = set; then
! 26209: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26210: else
! 26211:
! 26212: cat >conftest.$ac_ext <<_ACEOF
! 26213: /* confdefs.h. */
! 26214: _ACEOF
! 26215: cat confdefs.h >>conftest.$ac_ext
! 26216: cat >>conftest.$ac_ext <<_ACEOF
! 26217: /* end confdefs.h. */
! 26218: #include <sys/types.h>
! 26219: #include <sys/socket.h>
! 26220: int
! 26221: main ()
! 26222: {
! 26223: static struct sockaddr sa; int n = (int) sa.sa_len; return n;
! 26224: ;
! 26225: return 0;
! 26226: }
! 26227: _ACEOF
! 26228: rm -f conftest.$ac_objext
! 26229: if { (ac_try="$ac_compile"
! 26230: case "(($ac_try" in
! 26231: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26232: *) ac_try_echo=$ac_try;;
! 26233: esac
! 26234: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26235: (eval "$ac_compile") 2>conftest.er1
! 26236: ac_status=$?
! 26237: grep -v '^ *+' conftest.er1 >conftest.err
! 26238: rm -f conftest.er1
! 26239: cat conftest.err >&5
! 26240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26241: (exit $ac_status); } && {
! 26242: test -z "$ac_c_werror_flag" ||
! 26243: test ! -s conftest.err
! 26244: } && test -s conftest.$ac_objext; then
! 26245: ac_cv_sockaddr_sa_len=yes
! 26246: else
! 26247: echo "$as_me: failed program was:" >&5
! 26248: sed 's/^/| /' conftest.$ac_ext >&5
! 26249:
! 26250: ac_cv_sockaddr_sa_len=no
! 26251: fi
! 26252:
! 26253: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 26254:
! 26255: fi
! 26256: { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_sa_len" >&5
! 26257: echo "${ECHO_T}$ac_cv_sockaddr_sa_len" >&6; }
! 26258: if test "$ac_cv_sockaddr_sa_len" = "yes"; then
! 26259:
! 26260: cat >>confdefs.h <<\_ACEOF
! 26261: #define HAVE_SOCKADDR_SA_LEN 1
! 26262: _ACEOF
! 26263:
! 26264: fi
! 26265:
! 26266:
! 26267: { echo "$as_me:$LINENO: checking for IPv6 support" >&5
! 26268: echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6; }
! 26269: if test "${ac_cv_ipv6_support+set}" = set; then
! 26270: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26271: else
! 26272: cat >conftest.$ac_ext <<_ACEOF
! 26273: /* confdefs.h. */
! 26274: _ACEOF
! 26275: cat confdefs.h >>conftest.$ac_ext
! 26276: cat >>conftest.$ac_ext <<_ACEOF
! 26277: /* end confdefs.h. */
! 26278: #include <sys/types.h>
! 26279: #include <sys/socket.h>
! 26280: #include <netinet/in.h>
! 26281: int
! 26282: main ()
! 26283: {
! 26284: struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
! 26285: ;
! 26286: return 0;
! 26287: }
! 26288: _ACEOF
! 26289: rm -f conftest.$ac_objext conftest$ac_exeext
! 26290: if { (ac_try="$ac_link"
! 26291: case "(($ac_try" in
! 26292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26293: *) ac_try_echo=$ac_try;;
! 26294: esac
! 26295: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26296: (eval "$ac_link") 2>conftest.er1
! 26297: ac_status=$?
! 26298: grep -v '^ *+' conftest.er1 >conftest.err
! 26299: rm -f conftest.er1
! 26300: cat conftest.err >&5
! 26301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26302: (exit $ac_status); } && {
! 26303: test -z "$ac_c_werror_flag" ||
! 26304: test ! -s conftest.err
! 26305: } && test -s conftest$ac_exeext &&
! 26306: $as_test_x conftest$ac_exeext; then
! 26307: ac_cv_ipv6_support=yes
! 26308: else
! 26309: echo "$as_me: failed program was:" >&5
! 26310: sed 's/^/| /' conftest.$ac_ext >&5
! 26311:
! 26312: ac_cv_ipv6_support=no
! 26313: fi
! 26314:
! 26315: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26316: conftest$ac_exeext conftest.$ac_ext
! 26317: fi
! 26318: { echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
! 26319: echo "${ECHO_T}$ac_cv_ipv6_support" >&6; }
! 26320:
! 26321:
! 26322:
! 26323: for ac_func in vprintf
! 26324: do
! 26325: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 26326: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 26327: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 26328: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 26329: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26330: else
! 26331: cat >conftest.$ac_ext <<_ACEOF
! 26332: /* confdefs.h. */
! 26333: _ACEOF
! 26334: cat confdefs.h >>conftest.$ac_ext
! 26335: cat >>conftest.$ac_ext <<_ACEOF
! 26336: /* end confdefs.h. */
! 26337: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 26338: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 26339: #define $ac_func innocuous_$ac_func
! 26340:
! 26341: /* System header to define __stub macros and hopefully few prototypes,
! 26342: which can conflict with char $ac_func (); below.
! 26343: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 26344: <limits.h> exists even on freestanding compilers. */
! 26345:
! 26346: #ifdef __STDC__
! 26347: # include <limits.h>
! 26348: #else
! 26349: # include <assert.h>
! 26350: #endif
! 26351:
! 26352: #undef $ac_func
! 26353:
! 26354: /* Override any GCC internal prototype to avoid an error.
! 26355: Use char because int might match the return type of a GCC
! 26356: builtin and then its argument prototype would still apply. */
! 26357: #ifdef __cplusplus
! 26358: extern "C"
! 26359: #endif
! 26360: char $ac_func ();
! 26361: /* The GNU C library defines this for functions which it implements
! 26362: to always fail with ENOSYS. Some functions are actually named
! 26363: something starting with __ and the normal name is an alias. */
! 26364: #if defined __stub_$ac_func || defined __stub___$ac_func
! 26365: choke me
! 26366: #endif
! 26367:
! 26368: int
! 26369: main ()
! 26370: {
! 26371: return $ac_func ();
! 26372: ;
! 26373: return 0;
! 26374: }
! 26375: _ACEOF
! 26376: rm -f conftest.$ac_objext conftest$ac_exeext
! 26377: if { (ac_try="$ac_link"
! 26378: case "(($ac_try" in
! 26379: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26380: *) ac_try_echo=$ac_try;;
! 26381: esac
! 26382: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26383: (eval "$ac_link") 2>conftest.er1
! 26384: ac_status=$?
! 26385: grep -v '^ *+' conftest.er1 >conftest.err
! 26386: rm -f conftest.er1
! 26387: cat conftest.err >&5
! 26388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26389: (exit $ac_status); } && {
! 26390: test -z "$ac_c_werror_flag" ||
! 26391: test ! -s conftest.err
! 26392: } && test -s conftest$ac_exeext &&
! 26393: $as_test_x conftest$ac_exeext; then
! 26394: eval "$as_ac_var=yes"
! 26395: else
! 26396: echo "$as_me: failed program was:" >&5
! 26397: sed 's/^/| /' conftest.$ac_ext >&5
! 26398:
! 26399: eval "$as_ac_var=no"
! 26400: fi
! 26401:
! 26402: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26403: conftest$ac_exeext conftest.$ac_ext
! 26404: fi
! 26405: ac_res=`eval echo '${'$as_ac_var'}'`
! 26406: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 26407: echo "${ECHO_T}$ac_res" >&6; }
! 26408: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 26409: cat >>confdefs.h <<_ACEOF
! 26410: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 26411: _ACEOF
! 26412:
! 26413: { echo "$as_me:$LINENO: checking for _doprnt" >&5
! 26414: echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
! 26415: if test "${ac_cv_func__doprnt+set}" = set; then
! 26416: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26417: else
! 26418: cat >conftest.$ac_ext <<_ACEOF
! 26419: /* confdefs.h. */
! 26420: _ACEOF
! 26421: cat confdefs.h >>conftest.$ac_ext
! 26422: cat >>conftest.$ac_ext <<_ACEOF
! 26423: /* end confdefs.h. */
! 26424: /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
! 26425: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 26426: #define _doprnt innocuous__doprnt
! 26427:
! 26428: /* System header to define __stub macros and hopefully few prototypes,
! 26429: which can conflict with char _doprnt (); below.
! 26430: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 26431: <limits.h> exists even on freestanding compilers. */
! 26432:
! 26433: #ifdef __STDC__
! 26434: # include <limits.h>
! 26435: #else
! 26436: # include <assert.h>
! 26437: #endif
! 26438:
! 26439: #undef _doprnt
! 26440:
! 26441: /* Override any GCC internal prototype to avoid an error.
! 26442: Use char because int might match the return type of a GCC
! 26443: builtin and then its argument prototype would still apply. */
! 26444: #ifdef __cplusplus
! 26445: extern "C"
! 26446: #endif
! 26447: char _doprnt ();
! 26448: /* The GNU C library defines this for functions which it implements
! 26449: to always fail with ENOSYS. Some functions are actually named
! 26450: something starting with __ and the normal name is an alias. */
! 26451: #if defined __stub__doprnt || defined __stub____doprnt
! 26452: choke me
! 26453: #endif
! 26454:
! 26455: int
! 26456: main ()
! 26457: {
! 26458: return _doprnt ();
! 26459: ;
! 26460: return 0;
! 26461: }
! 26462: _ACEOF
! 26463: rm -f conftest.$ac_objext conftest$ac_exeext
! 26464: if { (ac_try="$ac_link"
! 26465: case "(($ac_try" in
! 26466: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26467: *) ac_try_echo=$ac_try;;
! 26468: esac
! 26469: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26470: (eval "$ac_link") 2>conftest.er1
! 26471: ac_status=$?
! 26472: grep -v '^ *+' conftest.er1 >conftest.err
! 26473: rm -f conftest.er1
! 26474: cat conftest.err >&5
! 26475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26476: (exit $ac_status); } && {
! 26477: test -z "$ac_c_werror_flag" ||
! 26478: test ! -s conftest.err
! 26479: } && test -s conftest$ac_exeext &&
! 26480: $as_test_x conftest$ac_exeext; then
! 26481: ac_cv_func__doprnt=yes
! 26482: else
! 26483: echo "$as_me: failed program was:" >&5
! 26484: sed 's/^/| /' conftest.$ac_ext >&5
! 26485:
! 26486: ac_cv_func__doprnt=no
! 26487: fi
! 26488:
! 26489: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26490: conftest$ac_exeext conftest.$ac_ext
! 26491: fi
! 26492: { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
! 26493: echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
! 26494: if test $ac_cv_func__doprnt = yes; then
! 26495:
! 26496: cat >>confdefs.h <<\_ACEOF
! 26497: #define HAVE_DOPRNT 1
! 26498: _ACEOF
! 26499:
! 26500: fi
! 26501:
! 26502: fi
! 26503: done
! 26504:
! 26505:
! 26506:
! 26507:
! 26508:
! 26509:
! 26510:
! 26511:
! 26512:
! 26513:
! 26514:
! 26515:
! 26516:
! 26517:
! 26518:
! 26519:
! 26520:
! 26521:
! 26522:
! 26523:
! 26524:
! 26525:
! 26526:
! 26527:
! 26528:
! 26529:
! 26530:
! 26531:
! 26532:
! 26533:
! 26534:
! 26535:
! 26536:
! 26537:
! 26538:
! 26539:
! 26540:
! 26541:
! 26542:
! 26543:
! 26544:
! 26545:
! 26546:
! 26547:
! 26548:
! 26549:
! 26550:
! 26551:
! 26552:
! 26553:
! 26554:
! 26555:
! 26556:
! 26557:
! 26558:
! 26559:
! 26560:
! 26561:
! 26562:
! 26563:
! 26564:
! 26565:
! 26566:
! 26567:
! 26568:
! 26569:
! 26570:
! 26571:
! 26572:
! 26573:
! 26574:
! 26575:
! 26576:
! 26577:
! 26578:
! 26579:
! 26580:
! 26581:
! 26582:
! 26583:
! 26584:
! 26585:
! 26586:
! 26587:
! 26588: for ac_func in alphasort \
! 26589: asctime_r \
! 26590: chroot \
! 26591: ctime_r \
! 26592: cuserid \
! 26593: crypt \
! 26594: flock \
! 26595: ftok \
! 26596: funopen \
! 26597: gai_strerror \
! 26598: gcvt \
! 26599: getloadavg \
! 26600: getlogin \
! 26601: getprotobyname \
! 26602: getprotobynumber \
! 26603: getservbyname \
! 26604: getservbyport \
! 26605: gethostname \
! 26606: getrusage \
! 26607: gettimeofday \
! 26608: gmtime_r \
! 26609: getpwnam_r \
! 26610: getgrnam_r \
! 26611: getpwuid_r \
! 26612: grantpt \
! 26613: inet_ntoa \
! 26614: inet_ntop \
! 26615: inet_pton \
! 26616: isascii \
! 26617: link \
! 26618: localtime_r \
! 26619: lockf \
! 26620: lchown \
! 26621: lrand48 \
! 26622: memcpy \
! 26623: memmove \
! 26624: mkstemp \
! 26625: mmap \
! 26626: nl_langinfo \
! 26627: perror \
! 26628: poll \
! 26629: ptsname \
! 26630: putenv \
! 26631: realpath \
! 26632: random \
! 26633: rand_r \
! 26634: scandir \
! 26635: setitimer \
! 26636: setlocale \
! 26637: localeconv \
! 26638: setenv \
! 26639: setpgid \
! 26640: setsockopt \
! 26641: setvbuf \
! 26642: shutdown \
! 26643: sin \
! 26644: snprintf \
! 26645: srand48 \
! 26646: srandom \
! 26647: statfs \
! 26648: statvfs \
! 26649: std_syslog \
! 26650: strcasecmp \
! 26651: strcoll \
! 26652: strdup \
! 26653: strerror \
! 26654: strftime \
! 26655: strnlen \
! 26656: strptime \
! 26657: strstr \
! 26658: strtok_r \
! 26659: symlink \
! 26660: tempnam \
! 26661: tzset \
! 26662: unlockpt \
! 26663: unsetenv \
! 26664: usleep \
! 26665: utime \
! 26666: vsnprintf \
! 26667: vasprintf \
! 26668: asprintf \
! 26669: nanosleep \
! 26670:
! 26671: do
! 26672: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 26673: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 26674: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 26675: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 26676: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26677: else
! 26678: cat >conftest.$ac_ext <<_ACEOF
! 26679: /* confdefs.h. */
! 26680: _ACEOF
! 26681: cat confdefs.h >>conftest.$ac_ext
! 26682: cat >>conftest.$ac_ext <<_ACEOF
! 26683: /* end confdefs.h. */
! 26684: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 26685: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 26686: #define $ac_func innocuous_$ac_func
! 26687:
! 26688: /* System header to define __stub macros and hopefully few prototypes,
! 26689: which can conflict with char $ac_func (); below.
! 26690: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 26691: <limits.h> exists even on freestanding compilers. */
! 26692:
! 26693: #ifdef __STDC__
! 26694: # include <limits.h>
! 26695: #else
! 26696: # include <assert.h>
! 26697: #endif
! 26698:
! 26699: #undef $ac_func
! 26700:
! 26701: /* Override any GCC internal prototype to avoid an error.
! 26702: Use char because int might match the return type of a GCC
! 26703: builtin and then its argument prototype would still apply. */
! 26704: #ifdef __cplusplus
! 26705: extern "C"
! 26706: #endif
! 26707: char $ac_func ();
! 26708: /* The GNU C library defines this for functions which it implements
! 26709: to always fail with ENOSYS. Some functions are actually named
! 26710: something starting with __ and the normal name is an alias. */
! 26711: #if defined __stub_$ac_func || defined __stub___$ac_func
! 26712: choke me
! 26713: #endif
! 26714:
! 26715: int
! 26716: main ()
! 26717: {
! 26718: return $ac_func ();
! 26719: ;
! 26720: return 0;
! 26721: }
! 26722: _ACEOF
! 26723: rm -f conftest.$ac_objext conftest$ac_exeext
! 26724: if { (ac_try="$ac_link"
! 26725: case "(($ac_try" in
! 26726: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26727: *) ac_try_echo=$ac_try;;
! 26728: esac
! 26729: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26730: (eval "$ac_link") 2>conftest.er1
! 26731: ac_status=$?
! 26732: grep -v '^ *+' conftest.er1 >conftest.err
! 26733: rm -f conftest.er1
! 26734: cat conftest.err >&5
! 26735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26736: (exit $ac_status); } && {
! 26737: test -z "$ac_c_werror_flag" ||
! 26738: test ! -s conftest.err
! 26739: } && test -s conftest$ac_exeext &&
! 26740: $as_test_x conftest$ac_exeext; then
! 26741: eval "$as_ac_var=yes"
! 26742: else
! 26743: echo "$as_me: failed program was:" >&5
! 26744: sed 's/^/| /' conftest.$ac_ext >&5
! 26745:
! 26746: eval "$as_ac_var=no"
! 26747: fi
! 26748:
! 26749: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26750: conftest$ac_exeext conftest.$ac_ext
! 26751: fi
! 26752: ac_res=`eval echo '${'$as_ac_var'}'`
! 26753: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 26754: echo "${ECHO_T}$ac_res" >&6; }
! 26755: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 26756: cat >>confdefs.h <<_ACEOF
! 26757: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 26758: _ACEOF
! 26759:
! 26760: fi
! 26761: done
! 26762:
! 26763:
! 26764:
! 26765:
! 26766: unset ac_cv_lib_rt_nanosleep
! 26767: unset ac_cv_lib_rt___nanosleep
! 26768: unset found
! 26769: { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
! 26770: echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
! 26771: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
! 26772: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26773: else
! 26774: ac_check_lib_save_LIBS=$LIBS
! 26775: LIBS="-lrt $LIBS"
! 26776: cat >conftest.$ac_ext <<_ACEOF
! 26777: /* confdefs.h. */
! 26778: _ACEOF
! 26779: cat confdefs.h >>conftest.$ac_ext
! 26780: cat >>conftest.$ac_ext <<_ACEOF
! 26781: /* end confdefs.h. */
! 26782:
! 26783: /* Override any GCC internal prototype to avoid an error.
! 26784: Use char because int might match the return type of a GCC
! 26785: builtin and then its argument prototype would still apply. */
! 26786: #ifdef __cplusplus
! 26787: extern "C"
! 26788: #endif
! 26789: char nanosleep ();
! 26790: int
! 26791: main ()
! 26792: {
! 26793: return nanosleep ();
! 26794: ;
! 26795: return 0;
! 26796: }
! 26797: _ACEOF
! 26798: rm -f conftest.$ac_objext conftest$ac_exeext
! 26799: if { (ac_try="$ac_link"
! 26800: case "(($ac_try" in
! 26801: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26802: *) ac_try_echo=$ac_try;;
! 26803: esac
! 26804: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26805: (eval "$ac_link") 2>conftest.er1
! 26806: ac_status=$?
! 26807: grep -v '^ *+' conftest.er1 >conftest.err
! 26808: rm -f conftest.er1
! 26809: cat conftest.err >&5
! 26810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26811: (exit $ac_status); } && {
! 26812: test -z "$ac_c_werror_flag" ||
! 26813: test ! -s conftest.err
! 26814: } && test -s conftest$ac_exeext &&
! 26815: $as_test_x conftest$ac_exeext; then
! 26816: ac_cv_lib_rt_nanosleep=yes
! 26817: else
! 26818: echo "$as_me: failed program was:" >&5
! 26819: sed 's/^/| /' conftest.$ac_ext >&5
! 26820:
! 26821: ac_cv_lib_rt_nanosleep=no
! 26822: fi
! 26823:
! 26824: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26825: conftest$ac_exeext conftest.$ac_ext
! 26826: LIBS=$ac_check_lib_save_LIBS
! 26827: fi
! 26828: { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
! 26829: echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
! 26830: if test $ac_cv_lib_rt_nanosleep = yes; then
! 26831: found=yes
! 26832: else
! 26833:
! 26834: { echo "$as_me:$LINENO: checking for __nanosleep in -lrt" >&5
! 26835: echo $ECHO_N "checking for __nanosleep in -lrt... $ECHO_C" >&6; }
! 26836: if test "${ac_cv_lib_rt___nanosleep+set}" = set; then
! 26837: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26838: else
! 26839: ac_check_lib_save_LIBS=$LIBS
! 26840: LIBS="-lrt $LIBS"
! 26841: cat >conftest.$ac_ext <<_ACEOF
! 26842: /* confdefs.h. */
! 26843: _ACEOF
! 26844: cat confdefs.h >>conftest.$ac_ext
! 26845: cat >>conftest.$ac_ext <<_ACEOF
! 26846: /* end confdefs.h. */
! 26847:
! 26848: /* Override any GCC internal prototype to avoid an error.
! 26849: Use char because int might match the return type of a GCC
! 26850: builtin and then its argument prototype would still apply. */
! 26851: #ifdef __cplusplus
! 26852: extern "C"
! 26853: #endif
! 26854: char __nanosleep ();
! 26855: int
! 26856: main ()
! 26857: {
! 26858: return __nanosleep ();
! 26859: ;
! 26860: return 0;
! 26861: }
! 26862: _ACEOF
! 26863: rm -f conftest.$ac_objext conftest$ac_exeext
! 26864: if { (ac_try="$ac_link"
! 26865: case "(($ac_try" in
! 26866: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26867: *) ac_try_echo=$ac_try;;
! 26868: esac
! 26869: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26870: (eval "$ac_link") 2>conftest.er1
! 26871: ac_status=$?
! 26872: grep -v '^ *+' conftest.er1 >conftest.err
! 26873: rm -f conftest.er1
! 26874: cat conftest.err >&5
! 26875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26876: (exit $ac_status); } && {
! 26877: test -z "$ac_c_werror_flag" ||
! 26878: test ! -s conftest.err
! 26879: } && test -s conftest$ac_exeext &&
! 26880: $as_test_x conftest$ac_exeext; then
! 26881: ac_cv_lib_rt___nanosleep=yes
! 26882: else
! 26883: echo "$as_me: failed program was:" >&5
! 26884: sed 's/^/| /' conftest.$ac_ext >&5
! 26885:
! 26886: ac_cv_lib_rt___nanosleep=no
! 26887: fi
! 26888:
! 26889: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26890: conftest$ac_exeext conftest.$ac_ext
! 26891: LIBS=$ac_check_lib_save_LIBS
! 26892: fi
! 26893: { echo "$as_me:$LINENO: result: $ac_cv_lib_rt___nanosleep" >&5
! 26894: echo "${ECHO_T}$ac_cv_lib_rt___nanosleep" >&6; }
! 26895: if test $ac_cv_lib_rt___nanosleep = yes; then
! 26896: found=yes
! 26897: else
! 26898: found=no
! 26899: fi
! 26900:
! 26901:
! 26902: fi
! 26903:
! 26904:
! 26905: if test "$found" = "yes"; then
! 26906: ac_libs=$LIBS
! 26907: LIBS="$LIBS -lrt"
! 26908: if test "$cross_compiling" = yes; then
! 26909: found=no
! 26910: else
! 26911: cat >conftest.$ac_ext <<_ACEOF
! 26912: /* confdefs.h. */
! 26913: _ACEOF
! 26914: cat confdefs.h >>conftest.$ac_ext
! 26915: cat >>conftest.$ac_ext <<_ACEOF
! 26916: /* end confdefs.h. */
! 26917: main() { return (0); }
! 26918: _ACEOF
! 26919: rm -f conftest$ac_exeext
! 26920: if { (ac_try="$ac_link"
! 26921: case "(($ac_try" in
! 26922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26923: *) ac_try_echo=$ac_try;;
! 26924: esac
! 26925: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26926: (eval "$ac_link") 2>&5
! 26927: ac_status=$?
! 26928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26929: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 26930: { (case "(($ac_try" in
! 26931: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26932: *) ac_try_echo=$ac_try;;
! 26933: esac
! 26934: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26935: (eval "$ac_try") 2>&5
! 26936: ac_status=$?
! 26937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26938: (exit $ac_status); }; }; then
! 26939: found=yes
! 26940: else
! 26941: echo "$as_me: program exited with status $ac_status" >&5
! 26942: echo "$as_me: failed program was:" >&5
! 26943: sed 's/^/| /' conftest.$ac_ext >&5
! 26944:
! 26945: ( exit $ac_status )
! 26946: found=no
! 26947: fi
! 26948: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 26949: fi
! 26950:
! 26951:
! 26952: LIBS=$ac_libs
! 26953: fi
! 26954:
! 26955: if test "$found" = "yes"; then
! 26956:
! 26957:
! 26958: case rt in
! 26959: c|c_r|pthread*) ;;
! 26960: *)
! 26961: LIBS="-lrt $LIBS"
! 26962: ;;
! 26963: esac
! 26964:
! 26965:
! 26966:
! 26967: cat >>confdefs.h <<\_ACEOF
! 26968: #define HAVE_NANOSLEEP 1
! 26969: _ACEOF
! 26970:
! 26971:
! 26972: cat >>confdefs.h <<\_ACEOF
! 26973: #define HAVE_LIBRT 1
! 26974: _ACEOF
! 26975:
! 26976: ac_cv_func_nanosleep=yes
! 26977: else
! 26978:
! 26979: :
! 26980:
! 26981: fi
! 26982:
! 26983:
! 26984:
! 26985: { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
! 26986: echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
! 26987: if test "${ac_cv_func_getaddrinfo+set}" = set; then
! 26988: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26989: else
! 26990: cat >conftest.$ac_ext <<_ACEOF
! 26991: /* confdefs.h. */
! 26992: _ACEOF
! 26993: cat confdefs.h >>conftest.$ac_ext
! 26994: cat >>conftest.$ac_ext <<_ACEOF
! 26995: /* end confdefs.h. */
! 26996: #include <netdb.h>
! 26997: int
! 26998: main ()
! 26999: {
! 27000: struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);
! 27001: ;
! 27002: return 0;
! 27003: }
! 27004: _ACEOF
! 27005: rm -f conftest.$ac_objext conftest$ac_exeext
! 27006: if { (ac_try="$ac_link"
! 27007: case "(($ac_try" in
! 27008: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27009: *) ac_try_echo=$ac_try;;
! 27010: esac
! 27011: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27012: (eval "$ac_link") 2>conftest.er1
! 27013: ac_status=$?
! 27014: grep -v '^ *+' conftest.er1 >conftest.err
! 27015: rm -f conftest.er1
! 27016: cat conftest.err >&5
! 27017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27018: (exit $ac_status); } && {
! 27019: test -z "$ac_c_werror_flag" ||
! 27020: test ! -s conftest.err
! 27021: } && test -s conftest$ac_exeext &&
! 27022: $as_test_x conftest$ac_exeext; then
! 27023: if test "$cross_compiling" = yes; then
! 27024: ac_cv_func_getaddrinfo=no
! 27025: else
! 27026: cat >conftest.$ac_ext <<_ACEOF
! 27027: /* confdefs.h. */
! 27028: _ACEOF
! 27029: cat confdefs.h >>conftest.$ac_ext
! 27030: cat >>conftest.$ac_ext <<_ACEOF
! 27031: /* end confdefs.h. */
! 27032:
! 27033: #include <netdb.h>
! 27034: #include <sys/types.h>
! 27035: #ifndef AF_INET
! 27036: # include <sys/socket.h>
! 27037: #endif
! 27038: int main(void) {
! 27039: struct addrinfo *ai, *pai, hints;
! 27040:
! 27041: memset(&hints, 0, sizeof(hints));
! 27042: hints.ai_flags = AI_NUMERICHOST;
! 27043:
! 27044: if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
! 27045: exit(1);
! 27046: }
! 27047:
! 27048: if (ai == 0) {
! 27049: exit(1);
! 27050: }
! 27051:
! 27052: pai = ai;
! 27053:
! 27054: while (pai) {
! 27055: if (pai->ai_family != AF_INET) {
! 27056: /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
! 27057: exit(1);
! 27058: }
! 27059: if (pai->ai_addr->sa_family != AF_INET) {
! 27060: /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
! 27061: exit(1);
! 27062: }
! 27063: pai = pai->ai_next;
! 27064: }
! 27065: freeaddrinfo(ai);
! 27066: exit(0);
! 27067: }
! 27068:
! 27069: _ACEOF
! 27070: rm -f conftest$ac_exeext
! 27071: if { (ac_try="$ac_link"
! 27072: case "(($ac_try" in
! 27073: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27074: *) ac_try_echo=$ac_try;;
! 27075: esac
! 27076: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27077: (eval "$ac_link") 2>&5
! 27078: ac_status=$?
! 27079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27080: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 27081: { (case "(($ac_try" in
! 27082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27083: *) ac_try_echo=$ac_try;;
! 27084: esac
! 27085: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27086: (eval "$ac_try") 2>&5
! 27087: ac_status=$?
! 27088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27089: (exit $ac_status); }; }; then
! 27090: ac_cv_func_getaddrinfo=yes
! 27091: else
! 27092: echo "$as_me: program exited with status $ac_status" >&5
! 27093: echo "$as_me: failed program was:" >&5
! 27094: sed 's/^/| /' conftest.$ac_ext >&5
! 27095:
! 27096: ( exit $ac_status )
! 27097: ac_cv_func_getaddrinfo=no
! 27098: fi
! 27099: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 27100: fi
! 27101:
! 27102:
! 27103: else
! 27104: echo "$as_me: failed program was:" >&5
! 27105: sed 's/^/| /' conftest.$ac_ext >&5
! 27106:
! 27107: ac_cv_func_getaddrinfo=no
! 27108: fi
! 27109:
! 27110: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 27111: conftest$ac_exeext conftest.$ac_ext
! 27112: fi
! 27113: { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
! 27114: echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
! 27115: if test "$ac_cv_func_getaddrinfo" = yes; then
! 27116:
! 27117: cat >>confdefs.h <<\_ACEOF
! 27118: #define HAVE_GETADDRINFO 1
! 27119: _ACEOF
! 27120:
! 27121: fi
! 27122:
! 27123: { echo "$as_me:$LINENO: checking for __sync_fetch_and_add" >&5
! 27124: echo $ECHO_N "checking for __sync_fetch_and_add... $ECHO_C" >&6; }
! 27125: if test "${ac_cv_func_sync_fetch_and_add+set}" = set; then
! 27126: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27127: else
! 27128: cat >conftest.$ac_ext <<_ACEOF
! 27129: /* confdefs.h. */
! 27130: _ACEOF
! 27131: cat confdefs.h >>conftest.$ac_ext
! 27132: cat >>conftest.$ac_ext <<_ACEOF
! 27133: /* end confdefs.h. */
! 27134:
! 27135: int
! 27136: main ()
! 27137: {
! 27138: int x;__sync_fetch_and_add(&x,1);
! 27139: ;
! 27140: return 0;
! 27141: }
! 27142: _ACEOF
! 27143: rm -f conftest.$ac_objext conftest$ac_exeext
! 27144: if { (ac_try="$ac_link"
! 27145: case "(($ac_try" in
! 27146: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27147: *) ac_try_echo=$ac_try;;
! 27148: esac
! 27149: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27150: (eval "$ac_link") 2>conftest.er1
! 27151: ac_status=$?
! 27152: grep -v '^ *+' conftest.er1 >conftest.err
! 27153: rm -f conftest.er1
! 27154: cat conftest.err >&5
! 27155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27156: (exit $ac_status); } && {
! 27157: test -z "$ac_c_werror_flag" ||
! 27158: test ! -s conftest.err
! 27159: } && test -s conftest$ac_exeext &&
! 27160: $as_test_x conftest$ac_exeext; then
! 27161: ac_cv_func_sync_fetch_and_add=yes
! 27162: else
! 27163: echo "$as_me: failed program was:" >&5
! 27164: sed 's/^/| /' conftest.$ac_ext >&5
! 27165:
! 27166: ac_cv_func_sync_fetch_and_add=no
! 27167: fi
! 27168:
! 27169: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 27170: conftest$ac_exeext conftest.$ac_ext
! 27171: fi
! 27172: { echo "$as_me:$LINENO: result: $ac_cv_func_sync_fetch_and_add" >&5
! 27173: echo "${ECHO_T}$ac_cv_func_sync_fetch_and_add" >&6; }
! 27174: if test "$ac_cv_func_sync_fetch_and_add" = yes; then
! 27175:
! 27176: cat >>confdefs.h <<\_ACEOF
! 27177: #define HAVE_SYNC_FETCH_AND_ADD 1
! 27178: _ACEOF
! 27179:
! 27180: fi
! 27181:
! 27182:
! 27183:
! 27184:
! 27185: for ac_func in strlcat strlcpy getopt
! 27186: do
! 27187: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 27188: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 27189: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 27190: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 27191: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27192: else
! 27193: cat >conftest.$ac_ext <<_ACEOF
! 27194: /* confdefs.h. */
! 27195: _ACEOF
! 27196: cat confdefs.h >>conftest.$ac_ext
! 27197: cat >>conftest.$ac_ext <<_ACEOF
! 27198: /* end confdefs.h. */
! 27199: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 27200: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 27201: #define $ac_func innocuous_$ac_func
! 27202:
! 27203: /* System header to define __stub macros and hopefully few prototypes,
! 27204: which can conflict with char $ac_func (); below.
! 27205: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 27206: <limits.h> exists even on freestanding compilers. */
! 27207:
! 27208: #ifdef __STDC__
! 27209: # include <limits.h>
! 27210: #else
! 27211: # include <assert.h>
! 27212: #endif
! 27213:
! 27214: #undef $ac_func
! 27215:
! 27216: /* Override any GCC internal prototype to avoid an error.
! 27217: Use char because int might match the return type of a GCC
! 27218: builtin and then its argument prototype would still apply. */
! 27219: #ifdef __cplusplus
! 27220: extern "C"
! 27221: #endif
! 27222: char $ac_func ();
! 27223: /* The GNU C library defines this for functions which it implements
! 27224: to always fail with ENOSYS. Some functions are actually named
! 27225: something starting with __ and the normal name is an alias. */
! 27226: #if defined __stub_$ac_func || defined __stub___$ac_func
! 27227: choke me
! 27228: #endif
! 27229:
! 27230: int
! 27231: main ()
! 27232: {
! 27233: return $ac_func ();
! 27234: ;
! 27235: return 0;
! 27236: }
! 27237: _ACEOF
! 27238: rm -f conftest.$ac_objext conftest$ac_exeext
! 27239: if { (ac_try="$ac_link"
! 27240: case "(($ac_try" in
! 27241: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27242: *) ac_try_echo=$ac_try;;
! 27243: esac
! 27244: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27245: (eval "$ac_link") 2>conftest.er1
! 27246: ac_status=$?
! 27247: grep -v '^ *+' conftest.er1 >conftest.err
! 27248: rm -f conftest.er1
! 27249: cat conftest.err >&5
! 27250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27251: (exit $ac_status); } && {
! 27252: test -z "$ac_c_werror_flag" ||
! 27253: test ! -s conftest.err
! 27254: } && test -s conftest$ac_exeext &&
! 27255: $as_test_x conftest$ac_exeext; then
! 27256: eval "$as_ac_var=yes"
! 27257: else
! 27258: echo "$as_me: failed program was:" >&5
! 27259: sed 's/^/| /' conftest.$ac_ext >&5
! 27260:
! 27261: eval "$as_ac_var=no"
! 27262: fi
! 27263:
! 27264: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 27265: conftest$ac_exeext conftest.$ac_ext
! 27266: fi
! 27267: ac_res=`eval echo '${'$as_ac_var'}'`
! 27268: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 27269: echo "${ECHO_T}$ac_res" >&6; }
! 27270: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 27271: cat >>confdefs.h <<_ACEOF
! 27272: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 27273: _ACEOF
! 27274:
! 27275: else
! 27276: case " $LIBOBJS " in
! 27277: *" $ac_func.$ac_objext "* ) ;;
! 27278: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
! 27279: ;;
! 27280: esac
! 27281:
! 27282: fi
! 27283: done
! 27284:
! 27285:
! 27286:
! 27287:
! 27288:
! 27289:
! 27290: for ac_header in $ac_header_list
! 27291: do
! 27292: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 27293: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 27294: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 27295: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 27296: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 27297: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27298: fi
! 27299: ac_res=`eval echo '${'$as_ac_Header'}'`
! 27300: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 27301: echo "${ECHO_T}$ac_res" >&6; }
! 27302: else
! 27303: # Is the header compilable?
! 27304: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 27305: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 27306: cat >conftest.$ac_ext <<_ACEOF
! 27307: /* confdefs.h. */
! 27308: _ACEOF
! 27309: cat confdefs.h >>conftest.$ac_ext
! 27310: cat >>conftest.$ac_ext <<_ACEOF
! 27311: /* end confdefs.h. */
! 27312: $ac_includes_default
! 27313: #include <$ac_header>
! 27314: _ACEOF
! 27315: rm -f conftest.$ac_objext
! 27316: if { (ac_try="$ac_compile"
! 27317: case "(($ac_try" in
! 27318: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27319: *) ac_try_echo=$ac_try;;
! 27320: esac
! 27321: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27322: (eval "$ac_compile") 2>conftest.er1
! 27323: ac_status=$?
! 27324: grep -v '^ *+' conftest.er1 >conftest.err
! 27325: rm -f conftest.er1
! 27326: cat conftest.err >&5
! 27327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27328: (exit $ac_status); } && {
! 27329: test -z "$ac_c_werror_flag" ||
! 27330: test ! -s conftest.err
! 27331: } && test -s conftest.$ac_objext; then
! 27332: ac_header_compiler=yes
! 27333: else
! 27334: echo "$as_me: failed program was:" >&5
! 27335: sed 's/^/| /' conftest.$ac_ext >&5
! 27336:
! 27337: ac_header_compiler=no
! 27338: fi
! 27339:
! 27340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 27341: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 27342: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 27343:
! 27344: # Is the header present?
! 27345: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 27346: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 27347: cat >conftest.$ac_ext <<_ACEOF
! 27348: /* confdefs.h. */
! 27349: _ACEOF
! 27350: cat confdefs.h >>conftest.$ac_ext
! 27351: cat >>conftest.$ac_ext <<_ACEOF
! 27352: /* end confdefs.h. */
! 27353: #include <$ac_header>
! 27354: _ACEOF
! 27355: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 27356: case "(($ac_try" in
! 27357: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27358: *) ac_try_echo=$ac_try;;
! 27359: esac
! 27360: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27361: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 27362: ac_status=$?
! 27363: grep -v '^ *+' conftest.er1 >conftest.err
! 27364: rm -f conftest.er1
! 27365: cat conftest.err >&5
! 27366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27367: (exit $ac_status); } >/dev/null && {
! 27368: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 27369: test ! -s conftest.err
! 27370: }; then
! 27371: ac_header_preproc=yes
! 27372: else
! 27373: echo "$as_me: failed program was:" >&5
! 27374: sed 's/^/| /' conftest.$ac_ext >&5
! 27375:
! 27376: ac_header_preproc=no
! 27377: fi
! 27378:
! 27379: rm -f conftest.err conftest.$ac_ext
! 27380: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 27381: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 27382:
! 27383: # So? What about this header?
! 27384: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 27385: yes:no: )
! 27386: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 27387: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 27388: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 27389: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 27390: ac_header_preproc=yes
! 27391: ;;
! 27392: no:yes:* )
! 27393: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 27394: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 27395: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 27396: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 27397: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 27398: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 27399: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 27400: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 27401: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 27402: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 27403: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 27404: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 27405:
! 27406: ;;
! 27407: esac
! 27408: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 27409: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 27410: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 27411: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27412: else
! 27413: eval "$as_ac_Header=\$ac_header_preproc"
! 27414: fi
! 27415: ac_res=`eval echo '${'$as_ac_Header'}'`
! 27416: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 27417: echo "${ECHO_T}$ac_res" >&6; }
! 27418:
! 27419: fi
! 27420: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 27421: cat >>confdefs.h <<_ACEOF
! 27422: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 27423: _ACEOF
! 27424:
! 27425: fi
! 27426:
! 27427: done
! 27428:
! 27429:
! 27430:
! 27431:
! 27432:
! 27433:
! 27434:
! 27435:
! 27436:
! 27437: { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
! 27438: echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
! 27439: if test "${ac_cv_func_utime_null+set}" = set; then
! 27440: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27441: else
! 27442: rm -f conftest.data; >conftest.data
! 27443: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
! 27444: if test "$cross_compiling" = yes; then
! 27445: ac_cv_func_utime_null=no
! 27446: else
! 27447: cat >conftest.$ac_ext <<_ACEOF
! 27448: /* confdefs.h. */
! 27449: _ACEOF
! 27450: cat confdefs.h >>conftest.$ac_ext
! 27451: cat >>conftest.$ac_ext <<_ACEOF
! 27452: /* end confdefs.h. */
! 27453: $ac_includes_default
! 27454: #ifdef HAVE_UTIME_H
! 27455: # include <utime.h>
! 27456: #endif
! 27457: int
! 27458: main ()
! 27459: {
! 27460: struct stat s, t;
! 27461: return ! (stat ("conftest.data", &s) == 0
! 27462: && utime ("conftest.data", 0) == 0
! 27463: && stat ("conftest.data", &t) == 0
! 27464: && t.st_mtime >= s.st_mtime
! 27465: && t.st_mtime - s.st_mtime < 120);
! 27466: ;
! 27467: return 0;
! 27468: }
! 27469: _ACEOF
! 27470: rm -f conftest$ac_exeext
! 27471: if { (ac_try="$ac_link"
! 27472: case "(($ac_try" in
! 27473: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27474: *) ac_try_echo=$ac_try;;
! 27475: esac
! 27476: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27477: (eval "$ac_link") 2>&5
! 27478: ac_status=$?
! 27479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27480: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 27481: { (case "(($ac_try" in
! 27482: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27483: *) ac_try_echo=$ac_try;;
! 27484: esac
! 27485: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27486: (eval "$ac_try") 2>&5
! 27487: ac_status=$?
! 27488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27489: (exit $ac_status); }; }; then
! 27490: ac_cv_func_utime_null=yes
! 27491: else
! 27492: echo "$as_me: program exited with status $ac_status" >&5
! 27493: echo "$as_me: failed program was:" >&5
! 27494: sed 's/^/| /' conftest.$ac_ext >&5
! 27495:
! 27496: ( exit $ac_status )
! 27497: ac_cv_func_utime_null=no
! 27498: fi
! 27499: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 27500: fi
! 27501:
! 27502:
! 27503: fi
! 27504: { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
! 27505: echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
! 27506: if test $ac_cv_func_utime_null = yes; then
! 27507:
! 27508: cat >>confdefs.h <<\_ACEOF
! 27509: #define HAVE_UTIME_NULL 1
! 27510: _ACEOF
! 27511:
! 27512: fi
! 27513: rm -f conftest.data
! 27514:
! 27515: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
! 27516: # for constant arguments. Useless!
! 27517: { echo "$as_me:$LINENO: checking for working alloca.h" >&5
! 27518: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
! 27519: if test "${ac_cv_working_alloca_h+set}" = set; then
! 27520: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27521: else
! 27522: cat >conftest.$ac_ext <<_ACEOF
! 27523: /* confdefs.h. */
! 27524: _ACEOF
! 27525: cat confdefs.h >>conftest.$ac_ext
! 27526: cat >>conftest.$ac_ext <<_ACEOF
! 27527: /* end confdefs.h. */
! 27528: #include <alloca.h>
! 27529: int
! 27530: main ()
! 27531: {
! 27532: char *p = (char *) alloca (2 * sizeof (int));
! 27533: if (p) return 0;
! 27534: ;
! 27535: return 0;
! 27536: }
! 27537: _ACEOF
! 27538: rm -f conftest.$ac_objext conftest$ac_exeext
! 27539: if { (ac_try="$ac_link"
! 27540: case "(($ac_try" in
! 27541: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27542: *) ac_try_echo=$ac_try;;
! 27543: esac
! 27544: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27545: (eval "$ac_link") 2>conftest.er1
! 27546: ac_status=$?
! 27547: grep -v '^ *+' conftest.er1 >conftest.err
! 27548: rm -f conftest.er1
! 27549: cat conftest.err >&5
! 27550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27551: (exit $ac_status); } && {
! 27552: test -z "$ac_c_werror_flag" ||
! 27553: test ! -s conftest.err
! 27554: } && test -s conftest$ac_exeext &&
! 27555: $as_test_x conftest$ac_exeext; then
! 27556: ac_cv_working_alloca_h=yes
! 27557: else
! 27558: echo "$as_me: failed program was:" >&5
! 27559: sed 's/^/| /' conftest.$ac_ext >&5
! 27560:
! 27561: ac_cv_working_alloca_h=no
! 27562: fi
! 27563:
! 27564: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 27565: conftest$ac_exeext conftest.$ac_ext
! 27566: fi
! 27567: { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
! 27568: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
! 27569: if test $ac_cv_working_alloca_h = yes; then
! 27570:
! 27571: cat >>confdefs.h <<\_ACEOF
! 27572: #define HAVE_ALLOCA_H 1
! 27573: _ACEOF
! 27574:
! 27575: fi
! 27576:
! 27577: { echo "$as_me:$LINENO: checking for alloca" >&5
! 27578: echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
! 27579: if test "${ac_cv_func_alloca_works+set}" = set; then
! 27580: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27581: else
! 27582: cat >conftest.$ac_ext <<_ACEOF
! 27583: /* confdefs.h. */
! 27584: _ACEOF
! 27585: cat confdefs.h >>conftest.$ac_ext
! 27586: cat >>conftest.$ac_ext <<_ACEOF
! 27587: /* end confdefs.h. */
! 27588: #ifdef __GNUC__
! 27589: # define alloca __builtin_alloca
! 27590: #else
! 27591: # ifdef _MSC_VER
! 27592: # include <malloc.h>
! 27593: # define alloca _alloca
! 27594: # else
! 27595: # ifdef HAVE_ALLOCA_H
! 27596: # include <alloca.h>
! 27597: # else
! 27598: # ifdef _AIX
! 27599: #pragma alloca
! 27600: # else
! 27601: # ifndef alloca /* predefined by HP cc +Olibcalls */
! 27602: char *alloca ();
! 27603: # endif
! 27604: # endif
! 27605: # endif
! 27606: # endif
! 27607: #endif
! 27608:
! 27609: int
! 27610: main ()
! 27611: {
! 27612: char *p = (char *) alloca (1);
! 27613: if (p) return 0;
! 27614: ;
! 27615: return 0;
! 27616: }
! 27617: _ACEOF
! 27618: rm -f conftest.$ac_objext conftest$ac_exeext
! 27619: if { (ac_try="$ac_link"
! 27620: case "(($ac_try" in
! 27621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27622: *) ac_try_echo=$ac_try;;
! 27623: esac
! 27624: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27625: (eval "$ac_link") 2>conftest.er1
! 27626: ac_status=$?
! 27627: grep -v '^ *+' conftest.er1 >conftest.err
! 27628: rm -f conftest.er1
! 27629: cat conftest.err >&5
! 27630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27631: (exit $ac_status); } && {
! 27632: test -z "$ac_c_werror_flag" ||
! 27633: test ! -s conftest.err
! 27634: } && test -s conftest$ac_exeext &&
! 27635: $as_test_x conftest$ac_exeext; then
! 27636: ac_cv_func_alloca_works=yes
! 27637: else
! 27638: echo "$as_me: failed program was:" >&5
! 27639: sed 's/^/| /' conftest.$ac_ext >&5
! 27640:
! 27641: ac_cv_func_alloca_works=no
! 27642: fi
! 27643:
! 27644: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 27645: conftest$ac_exeext conftest.$ac_ext
! 27646: fi
! 27647: { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
! 27648: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
! 27649:
! 27650: if test $ac_cv_func_alloca_works = yes; then
! 27651:
! 27652: cat >>confdefs.h <<\_ACEOF
! 27653: #define HAVE_ALLOCA 1
! 27654: _ACEOF
! 27655:
! 27656: else
! 27657: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
! 27658: # that cause trouble. Some versions do not even contain alloca or
! 27659: # contain a buggy version. If you still want to use their alloca,
! 27660: # use ar to extract alloca.o from them instead of compiling alloca.c.
! 27661:
! 27662: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
! 27663:
! 27664: cat >>confdefs.h <<\_ACEOF
! 27665: #define C_ALLOCA 1
! 27666: _ACEOF
! 27667:
! 27668:
! 27669: { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
! 27670: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
! 27671: if test "${ac_cv_os_cray+set}" = set; then
! 27672: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27673: else
! 27674: cat >conftest.$ac_ext <<_ACEOF
! 27675: /* confdefs.h. */
! 27676: _ACEOF
! 27677: cat confdefs.h >>conftest.$ac_ext
! 27678: cat >>conftest.$ac_ext <<_ACEOF
! 27679: /* end confdefs.h. */
! 27680: #if defined CRAY && ! defined CRAY2
! 27681: webecray
! 27682: #else
! 27683: wenotbecray
! 27684: #endif
! 27685:
! 27686: _ACEOF
! 27687: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 27688: $EGREP "webecray" >/dev/null 2>&1; then
! 27689: ac_cv_os_cray=yes
! 27690: else
! 27691: ac_cv_os_cray=no
! 27692: fi
! 27693: rm -f -r conftest*
! 27694:
! 27695: fi
! 27696: { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
! 27697: echo "${ECHO_T}$ac_cv_os_cray" >&6; }
! 27698: if test $ac_cv_os_cray = yes; then
! 27699: for ac_func in _getb67 GETB67 getb67; do
! 27700: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 27701: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 27702: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 27703: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 27704: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27705: else
! 27706: cat >conftest.$ac_ext <<_ACEOF
! 27707: /* confdefs.h. */
! 27708: _ACEOF
! 27709: cat confdefs.h >>conftest.$ac_ext
! 27710: cat >>conftest.$ac_ext <<_ACEOF
! 27711: /* end confdefs.h. */
! 27712: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 27713: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 27714: #define $ac_func innocuous_$ac_func
! 27715:
! 27716: /* System header to define __stub macros and hopefully few prototypes,
! 27717: which can conflict with char $ac_func (); below.
! 27718: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 27719: <limits.h> exists even on freestanding compilers. */
! 27720:
! 27721: #ifdef __STDC__
! 27722: # include <limits.h>
! 27723: #else
! 27724: # include <assert.h>
! 27725: #endif
! 27726:
! 27727: #undef $ac_func
! 27728:
! 27729: /* Override any GCC internal prototype to avoid an error.
! 27730: Use char because int might match the return type of a GCC
! 27731: builtin and then its argument prototype would still apply. */
! 27732: #ifdef __cplusplus
! 27733: extern "C"
! 27734: #endif
! 27735: char $ac_func ();
! 27736: /* The GNU C library defines this for functions which it implements
! 27737: to always fail with ENOSYS. Some functions are actually named
! 27738: something starting with __ and the normal name is an alias. */
! 27739: #if defined __stub_$ac_func || defined __stub___$ac_func
! 27740: choke me
! 27741: #endif
! 27742:
! 27743: int
! 27744: main ()
! 27745: {
! 27746: return $ac_func ();
! 27747: ;
! 27748: return 0;
! 27749: }
! 27750: _ACEOF
! 27751: rm -f conftest.$ac_objext conftest$ac_exeext
! 27752: if { (ac_try="$ac_link"
! 27753: case "(($ac_try" in
! 27754: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27755: *) ac_try_echo=$ac_try;;
! 27756: esac
! 27757: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27758: (eval "$ac_link") 2>conftest.er1
! 27759: ac_status=$?
! 27760: grep -v '^ *+' conftest.er1 >conftest.err
! 27761: rm -f conftest.er1
! 27762: cat conftest.err >&5
! 27763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27764: (exit $ac_status); } && {
! 27765: test -z "$ac_c_werror_flag" ||
! 27766: test ! -s conftest.err
! 27767: } && test -s conftest$ac_exeext &&
! 27768: $as_test_x conftest$ac_exeext; then
! 27769: eval "$as_ac_var=yes"
! 27770: else
! 27771: echo "$as_me: failed program was:" >&5
! 27772: sed 's/^/| /' conftest.$ac_ext >&5
! 27773:
! 27774: eval "$as_ac_var=no"
! 27775: fi
! 27776:
! 27777: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 27778: conftest$ac_exeext conftest.$ac_ext
! 27779: fi
! 27780: ac_res=`eval echo '${'$as_ac_var'}'`
! 27781: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 27782: echo "${ECHO_T}$ac_res" >&6; }
! 27783: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 27784:
! 27785: cat >>confdefs.h <<_ACEOF
! 27786: #define CRAY_STACKSEG_END $ac_func
! 27787: _ACEOF
! 27788:
! 27789: break
! 27790: fi
! 27791:
! 27792: done
! 27793: fi
! 27794:
! 27795: { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
! 27796: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
! 27797: if test "${ac_cv_c_stack_direction+set}" = set; then
! 27798: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27799: else
! 27800: if test "$cross_compiling" = yes; then
! 27801: ac_cv_c_stack_direction=0
! 27802: else
! 27803: cat >conftest.$ac_ext <<_ACEOF
! 27804: /* confdefs.h. */
! 27805: _ACEOF
! 27806: cat confdefs.h >>conftest.$ac_ext
! 27807: cat >>conftest.$ac_ext <<_ACEOF
! 27808: /* end confdefs.h. */
! 27809: $ac_includes_default
! 27810: int
! 27811: find_stack_direction ()
! 27812: {
! 27813: static char *addr = 0;
! 27814: auto char dummy;
! 27815: if (addr == 0)
! 27816: {
! 27817: addr = &dummy;
! 27818: return find_stack_direction ();
! 27819: }
! 27820: else
! 27821: return (&dummy > addr) ? 1 : -1;
! 27822: }
! 27823:
! 27824: int
! 27825: main ()
! 27826: {
! 27827: return find_stack_direction () < 0;
! 27828: }
! 27829: _ACEOF
! 27830: rm -f conftest$ac_exeext
! 27831: if { (ac_try="$ac_link"
! 27832: case "(($ac_try" in
! 27833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27834: *) ac_try_echo=$ac_try;;
! 27835: esac
! 27836: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27837: (eval "$ac_link") 2>&5
! 27838: ac_status=$?
! 27839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27840: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 27841: { (case "(($ac_try" in
! 27842: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27843: *) ac_try_echo=$ac_try;;
! 27844: esac
! 27845: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27846: (eval "$ac_try") 2>&5
! 27847: ac_status=$?
! 27848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27849: (exit $ac_status); }; }; then
! 27850: ac_cv_c_stack_direction=1
! 27851: else
! 27852: echo "$as_me: program exited with status $ac_status" >&5
! 27853: echo "$as_me: failed program was:" >&5
! 27854: sed 's/^/| /' conftest.$ac_ext >&5
! 27855:
! 27856: ( exit $ac_status )
! 27857: ac_cv_c_stack_direction=-1
! 27858: fi
! 27859: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 27860: fi
! 27861:
! 27862:
! 27863: fi
! 27864: { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
! 27865: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
! 27866:
! 27867: cat >>confdefs.h <<_ACEOF
! 27868: #define STACK_DIRECTION $ac_cv_c_stack_direction
! 27869: _ACEOF
! 27870:
! 27871:
! 27872: fi
! 27873:
! 27874:
! 27875: { echo "$as_me:$LINENO: checking for declared timezone" >&5
! 27876: echo $ECHO_N "checking for declared timezone... $ECHO_C" >&6; }
! 27877: if test "${ac_cv_declared_timezone+set}" = set; then
! 27878: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27879: else
! 27880:
! 27881: cat >conftest.$ac_ext <<_ACEOF
! 27882: /* confdefs.h. */
! 27883: _ACEOF
! 27884: cat confdefs.h >>conftest.$ac_ext
! 27885: cat >>conftest.$ac_ext <<_ACEOF
! 27886: /* end confdefs.h. */
! 27887:
! 27888: #include <sys/types.h>
! 27889: #include <time.h>
! 27890: #ifdef HAVE_SYS_TIME_H
! 27891: #include <sys/time.h>
! 27892: #endif
! 27893:
! 27894: int
! 27895: main ()
! 27896: {
! 27897:
! 27898: time_t foo = (time_t) timezone;
! 27899:
! 27900: ;
! 27901: return 0;
! 27902: }
! 27903: _ACEOF
! 27904: rm -f conftest.$ac_objext
! 27905: if { (ac_try="$ac_compile"
! 27906: case "(($ac_try" in
! 27907: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27908: *) ac_try_echo=$ac_try;;
! 27909: esac
! 27910: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27911: (eval "$ac_compile") 2>conftest.er1
! 27912: ac_status=$?
! 27913: grep -v '^ *+' conftest.er1 >conftest.err
! 27914: rm -f conftest.er1
! 27915: cat conftest.err >&5
! 27916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27917: (exit $ac_status); } && {
! 27918: test -z "$ac_c_werror_flag" ||
! 27919: test ! -s conftest.err
! 27920: } && test -s conftest.$ac_objext; then
! 27921:
! 27922: ac_cv_declared_timezone=yes
! 27923:
! 27924: else
! 27925: echo "$as_me: failed program was:" >&5
! 27926: sed 's/^/| /' conftest.$ac_ext >&5
! 27927:
! 27928:
! 27929: ac_cv_declared_timezone=no
! 27930:
! 27931: fi
! 27932:
! 27933: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 27934: fi
! 27935: { echo "$as_me:$LINENO: result: $ac_cv_declared_timezone" >&5
! 27936: echo "${ECHO_T}$ac_cv_declared_timezone" >&6; }
! 27937: if test "$ac_cv_declared_timezone" = "yes"; then
! 27938:
! 27939: cat >>confdefs.h <<\_ACEOF
! 27940: #define HAVE_DECLARED_TIMEZONE 1
! 27941: _ACEOF
! 27942:
! 27943: fi
! 27944:
! 27945:
! 27946: { echo "$as_me:$LINENO: checking for type of reentrant time-related functions" >&5
! 27947: echo $ECHO_N "checking for type of reentrant time-related functions... $ECHO_C" >&6; }
! 27948: if test "${ac_cv_time_r_type+set}" = set; then
! 27949: echo $ECHO_N "(cached) $ECHO_C" >&6
! 27950: else
! 27951:
! 27952: if test "$cross_compiling" = yes; then
! 27953:
! 27954: ac_cv_time_r_type=POSIX
! 27955:
! 27956: else
! 27957: cat >conftest.$ac_ext <<_ACEOF
! 27958: /* confdefs.h. */
! 27959: _ACEOF
! 27960: cat confdefs.h >>conftest.$ac_ext
! 27961: cat >>conftest.$ac_ext <<_ACEOF
! 27962: /* end confdefs.h. */
! 27963:
! 27964: #include <time.h>
! 27965:
! 27966: main() {
! 27967: char buf[27];
! 27968: struct tm t;
! 27969: time_t old = 0;
! 27970: int r, s;
! 27971:
! 27972: s = gmtime_r(&old, &t);
! 27973: r = (int) asctime_r(&t, buf, 26);
! 27974: if (r == s && s == 0) return (0);
! 27975: return (1);
! 27976: }
! 27977:
! 27978: _ACEOF
! 27979: rm -f conftest$ac_exeext
! 27980: if { (ac_try="$ac_link"
! 27981: case "(($ac_try" in
! 27982: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27983: *) ac_try_echo=$ac_try;;
! 27984: esac
! 27985: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27986: (eval "$ac_link") 2>&5
! 27987: ac_status=$?
! 27988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27989: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 27990: { (case "(($ac_try" in
! 27991: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 27992: *) ac_try_echo=$ac_try;;
! 27993: esac
! 27994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 27995: (eval "$ac_try") 2>&5
! 27996: ac_status=$?
! 27997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 27998: (exit $ac_status); }; }; then
! 27999:
! 28000: ac_cv_time_r_type=hpux
! 28001:
! 28002: else
! 28003: echo "$as_me: program exited with status $ac_status" >&5
! 28004: echo "$as_me: failed program was:" >&5
! 28005: sed 's/^/| /' conftest.$ac_ext >&5
! 28006:
! 28007: ( exit $ac_status )
! 28008:
! 28009: if test "$cross_compiling" = yes; then
! 28010:
! 28011: ac_cv_time_r_type=POSIX
! 28012:
! 28013: else
! 28014: cat >conftest.$ac_ext <<_ACEOF
! 28015: /* confdefs.h. */
! 28016: _ACEOF
! 28017: cat confdefs.h >>conftest.$ac_ext
! 28018: cat >>conftest.$ac_ext <<_ACEOF
! 28019: /* end confdefs.h. */
! 28020:
! 28021: #include <time.h>
! 28022: main() {
! 28023: struct tm t, *s;
! 28024: time_t old = 0;
! 28025: char buf[27], *p;
! 28026:
! 28027: s = gmtime_r(&old, &t);
! 28028: p = asctime_r(&t, buf, 26);
! 28029: if (p == buf && s == &t) return (0);
! 28030: return (1);
! 28031: }
! 28032:
! 28033: _ACEOF
! 28034: rm -f conftest$ac_exeext
! 28035: if { (ac_try="$ac_link"
! 28036: case "(($ac_try" in
! 28037: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28038: *) ac_try_echo=$ac_try;;
! 28039: esac
! 28040: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28041: (eval "$ac_link") 2>&5
! 28042: ac_status=$?
! 28043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28044: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 28045: { (case "(($ac_try" in
! 28046: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28047: *) ac_try_echo=$ac_try;;
! 28048: esac
! 28049: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28050: (eval "$ac_try") 2>&5
! 28051: ac_status=$?
! 28052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28053: (exit $ac_status); }; }; then
! 28054:
! 28055: ac_cv_time_r_type=irix
! 28056:
! 28057: else
! 28058: echo "$as_me: program exited with status $ac_status" >&5
! 28059: echo "$as_me: failed program was:" >&5
! 28060: sed 's/^/| /' conftest.$ac_ext >&5
! 28061:
! 28062: ( exit $ac_status )
! 28063:
! 28064: ac_cv_time_r_type=POSIX
! 28065:
! 28066: fi
! 28067: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 28068: fi
! 28069:
! 28070:
! 28071:
! 28072: fi
! 28073: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 28074: fi
! 28075:
! 28076:
! 28077:
! 28078: fi
! 28079: { echo "$as_me:$LINENO: result: $ac_cv_time_r_type" >&5
! 28080: echo "${ECHO_T}$ac_cv_time_r_type" >&6; }
! 28081: case $ac_cv_time_r_type in
! 28082: hpux)
! 28083: cat >>confdefs.h <<\_ACEOF
! 28084: #define PHP_HPUX_TIME_R 1
! 28085: _ACEOF
! 28086: ;;
! 28087: irix)
! 28088: cat >>confdefs.h <<\_ACEOF
! 28089: #define PHP_IRIX_TIME_R 1
! 28090: _ACEOF
! 28091: ;;
! 28092: esac
! 28093:
! 28094:
! 28095: { echo "$as_me:$LINENO: checking for readdir_r" >&5
! 28096: echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
! 28097: if test "${ac_cv_func_readdir_r+set}" = set; then
! 28098: echo $ECHO_N "(cached) $ECHO_C" >&6
! 28099: else
! 28100: cat >conftest.$ac_ext <<_ACEOF
! 28101: /* confdefs.h. */
! 28102: _ACEOF
! 28103: cat confdefs.h >>conftest.$ac_ext
! 28104: cat >>conftest.$ac_ext <<_ACEOF
! 28105: /* end confdefs.h. */
! 28106: /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
! 28107: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 28108: #define readdir_r innocuous_readdir_r
! 28109:
! 28110: /* System header to define __stub macros and hopefully few prototypes,
! 28111: which can conflict with char readdir_r (); below.
! 28112: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 28113: <limits.h> exists even on freestanding compilers. */
! 28114:
! 28115: #ifdef __STDC__
! 28116: # include <limits.h>
! 28117: #else
! 28118: # include <assert.h>
! 28119: #endif
! 28120:
! 28121: #undef readdir_r
! 28122:
! 28123: /* Override any GCC internal prototype to avoid an error.
! 28124: Use char because int might match the return type of a GCC
! 28125: builtin and then its argument prototype would still apply. */
! 28126: #ifdef __cplusplus
! 28127: extern "C"
! 28128: #endif
! 28129: char readdir_r ();
! 28130: /* The GNU C library defines this for functions which it implements
! 28131: to always fail with ENOSYS. Some functions are actually named
! 28132: something starting with __ and the normal name is an alias. */
! 28133: #if defined __stub_readdir_r || defined __stub___readdir_r
! 28134: choke me
! 28135: #endif
! 28136:
! 28137: int
! 28138: main ()
! 28139: {
! 28140: return readdir_r ();
! 28141: ;
! 28142: return 0;
! 28143: }
! 28144: _ACEOF
! 28145: rm -f conftest.$ac_objext conftest$ac_exeext
! 28146: if { (ac_try="$ac_link"
! 28147: case "(($ac_try" in
! 28148: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28149: *) ac_try_echo=$ac_try;;
! 28150: esac
! 28151: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28152: (eval "$ac_link") 2>conftest.er1
! 28153: ac_status=$?
! 28154: grep -v '^ *+' conftest.er1 >conftest.err
! 28155: rm -f conftest.er1
! 28156: cat conftest.err >&5
! 28157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28158: (exit $ac_status); } && {
! 28159: test -z "$ac_c_werror_flag" ||
! 28160: test ! -s conftest.err
! 28161: } && test -s conftest$ac_exeext &&
! 28162: $as_test_x conftest$ac_exeext; then
! 28163: ac_cv_func_readdir_r=yes
! 28164: else
! 28165: echo "$as_me: failed program was:" >&5
! 28166: sed 's/^/| /' conftest.$ac_ext >&5
! 28167:
! 28168: ac_cv_func_readdir_r=no
! 28169: fi
! 28170:
! 28171: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 28172: conftest$ac_exeext conftest.$ac_ext
! 28173: fi
! 28174: { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
! 28175: echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
! 28176: if test $ac_cv_func_readdir_r = yes; then
! 28177: ac_cv_func_readdir_r=yes
! 28178: else
! 28179: ac_cv_func_readdir=no
! 28180: fi
! 28181:
! 28182: if test "$ac_cv_func_readdir_r" = "yes"; then
! 28183: { echo "$as_me:$LINENO: checking for type of readdir_r" >&5
! 28184: echo $ECHO_N "checking for type of readdir_r... $ECHO_C" >&6; }
! 28185: if test "${ac_cv_what_readdir_r+set}" = set; then
! 28186: echo $ECHO_N "(cached) $ECHO_C" >&6
! 28187: else
! 28188:
! 28189: if test "$cross_compiling" = yes; then
! 28190:
! 28191: ac_cv_what_readdir_r=none
! 28192:
! 28193: else
! 28194: cat >conftest.$ac_ext <<_ACEOF
! 28195: /* confdefs.h. */
! 28196: _ACEOF
! 28197: cat confdefs.h >>conftest.$ac_ext
! 28198: cat >>conftest.$ac_ext <<_ACEOF
! 28199: /* end confdefs.h. */
! 28200:
! 28201: #define _REENTRANT
! 28202: #include <sys/types.h>
! 28203: #include <dirent.h>
! 28204:
! 28205: #ifndef PATH_MAX
! 28206: #define PATH_MAX 1024
! 28207: #endif
! 28208:
! 28209: main() {
! 28210: DIR *dir;
! 28211: char entry[sizeof(struct dirent)+PATH_MAX];
! 28212: struct dirent *pentry = (struct dirent *) &entry;
! 28213:
! 28214: dir = opendir("/");
! 28215: if (!dir)
! 28216: exit(1);
! 28217: if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0)
! 28218: exit(0);
! 28219: exit(1);
! 28220: }
! 28221:
! 28222: _ACEOF
! 28223: rm -f conftest$ac_exeext
! 28224: if { (ac_try="$ac_link"
! 28225: case "(($ac_try" in
! 28226: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28227: *) ac_try_echo=$ac_try;;
! 28228: esac
! 28229: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28230: (eval "$ac_link") 2>&5
! 28231: ac_status=$?
! 28232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28233: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 28234: { (case "(($ac_try" in
! 28235: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28236: *) ac_try_echo=$ac_try;;
! 28237: esac
! 28238: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28239: (eval "$ac_try") 2>&5
! 28240: ac_status=$?
! 28241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28242: (exit $ac_status); }; }; then
! 28243:
! 28244: ac_cv_what_readdir_r=POSIX
! 28245:
! 28246: else
! 28247: echo "$as_me: program exited with status $ac_status" >&5
! 28248: echo "$as_me: failed program was:" >&5
! 28249: sed 's/^/| /' conftest.$ac_ext >&5
! 28250:
! 28251: ( exit $ac_status )
! 28252:
! 28253: cat >conftest.$ac_ext <<_ACEOF
! 28254: /* confdefs.h. */
! 28255: _ACEOF
! 28256: cat confdefs.h >>conftest.$ac_ext
! 28257: cat >>conftest.$ac_ext <<_ACEOF
! 28258: /* end confdefs.h. */
! 28259:
! 28260: #define _REENTRANT
! 28261: #include <sys/types.h>
! 28262: #include <dirent.h>
! 28263: int readdir_r(DIR *, struct dirent *);
! 28264:
! 28265: _ACEOF
! 28266: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 28267: case "(($ac_try" in
! 28268: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28269: *) ac_try_echo=$ac_try;;
! 28270: esac
! 28271: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28272: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 28273: ac_status=$?
! 28274: grep -v '^ *+' conftest.er1 >conftest.err
! 28275: rm -f conftest.er1
! 28276: cat conftest.err >&5
! 28277: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28278: (exit $ac_status); } >/dev/null && {
! 28279: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 28280: test ! -s conftest.err
! 28281: }; then
! 28282:
! 28283: ac_cv_what_readdir_r=old-style
! 28284:
! 28285: else
! 28286: echo "$as_me: failed program was:" >&5
! 28287: sed 's/^/| /' conftest.$ac_ext >&5
! 28288:
! 28289:
! 28290: ac_cv_what_readdir_r=none
! 28291:
! 28292: fi
! 28293:
! 28294: rm -f conftest.err conftest.$ac_ext
! 28295:
! 28296: fi
! 28297: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 28298: fi
! 28299:
! 28300:
! 28301:
! 28302: fi
! 28303: { echo "$as_me:$LINENO: result: $ac_cv_what_readdir_r" >&5
! 28304: echo "${ECHO_T}$ac_cv_what_readdir_r" >&6; }
! 28305: case $ac_cv_what_readdir_r in
! 28306: POSIX)
! 28307:
! 28308: cat >>confdefs.h <<\_ACEOF
! 28309: #define HAVE_POSIX_READDIR_R 1
! 28310: _ACEOF
! 28311: ;;
! 28312: old-style)
! 28313:
! 28314: cat >>confdefs.h <<\_ACEOF
! 28315: #define HAVE_OLD_READDIR_R 1
! 28316: _ACEOF
! 28317: ;;
! 28318: esac
! 28319: fi
! 28320:
! 28321:
! 28322: { echo "$as_me:$LINENO: checking for in_addr_t" >&5
! 28323: echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
! 28324: if test "${ac_cv_type_in_addr_t+set}" = set; then
! 28325: echo $ECHO_N "(cached) $ECHO_C" >&6
! 28326: else
! 28327: cat >conftest.$ac_ext <<_ACEOF
! 28328: /* confdefs.h. */
! 28329: _ACEOF
! 28330: cat confdefs.h >>conftest.$ac_ext
! 28331: cat >>conftest.$ac_ext <<_ACEOF
! 28332: /* end confdefs.h. */
! 28333: #include <sys/types.h>
! 28334: #if STDC_HEADERS
! 28335: #include <stdlib.h>
! 28336: #include <stddef.h>
! 28337: #endif
! 28338: #ifdef HAVE_NETINET_IN_H
! 28339: #include <netinet/in.h>
! 28340: #endif
! 28341: _ACEOF
! 28342: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 28343: $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
! 28344: ac_cv_type_in_addr_t=yes
! 28345: else
! 28346: ac_cv_type_in_addr_t=no
! 28347: fi
! 28348: rm -f -r conftest*
! 28349:
! 28350: fi
! 28351: { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
! 28352: echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
! 28353: if test $ac_cv_type_in_addr_t = no; then
! 28354:
! 28355: cat >>confdefs.h <<\_ACEOF
! 28356: #define in_addr_t u_int
! 28357: _ACEOF
! 28358:
! 28359: fi
! 28360:
! 28361:
! 28362:
! 28363: for ac_func in crypt_r
! 28364: do
! 28365: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 28366: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 28367: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 28368: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 28369: echo $ECHO_N "(cached) $ECHO_C" >&6
! 28370: else
! 28371: cat >conftest.$ac_ext <<_ACEOF
! 28372: /* confdefs.h. */
! 28373: _ACEOF
! 28374: cat confdefs.h >>conftest.$ac_ext
! 28375: cat >>conftest.$ac_ext <<_ACEOF
! 28376: /* end confdefs.h. */
! 28377: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 28378: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 28379: #define $ac_func innocuous_$ac_func
! 28380:
! 28381: /* System header to define __stub macros and hopefully few prototypes,
! 28382: which can conflict with char $ac_func (); below.
! 28383: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 28384: <limits.h> exists even on freestanding compilers. */
! 28385:
! 28386: #ifdef __STDC__
! 28387: # include <limits.h>
! 28388: #else
! 28389: # include <assert.h>
! 28390: #endif
! 28391:
! 28392: #undef $ac_func
! 28393:
! 28394: /* Override any GCC internal prototype to avoid an error.
! 28395: Use char because int might match the return type of a GCC
! 28396: builtin and then its argument prototype would still apply. */
! 28397: #ifdef __cplusplus
! 28398: extern "C"
! 28399: #endif
! 28400: char $ac_func ();
! 28401: /* The GNU C library defines this for functions which it implements
! 28402: to always fail with ENOSYS. Some functions are actually named
! 28403: something starting with __ and the normal name is an alias. */
! 28404: #if defined __stub_$ac_func || defined __stub___$ac_func
! 28405: choke me
! 28406: #endif
! 28407:
! 28408: int
! 28409: main ()
! 28410: {
! 28411: return $ac_func ();
! 28412: ;
! 28413: return 0;
! 28414: }
! 28415: _ACEOF
! 28416: rm -f conftest.$ac_objext conftest$ac_exeext
! 28417: if { (ac_try="$ac_link"
! 28418: case "(($ac_try" in
! 28419: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28420: *) ac_try_echo=$ac_try;;
! 28421: esac
! 28422: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28423: (eval "$ac_link") 2>conftest.er1
! 28424: ac_status=$?
! 28425: grep -v '^ *+' conftest.er1 >conftest.err
! 28426: rm -f conftest.er1
! 28427: cat conftest.err >&5
! 28428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28429: (exit $ac_status); } && {
! 28430: test -z "$ac_c_werror_flag" ||
! 28431: test ! -s conftest.err
! 28432: } && test -s conftest$ac_exeext &&
! 28433: $as_test_x conftest$ac_exeext; then
! 28434: eval "$as_ac_var=yes"
! 28435: else
! 28436: echo "$as_me: failed program was:" >&5
! 28437: sed 's/^/| /' conftest.$ac_ext >&5
! 28438:
! 28439: eval "$as_ac_var=no"
! 28440: fi
! 28441:
! 28442: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 28443: conftest$ac_exeext conftest.$ac_ext
! 28444: fi
! 28445: ac_res=`eval echo '${'$as_ac_var'}'`
! 28446: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 28447: echo "${ECHO_T}$ac_res" >&6; }
! 28448: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 28449: cat >>confdefs.h <<_ACEOF
! 28450: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 28451: _ACEOF
! 28452: php_crypt_r="1"
! 28453: else
! 28454: php_crypt_r="0"
! 28455: fi
! 28456: done
! 28457:
! 28458: if test "x$php_crypt_r" = "x1"; then
! 28459:
! 28460: { echo "$as_me:$LINENO: checking which data struct is used by crypt_r" >&5
! 28461: echo $ECHO_N "checking which data struct is used by crypt_r... $ECHO_C" >&6; }
! 28462: if test "${php_cv_crypt_r_style+set}" = set; then
! 28463: echo $ECHO_N "(cached) $ECHO_C" >&6
! 28464: else
! 28465:
! 28466: php_cv_crypt_r_style=none
! 28467: cat >conftest.$ac_ext <<_ACEOF
! 28468: /* confdefs.h. */
! 28469: _ACEOF
! 28470: cat confdefs.h >>conftest.$ac_ext
! 28471: cat >>conftest.$ac_ext <<_ACEOF
! 28472: /* end confdefs.h. */
! 28473:
! 28474: #define _REENTRANT 1
! 28475: #include <crypt.h>
! 28476:
! 28477: int
! 28478: main ()
! 28479: {
! 28480:
! 28481: CRYPTD buffer;
! 28482: crypt_r("passwd", "hash", &buffer);
! 28483:
! 28484: ;
! 28485: return 0;
! 28486: }
! 28487: _ACEOF
! 28488: rm -f conftest.$ac_objext
! 28489: if { (ac_try="$ac_compile"
! 28490: case "(($ac_try" in
! 28491: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28492: *) ac_try_echo=$ac_try;;
! 28493: esac
! 28494: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28495: (eval "$ac_compile") 2>conftest.er1
! 28496: ac_status=$?
! 28497: grep -v '^ *+' conftest.er1 >conftest.err
! 28498: rm -f conftest.er1
! 28499: cat conftest.err >&5
! 28500: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28501: (exit $ac_status); } && {
! 28502: test -z "$ac_c_werror_flag" ||
! 28503: test ! -s conftest.err
! 28504: } && test -s conftest.$ac_objext; then
! 28505: php_cv_crypt_r_style=cryptd
! 28506: else
! 28507: echo "$as_me: failed program was:" >&5
! 28508: sed 's/^/| /' conftest.$ac_ext >&5
! 28509:
! 28510:
! 28511: fi
! 28512:
! 28513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 28514:
! 28515: if test "$php_cv_crypt_r_style" = "none"; then
! 28516: cat >conftest.$ac_ext <<_ACEOF
! 28517: /* confdefs.h. */
! 28518: _ACEOF
! 28519: cat confdefs.h >>conftest.$ac_ext
! 28520: cat >>conftest.$ac_ext <<_ACEOF
! 28521: /* end confdefs.h. */
! 28522:
! 28523: #define _REENTRANT 1
! 28524: #include <crypt.h>
! 28525:
! 28526: int
! 28527: main ()
! 28528: {
! 28529:
! 28530: struct crypt_data buffer;
! 28531: crypt_r("passwd", "hash", &buffer);
! 28532:
! 28533: ;
! 28534: return 0;
! 28535: }
! 28536: _ACEOF
! 28537: rm -f conftest.$ac_objext
! 28538: if { (ac_try="$ac_compile"
! 28539: case "(($ac_try" in
! 28540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28541: *) ac_try_echo=$ac_try;;
! 28542: esac
! 28543: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28544: (eval "$ac_compile") 2>conftest.er1
! 28545: ac_status=$?
! 28546: grep -v '^ *+' conftest.er1 >conftest.err
! 28547: rm -f conftest.er1
! 28548: cat conftest.err >&5
! 28549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28550: (exit $ac_status); } && {
! 28551: test -z "$ac_c_werror_flag" ||
! 28552: test ! -s conftest.err
! 28553: } && test -s conftest.$ac_objext; then
! 28554: php_cv_crypt_r_style=struct_crypt_data
! 28555: else
! 28556: echo "$as_me: failed program was:" >&5
! 28557: sed 's/^/| /' conftest.$ac_ext >&5
! 28558:
! 28559:
! 28560: fi
! 28561:
! 28562: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 28563: fi
! 28564:
! 28565: if test "$php_cv_crypt_r_style" = "none"; then
! 28566: cat >conftest.$ac_ext <<_ACEOF
! 28567: /* confdefs.h. */
! 28568: _ACEOF
! 28569: cat confdefs.h >>conftest.$ac_ext
! 28570: cat >>conftest.$ac_ext <<_ACEOF
! 28571: /* end confdefs.h. */
! 28572:
! 28573: #define _REENTRANT 1
! 28574: #define _GNU_SOURCE
! 28575: #include <crypt.h>
! 28576:
! 28577: int
! 28578: main ()
! 28579: {
! 28580:
! 28581: struct crypt_data buffer;
! 28582: crypt_r("passwd", "hash", &buffer);
! 28583:
! 28584: ;
! 28585: return 0;
! 28586: }
! 28587: _ACEOF
! 28588: rm -f conftest.$ac_objext
! 28589: if { (ac_try="$ac_compile"
! 28590: case "(($ac_try" in
! 28591: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 28592: *) ac_try_echo=$ac_try;;
! 28593: esac
! 28594: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 28595: (eval "$ac_compile") 2>conftest.er1
! 28596: ac_status=$?
! 28597: grep -v '^ *+' conftest.er1 >conftest.err
! 28598: rm -f conftest.er1
! 28599: cat conftest.err >&5
! 28600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 28601: (exit $ac_status); } && {
! 28602: test -z "$ac_c_werror_flag" ||
! 28603: test ! -s conftest.err
! 28604: } && test -s conftest.$ac_objext; then
! 28605: php_cv_crypt_r_style=struct_crypt_data_gnu_source
! 28606: else
! 28607: echo "$as_me: failed program was:" >&5
! 28608: sed 's/^/| /' conftest.$ac_ext >&5
! 28609:
! 28610:
! 28611: fi
! 28612:
! 28613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 28614: fi
! 28615:
! 28616: fi
! 28617: { echo "$as_me:$LINENO: result: $php_cv_crypt_r_style" >&5
! 28618: echo "${ECHO_T}$php_cv_crypt_r_style" >&6; }
! 28619:
! 28620: if test "$php_cv_crypt_r_style" = "cryptd"; then
! 28621:
! 28622: cat >>confdefs.h <<\_ACEOF
! 28623: #define CRYPT_R_CRYPTD 1
! 28624: _ACEOF
1.1 misho 28625:
28626: fi
28627: if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
28628:
1.1.1.3 ! misho 28629: cat >>confdefs.h <<\_ACEOF
! 28630: #define CRYPT_R_STRUCT_CRYPT_DATA 1
! 28631: _ACEOF
1.1 misho 28632:
28633: fi
28634: if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
28635:
1.1.1.3 ! misho 28636: cat >>confdefs.h <<\_ACEOF
! 28637: #define CRYPT_R_GNU_SOURCE 1
! 28638: _ACEOF
1.1 misho 28639:
28640: fi
28641: if test "$php_cv_crypt_r_style" = "none"; then
1.1.1.3 ! misho 28642: { { echo "$as_me:$LINENO: error: Unable to detect data struct used by crypt_r" >&5
! 28643: echo "$as_me: error: Unable to detect data struct used by crypt_r" >&2;}
! 28644: { (exit 1); exit 1; }; }
1.1 misho 28645: fi
28646:
28647: fi
28648:
28649:
1.1.1.3 ! misho 28650: { echo "$as_me:$LINENO: result: " >&5
! 28651: echo "${ECHO_T}" >&6; }
! 28652: { echo "$as_me:$LINENO: result: ${T_MD}General settings${T_ME}" >&5
! 28653: echo "${ECHO_T}${T_MD}General settings${T_ME}" >&6; }
1.1 misho 28654:
28655:
28656:
1.1.1.2 misho 28657: # Check whether --enable- was given.
1.1.1.3 ! misho 28658: if test "${enable_+set}" = set; then
1.1.1.2 misho 28659: enableval=$enable_;
28660: fi
28661:
28662:
28663:
28664:
28665: php_enable_gcov=no
28666:
1.1.1.3 ! misho 28667: { echo "$as_me:$LINENO: checking whether to include gcov symbols" >&5
! 28668: echo $ECHO_N "checking whether to include gcov symbols... $ECHO_C" >&6; }
1.1.1.2 misho 28669: # Check whether --enable-gcov was given.
1.1.1.3 ! misho 28670: if test "${enable_gcov+set}" = set; then
1.1.1.2 misho 28671: enableval=$enable_gcov; PHP_GCOV=$enableval
1.1 misho 28672: else
28673:
1.1.1.2 misho 28674: PHP_GCOV=no
1.1 misho 28675:
28676:
1.1.1.2 misho 28677: fi
1.1 misho 28678:
28679:
1.1.1.2 misho 28680: ext_output=$PHP_GCOV
1.1.1.3 ! misho 28681: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 28682: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 28683:
28684:
28685:
28686:
1.1.1.2 misho 28687: if test "$PHP_GCOV" = "yes"; then
1.1 misho 28688:
1.1.1.2 misho 28689: if test "$GCC" != "yes"; then
1.1.1.3 ! misho 28690: { { echo "$as_me:$LINENO: error: GCC is required for --enable-gcov" >&5
! 28691: echo "$as_me: error: GCC is required for --enable-gcov" >&2;}
! 28692: { (exit 1); exit 1; }; }
1.1.1.2 misho 28693: fi
1.1 misho 28694:
1.1.1.2 misho 28695: case `$php_shtool path $CC` in
28696: *ccache*) gcc_ccache=yes;;
28697: *) gcc_ccache=no;;
28698: esac
1.1 misho 28699:
1.1.1.2 misho 28700: if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
1.1.1.3 ! misho 28701: { { echo "$as_me:$LINENO: error: ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." >&5
! 28702: echo "$as_me: error: ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." >&2;}
! 28703: { (exit 1); exit 1; }; }
1.1.1.2 misho 28704: fi
1.1 misho 28705:
1.1.1.3 ! misho 28706: ltp_version_list="1.5 1.6 1.7 1.9 1.10"
1.1 misho 28707:
1.1.1.2 misho 28708: # Extract the first word of "lcov", so it can be a program name with args.
28709: set dummy lcov; ac_word=$2
1.1.1.3 ! misho 28710: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 28711: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 28712: if test "${ac_cv_prog_LTP+set}" = set; then
! 28713: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 28714: else
1.1.1.2 misho 28715: if test -n "$LTP"; then
28716: ac_cv_prog_LTP="$LTP" # Let the user override the test.
1.1 misho 28717: else
1.1.1.2 misho 28718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28719: for as_dir in $PATH
28720: do
28721: IFS=$as_save_IFS
28722: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 28723: for ac_exec_ext in '' $ac_executable_extensions; do
! 28724: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.2 misho 28725: ac_cv_prog_LTP="lcov"
1.1.1.3 ! misho 28726: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 28727: break 2
28728: fi
28729: done
1.1.1.3 ! misho 28730: done
1.1.1.2 misho 28731: IFS=$as_save_IFS
28732:
1.1 misho 28733: fi
28734: fi
1.1.1.2 misho 28735: LTP=$ac_cv_prog_LTP
28736: if test -n "$LTP"; then
1.1.1.3 ! misho 28737: { echo "$as_me:$LINENO: result: $LTP" >&5
! 28738: echo "${ECHO_T}$LTP" >&6; }
1.1.1.2 misho 28739: else
1.1.1.3 ! misho 28740: { echo "$as_me:$LINENO: result: no" >&5
! 28741: echo "${ECHO_T}no" >&6; }
1.1 misho 28742: fi
28743:
28744:
1.1.1.2 misho 28745: # Extract the first word of "genhtml", so it can be a program name with args.
28746: set dummy genhtml; ac_word=$2
1.1.1.3 ! misho 28747: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 28748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 28749: if test "${ac_cv_prog_LTP_GENHTML+set}" = set; then
! 28750: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 28751: else
1.1.1.2 misho 28752: if test -n "$LTP_GENHTML"; then
28753: ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
28754: else
28755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28756: for as_dir in $PATH
28757: do
28758: IFS=$as_save_IFS
28759: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 28760: for ac_exec_ext in '' $ac_executable_extensions; do
! 28761: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.2 misho 28762: ac_cv_prog_LTP_GENHTML="genhtml"
1.1.1.3 ! misho 28763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 28764: break 2
28765: fi
28766: done
1.1.1.3 ! misho 28767: done
1.1.1.2 misho 28768: IFS=$as_save_IFS
1.1 misho 28769:
1.1.1.2 misho 28770: fi
28771: fi
28772: LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
28773: if test -n "$LTP_GENHTML"; then
1.1.1.3 ! misho 28774: { echo "$as_me:$LINENO: result: $LTP_GENHTML" >&5
! 28775: echo "${ECHO_T}$LTP_GENHTML" >&6; }
1.1.1.2 misho 28776: else
1.1.1.3 ! misho 28777: { echo "$as_me:$LINENO: result: no" >&5
! 28778: echo "${ECHO_T}no" >&6; }
1.1.1.2 misho 28779: fi
1.1 misho 28780:
28781:
28782:
1.1.1.2 misho 28783: PHP_VAR_SUBST="$PHP_VAR_SUBST LTP"
1.1 misho 28784:
28785:
1.1.1.2 misho 28786: PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML"
1.1 misho 28787:
28788:
1.1.1.2 misho 28789: if test "$LTP"; then
1.1.1.3 ! misho 28790: { echo "$as_me:$LINENO: checking for ltp version" >&5
! 28791: echo $ECHO_N "checking for ltp version... $ECHO_C" >&6; }
! 28792: if test "${php_cv_ltp_version+set}" = set; then
! 28793: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 28794: else
28795:
1.1.1.2 misho 28796: php_cv_ltp_version=invalid
28797: ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
28798: for ltp_check_version in $ltp_version_list; do
28799: if test "$ltp_version" = "$ltp_check_version"; then
28800: php_cv_ltp_version="$ltp_check_version (ok)"
28801: fi
28802: done
1.1 misho 28803:
28804: fi
1.1.1.3 ! misho 28805: { echo "$as_me:$LINENO: result: $php_cv_ltp_version" >&5
! 28806: echo "${ECHO_T}$php_cv_ltp_version" >&6; }
1.1.1.2 misho 28807: else
28808: ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
1.1.1.3 ! misho 28809: { { echo "$as_me:$LINENO: error: $ltp_msg" >&5
! 28810: echo "$as_me: error: $ltp_msg" >&2;}
! 28811: { (exit 1); exit 1; }; }
1.1.1.2 misho 28812: fi
1.1 misho 28813:
1.1.1.2 misho 28814: case $php_cv_ltp_version in
28815: ""|invalid)
28816: ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
1.1.1.3 ! misho 28817: { { echo "$as_me:$LINENO: error: $ltp_msg" >&5
! 28818: echo "$as_me: error: $ltp_msg" >&2;}
! 28819: { (exit 1); exit 1; }; }
1.1.1.2 misho 28820: LTP="exit 0;"
28821: ;;
28822: esac
1.1 misho 28823:
1.1.1.2 misho 28824: if test -z "$LTP_GENHTML"; then
1.1.1.3 ! misho 28825: { { echo "$as_me:$LINENO: error: Could not find genhtml from the LTP package" >&5
! 28826: echo "$as_me: error: Could not find genhtml from the LTP package" >&2;}
! 28827: { (exit 1); exit 1; }; }
1.1.1.2 misho 28828: fi
1.1 misho 28829:
28830:
1.1.1.3 ! misho 28831: cat >>confdefs.h <<\_ACEOF
! 28832: #define HAVE_GCOV 1
! 28833: _ACEOF
1.1 misho 28834:
28835:
1.1.1.2 misho 28836: src=$abs_srcdir/Makefile.gcov
28837: ac_srcdir=$abs_srcdir
28838: ac_builddir=$ext_builddir
28839: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
1.1 misho 28840:
28841:
28842:
1.1.1.2 misho 28843: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
28844: CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
1.1 misho 28845:
28846:
1.1.1.2 misho 28847: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
28848: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
1.1 misho 28849: fi
28850:
28851:
1.1.1.2 misho 28852: php_enable_debug=no
28853:
1.1.1.3 ! misho 28854: { echo "$as_me:$LINENO: checking whether to include debugging symbols" >&5
! 28855: echo $ECHO_N "checking whether to include debugging symbols... $ECHO_C" >&6; }
1.1.1.2 misho 28856: # Check whether --enable-debug was given.
1.1.1.3 ! misho 28857: if test "${enable_debug+set}" = set; then
1.1.1.2 misho 28858: enableval=$enable_debug; PHP_DEBUG=$enableval
1.1 misho 28859: else
28860:
1.1.1.2 misho 28861: PHP_DEBUG=no
1.1 misho 28862:
28863:
1.1.1.2 misho 28864: fi
1.1 misho 28865:
28866:
1.1.1.2 misho 28867: ext_output=$PHP_DEBUG
1.1.1.3 ! misho 28868: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 28869: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 28870:
28871:
28872:
28873:
1.1.1.2 misho 28874: if test "$PHP_DEBUG" = "yes"; then
28875: PHP_DEBUG=1
28876: ZEND_DEBUG=yes
1.1 misho 28877:
1.1.1.2 misho 28878: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
28879: CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
1.1 misho 28880:
1.1.1.2 misho 28881: if test "$GCC" = "yes" || test "$ICC" = "yes"; then
28882: CFLAGS="$CFLAGS -O0"
28883: CXXFLAGS="$CXXFLAGS -g -O0"
28884: fi
28885: if test "$SUNCC" = "yes"; then
28886: if test -n "$auto_cflags"; then
28887: CFLAGS="-g"
28888: CXXFLAGS="-g"
28889: else
28890: CFLAGS="$CFLAGS -g"
28891: CXXFLAGS="$CFLAGS -g"
28892: fi
28893: fi
28894: else
28895: PHP_DEBUG=0
28896: ZEND_DEBUG=no
1.1 misho 28897: fi
28898:
28899:
1.1.1.2 misho 28900: php_with_layout=PHP
28901:
1.1.1.3 ! misho 28902: { echo "$as_me:$LINENO: checking layout of installed files" >&5
! 28903: echo $ECHO_N "checking layout of installed files... $ECHO_C" >&6; }
1.1.1.2 misho 28904:
28905: # Check whether --with-layout was given.
1.1.1.3 ! misho 28906: if test "${with_layout+set}" = set; then
1.1.1.2 misho 28907: withval=$with_layout; PHP_LAYOUT=$withval
1.1 misho 28908: else
28909:
1.1.1.2 misho 28910: PHP_LAYOUT=PHP
1.1 misho 28911:
28912:
1.1.1.2 misho 28913: fi
1.1 misho 28914:
28915:
1.1.1.2 misho 28916: ext_output=$PHP_LAYOUT
1.1.1.3 ! misho 28917: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 28918: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 28919:
28920:
28921:
28922:
1.1.1.2 misho 28923: case $PHP_LAYOUT in
28924: GNU)
28925: oldstyleextdir=no
28926: ;;
28927: *)
28928: oldstyleextdir=yes
28929: ;;
28930: esac
1.1 misho 28931:
28932:
1.1.1.2 misho 28933: php_with_config_file_path=DEFAULT
1.1 misho 28934:
1.1.1.3 ! misho 28935: { echo "$as_me:$LINENO: checking path to configuration file" >&5
! 28936: echo $ECHO_N "checking path to configuration file... $ECHO_C" >&6; }
1.1 misho 28937:
1.1.1.2 misho 28938: # Check whether --with-config-file-path was given.
1.1.1.3 ! misho 28939: if test "${with_config_file_path+set}" = set; then
1.1.1.2 misho 28940: withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval
1.1 misho 28941: else
28942:
1.1.1.2 misho 28943: PHP_CONFIG_FILE_PATH=DEFAULT
1.1 misho 28944:
28945:
1.1.1.2 misho 28946: fi
1.1 misho 28947:
28948:
1.1.1.2 misho 28949: ext_output=$PHP_CONFIG_FILE_PATH
1.1.1.3 ! misho 28950: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 28951: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 28952:
28953:
28954:
28955:
1.1.1.2 misho 28956: if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
28957: case $PHP_LAYOUT in
28958: GNU)
28959: PHP_CONFIG_FILE_PATH=$sysconfdir
28960: ;;
28961: *)
28962: PHP_CONFIG_FILE_PATH=$libdir
28963: ;;
28964: esac
1.1 misho 28965: fi
28966:
1.1.1.3 ! misho 28967: { echo "$as_me:$LINENO: checking where to scan for configuration files" >&5
! 28968: echo $ECHO_N "checking where to scan for configuration files... $ECHO_C" >&6; }
1.1 misho 28969:
1.1.1.2 misho 28970: php_with_config_file_scan_dir=DEFAULT
1.1 misho 28971:
28972:
28973:
1.1.1.2 misho 28974: # Check whether --with-config-file-scan-dir was given.
1.1.1.3 ! misho 28975: if test "${with_config_file_scan_dir+set}" = set; then
1.1.1.2 misho 28976: withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval
1.1 misho 28977: else
28978:
1.1.1.2 misho 28979: PHP_CONFIG_FILE_SCAN_DIR=DEFAULT
1.1 misho 28980:
28981:
1.1.1.2 misho 28982: fi
1.1 misho 28983:
28984:
1.1.1.2 misho 28985: ext_output=$PHP_CONFIG_FILE_SCAN_DIR
28986:
1.1 misho 28987:
28988:
28989:
1.1.1.2 misho 28990: if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
28991: PHP_CONFIG_FILE_SCAN_DIR=
1.1 misho 28992: fi
1.1.1.3 ! misho 28993: { echo "$as_me:$LINENO: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5
! 28994: echo "${ECHO_T}$PHP_CONFIG_FILE_SCAN_DIR" >&6; }
1.1 misho 28995:
1.1.1.2 misho 28996: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
1.1 misho 28997:
28998:
1.1.1.2 misho 28999: php_enable_sigchild=no
1.1 misho 29000:
1.1.1.3 ! misho 29001: { echo "$as_me:$LINENO: checking whether to enable PHP's own SIGCHLD handler" >&5
! 29002: echo $ECHO_N "checking whether to enable PHP's own SIGCHLD handler... $ECHO_C" >&6; }
1.1.1.2 misho 29003: # Check whether --enable-sigchild was given.
1.1.1.3 ! misho 29004: if test "${enable_sigchild+set}" = set; then
1.1.1.2 misho 29005: enableval=$enable_sigchild; PHP_SIGCHILD=$enableval
29006: else
1.1 misho 29007:
1.1.1.2 misho 29008: PHP_SIGCHILD=no
1.1 misho 29009:
29010:
1.1.1.2 misho 29011: fi
1.1 misho 29012:
29013:
1.1.1.2 misho 29014: ext_output=$PHP_SIGCHILD
1.1.1.3 ! misho 29015: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 29016: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 29017:
29018:
29019:
29020:
1.1.1.2 misho 29021: if test "$PHP_SIGCHILD" = "yes"; then
1.1 misho 29022:
1.1.1.3 ! misho 29023: cat >>confdefs.h <<\_ACEOF
! 29024: #define PHP_SIGCHILD 1
! 29025: _ACEOF
1.1 misho 29026:
29027: else
29028:
1.1.1.3 ! misho 29029: cat >>confdefs.h <<\_ACEOF
! 29030: #define PHP_SIGCHILD 0
! 29031: _ACEOF
1.1 misho 29032:
1.1.1.2 misho 29033: fi
1.1 misho 29034:
29035:
1.1.1.2 misho 29036: php_enable_libgcc=no
1.1 misho 29037:
1.1.1.3 ! misho 29038: { echo "$as_me:$LINENO: checking whether to explicitly link against libgcc" >&5
! 29039: echo $ECHO_N "checking whether to explicitly link against libgcc... $ECHO_C" >&6; }
1.1.1.2 misho 29040: # Check whether --enable-libgcc was given.
1.1.1.3 ! misho 29041: if test "${enable_libgcc+set}" = set; then
1.1.1.2 misho 29042: enableval=$enable_libgcc; PHP_LIBGCC=$enableval
1.1 misho 29043: else
29044:
1.1.1.2 misho 29045: PHP_LIBGCC=no
29046:
1.1 misho 29047:
29048: fi
29049:
29050:
1.1.1.2 misho 29051: ext_output=$PHP_LIBGCC
1.1.1.3 ! misho 29052: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 29053: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 29054:
29055:
29056:
29057:
1.1.1.2 misho 29058: if test "$PHP_LIBGCC" = "yes"; then
1.1 misho 29059:
29060:
1.1.1.2 misho 29061: libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
1.1 misho 29062:
29063:
1.1.1.2 misho 29064: if test -z "$libgcc_libpath"; then
1.1.1.3 ! misho 29065: { { echo "$as_me:$LINENO: error: Cannot locate libgcc. Make sure that gcc is in your path" >&5
! 29066: echo "$as_me: error: Cannot locate libgcc. Make sure that gcc is in your path" >&2;}
! 29067: { (exit 1); exit 1; }; }
1.1.1.2 misho 29068: fi
1.1 misho 29069:
1.1.1.2 misho 29070: if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then
1.1 misho 29071:
1.1.1.2 misho 29072: if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then
29073: ai_p=$libgcc_libpath
29074: else
1.1 misho 29075:
1.1.1.2 misho 29076: ep_dir="`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 29077:
1.1.1.2 misho 29078: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
29079: ai_p="$ep_realdir/`basename \"$libgcc_libpath\"`"
29080: fi
1.1 misho 29081:
29082:
29083:
29084:
29085:
1.1.1.2 misho 29086: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 29087:
1.1.1.2 misho 29088: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
29089: if test -n "$unique" && test "`eval $cmd`" = "" ; then
29090: eval "LIBPATH$unique=set"
1.1 misho 29091:
1.1.1.2 misho 29092: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
29093: LDFLAGS="$LDFLAGS -L$ai_p"
29094: PHP_RPATHS="$PHP_RPATHS $ai_p"
1.1 misho 29095:
1.1.1.2 misho 29096: fi
1.1 misho 29097:
29098:
29099:
1.1.1.2 misho 29100: fi
1.1 misho 29101:
29102:
29103:
1.1.1.2 misho 29104: case gcc in
29105: c|c_r|pthread*) ;;
29106: *)
29107: LIBS="$LIBS -lgcc"
29108: ;;
29109: esac
1.1 misho 29110:
29111:
1.1.1.2 misho 29112: fi
1.1 misho 29113:
29114:
1.1.1.2 misho 29115: php_enable_short_tags=yes
1.1 misho 29116:
1.1.1.3 ! misho 29117: { echo "$as_me:$LINENO: checking whether to enable short tags by default" >&5
! 29118: echo $ECHO_N "checking whether to enable short tags by default... $ECHO_C" >&6; }
1.1.1.2 misho 29119: # Check whether --enable-short-tags was given.
1.1.1.3 ! misho 29120: if test "${enable_short_tags+set}" = set; then
1.1.1.2 misho 29121: enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval
29122: else
1.1 misho 29123:
1.1.1.2 misho 29124: PHP_SHORT_TAGS=yes
1.1 misho 29125:
29126:
1.1.1.2 misho 29127: fi
1.1 misho 29128:
29129:
1.1.1.2 misho 29130: ext_output=$PHP_SHORT_TAGS
1.1.1.3 ! misho 29131: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 29132: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 29133:
29134:
29135:
29136:
1.1.1.2 misho 29137: if test "$PHP_SHORT_TAGS" = "yes"; then
1.1 misho 29138:
1.1.1.3 ! misho 29139: cat >>confdefs.h <<\_ACEOF
! 29140: #define DEFAULT_SHORT_OPEN_TAG "1"
! 29141: _ACEOF
1.1 misho 29142:
1.1.1.2 misho 29143: else
1.1 misho 29144:
1.1.1.3 ! misho 29145: cat >>confdefs.h <<\_ACEOF
! 29146: #define DEFAULT_SHORT_OPEN_TAG "0"
! 29147: _ACEOF
1.1 misho 29148:
1.1.1.2 misho 29149: fi
1.1 misho 29150:
29151:
1.1.1.2 misho 29152: php_enable_dmalloc=no
1.1 misho 29153:
1.1.1.3 ! misho 29154: { echo "$as_me:$LINENO: checking whether to enable dmalloc" >&5
! 29155: echo $ECHO_N "checking whether to enable dmalloc... $ECHO_C" >&6; }
1.1.1.2 misho 29156: # Check whether --enable-dmalloc was given.
1.1.1.3 ! misho 29157: if test "${enable_dmalloc+set}" = set; then
1.1.1.2 misho 29158: enableval=$enable_dmalloc; PHP_DMALLOC=$enableval
29159: else
1.1 misho 29160:
1.1.1.2 misho 29161: PHP_DMALLOC=no
1.1 misho 29162:
29163:
29164: fi
29165:
29166:
1.1.1.2 misho 29167: ext_output=$PHP_DMALLOC
1.1.1.3 ! misho 29168: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 29169: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 29170:
1.1.1.2 misho 29171:
29172:
29173:
29174: if test "$PHP_DMALLOC" = "yes"; then
1.1.1.3 ! misho 29175: { echo "$as_me:$LINENO: checking for dmalloc_error in -ldmalloc" >&5
! 29176: echo $ECHO_N "checking for dmalloc_error in -ldmalloc... $ECHO_C" >&6; }
! 29177: if test "${ac_cv_lib_dmalloc_dmalloc_error+set}" = set; then
! 29178: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 29179: else
1.1.1.2 misho 29180: ac_check_lib_save_LIBS=$LIBS
29181: LIBS="-ldmalloc $LIBS"
1.1.1.3 ! misho 29182: cat >conftest.$ac_ext <<_ACEOF
! 29183: /* confdefs.h. */
! 29184: _ACEOF
! 29185: cat confdefs.h >>conftest.$ac_ext
! 29186: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 29187: /* end confdefs.h. */
29188:
1.1.1.2 misho 29189: /* Override any GCC internal prototype to avoid an error.
29190: Use char because int might match the return type of a GCC
29191: builtin and then its argument prototype would still apply. */
29192: #ifdef __cplusplus
29193: extern "C"
29194: #endif
29195: char dmalloc_error ();
1.1 misho 29196: int
29197: main ()
29198: {
1.1.1.2 misho 29199: return dmalloc_error ();
1.1 misho 29200: ;
29201: return 0;
29202: }
29203: _ACEOF
1.1.1.3 ! misho 29204: rm -f conftest.$ac_objext conftest$ac_exeext
! 29205: if { (ac_try="$ac_link"
! 29206: case "(($ac_try" in
! 29207: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29208: *) ac_try_echo=$ac_try;;
! 29209: esac
! 29210: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29211: (eval "$ac_link") 2>conftest.er1
! 29212: ac_status=$?
! 29213: grep -v '^ *+' conftest.er1 >conftest.err
! 29214: rm -f conftest.er1
! 29215: cat conftest.err >&5
! 29216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29217: (exit $ac_status); } && {
! 29218: test -z "$ac_c_werror_flag" ||
! 29219: test ! -s conftest.err
! 29220: } && test -s conftest$ac_exeext &&
! 29221: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 29222: ac_cv_lib_dmalloc_dmalloc_error=yes
1.1 misho 29223: else
1.1.1.3 ! misho 29224: echo "$as_me: failed program was:" >&5
! 29225: sed 's/^/| /' conftest.$ac_ext >&5
! 29226:
! 29227: ac_cv_lib_dmalloc_dmalloc_error=no
1.1 misho 29228: fi
1.1.1.3 ! misho 29229:
! 29230: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 29231: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 29232: LIBS=$ac_check_lib_save_LIBS
1.1 misho 29233: fi
1.1.1.3 ! misho 29234: { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5
! 29235: echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_error" >&6; }
! 29236: if test $ac_cv_lib_dmalloc_dmalloc_error = yes; then
1.1 misho 29237:
29238:
29239:
1.1.1.2 misho 29240: case dmalloc in
29241: c|c_r|pthread*) ;;
29242: *)
29243: LIBS="-ldmalloc $LIBS"
29244: ;;
29245: esac
29246:
29247:
29248:
1.1.1.3 ! misho 29249: cat >>confdefs.h <<\_ACEOF
! 29250: #define HAVE_DMALLOC 1
! 29251: _ACEOF
1.1 misho 29252:
1.1.1.2 misho 29253: CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
1.1 misho 29254:
1.1.1.2 misho 29255: else
1.1 misho 29256:
1.1.1.3 ! misho 29257: { { echo "$as_me:$LINENO: error: Problem with enabling dmalloc. Please check config.log for details." >&5
! 29258: echo "$as_me: error: Problem with enabling dmalloc. Please check config.log for details." >&2;}
! 29259: { (exit 1); exit 1; }; }
1.1 misho 29260:
1.1.1.2 misho 29261: fi
1.1 misho 29262:
1.1.1.2 misho 29263: fi
1.1 misho 29264:
29265:
1.1.1.2 misho 29266: php_enable_ipv6=yes
29267:
1.1.1.3 ! misho 29268: { echo "$as_me:$LINENO: checking whether to enable IPv6 support" >&5
! 29269: echo $ECHO_N "checking whether to enable IPv6 support... $ECHO_C" >&6; }
1.1.1.2 misho 29270: # Check whether --enable-ipv6 was given.
1.1.1.3 ! misho 29271: if test "${enable_ipv6+set}" = set; then
1.1.1.2 misho 29272: enableval=$enable_ipv6; PHP_IPV6=$enableval
29273: else
1.1 misho 29274:
1.1.1.2 misho 29275: PHP_IPV6=yes
1.1 misho 29276:
29277:
29278: fi
29279:
29280:
1.1.1.2 misho 29281: ext_output=$PHP_IPV6
1.1.1.3 ! misho 29282: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 29283: echo "${ECHO_T}$ext_output" >&6; }
1.1.1.2 misho 29284:
1.1 misho 29285:
29286:
29287:
1.1.1.2 misho 29288: if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
29289:
1.1.1.3 ! misho 29290: cat >>confdefs.h <<\_ACEOF
! 29291: #define HAVE_IPV6 1
! 29292: _ACEOF
1.1.1.2 misho 29293:
29294: fi
29295:
29296:
29297: php_enable_dtrace=no
29298:
1.1.1.3 ! misho 29299: { echo "$as_me:$LINENO: checking whether to enable DTrace support" >&5
! 29300: echo $ECHO_N "checking whether to enable DTrace support... $ECHO_C" >&6; }
1.1.1.2 misho 29301: # Check whether --enable-dtrace was given.
1.1.1.3 ! misho 29302: if test "${enable_dtrace+set}" = set; then
1.1.1.2 misho 29303: enableval=$enable_dtrace; PHP_DTRACE=$enableval
1.1 misho 29304: else
29305:
1.1.1.2 misho 29306: PHP_DTRACE=no
1.1 misho 29307:
29308:
29309: fi
29310:
29311:
1.1.1.2 misho 29312: ext_output=$PHP_DTRACE
1.1.1.3 ! misho 29313: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 29314: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 29315:
29316:
29317:
29318:
1.1.1.2 misho 29319: if test "$PHP_DTRACE" = "yes"; then
1.1.1.3 ! misho 29320:
! 29321: for ac_header in sys/sdt.h
! 29322: do
! 29323: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 29324: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 29325: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 29326: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 29327: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 29328: echo $ECHO_N "(cached) $ECHO_C" >&6
! 29329: fi
! 29330: ac_res=`eval echo '${'$as_ac_Header'}'`
! 29331: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 29332: echo "${ECHO_T}$ac_res" >&6; }
! 29333: else
! 29334: # Is the header compilable?
! 29335: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 29336: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 29337: cat >conftest.$ac_ext <<_ACEOF
! 29338: /* confdefs.h. */
! 29339: _ACEOF
! 29340: cat confdefs.h >>conftest.$ac_ext
! 29341: cat >>conftest.$ac_ext <<_ACEOF
! 29342: /* end confdefs.h. */
! 29343: $ac_includes_default
! 29344: #include <$ac_header>
! 29345: _ACEOF
! 29346: rm -f conftest.$ac_objext
! 29347: if { (ac_try="$ac_compile"
! 29348: case "(($ac_try" in
! 29349: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29350: *) ac_try_echo=$ac_try;;
! 29351: esac
! 29352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29353: (eval "$ac_compile") 2>conftest.er1
! 29354: ac_status=$?
! 29355: grep -v '^ *+' conftest.er1 >conftest.err
! 29356: rm -f conftest.er1
! 29357: cat conftest.err >&5
! 29358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29359: (exit $ac_status); } && {
! 29360: test -z "$ac_c_werror_flag" ||
! 29361: test ! -s conftest.err
! 29362: } && test -s conftest.$ac_objext; then
! 29363: ac_header_compiler=yes
! 29364: else
! 29365: echo "$as_me: failed program was:" >&5
! 29366: sed 's/^/| /' conftest.$ac_ext >&5
! 29367:
! 29368: ac_header_compiler=no
! 29369: fi
! 29370:
! 29371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29372: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 29373: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 29374:
! 29375: # Is the header present?
! 29376: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 29377: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 29378: cat >conftest.$ac_ext <<_ACEOF
! 29379: /* confdefs.h. */
! 29380: _ACEOF
! 29381: cat confdefs.h >>conftest.$ac_ext
! 29382: cat >>conftest.$ac_ext <<_ACEOF
! 29383: /* end confdefs.h. */
! 29384: #include <$ac_header>
! 29385: _ACEOF
! 29386: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 29387: case "(($ac_try" in
! 29388: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29389: *) ac_try_echo=$ac_try;;
! 29390: esac
! 29391: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29392: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 29393: ac_status=$?
! 29394: grep -v '^ *+' conftest.er1 >conftest.err
! 29395: rm -f conftest.er1
! 29396: cat conftest.err >&5
! 29397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29398: (exit $ac_status); } >/dev/null && {
! 29399: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 29400: test ! -s conftest.err
! 29401: }; then
! 29402: ac_header_preproc=yes
! 29403: else
! 29404: echo "$as_me: failed program was:" >&5
! 29405: sed 's/^/| /' conftest.$ac_ext >&5
! 29406:
! 29407: ac_header_preproc=no
! 29408: fi
! 29409:
! 29410: rm -f conftest.err conftest.$ac_ext
! 29411: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 29412: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 29413:
! 29414: # So? What about this header?
! 29415: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 29416: yes:no: )
! 29417: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 29418: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 29419: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 29420: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 29421: ac_header_preproc=yes
! 29422: ;;
! 29423: no:yes:* )
! 29424: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 29425: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 29426: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 29427: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 29428: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 29429: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 29430: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 29431: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 29432: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 29433: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 29434: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 29435: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 29436:
! 29437: ;;
! 29438: esac
! 29439: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 29440: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 29441: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 29442: echo $ECHO_N "(cached) $ECHO_C" >&6
! 29443: else
! 29444: eval "$as_ac_Header=\$ac_header_preproc"
! 29445: fi
! 29446: ac_res=`eval echo '${'$as_ac_Header'}'`
! 29447: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 29448: echo "${ECHO_T}$ac_res" >&6; }
! 29449:
! 29450: fi
! 29451: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1.1.2 misho 29452: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 29453: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.2 misho 29454: _ACEOF
1.1 misho 29455:
29456:
1.1.1.2 misho 29457: case "" in
29458: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;;
29459: /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;;
29460: *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";;
1.1 misho 29461: esac
29462:
1.1.1.2 misho 29463: ac_provsrc=Zend/zend_dtrace.d
29464: old_IFS=$IFS
29465: IFS=.
29466: set $ac_provsrc
29467: ac_provobj=$1
29468: IFS=$old_IFS
1.1 misho 29469:
1.1.1.2 misho 29470: ac_hdrobj=Zend/zend_dtrace_gen.h
1.1 misho 29471:
1.1.1.2 misho 29472: case $host_alias in
29473: *freebsd*)
29474: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o"
29475: PHP_LDFLAGS="$PHP_LDFLAGS -lelf"
29476: ;;
29477: *solaris*)
29478: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o"
29479: ;;
29480: esac
1.1 misho 29481:
1.1.1.2 misho 29482: old_IFS=$IFS
29483: for ac_src in main/main.c Zend/zend_API.c \
29484: Zend/zend_execute.c Zend/zend_exceptions.c \
29485: Zend/zend_dtrace.c Zend/zend.c; do
29486: IFS=.
29487: set $ac_src
29488: ac_obj=$1
29489: IFS=$old_IFS
1.1 misho 29490:
1.1.1.2 misho 29491: PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo"
29492: done;
1.1 misho 29493:
1.1.1.2 misho 29494: case $php_sapi_module in
29495: shared)
29496: for ac_lo in $PHP_DTRACE_OBJS; do
29497: dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
29498: done;
29499: ;;
29500: *)
29501: dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
29502: ;;
29503: esac
1.1 misho 29504:
1.1.1.2 misho 29505: cat>>Makefile.objects<<EOF
1.1 misho 29506:
1.1.1.2 misho 29507: $ac_bdir$ac_hdrobj: $abs_srcdir/$ac_provsrc
29508: dtrace -h -C -s $ac_srcdir$ac_provsrc -o \$@ && \$(SED) -ibak 's,PHP_,DTRACE_,g' \$@
1.1 misho 29509:
1.1.1.2 misho 29510: \$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj
1.1 misho 29511:
1.1.1.2 misho 29512: $ac_bdir$ac_provsrc.o: \$(PHP_DTRACE_OBJS)
29513: dtrace -G -o \$@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
1.1 misho 29514:
1.1.1.2 misho 29515: EOF
1.1 misho 29516:
29517:
1.1.1.3 ! misho 29518: cat >>confdefs.h <<\_ACEOF
! 29519: #define HAVE_DTRACE 1
! 29520: _ACEOF
1.1 misho 29521:
29522:
1.1.1.2 misho 29523: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS"
1.1 misho 29524:
29525:
1.1.1.2 misho 29526: else
1.1 misho 29527:
1.1.1.3 ! misho 29528: { { echo "$as_me:$LINENO: error: Cannot find sys/sdt.h which is required for DTrace support" >&5
! 29529: echo "$as_me: error: Cannot find sys/sdt.h which is required for DTrace support" >&2;}
! 29530: { (exit 1); exit 1; }; }
1.1 misho 29531:
1.1.1.2 misho 29532: fi
1.1 misho 29533:
1.1.1.2 misho 29534: done
1.1 misho 29535:
29536: fi
29537:
1.1.1.3 ! misho 29538: { echo "$as_me:$LINENO: checking how big to make fd sets" >&5
! 29539: echo $ECHO_N "checking how big to make fd sets... $ECHO_C" >&6; }
1.1 misho 29540:
1.1.1.2 misho 29541: php_enable_fd_setsize=no
1.1 misho 29542:
1.1.1.2 misho 29543:
29544: # Check whether --enable-fd-setsize was given.
1.1.1.3 ! misho 29545: if test "${enable_fd_setsize+set}" = set; then
1.1.1.2 misho 29546: enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval
1.1 misho 29547: else
29548:
1.1.1.2 misho 29549: PHP_FD_SETSIZE=no
1.1 misho 29550:
29551:
29552: fi
29553:
29554:
1.1.1.2 misho 29555: ext_output=$PHP_FD_SETSIZE
1.1 misho 29556:
29557:
29558:
29559:
29560:
1.1.1.2 misho 29561: if test "$PHP_FD_SETSIZE" != "no"; then
29562: if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
29563: CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
1.1.1.3 ! misho 29564: { echo "$as_me:$LINENO: result: using $PHP_FD_SETSIZE" >&5
! 29565: echo "${ECHO_T}using $PHP_FD_SETSIZE" >&6; }
1.1.1.2 misho 29566: else
1.1.1.3 ! misho 29567: { { echo "$as_me:$LINENO: error: Invalid value passed to --enable-fd-setsize!" >&5
! 29568: echo "$as_me: error: Invalid value passed to --enable-fd-setsize!" >&2;}
! 29569: { (exit 1); exit 1; }; }
1.1 misho 29570: fi
29571: else
1.1.1.3 ! misho 29572: { echo "$as_me:$LINENO: result: using system default" >&5
! 29573: echo "${ECHO_T}using system default" >&6; }
1.1 misho 29574: fi
29575:
29576:
29577:
1.1.1.2 misho 29578: # Check whether --enable- was given.
1.1.1.3 ! misho 29579: if test "${enable_+set}" = set; then
1.1.1.2 misho 29580: enableval=$enable_;
29581: fi
1.1 misho 29582:
29583:
29584:
29585:
1.1.1.3 ! misho 29586: { echo "$as_me:$LINENO: result: " >&5
! 29587: echo "${ECHO_T}" >&6; }
! 29588: { echo "$as_me:$LINENO: result: ${T_MD}Configuring extensions${T_ME}" >&5
! 29589: echo "${ECHO_T}${T_MD}Configuring extensions${T_ME}" >&6; }
1.1 misho 29590:
29591:
29592:
1.1.1.2 misho 29593: # Check whether --enable-all was given.
1.1.1.3 ! misho 29594: if test "${enable_all+set}" = set; then
1.1.1.2 misho 29595: enableval=$enable_all;
29596: PHP_ENABLE_ALL=$enableval
1.1 misho 29597:
1.1.1.2 misho 29598: fi
1.1 misho 29599:
29600:
1.1.1.2 misho 29601: # reading config stubs
1.1 misho 29602:
29603:
29604:
29605:
1.1.1.3 ! misho 29606: { echo "$as_me:$LINENO: checking for long" >&5
! 29607: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
! 29608: if test "${ac_cv_type_long+set}" = set; then
! 29609: echo $ECHO_N "(cached) $ECHO_C" >&6
! 29610: else
! 29611: cat >conftest.$ac_ext <<_ACEOF
! 29612: /* confdefs.h. */
! 29613: _ACEOF
! 29614: cat confdefs.h >>conftest.$ac_ext
! 29615: cat >>conftest.$ac_ext <<_ACEOF
! 29616: /* end confdefs.h. */
! 29617: $ac_includes_default
! 29618: typedef long ac__type_new_;
! 29619: int
! 29620: main ()
! 29621: {
! 29622: if ((ac__type_new_ *) 0)
! 29623: return 0;
! 29624: if (sizeof (ac__type_new_))
! 29625: return 0;
! 29626: ;
! 29627: return 0;
! 29628: }
! 29629: _ACEOF
! 29630: rm -f conftest.$ac_objext
! 29631: if { (ac_try="$ac_compile"
! 29632: case "(($ac_try" in
! 29633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29634: *) ac_try_echo=$ac_try;;
! 29635: esac
! 29636: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29637: (eval "$ac_compile") 2>conftest.er1
! 29638: ac_status=$?
! 29639: grep -v '^ *+' conftest.er1 >conftest.err
! 29640: rm -f conftest.er1
! 29641: cat conftest.err >&5
! 29642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29643: (exit $ac_status); } && {
! 29644: test -z "$ac_c_werror_flag" ||
! 29645: test ! -s conftest.err
! 29646: } && test -s conftest.$ac_objext; then
! 29647: ac_cv_type_long=yes
! 29648: else
! 29649: echo "$as_me: failed program was:" >&5
! 29650: sed 's/^/| /' conftest.$ac_ext >&5
! 29651:
! 29652: ac_cv_type_long=no
! 29653: fi
! 29654:
! 29655: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29656: fi
! 29657: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 29658: echo "${ECHO_T}$ac_cv_type_long" >&6; }
! 29659:
1.1.1.2 misho 29660: # The cast to long int works around a bug in the HP C Compiler
29661: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29662: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29663: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 29664: { echo "$as_me:$LINENO: checking size of long" >&5
! 29665: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
! 29666: if test "${ac_cv_sizeof_long+set}" = set; then
! 29667: echo $ECHO_N "(cached) $ECHO_C" >&6
! 29668: else
! 29669: if test "$cross_compiling" = yes; then
! 29670: # Depending upon the size, compute the lo and hi bounds.
! 29671: cat >conftest.$ac_ext <<_ACEOF
! 29672: /* confdefs.h. */
! 29673: _ACEOF
! 29674: cat confdefs.h >>conftest.$ac_ext
! 29675: cat >>conftest.$ac_ext <<_ACEOF
! 29676: /* end confdefs.h. */
! 29677: $ac_includes_default
! 29678: typedef long ac__type_sizeof_;
! 29679: int
! 29680: main ()
! 29681: {
! 29682: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 29683: test_array [0] = 0
! 29684:
! 29685: ;
! 29686: return 0;
! 29687: }
! 29688: _ACEOF
! 29689: rm -f conftest.$ac_objext
! 29690: if { (ac_try="$ac_compile"
! 29691: case "(($ac_try" in
! 29692: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29693: *) ac_try_echo=$ac_try;;
! 29694: esac
! 29695: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29696: (eval "$ac_compile") 2>conftest.er1
! 29697: ac_status=$?
! 29698: grep -v '^ *+' conftest.er1 >conftest.err
! 29699: rm -f conftest.er1
! 29700: cat conftest.err >&5
! 29701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29702: (exit $ac_status); } && {
! 29703: test -z "$ac_c_werror_flag" ||
! 29704: test ! -s conftest.err
! 29705: } && test -s conftest.$ac_objext; then
! 29706: ac_lo=0 ac_mid=0
! 29707: while :; do
! 29708: cat >conftest.$ac_ext <<_ACEOF
! 29709: /* confdefs.h. */
! 29710: _ACEOF
! 29711: cat confdefs.h >>conftest.$ac_ext
! 29712: cat >>conftest.$ac_ext <<_ACEOF
! 29713: /* end confdefs.h. */
! 29714: $ac_includes_default
! 29715: typedef long ac__type_sizeof_;
! 29716: int
! 29717: main ()
! 29718: {
! 29719: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 29720: test_array [0] = 0
! 29721:
! 29722: ;
! 29723: return 0;
! 29724: }
! 29725: _ACEOF
! 29726: rm -f conftest.$ac_objext
! 29727: if { (ac_try="$ac_compile"
! 29728: case "(($ac_try" in
! 29729: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29730: *) ac_try_echo=$ac_try;;
! 29731: esac
! 29732: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29733: (eval "$ac_compile") 2>conftest.er1
! 29734: ac_status=$?
! 29735: grep -v '^ *+' conftest.er1 >conftest.err
! 29736: rm -f conftest.er1
! 29737: cat conftest.err >&5
! 29738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29739: (exit $ac_status); } && {
! 29740: test -z "$ac_c_werror_flag" ||
! 29741: test ! -s conftest.err
! 29742: } && test -s conftest.$ac_objext; then
! 29743: ac_hi=$ac_mid; break
! 29744: else
! 29745: echo "$as_me: failed program was:" >&5
! 29746: sed 's/^/| /' conftest.$ac_ext >&5
! 29747:
! 29748: ac_lo=`expr $ac_mid + 1`
! 29749: if test $ac_lo -le $ac_mid; then
! 29750: ac_lo= ac_hi=
! 29751: break
! 29752: fi
! 29753: ac_mid=`expr 2 '*' $ac_mid + 1`
! 29754: fi
! 29755:
! 29756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29757: done
! 29758: else
! 29759: echo "$as_me: failed program was:" >&5
! 29760: sed 's/^/| /' conftest.$ac_ext >&5
! 29761:
! 29762: cat >conftest.$ac_ext <<_ACEOF
! 29763: /* confdefs.h. */
! 29764: _ACEOF
! 29765: cat confdefs.h >>conftest.$ac_ext
! 29766: cat >>conftest.$ac_ext <<_ACEOF
! 29767: /* end confdefs.h. */
! 29768: $ac_includes_default
! 29769: typedef long ac__type_sizeof_;
! 29770: int
! 29771: main ()
! 29772: {
! 29773: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 29774: test_array [0] = 0
! 29775:
! 29776: ;
! 29777: return 0;
! 29778: }
! 29779: _ACEOF
! 29780: rm -f conftest.$ac_objext
! 29781: if { (ac_try="$ac_compile"
! 29782: case "(($ac_try" in
! 29783: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29784: *) ac_try_echo=$ac_try;;
! 29785: esac
! 29786: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29787: (eval "$ac_compile") 2>conftest.er1
! 29788: ac_status=$?
! 29789: grep -v '^ *+' conftest.er1 >conftest.err
! 29790: rm -f conftest.er1
! 29791: cat conftest.err >&5
! 29792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29793: (exit $ac_status); } && {
! 29794: test -z "$ac_c_werror_flag" ||
! 29795: test ! -s conftest.err
! 29796: } && test -s conftest.$ac_objext; then
! 29797: ac_hi=-1 ac_mid=-1
! 29798: while :; do
! 29799: cat >conftest.$ac_ext <<_ACEOF
! 29800: /* confdefs.h. */
! 29801: _ACEOF
! 29802: cat confdefs.h >>conftest.$ac_ext
! 29803: cat >>conftest.$ac_ext <<_ACEOF
! 29804: /* end confdefs.h. */
! 29805: $ac_includes_default
! 29806: typedef long ac__type_sizeof_;
! 29807: int
! 29808: main ()
! 29809: {
! 29810: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 29811: test_array [0] = 0
! 29812:
! 29813: ;
! 29814: return 0;
! 29815: }
! 29816: _ACEOF
! 29817: rm -f conftest.$ac_objext
! 29818: if { (ac_try="$ac_compile"
! 29819: case "(($ac_try" in
! 29820: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29821: *) ac_try_echo=$ac_try;;
! 29822: esac
! 29823: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29824: (eval "$ac_compile") 2>conftest.er1
! 29825: ac_status=$?
! 29826: grep -v '^ *+' conftest.er1 >conftest.err
! 29827: rm -f conftest.er1
! 29828: cat conftest.err >&5
! 29829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29830: (exit $ac_status); } && {
! 29831: test -z "$ac_c_werror_flag" ||
! 29832: test ! -s conftest.err
! 29833: } && test -s conftest.$ac_objext; then
! 29834: ac_lo=$ac_mid; break
! 29835: else
! 29836: echo "$as_me: failed program was:" >&5
! 29837: sed 's/^/| /' conftest.$ac_ext >&5
! 29838:
! 29839: ac_hi=`expr '(' $ac_mid ')' - 1`
! 29840: if test $ac_mid -le $ac_hi; then
! 29841: ac_lo= ac_hi=
! 29842: break
! 29843: fi
! 29844: ac_mid=`expr 2 '*' $ac_mid`
! 29845: fi
! 29846:
! 29847: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29848: done
! 29849: else
! 29850: echo "$as_me: failed program was:" >&5
! 29851: sed 's/^/| /' conftest.$ac_ext >&5
! 29852:
! 29853: ac_lo= ac_hi=
! 29854: fi
! 29855:
! 29856: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29857: fi
! 29858:
! 29859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29860: # Binary search between lo and hi bounds.
! 29861: while test "x$ac_lo" != "x$ac_hi"; do
! 29862: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 29863: cat >conftest.$ac_ext <<_ACEOF
! 29864: /* confdefs.h. */
! 29865: _ACEOF
! 29866: cat confdefs.h >>conftest.$ac_ext
! 29867: cat >>conftest.$ac_ext <<_ACEOF
! 29868: /* end confdefs.h. */
! 29869: $ac_includes_default
! 29870: typedef long ac__type_sizeof_;
! 29871: int
! 29872: main ()
! 29873: {
! 29874: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 29875: test_array [0] = 0
! 29876:
! 29877: ;
! 29878: return 0;
! 29879: }
! 29880: _ACEOF
! 29881: rm -f conftest.$ac_objext
! 29882: if { (ac_try="$ac_compile"
! 29883: case "(($ac_try" in
! 29884: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29885: *) ac_try_echo=$ac_try;;
! 29886: esac
! 29887: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29888: (eval "$ac_compile") 2>conftest.er1
! 29889: ac_status=$?
! 29890: grep -v '^ *+' conftest.er1 >conftest.err
! 29891: rm -f conftest.er1
! 29892: cat conftest.err >&5
! 29893: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29894: (exit $ac_status); } && {
! 29895: test -z "$ac_c_werror_flag" ||
! 29896: test ! -s conftest.err
! 29897: } && test -s conftest.$ac_objext; then
! 29898: ac_hi=$ac_mid
! 29899: else
! 29900: echo "$as_me: failed program was:" >&5
! 29901: sed 's/^/| /' conftest.$ac_ext >&5
! 29902:
! 29903: ac_lo=`expr '(' $ac_mid ')' + 1`
! 29904: fi
! 29905:
! 29906: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 29907: done
! 29908: case $ac_lo in
! 29909: ?*) ac_cv_sizeof_long=$ac_lo;;
! 29910: '') if test "$ac_cv_type_long" = yes; then
! 29911: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 29912: See \`config.log' for more details." >&5
! 29913: echo "$as_me: error: cannot compute sizeof (long)
! 29914: See \`config.log' for more details." >&2;}
! 29915: { (exit 77); exit 77; }; }
! 29916: else
! 29917: ac_cv_sizeof_long=0
! 29918: fi ;;
! 29919: esac
! 29920: else
! 29921: cat >conftest.$ac_ext <<_ACEOF
! 29922: /* confdefs.h. */
! 29923: _ACEOF
! 29924: cat confdefs.h >>conftest.$ac_ext
! 29925: cat >>conftest.$ac_ext <<_ACEOF
! 29926: /* end confdefs.h. */
! 29927: $ac_includes_default
! 29928: typedef long ac__type_sizeof_;
! 29929: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 29930: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 29931: #include <stdio.h>
! 29932: #include <stdlib.h>
! 29933: int
! 29934: main ()
! 29935: {
! 29936:
! 29937: FILE *f = fopen ("conftest.val", "w");
! 29938: if (! f)
! 29939: return 1;
! 29940: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 29941: {
! 29942: long int i = longval ();
! 29943: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 29944: return 1;
! 29945: fprintf (f, "%ld\n", i);
! 29946: }
! 29947: else
! 29948: {
! 29949: unsigned long int i = ulongval ();
! 29950: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 29951: return 1;
! 29952: fprintf (f, "%lu\n", i);
! 29953: }
! 29954: return ferror (f) || fclose (f) != 0;
1.1 misho 29955:
1.1.1.3 ! misho 29956: ;
! 29957: return 0;
! 29958: }
! 29959: _ACEOF
! 29960: rm -f conftest$ac_exeext
! 29961: if { (ac_try="$ac_link"
! 29962: case "(($ac_try" in
! 29963: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29964: *) ac_try_echo=$ac_try;;
! 29965: esac
! 29966: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29967: (eval "$ac_link") 2>&5
! 29968: ac_status=$?
! 29969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29970: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 29971: { (case "(($ac_try" in
! 29972: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 29973: *) ac_try_echo=$ac_try;;
! 29974: esac
! 29975: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 29976: (eval "$ac_try") 2>&5
! 29977: ac_status=$?
! 29978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29979: (exit $ac_status); }; }; then
! 29980: ac_cv_sizeof_long=`cat conftest.val`
1.1.1.2 misho 29981: else
1.1.1.3 ! misho 29982: echo "$as_me: program exited with status $ac_status" >&5
! 29983: echo "$as_me: failed program was:" >&5
! 29984: sed 's/^/| /' conftest.$ac_ext >&5
! 29985:
! 29986: ( exit $ac_status )
! 29987: if test "$ac_cv_type_long" = yes; then
! 29988: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 29989: See \`config.log' for more details." >&5
! 29990: echo "$as_me: error: cannot compute sizeof (long)
! 29991: See \`config.log' for more details." >&2;}
! 29992: { (exit 77); exit 77; }; }
1.1.1.2 misho 29993: else
29994: ac_cv_sizeof_long=0
29995: fi
1.1 misho 29996: fi
1.1.1.3 ! misho 29997: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 29998: fi
! 29999: rm -f conftest.val
1.1 misho 30000: fi
1.1.1.3 ! misho 30001: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 30002: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
1.1 misho 30003:
30004:
30005:
1.1.1.2 misho 30006: cat >>confdefs.h <<_ACEOF
30007: #define SIZEOF_LONG $ac_cv_sizeof_long
30008: _ACEOF
1.1 misho 30009:
30010:
1.1.1.3 ! misho 30011: { echo "$as_me:$LINENO: checking for int" >&5
! 30012: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
! 30013: if test "${ac_cv_type_int+set}" = set; then
! 30014: echo $ECHO_N "(cached) $ECHO_C" >&6
! 30015: else
! 30016: cat >conftest.$ac_ext <<_ACEOF
! 30017: /* confdefs.h. */
! 30018: _ACEOF
! 30019: cat confdefs.h >>conftest.$ac_ext
! 30020: cat >>conftest.$ac_ext <<_ACEOF
! 30021: /* end confdefs.h. */
! 30022: $ac_includes_default
! 30023: typedef int ac__type_new_;
! 30024: int
! 30025: main ()
! 30026: {
! 30027: if ((ac__type_new_ *) 0)
! 30028: return 0;
! 30029: if (sizeof (ac__type_new_))
! 30030: return 0;
! 30031: ;
! 30032: return 0;
! 30033: }
! 30034: _ACEOF
! 30035: rm -f conftest.$ac_objext
! 30036: if { (ac_try="$ac_compile"
! 30037: case "(($ac_try" in
! 30038: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30039: *) ac_try_echo=$ac_try;;
! 30040: esac
! 30041: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30042: (eval "$ac_compile") 2>conftest.er1
! 30043: ac_status=$?
! 30044: grep -v '^ *+' conftest.er1 >conftest.err
! 30045: rm -f conftest.er1
! 30046: cat conftest.err >&5
! 30047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30048: (exit $ac_status); } && {
! 30049: test -z "$ac_c_werror_flag" ||
! 30050: test ! -s conftest.err
! 30051: } && test -s conftest.$ac_objext; then
! 30052: ac_cv_type_int=yes
! 30053: else
! 30054: echo "$as_me: failed program was:" >&5
! 30055: sed 's/^/| /' conftest.$ac_ext >&5
! 30056:
! 30057: ac_cv_type_int=no
! 30058: fi
! 30059:
! 30060: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30061: fi
! 30062: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 30063: echo "${ECHO_T}$ac_cv_type_int" >&6; }
! 30064:
1.1.1.2 misho 30065: # The cast to long int works around a bug in the HP C Compiler
30066: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30067: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30068: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 30069: { echo "$as_me:$LINENO: checking size of int" >&5
! 30070: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
! 30071: if test "${ac_cv_sizeof_int+set}" = set; then
! 30072: echo $ECHO_N "(cached) $ECHO_C" >&6
! 30073: else
! 30074: if test "$cross_compiling" = yes; then
! 30075: # Depending upon the size, compute the lo and hi bounds.
! 30076: cat >conftest.$ac_ext <<_ACEOF
! 30077: /* confdefs.h. */
! 30078: _ACEOF
! 30079: cat confdefs.h >>conftest.$ac_ext
! 30080: cat >>conftest.$ac_ext <<_ACEOF
! 30081: /* end confdefs.h. */
! 30082: $ac_includes_default
! 30083: typedef int ac__type_sizeof_;
! 30084: int
! 30085: main ()
! 30086: {
! 30087: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 30088: test_array [0] = 0
! 30089:
! 30090: ;
! 30091: return 0;
! 30092: }
! 30093: _ACEOF
! 30094: rm -f conftest.$ac_objext
! 30095: if { (ac_try="$ac_compile"
! 30096: case "(($ac_try" in
! 30097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30098: *) ac_try_echo=$ac_try;;
! 30099: esac
! 30100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30101: (eval "$ac_compile") 2>conftest.er1
! 30102: ac_status=$?
! 30103: grep -v '^ *+' conftest.er1 >conftest.err
! 30104: rm -f conftest.er1
! 30105: cat conftest.err >&5
! 30106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30107: (exit $ac_status); } && {
! 30108: test -z "$ac_c_werror_flag" ||
! 30109: test ! -s conftest.err
! 30110: } && test -s conftest.$ac_objext; then
! 30111: ac_lo=0 ac_mid=0
! 30112: while :; do
! 30113: cat >conftest.$ac_ext <<_ACEOF
! 30114: /* confdefs.h. */
! 30115: _ACEOF
! 30116: cat confdefs.h >>conftest.$ac_ext
! 30117: cat >>conftest.$ac_ext <<_ACEOF
! 30118: /* end confdefs.h. */
! 30119: $ac_includes_default
! 30120: typedef int ac__type_sizeof_;
! 30121: int
! 30122: main ()
! 30123: {
! 30124: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 30125: test_array [0] = 0
! 30126:
! 30127: ;
! 30128: return 0;
! 30129: }
! 30130: _ACEOF
! 30131: rm -f conftest.$ac_objext
! 30132: if { (ac_try="$ac_compile"
! 30133: case "(($ac_try" in
! 30134: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30135: *) ac_try_echo=$ac_try;;
! 30136: esac
! 30137: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30138: (eval "$ac_compile") 2>conftest.er1
! 30139: ac_status=$?
! 30140: grep -v '^ *+' conftest.er1 >conftest.err
! 30141: rm -f conftest.er1
! 30142: cat conftest.err >&5
! 30143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30144: (exit $ac_status); } && {
! 30145: test -z "$ac_c_werror_flag" ||
! 30146: test ! -s conftest.err
! 30147: } && test -s conftest.$ac_objext; then
! 30148: ac_hi=$ac_mid; break
! 30149: else
! 30150: echo "$as_me: failed program was:" >&5
! 30151: sed 's/^/| /' conftest.$ac_ext >&5
! 30152:
! 30153: ac_lo=`expr $ac_mid + 1`
! 30154: if test $ac_lo -le $ac_mid; then
! 30155: ac_lo= ac_hi=
! 30156: break
! 30157: fi
! 30158: ac_mid=`expr 2 '*' $ac_mid + 1`
! 30159: fi
! 30160:
! 30161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30162: done
! 30163: else
! 30164: echo "$as_me: failed program was:" >&5
! 30165: sed 's/^/| /' conftest.$ac_ext >&5
! 30166:
! 30167: cat >conftest.$ac_ext <<_ACEOF
! 30168: /* confdefs.h. */
! 30169: _ACEOF
! 30170: cat confdefs.h >>conftest.$ac_ext
! 30171: cat >>conftest.$ac_ext <<_ACEOF
! 30172: /* end confdefs.h. */
! 30173: $ac_includes_default
! 30174: typedef int ac__type_sizeof_;
! 30175: int
! 30176: main ()
! 30177: {
! 30178: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 30179: test_array [0] = 0
! 30180:
! 30181: ;
! 30182: return 0;
! 30183: }
! 30184: _ACEOF
! 30185: rm -f conftest.$ac_objext
! 30186: if { (ac_try="$ac_compile"
! 30187: case "(($ac_try" in
! 30188: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30189: *) ac_try_echo=$ac_try;;
! 30190: esac
! 30191: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30192: (eval "$ac_compile") 2>conftest.er1
! 30193: ac_status=$?
! 30194: grep -v '^ *+' conftest.er1 >conftest.err
! 30195: rm -f conftest.er1
! 30196: cat conftest.err >&5
! 30197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30198: (exit $ac_status); } && {
! 30199: test -z "$ac_c_werror_flag" ||
! 30200: test ! -s conftest.err
! 30201: } && test -s conftest.$ac_objext; then
! 30202: ac_hi=-1 ac_mid=-1
! 30203: while :; do
! 30204: cat >conftest.$ac_ext <<_ACEOF
! 30205: /* confdefs.h. */
! 30206: _ACEOF
! 30207: cat confdefs.h >>conftest.$ac_ext
! 30208: cat >>conftest.$ac_ext <<_ACEOF
! 30209: /* end confdefs.h. */
! 30210: $ac_includes_default
! 30211: typedef int ac__type_sizeof_;
! 30212: int
! 30213: main ()
! 30214: {
! 30215: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 30216: test_array [0] = 0
! 30217:
! 30218: ;
! 30219: return 0;
! 30220: }
! 30221: _ACEOF
! 30222: rm -f conftest.$ac_objext
! 30223: if { (ac_try="$ac_compile"
! 30224: case "(($ac_try" in
! 30225: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30226: *) ac_try_echo=$ac_try;;
! 30227: esac
! 30228: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30229: (eval "$ac_compile") 2>conftest.er1
! 30230: ac_status=$?
! 30231: grep -v '^ *+' conftest.er1 >conftest.err
! 30232: rm -f conftest.er1
! 30233: cat conftest.err >&5
! 30234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30235: (exit $ac_status); } && {
! 30236: test -z "$ac_c_werror_flag" ||
! 30237: test ! -s conftest.err
! 30238: } && test -s conftest.$ac_objext; then
! 30239: ac_lo=$ac_mid; break
! 30240: else
! 30241: echo "$as_me: failed program was:" >&5
! 30242: sed 's/^/| /' conftest.$ac_ext >&5
! 30243:
! 30244: ac_hi=`expr '(' $ac_mid ')' - 1`
! 30245: if test $ac_mid -le $ac_hi; then
! 30246: ac_lo= ac_hi=
! 30247: break
! 30248: fi
! 30249: ac_mid=`expr 2 '*' $ac_mid`
! 30250: fi
! 30251:
! 30252: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30253: done
! 30254: else
! 30255: echo "$as_me: failed program was:" >&5
! 30256: sed 's/^/| /' conftest.$ac_ext >&5
! 30257:
! 30258: ac_lo= ac_hi=
! 30259: fi
! 30260:
! 30261: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30262: fi
! 30263:
! 30264: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30265: # Binary search between lo and hi bounds.
! 30266: while test "x$ac_lo" != "x$ac_hi"; do
! 30267: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 30268: cat >conftest.$ac_ext <<_ACEOF
! 30269: /* confdefs.h. */
! 30270: _ACEOF
! 30271: cat confdefs.h >>conftest.$ac_ext
! 30272: cat >>conftest.$ac_ext <<_ACEOF
! 30273: /* end confdefs.h. */
! 30274: $ac_includes_default
! 30275: typedef int ac__type_sizeof_;
! 30276: int
! 30277: main ()
! 30278: {
! 30279: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 30280: test_array [0] = 0
! 30281:
! 30282: ;
! 30283: return 0;
! 30284: }
! 30285: _ACEOF
! 30286: rm -f conftest.$ac_objext
! 30287: if { (ac_try="$ac_compile"
! 30288: case "(($ac_try" in
! 30289: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30290: *) ac_try_echo=$ac_try;;
! 30291: esac
! 30292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30293: (eval "$ac_compile") 2>conftest.er1
! 30294: ac_status=$?
! 30295: grep -v '^ *+' conftest.er1 >conftest.err
! 30296: rm -f conftest.er1
! 30297: cat conftest.err >&5
! 30298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30299: (exit $ac_status); } && {
! 30300: test -z "$ac_c_werror_flag" ||
! 30301: test ! -s conftest.err
! 30302: } && test -s conftest.$ac_objext; then
! 30303: ac_hi=$ac_mid
! 30304: else
! 30305: echo "$as_me: failed program was:" >&5
! 30306: sed 's/^/| /' conftest.$ac_ext >&5
! 30307:
! 30308: ac_lo=`expr '(' $ac_mid ')' + 1`
! 30309: fi
! 30310:
! 30311: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30312: done
! 30313: case $ac_lo in
! 30314: ?*) ac_cv_sizeof_int=$ac_lo;;
! 30315: '') if test "$ac_cv_type_int" = yes; then
! 30316: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 30317: See \`config.log' for more details." >&5
! 30318: echo "$as_me: error: cannot compute sizeof (int)
! 30319: See \`config.log' for more details." >&2;}
! 30320: { (exit 77); exit 77; }; }
! 30321: else
! 30322: ac_cv_sizeof_int=0
! 30323: fi ;;
! 30324: esac
! 30325: else
! 30326: cat >conftest.$ac_ext <<_ACEOF
! 30327: /* confdefs.h. */
! 30328: _ACEOF
! 30329: cat confdefs.h >>conftest.$ac_ext
! 30330: cat >>conftest.$ac_ext <<_ACEOF
! 30331: /* end confdefs.h. */
! 30332: $ac_includes_default
! 30333: typedef int ac__type_sizeof_;
! 30334: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 30335: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 30336: #include <stdio.h>
! 30337: #include <stdlib.h>
! 30338: int
! 30339: main ()
! 30340: {
! 30341:
! 30342: FILE *f = fopen ("conftest.val", "w");
! 30343: if (! f)
! 30344: return 1;
! 30345: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 30346: {
! 30347: long int i = longval ();
! 30348: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 30349: return 1;
! 30350: fprintf (f, "%ld\n", i);
! 30351: }
! 30352: else
! 30353: {
! 30354: unsigned long int i = ulongval ();
! 30355: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 30356: return 1;
! 30357: fprintf (f, "%lu\n", i);
! 30358: }
! 30359: return ferror (f) || fclose (f) != 0;
1.1 misho 30360:
1.1.1.3 ! misho 30361: ;
! 30362: return 0;
! 30363: }
! 30364: _ACEOF
! 30365: rm -f conftest$ac_exeext
! 30366: if { (ac_try="$ac_link"
! 30367: case "(($ac_try" in
! 30368: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30369: *) ac_try_echo=$ac_try;;
! 30370: esac
! 30371: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30372: (eval "$ac_link") 2>&5
! 30373: ac_status=$?
! 30374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30375: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 30376: { (case "(($ac_try" in
! 30377: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30378: *) ac_try_echo=$ac_try;;
! 30379: esac
! 30380: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30381: (eval "$ac_try") 2>&5
! 30382: ac_status=$?
! 30383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30384: (exit $ac_status); }; }; then
! 30385: ac_cv_sizeof_int=`cat conftest.val`
1.1.1.2 misho 30386: else
1.1.1.3 ! misho 30387: echo "$as_me: program exited with status $ac_status" >&5
! 30388: echo "$as_me: failed program was:" >&5
! 30389: sed 's/^/| /' conftest.$ac_ext >&5
! 30390:
! 30391: ( exit $ac_status )
! 30392: if test "$ac_cv_type_int" = yes; then
! 30393: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 30394: See \`config.log' for more details." >&5
! 30395: echo "$as_me: error: cannot compute sizeof (int)
! 30396: See \`config.log' for more details." >&2;}
! 30397: { (exit 77); exit 77; }; }
1.1.1.2 misho 30398: else
30399: ac_cv_sizeof_int=0
30400: fi
1.1 misho 30401: fi
1.1.1.3 ! misho 30402: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 30403: fi
! 30404: rm -f conftest.val
1.1.1.2 misho 30405: fi
1.1.1.3 ! misho 30406: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 30407: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
1.1 misho 30408:
30409:
30410:
1.1.1.2 misho 30411: cat >>confdefs.h <<_ACEOF
30412: #define SIZEOF_INT $ac_cv_sizeof_int
30413: _ACEOF
1.1 misho 30414:
30415:
30416:
1.1.1.3 ! misho 30417: { echo "$as_me:$LINENO: checking for int32_t" >&5
! 30418: echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
! 30419: if test "${ac_cv_int_type_int32_t+set}" = set; then
! 30420: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 30421: else
30422:
1.1.1.3 ! misho 30423: cat >conftest.$ac_ext <<_ACEOF
! 30424: /* confdefs.h. */
! 30425: _ACEOF
! 30426: cat confdefs.h >>conftest.$ac_ext
! 30427: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 30428: /* end confdefs.h. */
1.1 misho 30429:
1.1.1.2 misho 30430: #if HAVE_SYS_TYPES_H
30431: # include <sys/types.h>
30432: #endif
30433: #if HAVE_INTTYPES_H
30434: # include <inttypes.h>
30435: #elif HAVE_STDINT_H
30436: # include <stdint.h>
30437: #endif
30438: int
30439: main ()
30440: {
30441: if ((int32_t *) 0)
30442: return 0;
30443: if (sizeof (int32_t))
30444: return 0;
1.1 misho 30445:
1.1.1.2 misho 30446: ;
30447: return 0;
30448: }
30449: _ACEOF
1.1.1.3 ! misho 30450: rm -f conftest.$ac_objext
! 30451: if { (ac_try="$ac_compile"
! 30452: case "(($ac_try" in
! 30453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30454: *) ac_try_echo=$ac_try;;
! 30455: esac
! 30456: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30457: (eval "$ac_compile") 2>conftest.er1
! 30458: ac_status=$?
! 30459: grep -v '^ *+' conftest.er1 >conftest.err
! 30460: rm -f conftest.er1
! 30461: cat conftest.err >&5
! 30462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30463: (exit $ac_status); } && {
! 30464: test -z "$ac_c_werror_flag" ||
! 30465: test ! -s conftest.err
! 30466: } && test -s conftest.$ac_objext; then
1.1.1.2 misho 30467: ac_cv_int_type_int32_t=yes
30468: else
1.1.1.3 ! misho 30469: echo "$as_me: failed program was:" >&5
! 30470: sed 's/^/| /' conftest.$ac_ext >&5
! 30471:
! 30472: ac_cv_int_type_int32_t=no
1.1 misho 30473: fi
1.1.1.3 ! misho 30474:
1.1.1.2 misho 30475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 30476:
1.1.1.2 misho 30477: fi
1.1.1.3 ! misho 30478: { echo "$as_me:$LINENO: result: $ac_cv_int_type_int32_t" >&5
! 30479: echo "${ECHO_T}$ac_cv_int_type_int32_t" >&6; }
1.1.1.2 misho 30480: if test "$ac_cv_int_type_int32_t" = "yes"; then
1.1 misho 30481:
1.1.1.3 ! misho 30482: cat >>confdefs.h <<\_ACEOF
! 30483: #define HAVE_INT32_T 1
! 30484: _ACEOF
1.1 misho 30485:
30486: fi
30487:
30488:
1.1.1.3 ! misho 30489: { echo "$as_me:$LINENO: checking for uint32_t" >&5
! 30490: echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
! 30491: if test "${ac_cv_int_type_uint32_t+set}" = set; then
! 30492: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 30493: else
1.1 misho 30494:
1.1.1.3 ! misho 30495: cat >conftest.$ac_ext <<_ACEOF
! 30496: /* confdefs.h. */
! 30497: _ACEOF
! 30498: cat confdefs.h >>conftest.$ac_ext
! 30499: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 30500: /* end confdefs.h. */
1.1 misho 30501:
1.1.1.2 misho 30502: #if HAVE_SYS_TYPES_H
30503: # include <sys/types.h>
30504: #endif
30505: #if HAVE_INTTYPES_H
30506: # include <inttypes.h>
30507: #elif HAVE_STDINT_H
30508: # include <stdint.h>
30509: #endif
30510: int
30511: main ()
30512: {
30513: if ((uint32_t *) 0)
30514: return 0;
30515: if (sizeof (uint32_t))
30516: return 0;
1.1 misho 30517:
1.1.1.2 misho 30518: ;
30519: return 0;
30520: }
30521: _ACEOF
1.1.1.3 ! misho 30522: rm -f conftest.$ac_objext
! 30523: if { (ac_try="$ac_compile"
! 30524: case "(($ac_try" in
! 30525: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30526: *) ac_try_echo=$ac_try;;
! 30527: esac
! 30528: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30529: (eval "$ac_compile") 2>conftest.er1
! 30530: ac_status=$?
! 30531: grep -v '^ *+' conftest.er1 >conftest.err
! 30532: rm -f conftest.er1
! 30533: cat conftest.err >&5
! 30534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30535: (exit $ac_status); } && {
! 30536: test -z "$ac_c_werror_flag" ||
! 30537: test ! -s conftest.err
! 30538: } && test -s conftest.$ac_objext; then
1.1.1.2 misho 30539: ac_cv_int_type_uint32_t=yes
1.1 misho 30540: else
1.1.1.3 ! misho 30541: echo "$as_me: failed program was:" >&5
! 30542: sed 's/^/| /' conftest.$ac_ext >&5
! 30543:
! 30544: ac_cv_int_type_uint32_t=no
1.1.1.2 misho 30545: fi
1.1.1.3 ! misho 30546:
1.1.1.2 misho 30547: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 30548:
1.1.1.2 misho 30549: fi
1.1.1.3 ! misho 30550: { echo "$as_me:$LINENO: result: $ac_cv_int_type_uint32_t" >&5
! 30551: echo "${ECHO_T}$ac_cv_int_type_uint32_t" >&6; }
1.1.1.2 misho 30552: if test "$ac_cv_int_type_uint32_t" = "yes"; then
1.1 misho 30553:
1.1.1.3 ! misho 30554: cat >>confdefs.h <<\_ACEOF
! 30555: #define HAVE_UINT32_T 1
! 30556: _ACEOF
1.1 misho 30557:
30558: fi
30559:
30560:
1.1.1.3 ! misho 30561:
! 30562:
! 30563:
! 30564:
! 30565:
1.1.1.2 misho 30566: for ac_header in \
30567: sys/types.h \
30568: inttypes.h \
30569: stdint.h \
30570: string.h \
30571: stdlib.h
1.1 misho 30572:
1.1.1.3 ! misho 30573: do
! 30574: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 30575: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 30576: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 30577: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 30578: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 30579: echo $ECHO_N "(cached) $ECHO_C" >&6
! 30580: fi
! 30581: ac_res=`eval echo '${'$as_ac_Header'}'`
! 30582: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 30583: echo "${ECHO_T}$ac_res" >&6; }
! 30584: else
! 30585: # Is the header compilable?
! 30586: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 30587: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 30588: cat >conftest.$ac_ext <<_ACEOF
! 30589: /* confdefs.h. */
! 30590: _ACEOF
! 30591: cat confdefs.h >>conftest.$ac_ext
! 30592: cat >>conftest.$ac_ext <<_ACEOF
! 30593: /* end confdefs.h. */
! 30594: $ac_includes_default
! 30595: #include <$ac_header>
! 30596: _ACEOF
! 30597: rm -f conftest.$ac_objext
! 30598: if { (ac_try="$ac_compile"
! 30599: case "(($ac_try" in
! 30600: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30601: *) ac_try_echo=$ac_try;;
! 30602: esac
! 30603: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30604: (eval "$ac_compile") 2>conftest.er1
! 30605: ac_status=$?
! 30606: grep -v '^ *+' conftest.er1 >conftest.err
! 30607: rm -f conftest.er1
! 30608: cat conftest.err >&5
! 30609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30610: (exit $ac_status); } && {
! 30611: test -z "$ac_c_werror_flag" ||
! 30612: test ! -s conftest.err
! 30613: } && test -s conftest.$ac_objext; then
! 30614: ac_header_compiler=yes
! 30615: else
! 30616: echo "$as_me: failed program was:" >&5
! 30617: sed 's/^/| /' conftest.$ac_ext >&5
! 30618:
! 30619: ac_header_compiler=no
! 30620: fi
! 30621:
! 30622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 30623: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 30624: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 30625:
! 30626: # Is the header present?
! 30627: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 30628: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 30629: cat >conftest.$ac_ext <<_ACEOF
! 30630: /* confdefs.h. */
! 30631: _ACEOF
! 30632: cat confdefs.h >>conftest.$ac_ext
! 30633: cat >>conftest.$ac_ext <<_ACEOF
! 30634: /* end confdefs.h. */
! 30635: #include <$ac_header>
! 30636: _ACEOF
! 30637: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 30638: case "(($ac_try" in
! 30639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30640: *) ac_try_echo=$ac_try;;
! 30641: esac
! 30642: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30643: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 30644: ac_status=$?
! 30645: grep -v '^ *+' conftest.er1 >conftest.err
! 30646: rm -f conftest.er1
! 30647: cat conftest.err >&5
! 30648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30649: (exit $ac_status); } >/dev/null && {
! 30650: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 30651: test ! -s conftest.err
! 30652: }; then
! 30653: ac_header_preproc=yes
! 30654: else
! 30655: echo "$as_me: failed program was:" >&5
! 30656: sed 's/^/| /' conftest.$ac_ext >&5
! 30657:
! 30658: ac_header_preproc=no
! 30659: fi
! 30660:
! 30661: rm -f conftest.err conftest.$ac_ext
! 30662: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 30663: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 30664:
! 30665: # So? What about this header?
! 30666: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 30667: yes:no: )
! 30668: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 30669: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 30670: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 30671: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 30672: ac_header_preproc=yes
! 30673: ;;
! 30674: no:yes:* )
! 30675: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 30676: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 30677: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 30678: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 30679: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 30680: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 30681: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 30682: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 30683: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 30684: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 30685: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 30686: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 30687:
! 30688: ;;
! 30689: esac
! 30690: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 30691: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 30692: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 30693: echo $ECHO_N "(cached) $ECHO_C" >&6
! 30694: else
! 30695: eval "$as_ac_Header=\$ac_header_preproc"
! 30696: fi
! 30697: ac_res=`eval echo '${'$as_ac_Header'}'`
! 30698: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 30699: echo "${ECHO_T}$ac_res" >&6; }
! 30700:
! 30701: fi
! 30702: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1.1.2 misho 30703: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 30704: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.2 misho 30705: _ACEOF
1.1 misho 30706:
1.1.1.2 misho 30707: fi
1.1 misho 30708:
1.1.1.2 misho 30709: done
1.1 misho 30710:
30711:
1.1.1.3 ! misho 30712:
! 30713:
! 30714:
1.1.1.2 misho 30715: for ac_func in strtoll atoll strftime
1.1.1.3 ! misho 30716: do
! 30717: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 30718: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 30719: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 30720: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 30721: echo $ECHO_N "(cached) $ECHO_C" >&6
! 30722: else
! 30723: cat >conftest.$ac_ext <<_ACEOF
! 30724: /* confdefs.h. */
! 30725: _ACEOF
! 30726: cat confdefs.h >>conftest.$ac_ext
! 30727: cat >>conftest.$ac_ext <<_ACEOF
! 30728: /* end confdefs.h. */
! 30729: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 30730: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 30731: #define $ac_func innocuous_$ac_func
! 30732:
! 30733: /* System header to define __stub macros and hopefully few prototypes,
! 30734: which can conflict with char $ac_func (); below.
! 30735: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 30736: <limits.h> exists even on freestanding compilers. */
! 30737:
! 30738: #ifdef __STDC__
! 30739: # include <limits.h>
! 30740: #else
! 30741: # include <assert.h>
! 30742: #endif
! 30743:
! 30744: #undef $ac_func
! 30745:
! 30746: /* Override any GCC internal prototype to avoid an error.
! 30747: Use char because int might match the return type of a GCC
! 30748: builtin and then its argument prototype would still apply. */
! 30749: #ifdef __cplusplus
! 30750: extern "C"
! 30751: #endif
! 30752: char $ac_func ();
! 30753: /* The GNU C library defines this for functions which it implements
! 30754: to always fail with ENOSYS. Some functions are actually named
! 30755: something starting with __ and the normal name is an alias. */
! 30756: #if defined __stub_$ac_func || defined __stub___$ac_func
! 30757: choke me
! 30758: #endif
! 30759:
! 30760: int
! 30761: main ()
! 30762: {
! 30763: return $ac_func ();
! 30764: ;
! 30765: return 0;
! 30766: }
! 30767: _ACEOF
! 30768: rm -f conftest.$ac_objext conftest$ac_exeext
! 30769: if { (ac_try="$ac_link"
! 30770: case "(($ac_try" in
! 30771: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 30772: *) ac_try_echo=$ac_try;;
! 30773: esac
! 30774: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 30775: (eval "$ac_link") 2>conftest.er1
! 30776: ac_status=$?
! 30777: grep -v '^ *+' conftest.er1 >conftest.err
! 30778: rm -f conftest.er1
! 30779: cat conftest.err >&5
! 30780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30781: (exit $ac_status); } && {
! 30782: test -z "$ac_c_werror_flag" ||
! 30783: test ! -s conftest.err
! 30784: } && test -s conftest$ac_exeext &&
! 30785: $as_test_x conftest$ac_exeext; then
! 30786: eval "$as_ac_var=yes"
! 30787: else
! 30788: echo "$as_me: failed program was:" >&5
! 30789: sed 's/^/| /' conftest.$ac_ext >&5
! 30790:
! 30791: eval "$as_ac_var=no"
! 30792: fi
! 30793:
! 30794: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 30795: conftest$ac_exeext conftest.$ac_ext
! 30796: fi
! 30797: ac_res=`eval echo '${'$as_ac_var'}'`
! 30798: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 30799: echo "${ECHO_T}$ac_res" >&6; }
! 30800: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1.1.2 misho 30801: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 30802: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 30803: _ACEOF
30804:
30805: fi
1.1.1.2 misho 30806: done
1.1 misho 30807:
30808:
30809:
30810:
1.1.1.2 misho 30811: PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
30812: timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
30813: lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
1.1 misho 30814:
30815:
1.1.1.2 misho 30816: ext_builddir=ext/date
30817: ext_srcdir=$abs_srcdir/ext/date
1.1 misho 30818:
1.1.1.2 misho 30819: ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 30820:
1.1.1.2 misho 30821: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
30822: PHP_DATE_SHARED=no
1.1 misho 30823:
30824:
1.1.1.2 misho 30825: case ext/date in
30826: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
30827: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
30828: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
30829: esac
1.1 misho 30830:
30831:
30832:
1.1.1.2 misho 30833: b_c_pre=$php_c_pre
30834: b_cxx_pre=$php_cxx_pre
30835: b_c_meta=$php_c_meta
30836: b_cxx_meta=$php_cxx_meta
30837: b_c_post=$php_c_post
30838: b_cxx_post=$php_cxx_post
30839: b_lo=$php_lo
1.1 misho 30840:
30841:
1.1.1.2 misho 30842: old_IFS=$IFS
30843: for ac_src in php_date.c $timelib_sources; do
1.1 misho 30844:
1.1.1.2 misho 30845: IFS=.
30846: set $ac_src
30847: ac_obj=$1
30848: IFS=$old_IFS
1.1 misho 30849:
1.1.1.2 misho 30850: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 30851:
1.1.1.2 misho 30852: case $ac_src in
30853: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30854: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30855: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30856: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
30857: esac
1.1 misho 30858:
1.1.1.2 misho 30859: cat >>Makefile.objects<<EOF
30860: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
30861: $ac_comp
30862: EOF
30863: done
1.1 misho 30864:
30865:
1.1.1.2 misho 30866: EXT_STATIC="$EXT_STATIC date"
30867: if test "no" != "nocli"; then
30868: EXT_CLI_STATIC="$EXT_CLI_STATIC date"
30869: fi
30870: else
30871: if test "no" = "shared" || test "no" = "yes"; then
30872: PHP_DATE_SHARED=yes
1.1 misho 30873:
1.1.1.2 misho 30874: case ext/date in
30875: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
30876: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
30877: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
30878: esac
1.1 misho 30879:
30880:
30881:
1.1.1.2 misho 30882: b_c_pre=$shared_c_pre
30883: b_cxx_pre=$shared_cxx_pre
30884: b_c_meta=$shared_c_meta
30885: b_cxx_meta=$shared_cxx_meta
30886: b_c_post=$shared_c_post
30887: b_cxx_post=$shared_cxx_post
30888: b_lo=$shared_lo
1.1 misho 30889:
30890:
1.1.1.2 misho 30891: old_IFS=$IFS
30892: for ac_src in php_date.c $timelib_sources; do
1.1 misho 30893:
1.1.1.2 misho 30894: IFS=.
30895: set $ac_src
30896: ac_obj=$1
30897: IFS=$old_IFS
1.1 misho 30898:
1.1.1.2 misho 30899: shared_objects_date="$shared_objects_date $ac_bdir$ac_obj.lo"
1.1 misho 30900:
1.1.1.2 misho 30901: case $ac_src in
30902: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30903: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30904: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30905: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
30906: esac
1.1 misho 30907:
1.1.1.2 misho 30908: cat >>Makefile.objects<<EOF
30909: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
30910: $ac_comp
30911: EOF
30912: done
1.1 misho 30913:
1.1.1.2 misho 30914: case $host_alias in
30915: *netware*)
1.1 misho 30916:
1.1.1.2 misho 30917: install_modules="install-modules"
1.1 misho 30918:
1.1.1.2 misho 30919: case $host_alias in
30920: *aix*)
30921: suffix=so
30922: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdate.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(PHPDATE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdate.so '$ext_builddir'/phpdate.so'
30923: ;;
30924: *netware*)
30925: suffix=nlm
30926: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) -L$(top_builddir)/netware -lphp5lib $(DATE_SHARED_LIBADD)'
30927: ;;
30928: *)
30929: suffix=la
30930: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(PHPDATE_SHARED_LIBADD)'
30931: ;;
30932: esac
1.1 misho 30933:
1.1.1.2 misho 30934: if test "x" = "xyes"; then
30935: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdate.$suffix"
30936: else
30937: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdate.$suffix"
30938: fi
1.1 misho 30939:
1.1.1.2 misho 30940: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
1.1 misho 30941:
1.1.1.2 misho 30942: cat >>Makefile.objects<<EOF
30943: \$(phplibdir)/phpdate.$suffix: $ext_builddir/phpdate.$suffix
30944: \$(LIBTOOL) --mode=install cp $ext_builddir/phpdate.$suffix \$(phplibdir)
1.1 misho 30945:
1.1.1.2 misho 30946: $ext_builddir/phpdate.$suffix: \$(shared_objects_date) \$(PHPDATE_SHARED_DEPENDENCIES)
30947: $link_cmd
1.1 misho 30948:
1.1.1.2 misho 30949: EOF
1.1 misho 30950:
1.1.1.2 misho 30951: ;;
30952: *)
1.1 misho 30953:
1.1.1.2 misho 30954: install_modules="install-modules"
1.1 misho 30955:
1.1.1.2 misho 30956: case $host_alias in
30957: *aix*)
30958: suffix=so
30959: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/date.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(DATE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/date.so '$ext_builddir'/date.so'
30960: ;;
30961: *netware*)
30962: suffix=nlm
30963: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
30964: ;;
30965: *)
30966: suffix=la
30967: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(DATE_SHARED_LIBADD)'
30968: ;;
30969: esac
1.1 misho 30970:
1.1.1.2 misho 30971: if test "x" = "xyes"; then
30972: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/date.$suffix"
30973: else
30974: PHP_MODULES="$PHP_MODULES \$(phplibdir)/date.$suffix"
30975: fi
1.1 misho 30976:
1.1.1.2 misho 30977: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
1.1 misho 30978:
1.1.1.2 misho 30979: cat >>Makefile.objects<<EOF
30980: \$(phplibdir)/date.$suffix: $ext_builddir/date.$suffix
30981: \$(LIBTOOL) --mode=install cp $ext_builddir/date.$suffix \$(phplibdir)
1.1 misho 30982:
1.1.1.2 misho 30983: $ext_builddir/date.$suffix: \$(shared_objects_date) \$(DATE_SHARED_DEPENDENCIES)
30984: $link_cmd
1.1 misho 30985:
1.1.1.2 misho 30986: EOF
1.1 misho 30987:
1.1.1.2 misho 30988: ;;
30989: esac
1.1 misho 30990:
1.1.1.2 misho 30991: cat >>confdefs.h <<_ACEOF
30992: #define COMPILE_DL_DATE 1
30993: _ACEOF
1.1 misho 30994:
1.1.1.2 misho 30995: fi
30996: fi
1.1 misho 30997:
1.1.1.2 misho 30998: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
30999: PHP_DATE_SHARED=no
1.1.1.3 ! misho 31000: case "$PHP_SAPI" in
! 31001: cgi|embed)
1.1 misho 31002:
31003:
1.1.1.2 misho 31004: case ext/date in
31005: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31006: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31007: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31008: esac
1.1 misho 31009:
31010:
31011:
1.1.1.2 misho 31012: b_c_pre=$php_c_pre
31013: b_cxx_pre=$php_cxx_pre
31014: b_c_meta=$php_c_meta
31015: b_cxx_meta=$php_cxx_meta
31016: b_c_post=$php_c_post
31017: b_cxx_post=$php_cxx_post
31018: b_lo=$php_lo
1.1 misho 31019:
31020:
1.1.1.2 misho 31021: old_IFS=$IFS
31022: for ac_src in php_date.c $timelib_sources; do
1.1 misho 31023:
1.1.1.2 misho 31024: IFS=.
31025: set $ac_src
31026: ac_obj=$1
31027: IFS=$old_IFS
1.1 misho 31028:
1.1.1.2 misho 31029: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 31030:
1.1.1.2 misho 31031: case $ac_src in
31032: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31033: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31034: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31035: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31036: esac
1.1 misho 31037:
1.1.1.2 misho 31038: cat >>Makefile.objects<<EOF
31039: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31040: $ac_comp
31041: EOF
31042: done
1.1 misho 31043:
31044:
1.1.1.3 ! misho 31045: EXT_STATIC="$EXT_STATIC date"
! 31046: ;;
! 31047: *)
1.1 misho 31048:
31049:
1.1.1.2 misho 31050: case ext/date in
31051: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31052: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31053: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 31054: esac
31055:
31056:
31057:
1.1.1.2 misho 31058: b_c_pre=$php_c_pre
31059: b_cxx_pre=$php_cxx_pre
31060: b_c_meta=$php_c_meta
31061: b_cxx_meta=$php_cxx_meta
31062: b_c_post=$php_c_post
31063: b_cxx_post=$php_cxx_post
31064: b_lo=$php_lo
1.1 misho 31065:
31066:
1.1.1.2 misho 31067: old_IFS=$IFS
31068: for ac_src in php_date.c $timelib_sources; do
1.1 misho 31069:
1.1.1.2 misho 31070: IFS=.
31071: set $ac_src
31072: ac_obj=$1
31073: IFS=$old_IFS
1.1 misho 31074:
1.1.1.2 misho 31075: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 31076:
1.1.1.2 misho 31077: case $ac_src in
31078: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31079: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31080: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31081: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31082: esac
1.1 misho 31083:
1.1.1.2 misho 31084: cat >>Makefile.objects<<EOF
31085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31086: $ac_comp
31087: EOF
31088: done
1.1 misho 31089:
31090:
1.1.1.3 ! misho 31091: ;;
! 31092: esac
1.1.1.2 misho 31093: EXT_CLI_STATIC="$EXT_CLI_STATIC date"
31094: fi
1.1 misho 31095:
31096:
1.1.1.2 misho 31097: BUILD_DIR="$BUILD_DIR $ext_builddir"
1.1 misho 31098:
31099:
31100:
1.1.1.2 misho 31101: if test "$ext_builddir" = "."; then
31102: PHP_PECL_EXTENSION=date
1.1 misho 31103:
1.1.1.2 misho 31104: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
1.1 misho 31105:
1.1.1.2 misho 31106: fi
1.1 misho 31107:
31108:
31109:
31110:
1.1.1.2 misho 31111: $php_shtool mkdir -p $ext_builddir/lib
1.1 misho 31112:
31113:
31114:
1.1.1.2 misho 31115: if test "$ext_builddir/lib" != "/usr/include"; then
1.1 misho 31116:
1.1.1.2 misho 31117: if test -z "$ext_builddir/lib" || echo "$ext_builddir/lib" | grep '^/' >/dev/null ; then
31118: ai_p=$ext_builddir/lib
31119: else
1.1 misho 31120:
1.1.1.2 misho 31121: ep_dir="`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 31122:
1.1.1.2 misho 31123: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31124: ai_p="$ep_realdir/`basename \"$ext_builddir/lib\"`"
31125: fi
1.1 misho 31126:
31127:
31128:
1.1.1.2 misho 31129: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 31130:
1.1.1.2 misho 31131: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
31132: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31133: eval "INCLUDEPATH$unique=set"
1.1 misho 31134:
1.1.1.2 misho 31135: if test ""; then
31136: INCLUDES="-I$ai_p $INCLUDES"
31137: else
31138: INCLUDES="$INCLUDES -I$ai_p"
31139: fi
1.1 misho 31140:
1.1.1.2 misho 31141: fi
1.1 misho 31142:
1.1.1.2 misho 31143: fi
1.1 misho 31144:
31145:
1.1.1.2 misho 31146: if test "$ext_srcdir/lib" != "/usr/include"; then
1.1 misho 31147:
1.1.1.2 misho 31148: if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
31149: ai_p=$ext_srcdir/lib
31150: else
1.1 misho 31151:
1.1.1.2 misho 31152: ep_dir="`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 31153:
1.1.1.2 misho 31154: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31155: ai_p="$ep_realdir/`basename \"$ext_srcdir/lib\"`"
31156: fi
1.1 misho 31157:
31158:
31159:
1.1.1.2 misho 31160: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 31161:
1.1.1.2 misho 31162: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
31163: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31164: eval "INCLUDEPATH$unique=set"
1.1 misho 31165:
1.1.1.2 misho 31166: if test ""; then
31167: INCLUDES="-I$ai_p $INCLUDES"
31168: else
31169: INCLUDES="$INCLUDES -I$ai_p"
31170: fi
1.1 misho 31171:
1.1.1.2 misho 31172: fi
1.1 misho 31173:
1.1.1.2 misho 31174: fi
1.1 misho 31175:
31176:
31177:
31178:
1.1.1.2 misho 31179: header_path=ext/date
31180: for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do
31181: hp_hf="$header_path/$header_file"
1.1 misho 31182:
31183:
1.1.1.2 misho 31184: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 31185:
1.1.1.2 misho 31186: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
31187: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31188: eval "INSTALLHEADERS$unique=set"
1.1 misho 31189:
1.1.1.2 misho 31190: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
1.1 misho 31191:
31192: fi
31193:
1.1.1.2 misho 31194: done
1.1 misho 31195:
31196:
31197:
1.1.1.2 misho 31198: cat > $ext_builddir/lib/timelib_config.h <<EOF
31199: #ifdef PHP_WIN32
31200: # include "config.w32.h"
31201: #else
31202: # include <php_config.h>
31203: #endif
31204: EOF
1.1 misho 31205:
31206:
31207:
1.1.1.2 misho 31208: php_with_regex=php
1.1 misho 31209:
31210:
31211:
1.1.1.2 misho 31212: # Check whether --with-regex was given.
1.1.1.3 ! misho 31213: if test "${with_regex+set}" = set; then
1.1.1.2 misho 31214: withval=$with_regex; PHP_REGEX=$withval
31215: else
1.1 misho 31216:
1.1.1.2 misho 31217: PHP_REGEX=php
1.1 misho 31218:
31219:
31220: fi
31221:
31222:
1.1.1.2 misho 31223: ext_output=$PHP_REGEX
1.1 misho 31224:
31225:
31226:
31227:
31228:
1.1.1.2 misho 31229: case $PHP_REGEX in
31230: system)
31231: if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then
31232: REGEX_TYPE=php
31233: else
31234: REGEX_TYPE=system
31235: fi
31236: ;;
31237: yes | php)
31238: REGEX_TYPE=php
31239: ;;
31240: *)
31241: REGEX_TYPE=php
1.1.1.3 ! misho 31242: { echo "$as_me:$LINENO: WARNING: Invalid regex library type selected. Using default value: php" >&5
! 31243: echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;}
1.1.1.2 misho 31244: ;;
31245: esac
31246:
1.1.1.3 ! misho 31247: { echo "$as_me:$LINENO: checking which regex library to use" >&5
! 31248: echo $ECHO_N "checking which regex library to use... $ECHO_C" >&6; }
! 31249: { echo "$as_me:$LINENO: result: $REGEX_TYPE" >&5
! 31250: echo "${ECHO_T}$REGEX_TYPE" >&6; }
1.1 misho 31251:
1.1.1.2 misho 31252: if test "$REGEX_TYPE" = "php"; then
31253: ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c"
31254: ereg_regex_headers="regex/"
31255: PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp"
1.1 misho 31256: fi
31257:
31258:
1.1.1.2 misho 31259: ext_builddir=ext/ereg
31260: ext_srcdir=$abs_srcdir/ext/ereg
1.1 misho 31261:
1.1.1.2 misho 31262: ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 31263:
1.1.1.2 misho 31264: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
31265: PHP_EREG_SHARED=no
1.1 misho 31266:
31267:
1.1.1.2 misho 31268: case ext/ereg in
31269: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31270: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31271: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31272: esac
1.1 misho 31273:
31274:
31275:
1.1.1.2 misho 31276: b_c_pre=$php_c_pre
31277: b_cxx_pre=$php_cxx_pre
31278: b_c_meta=$php_c_meta
31279: b_cxx_meta=$php_cxx_meta
31280: b_c_post=$php_c_post
31281: b_cxx_post=$php_cxx_post
31282: b_lo=$php_lo
1.1 misho 31283:
31284:
1.1.1.2 misho 31285: old_IFS=$IFS
31286: for ac_src in ereg.c $ereg_regex_sources; do
1.1 misho 31287:
1.1.1.2 misho 31288: IFS=.
31289: set $ac_src
31290: ac_obj=$1
31291: IFS=$old_IFS
1.1 misho 31292:
1.1.1.2 misho 31293: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 31294:
1.1.1.2 misho 31295: case $ac_src in
31296: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31297: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31298: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31299: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31300: esac
1.1 misho 31301:
1.1.1.2 misho 31302: cat >>Makefile.objects<<EOF
31303: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31304: $ac_comp
31305: EOF
31306: done
1.1 misho 31307:
31308:
1.1.1.2 misho 31309: EXT_STATIC="$EXT_STATIC ereg"
31310: if test "no" != "nocli"; then
31311: EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
31312: fi
31313: else
31314: if test "no" = "shared" || test "no" = "yes"; then
31315: PHP_EREG_SHARED=yes
1.1 misho 31316:
1.1.1.2 misho 31317: case ext/ereg in
31318: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31319: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31320: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31321: esac
1.1 misho 31322:
31323:
31324:
31325: b_c_pre=$shared_c_pre
31326: b_cxx_pre=$shared_cxx_pre
31327: b_c_meta=$shared_c_meta
31328: b_cxx_meta=$shared_cxx_meta
31329: b_c_post=$shared_c_post
31330: b_cxx_post=$shared_cxx_post
31331: b_lo=$shared_lo
31332:
31333:
31334: old_IFS=$IFS
1.1.1.2 misho 31335: for ac_src in ereg.c $ereg_regex_sources; do
1.1 misho 31336:
31337: IFS=.
31338: set $ac_src
31339: ac_obj=$1
31340: IFS=$old_IFS
31341:
1.1.1.2 misho 31342: shared_objects_ereg="$shared_objects_ereg $ac_bdir$ac_obj.lo"
1.1 misho 31343:
31344: case $ac_src in
31345: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31346: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31347: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31348: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31349: esac
31350:
31351: cat >>Makefile.objects<<EOF
31352: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31353: $ac_comp
31354: EOF
31355: done
31356:
31357: case $host_alias in
31358: *netware*)
31359:
31360: install_modules="install-modules"
31361:
31362: case $host_alias in
31363: *aix*)
31364: suffix=so
1.1.1.2 misho 31365: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpereg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(PHPEREG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpereg.so '$ext_builddir'/phpereg.so'
1.1 misho 31366: ;;
31367: *netware*)
31368: suffix=nlm
1.1.1.2 misho 31369: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) -L$(top_builddir)/netware -lphp5lib $(EREG_SHARED_LIBADD)'
1.1 misho 31370: ;;
31371: *)
31372: suffix=la
1.1.1.2 misho 31373: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(PHPEREG_SHARED_LIBADD)'
1.1 misho 31374: ;;
31375: esac
31376:
31377: if test "x" = "xyes"; then
1.1.1.2 misho 31378: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpereg.$suffix"
1.1 misho 31379: else
1.1.1.2 misho 31380: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpereg.$suffix"
1.1 misho 31381: fi
31382:
1.1.1.2 misho 31383: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
1.1 misho 31384:
31385: cat >>Makefile.objects<<EOF
1.1.1.2 misho 31386: \$(phplibdir)/phpereg.$suffix: $ext_builddir/phpereg.$suffix
31387: \$(LIBTOOL) --mode=install cp $ext_builddir/phpereg.$suffix \$(phplibdir)
1.1 misho 31388:
1.1.1.2 misho 31389: $ext_builddir/phpereg.$suffix: \$(shared_objects_ereg) \$(PHPEREG_SHARED_DEPENDENCIES)
1.1 misho 31390: $link_cmd
31391:
31392: EOF
31393:
31394: ;;
31395: *)
31396:
31397: install_modules="install-modules"
31398:
31399: case $host_alias in
31400: *aix*)
31401: suffix=so
1.1.1.2 misho 31402: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ereg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(EREG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ereg.so '$ext_builddir'/ereg.so'
1.1 misho 31403: ;;
31404: *netware*)
31405: suffix=nlm
1.1.1.2 misho 31406: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) -L$(top_builddir)/netware -lphp5lib $(G_SHARED_LIBADD)'
1.1 misho 31407: ;;
31408: *)
31409: suffix=la
1.1.1.2 misho 31410: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(EREG_SHARED_LIBADD)'
1.1 misho 31411: ;;
31412: esac
31413:
31414: if test "x" = "xyes"; then
1.1.1.2 misho 31415: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ereg.$suffix"
1.1 misho 31416: else
1.1.1.2 misho 31417: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ereg.$suffix"
1.1 misho 31418: fi
31419:
1.1.1.2 misho 31420: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
1.1 misho 31421:
31422: cat >>Makefile.objects<<EOF
1.1.1.2 misho 31423: \$(phplibdir)/ereg.$suffix: $ext_builddir/ereg.$suffix
31424: \$(LIBTOOL) --mode=install cp $ext_builddir/ereg.$suffix \$(phplibdir)
1.1 misho 31425:
1.1.1.2 misho 31426: $ext_builddir/ereg.$suffix: \$(shared_objects_ereg) \$(EREG_SHARED_DEPENDENCIES)
1.1 misho 31427: $link_cmd
31428:
31429: EOF
31430:
31431: ;;
31432: esac
31433:
31434: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 31435: #define COMPILE_DL_EREG 1
1.1 misho 31436: _ACEOF
31437:
31438: fi
31439: fi
31440:
31441: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
1.1.1.2 misho 31442: PHP_EREG_SHARED=no
1.1.1.3 ! misho 31443: case "$PHP_SAPI" in
! 31444: cgi|embed)
1.1 misho 31445:
31446:
1.1.1.2 misho 31447: case ext/ereg in
1.1 misho 31448: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 31449: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31450: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 31451: esac
31452:
31453:
31454:
31455: b_c_pre=$php_c_pre
31456: b_cxx_pre=$php_cxx_pre
31457: b_c_meta=$php_c_meta
31458: b_cxx_meta=$php_cxx_meta
31459: b_c_post=$php_c_post
31460: b_cxx_post=$php_cxx_post
31461: b_lo=$php_lo
31462:
31463:
31464: old_IFS=$IFS
1.1.1.2 misho 31465: for ac_src in ereg.c $ereg_regex_sources; do
1.1 misho 31466:
31467: IFS=.
31468: set $ac_src
31469: ac_obj=$1
31470: IFS=$old_IFS
31471:
1.1.1.2 misho 31472: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 31473:
31474: case $ac_src in
31475: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31476: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31477: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31478: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31479: esac
31480:
31481: cat >>Makefile.objects<<EOF
31482: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31483: $ac_comp
31484: EOF
31485: done
31486:
31487:
1.1.1.3 ! misho 31488: EXT_STATIC="$EXT_STATIC ereg"
! 31489: ;;
! 31490: *)
1.1 misho 31491:
31492:
1.1.1.2 misho 31493: case ext/ereg in
1.1 misho 31494: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 31495: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31496: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 31497: esac
31498:
31499:
31500:
31501: b_c_pre=$php_c_pre
31502: b_cxx_pre=$php_cxx_pre
31503: b_c_meta=$php_c_meta
31504: b_cxx_meta=$php_cxx_meta
31505: b_c_post=$php_c_post
31506: b_cxx_post=$php_cxx_post
31507: b_lo=$php_lo
31508:
31509:
31510: old_IFS=$IFS
1.1.1.2 misho 31511: for ac_src in ereg.c $ereg_regex_sources; do
1.1 misho 31512:
31513: IFS=.
31514: set $ac_src
31515: ac_obj=$1
31516: IFS=$old_IFS
31517:
1.1.1.2 misho 31518: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 31519:
31520: case $ac_src in
31521: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31522: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31523: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31524: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31525: esac
31526:
31527: cat >>Makefile.objects<<EOF
31528: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31529: $ac_comp
31530: EOF
31531: done
31532:
31533:
1.1.1.3 ! misho 31534: ;;
! 31535: esac
1.1.1.2 misho 31536: EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
1.1 misho 31537: fi
31538:
31539:
31540: BUILD_DIR="$BUILD_DIR $ext_builddir"
31541:
31542:
31543:
31544: if test "$ext_builddir" = "."; then
1.1.1.2 misho 31545: PHP_PECL_EXTENSION=ereg
1.1 misho 31546:
31547: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
31548:
31549: fi
31550:
31551:
31552:
1.1.1.2 misho 31553: header_path=ext/ereg
31554: for header_file in php_ereg.h php_regex.h $ereg_regex_headers; do
31555: hp_hf="$header_path/$header_file"
1.1 misho 31556:
31557:
1.1.1.2 misho 31558: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 31559:
1.1.1.2 misho 31560: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
31561: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31562: eval "INSTALLHEADERS$unique=set"
1.1 misho 31563:
1.1.1.2 misho 31564: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
1.1 misho 31565:
1.1.1.2 misho 31566: fi
1.1 misho 31567:
1.1.1.2 misho 31568: done
1.1 misho 31569:
31570:
31571:
1.1.1.2 misho 31572: if test "$REGEX_TYPE" = "php"; then
1.1 misho 31573:
1.1.1.3 ! misho 31574: cat >>confdefs.h <<\_ACEOF
! 31575: #define HAVE_REGEX_T_RE_MAGIC 1
! 31576: _ACEOF
1.1 misho 31577:
31578:
1.1.1.3 ! misho 31579: cat >>confdefs.h <<\_ACEOF
! 31580: #define HSREGEX 1
! 31581: _ACEOF
1.1 misho 31582:
31583:
1.1.1.3 ! misho 31584: cat >>confdefs.h <<\_ACEOF
! 31585: #define REGEX 1
! 31586: _ACEOF
1.1 misho 31587:
31588:
31589:
1.1.1.2 misho 31590: $php_shtool mkdir -p $ext_builddir/regex
31591:
31592:
31593:
31594: if test "$ext_srcdir/regex" != "/usr/include"; then
31595:
31596: if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then
31597: ai_p=$ext_srcdir/regex
1.1 misho 31598: else
31599:
1.1.1.2 misho 31600: ep_dir="`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 31601:
31602: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 31603: ai_p="$ep_realdir/`basename \"$ext_srcdir/regex\"`"
1.1 misho 31604: fi
31605:
31606:
31607:
31608: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31609:
31610: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
31611: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31612: eval "INCLUDEPATH$unique=set"
31613:
31614: if test ""; then
31615: INCLUDES="-I$ai_p $INCLUDES"
31616: else
31617: INCLUDES="$INCLUDES -I$ai_p"
31618: fi
31619:
31620: fi
31621:
31622: fi
31623:
1.1.1.2 misho 31624: elif test "$REGEX_TYPE" = "system"; then
1.1 misho 31625:
1.1.1.3 ! misho 31626: cat >>confdefs.h <<\_ACEOF
! 31627: #define REGEX 0
! 31628: _ACEOF
1.1 misho 31629:
1.1.1.3 ! misho 31630: { echo "$as_me:$LINENO: checking whether field re_magic exists in struct regex_t" >&5
! 31631: echo $ECHO_N "checking whether field re_magic exists in struct regex_t... $ECHO_C" >&6; }
! 31632: if test "${ac_cv_regex_t_re_magic+set}" = set; then
! 31633: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 31634: else
1.1 misho 31635:
1.1.1.3 ! misho 31636: cat >conftest.$ac_ext <<_ACEOF
! 31637: /* confdefs.h. */
! 31638: _ACEOF
! 31639: cat confdefs.h >>conftest.$ac_ext
! 31640: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 31641: /* end confdefs.h. */
31642: #include <sys/types.h>
31643: #include <regex.h>
31644: int
31645: main ()
31646: {
31647: regex_t rt; rt.re_magic;
31648: ;
31649: return 0;
31650: }
31651: _ACEOF
1.1.1.3 ! misho 31652: rm -f conftest.$ac_objext
! 31653: if { (ac_try="$ac_compile"
! 31654: case "(($ac_try" in
! 31655: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 31656: *) ac_try_echo=$ac_try;;
! 31657: esac
! 31658: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 31659: (eval "$ac_compile") 2>conftest.er1
! 31660: ac_status=$?
! 31661: grep -v '^ *+' conftest.er1 >conftest.err
! 31662: rm -f conftest.er1
! 31663: cat conftest.err >&5
! 31664: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 31665: (exit $ac_status); } && {
! 31666: test -z "$ac_c_werror_flag" ||
! 31667: test ! -s conftest.err
! 31668: } && test -s conftest.$ac_objext; then
1.1.1.2 misho 31669: ac_cv_regex_t_re_magic=yes
31670: else
1.1.1.3 ! misho 31671: echo "$as_me: failed program was:" >&5
! 31672: sed 's/^/| /' conftest.$ac_ext >&5
! 31673:
! 31674: ac_cv_regex_t_re_magic=no
1.1.1.2 misho 31675: fi
1.1.1.3 ! misho 31676:
1.1.1.2 misho 31677: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31678: fi
1.1.1.3 ! misho 31679: { echo "$as_me:$LINENO: result: $ac_cv_regex_t_re_magic" >&5
! 31680: echo "${ECHO_T}$ac_cv_regex_t_re_magic" >&6; }
1.1.1.2 misho 31681: if test "$ac_cv_regex_t_re_magic" = "yes"; then
1.1 misho 31682:
1.1.1.3 ! misho 31683: cat >>confdefs.h <<\_ACEOF
! 31684: #define HAVE_REGEX_T_RE_MAGIC
! 31685: _ACEOF
1.1 misho 31686:
1.1.1.2 misho 31687: fi
31688: fi
1.1 misho 31689:
31690:
31691:
1.1.1.2 misho 31692: php_enable_libxml=yes
1.1 misho 31693:
1.1.1.3 ! misho 31694: { echo "$as_me:$LINENO: checking whether to enable LIBXML support" >&5
! 31695: echo $ECHO_N "checking whether to enable LIBXML support... $ECHO_C" >&6; }
1.1.1.2 misho 31696: # Check whether --enable-libxml was given.
1.1.1.3 ! misho 31697: if test "${enable_libxml+set}" = set; then
1.1.1.2 misho 31698: enableval=$enable_libxml; PHP_LIBXML=$enableval
31699: else
1.1 misho 31700:
1.1.1.2 misho 31701: PHP_LIBXML=yes
31702: test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL
1.1 misho 31703:
1.1.1.2 misho 31704: fi
1.1 misho 31705:
31706:
31707:
1.1.1.2 misho 31708: ext_output="yes, shared"
31709: ext_shared=yes
31710: case $PHP_LIBXML in
31711: shared,*)
31712: PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'`
31713: ;;
31714: shared)
31715: PHP_LIBXML=yes
31716: ;;
31717: no)
31718: ext_output=no
31719: ext_shared=no
31720: ;;
31721: *)
31722: ext_output=yes
31723: ext_shared=no
31724: ;;
31725: esac
1.1 misho 31726:
31727:
31728:
1.1.1.3 ! misho 31729: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 31730: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 31731:
31732:
31733:
31734:
1.1.1.2 misho 31735: if test -z "$PHP_LIBXML_DIR"; then
1.1 misho 31736:
1.1.1.2 misho 31737: php_with_libxml_dir=no
1.1 misho 31738:
1.1.1.3 ! misho 31739: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 31740: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 31741:
1.1.1.2 misho 31742: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 31743: if test "${with_libxml_dir+set}" = set; then
1.1.1.2 misho 31744: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
31745: else
1.1 misho 31746:
1.1.1.2 misho 31747: PHP_LIBXML_DIR=no
1.1 misho 31748:
31749:
1.1.1.2 misho 31750: fi
1.1 misho 31751:
31752:
1.1.1.2 misho 31753: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 31754: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 31755: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 31756:
31757:
31758:
1.1.1.2 misho 31759: fi
1.1 misho 31760:
1.1.1.2 misho 31761: if test "$PHP_LIBXML" != "no"; then
1.1 misho 31762:
1.1.1.2 misho 31763: ext_shared=no
1.1 misho 31764:
31765:
1.1.1.3 ! misho 31766: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 31767: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 31768: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 31769: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 31770: else
1.1 misho 31771:
1.1.1.2 misho 31772: for i in $PHP_LIBXML_DIR /usr/local /usr; do
31773: if test -x "$i/bin/xml2-config"; then
31774: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
31775: break
31776: fi
31777: done
1.1 misho 31778:
1.1.1.2 misho 31779: fi
1.1.1.3 ! misho 31780: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 31781: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 31782:
1.1.1.2 misho 31783: if test -x "$ac_cv_php_xml2_config_path"; then
31784: XML2_CONFIG="$ac_cv_php_xml2_config_path"
31785: libxml_full_version=`$XML2_CONFIG --version`
31786: ac_IFS=$IFS
31787: IFS="."
31788: set $libxml_full_version
31789: IFS=$ac_IFS
31790: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
31791: if test "$LIBXML_VERSION" -ge "2006011"; then
31792: LIBXML_LIBS=`$XML2_CONFIG --libs`
31793: LIBXML_INCS=`$XML2_CONFIG --cflags`
1.1 misho 31794:
1.1.1.2 misho 31795: for ac_i in $LIBXML_LIBS; do
31796: case $ac_i in
31797: -pthread)
31798: if test "$ext_shared" = "yes"; then
31799: LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread"
31800: else
1.1 misho 31801:
31802:
1.1.1.2 misho 31803: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 31804:
1.1.1.2 misho 31805: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
31806: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31807: eval "EXTRA_LDFLAGS$unique=set"
31808: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
31809: fi
1.1 misho 31810:
1.1.1.2 misho 31811: fi
31812: ;;
31813: -l*)
31814: ac_ii=`echo $ac_i|cut -c 3-`
1.1 misho 31815:
31816:
1.1.1.2 misho 31817: case $ac_ii in
31818: c|c_r|pthread*) ;;
31819: *)
31820: if test "$ext_shared" = "yes"; then
31821: LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii"
31822: else
1.1 misho 31823:
31824:
1.1.1.2 misho 31825: case $ac_ii in
31826: c|c_r|pthread*) ;;
31827: *)
31828: LIBS="$LIBS -l$ac_ii"
31829: ;;
1.1 misho 31830: esac
31831:
31832:
1.1.1.2 misho 31833: fi
31834: ;;
31835: esac
1.1 misho 31836:
31837:
31838: ;;
31839: -L*)
31840: ac_ii=`echo $ac_i|cut -c 3-`
31841:
31842: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
31843:
31844: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
31845: ai_p=$ac_ii
31846: else
31847:
31848: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
31849:
31850: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31851: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
31852: fi
31853:
31854:
31855: if test "$ext_shared" = "yes"; then
31856: LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD"
31857: test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD"
31858: else
31859:
31860:
31861:
31862: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31863:
31864: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31865: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31866: eval "LIBPATH$unique=set"
31867:
31868: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31869: LDFLAGS="$LDFLAGS -L$ai_p"
31870: PHP_RPATHS="$PHP_RPATHS $ai_p"
31871:
31872: fi
31873:
31874:
31875: fi
31876:
31877: fi
31878:
31879: ;;
31880: esac
31881: done
31882:
31883:
31884: for ac_i in $LIBXML_INCS; do
31885: case $ac_i in
31886: -I*)
31887: ac_ii=`echo $ac_i|cut -c 3-`
31888:
31889: if test "$ac_ii" != "/usr/include"; then
31890:
31891: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
31892: ai_p=$ac_ii
31893: else
31894:
31895: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
31896:
31897: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31898: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
31899: fi
31900:
31901:
31902:
31903: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31904:
31905: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
31906: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31907: eval "INCLUDEPATH$unique=set"
31908:
31909: if test ""; then
31910: INCLUDES="-I$ai_p $INCLUDES"
31911: else
31912: INCLUDES="$INCLUDES -I$ai_p"
31913: fi
31914:
31915: fi
31916:
31917: fi
31918:
31919: ;;
31920: esac
31921: done
31922:
31923:
1.1.1.3 ! misho 31924: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 31925: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 31926: if test "${php_cv_libxml_build_works+set}" = set; then
! 31927: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 31928: else
31929:
31930:
31931: old_LIBS=$LIBS
31932: LIBS="
31933: $LIBXML_SHARED_LIBADD
31934: $LIBS"
1.1.1.3 ! misho 31935: if test "$cross_compiling" = yes; then
1.1 misho 31936:
31937: LIBS=$old_LIBS
31938:
31939: else
1.1.1.3 ! misho 31940: cat >conftest.$ac_ext <<_ACEOF
! 31941: /* confdefs.h. */
! 31942: _ACEOF
! 31943: cat confdefs.h >>conftest.$ac_ext
! 31944: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 31945: /* end confdefs.h. */
31946:
31947:
31948: char xmlInitParser();
31949: int main() {
31950: xmlInitParser();
31951: return 0;
31952: }
31953:
31954: _ACEOF
1.1.1.3 ! misho 31955: rm -f conftest$ac_exeext
! 31956: if { (ac_try="$ac_link"
! 31957: case "(($ac_try" in
! 31958: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 31959: *) ac_try_echo=$ac_try;;
! 31960: esac
! 31961: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 31962: (eval "$ac_link") 2>&5
! 31963: ac_status=$?
! 31964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 31965: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 31966: { (case "(($ac_try" in
! 31967: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 31968: *) ac_try_echo=$ac_try;;
! 31969: esac
! 31970: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 31971: (eval "$ac_try") 2>&5
! 31972: ac_status=$?
! 31973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 31974: (exit $ac_status); }; }; then
1.1 misho 31975:
31976: LIBS=$old_LIBS
31977:
31978: php_cv_libxml_build_works=yes
31979:
31980:
31981: else
1.1.1.3 ! misho 31982: echo "$as_me: program exited with status $ac_status" >&5
! 31983: echo "$as_me: failed program was:" >&5
! 31984: sed 's/^/| /' conftest.$ac_ext >&5
! 31985:
! 31986: ( exit $ac_status )
1.1 misho 31987:
31988: LIBS=$old_LIBS
31989:
1.1.1.3 ! misho 31990: { echo "$as_me:$LINENO: result: no" >&5
! 31991: echo "${ECHO_T}no" >&6; }
! 31992: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 31993: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 31994: { (exit 1); exit 1; }; }
1.1 misho 31995:
31996:
31997: fi
1.1.1.3 ! misho 31998: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 31999: fi
32000:
32001:
32002:
1.1.1.3 ! misho 32003:
1.1 misho 32004: fi
1.1.1.3 ! misho 32005: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 32006: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 32007: if test "$php_cv_libxml_build_works" = "yes"; then
32008:
1.1.1.3 ! misho 32009: cat >>confdefs.h <<\_ACEOF
! 32010: #define HAVE_LIBXML 1
! 32011: _ACEOF
1.1 misho 32012:
32013: fi
32014:
32015:
1.1.1.3 ! misho 32016: cat >>confdefs.h <<\_ACEOF
! 32017: #define HAVE_LIBXML 1
! 32018: _ACEOF
1.1 misho 32019:
32020:
32021: ext_builddir=ext/libxml
32022: ext_srcdir=$abs_srcdir/ext/libxml
32023:
32024: ac_extra=
32025:
32026: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
32027: PHP_LIBXML_SHARED=no
32028:
32029:
32030: case ext/libxml in
32031: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32032: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32033: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32034: esac
32035:
32036:
32037:
32038: b_c_pre=$php_c_pre
32039: b_cxx_pre=$php_cxx_pre
32040: b_c_meta=$php_c_meta
32041: b_cxx_meta=$php_cxx_meta
32042: b_c_post=$php_c_post
32043: b_cxx_post=$php_cxx_post
32044: b_lo=$php_lo
32045:
32046:
32047: old_IFS=$IFS
32048: for ac_src in libxml.c; do
32049:
32050: IFS=.
32051: set $ac_src
32052: ac_obj=$1
32053: IFS=$old_IFS
32054:
32055: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
32056:
32057: case $ac_src in
32058: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32059: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32060: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32061: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32062: esac
32063:
32064: cat >>Makefile.objects<<EOF
32065: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32066: $ac_comp
32067: EOF
32068: done
32069:
32070:
32071: EXT_STATIC="$EXT_STATIC libxml"
32072: if test "$ext_shared" != "nocli"; then
32073: EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
32074: fi
32075: else
32076: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
32077: PHP_LIBXML_SHARED=yes
32078:
32079: case ext/libxml in
32080: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32081: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32082: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32083: esac
32084:
32085:
32086:
32087: b_c_pre=$shared_c_pre
32088: b_cxx_pre=$shared_cxx_pre
32089: b_c_meta=$shared_c_meta
32090: b_cxx_meta=$shared_cxx_meta
32091: b_c_post=$shared_c_post
32092: b_cxx_post=$shared_cxx_post
32093: b_lo=$shared_lo
32094:
32095:
32096: old_IFS=$IFS
32097: for ac_src in libxml.c; do
32098:
32099: IFS=.
32100: set $ac_src
32101: ac_obj=$1
32102: IFS=$old_IFS
32103:
32104: shared_objects_libxml="$shared_objects_libxml $ac_bdir$ac_obj.lo"
32105:
32106: case $ac_src in
32107: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32108: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32109: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32110: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32111: esac
32112:
32113: cat >>Makefile.objects<<EOF
32114: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32115: $ac_comp
32116: EOF
32117: done
32118:
32119: case $host_alias in
32120: *netware*)
32121:
32122: install_modules="install-modules"
32123:
32124: case $host_alias in
32125: *aix*)
32126: suffix=so
32127: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phplibxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(PHPLIBXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phplibxml.so '$ext_builddir'/phplibxml.so'
32128: ;;
32129: *netware*)
32130: suffix=nlm
32131: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) -L$(top_builddir)/netware -lphp5lib $(LIBXML_SHARED_LIBADD)'
32132: ;;
32133: *)
32134: suffix=la
32135: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(PHPLIBXML_SHARED_LIBADD)'
32136: ;;
32137: esac
32138:
32139: if test "x" = "xyes"; then
32140: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phplibxml.$suffix"
32141: else
32142: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phplibxml.$suffix"
32143: fi
32144:
32145: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
32146:
32147: cat >>Makefile.objects<<EOF
32148: \$(phplibdir)/phplibxml.$suffix: $ext_builddir/phplibxml.$suffix
32149: \$(LIBTOOL) --mode=install cp $ext_builddir/phplibxml.$suffix \$(phplibdir)
32150:
32151: $ext_builddir/phplibxml.$suffix: \$(shared_objects_libxml) \$(PHPLIBXML_SHARED_DEPENDENCIES)
32152: $link_cmd
32153:
32154: EOF
32155:
32156: ;;
32157: *)
32158:
32159: install_modules="install-modules"
32160:
32161: case $host_alias in
32162: *aix*)
32163: suffix=so
32164: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/libxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(LIBXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/libxml.so '$ext_builddir'/libxml.so'
32165: ;;
32166: *netware*)
32167: suffix=nlm
32168: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) -L$(top_builddir)/netware -lphp5lib $(XML_SHARED_LIBADD)'
32169: ;;
32170: *)
32171: suffix=la
32172: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(LIBXML_SHARED_LIBADD)'
32173: ;;
32174: esac
32175:
32176: if test "x" = "xyes"; then
32177: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/libxml.$suffix"
32178: else
32179: PHP_MODULES="$PHP_MODULES \$(phplibdir)/libxml.$suffix"
32180: fi
32181:
32182: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
32183:
32184: cat >>Makefile.objects<<EOF
32185: \$(phplibdir)/libxml.$suffix: $ext_builddir/libxml.$suffix
32186: \$(LIBTOOL) --mode=install cp $ext_builddir/libxml.$suffix \$(phplibdir)
32187:
32188: $ext_builddir/libxml.$suffix: \$(shared_objects_libxml) \$(LIBXML_SHARED_DEPENDENCIES)
32189: $link_cmd
32190:
32191: EOF
32192:
32193: ;;
32194: esac
32195:
32196: cat >>confdefs.h <<_ACEOF
32197: #define COMPILE_DL_LIBXML 1
32198: _ACEOF
32199:
32200: fi
32201: fi
32202:
32203: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
32204: PHP_LIBXML_SHARED=no
1.1.1.3 ! misho 32205: case "$PHP_SAPI" in
! 32206: cgi|embed)
1.1 misho 32207:
32208:
32209: case ext/libxml in
32210: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32211: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32212: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32213: esac
32214:
32215:
32216:
32217: b_c_pre=$php_c_pre
32218: b_cxx_pre=$php_cxx_pre
32219: b_c_meta=$php_c_meta
32220: b_cxx_meta=$php_cxx_meta
32221: b_c_post=$php_c_post
32222: b_cxx_post=$php_cxx_post
32223: b_lo=$php_lo
32224:
32225:
32226: old_IFS=$IFS
32227: for ac_src in libxml.c; do
32228:
32229: IFS=.
32230: set $ac_src
32231: ac_obj=$1
32232: IFS=$old_IFS
32233:
1.1.1.2 misho 32234: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 32235:
32236: case $ac_src in
32237: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32238: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32239: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32240: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32241: esac
32242:
32243: cat >>Makefile.objects<<EOF
32244: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32245: $ac_comp
32246: EOF
32247: done
32248:
32249:
1.1.1.3 ! misho 32250: EXT_STATIC="$EXT_STATIC libxml"
! 32251: ;;
! 32252: *)
1.1 misho 32253:
32254:
32255: case ext/libxml in
32256: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32257: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32258: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32259: esac
32260:
32261:
32262:
32263: b_c_pre=$php_c_pre
32264: b_cxx_pre=$php_cxx_pre
32265: b_c_meta=$php_c_meta
32266: b_cxx_meta=$php_cxx_meta
32267: b_c_post=$php_c_post
32268: b_cxx_post=$php_cxx_post
32269: b_lo=$php_lo
32270:
32271:
32272: old_IFS=$IFS
32273: for ac_src in libxml.c; do
32274:
32275: IFS=.
32276: set $ac_src
32277: ac_obj=$1
32278: IFS=$old_IFS
32279:
1.1.1.2 misho 32280: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 32281:
32282: case $ac_src in
32283: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32284: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32285: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32286: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32287: esac
32288:
32289: cat >>Makefile.objects<<EOF
32290: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32291: $ac_comp
32292: EOF
32293: done
32294:
32295:
1.1.1.3 ! misho 32296: ;;
! 32297: esac
1.1 misho 32298: EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
32299: fi
32300:
32301:
32302: BUILD_DIR="$BUILD_DIR $ext_builddir"
32303:
32304:
32305:
32306: if test "$ext_builddir" = "."; then
32307: PHP_PECL_EXTENSION=libxml
32308:
32309: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
32310:
32311: fi
32312:
32313:
32314:
32315: for header_file in ext/libxml/php_libxml.h; do
32316:
32317:
32318: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
32319:
32320: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
32321: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32322: eval "INSTALLHEADERS$unique=set"
32323:
32324: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
32325:
32326: fi
32327:
32328: done
32329:
32330:
32331:
32332: else
1.1.1.3 ! misho 32333: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 32334: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 32335: { (exit 1); exit 1; }; }
1.1 misho 32336: fi
32337: else
1.1.1.3 ! misho 32338: { { echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
! 32339: echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
! 32340: { (exit 1); exit 1; }; }
1.1 misho 32341:
32342: fi
32343:
32344: fi
32345:
32346:
32347:
32348: php_with_openssl=no
32349:
1.1.1.3 ! misho 32350: { echo "$as_me:$LINENO: checking for OpenSSL support" >&5
! 32351: echo $ECHO_N "checking for OpenSSL support... $ECHO_C" >&6; }
1.1 misho 32352:
32353: # Check whether --with-openssl was given.
1.1.1.3 ! misho 32354: if test "${with_openssl+set}" = set; then
1.1 misho 32355: withval=$with_openssl; PHP_OPENSSL=$withval
32356: else
32357:
32358: PHP_OPENSSL=no
32359: test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL
32360:
32361: fi
32362:
32363:
32364:
32365: ext_output="yes, shared"
32366: ext_shared=yes
32367: case $PHP_OPENSSL in
32368: shared,*)
32369: PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'`
32370: ;;
32371: shared)
32372: PHP_OPENSSL=yes
32373: ;;
32374: no)
32375: ext_output=no
32376: ext_shared=no
32377: ;;
32378: *)
32379: ext_output=yes
32380: ext_shared=no
32381: ;;
32382: esac
32383:
32384:
32385:
1.1.1.3 ! misho 32386: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 32387: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 32388:
32389:
32390:
32391:
32392:
32393: php_with_kerberos=no
32394:
1.1.1.3 ! misho 32395: { echo "$as_me:$LINENO: checking for Kerberos support" >&5
! 32396: echo $ECHO_N "checking for Kerberos support... $ECHO_C" >&6; }
1.1 misho 32397:
32398: # Check whether --with-kerberos was given.
1.1.1.3 ! misho 32399: if test "${with_kerberos+set}" = set; then
1.1 misho 32400: withval=$with_kerberos; PHP_KERBEROS=$withval
32401: else
32402:
32403: PHP_KERBEROS=no
32404:
32405:
32406: fi
32407:
32408:
32409: ext_output=$PHP_KERBEROS
1.1.1.3 ! misho 32410: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 32411: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 32412:
32413:
32414:
32415:
32416: if test "$PHP_OPENSSL" != "no"; then
32417:
32418: ext_builddir=ext/openssl
32419: ext_srcdir=$abs_srcdir/ext/openssl
32420:
32421: ac_extra=
32422:
32423: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
32424: PHP_OPENSSL_SHARED=no
32425:
32426:
32427: case ext/openssl in
32428: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32429: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32430: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32431: esac
32432:
32433:
32434:
32435: b_c_pre=$php_c_pre
32436: b_cxx_pre=$php_cxx_pre
32437: b_c_meta=$php_c_meta
32438: b_cxx_meta=$php_cxx_meta
32439: b_c_post=$php_c_post
32440: b_cxx_post=$php_cxx_post
32441: b_lo=$php_lo
32442:
32443:
32444: old_IFS=$IFS
32445: for ac_src in openssl.c xp_ssl.c; do
32446:
32447: IFS=.
32448: set $ac_src
32449: ac_obj=$1
32450: IFS=$old_IFS
32451:
32452: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
32453:
32454: case $ac_src in
32455: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32456: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32457: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32458: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32459: esac
32460:
32461: cat >>Makefile.objects<<EOF
32462: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32463: $ac_comp
32464: EOF
32465: done
32466:
32467:
32468: EXT_STATIC="$EXT_STATIC openssl"
32469: if test "$ext_shared" != "nocli"; then
32470: EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
32471: fi
32472: else
32473: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
32474: PHP_OPENSSL_SHARED=yes
32475:
32476: case ext/openssl in
32477: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32478: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32479: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32480: esac
32481:
32482:
32483:
32484: b_c_pre=$shared_c_pre
32485: b_cxx_pre=$shared_cxx_pre
32486: b_c_meta=$shared_c_meta
32487: b_cxx_meta=$shared_cxx_meta
32488: b_c_post=$shared_c_post
32489: b_cxx_post=$shared_cxx_post
32490: b_lo=$shared_lo
32491:
32492:
32493: old_IFS=$IFS
32494: for ac_src in openssl.c xp_ssl.c; do
32495:
32496: IFS=.
32497: set $ac_src
32498: ac_obj=$1
32499: IFS=$old_IFS
32500:
32501: shared_objects_openssl="$shared_objects_openssl $ac_bdir$ac_obj.lo"
32502:
32503: case $ac_src in
32504: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32505: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32506: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32507: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32508: esac
32509:
32510: cat >>Makefile.objects<<EOF
32511: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32512: $ac_comp
32513: EOF
32514: done
32515:
32516: case $host_alias in
32517: *netware*)
32518:
32519: install_modules="install-modules"
32520:
32521: case $host_alias in
32522: *aix*)
32523: suffix=so
32524: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpopenssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(PHPOPENSSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpopenssl.so '$ext_builddir'/phpopenssl.so'
32525: ;;
32526: *netware*)
32527: suffix=nlm
32528: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) -L$(top_builddir)/netware -lphp5lib $(OPENSSL_SHARED_LIBADD)'
32529: ;;
32530: *)
32531: suffix=la
32532: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(PHPOPENSSL_SHARED_LIBADD)'
32533: ;;
32534: esac
32535:
32536: if test "x" = "xyes"; then
32537: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpopenssl.$suffix"
32538: else
32539: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpopenssl.$suffix"
32540: fi
32541:
32542: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
32543:
32544: cat >>Makefile.objects<<EOF
32545: \$(phplibdir)/phpopenssl.$suffix: $ext_builddir/phpopenssl.$suffix
32546: \$(LIBTOOL) --mode=install cp $ext_builddir/phpopenssl.$suffix \$(phplibdir)
32547:
32548: $ext_builddir/phpopenssl.$suffix: \$(shared_objects_openssl) \$(PHPOPENSSL_SHARED_DEPENDENCIES)
32549: $link_cmd
32550:
32551: EOF
32552:
32553: ;;
32554: *)
32555:
32556: install_modules="install-modules"
32557:
32558: case $host_alias in
32559: *aix*)
32560: suffix=so
32561: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/openssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(OPENSSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/openssl.so '$ext_builddir'/openssl.so'
32562: ;;
32563: *netware*)
32564: suffix=nlm
32565: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) -L$(top_builddir)/netware -lphp5lib $(NSSL_SHARED_LIBADD)'
32566: ;;
32567: *)
32568: suffix=la
32569: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(OPENSSL_SHARED_LIBADD)'
32570: ;;
32571: esac
32572:
32573: if test "x" = "xyes"; then
32574: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/openssl.$suffix"
32575: else
32576: PHP_MODULES="$PHP_MODULES \$(phplibdir)/openssl.$suffix"
32577: fi
32578:
32579: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
32580:
32581: cat >>Makefile.objects<<EOF
32582: \$(phplibdir)/openssl.$suffix: $ext_builddir/openssl.$suffix
32583: \$(LIBTOOL) --mode=install cp $ext_builddir/openssl.$suffix \$(phplibdir)
32584:
32585: $ext_builddir/openssl.$suffix: \$(shared_objects_openssl) \$(OPENSSL_SHARED_DEPENDENCIES)
32586: $link_cmd
32587:
32588: EOF
32589:
32590: ;;
32591: esac
32592:
32593: cat >>confdefs.h <<_ACEOF
32594: #define COMPILE_DL_OPENSSL 1
32595: _ACEOF
32596:
32597: fi
32598: fi
32599:
32600: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
32601: PHP_OPENSSL_SHARED=no
1.1.1.3 ! misho 32602: case "$PHP_SAPI" in
! 32603: cgi|embed)
1.1 misho 32604:
32605:
32606: case ext/openssl in
32607: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32608: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32609: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32610: esac
32611:
32612:
32613:
32614: b_c_pre=$php_c_pre
32615: b_cxx_pre=$php_cxx_pre
32616: b_c_meta=$php_c_meta
32617: b_cxx_meta=$php_cxx_meta
32618: b_c_post=$php_c_post
32619: b_cxx_post=$php_cxx_post
32620: b_lo=$php_lo
32621:
32622:
32623: old_IFS=$IFS
32624: for ac_src in openssl.c xp_ssl.c; do
32625:
32626: IFS=.
32627: set $ac_src
32628: ac_obj=$1
32629: IFS=$old_IFS
32630:
1.1.1.2 misho 32631: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 32632:
32633: case $ac_src in
32634: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32635: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32636: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32637: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32638: esac
32639:
32640: cat >>Makefile.objects<<EOF
32641: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32642: $ac_comp
32643: EOF
32644: done
32645:
32646:
1.1.1.3 ! misho 32647: EXT_STATIC="$EXT_STATIC openssl"
! 32648: ;;
! 32649: *)
1.1 misho 32650:
32651:
32652: case ext/openssl in
32653: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32654: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32655: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32656: esac
32657:
32658:
32659:
32660: b_c_pre=$php_c_pre
32661: b_cxx_pre=$php_cxx_pre
32662: b_c_meta=$php_c_meta
32663: b_cxx_meta=$php_cxx_meta
32664: b_c_post=$php_c_post
32665: b_cxx_post=$php_cxx_post
32666: b_lo=$php_lo
32667:
32668:
32669: old_IFS=$IFS
32670: for ac_src in openssl.c xp_ssl.c; do
32671:
32672: IFS=.
32673: set $ac_src
32674: ac_obj=$1
32675: IFS=$old_IFS
32676:
1.1.1.2 misho 32677: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 32678:
32679: case $ac_src in
32680: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32681: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32682: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32683: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32684: esac
32685:
32686: cat >>Makefile.objects<<EOF
32687: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32688: $ac_comp
32689: EOF
32690: done
32691:
32692:
1.1.1.3 ! misho 32693: ;;
! 32694: esac
1.1 misho 32695: EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
32696: fi
32697:
32698:
32699: BUILD_DIR="$BUILD_DIR $ext_builddir"
32700:
32701:
32702:
32703: if test "$ext_builddir" = "."; then
32704: PHP_PECL_EXTENSION=openssl
32705:
32706: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
32707:
32708: fi
32709:
32710:
32711: PHP_VAR_SUBST="$PHP_VAR_SUBST OPENSSL_SHARED_LIBADD"
32712:
32713:
32714: if test "$PHP_KERBEROS" != "no"; then
32715:
32716: found_kerberos=no
32717: unset KERBEROS_CFLAGS
32718: unset KERBEROS_LIBS
32719:
32720: if test -z "$KRB5_CONFIG"; then
32721: # Extract the first word of "krb5-config", so it can be a program name with args.
32722: set dummy krb5-config; ac_word=$2
1.1.1.3 ! misho 32723: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 32724: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 32725: if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
! 32726: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 32727: else
32728: case $KRB5_CONFIG in
32729: [\\/]* | ?:[\\/]*)
32730: ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
32731: ;;
32732: *)
32733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32734: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
32735: for as_dir in $as_dummy
32736: do
32737: IFS=$as_save_IFS
32738: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 32739: for ac_exec_ext in '' $ac_executable_extensions; do
! 32740: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 32741: ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 32742: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 32743: break 2
32744: fi
32745: done
1.1.1.3 ! misho 32746: done
1.1 misho 32747: IFS=$as_save_IFS
32748:
32749: test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
32750: ;;
32751: esac
32752: fi
32753: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
32754: if test -n "$KRB5_CONFIG"; then
1.1.1.3 ! misho 32755: { echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
! 32756: echo "${ECHO_T}$KRB5_CONFIG" >&6; }
1.1 misho 32757: else
1.1.1.3 ! misho 32758: { echo "$as_me:$LINENO: result: no" >&5
! 32759: echo "${ECHO_T}no" >&6; }
1.1 misho 32760: fi
32761:
32762:
32763: fi
32764:
32765: if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
32766: KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
32767: KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
32768:
32769: if test -n "$KERBEROS_LIBS"; then
32770: found_kerberos=yes
32771:
32772: for ac_i in $KERBEROS_LIBS; do
32773: case $ac_i in
32774: -pthread)
32775: if test "$ext_shared" = "yes"; then
32776: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
32777: else
32778:
32779:
32780: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
32781:
32782: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
32783: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32784: eval "EXTRA_LDFLAGS$unique=set"
32785: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
32786: fi
32787:
32788: fi
32789: ;;
32790: -l*)
32791: ac_ii=`echo $ac_i|cut -c 3-`
32792:
32793:
32794: case $ac_ii in
32795: c|c_r|pthread*) ;;
32796: *)
32797: if test "$ext_shared" = "yes"; then
32798: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
32799: else
32800:
32801:
32802: case $ac_ii in
32803: c|c_r|pthread*) ;;
32804: *)
32805: LIBS="$LIBS -l$ac_ii"
32806: ;;
32807: esac
32808:
32809:
32810: fi
32811: ;;
32812: esac
32813:
32814:
32815: ;;
32816: -L*)
32817: ac_ii=`echo $ac_i|cut -c 3-`
32818:
32819: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
32820:
32821: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
32822: ai_p=$ac_ii
32823: else
32824:
32825: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
32826:
32827: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32828: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
32829: fi
32830:
32831:
32832: if test "$ext_shared" = "yes"; then
32833: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
32834: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
32835: else
32836:
32837:
32838:
32839: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32840:
32841: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32842: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32843: eval "LIBPATH$unique=set"
32844:
32845: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32846: LDFLAGS="$LDFLAGS -L$ai_p"
32847: PHP_RPATHS="$PHP_RPATHS $ai_p"
32848:
32849: fi
32850:
32851:
32852: fi
32853:
32854: fi
32855:
32856: ;;
32857: esac
32858: done
32859:
32860:
32861: for ac_i in $KERBEROS_CFLAGS; do
32862: case $ac_i in
32863: -I*)
32864: ac_ii=`echo $ac_i|cut -c 3-`
32865:
32866: if test "$ac_ii" != "/usr/include"; then
32867:
32868: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
32869: ai_p=$ac_ii
32870: else
32871:
32872: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
32873:
32874: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32875: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
32876: fi
32877:
32878:
32879:
32880: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32881:
32882: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
32883: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32884: eval "INCLUDEPATH$unique=set"
32885:
32886: if test ""; then
32887: INCLUDES="-I$ai_p $INCLUDES"
32888: else
32889: INCLUDES="$INCLUDES -I$ai_p"
32890: fi
32891:
32892: fi
32893:
32894: fi
32895:
32896: ;;
32897: esac
32898: done
32899:
32900: fi
32901: fi
32902:
32903: if test "$found_kerberos" = "no"; then
32904:
32905: if test "$PHP_KERBEROS" = "yes"; then
32906: PHP_KERBEROS="/usr/kerberos /usr/local /usr"
32907: fi
32908:
32909: for i in $PHP_KERBEROS; do
32910: if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
32911: PHP_KERBEROS_DIR=$i
32912: break
32913: fi
32914: done
32915:
32916: if test "$PHP_KERBEROS_DIR"; then
32917: found_kerberos=yes
32918:
32919: if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
32920:
32921: if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
32922: ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
32923: else
32924:
32925: ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
32926:
32927: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32928: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
32929: fi
32930:
32931:
32932: if test "$ext_shared" = "yes"; then
32933: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
32934: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
32935: else
32936:
32937:
32938:
32939: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32940:
32941: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32942: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32943: eval "LIBPATH$unique=set"
32944:
32945: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32946: LDFLAGS="$LDFLAGS -L$ai_p"
32947: PHP_RPATHS="$PHP_RPATHS $ai_p"
32948:
32949: fi
32950:
32951:
32952: fi
32953:
32954: fi
32955:
32956:
32957:
32958: case gssapi_krb5 in
32959: c|c_r|pthread*) ;;
32960: *)
32961: if test "$ext_shared" = "yes"; then
32962: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5"
32963: else
32964:
32965:
32966: case gssapi_krb5 in
32967: c|c_r|pthread*) ;;
32968: *)
32969: LIBS="$LIBS -lgssapi_krb5"
32970: ;;
32971: esac
32972:
32973:
32974: fi
32975: ;;
32976: esac
32977:
32978:
32979:
32980:
32981: case krb5 in
32982: c|c_r|pthread*) ;;
32983: *)
32984: if test "$ext_shared" = "yes"; then
32985: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5"
32986: else
32987:
32988:
32989: case krb5 in
32990: c|c_r|pthread*) ;;
32991: *)
32992: LIBS="$LIBS -lkrb5"
32993: ;;
32994: esac
32995:
32996:
32997: fi
32998: ;;
32999: esac
33000:
33001:
33002:
33003:
33004: case k5crypto in
33005: c|c_r|pthread*) ;;
33006: *)
33007: if test "$ext_shared" = "yes"; then
33008: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto"
33009: else
33010:
33011:
33012: case k5crypto in
33013: c|c_r|pthread*) ;;
33014: *)
33015: LIBS="$LIBS -lk5crypto"
33016: ;;
33017: esac
33018:
33019:
33020: fi
33021: ;;
33022: esac
33023:
33024:
33025:
33026:
33027: case com_err in
33028: c|c_r|pthread*) ;;
33029: *)
33030: if test "$ext_shared" = "yes"; then
33031: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err"
33032: else
33033:
33034:
33035: case com_err in
33036: c|c_r|pthread*) ;;
33037: *)
33038: LIBS="$LIBS -lcom_err"
33039: ;;
33040: esac
33041:
33042:
33043: fi
33044: ;;
33045: esac
33046:
33047:
33048:
33049: if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
33050:
33051: if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
33052: ai_p=$PHP_KERBEROS_DIR/include
33053: else
33054:
33055: ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
33056:
33057: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33058: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
33059: fi
33060:
33061:
33062:
33063: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33064:
33065: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
33066: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33067: eval "INCLUDEPATH$unique=set"
33068:
33069: if test ""; then
33070: INCLUDES="-I$ai_p $INCLUDES"
33071: else
33072: INCLUDES="$INCLUDES -I$ai_p"
33073: fi
33074:
33075: fi
33076:
33077: fi
33078:
33079: fi
33080: fi
33081:
33082: if test "$found_kerberos" = "yes"; then
33083: :
33084:
33085: fi
33086:
33087: fi
33088:
1.1.1.3 ! misho 33089: { echo "$as_me:$LINENO: checking for DSA_get_default_method in -lssl" >&5
! 33090: echo $ECHO_N "checking for DSA_get_default_method in -lssl... $ECHO_C" >&6; }
! 33091: if test "${ac_cv_lib_ssl_DSA_get_default_method+set}" = set; then
! 33092: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 33093: else
33094: ac_check_lib_save_LIBS=$LIBS
33095: LIBS="-lssl $LIBS"
1.1.1.3 ! misho 33096: cat >conftest.$ac_ext <<_ACEOF
! 33097: /* confdefs.h. */
! 33098: _ACEOF
! 33099: cat confdefs.h >>conftest.$ac_ext
! 33100: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 33101: /* end confdefs.h. */
33102:
33103: /* Override any GCC internal prototype to avoid an error.
33104: Use char because int might match the return type of a GCC
33105: builtin and then its argument prototype would still apply. */
33106: #ifdef __cplusplus
33107: extern "C"
33108: #endif
33109: char DSA_get_default_method ();
33110: int
33111: main ()
33112: {
33113: return DSA_get_default_method ();
33114: ;
33115: return 0;
33116: }
33117: _ACEOF
1.1.1.3 ! misho 33118: rm -f conftest.$ac_objext conftest$ac_exeext
! 33119: if { (ac_try="$ac_link"
! 33120: case "(($ac_try" in
! 33121: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 33122: *) ac_try_echo=$ac_try;;
! 33123: esac
! 33124: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 33125: (eval "$ac_link") 2>conftest.er1
! 33126: ac_status=$?
! 33127: grep -v '^ *+' conftest.er1 >conftest.err
! 33128: rm -f conftest.er1
! 33129: cat conftest.err >&5
! 33130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 33131: (exit $ac_status); } && {
! 33132: test -z "$ac_c_werror_flag" ||
! 33133: test ! -s conftest.err
! 33134: } && test -s conftest$ac_exeext &&
! 33135: $as_test_x conftest$ac_exeext; then
1.1 misho 33136: ac_cv_lib_ssl_DSA_get_default_method=yes
33137: else
1.1.1.3 ! misho 33138: echo "$as_me: failed program was:" >&5
! 33139: sed 's/^/| /' conftest.$ac_ext >&5
! 33140:
! 33141: ac_cv_lib_ssl_DSA_get_default_method=no
1.1 misho 33142: fi
1.1.1.3 ! misho 33143:
! 33144: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 33145: conftest$ac_exeext conftest.$ac_ext
1.1 misho 33146: LIBS=$ac_check_lib_save_LIBS
33147: fi
1.1.1.3 ! misho 33148: { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5
! 33149: echo "${ECHO_T}$ac_cv_lib_ssl_DSA_get_default_method" >&6; }
! 33150: if test $ac_cv_lib_ssl_DSA_get_default_method = yes; then
1.1 misho 33151:
1.1.1.3 ! misho 33152: cat >>confdefs.h <<\_ACEOF
! 33153: #define HAVE_DSA_DEFAULT_METHOD 1
! 33154: _ACEOF
1.1 misho 33155:
33156: fi
33157:
1.1.1.3 ! misho 33158: { echo "$as_me:$LINENO: checking for X509_free in -lcrypto" >&5
! 33159: echo $ECHO_N "checking for X509_free in -lcrypto... $ECHO_C" >&6; }
! 33160: if test "${ac_cv_lib_crypto_X509_free+set}" = set; then
! 33161: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 33162: else
33163: ac_check_lib_save_LIBS=$LIBS
33164: LIBS="-lcrypto $LIBS"
1.1.1.3 ! misho 33165: cat >conftest.$ac_ext <<_ACEOF
! 33166: /* confdefs.h. */
! 33167: _ACEOF
! 33168: cat confdefs.h >>conftest.$ac_ext
! 33169: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 33170: /* end confdefs.h. */
33171:
33172: /* Override any GCC internal prototype to avoid an error.
33173: Use char because int might match the return type of a GCC
33174: builtin and then its argument prototype would still apply. */
33175: #ifdef __cplusplus
33176: extern "C"
33177: #endif
33178: char X509_free ();
33179: int
33180: main ()
33181: {
33182: return X509_free ();
33183: ;
33184: return 0;
33185: }
33186: _ACEOF
1.1.1.3 ! misho 33187: rm -f conftest.$ac_objext conftest$ac_exeext
! 33188: if { (ac_try="$ac_link"
! 33189: case "(($ac_try" in
! 33190: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 33191: *) ac_try_echo=$ac_try;;
! 33192: esac
! 33193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 33194: (eval "$ac_link") 2>conftest.er1
! 33195: ac_status=$?
! 33196: grep -v '^ *+' conftest.er1 >conftest.err
! 33197: rm -f conftest.er1
! 33198: cat conftest.err >&5
! 33199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 33200: (exit $ac_status); } && {
! 33201: test -z "$ac_c_werror_flag" ||
! 33202: test ! -s conftest.err
! 33203: } && test -s conftest$ac_exeext &&
! 33204: $as_test_x conftest$ac_exeext; then
1.1 misho 33205: ac_cv_lib_crypto_X509_free=yes
33206: else
1.1.1.3 ! misho 33207: echo "$as_me: failed program was:" >&5
! 33208: sed 's/^/| /' conftest.$ac_ext >&5
! 33209:
! 33210: ac_cv_lib_crypto_X509_free=no
1.1 misho 33211: fi
1.1.1.3 ! misho 33212:
! 33213: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 33214: conftest$ac_exeext conftest.$ac_ext
1.1 misho 33215: LIBS=$ac_check_lib_save_LIBS
33216: fi
1.1.1.3 ! misho 33217: { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_free" >&5
! 33218: echo "${ECHO_T}$ac_cv_lib_crypto_X509_free" >&6; }
! 33219: if test $ac_cv_lib_crypto_X509_free = yes; then
1.1 misho 33220:
1.1.1.3 ! misho 33221: cat >>confdefs.h <<\_ACEOF
! 33222: #define HAVE_DSA_DEFAULT_METHOD 1
! 33223: _ACEOF
1.1 misho 33224:
33225: fi
33226:
33227:
33228:
33229: found_openssl=no
33230: unset OPENSSL_INCDIR
33231: unset OPENSSL_LIBDIR
33232:
33233: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
33234: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
33235:
1.1.1.3 ! misho 33236: if test "$PHP_OPENSSL" != "no"; then
1.1 misho 33237: PHP_OPENSSL_DIR=$PHP_OPENSSL
1.1.1.3 ! misho 33238: elif test "$PHP_IMAP_SSL" != "no"; then
1.1 misho 33239: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
33240: fi
33241:
33242: if test -z "$PKG_CONFIG"; then
33243: # Extract the first word of "pkg-config", so it can be a program name with args.
33244: set dummy pkg-config; ac_word=$2
1.1.1.3 ! misho 33245: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 33246: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 33247: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
! 33248: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 33249: else
33250: case $PKG_CONFIG in
33251: [\\/]* | ?:[\\/]*)
33252: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33253: ;;
33254: *)
33255: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33256: for as_dir in $PATH
33257: do
33258: IFS=$as_save_IFS
33259: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 33260: for ac_exec_ext in '' $ac_executable_extensions; do
! 33261: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 33262: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 33263: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 33264: break 2
33265: fi
33266: done
1.1.1.3 ! misho 33267: done
1.1 misho 33268: IFS=$as_save_IFS
33269:
33270: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33271: ;;
33272: esac
33273: fi
33274: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33275: if test -n "$PKG_CONFIG"; then
1.1.1.3 ! misho 33276: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 33277: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1 misho 33278: else
1.1.1.3 ! misho 33279: { echo "$as_me:$LINENO: result: no" >&5
! 33280: echo "${ECHO_T}no" >&6; }
1.1 misho 33281: fi
33282:
33283:
33284: fi
33285:
33286: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
33287: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
33288: found_openssl=yes
33289: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
33290: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
33291: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
33292: else
1.1.1.3 ! misho 33293: { { echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
! 33294: echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
! 33295: { (exit 1); exit 1; }; }
1.1 misho 33296: fi
33297:
1.1.1.3 ! misho 33298: if test -n "$OPENSSL_LIBS"; then
1.1 misho 33299:
33300: for ac_i in $OPENSSL_LIBS; do
33301: case $ac_i in
33302: -pthread)
33303: if test "$ext_shared" = "yes"; then
33304: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
33305: else
33306:
33307:
33308: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
33309:
33310: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
33311: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33312: eval "EXTRA_LDFLAGS$unique=set"
33313: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
33314: fi
33315:
33316: fi
33317: ;;
33318: -l*)
33319: ac_ii=`echo $ac_i|cut -c 3-`
33320:
33321:
33322: case $ac_ii in
33323: c|c_r|pthread*) ;;
33324: *)
33325: if test "$ext_shared" = "yes"; then
33326: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
33327: else
33328:
33329:
33330: case $ac_ii in
33331: c|c_r|pthread*) ;;
33332: *)
33333: LIBS="$LIBS -l$ac_ii"
33334: ;;
33335: esac
33336:
33337:
33338: fi
33339: ;;
33340: esac
33341:
33342:
33343: ;;
33344: -L*)
33345: ac_ii=`echo $ac_i|cut -c 3-`
33346:
33347: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
33348:
33349: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33350: ai_p=$ac_ii
33351: else
33352:
33353: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
33354:
33355: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33356: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
33357: fi
33358:
33359:
33360: if test "$ext_shared" = "yes"; then
33361: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
33362: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
33363: else
33364:
33365:
33366:
33367: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33368:
33369: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33370: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33371: eval "LIBPATH$unique=set"
33372:
33373: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33374: LDFLAGS="$LDFLAGS -L$ai_p"
33375: PHP_RPATHS="$PHP_RPATHS $ai_p"
33376:
33377: fi
33378:
33379:
33380: fi
33381:
33382: fi
33383:
33384: ;;
33385: esac
33386: done
33387:
1.1.1.3 ! misho 33388: fi
! 33389: if test -n "$OPENSSL_INCS"; then
1.1 misho 33390:
33391: for ac_i in $OPENSSL_INCS; do
33392: case $ac_i in
33393: -I*)
33394: ac_ii=`echo $ac_i|cut -c 3-`
33395:
33396: if test "$ac_ii" != "/usr/include"; then
33397:
33398: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33399: ai_p=$ac_ii
33400: else
33401:
33402: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
33403:
33404: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33405: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
33406: fi
33407:
33408:
33409:
33410: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33411:
33412: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
33413: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33414: eval "INCLUDEPATH$unique=set"
33415:
33416: if test ""; then
33417: INCLUDES="-I$ai_p $INCLUDES"
33418: else
33419: INCLUDES="$INCLUDES -I$ai_p"
33420: fi
33421:
33422: fi
33423:
33424: fi
33425:
33426: ;;
33427: esac
33428: done
33429:
33430: fi
33431: fi
33432:
33433: if test "$found_openssl" = "no"; then
33434:
33435: if test "$PHP_OPENSSL_DIR" = "yes"; then
33436: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
33437: fi
33438:
33439: for i in $PHP_OPENSSL_DIR; do
33440: if test -r $i/include/openssl/evp.h; then
33441: OPENSSL_INCDIR=$i/include
33442: fi
33443: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
33444: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
33445: fi
33446: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
33447: done
33448:
33449: if test -z "$OPENSSL_INCDIR"; then
1.1.1.3 ! misho 33450: { { echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
! 33451: echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
! 33452: { (exit 1); exit 1; }; }
1.1 misho 33453: fi
33454:
33455: if test -z "$OPENSSL_LIBDIR"; then
1.1.1.3 ! misho 33456: { { echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
! 33457: echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
! 33458: { (exit 1); exit 1; }; }
1.1 misho 33459: fi
33460:
33461: old_CPPFLAGS=$CPPFLAGS
33462: CPPFLAGS=-I$OPENSSL_INCDIR
1.1.1.3 ! misho 33463: { echo "$as_me:$LINENO: checking for OpenSSL version" >&5
! 33464: echo $ECHO_N "checking for OpenSSL version... $ECHO_C" >&6; }
! 33465: cat >conftest.$ac_ext <<_ACEOF
! 33466: /* confdefs.h. */
! 33467: _ACEOF
! 33468: cat confdefs.h >>conftest.$ac_ext
! 33469: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 33470: /* end confdefs.h. */
33471:
33472: #include <openssl/opensslv.h>
33473: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
33474: yes
33475: #endif
33476:
33477: _ACEOF
33478: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 33479: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 33480:
1.1.1.3 ! misho 33481: { echo "$as_me:$LINENO: result: >= 0.9.6" >&5
! 33482: echo "${ECHO_T}>= 0.9.6" >&6; }
1.1 misho 33483:
33484: else
33485:
1.1.1.3 ! misho 33486: { { echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
! 33487: echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
! 33488: { (exit 1); exit 1; }; }
1.1 misho 33489:
33490: fi
1.1.1.3 ! misho 33491: rm -f -r conftest*
1.1 misho 33492:
33493: CPPFLAGS=$old_CPPFLAGS
33494:
33495:
33496: if test "$OPENSSL_INCDIR" != "/usr/include"; then
33497:
33498: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
33499: ai_p=$OPENSSL_INCDIR
33500: else
33501:
33502: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
33503:
33504: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33505: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
33506: fi
33507:
33508:
33509:
33510: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33511:
33512: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
33513: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33514: eval "INCLUDEPATH$unique=set"
33515:
33516: if test ""; then
33517: INCLUDES="-I$ai_p $INCLUDES"
33518: else
33519: INCLUDES="$INCLUDES -I$ai_p"
33520: fi
33521:
33522: fi
33523:
33524: fi
33525:
33526:
33527:
33528: save_old_LDFLAGS=$LDFLAGS
33529: ac_stuff="
33530: -L$OPENSSL_LIBDIR
33531: "
33532:
33533: save_ext_shared=$ext_shared
33534: ext_shared=yes
33535:
33536: for ac_i in $ac_stuff; do
33537: case $ac_i in
33538: -pthread)
33539: if test "$ext_shared" = "yes"; then
33540: LDFLAGS="$LDFLAGS -pthread"
33541: else
33542:
33543:
33544: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
33545:
33546: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
33547: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33548: eval "EXTRA_LDFLAGS$unique=set"
33549: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
33550: fi
33551:
33552: fi
33553: ;;
33554: -l*)
33555: ac_ii=`echo $ac_i|cut -c 3-`
33556:
33557:
33558: case $ac_ii in
33559: c|c_r|pthread*) ;;
33560: *)
33561: if test "$ext_shared" = "yes"; then
33562: LDFLAGS="$LDFLAGS -l$ac_ii"
33563: else
33564:
33565:
33566: case $ac_ii in
33567: c|c_r|pthread*) ;;
33568: *)
33569: LIBS="$LIBS -l$ac_ii"
33570: ;;
33571: esac
33572:
33573:
33574: fi
33575: ;;
33576: esac
33577:
33578:
33579: ;;
33580: -L*)
33581: ac_ii=`echo $ac_i|cut -c 3-`
33582:
33583: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
33584:
33585: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33586: ai_p=$ac_ii
33587: else
33588:
33589: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
33590:
33591: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33592: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
33593: fi
33594:
33595:
33596: if test "$ext_shared" = "yes"; then
33597: LDFLAGS="-L$ai_p $LDFLAGS"
33598: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
33599: else
33600:
33601:
33602:
33603: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33604:
33605: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33606: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33607: eval "LIBPATH$unique=set"
33608:
33609: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33610: LDFLAGS="$LDFLAGS -L$ai_p"
33611: PHP_RPATHS="$PHP_RPATHS $ai_p"
33612:
33613: fi
33614:
33615:
33616: fi
33617:
33618: fi
33619:
33620: ;;
33621: esac
33622: done
33623:
1.1.1.3 ! misho 33624: { echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
! 33625: echo $ECHO_N "checking for CRYPTO_free in -lcrypto... $ECHO_C" >&6; }
! 33626: if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
! 33627: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 33628: else
33629: ac_check_lib_save_LIBS=$LIBS
33630: LIBS="-lcrypto $LIBS"
1.1.1.3 ! misho 33631: cat >conftest.$ac_ext <<_ACEOF
! 33632: /* confdefs.h. */
! 33633: _ACEOF
! 33634: cat confdefs.h >>conftest.$ac_ext
! 33635: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 33636: /* end confdefs.h. */
33637:
33638: /* Override any GCC internal prototype to avoid an error.
33639: Use char because int might match the return type of a GCC
33640: builtin and then its argument prototype would still apply. */
33641: #ifdef __cplusplus
33642: extern "C"
33643: #endif
33644: char CRYPTO_free ();
33645: int
33646: main ()
33647: {
33648: return CRYPTO_free ();
33649: ;
33650: return 0;
33651: }
33652: _ACEOF
1.1.1.3 ! misho 33653: rm -f conftest.$ac_objext conftest$ac_exeext
! 33654: if { (ac_try="$ac_link"
! 33655: case "(($ac_try" in
! 33656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 33657: *) ac_try_echo=$ac_try;;
! 33658: esac
! 33659: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 33660: (eval "$ac_link") 2>conftest.er1
! 33661: ac_status=$?
! 33662: grep -v '^ *+' conftest.er1 >conftest.err
! 33663: rm -f conftest.er1
! 33664: cat conftest.err >&5
! 33665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 33666: (exit $ac_status); } && {
! 33667: test -z "$ac_c_werror_flag" ||
! 33668: test ! -s conftest.err
! 33669: } && test -s conftest$ac_exeext &&
! 33670: $as_test_x conftest$ac_exeext; then
1.1 misho 33671: ac_cv_lib_crypto_CRYPTO_free=yes
33672: else
1.1.1.3 ! misho 33673: echo "$as_me: failed program was:" >&5
! 33674: sed 's/^/| /' conftest.$ac_ext >&5
! 33675:
! 33676: ac_cv_lib_crypto_CRYPTO_free=no
1.1 misho 33677: fi
1.1.1.3 ! misho 33678:
! 33679: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 33680: conftest$ac_exeext conftest.$ac_ext
1.1 misho 33681: LIBS=$ac_check_lib_save_LIBS
33682: fi
1.1.1.3 ! misho 33683: { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
! 33684: echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_free" >&6; }
! 33685: if test $ac_cv_lib_crypto_CRYPTO_free = yes; then
1.1 misho 33686:
33687: LDFLAGS=$save_old_LDFLAGS
33688: ext_shared=$save_ext_shared
33689:
33690:
33691:
33692: case crypto in
33693: c|c_r|pthread*) ;;
33694: *)
33695: if test "$ext_shared" = "yes"; then
33696: OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
33697: else
33698:
33699:
33700: case crypto in
33701: c|c_r|pthread*) ;;
33702: *)
33703: LIBS="-lcrypto $LIBS"
33704: ;;
33705: esac
33706:
33707:
33708: fi
33709: ;;
33710: esac
33711:
33712:
33713:
33714:
33715: else
33716:
33717: LDFLAGS=$save_old_LDFLAGS
33718: ext_shared=$save_ext_shared
33719: unset ac_cv_lib_crypto_CRYPTO_free
33720:
1.1.1.3 ! misho 33721: { { echo "$as_me:$LINENO: error: libcrypto not found!" >&5
! 33722: echo "$as_me: error: libcrypto not found!" >&2;}
! 33723: { (exit 1); exit 1; }; }
1.1 misho 33724:
33725:
33726: fi
33727:
33728:
33729: old_LIBS=$LIBS
33730: LIBS="$LIBS -lcrypto"
33731:
33732: save_old_LDFLAGS=$LDFLAGS
33733: ac_stuff="
33734: -L$OPENSSL_LIBDIR
33735: "
33736:
33737: save_ext_shared=$ext_shared
33738: ext_shared=yes
33739:
33740: for ac_i in $ac_stuff; do
33741: case $ac_i in
33742: -pthread)
33743: if test "$ext_shared" = "yes"; then
33744: LDFLAGS="$LDFLAGS -pthread"
33745: else
33746:
33747:
33748: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
33749:
33750: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
33751: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33752: eval "EXTRA_LDFLAGS$unique=set"
33753: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
33754: fi
33755:
33756: fi
33757: ;;
33758: -l*)
33759: ac_ii=`echo $ac_i|cut -c 3-`
33760:
33761:
33762: case $ac_ii in
33763: c|c_r|pthread*) ;;
33764: *)
33765: if test "$ext_shared" = "yes"; then
33766: LDFLAGS="$LDFLAGS -l$ac_ii"
33767: else
33768:
33769:
33770: case $ac_ii in
33771: c|c_r|pthread*) ;;
33772: *)
33773: LIBS="$LIBS -l$ac_ii"
33774: ;;
33775: esac
33776:
33777:
33778: fi
33779: ;;
33780: esac
33781:
33782:
33783: ;;
33784: -L*)
33785: ac_ii=`echo $ac_i|cut -c 3-`
33786:
33787: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
33788:
33789: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33790: ai_p=$ac_ii
33791: else
33792:
33793: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
33794:
33795: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33796: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
33797: fi
33798:
33799:
33800: if test "$ext_shared" = "yes"; then
33801: LDFLAGS="-L$ai_p $LDFLAGS"
33802: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
33803: else
33804:
33805:
33806:
33807: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33808:
33809: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33810: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33811: eval "LIBPATH$unique=set"
33812:
33813: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33814: LDFLAGS="$LDFLAGS -L$ai_p"
33815: PHP_RPATHS="$PHP_RPATHS $ai_p"
33816:
33817: fi
33818:
33819:
33820: fi
33821:
33822: fi
33823:
33824: ;;
33825: esac
33826: done
33827:
1.1.1.3 ! misho 33828: { echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
! 33829: echo $ECHO_N "checking for SSL_CTX_set_ssl_version in -lssl... $ECHO_C" >&6; }
! 33830: if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
! 33831: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 33832: else
33833: ac_check_lib_save_LIBS=$LIBS
33834: LIBS="-lssl $LIBS"
1.1.1.3 ! misho 33835: cat >conftest.$ac_ext <<_ACEOF
! 33836: /* confdefs.h. */
! 33837: _ACEOF
! 33838: cat confdefs.h >>conftest.$ac_ext
! 33839: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 33840: /* end confdefs.h. */
33841:
33842: /* Override any GCC internal prototype to avoid an error.
33843: Use char because int might match the return type of a GCC
33844: builtin and then its argument prototype would still apply. */
33845: #ifdef __cplusplus
33846: extern "C"
33847: #endif
33848: char SSL_CTX_set_ssl_version ();
33849: int
33850: main ()
33851: {
33852: return SSL_CTX_set_ssl_version ();
33853: ;
33854: return 0;
33855: }
33856: _ACEOF
1.1.1.3 ! misho 33857: rm -f conftest.$ac_objext conftest$ac_exeext
! 33858: if { (ac_try="$ac_link"
! 33859: case "(($ac_try" in
! 33860: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 33861: *) ac_try_echo=$ac_try;;
! 33862: esac
! 33863: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 33864: (eval "$ac_link") 2>conftest.er1
! 33865: ac_status=$?
! 33866: grep -v '^ *+' conftest.er1 >conftest.err
! 33867: rm -f conftest.er1
! 33868: cat conftest.err >&5
! 33869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 33870: (exit $ac_status); } && {
! 33871: test -z "$ac_c_werror_flag" ||
! 33872: test ! -s conftest.err
! 33873: } && test -s conftest$ac_exeext &&
! 33874: $as_test_x conftest$ac_exeext; then
1.1 misho 33875: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
33876: else
1.1.1.3 ! misho 33877: echo "$as_me: failed program was:" >&5
! 33878: sed 's/^/| /' conftest.$ac_ext >&5
! 33879:
! 33880: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
1.1 misho 33881: fi
1.1.1.3 ! misho 33882:
! 33883: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 33884: conftest$ac_exeext conftest.$ac_ext
1.1 misho 33885: LIBS=$ac_check_lib_save_LIBS
33886: fi
1.1.1.3 ! misho 33887: { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
! 33888: echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
! 33889: if test $ac_cv_lib_ssl_SSL_CTX_set_ssl_version = yes; then
1.1 misho 33890:
33891: LDFLAGS=$save_old_LDFLAGS
33892: ext_shared=$save_ext_shared
33893:
33894: found_openssl=yes
33895:
33896:
33897: else
33898:
33899: LDFLAGS=$save_old_LDFLAGS
33900: ext_shared=$save_ext_shared
33901: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
33902:
1.1.1.3 ! misho 33903: { { echo "$as_me:$LINENO: error: libssl not found!" >&5
! 33904: echo "$as_me: error: libssl not found!" >&2;}
! 33905: { (exit 1); exit 1; }; }
1.1 misho 33906:
33907:
33908: fi
33909:
33910: LIBS=$old_LIBS
33911:
33912:
33913: case ssl in
33914: c|c_r|pthread*) ;;
33915: *)
33916: if test "$ext_shared" = "yes"; then
33917: OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD"
33918: else
33919:
33920:
33921: case ssl in
33922: c|c_r|pthread*) ;;
33923: *)
33924: LIBS="-lssl $LIBS"
33925: ;;
33926: esac
33927:
33928:
33929: fi
33930: ;;
33931: esac
33932:
33933:
33934:
33935:
33936: case crypto in
33937: c|c_r|pthread*) ;;
33938: *)
33939: if test "$ext_shared" = "yes"; then
33940: OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
33941: else
33942:
33943:
33944: case crypto in
33945: c|c_r|pthread*) ;;
33946: *)
33947: LIBS="-lcrypto $LIBS"
33948: ;;
33949: esac
33950:
33951:
33952: fi
33953: ;;
33954: esac
33955:
33956:
33957:
33958:
33959: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
33960:
33961: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
33962: ai_p=$OPENSSL_LIBDIR
33963: else
33964:
33965: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
33966:
33967: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33968: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
33969: fi
33970:
33971:
33972: if test "$ext_shared" = "yes"; then
33973: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
33974: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
33975: else
33976:
33977:
33978:
33979: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33980:
33981: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33982: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33983: eval "LIBPATH$unique=set"
33984:
33985: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33986: LDFLAGS="$LDFLAGS -L$ai_p"
33987: PHP_RPATHS="$PHP_RPATHS $ai_p"
33988:
33989: fi
33990:
33991:
33992: fi
33993:
33994: fi
33995:
33996: fi
33997:
33998: if test "$found_openssl" = "yes"; then
33999: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
34000:
34001:
34002:
34003:
1.1.1.3 ! misho 34004: cat >>confdefs.h <<\_ACEOF
! 34005: #define HAVE_OPENSSL_EXT 1
! 34006: _ACEOF
1.1 misho 34007:
34008:
34009: else
1.1.1.3 ! misho 34010: { { echo "$as_me:$LINENO: error: OpenSSL check failed. Please check config.log for more information." >&5
! 34011: echo "$as_me: error: OpenSSL check failed. Please check config.log for more information." >&2;}
! 34012: { (exit 1); exit 1; }; }
1.1 misho 34013:
34014: fi
34015:
34016: fi
34017:
34018:
34019:
34020:
34021: php_with_pcre_regex=yes
34022:
34023:
34024:
34025: # Check whether --with-pcre-regex was given.
1.1.1.3 ! misho 34026: if test "${with_pcre_regex+set}" = set; then
1.1 misho 34027: withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval
34028: else
34029:
34030: PHP_PCRE_REGEX=yes
34031:
34032:
34033: fi
34034:
34035:
34036: ext_output=$PHP_PCRE_REGEX
34037:
34038:
34039:
34040:
34041:
34042: if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
1.1.1.3 ! misho 34043: { echo "$as_me:$LINENO: checking for PCRE headers location" >&5
! 34044: echo $ECHO_N "checking for PCRE headers location... $ECHO_C" >&6; }
1.1 misho 34045: for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
34046: test -f $i/pcre.h && PCRE_INCDIR=$i
34047: done
34048:
34049: if test -z "$PCRE_INCDIR"; then
1.1.1.3 ! misho 34050: { { echo "$as_me:$LINENO: error: Could not find pcre.h in $PHP_PCRE_REGEX" >&5
! 34051: echo "$as_me: error: Could not find pcre.h in $PHP_PCRE_REGEX" >&2;}
! 34052: { (exit 1); exit 1; }; }
1.1 misho 34053: fi
1.1.1.3 ! misho 34054: { echo "$as_me:$LINENO: result: $PCRE_INCDIR" >&5
! 34055: echo "${ECHO_T}$PCRE_INCDIR" >&6; }
1.1 misho 34056:
1.1.1.3 ! misho 34057: { echo "$as_me:$LINENO: checking for PCRE library location" >&5
! 34058: echo $ECHO_N "checking for PCRE library location... $ECHO_C" >&6; }
1.1 misho 34059: for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
34060: test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
34061: done
34062:
34063: if test -z "$PCRE_LIBDIR" ; then
1.1.1.3 ! misho 34064: { { echo "$as_me:$LINENO: error: Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" >&5
! 34065: echo "$as_me: error: Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" >&2;}
! 34066: { (exit 1); exit 1; }; }
1.1 misho 34067: fi
1.1.1.3 ! misho 34068: { echo "$as_me:$LINENO: result: $PCRE_LIBDIR" >&5
! 34069: echo "${ECHO_T}$PCRE_LIBDIR" >&6; }
1.1 misho 34070:
34071:
34072: pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
34073: pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
34074:
34075: pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'`
34076: if test "$pcre_minor_length" -eq 2 ; then
34077: pcre_minor="$pcre_minor"0
34078: fi
34079: pcre_version=$pcre_major$pcre_minor
34080: if test "$pcre_version" -lt 660; then
1.1.1.3 ! misho 34081: { { echo "$as_me:$LINENO: error: The PCRE extension requires PCRE library version >= 6.6" >&5
! 34082: echo "$as_me: error: The PCRE extension requires PCRE library version >= 6.6" >&2;}
! 34083: { (exit 1); exit 1; }; }
1.1 misho 34084: fi
34085:
34086:
34087:
34088: if test -n "$PCRE_LIBDIR"; then
34089:
34090: if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then
34091:
34092: if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then
34093: ai_p=$PCRE_LIBDIR
34094: else
34095:
34096: ep_dir="`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
34097:
34098: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34099: ai_p="$ep_realdir/`basename \"$PCRE_LIBDIR\"`"
34100: fi
34101:
34102:
34103:
34104:
34105:
34106: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34107:
34108: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34109: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34110: eval "LIBPATH$unique=set"
34111:
34112: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34113: LDFLAGS="$LDFLAGS -L$ai_p"
34114: PHP_RPATHS="$PHP_RPATHS $ai_p"
34115:
34116: fi
34117:
34118:
34119:
34120: fi
34121:
34122: fi
34123:
34124:
34125: case pcre in
34126: c|c_r|pthread*) ;;
34127: *)
34128: LIBS="-lpcre $LIBS"
34129: ;;
34130: esac
34131:
34132:
34133:
34134:
34135:
34136:
1.1.1.3 ! misho 34137: cat >>confdefs.h <<\_ACEOF
! 34138: #define HAVE_PCRE 1
! 34139: _ACEOF
1.1 misho 34140:
34141:
34142: if test "$PCRE_INCDIR" != "/usr/include"; then
34143:
34144: if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then
34145: ai_p=$PCRE_INCDIR
34146: else
34147:
34148: ep_dir="`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
34149:
34150: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34151: ai_p="$ep_realdir/`basename \"$PCRE_INCDIR\"`"
34152: fi
34153:
34154:
34155:
34156: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34157:
34158: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
34159: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34160: eval "INCLUDEPATH$unique=set"
34161:
34162: if test ""; then
34163: INCLUDES="-I$ai_p $INCLUDES"
34164: else
34165: INCLUDES="$INCLUDES -I$ai_p"
34166: fi
34167:
34168: fi
34169:
34170: fi
34171:
34172:
34173: ext_builddir=ext/pcre
34174: ext_srcdir=$abs_srcdir/ext/pcre
34175:
34176: ac_extra=
34177:
34178: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
34179: PHP_PCRE_SHARED=no
34180:
34181:
34182: case ext/pcre in
34183: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34184: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34185: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34186: esac
34187:
34188:
34189:
34190: b_c_pre=$php_c_pre
34191: b_cxx_pre=$php_cxx_pre
34192: b_c_meta=$php_c_meta
34193: b_cxx_meta=$php_cxx_meta
34194: b_c_post=$php_c_post
34195: b_cxx_post=$php_cxx_post
34196: b_lo=$php_lo
34197:
34198:
34199: old_IFS=$IFS
34200: for ac_src in php_pcre.c; do
34201:
34202: IFS=.
34203: set $ac_src
34204: ac_obj=$1
34205: IFS=$old_IFS
34206:
34207: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34208:
34209: case $ac_src in
34210: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34211: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34212: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34213: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34214: esac
34215:
34216: cat >>Makefile.objects<<EOF
34217: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34218: $ac_comp
34219: EOF
34220: done
34221:
34222:
34223: EXT_STATIC="$EXT_STATIC pcre"
34224: if test "no" != "nocli"; then
34225: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
34226: fi
34227: else
34228: if test "no" = "shared" || test "no" = "yes"; then
34229: PHP_PCRE_SHARED=yes
34230:
34231: case ext/pcre in
34232: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34233: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34234: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34235: esac
34236:
34237:
34238:
34239: b_c_pre=$shared_c_pre
34240: b_cxx_pre=$shared_cxx_pre
34241: b_c_meta=$shared_c_meta
34242: b_cxx_meta=$shared_cxx_meta
34243: b_c_post=$shared_c_post
34244: b_cxx_post=$shared_cxx_post
34245: b_lo=$shared_lo
34246:
34247:
34248: old_IFS=$IFS
34249: for ac_src in php_pcre.c; do
34250:
34251: IFS=.
34252: set $ac_src
34253: ac_obj=$1
34254: IFS=$old_IFS
34255:
34256: shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
34257:
34258: case $ac_src in
34259: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34260: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34261: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34262: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34263: esac
34264:
34265: cat >>Makefile.objects<<EOF
34266: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34267: $ac_comp
34268: EOF
34269: done
34270:
34271: case $host_alias in
34272: *netware*)
34273:
34274: install_modules="install-modules"
34275:
34276: case $host_alias in
34277: *aix*)
34278: suffix=so
34279: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcre.so '$ext_builddir'/phppcre.so'
34280: ;;
34281: *netware*)
34282: suffix=nlm
34283: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(PCRE_SHARED_LIBADD)'
34284: ;;
34285: *)
34286: suffix=la
34287: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD)'
34288: ;;
34289: esac
34290:
34291: if test "x" = "xyes"; then
34292: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
34293: else
34294: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
34295: fi
34296:
34297: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
34298:
34299: cat >>Makefile.objects<<EOF
34300: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
34301: \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
34302:
34303: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
34304: $link_cmd
34305:
34306: EOF
34307:
34308: ;;
34309: *)
34310:
34311: install_modules="install-modules"
34312:
34313: case $host_alias in
34314: *aix*)
34315: suffix=so
34316: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcre.so '$ext_builddir'/pcre.so'
34317: ;;
34318: *netware*)
34319: suffix=nlm
34320: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
34321: ;;
34322: *)
34323: suffix=la
34324: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD)'
34325: ;;
34326: esac
34327:
34328: if test "x" = "xyes"; then
34329: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
34330: else
34331: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
34332: fi
34333:
34334: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
34335:
34336: cat >>Makefile.objects<<EOF
34337: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
34338: \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
34339:
34340: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
34341: $link_cmd
34342:
34343: EOF
34344:
34345: ;;
34346: esac
34347:
34348: cat >>confdefs.h <<_ACEOF
34349: #define COMPILE_DL_PCRE 1
34350: _ACEOF
34351:
34352: fi
34353: fi
34354:
34355: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
34356: PHP_PCRE_SHARED=no
1.1.1.3 ! misho 34357: case "$PHP_SAPI" in
! 34358: cgi|embed)
1.1 misho 34359:
34360:
34361: case ext/pcre in
34362: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34363: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34364: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34365: esac
34366:
34367:
34368:
34369: b_c_pre=$php_c_pre
34370: b_cxx_pre=$php_cxx_pre
34371: b_c_meta=$php_c_meta
34372: b_cxx_meta=$php_cxx_meta
34373: b_c_post=$php_c_post
34374: b_cxx_post=$php_cxx_post
34375: b_lo=$php_lo
34376:
34377:
34378: old_IFS=$IFS
34379: for ac_src in php_pcre.c; do
34380:
34381: IFS=.
34382: set $ac_src
34383: ac_obj=$1
34384: IFS=$old_IFS
34385:
1.1.1.2 misho 34386: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 34387:
34388: case $ac_src in
34389: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34390: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34391: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34392: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34393: esac
34394:
34395: cat >>Makefile.objects<<EOF
34396: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34397: $ac_comp
34398: EOF
34399: done
34400:
34401:
1.1.1.3 ! misho 34402: EXT_STATIC="$EXT_STATIC pcre"
! 34403: ;;
! 34404: *)
1.1 misho 34405:
34406:
34407: case ext/pcre in
34408: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34409: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34410: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34411: esac
34412:
34413:
34414:
34415: b_c_pre=$php_c_pre
34416: b_cxx_pre=$php_cxx_pre
34417: b_c_meta=$php_c_meta
34418: b_cxx_meta=$php_cxx_meta
34419: b_c_post=$php_c_post
34420: b_cxx_post=$php_cxx_post
34421: b_lo=$php_lo
34422:
34423:
34424: old_IFS=$IFS
34425: for ac_src in php_pcre.c; do
34426:
34427: IFS=.
34428: set $ac_src
34429: ac_obj=$1
34430: IFS=$old_IFS
34431:
1.1.1.2 misho 34432: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 34433:
34434: case $ac_src in
34435: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34436: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34437: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34438: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34439: esac
34440:
34441: cat >>Makefile.objects<<EOF
34442: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34443: $ac_comp
34444: EOF
34445: done
34446:
34447:
1.1.1.3 ! misho 34448: ;;
! 34449: esac
1.1 misho 34450: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
34451: fi
34452:
34453:
34454: BUILD_DIR="$BUILD_DIR $ext_builddir"
34455:
34456:
34457:
34458: if test "$ext_builddir" = "."; then
34459: PHP_PECL_EXTENSION=pcre
34460:
34461: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
34462:
34463: fi
34464:
34465:
34466:
34467: header_path=ext/pcre
34468: for header_file in php_pcre.h; do
34469: hp_hf="$header_path/$header_file"
34470:
34471:
34472: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
34473:
34474: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
34475: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34476: eval "INSTALLHEADERS$unique=set"
34477:
34478: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
34479:
34480: fi
34481:
34482: done
34483:
34484:
34485: else
1.1.1.3 ! misho 34486: { echo "$as_me:$LINENO: checking for PCRE library to use" >&5
! 34487: echo $ECHO_N "checking for PCRE library to use... $ECHO_C" >&6; }
! 34488: { echo "$as_me:$LINENO: result: bundled" >&5
! 34489: echo "${ECHO_T}bundled" >&6; }
1.1 misho 34490: pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \
34491: pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \
34492: pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \
1.1.1.3 ! misho 34493: pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \
1.1 misho 34494: pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \
1.1.1.3 ! misho 34495: pcrelib/pcre_tables.c pcrelib/pcre_valid_utf8.c \
1.1 misho 34496: pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
1.1.1.3 ! misho 34497: PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcrelib"
1.1 misho 34498:
34499: ext_builddir=ext/pcre
34500: ext_srcdir=$abs_srcdir/ext/pcre
34501:
1.1.1.3 ! misho 34502: ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 34503:
34504: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
34505: PHP_PCRE_SHARED=no
34506:
34507:
34508: case ext/pcre in
34509: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34510: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34511: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34512: esac
34513:
34514:
34515:
34516: b_c_pre=$php_c_pre
34517: b_cxx_pre=$php_cxx_pre
34518: b_c_meta=$php_c_meta
34519: b_cxx_meta=$php_cxx_meta
34520: b_c_post=$php_c_post
34521: b_cxx_post=$php_cxx_post
34522: b_lo=$php_lo
34523:
34524:
34525: old_IFS=$IFS
34526: for ac_src in $pcrelib_sources php_pcre.c; do
34527:
34528: IFS=.
34529: set $ac_src
34530: ac_obj=$1
34531: IFS=$old_IFS
34532:
34533: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34534:
34535: case $ac_src in
34536: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34537: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34538: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34539: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34540: esac
34541:
34542: cat >>Makefile.objects<<EOF
34543: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34544: $ac_comp
34545: EOF
34546: done
34547:
34548:
34549: EXT_STATIC="$EXT_STATIC pcre"
34550: if test "no" != "nocli"; then
34551: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
34552: fi
34553: else
34554: if test "no" = "shared" || test "no" = "yes"; then
34555: PHP_PCRE_SHARED=yes
34556:
34557: case ext/pcre in
34558: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34559: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34560: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34561: esac
34562:
34563:
34564:
34565: b_c_pre=$shared_c_pre
34566: b_cxx_pre=$shared_cxx_pre
34567: b_c_meta=$shared_c_meta
34568: b_cxx_meta=$shared_cxx_meta
34569: b_c_post=$shared_c_post
34570: b_cxx_post=$shared_cxx_post
34571: b_lo=$shared_lo
34572:
34573:
34574: old_IFS=$IFS
34575: for ac_src in $pcrelib_sources php_pcre.c; do
34576:
34577: IFS=.
34578: set $ac_src
34579: ac_obj=$1
34580: IFS=$old_IFS
34581:
34582: shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
34583:
34584: case $ac_src in
34585: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34586: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34587: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34588: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34589: esac
34590:
34591: cat >>Makefile.objects<<EOF
34592: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34593: $ac_comp
34594: EOF
34595: done
34596:
34597: case $host_alias in
34598: *netware*)
34599:
34600: install_modules="install-modules"
34601:
34602: case $host_alias in
34603: *aix*)
34604: suffix=so
34605: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcre.so '$ext_builddir'/phppcre.so'
34606: ;;
34607: *netware*)
34608: suffix=nlm
34609: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(PCRE_SHARED_LIBADD)'
34610: ;;
34611: *)
34612: suffix=la
34613: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD)'
34614: ;;
34615: esac
34616:
34617: if test "x" = "xyes"; then
34618: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
34619: else
34620: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
34621: fi
34622:
34623: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
34624:
34625: cat >>Makefile.objects<<EOF
34626: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
34627: \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
34628:
34629: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
34630: $link_cmd
34631:
34632: EOF
34633:
34634: ;;
34635: *)
34636:
34637: install_modules="install-modules"
34638:
34639: case $host_alias in
34640: *aix*)
34641: suffix=so
34642: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcre.so '$ext_builddir'/pcre.so'
34643: ;;
34644: *netware*)
34645: suffix=nlm
34646: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
34647: ;;
34648: *)
34649: suffix=la
34650: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD)'
34651: ;;
34652: esac
34653:
34654: if test "x" = "xyes"; then
34655: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
34656: else
34657: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
34658: fi
34659:
34660: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
34661:
34662: cat >>Makefile.objects<<EOF
34663: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
34664: \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
34665:
1.1.1.3 ! misho 34666: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
! 34667: $link_cmd
1.1 misho 34668:
34669: EOF
34670:
1.1.1.3 ! misho 34671: ;;
! 34672: esac
! 34673:
! 34674: cat >>confdefs.h <<_ACEOF
! 34675: #define COMPILE_DL_PCRE 1
! 34676: _ACEOF
! 34677:
! 34678: fi
! 34679: fi
1.1 misho 34680:
1.1.1.3 ! misho 34681: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
! 34682: PHP_PCRE_SHARED=no
! 34683: case "$PHP_SAPI" in
! 34684: cgi|embed)
1.1 misho 34685:
34686:
34687: case ext/pcre in
34688: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34689: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34690: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34691: esac
34692:
34693:
34694:
34695: b_c_pre=$php_c_pre
34696: b_cxx_pre=$php_cxx_pre
34697: b_c_meta=$php_c_meta
34698: b_cxx_meta=$php_cxx_meta
34699: b_c_post=$php_c_post
34700: b_cxx_post=$php_cxx_post
34701: b_lo=$php_lo
34702:
34703:
34704: old_IFS=$IFS
34705: for ac_src in $pcrelib_sources php_pcre.c; do
34706:
34707: IFS=.
34708: set $ac_src
34709: ac_obj=$1
34710: IFS=$old_IFS
34711:
1.1.1.2 misho 34712: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 34713:
34714: case $ac_src in
34715: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34716: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34717: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34718: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34719: esac
34720:
34721: cat >>Makefile.objects<<EOF
34722: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34723: $ac_comp
34724: EOF
34725: done
34726:
34727:
1.1.1.3 ! misho 34728: EXT_STATIC="$EXT_STATIC pcre"
! 34729: ;;
! 34730: *)
1.1 misho 34731:
34732:
34733: case ext/pcre in
34734: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34735: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34736: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34737: esac
34738:
34739:
34740:
34741: b_c_pre=$php_c_pre
34742: b_cxx_pre=$php_cxx_pre
34743: b_c_meta=$php_c_meta
34744: b_cxx_meta=$php_cxx_meta
34745: b_c_post=$php_c_post
34746: b_cxx_post=$php_cxx_post
34747: b_lo=$php_lo
34748:
34749:
34750: old_IFS=$IFS
34751: for ac_src in $pcrelib_sources php_pcre.c; do
34752:
34753: IFS=.
34754: set $ac_src
34755: ac_obj=$1
34756: IFS=$old_IFS
34757:
1.1.1.2 misho 34758: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 34759:
34760: case $ac_src in
34761: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34762: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34763: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34764: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34765: esac
34766:
34767: cat >>Makefile.objects<<EOF
34768: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34769: $ac_comp
34770: EOF
34771: done
34772:
34773:
1.1.1.3 ! misho 34774: ;;
! 34775: esac
1.1 misho 34776: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
34777: fi
34778:
34779:
34780: BUILD_DIR="$BUILD_DIR $ext_builddir"
34781:
34782:
34783:
34784: if test "$ext_builddir" = "."; then
34785: PHP_PECL_EXTENSION=pcre
34786:
34787: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
34788:
34789: fi
34790:
34791:
34792:
34793: BUILD_DIR="$BUILD_DIR $ext_builddir/pcrelib"
34794:
34795:
34796:
34797:
34798: header_path=ext/pcre
34799: for header_file in php_pcre.h pcrelib/; do
34800: hp_hf="$header_path/$header_file"
34801:
34802:
34803: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
34804:
34805: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
34806: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34807: eval "INSTALLHEADERS$unique=set"
34808:
34809: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
34810:
34811: fi
34812:
34813: done
34814:
34815:
34816:
1.1.1.3 ! misho 34817: cat >>confdefs.h <<\_ACEOF
! 34818: #define HAVE_BUNDLED_PCRE 1
! 34819: _ACEOF
1.1 misho 34820:
34821: fi
34822:
34823:
34824:
34825: php_with_sqlite3=yes
34826:
1.1.1.3 ! misho 34827: { echo "$as_me:$LINENO: checking whether to enable the SQLite3 extension" >&5
! 34828: echo $ECHO_N "checking whether to enable the SQLite3 extension... $ECHO_C" >&6; }
1.1 misho 34829:
34830: # Check whether --with-sqlite3 was given.
1.1.1.3 ! misho 34831: if test "${with_sqlite3+set}" = set; then
1.1 misho 34832: withval=$with_sqlite3; PHP_SQLITE3=$withval
34833: else
34834:
34835: PHP_SQLITE3=yes
34836: test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL
34837:
34838: fi
34839:
34840:
34841:
34842: ext_output="yes, shared"
34843: ext_shared=yes
34844: case $PHP_SQLITE3 in
34845: shared,*)
34846: PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'`
34847: ;;
34848: shared)
34849: PHP_SQLITE3=yes
34850: ;;
34851: no)
34852: ext_output=no
34853: ext_shared=no
34854: ;;
34855: *)
34856: ext_output=yes
34857: ext_shared=no
34858: ;;
34859: esac
34860:
34861:
34862:
1.1.1.3 ! misho 34863: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 34864: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 34865:
34866:
34867:
34868:
34869: if test $PHP_SQLITE3 != "no"; then
34870: sqlite3_extra_sources=""
34871: PHP_SQLITE3_CFLAGS=""
34872:
34873: if test -z "$enable_maintainer_zts"; then
34874: if test -f "$phpincludedir/main/php_config.h"; then
34875: ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'`
34876: if test "$ZTS" -eq "1"; then
34877: enable_maintainer_zts="yes"
34878: fi
34879: fi
34880: fi
34881:
34882: if test $PHP_SQLITE3 != "yes"; then
1.1.1.3 ! misho 34883: { echo "$as_me:$LINENO: checking for sqlite3 files in default path" >&5
! 34884: echo $ECHO_N "checking for sqlite3 files in default path... $ECHO_C" >&6; }
1.1 misho 34885: for i in $PHP_SQLITE3 /usr/local /usr; do
34886: if test -r $i/include/sqlite3.h; then
34887: SQLITE3_DIR=$i
1.1.1.3 ! misho 34888: { echo "$as_me:$LINENO: result: found in $i" >&5
! 34889: echo "${ECHO_T}found in $i" >&6; }
1.1 misho 34890: break
34891: fi
34892: done
34893:
34894: if test -z "$SQLITE3_DIR"; then
1.1.1.3 ! misho 34895: { echo "$as_me:$LINENO: result: not found" >&5
! 34896: echo "${ECHO_T}not found" >&6; }
! 34897: { { echo "$as_me:$LINENO: error: Please reinstall the sqlite distribution from http://www.sqlite.org" >&5
! 34898: echo "$as_me: error: Please reinstall the sqlite distribution from http://www.sqlite.org" >&2;}
! 34899: { (exit 1); exit 1; }; }
1.1 misho 34900: fi
34901:
1.1.1.3 ! misho 34902: { echo "$as_me:$LINENO: checking for SQLite 3.3.9+" >&5
! 34903: echo $ECHO_N "checking for SQLite 3.3.9+... $ECHO_C" >&6; }
1.1 misho 34904:
34905: save_old_LDFLAGS=$LDFLAGS
34906: ac_stuff="
34907: -L$SQLITE3_DIR/$PHP_LIBDIR -lm
34908: "
34909:
34910: save_ext_shared=$ext_shared
34911: ext_shared=yes
34912:
34913: for ac_i in $ac_stuff; do
34914: case $ac_i in
34915: -pthread)
34916: if test "$ext_shared" = "yes"; then
34917: LDFLAGS="$LDFLAGS -pthread"
34918: else
34919:
34920:
34921: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
34922:
34923: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
34924: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34925: eval "EXTRA_LDFLAGS$unique=set"
34926: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
34927: fi
34928:
34929: fi
34930: ;;
34931: -l*)
34932: ac_ii=`echo $ac_i|cut -c 3-`
34933:
34934:
34935: case $ac_ii in
34936: c|c_r|pthread*) ;;
34937: *)
34938: if test "$ext_shared" = "yes"; then
34939: LDFLAGS="$LDFLAGS -l$ac_ii"
34940: else
34941:
34942:
34943: case $ac_ii in
34944: c|c_r|pthread*) ;;
34945: *)
34946: LIBS="$LIBS -l$ac_ii"
34947: ;;
34948: esac
34949:
34950:
34951: fi
34952: ;;
34953: esac
34954:
34955:
34956: ;;
34957: -L*)
34958: ac_ii=`echo $ac_i|cut -c 3-`
34959:
34960: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34961:
34962: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34963: ai_p=$ac_ii
34964: else
34965:
34966: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34967:
34968: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34969: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34970: fi
34971:
34972:
34973: if test "$ext_shared" = "yes"; then
34974: LDFLAGS="-L$ai_p $LDFLAGS"
34975: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
34976: else
34977:
34978:
34979:
34980: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34981:
34982: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34983: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34984: eval "LIBPATH$unique=set"
34985:
34986: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34987: LDFLAGS="$LDFLAGS -L$ai_p"
34988: PHP_RPATHS="$PHP_RPATHS $ai_p"
34989:
34990: fi
34991:
34992:
34993: fi
34994:
34995: fi
34996:
34997: ;;
34998: esac
34999: done
35000:
1.1.1.3 ! misho 35001: { echo "$as_me:$LINENO: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
! 35002: echo $ECHO_N "checking for sqlite3_prepare_v2 in -lsqlite3... $ECHO_C" >&6; }
! 35003: if test "${ac_cv_lib_sqlite3_sqlite3_prepare_v2+set}" = set; then
! 35004: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 35005: else
35006: ac_check_lib_save_LIBS=$LIBS
35007: LIBS="-lsqlite3 $LIBS"
1.1.1.3 ! misho 35008: cat >conftest.$ac_ext <<_ACEOF
! 35009: /* confdefs.h. */
! 35010: _ACEOF
! 35011: cat confdefs.h >>conftest.$ac_ext
! 35012: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 35013: /* end confdefs.h. */
35014:
35015: /* Override any GCC internal prototype to avoid an error.
35016: Use char because int might match the return type of a GCC
35017: builtin and then its argument prototype would still apply. */
35018: #ifdef __cplusplus
35019: extern "C"
35020: #endif
35021: char sqlite3_prepare_v2 ();
35022: int
35023: main ()
35024: {
35025: return sqlite3_prepare_v2 ();
35026: ;
35027: return 0;
35028: }
35029: _ACEOF
1.1.1.3 ! misho 35030: rm -f conftest.$ac_objext conftest$ac_exeext
! 35031: if { (ac_try="$ac_link"
! 35032: case "(($ac_try" in
! 35033: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 35034: *) ac_try_echo=$ac_try;;
! 35035: esac
! 35036: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 35037: (eval "$ac_link") 2>conftest.er1
! 35038: ac_status=$?
! 35039: grep -v '^ *+' conftest.er1 >conftest.err
! 35040: rm -f conftest.er1
! 35041: cat conftest.err >&5
! 35042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 35043: (exit $ac_status); } && {
! 35044: test -z "$ac_c_werror_flag" ||
! 35045: test ! -s conftest.err
! 35046: } && test -s conftest$ac_exeext &&
! 35047: $as_test_x conftest$ac_exeext; then
1.1 misho 35048: ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
35049: else
1.1.1.3 ! misho 35050: echo "$as_me: failed program was:" >&5
! 35051: sed 's/^/| /' conftest.$ac_ext >&5
! 35052:
! 35053: ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
1.1 misho 35054: fi
1.1.1.3 ! misho 35055:
! 35056: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 35057: conftest$ac_exeext conftest.$ac_ext
1.1 misho 35058: LIBS=$ac_check_lib_save_LIBS
35059: fi
1.1.1.3 ! misho 35060: { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
! 35061: echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
! 35062: if test $ac_cv_lib_sqlite3_sqlite3_prepare_v2 = yes; then
1.1 misho 35063:
35064: LDFLAGS=$save_old_LDFLAGS
35065: ext_shared=$save_ext_shared
35066:
1.1.1.3 ! misho 35067: { echo "$as_me:$LINENO: result: found" >&5
! 35068: echo "${ECHO_T}found" >&6; }
1.1 misho 35069:
35070:
35071: if test "$ext_shared" = "yes"; then
35072: SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD"
35073: if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
35074:
35075: if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
35076:
35077: if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
35078: ai_p=$SQLITE3_DIR/$PHP_LIBDIR
35079: else
35080:
35081: ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
35082:
35083: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35084: ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
35085: fi
35086:
35087:
35088: if test "$ext_shared" = "yes"; then
35089: SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD"
35090: test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD"
35091: else
35092:
35093:
35094:
35095: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35096:
35097: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35098: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35099: eval "LIBPATH$unique=set"
35100:
35101: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35102: LDFLAGS="$LDFLAGS -L$ai_p"
35103: PHP_RPATHS="$PHP_RPATHS $ai_p"
35104:
35105: fi
35106:
35107:
35108: fi
35109:
35110: fi
35111:
35112: fi
35113: else
35114:
35115:
35116: if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
35117:
35118: if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
35119:
35120: if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
35121: ai_p=$SQLITE3_DIR/$PHP_LIBDIR
35122: else
35123:
35124: ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
35125:
35126: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35127: ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
35128: fi
35129:
35130:
35131:
35132:
35133:
35134: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35135:
35136: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35137: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35138: eval "LIBPATH$unique=set"
35139:
35140: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35141: LDFLAGS="$LDFLAGS -L$ai_p"
35142: PHP_RPATHS="$PHP_RPATHS $ai_p"
35143:
35144: fi
35145:
35146:
35147:
35148: fi
35149:
35150: fi
35151:
35152:
35153: case sqlite3 in
35154: c|c_r|pthread*) ;;
35155: *)
35156: LIBS="-lsqlite3 $LIBS"
35157: ;;
35158: esac
35159:
35160:
35161:
35162:
35163: fi
35164:
35165:
35166:
35167: if test "$SQLITE3_DIR/include" != "/usr/include"; then
35168:
35169: if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then
35170: ai_p=$SQLITE3_DIR/include
35171: else
35172:
35173: ep_dir="`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
35174:
35175: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35176: ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/include\"`"
35177: fi
35178:
35179:
35180:
35181: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35182:
35183: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
35184: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35185: eval "INCLUDEPATH$unique=set"
35186:
35187: if test ""; then
35188: INCLUDES="-I$ai_p $INCLUDES"
35189: else
35190: INCLUDES="$INCLUDES -I$ai_p"
35191: fi
35192:
35193: fi
35194:
35195: fi
35196:
35197:
35198:
35199: else
35200:
35201: LDFLAGS=$save_old_LDFLAGS
35202: ext_shared=$save_ext_shared
35203: unset ac_cv_lib_sqlite3_sqlite3_prepare_v2
35204:
1.1.1.3 ! misho 35205: { echo "$as_me:$LINENO: result: not found" >&5
! 35206: echo "${ECHO_T}not found" >&6; }
! 35207: { { echo "$as_me:$LINENO: error: Please install SQLite 3.3.9 first or check libsqlite3 is present" >&5
! 35208: echo "$as_me: error: Please install SQLite 3.3.9 first or check libsqlite3 is present" >&2;}
! 35209: { (exit 1); exit 1; }; }
1.1 misho 35210:
35211:
35212: fi
35213:
35214:
35215:
35216: save_old_LDFLAGS=$LDFLAGS
35217: ac_stuff=""
35218:
35219: save_ext_shared=$ext_shared
35220: ext_shared=yes
35221:
35222: for ac_i in $ac_stuff; do
35223: case $ac_i in
35224: -pthread)
35225: if test "$ext_shared" = "yes"; then
35226: LDFLAGS="$LDFLAGS -pthread"
35227: else
35228:
35229:
35230: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
35231:
35232: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
35233: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35234: eval "EXTRA_LDFLAGS$unique=set"
35235: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
35236: fi
35237:
35238: fi
35239: ;;
35240: -l*)
35241: ac_ii=`echo $ac_i|cut -c 3-`
35242:
35243:
35244: case $ac_ii in
35245: c|c_r|pthread*) ;;
35246: *)
35247: if test "$ext_shared" = "yes"; then
35248: LDFLAGS="$LDFLAGS -l$ac_ii"
35249: else
35250:
35251:
35252: case $ac_ii in
35253: c|c_r|pthread*) ;;
35254: *)
35255: LIBS="$LIBS -l$ac_ii"
35256: ;;
35257: esac
35258:
35259:
35260: fi
35261: ;;
35262: esac
35263:
35264:
35265: ;;
35266: -L*)
35267: ac_ii=`echo $ac_i|cut -c 3-`
35268:
35269: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
35270:
35271: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
35272: ai_p=$ac_ii
35273: else
35274:
35275: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
35276:
35277: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35278: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
35279: fi
35280:
35281:
35282: if test "$ext_shared" = "yes"; then
35283: LDFLAGS="-L$ai_p $LDFLAGS"
35284: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
35285: else
35286:
35287:
35288:
35289: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35290:
35291: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35292: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35293: eval "LIBPATH$unique=set"
35294:
35295: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35296: LDFLAGS="$LDFLAGS -L$ai_p"
35297: PHP_RPATHS="$PHP_RPATHS $ai_p"
35298:
35299: fi
35300:
35301:
35302: fi
35303:
35304: fi
35305:
35306: ;;
35307: esac
35308: done
35309:
1.1.1.3 ! misho 35310: { echo "$as_me:$LINENO: checking for sqlite3_key in -lsqlite3" >&5
! 35311: echo $ECHO_N "checking for sqlite3_key in -lsqlite3... $ECHO_C" >&6; }
! 35312: if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then
! 35313: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 35314: else
35315: ac_check_lib_save_LIBS=$LIBS
35316: LIBS="-lsqlite3 $LIBS"
1.1.1.3 ! misho 35317: cat >conftest.$ac_ext <<_ACEOF
! 35318: /* confdefs.h. */
! 35319: _ACEOF
! 35320: cat confdefs.h >>conftest.$ac_ext
! 35321: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 35322: /* end confdefs.h. */
35323:
35324: /* Override any GCC internal prototype to avoid an error.
35325: Use char because int might match the return type of a GCC
35326: builtin and then its argument prototype would still apply. */
35327: #ifdef __cplusplus
35328: extern "C"
35329: #endif
35330: char sqlite3_key ();
35331: int
35332: main ()
35333: {
35334: return sqlite3_key ();
35335: ;
35336: return 0;
35337: }
35338: _ACEOF
1.1.1.3 ! misho 35339: rm -f conftest.$ac_objext conftest$ac_exeext
! 35340: if { (ac_try="$ac_link"
! 35341: case "(($ac_try" in
! 35342: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 35343: *) ac_try_echo=$ac_try;;
! 35344: esac
! 35345: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 35346: (eval "$ac_link") 2>conftest.er1
! 35347: ac_status=$?
! 35348: grep -v '^ *+' conftest.er1 >conftest.err
! 35349: rm -f conftest.er1
! 35350: cat conftest.err >&5
! 35351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 35352: (exit $ac_status); } && {
! 35353: test -z "$ac_c_werror_flag" ||
! 35354: test ! -s conftest.err
! 35355: } && test -s conftest$ac_exeext &&
! 35356: $as_test_x conftest$ac_exeext; then
1.1 misho 35357: ac_cv_lib_sqlite3_sqlite3_key=yes
35358: else
1.1.1.3 ! misho 35359: echo "$as_me: failed program was:" >&5
! 35360: sed 's/^/| /' conftest.$ac_ext >&5
! 35361:
! 35362: ac_cv_lib_sqlite3_sqlite3_key=no
1.1 misho 35363: fi
1.1.1.3 ! misho 35364:
! 35365: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 35366: conftest$ac_exeext conftest.$ac_ext
1.1 misho 35367: LIBS=$ac_check_lib_save_LIBS
35368: fi
1.1.1.3 ! misho 35369: { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
! 35370: echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
! 35371: if test $ac_cv_lib_sqlite3_sqlite3_key = yes; then
1.1 misho 35372:
35373: LDFLAGS=$save_old_LDFLAGS
35374: ext_shared=$save_ext_shared
35375:
35376:
1.1.1.3 ! misho 35377: cat >>confdefs.h <<\_ACEOF
! 35378: #define HAVE_SQLITE3_KEY 1
! 35379: _ACEOF
1.1 misho 35380:
35381:
35382:
35383: else
35384:
35385: LDFLAGS=$save_old_LDFLAGS
35386: ext_shared=$save_ext_shared
35387: unset ac_cv_lib_sqlite3_sqlite3_key
35388:
35389:
35390: fi
35391:
35392:
1.1.1.3 ! misho 35393: save_old_LDFLAGS=$LDFLAGS
! 35394: ac_stuff=""
! 35395:
! 35396: save_ext_shared=$ext_shared
! 35397: ext_shared=yes
! 35398:
! 35399: for ac_i in $ac_stuff; do
! 35400: case $ac_i in
! 35401: -pthread)
! 35402: if test "$ext_shared" = "yes"; then
! 35403: LDFLAGS="$LDFLAGS -pthread"
! 35404: else
! 35405:
! 35406:
! 35407: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
! 35408:
! 35409: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
! 35410: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 35411: eval "EXTRA_LDFLAGS$unique=set"
! 35412: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
! 35413: fi
! 35414:
! 35415: fi
! 35416: ;;
! 35417: -l*)
! 35418: ac_ii=`echo $ac_i|cut -c 3-`
! 35419:
! 35420:
! 35421: case $ac_ii in
! 35422: c|c_r|pthread*) ;;
! 35423: *)
! 35424: if test "$ext_shared" = "yes"; then
! 35425: LDFLAGS="$LDFLAGS -l$ac_ii"
! 35426: else
! 35427:
! 35428:
! 35429: case $ac_ii in
! 35430: c|c_r|pthread*) ;;
! 35431: *)
! 35432: LIBS="$LIBS -l$ac_ii"
! 35433: ;;
! 35434: esac
! 35435:
! 35436:
! 35437: fi
! 35438: ;;
! 35439: esac
! 35440:
! 35441:
! 35442: ;;
! 35443: -L*)
! 35444: ac_ii=`echo $ac_i|cut -c 3-`
! 35445:
! 35446: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
! 35447:
! 35448: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
! 35449: ai_p=$ac_ii
! 35450: else
! 35451:
! 35452: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
! 35453:
! 35454: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
! 35455: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
! 35456: fi
! 35457:
! 35458:
! 35459: if test "$ext_shared" = "yes"; then
! 35460: LDFLAGS="-L$ai_p $LDFLAGS"
! 35461: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
! 35462: else
! 35463:
! 35464:
! 35465:
! 35466: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
! 35467:
! 35468: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
! 35469: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 35470: eval "LIBPATH$unique=set"
! 35471:
! 35472: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
! 35473: LDFLAGS="$LDFLAGS -L$ai_p"
! 35474: PHP_RPATHS="$PHP_RPATHS $ai_p"
! 35475:
! 35476: fi
! 35477:
! 35478:
! 35479: fi
! 35480:
! 35481: fi
! 35482:
! 35483: ;;
! 35484: esac
! 35485: done
! 35486:
! 35487: { echo "$as_me:$LINENO: checking for sqlite3_column_table_name in -lsqlite3" >&5
! 35488: echo $ECHO_N "checking for sqlite3_column_table_name in -lsqlite3... $ECHO_C" >&6; }
! 35489: if test "${ac_cv_lib_sqlite3_sqlite3_column_table_name+set}" = set; then
! 35490: echo $ECHO_N "(cached) $ECHO_C" >&6
! 35491: else
! 35492: ac_check_lib_save_LIBS=$LIBS
! 35493: LIBS="-lsqlite3 $LIBS"
! 35494: cat >conftest.$ac_ext <<_ACEOF
! 35495: /* confdefs.h. */
! 35496: _ACEOF
! 35497: cat confdefs.h >>conftest.$ac_ext
! 35498: cat >>conftest.$ac_ext <<_ACEOF
! 35499: /* end confdefs.h. */
! 35500:
! 35501: /* Override any GCC internal prototype to avoid an error.
! 35502: Use char because int might match the return type of a GCC
! 35503: builtin and then its argument prototype would still apply. */
! 35504: #ifdef __cplusplus
! 35505: extern "C"
! 35506: #endif
! 35507: char sqlite3_column_table_name ();
! 35508: int
! 35509: main ()
! 35510: {
! 35511: return sqlite3_column_table_name ();
! 35512: ;
! 35513: return 0;
! 35514: }
! 35515: _ACEOF
! 35516: rm -f conftest.$ac_objext conftest$ac_exeext
! 35517: if { (ac_try="$ac_link"
! 35518: case "(($ac_try" in
! 35519: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 35520: *) ac_try_echo=$ac_try;;
! 35521: esac
! 35522: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 35523: (eval "$ac_link") 2>conftest.er1
! 35524: ac_status=$?
! 35525: grep -v '^ *+' conftest.er1 >conftest.err
! 35526: rm -f conftest.er1
! 35527: cat conftest.err >&5
! 35528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 35529: (exit $ac_status); } && {
! 35530: test -z "$ac_c_werror_flag" ||
! 35531: test ! -s conftest.err
! 35532: } && test -s conftest$ac_exeext &&
! 35533: $as_test_x conftest$ac_exeext; then
! 35534: ac_cv_lib_sqlite3_sqlite3_column_table_name=yes
! 35535: else
! 35536: echo "$as_me: failed program was:" >&5
! 35537: sed 's/^/| /' conftest.$ac_ext >&5
! 35538:
! 35539: ac_cv_lib_sqlite3_sqlite3_column_table_name=no
! 35540: fi
! 35541:
! 35542: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 35543: conftest$ac_exeext conftest.$ac_ext
! 35544: LIBS=$ac_check_lib_save_LIBS
! 35545: fi
! 35546: { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5
! 35547: echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; }
! 35548: if test $ac_cv_lib_sqlite3_sqlite3_column_table_name = yes; then
! 35549:
! 35550: LDFLAGS=$save_old_LDFLAGS
! 35551: ext_shared=$save_ext_shared
! 35552:
! 35553:
! 35554: cat >>confdefs.h <<\_ACEOF
! 35555: #define SQLITE_ENABLE_COLUMN_METADATA 1
! 35556: _ACEOF
! 35557:
! 35558:
! 35559:
! 35560: else
! 35561:
! 35562: LDFLAGS=$save_old_LDFLAGS
! 35563: ext_shared=$save_ext_shared
! 35564: unset ac_cv_lib_sqlite3_sqlite3_column_table_name
! 35565:
! 35566:
! 35567: fi
! 35568:
! 35569:
1.1 misho 35570:
35571: save_old_LDFLAGS=$LDFLAGS
35572: ac_stuff=""
35573:
35574: save_ext_shared=$ext_shared
35575: ext_shared=yes
35576:
35577: for ac_i in $ac_stuff; do
35578: case $ac_i in
35579: -pthread)
35580: if test "$ext_shared" = "yes"; then
35581: LDFLAGS="$LDFLAGS -pthread"
35582: else
35583:
35584:
35585: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
35586:
35587: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
35588: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35589: eval "EXTRA_LDFLAGS$unique=set"
35590: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
35591: fi
35592:
35593: fi
35594: ;;
35595: -l*)
35596: ac_ii=`echo $ac_i|cut -c 3-`
35597:
35598:
35599: case $ac_ii in
35600: c|c_r|pthread*) ;;
35601: *)
35602: if test "$ext_shared" = "yes"; then
35603: LDFLAGS="$LDFLAGS -l$ac_ii"
35604: else
35605:
35606:
35607: case $ac_ii in
35608: c|c_r|pthread*) ;;
35609: *)
35610: LIBS="$LIBS -l$ac_ii"
35611: ;;
35612: esac
35613:
35614:
35615: fi
35616: ;;
35617: esac
35618:
35619:
35620: ;;
35621: -L*)
35622: ac_ii=`echo $ac_i|cut -c 3-`
35623:
35624: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
35625:
35626: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
35627: ai_p=$ac_ii
35628: else
35629:
35630: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
35631:
35632: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35633: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
35634: fi
35635:
35636:
35637: if test "$ext_shared" = "yes"; then
35638: LDFLAGS="-L$ai_p $LDFLAGS"
35639: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
35640: else
35641:
35642:
35643:
35644: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35645:
35646: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35647: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35648: eval "LIBPATH$unique=set"
35649:
35650: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35651: LDFLAGS="$LDFLAGS -L$ai_p"
35652: PHP_RPATHS="$PHP_RPATHS $ai_p"
35653:
35654: fi
35655:
35656:
35657: fi
35658:
35659: fi
35660:
35661: ;;
35662: esac
35663: done
35664:
1.1.1.3 ! misho 35665: { echo "$as_me:$LINENO: checking for sqlite3_load_extension in -lsqlite3" >&5
! 35666: echo $ECHO_N "checking for sqlite3_load_extension in -lsqlite3... $ECHO_C" >&6; }
! 35667: if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then
! 35668: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 35669: else
35670: ac_check_lib_save_LIBS=$LIBS
35671: LIBS="-lsqlite3 $LIBS"
1.1.1.3 ! misho 35672: cat >conftest.$ac_ext <<_ACEOF
! 35673: /* confdefs.h. */
! 35674: _ACEOF
! 35675: cat confdefs.h >>conftest.$ac_ext
! 35676: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 35677: /* end confdefs.h. */
35678:
35679: /* Override any GCC internal prototype to avoid an error.
35680: Use char because int might match the return type of a GCC
35681: builtin and then its argument prototype would still apply. */
35682: #ifdef __cplusplus
35683: extern "C"
35684: #endif
35685: char sqlite3_load_extension ();
35686: int
35687: main ()
35688: {
35689: return sqlite3_load_extension ();
35690: ;
35691: return 0;
35692: }
35693: _ACEOF
1.1.1.3 ! misho 35694: rm -f conftest.$ac_objext conftest$ac_exeext
! 35695: if { (ac_try="$ac_link"
! 35696: case "(($ac_try" in
! 35697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 35698: *) ac_try_echo=$ac_try;;
! 35699: esac
! 35700: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 35701: (eval "$ac_link") 2>conftest.er1
! 35702: ac_status=$?
! 35703: grep -v '^ *+' conftest.er1 >conftest.err
! 35704: rm -f conftest.er1
! 35705: cat conftest.err >&5
! 35706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 35707: (exit $ac_status); } && {
! 35708: test -z "$ac_c_werror_flag" ||
! 35709: test ! -s conftest.err
! 35710: } && test -s conftest$ac_exeext &&
! 35711: $as_test_x conftest$ac_exeext; then
1.1 misho 35712: ac_cv_lib_sqlite3_sqlite3_load_extension=yes
35713: else
1.1.1.3 ! misho 35714: echo "$as_me: failed program was:" >&5
! 35715: sed 's/^/| /' conftest.$ac_ext >&5
! 35716:
! 35717: ac_cv_lib_sqlite3_sqlite3_load_extension=no
1.1 misho 35718: fi
1.1.1.3 ! misho 35719:
! 35720: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 35721: conftest$ac_exeext conftest.$ac_ext
1.1 misho 35722: LIBS=$ac_check_lib_save_LIBS
35723: fi
1.1.1.3 ! misho 35724: { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
! 35725: echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
! 35726: if test $ac_cv_lib_sqlite3_sqlite3_load_extension = yes; then
1.1 misho 35727:
35728: LDFLAGS=$save_old_LDFLAGS
35729: ext_shared=$save_ext_shared
35730:
35731:
35732: else
35733:
35734: LDFLAGS=$save_old_LDFLAGS
35735: ext_shared=$save_ext_shared
35736: unset ac_cv_lib_sqlite3_sqlite3_load_extension
35737:
1.1.1.3 ! misho 35738: cat >>confdefs.h <<\_ACEOF
! 35739: #define SQLITE_OMIT_LOAD_EXTENSION 1
! 35740: _ACEOF
1.1 misho 35741:
35742:
35743:
35744: fi
35745:
35746:
35747: else
1.1.1.3 ! misho 35748: { echo "$as_me:$LINENO: checking bundled sqlite3 library" >&5
! 35749: echo $ECHO_N "checking bundled sqlite3 library... $ECHO_C" >&6; }
! 35750: { echo "$as_me:$LINENO: result: yes" >&5
! 35751: echo "${ECHO_T}yes" >&6; }
1.1 misho 35752:
35753: sqlite3_extra_sources="libsqlite/sqlite3.c"
35754:
35755: if test "$enable_maintainer_zts" = "yes"; then
35756: threadsafe_flags="-DSQLITE_THREADSAFE=1"
35757: else
35758: threadsafe_flags="-DSQLITE_THREADSAFE=0"
35759: fi
35760:
35761: if test "$ZEND_DEBUG" = "yes"; then
35762: debug_flags="-DSQLITE_DEBUG=1"
35763: fi
35764:
35765: other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
35766:
35767: if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
35768: other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
35769: fi
35770:
35771: PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
35772:
35773:
35774: for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
35775:
35776:
35777: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
35778:
35779: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
35780: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35781: eval "INSTALLHEADERS$unique=set"
35782:
35783: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
35784:
35785: fi
35786:
35787: done
35788:
35789:
35790: fi
35791:
35792:
1.1.1.3 ! misho 35793: cat >>confdefs.h <<\_ACEOF
! 35794: #define HAVE_SQLITE3 1
! 35795: _ACEOF
1.1 misho 35796:
35797:
35798: sqlite3_sources="sqlite3.c $sqlite3_extra_sources"
35799:
35800:
35801: ext_builddir=ext/sqlite3
35802: ext_srcdir=$abs_srcdir/ext/sqlite3
35803:
35804: ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
35805:
35806: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
35807: PHP_SQLITE3_SHARED=no
35808:
35809:
35810: case ext/sqlite3 in
35811: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35812: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35813: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35814: esac
35815:
35816:
35817:
35818: b_c_pre=$php_c_pre
35819: b_cxx_pre=$php_cxx_pre
35820: b_c_meta=$php_c_meta
35821: b_cxx_meta=$php_cxx_meta
35822: b_c_post=$php_c_post
35823: b_cxx_post=$php_cxx_post
35824: b_lo=$php_lo
35825:
35826:
35827: old_IFS=$IFS
35828: for ac_src in $sqlite3_sources; do
35829:
35830: IFS=.
35831: set $ac_src
35832: ac_obj=$1
35833: IFS=$old_IFS
35834:
35835: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35836:
35837: case $ac_src in
35838: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35839: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35840: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35841: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35842: esac
35843:
35844: cat >>Makefile.objects<<EOF
35845: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35846: $ac_comp
35847: EOF
35848: done
35849:
35850:
35851: EXT_STATIC="$EXT_STATIC sqlite3"
35852: if test "$ext_shared" != "nocli"; then
35853: EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
35854: fi
35855: else
35856: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
35857: PHP_SQLITE3_SHARED=yes
35858:
35859: case ext/sqlite3 in
35860: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35861: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35862: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35863: esac
35864:
35865:
35866:
35867: b_c_pre=$shared_c_pre
35868: b_cxx_pre=$shared_cxx_pre
35869: b_c_meta=$shared_c_meta
35870: b_cxx_meta=$shared_cxx_meta
35871: b_c_post=$shared_c_post
35872: b_cxx_post=$shared_cxx_post
35873: b_lo=$shared_lo
35874:
35875:
35876: old_IFS=$IFS
35877: for ac_src in $sqlite3_sources; do
35878:
35879: IFS=.
35880: set $ac_src
35881: ac_obj=$1
35882: IFS=$old_IFS
35883:
35884: shared_objects_sqlite3="$shared_objects_sqlite3 $ac_bdir$ac_obj.lo"
35885:
35886: case $ac_src in
35887: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35888: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35889: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35890: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35891: esac
35892:
35893: cat >>Makefile.objects<<EOF
35894: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35895: $ac_comp
35896: EOF
35897: done
35898:
35899: case $host_alias in
35900: *netware*)
35901:
35902: install_modules="install-modules"
35903:
35904: case $host_alias in
35905: *aix*)
35906: suffix=so
35907: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsqlite3.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(PHPSQLITE3_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsqlite3.so '$ext_builddir'/phpsqlite3.so'
35908: ;;
35909: *netware*)
35910: suffix=nlm
35911: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) -L$(top_builddir)/netware -lphp5lib $(SQLITE3_SHARED_LIBADD)'
35912: ;;
35913: *)
35914: suffix=la
35915: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(PHPSQLITE3_SHARED_LIBADD)'
35916: ;;
35917: esac
35918:
35919: if test "x" = "xyes"; then
35920: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite3.$suffix"
35921: else
35922: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite3.$suffix"
35923: fi
35924:
35925: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
35926:
35927: cat >>Makefile.objects<<EOF
35928: \$(phplibdir)/phpsqlite3.$suffix: $ext_builddir/phpsqlite3.$suffix
35929: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite3.$suffix \$(phplibdir)
35930:
35931: $ext_builddir/phpsqlite3.$suffix: \$(shared_objects_sqlite3) \$(PHPSQLITE3_SHARED_DEPENDENCIES)
35932: $link_cmd
35933:
35934: EOF
35935:
35936: ;;
35937: *)
35938:
35939: install_modules="install-modules"
35940:
35941: case $host_alias in
35942: *aix*)
35943: suffix=so
35944: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sqlite3.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(SQLITE3_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sqlite3.so '$ext_builddir'/sqlite3.so'
35945: ;;
35946: *netware*)
35947: suffix=nlm
35948: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) -L$(top_builddir)/netware -lphp5lib $(ITE3_SHARED_LIBADD)'
35949: ;;
35950: *)
35951: suffix=la
35952: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(SQLITE3_SHARED_LIBADD)'
35953: ;;
35954: esac
35955:
35956: if test "x" = "xyes"; then
35957: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite3.$suffix"
35958: else
35959: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite3.$suffix"
35960: fi
35961:
35962: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
35963:
35964: cat >>Makefile.objects<<EOF
35965: \$(phplibdir)/sqlite3.$suffix: $ext_builddir/sqlite3.$suffix
35966: \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite3.$suffix \$(phplibdir)
35967:
35968: $ext_builddir/sqlite3.$suffix: \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_DEPENDENCIES)
35969: $link_cmd
35970:
35971: EOF
35972:
35973: ;;
35974: esac
35975:
35976: cat >>confdefs.h <<_ACEOF
35977: #define COMPILE_DL_SQLITE3 1
35978: _ACEOF
35979:
35980: fi
35981: fi
35982:
35983: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
35984: PHP_SQLITE3_SHARED=no
1.1.1.3 ! misho 35985: case "$PHP_SAPI" in
! 35986: cgi|embed)
1.1 misho 35987:
35988:
35989: case ext/sqlite3 in
35990: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35991: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35992: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35993: esac
35994:
35995:
35996:
35997: b_c_pre=$php_c_pre
35998: b_cxx_pre=$php_cxx_pre
35999: b_c_meta=$php_c_meta
36000: b_cxx_meta=$php_cxx_meta
36001: b_c_post=$php_c_post
36002: b_cxx_post=$php_cxx_post
36003: b_lo=$php_lo
36004:
36005:
36006: old_IFS=$IFS
36007: for ac_src in $sqlite3_sources; do
36008:
36009: IFS=.
36010: set $ac_src
36011: ac_obj=$1
36012: IFS=$old_IFS
36013:
1.1.1.2 misho 36014: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 36015:
36016: case $ac_src in
36017: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36018: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36019: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36020: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36021: esac
36022:
36023: cat >>Makefile.objects<<EOF
36024: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36025: $ac_comp
36026: EOF
36027: done
36028:
36029:
1.1.1.3 ! misho 36030: EXT_STATIC="$EXT_STATIC sqlite3"
! 36031: ;;
! 36032: *)
1.1 misho 36033:
36034:
36035: case ext/sqlite3 in
36036: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36037: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36038: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36039: esac
36040:
36041:
36042:
36043: b_c_pre=$php_c_pre
36044: b_cxx_pre=$php_cxx_pre
36045: b_c_meta=$php_c_meta
36046: b_cxx_meta=$php_cxx_meta
36047: b_c_post=$php_c_post
36048: b_cxx_post=$php_cxx_post
36049: b_lo=$php_lo
36050:
36051:
36052: old_IFS=$IFS
36053: for ac_src in $sqlite3_sources; do
36054:
36055: IFS=.
36056: set $ac_src
36057: ac_obj=$1
36058: IFS=$old_IFS
36059:
1.1.1.2 misho 36060: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 36061:
36062: case $ac_src in
36063: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36064: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36065: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36066: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36067: esac
36068:
36069: cat >>Makefile.objects<<EOF
36070: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36071: $ac_comp
36072: EOF
36073: done
36074:
36075:
1.1.1.3 ! misho 36076: ;;
! 36077: esac
1.1 misho 36078: EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
36079: fi
36080:
36081:
36082: BUILD_DIR="$BUILD_DIR $ext_builddir"
36083:
36084:
36085:
36086: if test "$ext_builddir" = "."; then
36087: PHP_PECL_EXTENSION=sqlite3
36088:
36089: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
36090:
36091: fi
36092:
36093:
36094:
36095: BUILD_DIR="$BUILD_DIR $ext_builddir/libsqlite"
36096:
36097:
36098:
36099: PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE3_SHARED_LIBADD"
36100:
36101: fi
36102:
36103:
36104:
36105: php_with_zlib=no
36106:
1.1.1.3 ! misho 36107: { echo "$as_me:$LINENO: checking for ZLIB support" >&5
! 36108: echo $ECHO_N "checking for ZLIB support... $ECHO_C" >&6; }
1.1 misho 36109:
36110: # Check whether --with-zlib was given.
1.1.1.3 ! misho 36111: if test "${with_zlib+set}" = set; then
1.1 misho 36112: withval=$with_zlib; PHP_ZLIB=$withval
36113: else
36114:
36115: PHP_ZLIB=no
36116: test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL
36117:
36118: fi
36119:
36120:
36121:
36122: ext_output="yes, shared"
36123: ext_shared=yes
36124: case $PHP_ZLIB in
36125: shared,*)
36126: PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'`
36127: ;;
36128: shared)
36129: PHP_ZLIB=yes
36130: ;;
36131: no)
36132: ext_output=no
36133: ext_shared=no
36134: ;;
36135: *)
36136: ext_output=yes
36137: ext_shared=no
36138: ;;
36139: esac
36140:
36141:
36142:
1.1.1.3 ! misho 36143: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 36144: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 36145:
36146:
36147:
36148:
36149:
36150: php_with_zlib_dir=no
36151:
1.1.1.3 ! misho 36152: { echo "$as_me:$LINENO: checking if the location of ZLIB install directory is defined" >&5
! 36153: echo $ECHO_N "checking if the location of ZLIB install directory is defined... $ECHO_C" >&6; }
1.1 misho 36154:
36155: # Check whether --with-zlib-dir was given.
1.1.1.3 ! misho 36156: if test "${with_zlib_dir+set}" = set; then
1.1 misho 36157: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
36158: else
36159:
36160: PHP_ZLIB_DIR=no
36161:
36162:
36163: fi
36164:
36165:
36166: ext_output=$PHP_ZLIB_DIR
1.1.1.3 ! misho 36167: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 36168: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 36169:
36170:
36171:
36172:
1.1.1.3 ! misho 36173: if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
1.1 misho 36174:
36175: ext_builddir=ext/zlib
36176: ext_srcdir=$abs_srcdir/ext/zlib
36177:
36178: ac_extra=
36179:
36180: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
36181: PHP_ZLIB_SHARED=no
36182:
36183:
36184: case ext/zlib in
36185: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36186: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36187: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36188: esac
36189:
36190:
36191:
36192: b_c_pre=$php_c_pre
36193: b_cxx_pre=$php_cxx_pre
36194: b_c_meta=$php_c_meta
36195: b_cxx_meta=$php_cxx_meta
36196: b_c_post=$php_c_post
36197: b_cxx_post=$php_cxx_post
36198: b_lo=$php_lo
36199:
36200:
36201: old_IFS=$IFS
36202: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
36203:
36204: IFS=.
36205: set $ac_src
36206: ac_obj=$1
36207: IFS=$old_IFS
36208:
36209: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36210:
36211: case $ac_src in
36212: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36213: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36214: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36215: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36216: esac
36217:
36218: cat >>Makefile.objects<<EOF
36219: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36220: $ac_comp
36221: EOF
36222: done
36223:
36224:
36225: EXT_STATIC="$EXT_STATIC zlib"
36226: if test "$ext_shared" != "nocli"; then
36227: EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
36228: fi
36229: else
36230: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
36231: PHP_ZLIB_SHARED=yes
36232:
36233: case ext/zlib in
36234: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36235: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36236: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36237: esac
36238:
36239:
36240:
36241: b_c_pre=$shared_c_pre
36242: b_cxx_pre=$shared_cxx_pre
36243: b_c_meta=$shared_c_meta
36244: b_cxx_meta=$shared_cxx_meta
36245: b_c_post=$shared_c_post
36246: b_cxx_post=$shared_cxx_post
36247: b_lo=$shared_lo
36248:
36249:
36250: old_IFS=$IFS
36251: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
36252:
36253: IFS=.
36254: set $ac_src
36255: ac_obj=$1
36256: IFS=$old_IFS
36257:
36258: shared_objects_zlib="$shared_objects_zlib $ac_bdir$ac_obj.lo"
36259:
36260: case $ac_src in
36261: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36262: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36263: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36264: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36265: esac
36266:
36267: cat >>Makefile.objects<<EOF
36268: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36269: $ac_comp
36270: EOF
36271: done
36272:
36273: case $host_alias in
36274: *netware*)
36275:
36276: install_modules="install-modules"
36277:
36278: case $host_alias in
36279: *aix*)
36280: suffix=so
36281: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpzlib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(PHPZLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpzlib.so '$ext_builddir'/phpzlib.so'
36282: ;;
36283: *netware*)
36284: suffix=nlm
36285: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) -L$(top_builddir)/netware -lphp5lib $(ZLIB_SHARED_LIBADD)'
36286: ;;
36287: *)
36288: suffix=la
36289: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(PHPZLIB_SHARED_LIBADD)'
36290: ;;
36291: esac
36292:
36293: if test "x" = "xyes"; then
36294: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzlib.$suffix"
36295: else
36296: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzlib.$suffix"
36297: fi
36298:
36299: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
36300:
36301: cat >>Makefile.objects<<EOF
36302: \$(phplibdir)/phpzlib.$suffix: $ext_builddir/phpzlib.$suffix
36303: \$(LIBTOOL) --mode=install cp $ext_builddir/phpzlib.$suffix \$(phplibdir)
36304:
36305: $ext_builddir/phpzlib.$suffix: \$(shared_objects_zlib) \$(PHPZLIB_SHARED_DEPENDENCIES)
36306: $link_cmd
36307:
36308: EOF
36309:
36310: ;;
36311: *)
36312:
36313: install_modules="install-modules"
36314:
36315: case $host_alias in
36316: *aix*)
36317: suffix=so
36318: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/zlib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(ZLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/zlib.so '$ext_builddir'/zlib.so'
36319: ;;
36320: *netware*)
36321: suffix=nlm
36322: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) -L$(top_builddir)/netware -lphp5lib $(B_SHARED_LIBADD)'
36323: ;;
36324: *)
36325: suffix=la
36326: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(ZLIB_SHARED_LIBADD)'
36327: ;;
36328: esac
36329:
36330: if test "x" = "xyes"; then
36331: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zlib.$suffix"
36332: else
36333: PHP_MODULES="$PHP_MODULES \$(phplibdir)/zlib.$suffix"
36334: fi
36335:
36336: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
36337:
36338: cat >>Makefile.objects<<EOF
36339: \$(phplibdir)/zlib.$suffix: $ext_builddir/zlib.$suffix
36340: \$(LIBTOOL) --mode=install cp $ext_builddir/zlib.$suffix \$(phplibdir)
36341:
36342: $ext_builddir/zlib.$suffix: \$(shared_objects_zlib) \$(ZLIB_SHARED_DEPENDENCIES)
36343: $link_cmd
36344:
36345: EOF
36346:
36347: ;;
36348: esac
36349:
36350: cat >>confdefs.h <<_ACEOF
36351: #define COMPILE_DL_ZLIB 1
36352: _ACEOF
36353:
36354: fi
36355: fi
36356:
36357: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
36358: PHP_ZLIB_SHARED=no
1.1.1.3 ! misho 36359: case "$PHP_SAPI" in
! 36360: cgi|embed)
1.1 misho 36361:
36362:
36363: case ext/zlib in
36364: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36365: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36366: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36367: esac
36368:
36369:
36370:
36371: b_c_pre=$php_c_pre
36372: b_cxx_pre=$php_cxx_pre
36373: b_c_meta=$php_c_meta
36374: b_cxx_meta=$php_cxx_meta
36375: b_c_post=$php_c_post
36376: b_cxx_post=$php_cxx_post
36377: b_lo=$php_lo
36378:
36379:
36380: old_IFS=$IFS
36381: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
36382:
36383: IFS=.
36384: set $ac_src
36385: ac_obj=$1
36386: IFS=$old_IFS
36387:
1.1.1.2 misho 36388: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 36389:
36390: case $ac_src in
36391: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36392: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36393: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36394: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36395: esac
36396:
36397: cat >>Makefile.objects<<EOF
36398: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36399: $ac_comp
36400: EOF
36401: done
36402:
36403:
1.1.1.3 ! misho 36404: EXT_STATIC="$EXT_STATIC zlib"
! 36405: ;;
! 36406: *)
1.1 misho 36407:
36408:
36409: case ext/zlib in
36410: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36411: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36412: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36413: esac
36414:
36415:
36416:
36417: b_c_pre=$php_c_pre
36418: b_cxx_pre=$php_cxx_pre
36419: b_c_meta=$php_c_meta
36420: b_cxx_meta=$php_cxx_meta
36421: b_c_post=$php_c_post
36422: b_cxx_post=$php_cxx_post
36423: b_lo=$php_lo
36424:
36425:
36426: old_IFS=$IFS
36427: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
36428:
36429: IFS=.
36430: set $ac_src
36431: ac_obj=$1
36432: IFS=$old_IFS
36433:
1.1.1.2 misho 36434: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 36435:
36436: case $ac_src in
36437: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36438: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36439: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36440: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36441: esac
36442:
36443: cat >>Makefile.objects<<EOF
36444: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36445: $ac_comp
36446: EOF
36447: done
36448:
36449:
1.1.1.3 ! misho 36450: ;;
! 36451: esac
1.1 misho 36452: EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
36453: fi
36454:
36455:
36456: BUILD_DIR="$BUILD_DIR $ext_builddir"
36457:
36458:
36459:
36460: if test "$ext_builddir" = "."; then
36461: PHP_PECL_EXTENSION=zlib
36462:
36463: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
36464:
36465: fi
36466:
36467:
36468: PHP_VAR_SUBST="$PHP_VAR_SUBST ZLIB_SHARED_LIBADD"
36469:
36470:
36471: if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then
36472: if test -f $PHP_ZLIB/include/zlib/zlib.h; then
36473: ZLIB_DIR=$PHP_ZLIB
36474: ZLIB_INCDIR=$ZLIB_DIR/include/zlib
36475: elif test -f $PHP_ZLIB/include/zlib.h; then
36476: ZLIB_DIR=$PHP_ZLIB
36477: ZLIB_INCDIR=$ZLIB_DIR/include
36478: fi
36479: else
36480: for i in /usr/local /usr $PHP_ZLIB_DIR; do
36481: if test -f $i/include/zlib/zlib.h; then
36482: ZLIB_DIR=$i
36483: ZLIB_INCDIR=$i/include/zlib
36484: elif test -f $i/include/zlib.h; then
36485: ZLIB_DIR=$i
36486: ZLIB_INCDIR=$i/include
36487: fi
36488: done
36489: fi
36490:
36491: if test -z "$ZLIB_DIR"; then
1.1.1.3 ! misho 36492: { { echo "$as_me:$LINENO: error: Cannot find libz" >&5
! 36493: echo "$as_me: error: Cannot find libz" >&2;}
! 36494: { (exit 1); exit 1; }; }
1.1 misho 36495: fi
36496:
36497: case $ZLIB_DIR in
36498: /usr) ac_extra= ;;
36499: *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;;
36500: esac
36501:
1.1.1.3 ! misho 36502: { echo "$as_me:$LINENO: checking for zlib version >= 1.2.0.4" >&5
! 36503: echo $ECHO_N "checking for zlib version >= 1.2.0.4... $ECHO_C" >&6; }
1.1.1.2 misho 36504: ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[^0-9\.]//g'`
1.1.1.3 ! misho 36505: { echo "$as_me:$LINENO: result: $ZLIB_VERSION" >&5
! 36506: echo "${ECHO_T}$ZLIB_VERSION" >&6; }
1.1.1.2 misho 36507: if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
1.1.1.3 ! misho 36508: { { echo "$as_me:$LINENO: error: libz version greater or equal to 1.2.0.4 required" >&5
! 36509: echo "$as_me: error: libz version greater or equal to 1.2.0.4 required" >&2;}
! 36510: { (exit 1); exit 1; }; }
1.1.1.2 misho 36511: fi
36512:
1.1 misho 36513:
36514: save_old_LDFLAGS=$LDFLAGS
36515: ac_stuff="
36516: $ac_extra
36517: "
36518:
36519: save_ext_shared=$ext_shared
36520: ext_shared=yes
36521:
36522: for ac_i in $ac_stuff; do
36523: case $ac_i in
36524: -pthread)
36525: if test "$ext_shared" = "yes"; then
36526: LDFLAGS="$LDFLAGS -pthread"
36527: else
36528:
36529:
36530: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
36531:
36532: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
36533: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36534: eval "EXTRA_LDFLAGS$unique=set"
36535: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
36536: fi
36537:
36538: fi
36539: ;;
36540: -l*)
36541: ac_ii=`echo $ac_i|cut -c 3-`
36542:
36543:
36544: case $ac_ii in
36545: c|c_r|pthread*) ;;
36546: *)
36547: if test "$ext_shared" = "yes"; then
36548: LDFLAGS="$LDFLAGS -l$ac_ii"
36549: else
36550:
36551:
36552: case $ac_ii in
36553: c|c_r|pthread*) ;;
36554: *)
36555: LIBS="$LIBS -l$ac_ii"
36556: ;;
36557: esac
36558:
36559:
36560: fi
36561: ;;
36562: esac
36563:
36564:
36565: ;;
36566: -L*)
36567: ac_ii=`echo $ac_i|cut -c 3-`
36568:
36569: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
36570:
36571: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36572: ai_p=$ac_ii
36573: else
36574:
36575: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
36576:
36577: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36578: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
36579: fi
36580:
36581:
36582: if test "$ext_shared" = "yes"; then
36583: LDFLAGS="-L$ai_p $LDFLAGS"
36584: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
36585: else
36586:
36587:
36588:
36589: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36590:
36591: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36592: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36593: eval "LIBPATH$unique=set"
36594:
36595: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36596: LDFLAGS="$LDFLAGS -L$ai_p"
36597: PHP_RPATHS="$PHP_RPATHS $ai_p"
36598:
36599: fi
36600:
36601:
36602: fi
36603:
36604: fi
36605:
36606: ;;
36607: esac
36608: done
36609:
1.1.1.3 ! misho 36610: { echo "$as_me:$LINENO: checking for gzgets in -lz" >&5
! 36611: echo $ECHO_N "checking for gzgets in -lz... $ECHO_C" >&6; }
! 36612: if test "${ac_cv_lib_z_gzgets+set}" = set; then
! 36613: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 36614: else
36615: ac_check_lib_save_LIBS=$LIBS
36616: LIBS="-lz $LIBS"
1.1.1.3 ! misho 36617: cat >conftest.$ac_ext <<_ACEOF
! 36618: /* confdefs.h. */
! 36619: _ACEOF
! 36620: cat confdefs.h >>conftest.$ac_ext
! 36621: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 36622: /* end confdefs.h. */
36623:
36624: /* Override any GCC internal prototype to avoid an error.
36625: Use char because int might match the return type of a GCC
36626: builtin and then its argument prototype would still apply. */
36627: #ifdef __cplusplus
36628: extern "C"
36629: #endif
36630: char gzgets ();
36631: int
36632: main ()
36633: {
36634: return gzgets ();
36635: ;
36636: return 0;
36637: }
36638: _ACEOF
1.1.1.3 ! misho 36639: rm -f conftest.$ac_objext conftest$ac_exeext
! 36640: if { (ac_try="$ac_link"
! 36641: case "(($ac_try" in
! 36642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 36643: *) ac_try_echo=$ac_try;;
! 36644: esac
! 36645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 36646: (eval "$ac_link") 2>conftest.er1
! 36647: ac_status=$?
! 36648: grep -v '^ *+' conftest.er1 >conftest.err
! 36649: rm -f conftest.er1
! 36650: cat conftest.err >&5
! 36651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 36652: (exit $ac_status); } && {
! 36653: test -z "$ac_c_werror_flag" ||
! 36654: test ! -s conftest.err
! 36655: } && test -s conftest$ac_exeext &&
! 36656: $as_test_x conftest$ac_exeext; then
1.1 misho 36657: ac_cv_lib_z_gzgets=yes
36658: else
1.1.1.3 ! misho 36659: echo "$as_me: failed program was:" >&5
! 36660: sed 's/^/| /' conftest.$ac_ext >&5
! 36661:
! 36662: ac_cv_lib_z_gzgets=no
1.1 misho 36663: fi
1.1.1.3 ! misho 36664:
! 36665: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 36666: conftest$ac_exeext conftest.$ac_ext
1.1 misho 36667: LIBS=$ac_check_lib_save_LIBS
36668: fi
1.1.1.3 ! misho 36669: { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzgets" >&5
! 36670: echo "${ECHO_T}$ac_cv_lib_z_gzgets" >&6; }
! 36671: if test $ac_cv_lib_z_gzgets = yes; then
1.1 misho 36672:
36673: LDFLAGS=$save_old_LDFLAGS
36674: ext_shared=$save_ext_shared
36675:
36676:
1.1.1.3 ! misho 36677: cat >>confdefs.h <<\_ACEOF
! 36678: #define HAVE_ZLIB 1
! 36679: _ACEOF
1.1 misho 36680:
36681:
36682:
36683: else
36684:
36685: LDFLAGS=$save_old_LDFLAGS
36686: ext_shared=$save_ext_shared
36687: unset ac_cv_lib_z_gzgets
36688:
1.1.1.3 ! misho 36689: { { echo "$as_me:$LINENO: error: ZLIB extension requires gzgets in zlib" >&5
! 36690: echo "$as_me: error: ZLIB extension requires gzgets in zlib" >&2;}
! 36691: { (exit 1); exit 1; }; }
1.1 misho 36692:
36693:
36694: fi
36695:
36696:
36697:
36698: if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
36699:
36700: if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
36701: ai_p=$ZLIB_DIR/$PHP_LIBDIR
36702: else
36703:
36704: ep_dir="`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36705:
36706: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36707: ai_p="$ep_realdir/`basename \"$ZLIB_DIR/$PHP_LIBDIR\"`"
36708: fi
36709:
36710:
36711: if test "$ext_shared" = "yes"; then
36712: ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD"
36713: test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD"
36714: else
36715:
36716:
36717:
36718: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36719:
36720: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36721: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36722: eval "LIBPATH$unique=set"
36723:
36724: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36725: LDFLAGS="$LDFLAGS -L$ai_p"
36726: PHP_RPATHS="$PHP_RPATHS $ai_p"
36727:
36728: fi
36729:
36730:
36731: fi
36732:
36733: fi
36734:
36735:
36736: PHP_ZLIB_DIR=$ZLIB_DIR
36737:
36738:
36739: case z in
36740: c|c_r|pthread*) ;;
36741: *)
36742: if test "$ext_shared" = "yes"; then
36743: ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD"
36744: else
36745:
36746:
36747: case z in
36748: c|c_r|pthread*) ;;
36749: *)
36750: LIBS="-lz $LIBS"
36751: ;;
36752: esac
36753:
36754:
36755: fi
36756: ;;
36757: esac
36758:
36759:
36760:
36761: if test "$ZLIB_INCDIR" != "/usr/include"; then
36762:
36763: if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then
36764: ai_p=$ZLIB_INCDIR
36765: else
36766:
36767: ep_dir="`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36768:
36769: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36770: ai_p="$ep_realdir/`basename \"$ZLIB_INCDIR\"`"
36771: fi
36772:
36773:
36774:
36775: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36776:
36777: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
36778: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36779: eval "INCLUDEPATH$unique=set"
36780:
36781: if test ""; then
36782: INCLUDES="-I$ai_p $INCLUDES"
36783: else
36784: INCLUDES="$INCLUDES -I$ai_p"
36785: fi
36786:
36787: fi
36788:
36789: fi
36790:
36791:
36792: fi
36793:
36794:
36795:
36796: php_enable_bcmath=no
36797:
1.1.1.3 ! misho 36798: { echo "$as_me:$LINENO: checking whether to enable bc style precision math functions" >&5
! 36799: echo $ECHO_N "checking whether to enable bc style precision math functions... $ECHO_C" >&6; }
1.1 misho 36800: # Check whether --enable-bcmath was given.
1.1.1.3 ! misho 36801: if test "${enable_bcmath+set}" = set; then
1.1 misho 36802: enableval=$enable_bcmath; PHP_BCMATH=$enableval
36803: else
36804:
36805: PHP_BCMATH=no
36806: test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL
36807:
36808: fi
36809:
36810:
36811:
36812: ext_output="yes, shared"
36813: ext_shared=yes
36814: case $PHP_BCMATH in
36815: shared,*)
36816: PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'`
36817: ;;
36818: shared)
36819: PHP_BCMATH=yes
36820: ;;
36821: no)
36822: ext_output=no
36823: ext_shared=no
36824: ;;
36825: *)
36826: ext_output=yes
36827: ext_shared=no
36828: ;;
36829: esac
36830:
36831:
36832:
1.1.1.3 ! misho 36833: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 36834: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 36835:
36836:
36837:
36838:
36839: if test "$PHP_BCMATH" != "no"; then
36840:
36841: ext_builddir=ext/bcmath
36842: ext_srcdir=$abs_srcdir/ext/bcmath
36843:
36844: ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
36845:
36846: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
36847: PHP_BCMATH_SHARED=no
36848:
36849:
36850: case ext/bcmath in
36851: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36852: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36853: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36854: esac
36855:
36856:
36857:
36858: b_c_pre=$php_c_pre
36859: b_cxx_pre=$php_cxx_pre
36860: b_c_meta=$php_c_meta
36861: b_cxx_meta=$php_cxx_meta
36862: b_c_post=$php_c_post
36863: b_cxx_post=$php_cxx_post
36864: b_lo=$php_lo
36865:
36866:
36867: old_IFS=$IFS
36868: for ac_src in bcmath.c \
36869: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
36870: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
36871: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
36872: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
36873:
36874: IFS=.
36875: set $ac_src
36876: ac_obj=$1
36877: IFS=$old_IFS
36878:
36879: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36880:
36881: case $ac_src in
36882: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36883: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36884: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36885: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36886: esac
36887:
36888: cat >>Makefile.objects<<EOF
36889: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36890: $ac_comp
36891: EOF
36892: done
36893:
36894:
36895: EXT_STATIC="$EXT_STATIC bcmath"
36896: if test "$ext_shared" != "nocli"; then
36897: EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
36898: fi
36899: else
36900: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
36901: PHP_BCMATH_SHARED=yes
36902:
36903: case ext/bcmath in
36904: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36905: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36906: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36907: esac
36908:
36909:
36910:
36911: b_c_pre=$shared_c_pre
36912: b_cxx_pre=$shared_cxx_pre
36913: b_c_meta=$shared_c_meta
36914: b_cxx_meta=$shared_cxx_meta
36915: b_c_post=$shared_c_post
36916: b_cxx_post=$shared_cxx_post
36917: b_lo=$shared_lo
36918:
36919:
36920: old_IFS=$IFS
36921: for ac_src in bcmath.c \
36922: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
36923: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
36924: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
36925: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
36926:
36927: IFS=.
36928: set $ac_src
36929: ac_obj=$1
36930: IFS=$old_IFS
36931:
36932: shared_objects_bcmath="$shared_objects_bcmath $ac_bdir$ac_obj.lo"
36933:
36934: case $ac_src in
36935: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36936: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36937: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36938: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36939: esac
36940:
36941: cat >>Makefile.objects<<EOF
36942: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36943: $ac_comp
36944: EOF
36945: done
36946:
36947: case $host_alias in
36948: *netware*)
36949:
36950: install_modules="install-modules"
36951:
36952: case $host_alias in
36953: *aix*)
36954: suffix=so
36955: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpbcmath.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(PHPBCMATH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpbcmath.so '$ext_builddir'/phpbcmath.so'
36956: ;;
36957: *netware*)
36958: suffix=nlm
36959: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) -L$(top_builddir)/netware -lphp5lib $(BCMATH_SHARED_LIBADD)'
36960: ;;
36961: *)
36962: suffix=la
36963: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(PHPBCMATH_SHARED_LIBADD)'
36964: ;;
36965: esac
36966:
36967: if test "x" = "xyes"; then
36968: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbcmath.$suffix"
36969: else
36970: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbcmath.$suffix"
36971: fi
36972:
36973: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
36974:
36975: cat >>Makefile.objects<<EOF
36976: \$(phplibdir)/phpbcmath.$suffix: $ext_builddir/phpbcmath.$suffix
36977: \$(LIBTOOL) --mode=install cp $ext_builddir/phpbcmath.$suffix \$(phplibdir)
36978:
36979: $ext_builddir/phpbcmath.$suffix: \$(shared_objects_bcmath) \$(PHPBCMATH_SHARED_DEPENDENCIES)
36980: $link_cmd
36981:
36982: EOF
36983:
36984: ;;
36985: *)
36986:
36987: install_modules="install-modules"
36988:
36989: case $host_alias in
36990: *aix*)
36991: suffix=so
36992: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/bcmath.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/bcmath.so '$ext_builddir'/bcmath.so'
36993: ;;
36994: *netware*)
36995: suffix=nlm
36996: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) -L$(top_builddir)/netware -lphp5lib $(ATH_SHARED_LIBADD)'
36997: ;;
36998: *)
36999: suffix=la
37000: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD)'
37001: ;;
37002: esac
37003:
37004: if test "x" = "xyes"; then
37005: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bcmath.$suffix"
37006: else
37007: PHP_MODULES="$PHP_MODULES \$(phplibdir)/bcmath.$suffix"
37008: fi
37009:
37010: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
37011:
37012: cat >>Makefile.objects<<EOF
37013: \$(phplibdir)/bcmath.$suffix: $ext_builddir/bcmath.$suffix
37014: \$(LIBTOOL) --mode=install cp $ext_builddir/bcmath.$suffix \$(phplibdir)
37015:
37016: $ext_builddir/bcmath.$suffix: \$(shared_objects_bcmath) \$(BCMATH_SHARED_DEPENDENCIES)
37017: $link_cmd
37018:
37019: EOF
37020:
37021: ;;
37022: esac
37023:
37024: cat >>confdefs.h <<_ACEOF
37025: #define COMPILE_DL_BCMATH 1
37026: _ACEOF
37027:
37028: fi
37029: fi
37030:
37031: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
37032: PHP_BCMATH_SHARED=no
1.1.1.3 ! misho 37033: case "$PHP_SAPI" in
! 37034: cgi|embed)
1.1 misho 37035:
37036:
37037: case ext/bcmath in
37038: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37039: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37040: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37041: esac
37042:
37043:
37044:
37045: b_c_pre=$php_c_pre
37046: b_cxx_pre=$php_cxx_pre
37047: b_c_meta=$php_c_meta
37048: b_cxx_meta=$php_cxx_meta
37049: b_c_post=$php_c_post
37050: b_cxx_post=$php_cxx_post
37051: b_lo=$php_lo
37052:
37053:
37054: old_IFS=$IFS
37055: for ac_src in bcmath.c \
37056: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
37057: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
37058: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
37059: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
37060:
37061: IFS=.
37062: set $ac_src
37063: ac_obj=$1
37064: IFS=$old_IFS
37065:
1.1.1.2 misho 37066: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 37067:
37068: case $ac_src in
37069: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37070: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37071: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37072: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37073: esac
37074:
37075: cat >>Makefile.objects<<EOF
37076: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37077: $ac_comp
37078: EOF
37079: done
37080:
37081:
1.1.1.3 ! misho 37082: EXT_STATIC="$EXT_STATIC bcmath"
! 37083: ;;
! 37084: *)
1.1 misho 37085:
37086:
37087: case ext/bcmath in
37088: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37089: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37090: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37091: esac
37092:
37093:
37094:
37095: b_c_pre=$php_c_pre
37096: b_cxx_pre=$php_cxx_pre
37097: b_c_meta=$php_c_meta
37098: b_cxx_meta=$php_cxx_meta
37099: b_c_post=$php_c_post
37100: b_cxx_post=$php_cxx_post
37101: b_lo=$php_lo
37102:
37103:
37104: old_IFS=$IFS
37105: for ac_src in bcmath.c \
37106: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
37107: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
37108: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
37109: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
37110:
37111: IFS=.
37112: set $ac_src
37113: ac_obj=$1
37114: IFS=$old_IFS
37115:
1.1.1.2 misho 37116: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 37117:
37118: case $ac_src in
37119: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37120: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37121: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37122: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37123: esac
37124:
37125: cat >>Makefile.objects<<EOF
37126: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37127: $ac_comp
37128: EOF
37129: done
37130:
37131:
1.1.1.3 ! misho 37132: ;;
! 37133: esac
1.1 misho 37134: EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
37135: fi
37136:
37137:
37138: BUILD_DIR="$BUILD_DIR $ext_builddir"
37139:
37140:
37141:
37142: if test "$ext_builddir" = "."; then
37143: PHP_PECL_EXTENSION=bcmath
37144:
37145: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37146:
37147: fi
37148:
37149:
37150:
37151: BUILD_DIR="$BUILD_DIR $ext_builddir/libbcmath/src"
37152:
37153:
37154:
1.1.1.3 ! misho 37155: cat >>confdefs.h <<\_ACEOF
! 37156: #define HAVE_BCMATH 1
! 37157: _ACEOF
1.1 misho 37158:
37159: fi
37160:
37161:
37162:
37163: php_with_bz2=no
37164:
1.1.1.3 ! misho 37165: { echo "$as_me:$LINENO: checking for BZip2 support" >&5
! 37166: echo $ECHO_N "checking for BZip2 support... $ECHO_C" >&6; }
1.1 misho 37167:
37168: # Check whether --with-bz2 was given.
1.1.1.3 ! misho 37169: if test "${with_bz2+set}" = set; then
1.1 misho 37170: withval=$with_bz2; PHP_BZ2=$withval
37171: else
37172:
37173: PHP_BZ2=no
37174: test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL
37175:
37176: fi
37177:
37178:
37179:
37180: ext_output="yes, shared"
37181: ext_shared=yes
37182: case $PHP_BZ2 in
37183: shared,*)
37184: PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'`
37185: ;;
37186: shared)
37187: PHP_BZ2=yes
37188: ;;
37189: no)
37190: ext_output=no
37191: ext_shared=no
37192: ;;
37193: *)
37194: ext_output=yes
37195: ext_shared=no
37196: ;;
37197: esac
37198:
37199:
37200:
1.1.1.3 ! misho 37201: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 37202: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 37203:
37204:
37205:
37206:
37207: if test "$PHP_BZ2" != "no"; then
37208: if test -r $PHP_BZ2/include/bzlib.h; then
37209: BZIP_DIR=$PHP_BZ2
37210: else
1.1.1.3 ! misho 37211: { echo "$as_me:$LINENO: checking for BZip2 in default path" >&5
! 37212: echo $ECHO_N "checking for BZip2 in default path... $ECHO_C" >&6; }
1.1 misho 37213: for i in /usr/local /usr; do
37214: if test -r $i/include/bzlib.h; then
37215: BZIP_DIR=$i
1.1.1.3 ! misho 37216: { echo "$as_me:$LINENO: result: found in $i" >&5
! 37217: echo "${ECHO_T}found in $i" >&6; }
1.1 misho 37218: break
37219: fi
37220: done
37221: fi
37222:
37223: if test -z "$BZIP_DIR"; then
1.1.1.3 ! misho 37224: { echo "$as_me:$LINENO: result: not found" >&5
! 37225: echo "${ECHO_T}not found" >&6; }
! 37226: { { echo "$as_me:$LINENO: error: Please reinstall the BZip2 distribution" >&5
! 37227: echo "$as_me: error: Please reinstall the BZip2 distribution" >&2;}
! 37228: { (exit 1); exit 1; }; }
1.1 misho 37229: fi
37230:
37231:
37232: save_old_LDFLAGS=$LDFLAGS
37233: ac_stuff="
37234: -L$BZIP_DIR/$PHP_LIBDIR
37235: "
37236:
37237: save_ext_shared=$ext_shared
37238: ext_shared=yes
37239:
37240: for ac_i in $ac_stuff; do
37241: case $ac_i in
37242: -pthread)
37243: if test "$ext_shared" = "yes"; then
37244: LDFLAGS="$LDFLAGS -pthread"
37245: else
37246:
37247:
37248: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
37249:
37250: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
37251: if test -n "$unique" && test "`eval $cmd`" = "" ; then
37252: eval "EXTRA_LDFLAGS$unique=set"
37253: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
37254: fi
37255:
37256: fi
37257: ;;
37258: -l*)
37259: ac_ii=`echo $ac_i|cut -c 3-`
37260:
37261:
37262: case $ac_ii in
37263: c|c_r|pthread*) ;;
37264: *)
37265: if test "$ext_shared" = "yes"; then
37266: LDFLAGS="$LDFLAGS -l$ac_ii"
37267: else
37268:
37269:
37270: case $ac_ii in
37271: c|c_r|pthread*) ;;
37272: *)
37273: LIBS="$LIBS -l$ac_ii"
37274: ;;
37275: esac
37276:
37277:
37278: fi
37279: ;;
37280: esac
37281:
37282:
37283: ;;
37284: -L*)
37285: ac_ii=`echo $ac_i|cut -c 3-`
37286:
37287: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
37288:
37289: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
37290: ai_p=$ac_ii
37291: else
37292:
37293: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
37294:
37295: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37296: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
37297: fi
37298:
37299:
37300: if test "$ext_shared" = "yes"; then
37301: LDFLAGS="-L$ai_p $LDFLAGS"
37302: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
37303: else
37304:
37305:
37306:
37307: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37308:
37309: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37310: if test -n "$unique" && test "`eval $cmd`" = "" ; then
37311: eval "LIBPATH$unique=set"
37312:
37313: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37314: LDFLAGS="$LDFLAGS -L$ai_p"
37315: PHP_RPATHS="$PHP_RPATHS $ai_p"
37316:
37317: fi
37318:
37319:
37320: fi
37321:
37322: fi
37323:
37324: ;;
37325: esac
37326: done
37327:
1.1.1.3 ! misho 37328: { echo "$as_me:$LINENO: checking for BZ2_bzerror in -lbz2" >&5
! 37329: echo $ECHO_N "checking for BZ2_bzerror in -lbz2... $ECHO_C" >&6; }
! 37330: if test "${ac_cv_lib_bz2_BZ2_bzerror+set}" = set; then
! 37331: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 37332: else
37333: ac_check_lib_save_LIBS=$LIBS
37334: LIBS="-lbz2 $LIBS"
1.1.1.3 ! misho 37335: cat >conftest.$ac_ext <<_ACEOF
! 37336: /* confdefs.h. */
! 37337: _ACEOF
! 37338: cat confdefs.h >>conftest.$ac_ext
! 37339: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 37340: /* end confdefs.h. */
37341:
37342: /* Override any GCC internal prototype to avoid an error.
37343: Use char because int might match the return type of a GCC
37344: builtin and then its argument prototype would still apply. */
37345: #ifdef __cplusplus
37346: extern "C"
37347: #endif
37348: char BZ2_bzerror ();
37349: int
37350: main ()
37351: {
37352: return BZ2_bzerror ();
37353: ;
37354: return 0;
37355: }
37356: _ACEOF
1.1.1.3 ! misho 37357: rm -f conftest.$ac_objext conftest$ac_exeext
! 37358: if { (ac_try="$ac_link"
! 37359: case "(($ac_try" in
! 37360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 37361: *) ac_try_echo=$ac_try;;
! 37362: esac
! 37363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 37364: (eval "$ac_link") 2>conftest.er1
! 37365: ac_status=$?
! 37366: grep -v '^ *+' conftest.er1 >conftest.err
! 37367: rm -f conftest.er1
! 37368: cat conftest.err >&5
! 37369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 37370: (exit $ac_status); } && {
! 37371: test -z "$ac_c_werror_flag" ||
! 37372: test ! -s conftest.err
! 37373: } && test -s conftest$ac_exeext &&
! 37374: $as_test_x conftest$ac_exeext; then
1.1 misho 37375: ac_cv_lib_bz2_BZ2_bzerror=yes
37376: else
1.1.1.3 ! misho 37377: echo "$as_me: failed program was:" >&5
! 37378: sed 's/^/| /' conftest.$ac_ext >&5
! 37379:
! 37380: ac_cv_lib_bz2_BZ2_bzerror=no
1.1 misho 37381: fi
1.1.1.3 ! misho 37382:
! 37383: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 37384: conftest$ac_exeext conftest.$ac_ext
1.1 misho 37385: LIBS=$ac_check_lib_save_LIBS
37386: fi
1.1.1.3 ! misho 37387: { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5
! 37388: echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzerror" >&6; }
! 37389: if test $ac_cv_lib_bz2_BZ2_bzerror = yes; then
1.1 misho 37390:
37391: LDFLAGS=$save_old_LDFLAGS
37392: ext_shared=$save_ext_shared
37393:
37394:
37395: if test "$BZIP_DIR/include" != "/usr/include"; then
37396:
37397: if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then
37398: ai_p=$BZIP_DIR/include
37399: else
37400:
37401: ep_dir="`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
37402:
37403: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37404: ai_p="$ep_realdir/`basename \"$BZIP_DIR/include\"`"
37405: fi
37406:
37407:
37408:
37409: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37410:
37411: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
37412: if test -n "$unique" && test "`eval $cmd`" = "" ; then
37413: eval "INCLUDEPATH$unique=set"
37414:
37415: if test ""; then
37416: INCLUDES="-I$ai_p $INCLUDES"
37417: else
37418: INCLUDES="$INCLUDES -I$ai_p"
37419: fi
37420:
37421: fi
37422:
37423: fi
37424:
37425:
37426:
37427: if test "$ext_shared" = "yes"; then
37428: BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD"
37429: if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
37430:
37431: if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
37432:
37433: if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
37434: ai_p=$BZIP_DIR/$PHP_LIBDIR
37435: else
37436:
37437: ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
37438:
37439: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37440: ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
37441: fi
37442:
37443:
37444: if test "$ext_shared" = "yes"; then
37445: BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD"
37446: test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD"
37447: else
37448:
37449:
37450:
37451: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37452:
37453: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37454: if test -n "$unique" && test "`eval $cmd`" = "" ; then
37455: eval "LIBPATH$unique=set"
37456:
37457: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37458: LDFLAGS="$LDFLAGS -L$ai_p"
37459: PHP_RPATHS="$PHP_RPATHS $ai_p"
37460:
37461: fi
37462:
37463:
37464: fi
37465:
37466: fi
37467:
37468: fi
37469: else
37470:
37471:
37472: if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
37473:
37474: if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
37475:
37476: if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
37477: ai_p=$BZIP_DIR/$PHP_LIBDIR
37478: else
37479:
37480: ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
37481:
37482: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37483: ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
37484: fi
37485:
37486:
37487:
37488:
37489:
37490: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37491:
37492: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37493: if test -n "$unique" && test "`eval $cmd`" = "" ; then
37494: eval "LIBPATH$unique=set"
37495:
37496: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37497: LDFLAGS="$LDFLAGS -L$ai_p"
37498: PHP_RPATHS="$PHP_RPATHS $ai_p"
37499:
37500: fi
37501:
37502:
37503:
37504: fi
37505:
37506: fi
37507:
37508:
37509: case bz2 in
37510: c|c_r|pthread*) ;;
37511: *)
37512: LIBS="-lbz2 $LIBS"
37513: ;;
37514: esac
37515:
37516:
37517:
37518:
37519: fi
37520:
37521:
37522:
1.1.1.3 ! misho 37523: cat >>confdefs.h <<\_ACEOF
! 37524: #define HAVE_BZ2 1
! 37525: _ACEOF
1.1 misho 37526:
37527:
37528:
37529: else
37530:
37531: LDFLAGS=$save_old_LDFLAGS
37532: ext_shared=$save_ext_shared
37533: unset ac_cv_lib_bz2_BZ2_bzerror
37534:
1.1.1.3 ! misho 37535: { { echo "$as_me:$LINENO: error: bz2 module requires libbz2 >= 1.0.0" >&5
! 37536: echo "$as_me: error: bz2 module requires libbz2 >= 1.0.0" >&2;}
! 37537: { (exit 1); exit 1; }; }
1.1 misho 37538:
37539:
37540: fi
37541:
37542:
37543:
37544: ext_builddir=ext/bz2
37545: ext_srcdir=$abs_srcdir/ext/bz2
37546:
37547: ac_extra=
37548:
37549: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
37550: PHP_BZ2_SHARED=no
37551:
37552:
37553: case ext/bz2 in
37554: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37555: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37556: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37557: esac
37558:
37559:
37560:
37561: b_c_pre=$php_c_pre
37562: b_cxx_pre=$php_cxx_pre
37563: b_c_meta=$php_c_meta
37564: b_cxx_meta=$php_cxx_meta
37565: b_c_post=$php_c_post
37566: b_cxx_post=$php_cxx_post
37567: b_lo=$php_lo
37568:
37569:
37570: old_IFS=$IFS
37571: for ac_src in bz2.c bz2_filter.c; do
37572:
37573: IFS=.
37574: set $ac_src
37575: ac_obj=$1
37576: IFS=$old_IFS
37577:
37578: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37579:
37580: case $ac_src in
37581: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37582: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37583: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37584: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37585: esac
37586:
37587: cat >>Makefile.objects<<EOF
37588: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37589: $ac_comp
37590: EOF
37591: done
37592:
37593:
37594: EXT_STATIC="$EXT_STATIC bz2"
37595: if test "$ext_shared" != "nocli"; then
37596: EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
37597: fi
37598: else
37599: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
37600: PHP_BZ2_SHARED=yes
37601:
37602: case ext/bz2 in
37603: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37604: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37605: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37606: esac
37607:
37608:
37609:
37610: b_c_pre=$shared_c_pre
37611: b_cxx_pre=$shared_cxx_pre
37612: b_c_meta=$shared_c_meta
37613: b_cxx_meta=$shared_cxx_meta
37614: b_c_post=$shared_c_post
37615: b_cxx_post=$shared_cxx_post
37616: b_lo=$shared_lo
37617:
37618:
37619: old_IFS=$IFS
37620: for ac_src in bz2.c bz2_filter.c; do
37621:
37622: IFS=.
37623: set $ac_src
37624: ac_obj=$1
37625: IFS=$old_IFS
37626:
37627: shared_objects_bz2="$shared_objects_bz2 $ac_bdir$ac_obj.lo"
37628:
37629: case $ac_src in
37630: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37631: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37632: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37633: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37634: esac
37635:
37636: cat >>Makefile.objects<<EOF
37637: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37638: $ac_comp
37639: EOF
37640: done
37641:
37642: case $host_alias in
37643: *netware*)
37644:
37645: install_modules="install-modules"
37646:
37647: case $host_alias in
37648: *aix*)
37649: suffix=so
37650: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpbz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(PHPBZ2_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpbz2.so '$ext_builddir'/phpbz2.so'
37651: ;;
37652: *netware*)
37653: suffix=nlm
37654: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) -L$(top_builddir)/netware -lphp5lib $(BZ2_SHARED_LIBADD)'
37655: ;;
37656: *)
37657: suffix=la
37658: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(PHPBZ2_SHARED_LIBADD)'
37659: ;;
37660: esac
37661:
37662: if test "x" = "xyes"; then
37663: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbz2.$suffix"
37664: else
37665: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbz2.$suffix"
37666: fi
37667:
37668: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
37669:
37670: cat >>Makefile.objects<<EOF
37671: \$(phplibdir)/phpbz2.$suffix: $ext_builddir/phpbz2.$suffix
37672: \$(LIBTOOL) --mode=install cp $ext_builddir/phpbz2.$suffix \$(phplibdir)
37673:
37674: $ext_builddir/phpbz2.$suffix: \$(shared_objects_bz2) \$(PHPBZ2_SHARED_DEPENDENCIES)
37675: $link_cmd
37676:
37677: EOF
37678:
37679: ;;
37680: *)
37681:
37682: install_modules="install-modules"
37683:
37684: case $host_alias in
37685: *aix*)
37686: suffix=so
37687: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/bz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(BZ2_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/bz2.so '$ext_builddir'/bz2.so'
37688: ;;
37689: *netware*)
37690: suffix=nlm
37691: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
37692: ;;
37693: *)
37694: suffix=la
37695: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(BZ2_SHARED_LIBADD)'
37696: ;;
37697: esac
37698:
37699: if test "x" = "xyes"; then
37700: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bz2.$suffix"
37701: else
37702: PHP_MODULES="$PHP_MODULES \$(phplibdir)/bz2.$suffix"
37703: fi
37704:
37705: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
37706:
37707: cat >>Makefile.objects<<EOF
37708: \$(phplibdir)/bz2.$suffix: $ext_builddir/bz2.$suffix
37709: \$(LIBTOOL) --mode=install cp $ext_builddir/bz2.$suffix \$(phplibdir)
37710:
37711: $ext_builddir/bz2.$suffix: \$(shared_objects_bz2) \$(BZ2_SHARED_DEPENDENCIES)
37712: $link_cmd
37713:
37714: EOF
37715:
37716: ;;
37717: esac
37718:
37719: cat >>confdefs.h <<_ACEOF
37720: #define COMPILE_DL_BZ2 1
37721: _ACEOF
37722:
37723: fi
37724: fi
37725:
37726: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
37727: PHP_BZ2_SHARED=no
1.1.1.3 ! misho 37728: case "$PHP_SAPI" in
! 37729: cgi|embed)
1.1 misho 37730:
37731:
37732: case ext/bz2 in
37733: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37734: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37735: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37736: esac
37737:
37738:
37739:
37740: b_c_pre=$php_c_pre
37741: b_cxx_pre=$php_cxx_pre
37742: b_c_meta=$php_c_meta
37743: b_cxx_meta=$php_cxx_meta
37744: b_c_post=$php_c_post
37745: b_cxx_post=$php_cxx_post
37746: b_lo=$php_lo
37747:
37748:
37749: old_IFS=$IFS
37750: for ac_src in bz2.c bz2_filter.c; do
37751:
37752: IFS=.
37753: set $ac_src
37754: ac_obj=$1
37755: IFS=$old_IFS
37756:
1.1.1.2 misho 37757: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 37758:
37759: case $ac_src in
37760: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37761: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37762: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37763: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37764: esac
37765:
37766: cat >>Makefile.objects<<EOF
37767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37768: $ac_comp
37769: EOF
37770: done
37771:
37772:
1.1.1.3 ! misho 37773: EXT_STATIC="$EXT_STATIC bz2"
! 37774: ;;
! 37775: *)
1.1 misho 37776:
37777:
37778: case ext/bz2 in
37779: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37780: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37781: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37782: esac
37783:
37784:
37785:
37786: b_c_pre=$php_c_pre
37787: b_cxx_pre=$php_cxx_pre
37788: b_c_meta=$php_c_meta
37789: b_cxx_meta=$php_cxx_meta
37790: b_c_post=$php_c_post
37791: b_cxx_post=$php_cxx_post
37792: b_lo=$php_lo
37793:
37794:
37795: old_IFS=$IFS
37796: for ac_src in bz2.c bz2_filter.c; do
37797:
37798: IFS=.
37799: set $ac_src
37800: ac_obj=$1
37801: IFS=$old_IFS
37802:
1.1.1.2 misho 37803: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 37804:
37805: case $ac_src in
37806: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37807: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37808: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37809: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37810: esac
37811:
37812: cat >>Makefile.objects<<EOF
37813: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37814: $ac_comp
37815: EOF
37816: done
37817:
37818:
1.1.1.3 ! misho 37819: ;;
! 37820: esac
1.1 misho 37821: EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
37822: fi
37823:
37824:
37825: BUILD_DIR="$BUILD_DIR $ext_builddir"
37826:
37827:
37828:
37829: if test "$ext_builddir" = "."; then
37830: PHP_PECL_EXTENSION=bz2
37831:
37832: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37833:
37834: fi
37835:
37836:
37837: PHP_VAR_SUBST="$PHP_VAR_SUBST BZ2_SHARED_LIBADD"
37838:
37839: fi
37840:
37841:
37842:
37843: php_enable_calendar=no
37844:
1.1.1.3 ! misho 37845: { echo "$as_me:$LINENO: checking whether to enable calendar conversion support" >&5
! 37846: echo $ECHO_N "checking whether to enable calendar conversion support... $ECHO_C" >&6; }
1.1 misho 37847: # Check whether --enable-calendar was given.
1.1.1.3 ! misho 37848: if test "${enable_calendar+set}" = set; then
1.1 misho 37849: enableval=$enable_calendar; PHP_CALENDAR=$enableval
37850: else
37851:
37852: PHP_CALENDAR=no
37853: test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL
37854:
37855: fi
37856:
37857:
37858:
37859: ext_output="yes, shared"
37860: ext_shared=yes
37861: case $PHP_CALENDAR in
37862: shared,*)
37863: PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'`
37864: ;;
37865: shared)
37866: PHP_CALENDAR=yes
37867: ;;
37868: no)
37869: ext_output=no
37870: ext_shared=no
37871: ;;
37872: *)
37873: ext_output=yes
37874: ext_shared=no
37875: ;;
37876: esac
37877:
37878:
37879:
1.1.1.3 ! misho 37880: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 37881: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 37882:
37883:
37884:
37885:
37886: if test "$PHP_CALENDAR" = "yes"; then
37887:
1.1.1.3 ! misho 37888: cat >>confdefs.h <<\_ACEOF
! 37889: #define HAVE_CALENDAR 1
! 37890: _ACEOF
1.1 misho 37891:
37892:
37893: ext_builddir=ext/calendar
37894: ext_srcdir=$abs_srcdir/ext/calendar
37895:
37896: ac_extra=
37897:
37898: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
37899: PHP_CALENDAR_SHARED=no
37900:
37901:
37902: case ext/calendar in
37903: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37904: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37905: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37906: esac
37907:
37908:
37909:
37910: b_c_pre=$php_c_pre
37911: b_cxx_pre=$php_cxx_pre
37912: b_c_meta=$php_c_meta
37913: b_cxx_meta=$php_cxx_meta
37914: b_c_post=$php_c_post
37915: b_cxx_post=$php_cxx_post
37916: b_lo=$php_lo
37917:
37918:
37919: old_IFS=$IFS
37920: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
37921:
37922: IFS=.
37923: set $ac_src
37924: ac_obj=$1
37925: IFS=$old_IFS
37926:
37927: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37928:
37929: case $ac_src in
37930: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37931: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37932: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37933: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37934: esac
37935:
37936: cat >>Makefile.objects<<EOF
37937: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37938: $ac_comp
37939: EOF
37940: done
37941:
37942:
37943: EXT_STATIC="$EXT_STATIC calendar"
37944: if test "$ext_shared" != "nocli"; then
37945: EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
37946: fi
37947: else
37948: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
37949: PHP_CALENDAR_SHARED=yes
37950:
37951: case ext/calendar in
37952: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37953: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37954: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37955: esac
37956:
37957:
37958:
37959: b_c_pre=$shared_c_pre
37960: b_cxx_pre=$shared_cxx_pre
37961: b_c_meta=$shared_c_meta
37962: b_cxx_meta=$shared_cxx_meta
37963: b_c_post=$shared_c_post
37964: b_cxx_post=$shared_cxx_post
37965: b_lo=$shared_lo
37966:
37967:
37968: old_IFS=$IFS
37969: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
37970:
37971: IFS=.
37972: set $ac_src
37973: ac_obj=$1
37974: IFS=$old_IFS
37975:
37976: shared_objects_calendar="$shared_objects_calendar $ac_bdir$ac_obj.lo"
37977:
37978: case $ac_src in
37979: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37980: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37981: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37982: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37983: esac
37984:
37985: cat >>Makefile.objects<<EOF
37986: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37987: $ac_comp
37988: EOF
37989: done
37990:
37991: case $host_alias in
37992: *netware*)
37993:
37994: install_modules="install-modules"
37995:
37996: case $host_alias in
37997: *aix*)
37998: suffix=so
37999: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcalendar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(PHPCALENDAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcalendar.so '$ext_builddir'/phpcalendar.so'
38000: ;;
38001: *netware*)
38002: suffix=nlm
38003: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) -L$(top_builddir)/netware -lphp5lib $(CALENDAR_SHARED_LIBADD)'
38004: ;;
38005: *)
38006: suffix=la
38007: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(PHPCALENDAR_SHARED_LIBADD)'
38008: ;;
38009: esac
38010:
38011: if test "x" = "xyes"; then
38012: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcalendar.$suffix"
38013: else
38014: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcalendar.$suffix"
38015: fi
38016:
38017: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
38018:
38019: cat >>Makefile.objects<<EOF
38020: \$(phplibdir)/phpcalendar.$suffix: $ext_builddir/phpcalendar.$suffix
38021: \$(LIBTOOL) --mode=install cp $ext_builddir/phpcalendar.$suffix \$(phplibdir)
38022:
38023: $ext_builddir/phpcalendar.$suffix: \$(shared_objects_calendar) \$(PHPCALENDAR_SHARED_DEPENDENCIES)
38024: $link_cmd
38025:
38026: EOF
38027:
38028: ;;
38029: *)
38030:
38031: install_modules="install-modules"
38032:
38033: case $host_alias in
38034: *aix*)
38035: suffix=so
38036: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/calendar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(CALENDAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/calendar.so '$ext_builddir'/calendar.so'
38037: ;;
38038: *netware*)
38039: suffix=nlm
38040: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) -L$(top_builddir)/netware -lphp5lib $(ENDAR_SHARED_LIBADD)'
38041: ;;
38042: *)
38043: suffix=la
38044: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(CALENDAR_SHARED_LIBADD)'
38045: ;;
38046: esac
38047:
38048: if test "x" = "xyes"; then
38049: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/calendar.$suffix"
38050: else
38051: PHP_MODULES="$PHP_MODULES \$(phplibdir)/calendar.$suffix"
38052: fi
38053:
38054: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
38055:
38056: cat >>Makefile.objects<<EOF
38057: \$(phplibdir)/calendar.$suffix: $ext_builddir/calendar.$suffix
38058: \$(LIBTOOL) --mode=install cp $ext_builddir/calendar.$suffix \$(phplibdir)
38059:
38060: $ext_builddir/calendar.$suffix: \$(shared_objects_calendar) \$(CALENDAR_SHARED_DEPENDENCIES)
38061: $link_cmd
38062:
38063: EOF
38064:
38065: ;;
38066: esac
38067:
38068: cat >>confdefs.h <<_ACEOF
38069: #define COMPILE_DL_CALENDAR 1
38070: _ACEOF
38071:
38072: fi
38073: fi
38074:
38075: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
38076: PHP_CALENDAR_SHARED=no
1.1.1.3 ! misho 38077: case "$PHP_SAPI" in
! 38078: cgi|embed)
1.1 misho 38079:
38080:
38081: case ext/calendar in
38082: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38083: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38084: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38085: esac
38086:
38087:
38088:
38089: b_c_pre=$php_c_pre
38090: b_cxx_pre=$php_cxx_pre
38091: b_c_meta=$php_c_meta
38092: b_cxx_meta=$php_cxx_meta
38093: b_c_post=$php_c_post
38094: b_cxx_post=$php_cxx_post
38095: b_lo=$php_lo
38096:
38097:
38098: old_IFS=$IFS
38099: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
38100:
38101: IFS=.
38102: set $ac_src
38103: ac_obj=$1
38104: IFS=$old_IFS
38105:
1.1.1.2 misho 38106: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 38107:
38108: case $ac_src in
38109: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38110: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38111: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38112: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38113: esac
38114:
38115: cat >>Makefile.objects<<EOF
38116: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38117: $ac_comp
38118: EOF
38119: done
38120:
38121:
1.1.1.3 ! misho 38122: EXT_STATIC="$EXT_STATIC calendar"
! 38123: ;;
! 38124: *)
1.1 misho 38125:
38126:
38127: case ext/calendar in
38128: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38129: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38130: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38131: esac
38132:
38133:
38134:
38135: b_c_pre=$php_c_pre
38136: b_cxx_pre=$php_cxx_pre
38137: b_c_meta=$php_c_meta
38138: b_cxx_meta=$php_cxx_meta
38139: b_c_post=$php_c_post
38140: b_cxx_post=$php_cxx_post
38141: b_lo=$php_lo
38142:
38143:
38144: old_IFS=$IFS
38145: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
38146:
38147: IFS=.
38148: set $ac_src
38149: ac_obj=$1
38150: IFS=$old_IFS
38151:
1.1.1.2 misho 38152: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 38153:
38154: case $ac_src in
38155: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38156: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38157: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38158: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38159: esac
38160:
38161: cat >>Makefile.objects<<EOF
38162: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38163: $ac_comp
38164: EOF
38165: done
38166:
38167:
1.1.1.3 ! misho 38168: ;;
! 38169: esac
1.1 misho 38170: EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
38171: fi
38172:
38173:
38174: BUILD_DIR="$BUILD_DIR $ext_builddir"
38175:
38176:
38177:
38178: if test "$ext_builddir" = "."; then
38179: PHP_PECL_EXTENSION=calendar
38180:
38181: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
38182:
38183: fi
38184:
38185: fi
38186:
38187:
38188:
38189: php_enable_ctype=yes
38190:
1.1.1.3 ! misho 38191: { echo "$as_me:$LINENO: checking whether to enable ctype functions" >&5
! 38192: echo $ECHO_N "checking whether to enable ctype functions... $ECHO_C" >&6; }
1.1 misho 38193: # Check whether --enable-ctype was given.
1.1.1.3 ! misho 38194: if test "${enable_ctype+set}" = set; then
1.1 misho 38195: enableval=$enable_ctype; PHP_CTYPE=$enableval
38196: else
38197:
38198: PHP_CTYPE=yes
38199: test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL
38200:
38201: fi
38202:
38203:
38204:
38205: ext_output="yes, shared"
38206: ext_shared=yes
38207: case $PHP_CTYPE in
38208: shared,*)
38209: PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'`
38210: ;;
38211: shared)
38212: PHP_CTYPE=yes
38213: ;;
38214: no)
38215: ext_output=no
38216: ext_shared=no
38217: ;;
38218: *)
38219: ext_output=yes
38220: ext_shared=no
38221: ;;
38222: esac
38223:
38224:
38225:
1.1.1.3 ! misho 38226: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 38227: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 38228:
38229:
38230:
38231:
38232: if test "$PHP_CTYPE" != "no"; then
38233:
1.1.1.3 ! misho 38234: cat >>confdefs.h <<\_ACEOF
! 38235: #define HAVE_CTYPE 1
! 38236: _ACEOF
1.1 misho 38237:
38238:
38239: ext_builddir=ext/ctype
38240: ext_srcdir=$abs_srcdir/ext/ctype
38241:
38242: ac_extra=
38243:
38244: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
38245: PHP_CTYPE_SHARED=no
38246:
38247:
38248: case ext/ctype in
38249: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38250: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38251: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38252: esac
38253:
38254:
38255:
38256: b_c_pre=$php_c_pre
38257: b_cxx_pre=$php_cxx_pre
38258: b_c_meta=$php_c_meta
38259: b_cxx_meta=$php_cxx_meta
38260: b_c_post=$php_c_post
38261: b_cxx_post=$php_cxx_post
38262: b_lo=$php_lo
38263:
38264:
38265: old_IFS=$IFS
38266: for ac_src in ctype.c; do
38267:
38268: IFS=.
38269: set $ac_src
38270: ac_obj=$1
38271: IFS=$old_IFS
38272:
38273: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
38274:
38275: case $ac_src in
38276: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38277: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38278: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38279: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38280: esac
38281:
38282: cat >>Makefile.objects<<EOF
38283: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38284: $ac_comp
38285: EOF
38286: done
38287:
38288:
38289: EXT_STATIC="$EXT_STATIC ctype"
38290: if test "$ext_shared" != "nocli"; then
38291: EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
38292: fi
38293: else
38294: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
38295: PHP_CTYPE_SHARED=yes
38296:
38297: case ext/ctype in
38298: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38299: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38300: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38301: esac
38302:
38303:
38304:
38305: b_c_pre=$shared_c_pre
38306: b_cxx_pre=$shared_cxx_pre
38307: b_c_meta=$shared_c_meta
38308: b_cxx_meta=$shared_cxx_meta
38309: b_c_post=$shared_c_post
38310: b_cxx_post=$shared_cxx_post
38311: b_lo=$shared_lo
38312:
38313:
38314: old_IFS=$IFS
38315: for ac_src in ctype.c; do
38316:
38317: IFS=.
38318: set $ac_src
38319: ac_obj=$1
38320: IFS=$old_IFS
38321:
38322: shared_objects_ctype="$shared_objects_ctype $ac_bdir$ac_obj.lo"
38323:
38324: case $ac_src in
38325: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38326: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38327: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38328: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38329: esac
38330:
38331: cat >>Makefile.objects<<EOF
38332: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38333: $ac_comp
38334: EOF
38335: done
38336:
38337: case $host_alias in
38338: *netware*)
38339:
38340: install_modules="install-modules"
38341:
38342: case $host_alias in
38343: *aix*)
38344: suffix=so
38345: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpctype.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(PHPCTYPE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpctype.so '$ext_builddir'/phpctype.so'
38346: ;;
38347: *netware*)
38348: suffix=nlm
38349: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) -L$(top_builddir)/netware -lphp5lib $(CTYPE_SHARED_LIBADD)'
38350: ;;
38351: *)
38352: suffix=la
38353: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(PHPCTYPE_SHARED_LIBADD)'
38354: ;;
38355: esac
38356:
38357: if test "x" = "xyes"; then
38358: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpctype.$suffix"
38359: else
38360: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpctype.$suffix"
38361: fi
38362:
38363: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
38364:
38365: cat >>Makefile.objects<<EOF
38366: \$(phplibdir)/phpctype.$suffix: $ext_builddir/phpctype.$suffix
38367: \$(LIBTOOL) --mode=install cp $ext_builddir/phpctype.$suffix \$(phplibdir)
38368:
38369: $ext_builddir/phpctype.$suffix: \$(shared_objects_ctype) \$(PHPCTYPE_SHARED_DEPENDENCIES)
38370: $link_cmd
38371:
38372: EOF
38373:
38374: ;;
38375: *)
38376:
38377: install_modules="install-modules"
38378:
38379: case $host_alias in
38380: *aix*)
38381: suffix=so
38382: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ctype.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(CTYPE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ctype.so '$ext_builddir'/ctype.so'
38383: ;;
38384: *netware*)
38385: suffix=nlm
38386: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) -L$(top_builddir)/netware -lphp5lib $(PE_SHARED_LIBADD)'
38387: ;;
38388: *)
38389: suffix=la
38390: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(CTYPE_SHARED_LIBADD)'
38391: ;;
38392: esac
38393:
38394: if test "x" = "xyes"; then
38395: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ctype.$suffix"
38396: else
38397: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ctype.$suffix"
38398: fi
38399:
38400: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
38401:
1.1.1.3 ! misho 38402: cat >>Makefile.objects<<EOF
! 38403: \$(phplibdir)/ctype.$suffix: $ext_builddir/ctype.$suffix
! 38404: \$(LIBTOOL) --mode=install cp $ext_builddir/ctype.$suffix \$(phplibdir)
1.1 misho 38405:
1.1.1.3 ! misho 38406: $ext_builddir/ctype.$suffix: \$(shared_objects_ctype) \$(CTYPE_SHARED_DEPENDENCIES)
! 38407: $link_cmd
1.1 misho 38408:
1.1.1.3 ! misho 38409: EOF
! 38410:
! 38411: ;;
1.1 misho 38412: esac
38413:
1.1.1.3 ! misho 38414: cat >>confdefs.h <<_ACEOF
! 38415: #define COMPILE_DL_CTYPE 1
! 38416: _ACEOF
1.1 misho 38417:
1.1.1.3 ! misho 38418: fi
! 38419: fi
1.1 misho 38420:
1.1.1.3 ! misho 38421: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
! 38422: PHP_CTYPE_SHARED=no
! 38423: case "$PHP_SAPI" in
! 38424: cgi|embed)
1.1 misho 38425:
38426:
38427: case ext/ctype in
38428: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38429: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38430: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38431: esac
38432:
38433:
38434:
38435: b_c_pre=$php_c_pre
38436: b_cxx_pre=$php_cxx_pre
38437: b_c_meta=$php_c_meta
38438: b_cxx_meta=$php_cxx_meta
38439: b_c_post=$php_c_post
38440: b_cxx_post=$php_cxx_post
38441: b_lo=$php_lo
38442:
38443:
38444: old_IFS=$IFS
38445: for ac_src in ctype.c; do
38446:
38447: IFS=.
38448: set $ac_src
38449: ac_obj=$1
38450: IFS=$old_IFS
38451:
1.1.1.2 misho 38452: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 38453:
38454: case $ac_src in
38455: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38456: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38457: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38458: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38459: esac
38460:
38461: cat >>Makefile.objects<<EOF
38462: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38463: $ac_comp
38464: EOF
38465: done
38466:
38467:
1.1.1.3 ! misho 38468: EXT_STATIC="$EXT_STATIC ctype"
! 38469: ;;
! 38470: *)
1.1 misho 38471:
38472:
38473: case ext/ctype in
38474: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38475: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38476: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38477: esac
38478:
38479:
38480:
38481: b_c_pre=$php_c_pre
38482: b_cxx_pre=$php_cxx_pre
38483: b_c_meta=$php_c_meta
38484: b_cxx_meta=$php_cxx_meta
38485: b_c_post=$php_c_post
38486: b_cxx_post=$php_cxx_post
38487: b_lo=$php_lo
38488:
38489:
38490: old_IFS=$IFS
38491: for ac_src in ctype.c; do
38492:
38493: IFS=.
38494: set $ac_src
38495: ac_obj=$1
38496: IFS=$old_IFS
38497:
1.1.1.2 misho 38498: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 38499:
38500: case $ac_src in
38501: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38502: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38503: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38504: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38505: esac
38506:
38507: cat >>Makefile.objects<<EOF
38508: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38509: $ac_comp
38510: EOF
38511: done
38512:
38513:
1.1.1.3 ! misho 38514: ;;
! 38515: esac
1.1 misho 38516: EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
38517: fi
38518:
38519:
38520: BUILD_DIR="$BUILD_DIR $ext_builddir"
38521:
38522:
38523:
38524: if test "$ext_builddir" = "."; then
38525: PHP_PECL_EXTENSION=ctype
38526:
38527: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
38528:
38529: fi
38530:
38531: fi
38532:
38533:
38534:
38535: php_with_curl=no
38536:
1.1.1.3 ! misho 38537: { echo "$as_me:$LINENO: checking for cURL support" >&5
! 38538: echo $ECHO_N "checking for cURL support... $ECHO_C" >&6; }
1.1 misho 38539:
38540: # Check whether --with-curl was given.
1.1.1.3 ! misho 38541: if test "${with_curl+set}" = set; then
1.1 misho 38542: withval=$with_curl; PHP_CURL=$withval
38543: else
38544:
38545: PHP_CURL=no
38546: test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL
38547:
38548: fi
38549:
38550:
38551:
38552: ext_output="yes, shared"
38553: ext_shared=yes
38554: case $PHP_CURL in
38555: shared,*)
38556: PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'`
38557: ;;
38558: shared)
38559: PHP_CURL=yes
38560: ;;
38561: no)
38562: ext_output=no
38563: ext_shared=no
38564: ;;
38565: *)
38566: ext_output=yes
38567: ext_shared=no
38568: ;;
38569: esac
38570:
38571:
38572:
1.1.1.3 ! misho 38573: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 38574: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 38575:
38576:
38577:
38578:
38579:
38580: php_with_curlwrappers=no
38581:
1.1.1.3 ! misho 38582: { echo "$as_me:$LINENO: checking if we should use cURL for url streams" >&5
! 38583: echo $ECHO_N "checking if we should use cURL for url streams... $ECHO_C" >&6; }
1.1 misho 38584:
38585: # Check whether --with-curlwrappers was given.
1.1.1.3 ! misho 38586: if test "${with_curlwrappers+set}" = set; then
1.1 misho 38587: withval=$with_curlwrappers; PHP_CURLWRAPPERS=$withval
38588: else
38589:
38590: PHP_CURLWRAPPERS=no
38591:
38592:
38593: fi
38594:
38595:
38596: ext_output=$PHP_CURLWRAPPERS
1.1.1.3 ! misho 38597: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 38598: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 38599:
38600:
38601:
38602:
38603: if test "$PHP_CURL" != "no"; then
38604: if test -r $PHP_CURL/include/curl/easy.h; then
38605: CURL_DIR=$PHP_CURL
38606: else
1.1.1.3 ! misho 38607: { echo "$as_me:$LINENO: checking for cURL in default path" >&5
! 38608: echo $ECHO_N "checking for cURL in default path... $ECHO_C" >&6; }
1.1 misho 38609: for i in /usr/local /usr; do
38610: if test -r $i/include/curl/easy.h; then
38611: CURL_DIR=$i
1.1.1.3 ! misho 38612: { echo "$as_me:$LINENO: result: found in $i" >&5
! 38613: echo "${ECHO_T}found in $i" >&6; }
1.1 misho 38614: break
38615: fi
38616: done
38617: fi
38618:
38619: if test -z "$CURL_DIR"; then
1.1.1.3 ! misho 38620: { echo "$as_me:$LINENO: result: not found" >&5
! 38621: echo "${ECHO_T}not found" >&6; }
! 38622: { { echo "$as_me:$LINENO: error: Please reinstall the libcurl distribution -
! 38623: easy.h should be in <curl-dir>/include/curl/" >&5
! 38624: echo "$as_me: error: Please reinstall the libcurl distribution -
! 38625: easy.h should be in <curl-dir>/include/curl/" >&2;}
! 38626: { (exit 1); exit 1; }; }
1.1 misho 38627: fi
38628:
38629: CURL_CONFIG="curl-config"
1.1.1.3 ! misho 38630: { echo "$as_me:$LINENO: checking for cURL 7.10.5 or greater" >&5
! 38631: echo $ECHO_N "checking for cURL 7.10.5 or greater... $ECHO_C" >&6; }
1.1 misho 38632:
38633: if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
38634: CURL_CONFIG=${CURL_DIR}/bin/curl-config
38635: else
38636: if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
38637: CURL_CONFIG=${CURL_DIR}/curl-config
38638: fi
38639: fi
38640:
38641: curl_version_full=`$CURL_CONFIG --version`
38642: curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
38643: if test "$curl_version" -ge 7010005; then
1.1.1.3 ! misho 38644: { echo "$as_me:$LINENO: result: $curl_version_full" >&5
! 38645: echo "${ECHO_T}$curl_version_full" >&6; }
1.1 misho 38646: CURL_LIBS=`$CURL_CONFIG --libs`
38647: else
1.1.1.3 ! misho 38648: { { echo "$as_me:$LINENO: error: cURL version 7.10.5 or later is required to compile php with cURL support" >&5
! 38649: echo "$as_me: error: cURL version 7.10.5 or later is required to compile php with cURL support" >&2;}
! 38650: { (exit 1); exit 1; }; }
1.1 misho 38651: fi
38652:
38653:
38654: if test "$CURL_DIR/include" != "/usr/include"; then
38655:
38656: if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then
38657: ai_p=$CURL_DIR/include
38658: else
38659:
38660: ep_dir="`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
38661:
38662: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38663: ai_p="$ep_realdir/`basename \"$CURL_DIR/include\"`"
38664: fi
38665:
38666:
38667:
38668: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38669:
38670: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38671: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38672: eval "INCLUDEPATH$unique=set"
38673:
38674: if test ""; then
38675: INCLUDES="-I$ai_p $INCLUDES"
38676: else
38677: INCLUDES="$INCLUDES -I$ai_p"
38678: fi
38679:
38680: fi
38681:
38682: fi
38683:
38684:
38685: for ac_i in $CURL_LIBS; do
38686: case $ac_i in
38687: -pthread)
38688: if test "$ext_shared" = "yes"; then
38689: CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread"
38690: else
38691:
38692:
38693: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38694:
38695: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38696: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38697: eval "EXTRA_LDFLAGS$unique=set"
38698: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38699: fi
38700:
38701: fi
38702: ;;
38703: -l*)
38704: ac_ii=`echo $ac_i|cut -c 3-`
38705:
38706:
38707: case $ac_ii in
38708: c|c_r|pthread*) ;;
38709: *)
38710: if test "$ext_shared" = "yes"; then
38711: CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii"
38712: else
38713:
38714:
38715: case $ac_ii in
38716: c|c_r|pthread*) ;;
38717: *)
38718: LIBS="$LIBS -l$ac_ii"
38719: ;;
38720: esac
38721:
38722:
38723: fi
38724: ;;
38725: esac
38726:
38727:
38728: ;;
38729: -L*)
38730: ac_ii=`echo $ac_i|cut -c 3-`
38731:
38732: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38733:
38734: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38735: ai_p=$ac_ii
38736: else
38737:
38738: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
38739:
38740: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38741: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
38742: fi
38743:
38744:
38745: if test "$ext_shared" = "yes"; then
38746: CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
38747: test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
38748: else
38749:
38750:
38751:
38752: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38753:
38754: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38755: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38756: eval "LIBPATH$unique=set"
38757:
38758: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38759: LDFLAGS="$LDFLAGS -L$ai_p"
38760: PHP_RPATHS="$PHP_RPATHS $ai_p"
38761:
38762: fi
38763:
38764:
38765: fi
38766:
38767: fi
38768:
38769: ;;
38770: esac
38771: done
38772:
38773:
38774:
38775: if test "$ext_shared" = "yes"; then
38776: CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD"
38777: if test -n "$CURL_DIR/$PHP_LIBDIR"; then
38778:
38779: if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38780:
38781: if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38782: ai_p=$CURL_DIR/$PHP_LIBDIR
38783: else
38784:
38785: ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
38786:
38787: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38788: ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
38789: fi
38790:
38791:
38792: if test "$ext_shared" = "yes"; then
38793: CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
38794: test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
38795: else
38796:
38797:
38798:
38799: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38800:
38801: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38802: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38803: eval "LIBPATH$unique=set"
38804:
38805: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38806: LDFLAGS="$LDFLAGS -L$ai_p"
38807: PHP_RPATHS="$PHP_RPATHS $ai_p"
38808:
38809: fi
38810:
38811:
38812: fi
38813:
38814: fi
38815:
38816: fi
38817: else
38818:
38819:
38820: if test -n "$CURL_DIR/$PHP_LIBDIR"; then
38821:
38822: if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38823:
38824: if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38825: ai_p=$CURL_DIR/$PHP_LIBDIR
38826: else
38827:
38828: ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
38829:
38830: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38831: ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
38832: fi
38833:
38834:
38835:
38836:
38837:
38838: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38839:
38840: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38841: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38842: eval "LIBPATH$unique=set"
38843:
38844: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38845: LDFLAGS="$LDFLAGS -L$ai_p"
38846: PHP_RPATHS="$PHP_RPATHS $ai_p"
38847:
38848: fi
38849:
38850:
38851:
38852: fi
38853:
38854: fi
38855:
38856:
38857: case curl in
38858: c|c_r|pthread*) ;;
38859: *)
38860: LIBS="-lcurl $LIBS"
38861: ;;
38862: esac
38863:
38864:
38865:
38866:
38867: fi
38868:
38869:
38870:
1.1.1.3 ! misho 38871: { echo "$as_me:$LINENO: checking for SSL support in libcurl" >&5
! 38872: echo $ECHO_N "checking for SSL support in libcurl... $ECHO_C" >&6; }
1.1 misho 38873: CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
38874: if test "$CURL_SSL" = "SSL"; then
1.1.1.3 ! misho 38875: { echo "$as_me:$LINENO: result: yes" >&5
! 38876: echo "${ECHO_T}yes" >&6; }
1.1 misho 38877:
1.1.1.3 ! misho 38878: cat >>confdefs.h <<\_ACEOF
! 38879: #define HAVE_CURL_SSL 1
! 38880: _ACEOF
1.1 misho 38881:
38882:
38883: save_CFLAGS="$CFLAGS"
38884: CFLAGS="`$CURL_CONFIG --cflags`"
38885:
38886: ac_ext=c
38887: ac_cpp='$CPP $CPPFLAGS'
38888: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38889: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38890: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.3 ! misho 38891: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 38892: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 misho 38893: # On Suns, sometimes $CPP names a directory.
38894: if test -n "$CPP" && test -d "$CPP"; then
38895: CPP=
38896: fi
38897: if test -z "$CPP"; then
1.1.1.3 ! misho 38898: if test "${ac_cv_prog_CPP+set}" = set; then
! 38899: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 38900: else
38901: # Double quotes because CPP needs to be expanded
38902: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
38903: do
38904: ac_preproc_ok=false
38905: for ac_c_preproc_warn_flag in '' yes
38906: do
38907: # Use a header file that comes with gcc, so configuring glibc
38908: # with a fresh cross-compiler works.
38909: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38910: # <limits.h> exists even on freestanding compilers.
38911: # On the NeXT, cc -E runs the code through the compiler's parser,
38912: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 38913: cat >conftest.$ac_ext <<_ACEOF
! 38914: /* confdefs.h. */
! 38915: _ACEOF
! 38916: cat confdefs.h >>conftest.$ac_ext
! 38917: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 38918: /* end confdefs.h. */
38919: #ifdef __STDC__
38920: # include <limits.h>
38921: #else
38922: # include <assert.h>
38923: #endif
38924: Syntax error
38925: _ACEOF
1.1.1.3 ! misho 38926: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 38927: case "(($ac_try" in
! 38928: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 38929: *) ac_try_echo=$ac_try;;
! 38930: esac
! 38931: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 38932: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 38933: ac_status=$?
! 38934: grep -v '^ *+' conftest.er1 >conftest.err
! 38935: rm -f conftest.er1
! 38936: cat conftest.err >&5
! 38937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 38938: (exit $ac_status); } >/dev/null && {
! 38939: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 38940: test ! -s conftest.err
! 38941: }; then
! 38942: :
1.1 misho 38943: else
1.1.1.3 ! misho 38944: echo "$as_me: failed program was:" >&5
! 38945: sed 's/^/| /' conftest.$ac_ext >&5
! 38946:
1.1 misho 38947: # Broken: fails on valid input.
38948: continue
38949: fi
1.1.1.3 ! misho 38950:
! 38951: rm -f conftest.err conftest.$ac_ext
1.1 misho 38952:
38953: # OK, works on sane cases. Now check whether nonexistent headers
38954: # can be detected and how.
1.1.1.3 ! misho 38955: cat >conftest.$ac_ext <<_ACEOF
! 38956: /* confdefs.h. */
! 38957: _ACEOF
! 38958: cat confdefs.h >>conftest.$ac_ext
! 38959: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 38960: /* end confdefs.h. */
38961: #include <ac_nonexistent.h>
38962: _ACEOF
1.1.1.3 ! misho 38963: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 38964: case "(($ac_try" in
! 38965: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 38966: *) ac_try_echo=$ac_try;;
! 38967: esac
! 38968: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 38969: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 38970: ac_status=$?
! 38971: grep -v '^ *+' conftest.er1 >conftest.err
! 38972: rm -f conftest.er1
! 38973: cat conftest.err >&5
! 38974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 38975: (exit $ac_status); } >/dev/null && {
! 38976: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 38977: test ! -s conftest.err
! 38978: }; then
1.1 misho 38979: # Broken: success on invalid input.
38980: continue
38981: else
1.1.1.3 ! misho 38982: echo "$as_me: failed program was:" >&5
! 38983: sed 's/^/| /' conftest.$ac_ext >&5
! 38984:
1.1 misho 38985: # Passes both tests.
38986: ac_preproc_ok=:
38987: break
38988: fi
1.1.1.3 ! misho 38989:
! 38990: rm -f conftest.err conftest.$ac_ext
1.1 misho 38991:
38992: done
38993: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 38994: rm -f conftest.err conftest.$ac_ext
! 38995: if $ac_preproc_ok; then
1.1 misho 38996: break
38997: fi
38998:
38999: done
39000: ac_cv_prog_CPP=$CPP
39001:
39002: fi
39003: CPP=$ac_cv_prog_CPP
39004: else
39005: ac_cv_prog_CPP=$CPP
39006: fi
1.1.1.3 ! misho 39007: { echo "$as_me:$LINENO: result: $CPP" >&5
! 39008: echo "${ECHO_T}$CPP" >&6; }
1.1 misho 39009: ac_preproc_ok=false
39010: for ac_c_preproc_warn_flag in '' yes
39011: do
39012: # Use a header file that comes with gcc, so configuring glibc
39013: # with a fresh cross-compiler works.
39014: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39015: # <limits.h> exists even on freestanding compilers.
39016: # On the NeXT, cc -E runs the code through the compiler's parser,
39017: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 39018: cat >conftest.$ac_ext <<_ACEOF
! 39019: /* confdefs.h. */
! 39020: _ACEOF
! 39021: cat confdefs.h >>conftest.$ac_ext
! 39022: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 39023: /* end confdefs.h. */
39024: #ifdef __STDC__
39025: # include <limits.h>
39026: #else
39027: # include <assert.h>
39028: #endif
39029: Syntax error
39030: _ACEOF
1.1.1.3 ! misho 39031: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 39032: case "(($ac_try" in
! 39033: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39034: *) ac_try_echo=$ac_try;;
! 39035: esac
! 39036: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39037: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 39038: ac_status=$?
! 39039: grep -v '^ *+' conftest.er1 >conftest.err
! 39040: rm -f conftest.er1
! 39041: cat conftest.err >&5
! 39042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39043: (exit $ac_status); } >/dev/null && {
! 39044: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 39045: test ! -s conftest.err
! 39046: }; then
! 39047: :
1.1 misho 39048: else
1.1.1.3 ! misho 39049: echo "$as_me: failed program was:" >&5
! 39050: sed 's/^/| /' conftest.$ac_ext >&5
! 39051:
1.1 misho 39052: # Broken: fails on valid input.
39053: continue
39054: fi
1.1.1.3 ! misho 39055:
! 39056: rm -f conftest.err conftest.$ac_ext
1.1 misho 39057:
39058: # OK, works on sane cases. Now check whether nonexistent headers
39059: # can be detected and how.
1.1.1.3 ! misho 39060: cat >conftest.$ac_ext <<_ACEOF
! 39061: /* confdefs.h. */
! 39062: _ACEOF
! 39063: cat confdefs.h >>conftest.$ac_ext
! 39064: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 39065: /* end confdefs.h. */
39066: #include <ac_nonexistent.h>
39067: _ACEOF
1.1.1.3 ! misho 39068: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 39069: case "(($ac_try" in
! 39070: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39071: *) ac_try_echo=$ac_try;;
! 39072: esac
! 39073: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39074: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 39075: ac_status=$?
! 39076: grep -v '^ *+' conftest.er1 >conftest.err
! 39077: rm -f conftest.er1
! 39078: cat conftest.err >&5
! 39079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39080: (exit $ac_status); } >/dev/null && {
! 39081: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 39082: test ! -s conftest.err
! 39083: }; then
1.1 misho 39084: # Broken: success on invalid input.
39085: continue
39086: else
1.1.1.3 ! misho 39087: echo "$as_me: failed program was:" >&5
! 39088: sed 's/^/| /' conftest.$ac_ext >&5
! 39089:
1.1 misho 39090: # Passes both tests.
39091: ac_preproc_ok=:
39092: break
39093: fi
1.1.1.3 ! misho 39094:
! 39095: rm -f conftest.err conftest.$ac_ext
1.1 misho 39096:
39097: done
39098: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 39099: rm -f conftest.err conftest.$ac_ext
! 39100: if $ac_preproc_ok; then
! 39101: :
1.1 misho 39102: else
1.1.1.3 ! misho 39103: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
! 39104: See \`config.log' for more details." >&5
! 39105: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
! 39106: See \`config.log' for more details." >&2;}
! 39107: { (exit 1); exit 1; }; }
1.1 misho 39108: fi
39109:
39110: ac_ext=c
39111: ac_cpp='$CPP $CPPFLAGS'
39112: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39113: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39114: ac_compiler_gnu=$ac_cv_c_compiler_gnu
39115:
1.1.1.3 ! misho 39116: { echo "$as_me:$LINENO: checking for openssl support in libcurl" >&5
! 39117: echo $ECHO_N "checking for openssl support in libcurl... $ECHO_C" >&6; }
! 39118: if test "$cross_compiling" = yes; then
1.1 misho 39119:
1.1.1.3 ! misho 39120: { echo "$as_me:$LINENO: result: no" >&5
! 39121: echo "${ECHO_T}no" >&6; }
1.1 misho 39122:
39123: else
1.1.1.3 ! misho 39124: cat >conftest.$ac_ext <<_ACEOF
! 39125: /* confdefs.h. */
! 39126: _ACEOF
! 39127: cat confdefs.h >>conftest.$ac_ext
! 39128: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 39129: /* end confdefs.h. */
39130:
39131: #include <curl/curl.h>
39132:
39133: int main(int argc, char *argv[])
39134: {
39135: curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
39136:
39137: if (data && data->ssl_version && *data->ssl_version) {
39138: const char *ptr = data->ssl_version;
39139:
39140: while(*ptr == ' ') ++ptr;
39141: return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
39142: }
39143: return 1;
39144: }
39145:
39146: _ACEOF
1.1.1.3 ! misho 39147: rm -f conftest$ac_exeext
! 39148: if { (ac_try="$ac_link"
! 39149: case "(($ac_try" in
! 39150: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39151: *) ac_try_echo=$ac_try;;
! 39152: esac
! 39153: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39154: (eval "$ac_link") 2>&5
! 39155: ac_status=$?
! 39156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39157: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 39158: { (case "(($ac_try" in
! 39159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39160: *) ac_try_echo=$ac_try;;
! 39161: esac
! 39162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39163: (eval "$ac_try") 2>&5
! 39164: ac_status=$?
! 39165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39166: (exit $ac_status); }; }; then
! 39167:
! 39168: { echo "$as_me:$LINENO: result: yes" >&5
! 39169: echo "${ECHO_T}yes" >&6; }
! 39170:
! 39171: for ac_header in openssl/crypto.h
! 39172: do
! 39173: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 39174: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 39175: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 39176: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 39177: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 39178: echo $ECHO_N "(cached) $ECHO_C" >&6
! 39179: fi
! 39180: ac_res=`eval echo '${'$as_ac_Header'}'`
! 39181: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 39182: echo "${ECHO_T}$ac_res" >&6; }
! 39183: else
! 39184: # Is the header compilable?
! 39185: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 39186: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 39187: cat >conftest.$ac_ext <<_ACEOF
! 39188: /* confdefs.h. */
! 39189: _ACEOF
! 39190: cat confdefs.h >>conftest.$ac_ext
! 39191: cat >>conftest.$ac_ext <<_ACEOF
! 39192: /* end confdefs.h. */
! 39193: $ac_includes_default
! 39194: #include <$ac_header>
! 39195: _ACEOF
! 39196: rm -f conftest.$ac_objext
! 39197: if { (ac_try="$ac_compile"
! 39198: case "(($ac_try" in
! 39199: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39200: *) ac_try_echo=$ac_try;;
! 39201: esac
! 39202: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39203: (eval "$ac_compile") 2>conftest.er1
! 39204: ac_status=$?
! 39205: grep -v '^ *+' conftest.er1 >conftest.err
! 39206: rm -f conftest.er1
! 39207: cat conftest.err >&5
! 39208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39209: (exit $ac_status); } && {
! 39210: test -z "$ac_c_werror_flag" ||
! 39211: test ! -s conftest.err
! 39212: } && test -s conftest.$ac_objext; then
! 39213: ac_header_compiler=yes
! 39214: else
! 39215: echo "$as_me: failed program was:" >&5
! 39216: sed 's/^/| /' conftest.$ac_ext >&5
! 39217:
! 39218: ac_header_compiler=no
! 39219: fi
! 39220:
! 39221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 39222: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 39223: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 39224:
! 39225: # Is the header present?
! 39226: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 39227: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 39228: cat >conftest.$ac_ext <<_ACEOF
! 39229: /* confdefs.h. */
! 39230: _ACEOF
! 39231: cat confdefs.h >>conftest.$ac_ext
! 39232: cat >>conftest.$ac_ext <<_ACEOF
! 39233: /* end confdefs.h. */
! 39234: #include <$ac_header>
! 39235: _ACEOF
! 39236: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 39237: case "(($ac_try" in
! 39238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39239: *) ac_try_echo=$ac_try;;
! 39240: esac
! 39241: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39242: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 39243: ac_status=$?
! 39244: grep -v '^ *+' conftest.er1 >conftest.err
! 39245: rm -f conftest.er1
! 39246: cat conftest.err >&5
! 39247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39248: (exit $ac_status); } >/dev/null && {
! 39249: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 39250: test ! -s conftest.err
! 39251: }; then
! 39252: ac_header_preproc=yes
! 39253: else
! 39254: echo "$as_me: failed program was:" >&5
! 39255: sed 's/^/| /' conftest.$ac_ext >&5
! 39256:
! 39257: ac_header_preproc=no
! 39258: fi
! 39259:
! 39260: rm -f conftest.err conftest.$ac_ext
! 39261: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 39262: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 39263:
! 39264: # So? What about this header?
! 39265: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 39266: yes:no: )
! 39267: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 39268: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 39269: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 39270: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 39271: ac_header_preproc=yes
! 39272: ;;
! 39273: no:yes:* )
! 39274: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 39275: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 39276: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 39277: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 39278: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 39279: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 39280: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 39281: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 39282: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 39283: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 39284: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 39285: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 39286:
1.1.1.3 ! misho 39287: ;;
! 39288: esac
! 39289: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 39290: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 39291: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 39292: echo $ECHO_N "(cached) $ECHO_C" >&6
! 39293: else
! 39294: eval "$as_ac_Header=\$ac_header_preproc"
! 39295: fi
! 39296: ac_res=`eval echo '${'$as_ac_Header'}'`
! 39297: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 39298: echo "${ECHO_T}$ac_res" >&6; }
! 39299:
! 39300: fi
! 39301: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 39302: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 39303: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 39304: _ACEOF
39305:
39306:
1.1.1.3 ! misho 39307: cat >>confdefs.h <<\_ACEOF
! 39308: #define HAVE_CURL_OPENSSL 1
! 39309: _ACEOF
1.1 misho 39310:
39311:
39312: fi
39313:
39314: done
39315:
39316:
39317: else
1.1.1.3 ! misho 39318: echo "$as_me: program exited with status $ac_status" >&5
! 39319: echo "$as_me: failed program was:" >&5
! 39320: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 39321:
1.1.1.3 ! misho 39322: ( exit $ac_status )
! 39323:
! 39324: { echo "$as_me:$LINENO: result: no" >&5
! 39325: echo "${ECHO_T}no" >&6; }
1.1 misho 39326:
39327: fi
1.1.1.3 ! misho 39328: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 39329: fi
39330:
39331:
39332:
1.1.1.3 ! misho 39333: { echo "$as_me:$LINENO: checking for gnutls support in libcurl" >&5
! 39334: echo $ECHO_N "checking for gnutls support in libcurl... $ECHO_C" >&6; }
! 39335: if test "$cross_compiling" = yes; then
! 39336:
! 39337: { echo "$as_me:$LINENO: result: no" >&5
! 39338: echo "${ECHO_T}no" >&6; }
1.1 misho 39339:
39340: else
1.1.1.3 ! misho 39341: cat >conftest.$ac_ext <<_ACEOF
! 39342: /* confdefs.h. */
! 39343: _ACEOF
! 39344: cat confdefs.h >>conftest.$ac_ext
! 39345: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 39346: /* end confdefs.h. */
39347:
39348: #include <curl/curl.h>
39349:
39350: int main(int argc, char *argv[])
39351: {
39352: curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
39353:
39354: if (data && data->ssl_version && *data->ssl_version) {
39355: const char *ptr = data->ssl_version;
39356:
39357: while(*ptr == ' ') ++ptr;
39358: return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
39359: }
39360: return 1;
39361: }
39362:
39363: _ACEOF
1.1.1.3 ! misho 39364: rm -f conftest$ac_exeext
! 39365: if { (ac_try="$ac_link"
! 39366: case "(($ac_try" in
! 39367: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39368: *) ac_try_echo=$ac_try;;
! 39369: esac
! 39370: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39371: (eval "$ac_link") 2>&5
! 39372: ac_status=$?
! 39373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39374: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 39375: { (case "(($ac_try" in
! 39376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39377: *) ac_try_echo=$ac_try;;
! 39378: esac
! 39379: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39380: (eval "$ac_try") 2>&5
! 39381: ac_status=$?
! 39382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39383: (exit $ac_status); }; }; then
! 39384:
! 39385: { echo "$as_me:$LINENO: result: yes" >&5
! 39386: echo "${ECHO_T}yes" >&6; }
! 39387: if test "${ac_cv_header_gcrypt_h+set}" = set; then
! 39388: { echo "$as_me:$LINENO: checking for gcrypt.h" >&5
! 39389: echo $ECHO_N "checking for gcrypt.h... $ECHO_C" >&6; }
! 39390: if test "${ac_cv_header_gcrypt_h+set}" = set; then
! 39391: echo $ECHO_N "(cached) $ECHO_C" >&6
! 39392: fi
! 39393: { echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
! 39394: echo "${ECHO_T}$ac_cv_header_gcrypt_h" >&6; }
! 39395: else
! 39396: # Is the header compilable?
! 39397: { echo "$as_me:$LINENO: checking gcrypt.h usability" >&5
! 39398: echo $ECHO_N "checking gcrypt.h usability... $ECHO_C" >&6; }
! 39399: cat >conftest.$ac_ext <<_ACEOF
! 39400: /* confdefs.h. */
! 39401: _ACEOF
! 39402: cat confdefs.h >>conftest.$ac_ext
! 39403: cat >>conftest.$ac_ext <<_ACEOF
! 39404: /* end confdefs.h. */
! 39405: $ac_includes_default
! 39406: #include <gcrypt.h>
! 39407: _ACEOF
! 39408: rm -f conftest.$ac_objext
! 39409: if { (ac_try="$ac_compile"
! 39410: case "(($ac_try" in
! 39411: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39412: *) ac_try_echo=$ac_try;;
! 39413: esac
! 39414: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39415: (eval "$ac_compile") 2>conftest.er1
! 39416: ac_status=$?
! 39417: grep -v '^ *+' conftest.er1 >conftest.err
! 39418: rm -f conftest.er1
! 39419: cat conftest.err >&5
! 39420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39421: (exit $ac_status); } && {
! 39422: test -z "$ac_c_werror_flag" ||
! 39423: test ! -s conftest.err
! 39424: } && test -s conftest.$ac_objext; then
! 39425: ac_header_compiler=yes
! 39426: else
! 39427: echo "$as_me: failed program was:" >&5
! 39428: sed 's/^/| /' conftest.$ac_ext >&5
! 39429:
! 39430: ac_header_compiler=no
! 39431: fi
! 39432:
! 39433: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 39434: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 39435: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 39436:
! 39437: # Is the header present?
! 39438: { echo "$as_me:$LINENO: checking gcrypt.h presence" >&5
! 39439: echo $ECHO_N "checking gcrypt.h presence... $ECHO_C" >&6; }
! 39440: cat >conftest.$ac_ext <<_ACEOF
! 39441: /* confdefs.h. */
! 39442: _ACEOF
! 39443: cat confdefs.h >>conftest.$ac_ext
! 39444: cat >>conftest.$ac_ext <<_ACEOF
! 39445: /* end confdefs.h. */
! 39446: #include <gcrypt.h>
! 39447: _ACEOF
! 39448: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 39449: case "(($ac_try" in
! 39450: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39451: *) ac_try_echo=$ac_try;;
! 39452: esac
! 39453: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39454: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 39455: ac_status=$?
! 39456: grep -v '^ *+' conftest.er1 >conftest.err
! 39457: rm -f conftest.er1
! 39458: cat conftest.err >&5
! 39459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39460: (exit $ac_status); } >/dev/null && {
! 39461: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 39462: test ! -s conftest.err
! 39463: }; then
! 39464: ac_header_preproc=yes
! 39465: else
! 39466: echo "$as_me: failed program was:" >&5
! 39467: sed 's/^/| /' conftest.$ac_ext >&5
! 39468:
! 39469: ac_header_preproc=no
! 39470: fi
! 39471:
! 39472: rm -f conftest.err conftest.$ac_ext
! 39473: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 39474: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 39475:
! 39476: # So? What about this header?
! 39477: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 39478: yes:no: )
! 39479: { echo "$as_me:$LINENO: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 39480: echo "$as_me: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 39481: { echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the compiler's result" >&5
! 39482: echo "$as_me: WARNING: gcrypt.h: proceeding with the compiler's result" >&2;}
! 39483: ac_header_preproc=yes
! 39484: ;;
! 39485: no:yes:* )
! 39486: { echo "$as_me:$LINENO: WARNING: gcrypt.h: present but cannot be compiled" >&5
! 39487: echo "$as_me: WARNING: gcrypt.h: present but cannot be compiled" >&2;}
! 39488: { echo "$as_me:$LINENO: WARNING: gcrypt.h: check for missing prerequisite headers?" >&5
! 39489: echo "$as_me: WARNING: gcrypt.h: check for missing prerequisite headers?" >&2;}
! 39490: { echo "$as_me:$LINENO: WARNING: gcrypt.h: see the Autoconf documentation" >&5
! 39491: echo "$as_me: WARNING: gcrypt.h: see the Autoconf documentation" >&2;}
! 39492: { echo "$as_me:$LINENO: WARNING: gcrypt.h: section \"Present But Cannot Be Compiled\"" >&5
! 39493: echo "$as_me: WARNING: gcrypt.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 39494: { echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&5
! 39495: echo "$as_me: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&2;}
! 39496: { echo "$as_me:$LINENO: WARNING: gcrypt.h: in the future, the compiler will take precedence" >&5
! 39497: echo "$as_me: WARNING: gcrypt.h: in the future, the compiler will take precedence" >&2;}
! 39498:
! 39499: ;;
! 39500: esac
! 39501: { echo "$as_me:$LINENO: checking for gcrypt.h" >&5
! 39502: echo $ECHO_N "checking for gcrypt.h... $ECHO_C" >&6; }
! 39503: if test "${ac_cv_header_gcrypt_h+set}" = set; then
! 39504: echo $ECHO_N "(cached) $ECHO_C" >&6
! 39505: else
! 39506: ac_cv_header_gcrypt_h=$ac_header_preproc
! 39507: fi
! 39508: { echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
! 39509: echo "${ECHO_T}$ac_cv_header_gcrypt_h" >&6; }
1.1 misho 39510:
1.1.1.3 ! misho 39511: fi
! 39512: if test $ac_cv_header_gcrypt_h = yes; then
1.1 misho 39513:
39514:
1.1.1.3 ! misho 39515: cat >>confdefs.h <<\_ACEOF
! 39516: #define HAVE_CURL_GNUTLS 1
! 39517: _ACEOF
1.1 misho 39518:
39519:
39520: fi
39521:
39522:
39523:
39524: else
1.1.1.3 ! misho 39525: echo "$as_me: program exited with status $ac_status" >&5
! 39526: echo "$as_me: failed program was:" >&5
! 39527: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 39528:
1.1.1.3 ! misho 39529: ( exit $ac_status )
! 39530:
! 39531: { echo "$as_me:$LINENO: result: no" >&5
! 39532: echo "${ECHO_T}no" >&6; }
1.1 misho 39533:
39534: fi
1.1.1.3 ! misho 39535: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 39536: fi
39537:
39538:
1.1.1.3 ! misho 39539:
1.1 misho 39540: CFLAGS="$save_CFLAGS"
39541: else
1.1.1.3 ! misho 39542: { echo "$as_me:$LINENO: result: no" >&5
! 39543: echo "${ECHO_T}no" >&6; }
1.1 misho 39544: fi
39545:
39546:
39547: save_old_LDFLAGS=$LDFLAGS
39548: ac_stuff="
39549: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
39550: "
39551:
39552: save_ext_shared=$ext_shared
39553: ext_shared=yes
39554:
39555: for ac_i in $ac_stuff; do
39556: case $ac_i in
39557: -pthread)
39558: if test "$ext_shared" = "yes"; then
39559: LDFLAGS="$LDFLAGS -pthread"
39560: else
39561:
39562:
39563: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39564:
39565: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39566: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39567: eval "EXTRA_LDFLAGS$unique=set"
39568: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39569: fi
39570:
39571: fi
39572: ;;
39573: -l*)
39574: ac_ii=`echo $ac_i|cut -c 3-`
39575:
39576:
39577: case $ac_ii in
39578: c|c_r|pthread*) ;;
39579: *)
39580: if test "$ext_shared" = "yes"; then
39581: LDFLAGS="$LDFLAGS -l$ac_ii"
39582: else
39583:
39584:
39585: case $ac_ii in
39586: c|c_r|pthread*) ;;
39587: *)
39588: LIBS="$LIBS -l$ac_ii"
39589: ;;
39590: esac
39591:
39592:
39593: fi
39594: ;;
39595: esac
39596:
39597:
39598: ;;
39599: -L*)
39600: ac_ii=`echo $ac_i|cut -c 3-`
39601:
39602: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39603:
39604: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39605: ai_p=$ac_ii
39606: else
39607:
39608: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
39609:
39610: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39611: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
39612: fi
39613:
39614:
39615: if test "$ext_shared" = "yes"; then
39616: LDFLAGS="-L$ai_p $LDFLAGS"
39617: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39618: else
39619:
39620:
39621:
39622: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39623:
39624: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39625: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39626: eval "LIBPATH$unique=set"
39627:
39628: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39629: LDFLAGS="$LDFLAGS -L$ai_p"
39630: PHP_RPATHS="$PHP_RPATHS $ai_p"
39631:
39632: fi
39633:
39634:
39635: fi
39636:
39637: fi
39638:
39639: ;;
39640: esac
39641: done
39642:
1.1.1.3 ! misho 39643: { echo "$as_me:$LINENO: checking for curl_easy_perform in -lcurl" >&5
! 39644: echo $ECHO_N "checking for curl_easy_perform in -lcurl... $ECHO_C" >&6; }
! 39645: if test "${ac_cv_lib_curl_curl_easy_perform+set}" = set; then
! 39646: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 39647: else
39648: ac_check_lib_save_LIBS=$LIBS
39649: LIBS="-lcurl $LIBS"
1.1.1.3 ! misho 39650: cat >conftest.$ac_ext <<_ACEOF
! 39651: /* confdefs.h. */
! 39652: _ACEOF
! 39653: cat confdefs.h >>conftest.$ac_ext
! 39654: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 39655: /* end confdefs.h. */
39656:
39657: /* Override any GCC internal prototype to avoid an error.
39658: Use char because int might match the return type of a GCC
39659: builtin and then its argument prototype would still apply. */
39660: #ifdef __cplusplus
39661: extern "C"
39662: #endif
39663: char curl_easy_perform ();
39664: int
39665: main ()
39666: {
39667: return curl_easy_perform ();
39668: ;
39669: return 0;
39670: }
39671: _ACEOF
1.1.1.3 ! misho 39672: rm -f conftest.$ac_objext conftest$ac_exeext
! 39673: if { (ac_try="$ac_link"
! 39674: case "(($ac_try" in
! 39675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39676: *) ac_try_echo=$ac_try;;
! 39677: esac
! 39678: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39679: (eval "$ac_link") 2>conftest.er1
! 39680: ac_status=$?
! 39681: grep -v '^ *+' conftest.er1 >conftest.err
! 39682: rm -f conftest.er1
! 39683: cat conftest.err >&5
! 39684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39685: (exit $ac_status); } && {
! 39686: test -z "$ac_c_werror_flag" ||
! 39687: test ! -s conftest.err
! 39688: } && test -s conftest$ac_exeext &&
! 39689: $as_test_x conftest$ac_exeext; then
1.1 misho 39690: ac_cv_lib_curl_curl_easy_perform=yes
39691: else
1.1.1.3 ! misho 39692: echo "$as_me: failed program was:" >&5
! 39693: sed 's/^/| /' conftest.$ac_ext >&5
! 39694:
! 39695: ac_cv_lib_curl_curl_easy_perform=no
1.1 misho 39696: fi
1.1.1.3 ! misho 39697:
! 39698: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 39699: conftest$ac_exeext conftest.$ac_ext
1.1 misho 39700: LIBS=$ac_check_lib_save_LIBS
39701: fi
1.1.1.3 ! misho 39702: { echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_perform" >&5
! 39703: echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_perform" >&6; }
! 39704: if test $ac_cv_lib_curl_curl_easy_perform = yes; then
1.1 misho 39705:
39706: LDFLAGS=$save_old_LDFLAGS
39707: ext_shared=$save_ext_shared
39708:
39709:
1.1.1.3 ! misho 39710: cat >>confdefs.h <<\_ACEOF
! 39711: #define HAVE_CURL 1
! 39712: _ACEOF
1.1 misho 39713:
39714:
39715:
39716: else
39717:
39718: LDFLAGS=$save_old_LDFLAGS
39719: ext_shared=$save_ext_shared
39720: unset ac_cv_lib_curl_curl_easy_perform
39721:
1.1.1.3 ! misho 39722: { { echo "$as_me:$LINENO: error: There is something wrong. Please check config.log for more information." >&5
! 39723: echo "$as_me: error: There is something wrong. Please check config.log for more information." >&2;}
! 39724: { (exit 1); exit 1; }; }
1.1 misho 39725:
39726:
39727: fi
39728:
39729:
39730:
39731: save_old_LDFLAGS=$LDFLAGS
39732: ac_stuff="
39733: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
39734: "
39735:
39736: save_ext_shared=$ext_shared
39737: ext_shared=yes
39738:
39739: for ac_i in $ac_stuff; do
39740: case $ac_i in
39741: -pthread)
39742: if test "$ext_shared" = "yes"; then
39743: LDFLAGS="$LDFLAGS -pthread"
39744: else
39745:
39746:
39747: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39748:
39749: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39750: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39751: eval "EXTRA_LDFLAGS$unique=set"
39752: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39753: fi
39754:
39755: fi
39756: ;;
39757: -l*)
39758: ac_ii=`echo $ac_i|cut -c 3-`
39759:
39760:
39761: case $ac_ii in
39762: c|c_r|pthread*) ;;
39763: *)
39764: if test "$ext_shared" = "yes"; then
39765: LDFLAGS="$LDFLAGS -l$ac_ii"
39766: else
39767:
39768:
39769: case $ac_ii in
39770: c|c_r|pthread*) ;;
39771: *)
39772: LIBS="$LIBS -l$ac_ii"
39773: ;;
39774: esac
39775:
39776:
39777: fi
39778: ;;
39779: esac
39780:
39781:
39782: ;;
39783: -L*)
39784: ac_ii=`echo $ac_i|cut -c 3-`
39785:
39786: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39787:
39788: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39789: ai_p=$ac_ii
39790: else
39791:
39792: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
39793:
39794: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39795: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
39796: fi
39797:
39798:
39799: if test "$ext_shared" = "yes"; then
39800: LDFLAGS="-L$ai_p $LDFLAGS"
39801: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39802: else
39803:
39804:
39805:
39806: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39807:
39808: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39809: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39810: eval "LIBPATH$unique=set"
39811:
39812: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39813: LDFLAGS="$LDFLAGS -L$ai_p"
39814: PHP_RPATHS="$PHP_RPATHS $ai_p"
39815:
39816: fi
39817:
39818:
39819: fi
39820:
39821: fi
39822:
39823: ;;
39824: esac
39825: done
39826:
1.1.1.3 ! misho 39827: { echo "$as_me:$LINENO: checking for curl_version_info in -lcurl" >&5
! 39828: echo $ECHO_N "checking for curl_version_info in -lcurl... $ECHO_C" >&6; }
! 39829: if test "${ac_cv_lib_curl_curl_version_info+set}" = set; then
! 39830: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 39831: else
39832: ac_check_lib_save_LIBS=$LIBS
39833: LIBS="-lcurl $LIBS"
1.1.1.3 ! misho 39834: cat >conftest.$ac_ext <<_ACEOF
! 39835: /* confdefs.h. */
! 39836: _ACEOF
! 39837: cat confdefs.h >>conftest.$ac_ext
! 39838: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 39839: /* end confdefs.h. */
39840:
39841: /* Override any GCC internal prototype to avoid an error.
39842: Use char because int might match the return type of a GCC
39843: builtin and then its argument prototype would still apply. */
39844: #ifdef __cplusplus
39845: extern "C"
39846: #endif
39847: char curl_version_info ();
39848: int
39849: main ()
39850: {
39851: return curl_version_info ();
39852: ;
39853: return 0;
39854: }
39855: _ACEOF
1.1.1.3 ! misho 39856: rm -f conftest.$ac_objext conftest$ac_exeext
! 39857: if { (ac_try="$ac_link"
! 39858: case "(($ac_try" in
! 39859: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 39860: *) ac_try_echo=$ac_try;;
! 39861: esac
! 39862: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 39863: (eval "$ac_link") 2>conftest.er1
! 39864: ac_status=$?
! 39865: grep -v '^ *+' conftest.er1 >conftest.err
! 39866: rm -f conftest.er1
! 39867: cat conftest.err >&5
! 39868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 39869: (exit $ac_status); } && {
! 39870: test -z "$ac_c_werror_flag" ||
! 39871: test ! -s conftest.err
! 39872: } && test -s conftest$ac_exeext &&
! 39873: $as_test_x conftest$ac_exeext; then
1.1 misho 39874: ac_cv_lib_curl_curl_version_info=yes
39875: else
1.1.1.3 ! misho 39876: echo "$as_me: failed program was:" >&5
! 39877: sed 's/^/| /' conftest.$ac_ext >&5
! 39878:
! 39879: ac_cv_lib_curl_curl_version_info=no
1.1 misho 39880: fi
1.1.1.3 ! misho 39881:
! 39882: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 39883: conftest$ac_exeext conftest.$ac_ext
1.1 misho 39884: LIBS=$ac_check_lib_save_LIBS
39885: fi
1.1.1.3 ! misho 39886: { echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_version_info" >&5
! 39887: echo "${ECHO_T}$ac_cv_lib_curl_curl_version_info" >&6; }
! 39888: if test $ac_cv_lib_curl_curl_version_info = yes; then
1.1 misho 39889:
39890: LDFLAGS=$save_old_LDFLAGS
39891: ext_shared=$save_ext_shared
39892:
39893:
1.1.1.3 ! misho 39894: cat >>confdefs.h <<\_ACEOF
! 39895: #define HAVE_CURL_VERSION_INFO 1
! 39896: _ACEOF
1.1 misho 39897:
39898:
39899:
39900: else
39901:
39902: LDFLAGS=$save_old_LDFLAGS
39903: ext_shared=$save_ext_shared
39904: unset ac_cv_lib_curl_curl_version_info
39905:
39906:
39907: fi
39908:
39909:
39910:
39911: save_old_LDFLAGS=$LDFLAGS
39912: ac_stuff="
39913: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
39914: "
39915:
39916: save_ext_shared=$ext_shared
39917: ext_shared=yes
39918:
39919: for ac_i in $ac_stuff; do
39920: case $ac_i in
39921: -pthread)
39922: if test "$ext_shared" = "yes"; then
39923: LDFLAGS="$LDFLAGS -pthread"
39924: else
39925:
39926:
39927: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39928:
39929: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39930: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39931: eval "EXTRA_LDFLAGS$unique=set"
39932: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39933: fi
39934:
39935: fi
39936: ;;
39937: -l*)
39938: ac_ii=`echo $ac_i|cut -c 3-`
39939:
39940:
39941: case $ac_ii in
39942: c|c_r|pthread*) ;;
39943: *)
39944: if test "$ext_shared" = "yes"; then
39945: LDFLAGS="$LDFLAGS -l$ac_ii"
39946: else
39947:
39948:
39949: case $ac_ii in
39950: c|c_r|pthread*) ;;
39951: *)
39952: LIBS="$LIBS -l$ac_ii"
39953: ;;
39954: esac
39955:
39956:
39957: fi
39958: ;;
39959: esac
39960:
39961:
39962: ;;
39963: -L*)
39964: ac_ii=`echo $ac_i|cut -c 3-`
39965:
39966: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39967:
39968: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39969: ai_p=$ac_ii
39970: else
39971:
39972: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
39973:
39974: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39975: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
39976: fi
39977:
39978:
39979: if test "$ext_shared" = "yes"; then
39980: LDFLAGS="-L$ai_p $LDFLAGS"
39981: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39982: else
39983:
39984:
39985:
39986: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39987:
39988: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39989: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39990: eval "LIBPATH$unique=set"
39991:
39992: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39993: LDFLAGS="$LDFLAGS -L$ai_p"
39994: PHP_RPATHS="$PHP_RPATHS $ai_p"
39995:
39996: fi
39997:
39998:
39999: fi
40000:
40001: fi
40002:
40003: ;;
40004: esac
40005: done
40006:
1.1.1.3 ! misho 40007: { echo "$as_me:$LINENO: checking for curl_easy_strerror in -lcurl" >&5
! 40008: echo $ECHO_N "checking for curl_easy_strerror in -lcurl... $ECHO_C" >&6; }
! 40009: if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then
! 40010: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 40011: else
40012: ac_check_lib_save_LIBS=$LIBS
40013: LIBS="-lcurl $LIBS"
1.1.1.3 ! misho 40014: cat >conftest.$ac_ext <<_ACEOF
! 40015: /* confdefs.h. */
! 40016: _ACEOF
! 40017: cat confdefs.h >>conftest.$ac_ext
! 40018: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 40019: /* end confdefs.h. */
40020:
40021: /* Override any GCC internal prototype to avoid an error.
40022: Use char because int might match the return type of a GCC
40023: builtin and then its argument prototype would still apply. */
40024: #ifdef __cplusplus
40025: extern "C"
40026: #endif
40027: char curl_easy_strerror ();
40028: int
40029: main ()
40030: {
40031: return curl_easy_strerror ();
40032: ;
40033: return 0;
40034: }
40035: _ACEOF
1.1.1.3 ! misho 40036: rm -f conftest.$ac_objext conftest$ac_exeext
! 40037: if { (ac_try="$ac_link"
! 40038: case "(($ac_try" in
! 40039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 40040: *) ac_try_echo=$ac_try;;
! 40041: esac
! 40042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 40043: (eval "$ac_link") 2>conftest.er1
! 40044: ac_status=$?
! 40045: grep -v '^ *+' conftest.er1 >conftest.err
! 40046: rm -f conftest.er1
! 40047: cat conftest.err >&5
! 40048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 40049: (exit $ac_status); } && {
! 40050: test -z "$ac_c_werror_flag" ||
! 40051: test ! -s conftest.err
! 40052: } && test -s conftest$ac_exeext &&
! 40053: $as_test_x conftest$ac_exeext; then
1.1 misho 40054: ac_cv_lib_curl_curl_easy_strerror=yes
40055: else
1.1.1.3 ! misho 40056: echo "$as_me: failed program was:" >&5
! 40057: sed 's/^/| /' conftest.$ac_ext >&5
! 40058:
! 40059: ac_cv_lib_curl_curl_easy_strerror=no
1.1 misho 40060: fi
1.1.1.3 ! misho 40061:
! 40062: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 40063: conftest$ac_exeext conftest.$ac_ext
1.1 misho 40064: LIBS=$ac_check_lib_save_LIBS
40065: fi
1.1.1.3 ! misho 40066: { echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
! 40067: echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_strerror" >&6; }
! 40068: if test $ac_cv_lib_curl_curl_easy_strerror = yes; then
1.1 misho 40069:
40070: LDFLAGS=$save_old_LDFLAGS
40071: ext_shared=$save_ext_shared
40072:
40073:
1.1.1.3 ! misho 40074: cat >>confdefs.h <<\_ACEOF
! 40075: #define HAVE_CURL_EASY_STRERROR 1
! 40076: _ACEOF
1.1 misho 40077:
40078:
40079:
40080: else
40081:
40082: LDFLAGS=$save_old_LDFLAGS
40083: ext_shared=$save_ext_shared
40084: unset ac_cv_lib_curl_curl_easy_strerror
40085:
40086:
40087: fi
40088:
40089:
40090:
40091: save_old_LDFLAGS=$LDFLAGS
40092: ac_stuff="
40093: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
40094: "
40095:
40096: save_ext_shared=$ext_shared
40097: ext_shared=yes
40098:
40099: for ac_i in $ac_stuff; do
40100: case $ac_i in
40101: -pthread)
40102: if test "$ext_shared" = "yes"; then
40103: LDFLAGS="$LDFLAGS -pthread"
40104: else
40105:
40106:
40107: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40108:
40109: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40110: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40111: eval "EXTRA_LDFLAGS$unique=set"
40112: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40113: fi
40114:
40115: fi
40116: ;;
40117: -l*)
40118: ac_ii=`echo $ac_i|cut -c 3-`
40119:
40120:
40121: case $ac_ii in
40122: c|c_r|pthread*) ;;
40123: *)
40124: if test "$ext_shared" = "yes"; then
40125: LDFLAGS="$LDFLAGS -l$ac_ii"
40126: else
40127:
40128:
40129: case $ac_ii in
40130: c|c_r|pthread*) ;;
40131: *)
40132: LIBS="$LIBS -l$ac_ii"
40133: ;;
40134: esac
40135:
40136:
40137: fi
40138: ;;
40139: esac
40140:
40141:
40142: ;;
40143: -L*)
40144: ac_ii=`echo $ac_i|cut -c 3-`
40145:
40146: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40147:
40148: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40149: ai_p=$ac_ii
40150: else
40151:
40152: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
40153:
40154: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40155: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
40156: fi
40157:
40158:
40159: if test "$ext_shared" = "yes"; then
40160: LDFLAGS="-L$ai_p $LDFLAGS"
40161: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40162: else
40163:
40164:
40165:
40166: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40167:
40168: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40169: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40170: eval "LIBPATH$unique=set"
40171:
40172: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40173: LDFLAGS="$LDFLAGS -L$ai_p"
40174: PHP_RPATHS="$PHP_RPATHS $ai_p"
40175:
40176: fi
40177:
40178:
40179: fi
40180:
40181: fi
40182:
40183: ;;
40184: esac
40185: done
40186:
1.1.1.3 ! misho 40187: { echo "$as_me:$LINENO: checking for curl_multi_strerror in -lcurl" >&5
! 40188: echo $ECHO_N "checking for curl_multi_strerror in -lcurl... $ECHO_C" >&6; }
! 40189: if test "${ac_cv_lib_curl_curl_multi_strerror+set}" = set; then
! 40190: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 40191: else
40192: ac_check_lib_save_LIBS=$LIBS
40193: LIBS="-lcurl $LIBS"
1.1.1.3 ! misho 40194: cat >conftest.$ac_ext <<_ACEOF
! 40195: /* confdefs.h. */
! 40196: _ACEOF
! 40197: cat confdefs.h >>conftest.$ac_ext
! 40198: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 40199: /* end confdefs.h. */
40200:
40201: /* Override any GCC internal prototype to avoid an error.
40202: Use char because int might match the return type of a GCC
40203: builtin and then its argument prototype would still apply. */
40204: #ifdef __cplusplus
40205: extern "C"
40206: #endif
40207: char curl_multi_strerror ();
40208: int
40209: main ()
40210: {
40211: return curl_multi_strerror ();
40212: ;
40213: return 0;
40214: }
40215: _ACEOF
1.1.1.3 ! misho 40216: rm -f conftest.$ac_objext conftest$ac_exeext
! 40217: if { (ac_try="$ac_link"
! 40218: case "(($ac_try" in
! 40219: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 40220: *) ac_try_echo=$ac_try;;
! 40221: esac
! 40222: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 40223: (eval "$ac_link") 2>conftest.er1
! 40224: ac_status=$?
! 40225: grep -v '^ *+' conftest.er1 >conftest.err
! 40226: rm -f conftest.er1
! 40227: cat conftest.err >&5
! 40228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 40229: (exit $ac_status); } && {
! 40230: test -z "$ac_c_werror_flag" ||
! 40231: test ! -s conftest.err
! 40232: } && test -s conftest$ac_exeext &&
! 40233: $as_test_x conftest$ac_exeext; then
1.1 misho 40234: ac_cv_lib_curl_curl_multi_strerror=yes
40235: else
1.1.1.3 ! misho 40236: echo "$as_me: failed program was:" >&5
! 40237: sed 's/^/| /' conftest.$ac_ext >&5
! 40238:
! 40239: ac_cv_lib_curl_curl_multi_strerror=no
1.1 misho 40240: fi
1.1.1.3 ! misho 40241:
! 40242: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 40243: conftest$ac_exeext conftest.$ac_ext
1.1 misho 40244: LIBS=$ac_check_lib_save_LIBS
40245: fi
1.1.1.3 ! misho 40246: { echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_multi_strerror" >&5
! 40247: echo "${ECHO_T}$ac_cv_lib_curl_curl_multi_strerror" >&6; }
! 40248: if test $ac_cv_lib_curl_curl_multi_strerror = yes; then
1.1 misho 40249:
40250: LDFLAGS=$save_old_LDFLAGS
40251: ext_shared=$save_ext_shared
40252:
40253:
1.1.1.3 ! misho 40254: cat >>confdefs.h <<\_ACEOF
! 40255: #define HAVE_CURL_MULTI_STRERROR 1
! 40256: _ACEOF
1.1 misho 40257:
40258:
40259:
40260: else
40261:
40262: LDFLAGS=$save_old_LDFLAGS
40263: ext_shared=$save_ext_shared
40264: unset ac_cv_lib_curl_curl_multi_strerror
40265:
40266:
40267: fi
40268:
40269:
40270: if test "$PHP_CURLWRAPPERS" != "no" ; then
40271:
1.1.1.3 ! misho 40272: cat >>confdefs.h <<\_ACEOF
! 40273: #define PHP_CURL_URL_WRAPPERS 1
! 40274: _ACEOF
1.1 misho 40275:
40276: fi
40277:
40278:
40279: ext_builddir=ext/curl
40280: ext_srcdir=$abs_srcdir/ext/curl
40281:
40282: ac_extra=
40283:
40284: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
40285: PHP_CURL_SHARED=no
40286:
40287:
40288: case ext/curl in
40289: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
40290: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
40291: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
40292: esac
40293:
40294:
40295:
40296: b_c_pre=$php_c_pre
40297: b_cxx_pre=$php_cxx_pre
40298: b_c_meta=$php_c_meta
40299: b_cxx_meta=$php_cxx_meta
40300: b_c_post=$php_c_post
40301: b_cxx_post=$php_cxx_post
40302: b_lo=$php_lo
40303:
40304:
40305: old_IFS=$IFS
40306: for ac_src in interface.c multi.c streams.c; do
40307:
40308: IFS=.
40309: set $ac_src
40310: ac_obj=$1
40311: IFS=$old_IFS
40312:
40313: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
40314:
40315: case $ac_src in
40316: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40317: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40318: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40319: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
40320: esac
40321:
40322: cat >>Makefile.objects<<EOF
40323: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
40324: $ac_comp
40325: EOF
40326: done
40327:
40328:
40329: EXT_STATIC="$EXT_STATIC curl"
40330: if test "$ext_shared" != "nocli"; then
40331: EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
40332: fi
40333: else
40334: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
40335: PHP_CURL_SHARED=yes
40336:
40337: case ext/curl in
40338: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
40339: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
40340: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
40341: esac
40342:
40343:
40344:
40345: b_c_pre=$shared_c_pre
40346: b_cxx_pre=$shared_cxx_pre
40347: b_c_meta=$shared_c_meta
40348: b_cxx_meta=$shared_cxx_meta
40349: b_c_post=$shared_c_post
40350: b_cxx_post=$shared_cxx_post
40351: b_lo=$shared_lo
40352:
40353:
40354: old_IFS=$IFS
40355: for ac_src in interface.c multi.c streams.c; do
40356:
40357: IFS=.
40358: set $ac_src
40359: ac_obj=$1
40360: IFS=$old_IFS
40361:
40362: shared_objects_curl="$shared_objects_curl $ac_bdir$ac_obj.lo"
40363:
40364: case $ac_src in
40365: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40366: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40367: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40368: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
40369: esac
40370:
40371: cat >>Makefile.objects<<EOF
40372: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
40373: $ac_comp
40374: EOF
40375: done
40376:
40377: case $host_alias in
40378: *netware*)
40379:
40380: install_modules="install-modules"
40381:
40382: case $host_alias in
40383: *aix*)
40384: suffix=so
40385: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcurl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(PHPCURL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcurl.so '$ext_builddir'/phpcurl.so'
40386: ;;
40387: *netware*)
40388: suffix=nlm
40389: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) -L$(top_builddir)/netware -lphp5lib $(CURL_SHARED_LIBADD)'
40390: ;;
40391: *)
40392: suffix=la
40393: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(PHPCURL_SHARED_LIBADD)'
40394: ;;
40395: esac
40396:
40397: if test "x" = "xyes"; then
40398: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcurl.$suffix"
40399: else
40400: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcurl.$suffix"
40401: fi
40402:
40403: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
40404:
40405: cat >>Makefile.objects<<EOF
40406: \$(phplibdir)/phpcurl.$suffix: $ext_builddir/phpcurl.$suffix
40407: \$(LIBTOOL) --mode=install cp $ext_builddir/phpcurl.$suffix \$(phplibdir)
40408:
40409: $ext_builddir/phpcurl.$suffix: \$(shared_objects_curl) \$(PHPCURL_SHARED_DEPENDENCIES)
40410: $link_cmd
40411:
40412: EOF
40413:
40414: ;;
40415: *)
40416:
40417: install_modules="install-modules"
40418:
40419: case $host_alias in
40420: *aix*)
40421: suffix=so
40422: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/curl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(CURL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/curl.so '$ext_builddir'/curl.so'
40423: ;;
40424: *netware*)
40425: suffix=nlm
40426: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) -L$(top_builddir)/netware -lphp5lib $(L_SHARED_LIBADD)'
40427: ;;
40428: *)
40429: suffix=la
40430: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(CURL_SHARED_LIBADD)'
40431: ;;
40432: esac
40433:
40434: if test "x" = "xyes"; then
40435: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/curl.$suffix"
40436: else
40437: PHP_MODULES="$PHP_MODULES \$(phplibdir)/curl.$suffix"
40438: fi
40439:
40440: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
40441:
40442: cat >>Makefile.objects<<EOF
40443: \$(phplibdir)/curl.$suffix: $ext_builddir/curl.$suffix
40444: \$(LIBTOOL) --mode=install cp $ext_builddir/curl.$suffix \$(phplibdir)
40445:
40446: $ext_builddir/curl.$suffix: \$(shared_objects_curl) \$(CURL_SHARED_DEPENDENCIES)
40447: $link_cmd
40448:
40449: EOF
40450:
40451: ;;
40452: esac
40453:
40454: cat >>confdefs.h <<_ACEOF
40455: #define COMPILE_DL_CURL 1
40456: _ACEOF
40457:
40458: fi
40459: fi
40460:
40461: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
40462: PHP_CURL_SHARED=no
1.1.1.3 ! misho 40463: case "$PHP_SAPI" in
! 40464: cgi|embed)
1.1 misho 40465:
40466:
40467: case ext/curl in
40468: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
40469: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
40470: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
40471: esac
40472:
40473:
40474:
40475: b_c_pre=$php_c_pre
40476: b_cxx_pre=$php_cxx_pre
40477: b_c_meta=$php_c_meta
40478: b_cxx_meta=$php_cxx_meta
40479: b_c_post=$php_c_post
40480: b_cxx_post=$php_cxx_post
40481: b_lo=$php_lo
40482:
40483:
40484: old_IFS=$IFS
40485: for ac_src in interface.c multi.c streams.c; do
40486:
40487: IFS=.
40488: set $ac_src
40489: ac_obj=$1
40490: IFS=$old_IFS
40491:
1.1.1.2 misho 40492: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 40493:
40494: case $ac_src in
40495: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40496: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40497: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40498: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
40499: esac
40500:
40501: cat >>Makefile.objects<<EOF
40502: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
40503: $ac_comp
40504: EOF
40505: done
40506:
40507:
1.1.1.3 ! misho 40508: EXT_STATIC="$EXT_STATIC curl"
! 40509: ;;
! 40510: *)
1.1 misho 40511:
40512:
40513: case ext/curl in
40514: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
40515: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
40516: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
40517: esac
40518:
40519:
40520:
40521: b_c_pre=$php_c_pre
40522: b_cxx_pre=$php_cxx_pre
40523: b_c_meta=$php_c_meta
40524: b_cxx_meta=$php_cxx_meta
40525: b_c_post=$php_c_post
40526: b_cxx_post=$php_cxx_post
40527: b_lo=$php_lo
40528:
40529:
40530: old_IFS=$IFS
40531: for ac_src in interface.c multi.c streams.c; do
40532:
40533: IFS=.
40534: set $ac_src
40535: ac_obj=$1
40536: IFS=$old_IFS
40537:
1.1.1.2 misho 40538: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 40539:
40540: case $ac_src in
40541: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40542: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40543: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
40544: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
40545: esac
40546:
40547: cat >>Makefile.objects<<EOF
40548: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
40549: $ac_comp
40550: EOF
40551: done
40552:
40553:
1.1.1.3 ! misho 40554: ;;
! 40555: esac
1.1 misho 40556: EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
40557: fi
40558:
40559:
40560: BUILD_DIR="$BUILD_DIR $ext_builddir"
40561:
40562:
40563:
40564: if test "$ext_builddir" = "."; then
40565: PHP_PECL_EXTENSION=curl
40566:
40567: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
40568:
40569: fi
40570:
40571:
40572: PHP_VAR_SUBST="$PHP_VAR_SUBST CURL_SHARED_LIBADD"
40573:
40574: fi
40575:
40576:
40577:
40578:
40579:
40580:
40581:
40582:
40583:
40584:
40585:
40586:
40587:
40588:
40589:
40590:
40591:
40592: php_enable_dba=no
40593:
40594:
40595: # Check whether --enable-dba was given.
1.1.1.3 ! misho 40596: if test "${enable_dba+set}" = set; then
1.1 misho 40597: enableval=$enable_dba; PHP_DBA=$enableval
40598: else
40599:
40600: PHP_DBA=no
40601: test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL
40602:
40603: fi
40604:
40605:
40606:
40607: ext_output="yes, shared"
40608: ext_shared=yes
40609: case $PHP_DBA in
40610: shared,*)
40611: PHP_DBA=`echo "$PHP_DBA"|$SED 's/^shared,//'`
40612: ;;
40613: shared)
40614: PHP_DBA=yes
40615: ;;
40616: no)
40617: ext_output=no
40618: ext_shared=no
40619: ;;
40620: *)
40621: ext_output=yes
40622: ext_shared=no
40623: ;;
40624: esac
40625:
40626:
40627:
40628:
40629:
40630:
40631:
40632:
40633:
40634: php_with_qdbm=no
40635:
40636:
40637:
40638: # Check whether --with-qdbm was given.
1.1.1.3 ! misho 40639: if test "${with_qdbm+set}" = set; then
1.1 misho 40640: withval=$with_qdbm; PHP_QDBM=$withval
40641: else
40642:
40643: PHP_QDBM=no
40644:
40645:
40646: fi
40647:
40648:
40649: ext_output=$PHP_QDBM
40650:
40651:
40652:
40653:
40654:
40655:
40656: php_with_gdbm=no
40657:
40658:
40659:
40660: # Check whether --with-gdbm was given.
1.1.1.3 ! misho 40661: if test "${with_gdbm+set}" = set; then
1.1 misho 40662: withval=$with_gdbm; PHP_GDBM=$withval
40663: else
40664:
40665: PHP_GDBM=no
40666:
40667:
40668: fi
40669:
40670:
40671: ext_output=$PHP_GDBM
40672:
40673:
40674:
40675:
40676:
40677:
40678: php_with_ndbm=no
40679:
40680:
40681:
40682: # Check whether --with-ndbm was given.
1.1.1.3 ! misho 40683: if test "${with_ndbm+set}" = set; then
1.1 misho 40684: withval=$with_ndbm; PHP_NDBM=$withval
40685: else
40686:
40687: PHP_NDBM=no
40688:
40689:
40690: fi
40691:
40692:
40693: ext_output=$PHP_NDBM
40694:
40695:
40696:
40697:
40698:
40699:
40700: php_with_db4=no
40701:
40702:
40703:
40704: # Check whether --with-db4 was given.
1.1.1.3 ! misho 40705: if test "${with_db4+set}" = set; then
1.1 misho 40706: withval=$with_db4; PHP_DB4=$withval
40707: else
40708:
40709: PHP_DB4=no
40710:
40711:
40712: fi
40713:
40714:
40715: ext_output=$PHP_DB4
40716:
40717:
40718:
40719:
40720:
40721:
40722: php_with_db3=no
40723:
40724:
40725:
40726: # Check whether --with-db3 was given.
1.1.1.3 ! misho 40727: if test "${with_db3+set}" = set; then
1.1 misho 40728: withval=$with_db3; PHP_DB3=$withval
40729: else
40730:
40731: PHP_DB3=no
40732:
40733:
40734: fi
40735:
40736:
40737: ext_output=$PHP_DB3
40738:
40739:
40740:
40741:
40742:
40743:
40744: php_with_db2=no
40745:
40746:
40747:
40748: # Check whether --with-db2 was given.
1.1.1.3 ! misho 40749: if test "${with_db2+set}" = set; then
1.1 misho 40750: withval=$with_db2; PHP_DB2=$withval
40751: else
40752:
40753: PHP_DB2=no
40754:
40755:
40756: fi
40757:
40758:
40759: ext_output=$PHP_DB2
40760:
40761:
40762:
40763:
40764:
40765:
40766: php_with_db1=no
40767:
40768:
40769:
40770: # Check whether --with-db1 was given.
1.1.1.3 ! misho 40771: if test "${with_db1+set}" = set; then
1.1 misho 40772: withval=$with_db1; PHP_DB1=$withval
40773: else
40774:
40775: PHP_DB1=no
40776:
40777:
40778: fi
40779:
40780:
40781: ext_output=$PHP_DB1
40782:
40783:
40784:
40785:
40786:
40787:
40788: php_with_dbm=no
40789:
40790:
40791:
40792: # Check whether --with-dbm was given.
1.1.1.3 ! misho 40793: if test "${with_dbm+set}" = set; then
1.1 misho 40794: withval=$with_dbm; PHP_DBM=$withval
40795: else
40796:
40797: PHP_DBM=no
40798:
40799:
40800: fi
40801:
40802:
40803: ext_output=$PHP_DBM
40804:
40805:
40806:
40807:
40808:
40809:
1.1.1.2 misho 40810: php_with_tcadb=no
40811:
40812:
40813:
40814: # Check whether --with-tcadb was given.
1.1.1.3 ! misho 40815: if test "${with_tcadb+set}" = set; then
1.1.1.2 misho 40816: withval=$with_tcadb; PHP_TCADB=$withval
40817: else
40818:
40819: PHP_TCADB=no
40820:
40821:
40822: fi
40823:
40824:
40825: ext_output=$PHP_TCADB
40826:
40827:
40828:
40829:
40830:
40831:
40832:
1.1 misho 40833: # QDBM
40834: if test "$PHP_QDBM" != "no"; then
40835:
40836: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
40837:
40838: for i in $PHP_QDBM /usr/local /usr; do
40839: if test -f "$i/include/depot.h"; then
40840: THIS_PREFIX=$i
40841: THIS_INCLUDE=$i/include/depot.h
40842: break
40843: fi
40844: done
40845:
40846: if test -n "$THIS_INCLUDE"; then
40847: for LIB in qdbm; do
40848:
40849: save_old_LDFLAGS=$LDFLAGS
40850: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
40851:
40852: save_ext_shared=$ext_shared
40853: ext_shared=yes
40854:
40855: for ac_i in $ac_stuff; do
40856: case $ac_i in
40857: -pthread)
40858: if test "$ext_shared" = "yes"; then
40859: LDFLAGS="$LDFLAGS -pthread"
40860: else
40861:
40862:
40863: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40864:
40865: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40866: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40867: eval "EXTRA_LDFLAGS$unique=set"
40868: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40869: fi
40870:
40871: fi
40872: ;;
40873: -l*)
40874: ac_ii=`echo $ac_i|cut -c 3-`
40875:
40876:
40877: case $ac_ii in
40878: c|c_r|pthread*) ;;
40879: *)
40880: if test "$ext_shared" = "yes"; then
40881: LDFLAGS="$LDFLAGS -l$ac_ii"
40882: else
40883:
40884:
40885: case $ac_ii in
40886: c|c_r|pthread*) ;;
40887: *)
40888: LIBS="$LIBS -l$ac_ii"
40889: ;;
40890: esac
40891:
40892:
40893: fi
40894: ;;
40895: esac
40896:
40897:
40898: ;;
40899: -L*)
40900: ac_ii=`echo $ac_i|cut -c 3-`
40901:
40902: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40903:
40904: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40905: ai_p=$ac_ii
40906: else
40907:
40908: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
40909:
40910: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40911: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
40912: fi
40913:
40914:
40915: if test "$ext_shared" = "yes"; then
40916: LDFLAGS="-L$ai_p $LDFLAGS"
40917: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40918: else
40919:
40920:
40921:
40922: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40923:
40924: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40925: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40926: eval "LIBPATH$unique=set"
40927:
40928: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40929: LDFLAGS="$LDFLAGS -L$ai_p"
40930: PHP_RPATHS="$PHP_RPATHS $ai_p"
40931:
40932: fi
40933:
40934:
40935: fi
40936:
40937: fi
40938:
40939: ;;
40940: esac
40941: done
40942:
1.1.1.3 ! misho 40943: as_ac_Lib=`echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh`
! 40944: { echo "$as_me:$LINENO: checking for dpopen in -l$LIB" >&5
! 40945: echo $ECHO_N "checking for dpopen in -l$LIB... $ECHO_C" >&6; }
! 40946: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 40947: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 40948: else
40949: ac_check_lib_save_LIBS=$LIBS
40950: LIBS="-l$LIB $LIBS"
1.1.1.3 ! misho 40951: cat >conftest.$ac_ext <<_ACEOF
! 40952: /* confdefs.h. */
! 40953: _ACEOF
! 40954: cat confdefs.h >>conftest.$ac_ext
! 40955: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 40956: /* end confdefs.h. */
40957:
40958: /* Override any GCC internal prototype to avoid an error.
40959: Use char because int might match the return type of a GCC
40960: builtin and then its argument prototype would still apply. */
40961: #ifdef __cplusplus
40962: extern "C"
40963: #endif
40964: char dpopen ();
40965: int
40966: main ()
40967: {
40968: return dpopen ();
40969: ;
40970: return 0;
40971: }
40972: _ACEOF
1.1.1.3 ! misho 40973: rm -f conftest.$ac_objext conftest$ac_exeext
! 40974: if { (ac_try="$ac_link"
! 40975: case "(($ac_try" in
! 40976: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 40977: *) ac_try_echo=$ac_try;;
! 40978: esac
! 40979: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 40980: (eval "$ac_link") 2>conftest.er1
! 40981: ac_status=$?
! 40982: grep -v '^ *+' conftest.er1 >conftest.err
! 40983: rm -f conftest.er1
! 40984: cat conftest.err >&5
! 40985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 40986: (exit $ac_status); } && {
! 40987: test -z "$ac_c_werror_flag" ||
! 40988: test ! -s conftest.err
! 40989: } && test -s conftest$ac_exeext &&
! 40990: $as_test_x conftest$ac_exeext; then
1.1 misho 40991: eval "$as_ac_Lib=yes"
40992: else
1.1.1.3 ! misho 40993: echo "$as_me: failed program was:" >&5
! 40994: sed 's/^/| /' conftest.$ac_ext >&5
! 40995:
! 40996: eval "$as_ac_Lib=no"
1.1 misho 40997: fi
1.1.1.3 ! misho 40998:
! 40999: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 41000: conftest$ac_exeext conftest.$ac_ext
1.1 misho 41001: LIBS=$ac_check_lib_save_LIBS
41002: fi
1.1.1.3 ! misho 41003: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 41004: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 41005: echo "${ECHO_T}$ac_res" >&6; }
! 41006: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 41007:
41008: LDFLAGS=$save_old_LDFLAGS
41009: ext_shared=$save_ext_shared
41010:
41011:
41012: cat >>confdefs.h <<_ACEOF
41013: #define QDBM_INCLUDE_FILE "$THIS_INCLUDE"
41014: _ACEOF
41015:
41016:
1.1.1.3 ! misho 41017: cat >>confdefs.h <<\_ACEOF
! 41018: #define DBA_QDBM 1
! 41019: _ACEOF
1.1 misho 41020:
41021: THIS_LIBS=$LIB
41022:
41023:
41024: else
41025:
41026: LDFLAGS=$save_old_LDFLAGS
41027: ext_shared=$save_ext_shared
41028: unset ac_cv_lib_$LIB_dpopen
41029:
41030:
41031: fi
41032:
41033: if test -n "$THIS_LIBS"; then
41034: break
41035: fi
41036: done
41037: fi
41038:
41039:
41040: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
41041: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
41042: fi
41043:
41044:
41045: THIS_RESULT=yes
41046: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 41047: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 41048: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 41049: { (exit 1); exit 1; }; }
1.1 misho 41050: fi
41051: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 41052: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 41053: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 41054: { (exit 1); exit 1; }; }
1.1 misho 41055: fi
41056:
41057:
41058:
41059:
41060: if test "$ext_shared" = "yes"; then
41061: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
41062: if test -n "$THIS_LFLAGS"; then
41063:
41064: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
41065:
41066: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
41067: ai_p=$THIS_LFLAGS
41068: else
41069:
41070: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
41071:
41072: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41073: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
41074: fi
41075:
41076:
41077: if test "$ext_shared" = "yes"; then
41078: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
41079: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
41080: else
41081:
41082:
41083:
41084: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41085:
41086: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41087: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41088: eval "LIBPATH$unique=set"
41089:
41090: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41091: LDFLAGS="$LDFLAGS -L$ai_p"
41092: PHP_RPATHS="$PHP_RPATHS $ai_p"
41093:
41094: fi
41095:
41096:
41097: fi
41098:
41099: fi
41100:
41101: fi
41102: else
41103:
41104:
41105: if test -n "$THIS_LFLAGS"; then
41106:
41107: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
41108:
41109: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
41110: ai_p=$THIS_LFLAGS
41111: else
41112:
41113: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
41114:
41115: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41116: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
41117: fi
41118:
41119:
41120:
41121:
41122:
41123: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41124:
41125: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41126: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41127: eval "LIBPATH$unique=set"
41128:
41129: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41130: LDFLAGS="$LDFLAGS -L$ai_p"
41131: PHP_RPATHS="$PHP_RPATHS $ai_p"
41132:
41133: fi
41134:
41135:
41136:
41137: fi
41138:
41139: fi
41140:
41141:
41142: case $THIS_LIBS in
41143: c|c_r|pthread*) ;;
41144: *)
41145: LIBS="-l$THIS_LIBS $LIBS"
41146: ;;
41147: esac
41148:
41149:
41150:
41151:
41152: fi
41153:
41154:
41155: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
41156:
41157: fi
41158:
41159: THIS_NAME=QDBM
41160: if test -n ""; then
41161: THIS_FULL_NAME=""
41162: else
41163: THIS_FULL_NAME="$THIS_NAME"
41164: fi
1.1.1.3 ! misho 41165: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 41166: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 41167: if test -n ""; then
1.1.1.3 ! misho 41168: { { echo "$as_me:$LINENO: error: " >&5
! 41169: echo "$as_me: error: " >&2;}
! 41170: { (exit 1); exit 1; }; }
1.1 misho 41171: fi
41172: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
41173: HAVE_DBA=1
41174: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 41175: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 41176: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 41177: else
1.1.1.3 ! misho 41178: { echo "$as_me:$LINENO: result: no" >&5
! 41179: echo "${ECHO_T}no" >&6; }
1.1 misho 41180: fi
41181: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
41182:
41183:
41184: # GDBM
41185: if test "$PHP_GDBM" != "no"; then
41186:
41187: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
41188:
41189: if test "$HAVE_QDBM" = "1"; then
41190:
41191: THIS_NAME=GDBM
41192: if test -n "gdbm"; then
41193: THIS_FULL_NAME="gdbm"
41194: else
41195: THIS_FULL_NAME="$THIS_NAME"
41196: fi
1.1.1.3 ! misho 41197: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 41198: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 41199: if test -n "You cannot combine --with-gdbm with --with-qdbm"; then
1.1.1.3 ! misho 41200: { { echo "$as_me:$LINENO: error: You cannot combine --with-gdbm with --with-qdbm" >&5
! 41201: echo "$as_me: error: You cannot combine --with-gdbm with --with-qdbm" >&2;}
! 41202: { (exit 1); exit 1; }; }
1.1 misho 41203: fi
41204: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
41205: HAVE_DBA=1
41206: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 41207: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 41208: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 41209: else
1.1.1.3 ! misho 41210: { echo "$as_me:$LINENO: result: no" >&5
! 41211: echo "${ECHO_T}no" >&6; }
1.1 misho 41212: fi
41213: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
41214:
41215: fi
41216: for i in $PHP_GDBM /usr/local /usr; do
41217: if test -f "$i/include/gdbm.h"; then
41218: THIS_PREFIX=$i
41219: THIS_INCLUDE=$i/include/gdbm.h
41220: break
41221: fi
41222: done
41223:
41224: if test -n "$THIS_INCLUDE"; then
41225:
41226: save_old_LDFLAGS=$LDFLAGS
41227: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
41228:
41229: save_ext_shared=$ext_shared
41230: ext_shared=yes
41231:
41232: for ac_i in $ac_stuff; do
41233: case $ac_i in
41234: -pthread)
41235: if test "$ext_shared" = "yes"; then
41236: LDFLAGS="$LDFLAGS -pthread"
41237: else
41238:
41239:
41240: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41241:
41242: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41243: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41244: eval "EXTRA_LDFLAGS$unique=set"
41245: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41246: fi
41247:
41248: fi
41249: ;;
41250: -l*)
41251: ac_ii=`echo $ac_i|cut -c 3-`
41252:
41253:
41254: case $ac_ii in
41255: c|c_r|pthread*) ;;
41256: *)
41257: if test "$ext_shared" = "yes"; then
41258: LDFLAGS="$LDFLAGS -l$ac_ii"
41259: else
41260:
41261:
41262: case $ac_ii in
41263: c|c_r|pthread*) ;;
41264: *)
41265: LIBS="$LIBS -l$ac_ii"
41266: ;;
41267: esac
41268:
41269:
41270: fi
41271: ;;
41272: esac
41273:
41274:
41275: ;;
41276: -L*)
41277: ac_ii=`echo $ac_i|cut -c 3-`
41278:
41279: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41280:
41281: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41282: ai_p=$ac_ii
41283: else
41284:
41285: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41286:
41287: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41288: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41289: fi
41290:
41291:
41292: if test "$ext_shared" = "yes"; then
41293: LDFLAGS="-L$ai_p $LDFLAGS"
41294: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41295: else
41296:
41297:
41298:
41299: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41300:
41301: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41302: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41303: eval "LIBPATH$unique=set"
41304:
41305: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41306: LDFLAGS="$LDFLAGS -L$ai_p"
41307: PHP_RPATHS="$PHP_RPATHS $ai_p"
41308:
41309: fi
41310:
41311:
41312: fi
41313:
41314: fi
41315:
41316: ;;
41317: esac
41318: done
41319:
1.1.1.3 ! misho 41320: { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
! 41321: echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
! 41322: if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
! 41323: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 41324: else
41325: ac_check_lib_save_LIBS=$LIBS
41326: LIBS="-lgdbm $LIBS"
1.1.1.3 ! misho 41327: cat >conftest.$ac_ext <<_ACEOF
! 41328: /* confdefs.h. */
! 41329: _ACEOF
! 41330: cat confdefs.h >>conftest.$ac_ext
! 41331: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 41332: /* end confdefs.h. */
41333:
41334: /* Override any GCC internal prototype to avoid an error.
41335: Use char because int might match the return type of a GCC
41336: builtin and then its argument prototype would still apply. */
41337: #ifdef __cplusplus
41338: extern "C"
41339: #endif
41340: char gdbm_open ();
41341: int
41342: main ()
41343: {
41344: return gdbm_open ();
41345: ;
41346: return 0;
41347: }
41348: _ACEOF
1.1.1.3 ! misho 41349: rm -f conftest.$ac_objext conftest$ac_exeext
! 41350: if { (ac_try="$ac_link"
! 41351: case "(($ac_try" in
! 41352: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 41353: *) ac_try_echo=$ac_try;;
! 41354: esac
! 41355: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 41356: (eval "$ac_link") 2>conftest.er1
! 41357: ac_status=$?
! 41358: grep -v '^ *+' conftest.er1 >conftest.err
! 41359: rm -f conftest.er1
! 41360: cat conftest.err >&5
! 41361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 41362: (exit $ac_status); } && {
! 41363: test -z "$ac_c_werror_flag" ||
! 41364: test ! -s conftest.err
! 41365: } && test -s conftest$ac_exeext &&
! 41366: $as_test_x conftest$ac_exeext; then
1.1 misho 41367: ac_cv_lib_gdbm_gdbm_open=yes
41368: else
1.1.1.3 ! misho 41369: echo "$as_me: failed program was:" >&5
! 41370: sed 's/^/| /' conftest.$ac_ext >&5
! 41371:
! 41372: ac_cv_lib_gdbm_gdbm_open=no
1.1 misho 41373: fi
1.1.1.3 ! misho 41374:
! 41375: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 41376: conftest$ac_exeext conftest.$ac_ext
1.1 misho 41377: LIBS=$ac_check_lib_save_LIBS
41378: fi
1.1.1.3 ! misho 41379: { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
! 41380: echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
! 41381: if test $ac_cv_lib_gdbm_gdbm_open = yes; then
1.1 misho 41382:
41383: LDFLAGS=$save_old_LDFLAGS
41384: ext_shared=$save_ext_shared
41385:
41386:
41387: cat >>confdefs.h <<_ACEOF
41388: #define GDBM_INCLUDE_FILE "$THIS_INCLUDE"
41389: _ACEOF
41390:
41391:
1.1.1.3 ! misho 41392: cat >>confdefs.h <<\_ACEOF
! 41393: #define DBA_GDBM 1
! 41394: _ACEOF
1.1 misho 41395:
41396: THIS_LIBS=gdbm
41397:
41398:
41399: else
41400:
41401: LDFLAGS=$save_old_LDFLAGS
41402: ext_shared=$save_ext_shared
41403: unset ac_cv_lib_gdbm_gdbm_open
41404:
41405:
41406: fi
41407:
41408: fi
41409:
41410:
41411: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
41412: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
41413: fi
41414:
41415:
41416: THIS_RESULT=yes
41417: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 41418: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 41419: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 41420: { (exit 1); exit 1; }; }
1.1 misho 41421: fi
41422: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 41423: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 41424: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 41425: { (exit 1); exit 1; }; }
1.1 misho 41426: fi
41427:
41428:
41429:
41430:
41431: if test "$ext_shared" = "yes"; then
41432: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
41433: if test -n "$THIS_LFLAGS"; then
41434:
41435: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
41436:
41437: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
41438: ai_p=$THIS_LFLAGS
41439: else
41440:
41441: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
41442:
41443: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41444: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
41445: fi
41446:
41447:
41448: if test "$ext_shared" = "yes"; then
41449: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
41450: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
41451: else
41452:
41453:
41454:
41455: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41456:
41457: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41458: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41459: eval "LIBPATH$unique=set"
41460:
41461: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41462: LDFLAGS="$LDFLAGS -L$ai_p"
41463: PHP_RPATHS="$PHP_RPATHS $ai_p"
41464:
41465: fi
41466:
41467:
41468: fi
41469:
41470: fi
41471:
41472: fi
41473: else
41474:
41475:
41476: if test -n "$THIS_LFLAGS"; then
41477:
41478: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
41479:
41480: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
41481: ai_p=$THIS_LFLAGS
41482: else
41483:
41484: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
41485:
41486: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41487: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
41488: fi
41489:
41490:
41491:
41492:
41493:
41494: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41495:
41496: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41497: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41498: eval "LIBPATH$unique=set"
41499:
41500: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41501: LDFLAGS="$LDFLAGS -L$ai_p"
41502: PHP_RPATHS="$PHP_RPATHS $ai_p"
41503:
41504: fi
41505:
41506:
41507:
41508: fi
41509:
41510: fi
41511:
41512:
41513: case $THIS_LIBS in
41514: c|c_r|pthread*) ;;
41515: *)
41516: LIBS="-l$THIS_LIBS $LIBS"
41517: ;;
41518: esac
41519:
41520:
41521:
41522:
41523: fi
41524:
41525:
41526: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
41527:
41528: fi
41529:
41530: THIS_NAME=GDBM
41531: if test -n ""; then
41532: THIS_FULL_NAME=""
41533: else
41534: THIS_FULL_NAME="$THIS_NAME"
41535: fi
1.1.1.3 ! misho 41536: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 41537: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 41538: if test -n ""; then
1.1.1.3 ! misho 41539: { { echo "$as_me:$LINENO: error: " >&5
! 41540: echo "$as_me: error: " >&2;}
! 41541: { (exit 1); exit 1; }; }
1.1 misho 41542: fi
41543: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
41544: HAVE_DBA=1
41545: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 41546: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 41547: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 41548: else
1.1.1.3 ! misho 41549: { echo "$as_me:$LINENO: result: no" >&5
! 41550: echo "${ECHO_T}no" >&6; }
1.1 misho 41551: fi
41552: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
41553:
41554:
41555: # NDBM
41556: if test "$PHP_NDBM" != "no"; then
41557:
41558: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
41559:
41560: for i in $PHP_NDBM /usr/local /usr; do
41561: if test -f "$i/include/ndbm.h"; then
41562: THIS_PREFIX=$i
41563: THIS_INCLUDE=$i/include/ndbm.h
41564: break
41565: elif test -f "$i/include/db1/ndbm.h"; then
41566: THIS_PREFIX=$i
41567: THIS_INCLUDE=$i/include/db1/ndbm.h
41568: break
41569: fi
41570: done
41571:
41572: if test -n "$THIS_INCLUDE"; then
41573: for LIB in ndbm db1 c; do
41574:
41575: save_old_LDFLAGS=$LDFLAGS
41576: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
41577:
41578: save_ext_shared=$ext_shared
41579: ext_shared=yes
41580:
41581: for ac_i in $ac_stuff; do
41582: case $ac_i in
41583: -pthread)
41584: if test "$ext_shared" = "yes"; then
41585: LDFLAGS="$LDFLAGS -pthread"
41586: else
41587:
41588:
41589: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41590:
41591: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41592: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41593: eval "EXTRA_LDFLAGS$unique=set"
41594: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41595: fi
41596:
41597: fi
41598: ;;
41599: -l*)
41600: ac_ii=`echo $ac_i|cut -c 3-`
41601:
41602:
41603: case $ac_ii in
41604: c|c_r|pthread*) ;;
41605: *)
41606: if test "$ext_shared" = "yes"; then
41607: LDFLAGS="$LDFLAGS -l$ac_ii"
41608: else
41609:
41610:
41611: case $ac_ii in
41612: c|c_r|pthread*) ;;
41613: *)
41614: LIBS="$LIBS -l$ac_ii"
41615: ;;
41616: esac
41617:
41618:
41619: fi
41620: ;;
41621: esac
41622:
41623:
41624: ;;
41625: -L*)
41626: ac_ii=`echo $ac_i|cut -c 3-`
41627:
41628: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41629:
41630: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41631: ai_p=$ac_ii
41632: else
41633:
41634: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41635:
41636: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41637: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41638: fi
41639:
41640:
41641: if test "$ext_shared" = "yes"; then
41642: LDFLAGS="-L$ai_p $LDFLAGS"
41643: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41644: else
41645:
41646:
41647:
41648: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41649:
41650: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41651: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41652: eval "LIBPATH$unique=set"
41653:
41654: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41655: LDFLAGS="$LDFLAGS -L$ai_p"
41656: PHP_RPATHS="$PHP_RPATHS $ai_p"
41657:
41658: fi
41659:
41660:
41661: fi
41662:
41663: fi
41664:
41665: ;;
41666: esac
41667: done
41668:
1.1.1.3 ! misho 41669: as_ac_Lib=`echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh`
! 41670: { echo "$as_me:$LINENO: checking for dbm_open in -l$LIB" >&5
! 41671: echo $ECHO_N "checking for dbm_open in -l$LIB... $ECHO_C" >&6; }
! 41672: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 41673: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 41674: else
41675: ac_check_lib_save_LIBS=$LIBS
41676: LIBS="-l$LIB $LIBS"
1.1.1.3 ! misho 41677: cat >conftest.$ac_ext <<_ACEOF
! 41678: /* confdefs.h. */
! 41679: _ACEOF
! 41680: cat confdefs.h >>conftest.$ac_ext
! 41681: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 41682: /* end confdefs.h. */
41683:
41684: /* Override any GCC internal prototype to avoid an error.
41685: Use char because int might match the return type of a GCC
41686: builtin and then its argument prototype would still apply. */
41687: #ifdef __cplusplus
41688: extern "C"
41689: #endif
41690: char dbm_open ();
41691: int
41692: main ()
41693: {
41694: return dbm_open ();
41695: ;
41696: return 0;
41697: }
41698: _ACEOF
1.1.1.3 ! misho 41699: rm -f conftest.$ac_objext conftest$ac_exeext
! 41700: if { (ac_try="$ac_link"
! 41701: case "(($ac_try" in
! 41702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 41703: *) ac_try_echo=$ac_try;;
! 41704: esac
! 41705: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 41706: (eval "$ac_link") 2>conftest.er1
! 41707: ac_status=$?
! 41708: grep -v '^ *+' conftest.er1 >conftest.err
! 41709: rm -f conftest.er1
! 41710: cat conftest.err >&5
! 41711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 41712: (exit $ac_status); } && {
! 41713: test -z "$ac_c_werror_flag" ||
! 41714: test ! -s conftest.err
! 41715: } && test -s conftest$ac_exeext &&
! 41716: $as_test_x conftest$ac_exeext; then
1.1 misho 41717: eval "$as_ac_Lib=yes"
41718: else
1.1.1.3 ! misho 41719: echo "$as_me: failed program was:" >&5
! 41720: sed 's/^/| /' conftest.$ac_ext >&5
! 41721:
! 41722: eval "$as_ac_Lib=no"
1.1 misho 41723: fi
1.1.1.3 ! misho 41724:
! 41725: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 41726: conftest$ac_exeext conftest.$ac_ext
1.1 misho 41727: LIBS=$ac_check_lib_save_LIBS
41728: fi
1.1.1.3 ! misho 41729: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 41730: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 41731: echo "${ECHO_T}$ac_res" >&6; }
! 41732: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 41733:
41734: LDFLAGS=$save_old_LDFLAGS
41735: ext_shared=$save_ext_shared
41736:
41737:
41738: cat >>confdefs.h <<_ACEOF
41739: #define NDBM_INCLUDE_FILE "$THIS_INCLUDE"
41740: _ACEOF
41741:
41742:
1.1.1.3 ! misho 41743: cat >>confdefs.h <<\_ACEOF
! 41744: #define DBA_NDBM 1
! 41745: _ACEOF
1.1 misho 41746:
41747: THIS_LIBS=$LIB
41748:
41749:
41750: else
41751:
41752: LDFLAGS=$save_old_LDFLAGS
41753: ext_shared=$save_ext_shared
41754: unset ac_cv_lib_$LIB_dbm_open
41755:
41756:
41757: fi
41758:
41759: if test -n "$THIS_LIBS"; then
41760: break
41761: fi
41762: done
41763: fi
41764:
41765:
41766: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
41767: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
41768: fi
41769:
41770:
41771: THIS_RESULT=yes
41772: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 41773: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 41774: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 41775: { (exit 1); exit 1; }; }
1.1 misho 41776: fi
41777: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 41778: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 41779: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 41780: { (exit 1); exit 1; }; }
1.1 misho 41781: fi
41782:
41783:
41784:
41785:
41786: if test "$ext_shared" = "yes"; then
41787: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
41788: if test -n "$THIS_LFLAGS"; then
41789:
41790: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
41791:
41792: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
41793: ai_p=$THIS_LFLAGS
41794: else
41795:
41796: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
41797:
41798: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41799: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
41800: fi
41801:
41802:
41803: if test "$ext_shared" = "yes"; then
41804: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
41805: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
41806: else
41807:
41808:
41809:
41810: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41811:
41812: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41813: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41814: eval "LIBPATH$unique=set"
41815:
41816: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41817: LDFLAGS="$LDFLAGS -L$ai_p"
41818: PHP_RPATHS="$PHP_RPATHS $ai_p"
41819:
41820: fi
41821:
41822:
41823: fi
41824:
41825: fi
41826:
41827: fi
41828: else
41829:
41830:
41831: if test -n "$THIS_LFLAGS"; then
41832:
41833: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
41834:
41835: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
41836: ai_p=$THIS_LFLAGS
41837: else
41838:
41839: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
41840:
41841: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41842: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
41843: fi
41844:
41845:
41846:
41847:
41848:
41849: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41850:
41851: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41852: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41853: eval "LIBPATH$unique=set"
41854:
41855: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41856: LDFLAGS="$LDFLAGS -L$ai_p"
41857: PHP_RPATHS="$PHP_RPATHS $ai_p"
41858:
41859: fi
41860:
41861:
41862:
41863: fi
41864:
41865: fi
41866:
41867:
41868: case $THIS_LIBS in
41869: c|c_r|pthread*) ;;
41870: *)
41871: LIBS="-l$THIS_LIBS $LIBS"
41872: ;;
41873: esac
41874:
41875:
41876:
41877:
41878: fi
41879:
41880:
41881: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
41882:
41883: fi
41884:
41885: THIS_NAME=NDBM
41886: if test -n ""; then
41887: THIS_FULL_NAME=""
41888: else
41889: THIS_FULL_NAME="$THIS_NAME"
41890: fi
1.1.1.3 ! misho 41891: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 41892: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 41893: if test -n ""; then
1.1.1.3 ! misho 41894: { { echo "$as_me:$LINENO: error: " >&5
! 41895: echo "$as_me: error: " >&2;}
! 41896: { (exit 1); exit 1; }; }
1.1 misho 41897: fi
41898: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
41899: HAVE_DBA=1
41900: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 41901: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 41902: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 41903: else
1.1.1.3 ! misho 41904: { echo "$as_me:$LINENO: result: no" >&5
! 41905: echo "${ECHO_T}no" >&6; }
1.1 misho 41906: fi
41907: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
41908:
41909:
1.1.1.2 misho 41910: if test "$PHP_TCADB" != "no"; then
41911:
41912: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
41913:
41914: for i in $PHP_TCADB /usr/local /usr; do
41915: if test -f "$i/include/tcadb.h"; then
41916: THIS_PREFIX=$i
41917:
41918: if test "$THIS_PREFIX/include" != "/usr/include"; then
41919:
41920: if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then
41921: ai_p=$THIS_PREFIX/include
41922: else
41923:
41924: ep_dir="`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`"
41925:
41926: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41927: ai_p="$ep_realdir/`basename \"$THIS_PREFIX/include\"`"
41928: fi
41929:
41930:
41931:
41932: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41933:
41934: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
41935: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41936: eval "INCLUDEPATH$unique=set"
41937:
41938: if test ""; then
41939: INCLUDES="-I$ai_p $INCLUDES"
41940: else
41941: INCLUDES="$INCLUDES -I$ai_p"
41942: fi
41943:
41944: fi
41945:
41946: fi
41947:
41948: THIS_INCLUDE=$i/include/tcadb.h
41949: break
41950: fi
41951: done
41952:
41953: if test -n "$THIS_INCLUDE"; then
41954: for LIB in tokyocabinet; do
41955:
41956: save_old_LDFLAGS=$LDFLAGS
41957: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
41958:
41959: save_ext_shared=$ext_shared
41960: ext_shared=yes
41961:
41962: for ac_i in $ac_stuff; do
41963: case $ac_i in
41964: -pthread)
41965: if test "$ext_shared" = "yes"; then
41966: LDFLAGS="$LDFLAGS -pthread"
41967: else
41968:
41969:
41970: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41971:
41972: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41973: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41974: eval "EXTRA_LDFLAGS$unique=set"
41975: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41976: fi
41977:
41978: fi
41979: ;;
41980: -l*)
41981: ac_ii=`echo $ac_i|cut -c 3-`
41982:
41983:
41984: case $ac_ii in
41985: c|c_r|pthread*) ;;
41986: *)
41987: if test "$ext_shared" = "yes"; then
41988: LDFLAGS="$LDFLAGS -l$ac_ii"
41989: else
41990:
41991:
41992: case $ac_ii in
41993: c|c_r|pthread*) ;;
41994: *)
41995: LIBS="$LIBS -l$ac_ii"
41996: ;;
41997: esac
41998:
41999:
42000: fi
42001: ;;
42002: esac
42003:
42004:
42005: ;;
42006: -L*)
42007: ac_ii=`echo $ac_i|cut -c 3-`
42008:
42009: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42010:
42011: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42012: ai_p=$ac_ii
42013: else
42014:
42015: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42016:
42017: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42018: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42019: fi
42020:
42021:
42022: if test "$ext_shared" = "yes"; then
42023: LDFLAGS="-L$ai_p $LDFLAGS"
42024: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42025: else
42026:
42027:
42028:
42029: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42030:
42031: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42032: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42033: eval "LIBPATH$unique=set"
42034:
42035: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42036: LDFLAGS="$LDFLAGS -L$ai_p"
42037: PHP_RPATHS="$PHP_RPATHS $ai_p"
42038:
42039: fi
42040:
42041:
42042: fi
42043:
42044: fi
42045:
42046: ;;
42047: esac
42048: done
42049:
1.1.1.3 ! misho 42050: as_ac_Lib=`echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh`
! 42051: { echo "$as_me:$LINENO: checking for tcadbopen in -l$LIB" >&5
! 42052: echo $ECHO_N "checking for tcadbopen in -l$LIB... $ECHO_C" >&6; }
! 42053: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 42054: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 42055: else
42056: ac_check_lib_save_LIBS=$LIBS
42057: LIBS="-l$LIB $LIBS"
1.1.1.3 ! misho 42058: cat >conftest.$ac_ext <<_ACEOF
! 42059: /* confdefs.h. */
! 42060: _ACEOF
! 42061: cat confdefs.h >>conftest.$ac_ext
! 42062: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 42063: /* end confdefs.h. */
42064:
42065: /* Override any GCC internal prototype to avoid an error.
42066: Use char because int might match the return type of a GCC
42067: builtin and then its argument prototype would still apply. */
42068: #ifdef __cplusplus
42069: extern "C"
42070: #endif
42071: char tcadbopen ();
42072: int
42073: main ()
42074: {
42075: return tcadbopen ();
42076: ;
42077: return 0;
42078: }
42079: _ACEOF
1.1.1.3 ! misho 42080: rm -f conftest.$ac_objext conftest$ac_exeext
! 42081: if { (ac_try="$ac_link"
! 42082: case "(($ac_try" in
! 42083: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 42084: *) ac_try_echo=$ac_try;;
! 42085: esac
! 42086: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 42087: (eval "$ac_link") 2>conftest.er1
! 42088: ac_status=$?
! 42089: grep -v '^ *+' conftest.er1 >conftest.err
! 42090: rm -f conftest.er1
! 42091: cat conftest.err >&5
! 42092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 42093: (exit $ac_status); } && {
! 42094: test -z "$ac_c_werror_flag" ||
! 42095: test ! -s conftest.err
! 42096: } && test -s conftest$ac_exeext &&
! 42097: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 42098: eval "$as_ac_Lib=yes"
42099: else
1.1.1.3 ! misho 42100: echo "$as_me: failed program was:" >&5
! 42101: sed 's/^/| /' conftest.$ac_ext >&5
! 42102:
! 42103: eval "$as_ac_Lib=no"
1.1.1.2 misho 42104: fi
1.1.1.3 ! misho 42105:
! 42106: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 42107: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 42108: LIBS=$ac_check_lib_save_LIBS
42109: fi
1.1.1.3 ! misho 42110: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 42111: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 42112: echo "${ECHO_T}$ac_res" >&6; }
! 42113: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1.1.2 misho 42114:
42115: LDFLAGS=$save_old_LDFLAGS
42116: ext_shared=$save_ext_shared
42117:
42118:
42119: cat >>confdefs.h <<_ACEOF
42120: #define TCADB_INCLUDE_FILE "$THIS_INCLUDE"
42121: _ACEOF
42122:
42123:
1.1.1.3 ! misho 42124: cat >>confdefs.h <<\_ACEOF
! 42125: #define DBA_TCADB 1
! 42126: _ACEOF
1.1.1.2 misho 42127:
42128: THIS_LIBS=$LIB
42129:
42130:
42131: else
42132:
42133: LDFLAGS=$save_old_LDFLAGS
42134: ext_shared=$save_ext_shared
42135: unset ac_cv_lib_$LIB_tcadbopen
42136:
42137:
42138: fi
42139:
42140: if test -n "$THIS_LIBS"; then
42141: break
42142: fi
42143: done
42144: fi
42145:
42146:
42147: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
42148: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
42149: fi
42150:
42151:
42152: THIS_RESULT=yes
42153: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 42154: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 42155: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 42156: { (exit 1); exit 1; }; }
1.1.1.2 misho 42157: fi
42158: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 42159: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 42160: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 42161: { (exit 1); exit 1; }; }
1.1.1.2 misho 42162: fi
42163:
42164:
42165:
42166:
42167: if test "$ext_shared" = "yes"; then
42168: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
42169: if test -n "$THIS_LFLAGS"; then
42170:
42171: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42172:
42173: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42174: ai_p=$THIS_LFLAGS
42175: else
42176:
42177: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42178:
42179: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42180: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42181: fi
42182:
42183:
42184: if test "$ext_shared" = "yes"; then
42185: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
42186: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
42187: else
42188:
42189:
42190:
42191: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42192:
42193: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42194: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42195: eval "LIBPATH$unique=set"
42196:
42197: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42198: LDFLAGS="$LDFLAGS -L$ai_p"
42199: PHP_RPATHS="$PHP_RPATHS $ai_p"
42200:
42201: fi
42202:
42203:
42204: fi
42205:
42206: fi
42207:
42208: fi
42209: else
42210:
42211:
42212: if test -n "$THIS_LFLAGS"; then
42213:
42214: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42215:
42216: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42217: ai_p=$THIS_LFLAGS
42218: else
42219:
42220: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42221:
42222: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42223: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42224: fi
42225:
42226:
42227:
42228:
42229:
42230: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42231:
42232: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42233: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42234: eval "LIBPATH$unique=set"
42235:
42236: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42237: LDFLAGS="$LDFLAGS -L$ai_p"
42238: PHP_RPATHS="$PHP_RPATHS $ai_p"
42239:
42240: fi
42241:
42242:
42243:
42244: fi
42245:
42246: fi
42247:
42248:
42249: case $THIS_LIBS in
42250: c|c_r|pthread*) ;;
42251: *)
42252: LIBS="-l$THIS_LIBS $LIBS"
42253: ;;
42254: esac
42255:
42256:
42257:
42258:
42259: fi
42260:
42261:
42262: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
42263:
42264: fi
42265:
42266: THIS_NAME=TCADB
42267: if test -n ""; then
42268: THIS_FULL_NAME=""
42269: else
42270: THIS_FULL_NAME="$THIS_NAME"
42271: fi
1.1.1.3 ! misho 42272: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 42273: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1.1.2 misho 42274: if test -n ""; then
1.1.1.3 ! misho 42275: { { echo "$as_me:$LINENO: error: " >&5
! 42276: echo "$as_me: error: " >&2;}
! 42277: { (exit 1); exit 1; }; }
1.1.1.2 misho 42278: fi
42279: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
42280: HAVE_DBA=1
42281: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 42282: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 42283: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1.1.2 misho 42284: else
1.1.1.3 ! misho 42285: { echo "$as_me:$LINENO: result: no" >&5
! 42286: echo "${ECHO_T}no" >&6; }
1.1.1.2 misho 42287: fi
42288: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
42289:
42290:
1.1 misho 42291:
42292:
42293: # DB4
42294: if test "$PHP_DB4" != "no"; then
42295:
42296: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
42297:
42298: dbdp4="/usr/local/BerkeleyDB.4."
42299: dbdp5="/usr/local/BerkeleyDB.5."
42300: for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do
42301: if test -f "$i/db5/db.h"; then
42302: THIS_PREFIX=$i
42303: THIS_INCLUDE=$i/db5/db.h
42304: break
42305: elif test -f "$i/db4/db.h"; then
42306: THIS_PREFIX=$i
42307: THIS_INCLUDE=$i/db4/db.h
42308: break
42309: elif test -f "$i/include/db5.1/db.h"; then
42310: THIS_PREFIX=$i
42311: THIS_INCLUDE=$i/include/db5.1/db.h
42312: break
42313: elif test -f "$i/include/db5.0/db.h"; then
42314: THIS_PREFIX=$i
42315: THIS_INCLUDE=$i/include/db5.0/db.h
42316: break
42317: elif test -f "$i/include/db4.8/db.h"; then
42318: THIS_PREFIX=$i
42319: THIS_INCLUDE=$i/include/db4.8/db.h
42320: break
42321: elif test -f "$i/include/db4.7/db.h"; then
42322: THIS_PREFIX=$i
42323: THIS_INCLUDE=$i/include/db4.7/db.h
42324: break
42325: elif test -f "$i/include/db4.6/db.h"; then
42326: THIS_PREFIX=$i
42327: THIS_INCLUDE=$i/include/db4.6/db.h
42328: break
42329: elif test -f "$i/include/db4.5/db.h"; then
42330: THIS_PREFIX=$i
42331: THIS_INCLUDE=$i/include/db4.5/db.h
42332: break
42333: elif test -f "$i/include/db4/db.h"; then
42334: THIS_PREFIX=$i
42335: THIS_INCLUDE=$i/include/db4/db.h
42336: break
42337: elif test -f "$i/include/db/db4.h"; then
42338: THIS_PREFIX=$i
42339: THIS_INCLUDE=$i/include/db/db4.h
42340: break
42341: elif test -f "$i/include/db4.h"; then
42342: THIS_PREFIX=$i
42343: THIS_INCLUDE=$i/include/db4.h
42344: break
42345: elif test -f "$i/include/db.h"; then
42346: THIS_PREFIX=$i
42347: THIS_INCLUDE=$i/include/db.h
42348: break
42349: fi
42350: done
42351:
42352: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 42353: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 42354: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 42355: { (exit 1); exit 1; }; }
1.1 misho 42356: fi
42357: for LIB in db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do
42358: if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
42359: lib_found="";
42360:
42361: old_LDFLAGS=$LDFLAGS
42362: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
42363: old_LIBS=$LIBS
42364: LIBS="-l$LIB $LIBS"
42365:
1.1.1.3 ! misho 42366: cat >conftest.$ac_ext <<_ACEOF
! 42367: /* confdefs.h. */
! 42368: _ACEOF
! 42369: cat confdefs.h >>conftest.$ac_ext
! 42370: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42371: /* end confdefs.h. */
42372:
42373: #include "$THIS_INCLUDE"
42374:
42375: int
42376: main ()
42377: {
42378:
42379: (void)db_create((DB**)0, (DB_ENV*)0, 0);
42380:
42381: ;
42382: return 0;
42383: }
42384: _ACEOF
1.1.1.3 ! misho 42385: rm -f conftest.$ac_objext conftest$ac_exeext
! 42386: if { (ac_try="$ac_link"
! 42387: case "(($ac_try" in
! 42388: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 42389: *) ac_try_echo=$ac_try;;
! 42390: esac
! 42391: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 42392: (eval "$ac_link") 2>conftest.er1
! 42393: ac_status=$?
! 42394: grep -v '^ *+' conftest.er1 >conftest.err
! 42395: rm -f conftest.er1
! 42396: cat conftest.err >&5
! 42397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 42398: (exit $ac_status); } && {
! 42399: test -z "$ac_c_werror_flag" ||
! 42400: test ! -s conftest.err
! 42401: } && test -s conftest$ac_exeext &&
! 42402: $as_test_x conftest$ac_exeext; then
1.1 misho 42403:
1.1.1.3 ! misho 42404: cat >conftest.$ac_ext <<_ACEOF
! 42405: /* confdefs.h. */
! 42406: _ACEOF
! 42407: cat confdefs.h >>conftest.$ac_ext
! 42408: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42409: /* end confdefs.h. */
42410:
42411: #include "$THIS_INCLUDE"
42412: #if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5)
42413: yes
42414: #endif
42415:
42416: _ACEOF
42417: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 42418: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 42419:
42420: THIS_LIBS=$LIB
42421: lib_found=1
42422:
42423: fi
1.1.1.3 ! misho 42424: rm -f -r conftest*
! 42425:
! 42426:
! 42427: else
! 42428: echo "$as_me: failed program was:" >&5
! 42429: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 42430:
42431:
42432: fi
1.1.1.3 ! misho 42433:
! 42434: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 42435: conftest$ac_exeext conftest.$ac_ext
1.1 misho 42436:
42437: LDFLAGS=$old_LDFLAGS
42438: LIBS=$old_LIBS
42439:
42440: if test -n "$lib_found"; then
42441: lib_found="";
42442: break;
42443: fi
42444: fi
42445: done
42446: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 42447: { echo "$as_me:$LINENO: checking for DB4 major version" >&5
! 42448: echo $ECHO_N "checking for DB4 major version... $ECHO_C" >&6; }
! 42449: { { echo "$as_me:$LINENO: error: Header contains different version" >&5
! 42450: echo "$as_me: error: Header contains different version" >&2;}
! 42451: { (exit 1); exit 1; }; }
1.1 misho 42452: fi
42453: if test "4" = "4"; then
1.1.1.3 ! misho 42454: { echo "$as_me:$LINENO: checking for DB4 minor version and patch level" >&5
! 42455: echo $ECHO_N "checking for DB4 minor version and patch level... $ECHO_C" >&6; }
! 42456: cat >conftest.$ac_ext <<_ACEOF
! 42457: /* confdefs.h. */
! 42458: _ACEOF
! 42459: cat confdefs.h >>conftest.$ac_ext
! 42460: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42461: /* end confdefs.h. */
42462:
42463: #include "$THIS_INCLUDE"
42464: #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
42465: yes
42466: #endif
42467:
42468: _ACEOF
42469: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 42470: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 42471:
1.1.1.3 ! misho 42472: { echo "$as_me:$LINENO: result: ok" >&5
! 42473: echo "${ECHO_T}ok" >&6; }
1.1 misho 42474:
42475: else
42476:
1.1.1.3 ! misho 42477: { { echo "$as_me:$LINENO: error: Version 4.1 requires patch level 25" >&5
! 42478: echo "$as_me: error: Version 4.1 requires patch level 25" >&2;}
! 42479: { (exit 1); exit 1; }; }
1.1 misho 42480:
42481: fi
1.1.1.3 ! misho 42482: rm -f -r conftest*
1.1 misho 42483:
42484: fi
42485: if test "$ext_shared" = "yes"; then
1.1.1.3 ! misho 42486: { echo "$as_me:$LINENO: checking if dba can be used as shared extension" >&5
! 42487: echo $ECHO_N "checking if dba can be used as shared extension... $ECHO_C" >&6; }
! 42488: cat >conftest.$ac_ext <<_ACEOF
! 42489: /* confdefs.h. */
! 42490: _ACEOF
! 42491: cat confdefs.h >>conftest.$ac_ext
! 42492: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42493: /* end confdefs.h. */
42494:
42495: #include "$THIS_INCLUDE"
42496: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
42497: yes
42498: #endif
42499:
42500: _ACEOF
42501: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 42502: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 42503:
1.1.1.3 ! misho 42504: { echo "$as_me:$LINENO: result: yes" >&5
! 42505: echo "${ECHO_T}yes" >&6; }
1.1 misho 42506:
42507: else
42508:
1.1.1.3 ! misho 42509: { { echo "$as_me:$LINENO: error: At least version 3.3 is required" >&5
! 42510: echo "$as_me: error: At least version 3.3 is required" >&2;}
! 42511: { (exit 1); exit 1; }; }
1.1 misho 42512:
42513: fi
1.1.1.3 ! misho 42514: rm -f -r conftest*
1.1 misho 42515:
42516: fi
42517: if test -n "$THIS_LIBS"; then
42518:
1.1.1.3 ! misho 42519: cat >>confdefs.h <<\_ACEOF
! 42520: #define DBA_DB4 1
! 42521: _ACEOF
1.1 misho 42522:
42523: if test -n "$THIS_INCLUDE"; then
42524:
42525: cat >>confdefs.h <<_ACEOF
42526: #define DB4_INCLUDE_FILE "$THIS_INCLUDE"
42527: _ACEOF
42528:
42529: fi
42530: else
1.1.1.3 ! misho 42531: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 42532: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 42533: { (exit 1); exit 1; }; }
1.1 misho 42534: fi
42535: THIS_RESULT=yes
42536: DB4_LIBS=$THIS_LIBS
42537: DB4_PREFIX=$THIS_PREFIX
42538: DB4_INCLUDE=$THIS_INCLUDE
42539:
42540: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
42541: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
42542: fi
42543:
42544:
42545:
42546:
42547: if test "$ext_shared" = "yes"; then
42548: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
42549: if test -n "$THIS_LFLAGS"; then
42550:
42551: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42552:
42553: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42554: ai_p=$THIS_LFLAGS
42555: else
42556:
42557: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42558:
42559: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42560: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42561: fi
42562:
42563:
42564: if test "$ext_shared" = "yes"; then
42565: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
42566: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
42567: else
42568:
42569:
42570:
42571: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42572:
42573: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42574: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42575: eval "LIBPATH$unique=set"
42576:
42577: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42578: LDFLAGS="$LDFLAGS -L$ai_p"
42579: PHP_RPATHS="$PHP_RPATHS $ai_p"
42580:
42581: fi
42582:
42583:
42584: fi
42585:
42586: fi
42587:
42588: fi
42589: else
42590:
42591:
42592: if test -n "$THIS_LFLAGS"; then
42593:
42594: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42595:
42596: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42597: ai_p=$THIS_LFLAGS
42598: else
42599:
42600: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42601:
42602: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42603: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42604: fi
42605:
42606:
42607:
42608:
42609:
42610: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42611:
42612: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42613: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42614: eval "LIBPATH$unique=set"
42615:
42616: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42617: LDFLAGS="$LDFLAGS -L$ai_p"
42618: PHP_RPATHS="$PHP_RPATHS $ai_p"
42619:
42620: fi
42621:
42622:
42623:
42624: fi
42625:
42626: fi
42627:
42628:
42629: case $THIS_LIBS in
42630: c|c_r|pthread*) ;;
42631: *)
42632: LIBS="-l$THIS_LIBS $LIBS"
42633: ;;
42634: esac
42635:
42636:
42637:
42638:
42639: fi
42640:
42641:
42642: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
42643:
42644:
42645: fi
42646:
42647: THIS_NAME=DB4
42648: if test -n "Berkeley DB4"; then
42649: THIS_FULL_NAME="Berkeley DB4"
42650: else
42651: THIS_FULL_NAME="$THIS_NAME"
42652: fi
1.1.1.3 ! misho 42653: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 42654: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 42655: if test -n ""; then
1.1.1.3 ! misho 42656: { { echo "$as_me:$LINENO: error: " >&5
! 42657: echo "$as_me: error: " >&2;}
! 42658: { (exit 1); exit 1; }; }
1.1 misho 42659: fi
42660: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
42661: HAVE_DBA=1
42662: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 42663: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 42664: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 42665: else
1.1.1.3 ! misho 42666: { echo "$as_me:$LINENO: result: no" >&5
! 42667: echo "${ECHO_T}no" >&6; }
1.1 misho 42668: fi
42669: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
42670:
42671:
42672: # DB3
42673: if test "$PHP_DB3" != "no"; then
42674:
42675: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
42676:
42677: if test "$HAVE_DB4" = "1"; then
42678:
42679: THIS_NAME=DB3
42680: if test -n "Berkeley DB3"; then
42681: THIS_FULL_NAME="Berkeley DB3"
42682: else
42683: THIS_FULL_NAME="$THIS_NAME"
42684: fi
1.1.1.3 ! misho 42685: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 42686: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 42687: if test -n "You cannot combine --with-db3 with --with-db4"; then
1.1.1.3 ! misho 42688: { { echo "$as_me:$LINENO: error: You cannot combine --with-db3 with --with-db4" >&5
! 42689: echo "$as_me: error: You cannot combine --with-db3 with --with-db4" >&2;}
! 42690: { (exit 1); exit 1; }; }
1.1 misho 42691: fi
42692: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
42693: HAVE_DBA=1
42694: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 42695: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 42696: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 42697: else
1.1.1.3 ! misho 42698: { echo "$as_me:$LINENO: result: no" >&5
! 42699: echo "${ECHO_T}no" >&6; }
1.1 misho 42700: fi
42701: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
42702:
42703: fi
42704: for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do
42705: if test -f "$i/db3/db.h"; then
42706: THIS_PREFIX=$i
42707: THIS_INCLUDE=$i/include/db3/db.h
42708: break
42709: elif test -f "$i/include/db3/db.h"; then
42710: THIS_PREFIX=$i
42711: THIS_INCLUDE=$i/include/db3/db.h
42712: break
42713: elif test -f "$i/include/db/db3.h"; then
42714: THIS_PREFIX=$i
42715: THIS_INCLUDE=$i/include/db/db3.h
42716: break
42717: elif test -f "$i/include/db3.h"; then
42718: THIS_PREFIX=$i
42719: THIS_INCLUDE=$i/include/db3.h
42720: break
42721: elif test -f "$i/include/db.h"; then
42722: THIS_PREFIX=$i
42723: THIS_INCLUDE=$i/include/db.h
42724: break
42725: fi
42726: done
42727:
42728: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 42729: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 42730: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 42731: { (exit 1); exit 1; }; }
1.1 misho 42732: fi
42733: for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do
42734: if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
42735: lib_found="";
42736:
42737: old_LDFLAGS=$LDFLAGS
42738: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
42739: old_LIBS=$LIBS
42740: LIBS="-l$LIB $LIBS"
42741:
1.1.1.3 ! misho 42742: cat >conftest.$ac_ext <<_ACEOF
! 42743: /* confdefs.h. */
! 42744: _ACEOF
! 42745: cat confdefs.h >>conftest.$ac_ext
! 42746: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42747: /* end confdefs.h. */
42748:
42749: #include "$THIS_INCLUDE"
42750:
42751: int
42752: main ()
42753: {
42754:
42755: (void)db_create((DB**)0, (DB_ENV*)0, 0);
42756:
42757: ;
42758: return 0;
42759: }
42760: _ACEOF
1.1.1.3 ! misho 42761: rm -f conftest.$ac_objext conftest$ac_exeext
! 42762: if { (ac_try="$ac_link"
! 42763: case "(($ac_try" in
! 42764: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 42765: *) ac_try_echo=$ac_try;;
! 42766: esac
! 42767: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 42768: (eval "$ac_link") 2>conftest.er1
! 42769: ac_status=$?
! 42770: grep -v '^ *+' conftest.er1 >conftest.err
! 42771: rm -f conftest.er1
! 42772: cat conftest.err >&5
! 42773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 42774: (exit $ac_status); } && {
! 42775: test -z "$ac_c_werror_flag" ||
! 42776: test ! -s conftest.err
! 42777: } && test -s conftest$ac_exeext &&
! 42778: $as_test_x conftest$ac_exeext; then
1.1 misho 42779:
1.1.1.3 ! misho 42780: cat >conftest.$ac_ext <<_ACEOF
! 42781: /* confdefs.h. */
! 42782: _ACEOF
! 42783: cat confdefs.h >>conftest.$ac_ext
! 42784: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42785: /* end confdefs.h. */
42786:
42787: #include "$THIS_INCLUDE"
42788: #if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5)
42789: yes
42790: #endif
42791:
42792: _ACEOF
42793: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 42794: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 42795:
42796: THIS_LIBS=$LIB
42797: lib_found=1
42798:
42799: fi
1.1.1.3 ! misho 42800: rm -f -r conftest*
! 42801:
! 42802:
! 42803: else
! 42804: echo "$as_me: failed program was:" >&5
! 42805: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 42806:
42807:
42808: fi
1.1.1.3 ! misho 42809:
! 42810: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 42811: conftest$ac_exeext conftest.$ac_ext
1.1 misho 42812:
42813: LDFLAGS=$old_LDFLAGS
42814: LIBS=$old_LIBS
42815:
42816: if test -n "$lib_found"; then
42817: lib_found="";
42818: break;
42819: fi
42820: fi
42821: done
42822: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 42823: { echo "$as_me:$LINENO: checking for DB3 major version" >&5
! 42824: echo $ECHO_N "checking for DB3 major version... $ECHO_C" >&6; }
! 42825: { { echo "$as_me:$LINENO: error: Header contains different version" >&5
! 42826: echo "$as_me: error: Header contains different version" >&2;}
! 42827: { (exit 1); exit 1; }; }
1.1 misho 42828: fi
42829: if test "3" = "4"; then
1.1.1.3 ! misho 42830: { echo "$as_me:$LINENO: checking for DB4 minor version and patch level" >&5
! 42831: echo $ECHO_N "checking for DB4 minor version and patch level... $ECHO_C" >&6; }
! 42832: cat >conftest.$ac_ext <<_ACEOF
! 42833: /* confdefs.h. */
! 42834: _ACEOF
! 42835: cat confdefs.h >>conftest.$ac_ext
! 42836: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42837: /* end confdefs.h. */
42838:
42839: #include "$THIS_INCLUDE"
42840: #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
42841: yes
42842: #endif
42843:
42844: _ACEOF
42845: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 42846: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 42847:
1.1.1.3 ! misho 42848: { echo "$as_me:$LINENO: result: ok" >&5
! 42849: echo "${ECHO_T}ok" >&6; }
1.1 misho 42850:
42851: else
42852:
1.1.1.3 ! misho 42853: { { echo "$as_me:$LINENO: error: Version 4.1 requires patch level 25" >&5
! 42854: echo "$as_me: error: Version 4.1 requires patch level 25" >&2;}
! 42855: { (exit 1); exit 1; }; }
1.1 misho 42856:
42857: fi
1.1.1.3 ! misho 42858: rm -f -r conftest*
1.1 misho 42859:
42860: fi
42861: if test "$ext_shared" = "yes"; then
1.1.1.3 ! misho 42862: { echo "$as_me:$LINENO: checking if dba can be used as shared extension" >&5
! 42863: echo $ECHO_N "checking if dba can be used as shared extension... $ECHO_C" >&6; }
! 42864: cat >conftest.$ac_ext <<_ACEOF
! 42865: /* confdefs.h. */
! 42866: _ACEOF
! 42867: cat confdefs.h >>conftest.$ac_ext
! 42868: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 42869: /* end confdefs.h. */
42870:
42871: #include "$THIS_INCLUDE"
42872: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
42873: yes
42874: #endif
42875:
42876: _ACEOF
42877: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 42878: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 42879:
1.1.1.3 ! misho 42880: { echo "$as_me:$LINENO: result: yes" >&5
! 42881: echo "${ECHO_T}yes" >&6; }
1.1 misho 42882:
42883: else
42884:
1.1.1.3 ! misho 42885: { { echo "$as_me:$LINENO: error: At least version 3.3 is required" >&5
! 42886: echo "$as_me: error: At least version 3.3 is required" >&2;}
! 42887: { (exit 1); exit 1; }; }
1.1 misho 42888:
42889: fi
1.1.1.3 ! misho 42890: rm -f -r conftest*
1.1 misho 42891:
42892: fi
42893: if test -n "$THIS_LIBS"; then
42894:
1.1.1.3 ! misho 42895: cat >>confdefs.h <<\_ACEOF
! 42896: #define DBA_DB3 1
! 42897: _ACEOF
1.1 misho 42898:
42899: if test -n "$THIS_INCLUDE"; then
42900:
42901: cat >>confdefs.h <<_ACEOF
42902: #define DB3_INCLUDE_FILE "$THIS_INCLUDE"
42903: _ACEOF
42904:
42905: fi
42906: else
1.1.1.3 ! misho 42907: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 42908: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 42909: { (exit 1); exit 1; }; }
1.1 misho 42910: fi
42911: THIS_RESULT=yes
42912: DB3_LIBS=$THIS_LIBS
42913: DB3_PREFIX=$THIS_PREFIX
42914: DB3_INCLUDE=$THIS_INCLUDE
42915:
42916: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
42917: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
42918: fi
42919:
42920:
42921:
42922:
42923: if test "$ext_shared" = "yes"; then
42924: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
42925: if test -n "$THIS_LFLAGS"; then
42926:
42927: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42928:
42929: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42930: ai_p=$THIS_LFLAGS
42931: else
42932:
42933: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42934:
42935: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42936: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42937: fi
42938:
42939:
42940: if test "$ext_shared" = "yes"; then
42941: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
42942: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
42943: else
42944:
42945:
42946:
42947: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42948:
42949: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42950: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42951: eval "LIBPATH$unique=set"
42952:
42953: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42954: LDFLAGS="$LDFLAGS -L$ai_p"
42955: PHP_RPATHS="$PHP_RPATHS $ai_p"
42956:
42957: fi
42958:
42959:
42960: fi
42961:
42962: fi
42963:
42964: fi
42965: else
42966:
42967:
42968: if test -n "$THIS_LFLAGS"; then
42969:
42970: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42971:
42972: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42973: ai_p=$THIS_LFLAGS
42974: else
42975:
42976: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42977:
42978: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42979: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42980: fi
42981:
42982:
42983:
42984:
42985:
42986: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42987:
42988: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42989: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42990: eval "LIBPATH$unique=set"
42991:
42992: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42993: LDFLAGS="$LDFLAGS -L$ai_p"
42994: PHP_RPATHS="$PHP_RPATHS $ai_p"
42995:
42996: fi
42997:
42998:
42999:
43000: fi
43001:
43002: fi
43003:
43004:
43005: case $THIS_LIBS in
43006: c|c_r|pthread*) ;;
43007: *)
43008: LIBS="-l$THIS_LIBS $LIBS"
43009: ;;
43010: esac
43011:
43012:
43013:
43014:
43015: fi
43016:
43017:
43018: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
43019:
43020:
43021: fi
43022:
43023: THIS_NAME=DB3
43024: if test -n "Berkeley DB3"; then
43025: THIS_FULL_NAME="Berkeley DB3"
43026: else
43027: THIS_FULL_NAME="$THIS_NAME"
43028: fi
1.1.1.3 ! misho 43029: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 43030: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 43031: if test -n ""; then
1.1.1.3 ! misho 43032: { { echo "$as_me:$LINENO: error: " >&5
! 43033: echo "$as_me: error: " >&2;}
! 43034: { (exit 1); exit 1; }; }
1.1 misho 43035: fi
43036: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43037: HAVE_DBA=1
43038: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 43039: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 43040: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 43041: else
1.1.1.3 ! misho 43042: { echo "$as_me:$LINENO: result: no" >&5
! 43043: echo "${ECHO_T}no" >&6; }
1.1 misho 43044: fi
43045: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43046:
43047:
43048: # DB2
43049: if test "$PHP_DB2" != "no"; then
43050:
43051: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
43052:
43053: if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then
43054:
43055: THIS_NAME=DB2
43056: if test -n "Berkeley DB2"; then
43057: THIS_FULL_NAME="Berkeley DB2"
43058: else
43059: THIS_FULL_NAME="$THIS_NAME"
43060: fi
1.1.1.3 ! misho 43061: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 43062: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 43063: if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then
1.1.1.3 ! misho 43064: { { echo "$as_me:$LINENO: error: You cannot combine --with-db2 with --with-db3 or --with-db4" >&5
! 43065: echo "$as_me: error: You cannot combine --with-db2 with --with-db3 or --with-db4" >&2;}
! 43066: { (exit 1); exit 1; }; }
1.1 misho 43067: fi
43068: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43069: HAVE_DBA=1
43070: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 43071: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 43072: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 43073: else
1.1.1.3 ! misho 43074: { echo "$as_me:$LINENO: result: no" >&5
! 43075: echo "${ECHO_T}no" >&6; }
1.1 misho 43076: fi
43077: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43078:
43079: fi
43080: for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do
43081: if test -f "$i/db2/db.h"; then
43082: THIS_PREFIX=$i
43083: THIS_INCLUDE=$i/db2/db.h
43084: break
43085: elif test -f "$i/include/db2/db.h"; then
43086: THIS_PREFIX=$i
43087: THIS_INCLUDE=$i/include/db2/db.h
43088: break
43089: elif test -f "$i/include/db/db2.h"; then
43090: THIS_PREFIX=$i
43091: THIS_INCLUDE=$i/include/db/db2.h
43092: break
43093: elif test -f "$i/include/db2.h"; then
43094: THIS_PREFIX=$i
43095: THIS_INCLUDE=$i/include/db2.h
43096: break
43097: elif test -f "$i/include/db.h"; then
43098: THIS_PREFIX=$i
43099: THIS_INCLUDE=$i/include/db.h
43100: break
43101: fi
43102: done
43103:
43104: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 43105: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 43106: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 43107: { (exit 1); exit 1; }; }
1.1 misho 43108: fi
43109: for LIB in db-2 db2 db; do
43110: if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
43111: lib_found="";
43112:
43113: old_LDFLAGS=$LDFLAGS
43114: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
43115: old_LIBS=$LIBS
43116: LIBS="-l$LIB $LIBS"
43117:
1.1.1.3 ! misho 43118: cat >conftest.$ac_ext <<_ACEOF
! 43119: /* confdefs.h. */
! 43120: _ACEOF
! 43121: cat confdefs.h >>conftest.$ac_ext
! 43122: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 43123: /* end confdefs.h. */
43124:
43125: #include "$THIS_INCLUDE"
43126:
43127: int
43128: main ()
43129: {
43130:
43131: (void)db_appinit("", NULL, (DB_ENV*)0, 0);
43132:
43133: ;
43134: return 0;
43135: }
43136: _ACEOF
1.1.1.3 ! misho 43137: rm -f conftest.$ac_objext conftest$ac_exeext
! 43138: if { (ac_try="$ac_link"
! 43139: case "(($ac_try" in
! 43140: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 43141: *) ac_try_echo=$ac_try;;
! 43142: esac
! 43143: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 43144: (eval "$ac_link") 2>conftest.er1
! 43145: ac_status=$?
! 43146: grep -v '^ *+' conftest.er1 >conftest.err
! 43147: rm -f conftest.er1
! 43148: cat conftest.err >&5
! 43149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 43150: (exit $ac_status); } && {
! 43151: test -z "$ac_c_werror_flag" ||
! 43152: test ! -s conftest.err
! 43153: } && test -s conftest$ac_exeext &&
! 43154: $as_test_x conftest$ac_exeext; then
1.1 misho 43155:
1.1.1.3 ! misho 43156: cat >conftest.$ac_ext <<_ACEOF
! 43157: /* confdefs.h. */
! 43158: _ACEOF
! 43159: cat confdefs.h >>conftest.$ac_ext
! 43160: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 43161: /* end confdefs.h. */
43162:
43163: #include "$THIS_INCLUDE"
43164: #if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5)
43165: yes
43166: #endif
43167:
43168: _ACEOF
43169: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 43170: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 43171:
43172: THIS_LIBS=$LIB
43173: lib_found=1
43174:
43175: fi
1.1.1.3 ! misho 43176: rm -f -r conftest*
! 43177:
! 43178:
! 43179: else
! 43180: echo "$as_me: failed program was:" >&5
! 43181: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 43182:
43183:
43184: fi
1.1.1.3 ! misho 43185:
! 43186: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 43187: conftest$ac_exeext conftest.$ac_ext
1.1 misho 43188:
43189: LDFLAGS=$old_LDFLAGS
43190: LIBS=$old_LIBS
43191:
43192: if test -n "$lib_found"; then
43193: lib_found="";
43194: break;
43195: fi
43196: fi
43197: done
43198: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 43199: { echo "$as_me:$LINENO: checking for DB2 major version" >&5
! 43200: echo $ECHO_N "checking for DB2 major version... $ECHO_C" >&6; }
! 43201: { { echo "$as_me:$LINENO: error: Header contains different version" >&5
! 43202: echo "$as_me: error: Header contains different version" >&2;}
! 43203: { (exit 1); exit 1; }; }
1.1 misho 43204: fi
43205: if test "2" = "4"; then
1.1.1.3 ! misho 43206: { echo "$as_me:$LINENO: checking for DB4 minor version and patch level" >&5
! 43207: echo $ECHO_N "checking for DB4 minor version and patch level... $ECHO_C" >&6; }
! 43208: cat >conftest.$ac_ext <<_ACEOF
! 43209: /* confdefs.h. */
! 43210: _ACEOF
! 43211: cat confdefs.h >>conftest.$ac_ext
! 43212: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 43213: /* end confdefs.h. */
43214:
43215: #include "$THIS_INCLUDE"
43216: #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
43217: yes
43218: #endif
43219:
43220: _ACEOF
43221: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 43222: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 43223:
1.1.1.3 ! misho 43224: { echo "$as_me:$LINENO: result: ok" >&5
! 43225: echo "${ECHO_T}ok" >&6; }
1.1 misho 43226:
43227: else
43228:
1.1.1.3 ! misho 43229: { { echo "$as_me:$LINENO: error: Version 4.1 requires patch level 25" >&5
! 43230: echo "$as_me: error: Version 4.1 requires patch level 25" >&2;}
! 43231: { (exit 1); exit 1; }; }
1.1 misho 43232:
43233: fi
1.1.1.3 ! misho 43234: rm -f -r conftest*
1.1 misho 43235:
43236: fi
43237: if test "$ext_shared" = "yes"; then
1.1.1.3 ! misho 43238: { echo "$as_me:$LINENO: checking if dba can be used as shared extension" >&5
! 43239: echo $ECHO_N "checking if dba can be used as shared extension... $ECHO_C" >&6; }
! 43240: cat >conftest.$ac_ext <<_ACEOF
! 43241: /* confdefs.h. */
! 43242: _ACEOF
! 43243: cat confdefs.h >>conftest.$ac_ext
! 43244: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 43245: /* end confdefs.h. */
43246:
43247: #include "$THIS_INCLUDE"
43248: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
43249: yes
43250: #endif
43251:
43252: _ACEOF
43253: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 43254: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 43255:
1.1.1.3 ! misho 43256: { echo "$as_me:$LINENO: result: yes" >&5
! 43257: echo "${ECHO_T}yes" >&6; }
1.1 misho 43258:
43259: else
43260:
1.1.1.3 ! misho 43261: { { echo "$as_me:$LINENO: error: At least version 3.3 is required" >&5
! 43262: echo "$as_me: error: At least version 3.3 is required" >&2;}
! 43263: { (exit 1); exit 1; }; }
1.1 misho 43264:
43265: fi
1.1.1.3 ! misho 43266: rm -f -r conftest*
1.1 misho 43267:
43268: fi
43269: if test -n "$THIS_LIBS"; then
43270:
1.1.1.3 ! misho 43271: cat >>confdefs.h <<\_ACEOF
! 43272: #define DBA_DB2 1
! 43273: _ACEOF
1.1 misho 43274:
43275: if test -n "$THIS_INCLUDE"; then
43276:
43277: cat >>confdefs.h <<_ACEOF
43278: #define DB2_INCLUDE_FILE "$THIS_INCLUDE"
43279: _ACEOF
43280:
43281: fi
43282: else
1.1.1.3 ! misho 43283: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 43284: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 43285: { (exit 1); exit 1; }; }
1.1 misho 43286: fi
43287: THIS_RESULT=yes
43288: DB2_LIBS=$THIS_LIBS
43289: DB2_PREFIX=$THIS_PREFIX
43290: DB2_INCLUDE=$THIS_INCLUDE
43291:
43292: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
43293: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
43294: fi
43295:
43296:
43297:
43298:
43299: if test "$ext_shared" = "yes"; then
43300: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
43301: if test -n "$THIS_LFLAGS"; then
43302:
43303: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43304:
43305: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43306: ai_p=$THIS_LFLAGS
43307: else
43308:
43309: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43310:
43311: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43312: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43313: fi
43314:
43315:
43316: if test "$ext_shared" = "yes"; then
43317: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
43318: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
43319: else
43320:
43321:
43322:
43323: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43324:
43325: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43326: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43327: eval "LIBPATH$unique=set"
43328:
43329: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43330: LDFLAGS="$LDFLAGS -L$ai_p"
43331: PHP_RPATHS="$PHP_RPATHS $ai_p"
43332:
43333: fi
43334:
43335:
43336: fi
43337:
43338: fi
43339:
43340: fi
43341: else
43342:
43343:
43344: if test -n "$THIS_LFLAGS"; then
43345:
43346: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43347:
43348: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43349: ai_p=$THIS_LFLAGS
43350: else
43351:
43352: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43353:
43354: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43355: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43356: fi
43357:
43358:
43359:
43360:
43361:
43362: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43363:
43364: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43365: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43366: eval "LIBPATH$unique=set"
43367:
43368: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43369: LDFLAGS="$LDFLAGS -L$ai_p"
43370: PHP_RPATHS="$PHP_RPATHS $ai_p"
43371:
43372: fi
43373:
43374:
43375:
43376: fi
43377:
43378: fi
43379:
43380:
43381: case $THIS_LIBS in
43382: c|c_r|pthread*) ;;
43383: *)
43384: LIBS="-l$THIS_LIBS $LIBS"
43385: ;;
43386: esac
43387:
43388:
43389:
43390:
43391: fi
43392:
43393:
43394: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
43395:
43396:
43397: fi
43398:
43399: THIS_NAME=DB2
43400: if test -n "Berkeley DB2"; then
43401: THIS_FULL_NAME="Berkeley DB2"
43402: else
43403: THIS_FULL_NAME="$THIS_NAME"
43404: fi
1.1.1.3 ! misho 43405: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 43406: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 43407: if test -n ""; then
1.1.1.3 ! misho 43408: { { echo "$as_me:$LINENO: error: " >&5
! 43409: echo "$as_me: error: " >&2;}
! 43410: { (exit 1); exit 1; }; }
1.1 misho 43411: fi
43412: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43413: HAVE_DBA=1
43414: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 43415: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 43416: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 43417: else
1.1.1.3 ! misho 43418: { echo "$as_me:$LINENO: result: no" >&5
! 43419: echo "${ECHO_T}no" >&6; }
1.1 misho 43420: fi
43421: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43422:
43423:
43424: # DB1
43425: if test "$PHP_DB1" != "no"; then
43426:
43427: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
43428:
1.1.1.3 ! misho 43429: { echo "$as_me:$LINENO: checking for DB1 in library" >&5
! 43430: echo $ECHO_N "checking for DB1 in library... $ECHO_C" >&6; }
1.1 misho 43431: if test "$HAVE_DB4" = "1"; then
43432: THIS_VERSION=4
43433: THIS_LIBS=$DB4_LIBS
43434: THIS_PREFIX=$DB4_PREFIX
43435: elif test "$HAVE_DB3" = "1"; then
43436: THIS_LIBS=$DB3_LIBS
43437: THIS_PREFIX=$DB3_PREFIX
43438: elif test "$HAVE_DB2" = "1"; then
43439: THIS_VERSION=2
43440: THIS_LIBS=$DB2_LIBS
43441: THIS_PREFIX=$DB2_PREFIX
43442: fi
43443: if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then
43444:
43445: cat >>confdefs.h <<_ACEOF
43446: #define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION"
43447: _ACEOF
43448:
43449: for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do
43450: if test -f "$THIS_PREFIX/$i"; then
43451: THIS_INCLUDE=$THIS_PREFIX/$i
43452: break
43453: fi
43454: done
43455: else
43456:
43457: cat >>confdefs.h <<_ACEOF
43458: #define DB1_VERSION "Unknown DB1"
43459: _ACEOF
43460:
43461: for i in $PHP_DB1 /usr/local /usr; do
43462: if test -f "$i/db1/db.h"; then
43463: THIS_PREFIX=$i
43464: THIS_INCLUDE=$i/db1/db.h
43465: break
43466: elif test -f "$i/include/db1/db.h"; then
43467: THIS_PREFIX=$i
43468: THIS_INCLUDE=$i/include/db1/db.h
43469: break
43470: elif test -f "$i/include/db.h"; then
43471: THIS_PREFIX=$i
43472: THIS_INCLUDE=$i/include/db.h
43473: break
43474: fi
43475: done
43476: THIS_LIBS=db
43477: fi
1.1.1.3 ! misho 43478: { echo "$as_me:$LINENO: result: $THIS_LIBS" >&5
! 43479: echo "${ECHO_T}$THIS_LIBS" >&6; }
! 43480: { echo "$as_me:$LINENO: checking for DB1 in header" >&5
! 43481: echo $ECHO_N "checking for DB1 in header... $ECHO_C" >&6; }
! 43482: { echo "$as_me:$LINENO: result: $THIS_INCLUDE" >&5
! 43483: echo "${ECHO_T}$THIS_INCLUDE" >&6; }
1.1 misho 43484: if test -n "$THIS_INCLUDE"; then
43485:
43486: old_LDFLAGS=$LDFLAGS
43487: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
43488: old_LIBS=$LIBS
43489: LIBS="-l$THIS_LIBS $LIBS"
43490:
1.1.1.3 ! misho 43491: cat >conftest.$ac_ext <<_ACEOF
! 43492: /* confdefs.h. */
! 43493: _ACEOF
! 43494: cat confdefs.h >>conftest.$ac_ext
! 43495: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 43496: /* end confdefs.h. */
43497:
43498: #include "$THIS_INCLUDE"
43499:
43500: int
43501: main ()
43502: {
43503:
43504: DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
43505:
43506: ;
43507: return 0;
43508: }
43509: _ACEOF
1.1.1.3 ! misho 43510: rm -f conftest.$ac_objext conftest$ac_exeext
! 43511: if { (ac_try="$ac_link"
! 43512: case "(($ac_try" in
! 43513: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 43514: *) ac_try_echo=$ac_try;;
! 43515: esac
! 43516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 43517: (eval "$ac_link") 2>conftest.er1
! 43518: ac_status=$?
! 43519: grep -v '^ *+' conftest.er1 >conftest.err
! 43520: rm -f conftest.er1
! 43521: cat conftest.err >&5
! 43522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 43523: (exit $ac_status); } && {
! 43524: test -z "$ac_c_werror_flag" ||
! 43525: test ! -s conftest.err
! 43526: } && test -s conftest$ac_exeext &&
! 43527: $as_test_x conftest$ac_exeext; then
1.1 misho 43528:
43529:
43530: cat >>confdefs.h <<_ACEOF
43531: #define DB1_INCLUDE_FILE "$THIS_INCLUDE"
43532: _ACEOF
43533:
43534:
1.1.1.3 ! misho 43535: cat >>confdefs.h <<\_ACEOF
! 43536: #define DBA_DB1 1
! 43537: _ACEOF
1.1 misho 43538:
43539: THIS_RESULT=yes
43540:
43541: else
1.1.1.3 ! misho 43542: echo "$as_me: failed program was:" >&5
! 43543: sed 's/^/| /' conftest.$ac_ext >&5
! 43544:
1.1 misho 43545:
43546: THIS_RESULT=no
43547:
43548: fi
1.1.1.3 ! misho 43549:
! 43550: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 43551: conftest$ac_exeext conftest.$ac_ext
1.1 misho 43552:
43553: LDFLAGS=$old_LDFLAGS
43554: LIBS=$old_LIBS
43555:
43556: fi
43557:
43558: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
43559: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
43560: fi
43561:
43562:
43563: THIS_RESULT=yes
43564: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 43565: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 43566: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 43567: { (exit 1); exit 1; }; }
1.1 misho 43568: fi
43569: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 43570: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 43571: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 43572: { (exit 1); exit 1; }; }
1.1 misho 43573: fi
43574:
43575:
43576:
43577:
43578: if test "$ext_shared" = "yes"; then
43579: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
43580: if test -n "$THIS_LFLAGS"; then
43581:
43582: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43583:
43584: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43585: ai_p=$THIS_LFLAGS
43586: else
43587:
43588: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43589:
43590: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43591: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43592: fi
43593:
43594:
43595: if test "$ext_shared" = "yes"; then
43596: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
43597: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
43598: else
43599:
43600:
43601:
43602: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43603:
43604: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43605: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43606: eval "LIBPATH$unique=set"
43607:
43608: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43609: LDFLAGS="$LDFLAGS -L$ai_p"
43610: PHP_RPATHS="$PHP_RPATHS $ai_p"
43611:
43612: fi
43613:
43614:
43615: fi
43616:
43617: fi
43618:
43619: fi
43620: else
43621:
43622:
43623: if test -n "$THIS_LFLAGS"; then
43624:
43625: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43626:
43627: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43628: ai_p=$THIS_LFLAGS
43629: else
43630:
43631: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43632:
43633: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43634: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43635: fi
43636:
43637:
43638:
43639:
43640:
43641: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43642:
43643: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43644: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43645: eval "LIBPATH$unique=set"
43646:
43647: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43648: LDFLAGS="$LDFLAGS -L$ai_p"
43649: PHP_RPATHS="$PHP_RPATHS $ai_p"
43650:
43651: fi
43652:
43653:
43654:
43655: fi
43656:
43657: fi
43658:
43659:
43660: case $THIS_LIBS in
43661: c|c_r|pthread*) ;;
43662: *)
43663: LIBS="-l$THIS_LIBS $LIBS"
43664: ;;
43665: esac
43666:
43667:
43668:
43669:
43670: fi
43671:
43672:
43673: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
43674:
43675: fi
43676:
43677: THIS_NAME=DB1
43678: if test -n "DB1"; then
43679: THIS_FULL_NAME="DB1"
43680: else
43681: THIS_FULL_NAME="$THIS_NAME"
43682: fi
1.1.1.3 ! misho 43683: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 43684: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 43685: if test -n ""; then
1.1.1.3 ! misho 43686: { { echo "$as_me:$LINENO: error: " >&5
! 43687: echo "$as_me: error: " >&2;}
! 43688: { (exit 1); exit 1; }; }
1.1 misho 43689: fi
43690: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43691: HAVE_DBA=1
43692: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 43693: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 43694: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 43695: else
1.1.1.3 ! misho 43696: { echo "$as_me:$LINENO: result: no" >&5
! 43697: echo "${ECHO_T}no" >&6; }
1.1 misho 43698: fi
43699: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43700:
43701:
43702: # DBM
43703: if test "$PHP_DBM" != "no"; then
43704:
43705: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
43706:
43707: if test "$HAVE_QDBM" = "1"; then
43708:
43709: THIS_NAME=DBM
43710: if test -n "dbm"; then
43711: THIS_FULL_NAME="dbm"
43712: else
43713: THIS_FULL_NAME="$THIS_NAME"
43714: fi
1.1.1.3 ! misho 43715: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 43716: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 43717: if test -n "You cannot combine --with-dbm with --with-qdbm"; then
1.1.1.3 ! misho 43718: { { echo "$as_me:$LINENO: error: You cannot combine --with-dbm with --with-qdbm" >&5
! 43719: echo "$as_me: error: You cannot combine --with-dbm with --with-qdbm" >&2;}
! 43720: { (exit 1); exit 1; }; }
1.1 misho 43721: fi
43722: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43723: HAVE_DBA=1
43724: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 43725: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 43726: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 43727: else
1.1.1.3 ! misho 43728: { echo "$as_me:$LINENO: result: no" >&5
! 43729: echo "${ECHO_T}no" >&6; }
1.1 misho 43730: fi
43731: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43732:
43733: fi
43734: for i in $PHP_DBM /usr/local /usr; do
43735: if test -f "$i/include/dbm.h"; then
43736: THIS_PREFIX=$i
43737: THIS_INCLUDE=$i/include/dbm.h
43738: break
43739: elif test -f "$i/include/gdbm/dbm.h"; then
43740: THIS_PREFIX=$i
43741: THIS_INCLUDE=$i/include/gdbm/dbm.h
43742: break
43743: fi
43744: done
43745:
43746: if test -n "$THIS_INCLUDE"; then
43747: for LIB in dbm c gdbm; do
43748:
43749: save_old_LDFLAGS=$LDFLAGS
43750: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
43751:
43752: save_ext_shared=$ext_shared
43753: ext_shared=yes
43754:
43755: for ac_i in $ac_stuff; do
43756: case $ac_i in
43757: -pthread)
43758: if test "$ext_shared" = "yes"; then
43759: LDFLAGS="$LDFLAGS -pthread"
43760: else
43761:
43762:
43763: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43764:
43765: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43766: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43767: eval "EXTRA_LDFLAGS$unique=set"
43768: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43769: fi
43770:
43771: fi
43772: ;;
43773: -l*)
43774: ac_ii=`echo $ac_i|cut -c 3-`
43775:
43776:
43777: case $ac_ii in
43778: c|c_r|pthread*) ;;
43779: *)
43780: if test "$ext_shared" = "yes"; then
43781: LDFLAGS="$LDFLAGS -l$ac_ii"
43782: else
43783:
43784:
43785: case $ac_ii in
43786: c|c_r|pthread*) ;;
43787: *)
43788: LIBS="$LIBS -l$ac_ii"
43789: ;;
43790: esac
43791:
43792:
43793: fi
43794: ;;
43795: esac
43796:
43797:
43798: ;;
43799: -L*)
43800: ac_ii=`echo $ac_i|cut -c 3-`
43801:
43802: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43803:
43804: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43805: ai_p=$ac_ii
43806: else
43807:
43808: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43809:
43810: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43811: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43812: fi
43813:
43814:
43815: if test "$ext_shared" = "yes"; then
43816: LDFLAGS="-L$ai_p $LDFLAGS"
43817: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43818: else
43819:
43820:
43821:
43822: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43823:
43824: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43825: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43826: eval "LIBPATH$unique=set"
43827:
43828: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43829: LDFLAGS="$LDFLAGS -L$ai_p"
43830: PHP_RPATHS="$PHP_RPATHS $ai_p"
43831:
43832: fi
43833:
43834:
43835: fi
43836:
43837: fi
43838:
43839: ;;
43840: esac
43841: done
43842:
1.1.1.3 ! misho 43843: as_ac_Lib=`echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh`
! 43844: { echo "$as_me:$LINENO: checking for dbminit in -l$LIB" >&5
! 43845: echo $ECHO_N "checking for dbminit in -l$LIB... $ECHO_C" >&6; }
! 43846: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 43847: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 43848: else
43849: ac_check_lib_save_LIBS=$LIBS
43850: LIBS="-l$LIB $LIBS"
1.1.1.3 ! misho 43851: cat >conftest.$ac_ext <<_ACEOF
! 43852: /* confdefs.h. */
! 43853: _ACEOF
! 43854: cat confdefs.h >>conftest.$ac_ext
! 43855: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 43856: /* end confdefs.h. */
43857:
43858: /* Override any GCC internal prototype to avoid an error.
43859: Use char because int might match the return type of a GCC
43860: builtin and then its argument prototype would still apply. */
43861: #ifdef __cplusplus
43862: extern "C"
43863: #endif
43864: char dbminit ();
43865: int
43866: main ()
43867: {
43868: return dbminit ();
43869: ;
43870: return 0;
43871: }
43872: _ACEOF
1.1.1.3 ! misho 43873: rm -f conftest.$ac_objext conftest$ac_exeext
! 43874: if { (ac_try="$ac_link"
! 43875: case "(($ac_try" in
! 43876: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 43877: *) ac_try_echo=$ac_try;;
! 43878: esac
! 43879: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 43880: (eval "$ac_link") 2>conftest.er1
! 43881: ac_status=$?
! 43882: grep -v '^ *+' conftest.er1 >conftest.err
! 43883: rm -f conftest.er1
! 43884: cat conftest.err >&5
! 43885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 43886: (exit $ac_status); } && {
! 43887: test -z "$ac_c_werror_flag" ||
! 43888: test ! -s conftest.err
! 43889: } && test -s conftest$ac_exeext &&
! 43890: $as_test_x conftest$ac_exeext; then
1.1 misho 43891: eval "$as_ac_Lib=yes"
43892: else
1.1.1.3 ! misho 43893: echo "$as_me: failed program was:" >&5
! 43894: sed 's/^/| /' conftest.$ac_ext >&5
! 43895:
! 43896: eval "$as_ac_Lib=no"
1.1 misho 43897: fi
1.1.1.3 ! misho 43898:
! 43899: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 43900: conftest$ac_exeext conftest.$ac_ext
1.1 misho 43901: LIBS=$ac_check_lib_save_LIBS
43902: fi
1.1.1.3 ! misho 43903: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 43904: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 43905: echo "${ECHO_T}$ac_res" >&6; }
! 43906: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 43907:
43908: LDFLAGS=$save_old_LDFLAGS
43909: ext_shared=$save_ext_shared
43910:
1.1.1.3 ! misho 43911: { echo "$as_me:$LINENO: checking for DBM using GDBM" >&5
! 43912: echo $ECHO_N "checking for DBM using GDBM... $ECHO_C" >&6; }
1.1 misho 43913:
43914: cat >>confdefs.h <<_ACEOF
43915: #define DBM_INCLUDE_FILE "$THIS_INCLUDE"
43916: _ACEOF
43917:
43918: if test "$LIB" = "gdbm"; then
43919:
43920: cat >>confdefs.h <<_ACEOF
43921: #define DBM_VERSION "GDBM"
43922: _ACEOF
43923:
1.1.1.3 ! misho 43924: { echo "$as_me:$LINENO: result: yes" >&5
! 43925: echo "${ECHO_T}yes" >&6; }
1.1 misho 43926: else
43927:
43928: cat >>confdefs.h <<_ACEOF
43929: #define DBM_VERSION "DBM"
43930: _ACEOF
43931:
1.1.1.3 ! misho 43932: { echo "$as_me:$LINENO: result: no" >&5
! 43933: echo "${ECHO_T}no" >&6; }
1.1 misho 43934: fi
43935:
1.1.1.3 ! misho 43936: cat >>confdefs.h <<\_ACEOF
! 43937: #define DBA_DBM 1
! 43938: _ACEOF
1.1 misho 43939:
43940: THIS_LIBS=$LIB
43941:
43942:
43943: else
43944:
43945: LDFLAGS=$save_old_LDFLAGS
43946: ext_shared=$save_ext_shared
43947: unset ac_cv_lib_$LIB_dbminit
43948:
43949:
43950: fi
43951:
43952: if test -n "$THIS_LIBS"; then
43953: break
43954: fi
43955: done
43956: fi
43957:
43958:
43959: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
43960: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
43961: fi
43962:
43963:
43964: THIS_RESULT=yes
43965: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 43966: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 43967: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 43968: { (exit 1); exit 1; }; }
1.1 misho 43969: fi
43970: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 43971: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 43972: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 43973: { (exit 1); exit 1; }; }
1.1 misho 43974: fi
43975:
43976:
43977:
43978:
43979: if test "$ext_shared" = "yes"; then
43980: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
43981: if test -n "$THIS_LFLAGS"; then
43982:
43983: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43984:
43985: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43986: ai_p=$THIS_LFLAGS
43987: else
43988:
43989: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43990:
43991: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43992: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43993: fi
43994:
43995:
43996: if test "$ext_shared" = "yes"; then
43997: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
43998: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
43999: else
44000:
44001:
44002:
44003: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44004:
44005: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44006: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44007: eval "LIBPATH$unique=set"
44008:
44009: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44010: LDFLAGS="$LDFLAGS -L$ai_p"
44011: PHP_RPATHS="$PHP_RPATHS $ai_p"
44012:
44013: fi
44014:
44015:
44016: fi
44017:
44018: fi
44019:
44020: fi
44021: else
44022:
44023:
44024: if test -n "$THIS_LFLAGS"; then
44025:
44026: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44027:
44028: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44029: ai_p=$THIS_LFLAGS
44030: else
44031:
44032: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44033:
44034: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44035: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44036: fi
44037:
44038:
44039:
44040:
44041:
44042: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44043:
44044: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44045: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44046: eval "LIBPATH$unique=set"
44047:
44048: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44049: LDFLAGS="$LDFLAGS -L$ai_p"
44050: PHP_RPATHS="$PHP_RPATHS $ai_p"
44051:
44052: fi
44053:
44054:
44055:
44056: fi
44057:
44058: fi
44059:
44060:
44061: case $THIS_LIBS in
44062: c|c_r|pthread*) ;;
44063: *)
44064: LIBS="-l$THIS_LIBS $LIBS"
44065: ;;
44066: esac
44067:
44068:
44069:
44070:
44071: fi
44072:
44073:
44074: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
44075:
44076: fi
44077:
44078: THIS_NAME=DBM
44079: if test -n ""; then
44080: THIS_FULL_NAME=""
44081: else
44082: THIS_FULL_NAME="$THIS_NAME"
44083: fi
1.1.1.3 ! misho 44084: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 44085: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 44086: if test -n ""; then
1.1.1.3 ! misho 44087: { { echo "$as_me:$LINENO: error: " >&5
! 44088: echo "$as_me: error: " >&2;}
! 44089: { (exit 1); exit 1; }; }
1.1 misho 44090: fi
44091: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44092: HAVE_DBA=1
44093: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 44094: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 44095: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 44096: else
1.1.1.3 ! misho 44097: { echo "$as_me:$LINENO: result: no" >&5
! 44098: echo "${ECHO_T}no" >&6; }
1.1 misho 44099: fi
44100: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44101:
44102:
44103: if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then
44104: php_dba_enable=yes
44105: else
44106: php_dba_enable=no
44107: fi
44108:
44109:
44110: php_with_cdb=$php_dba_enable
44111:
44112:
44113:
44114: # Check whether --with-cdb was given.
1.1.1.3 ! misho 44115: if test "${with_cdb+set}" = set; then
1.1 misho 44116: withval=$with_cdb; PHP_CDB=$withval
44117: else
44118:
44119: PHP_CDB=$php_dba_enable
44120:
44121:
44122: fi
44123:
44124:
44125: ext_output=$PHP_CDB
44126:
44127:
44128:
44129:
44130:
44131:
44132: php_enable_inifile=$php_dba_enable
44133:
44134:
44135: # Check whether --enable-inifile was given.
1.1.1.3 ! misho 44136: if test "${enable_inifile+set}" = set; then
1.1 misho 44137: enableval=$enable_inifile; PHP_INIFILE=$enableval
44138: else
44139:
44140: PHP_INIFILE=$php_dba_enable
44141:
44142:
44143: fi
44144:
44145:
44146: ext_output=$PHP_INIFILE
44147:
44148:
44149:
44150:
44151:
44152:
44153: php_enable_flatfile=$php_dba_enable
44154:
44155:
44156: # Check whether --enable-flatfile was given.
1.1.1.3 ! misho 44157: if test "${enable_flatfile+set}" = set; then
1.1 misho 44158: enableval=$enable_flatfile; PHP_FLATFILE=$enableval
44159: else
44160:
44161: PHP_FLATFILE=$php_dba_enable
44162:
44163:
44164: fi
44165:
44166:
44167: ext_output=$PHP_FLATFILE
44168:
44169:
44170:
44171:
44172:
44173: # CDB
44174: if test "$PHP_CDB" = "yes"; then
44175:
1.1.1.3 ! misho 44176: cat >>confdefs.h <<\_ACEOF
! 44177: #define DBA_CDB_BUILTIN 1
! 44178: _ACEOF
1.1 misho 44179:
44180:
1.1.1.3 ! misho 44181: cat >>confdefs.h <<\_ACEOF
! 44182: #define DBA_CDB_MAKE 1
! 44183: _ACEOF
1.1 misho 44184:
44185:
1.1.1.3 ! misho 44186: cat >>confdefs.h <<\_ACEOF
! 44187: #define DBA_CDB 1
! 44188: _ACEOF
1.1 misho 44189:
44190: cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c"
44191: THIS_RESULT="builtin"
44192: elif test "$PHP_CDB" != "no"; then
44193:
44194: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
44195:
44196: for i in $PHP_CDB /usr/local /usr; do
44197: if test -f "$i/include/cdb.h"; then
44198: THIS_PREFIX=$i
44199: THIS_INCLUDE=$i/include/cdb.h
44200: break
44201: fi
44202: done
44203:
44204: if test -n "$THIS_INCLUDE"; then
44205: for LIB in cdb c; do
44206:
44207: save_old_LDFLAGS=$LDFLAGS
44208: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
44209:
44210: save_ext_shared=$ext_shared
44211: ext_shared=yes
44212:
44213: for ac_i in $ac_stuff; do
44214: case $ac_i in
44215: -pthread)
44216: if test "$ext_shared" = "yes"; then
44217: LDFLAGS="$LDFLAGS -pthread"
44218: else
44219:
44220:
44221: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44222:
44223: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44224: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44225: eval "EXTRA_LDFLAGS$unique=set"
44226: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44227: fi
44228:
44229: fi
44230: ;;
44231: -l*)
44232: ac_ii=`echo $ac_i|cut -c 3-`
44233:
44234:
44235: case $ac_ii in
44236: c|c_r|pthread*) ;;
44237: *)
44238: if test "$ext_shared" = "yes"; then
44239: LDFLAGS="$LDFLAGS -l$ac_ii"
44240: else
44241:
44242:
44243: case $ac_ii in
44244: c|c_r|pthread*) ;;
44245: *)
44246: LIBS="$LIBS -l$ac_ii"
44247: ;;
44248: esac
44249:
44250:
44251: fi
44252: ;;
44253: esac
44254:
44255:
44256: ;;
44257: -L*)
44258: ac_ii=`echo $ac_i|cut -c 3-`
44259:
44260: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44261:
44262: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44263: ai_p=$ac_ii
44264: else
44265:
44266: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44267:
44268: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44269: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44270: fi
44271:
44272:
44273: if test "$ext_shared" = "yes"; then
44274: LDFLAGS="-L$ai_p $LDFLAGS"
44275: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44276: else
44277:
44278:
44279:
44280: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44281:
44282: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44283: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44284: eval "LIBPATH$unique=set"
44285:
44286: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44287: LDFLAGS="$LDFLAGS -L$ai_p"
44288: PHP_RPATHS="$PHP_RPATHS $ai_p"
44289:
44290: fi
44291:
44292:
44293: fi
44294:
44295: fi
44296:
44297: ;;
44298: esac
44299: done
44300:
1.1.1.3 ! misho 44301: as_ac_Lib=`echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh`
! 44302: { echo "$as_me:$LINENO: checking for cdb_read in -l$LIB" >&5
! 44303: echo $ECHO_N "checking for cdb_read in -l$LIB... $ECHO_C" >&6; }
! 44304: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 44305: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 44306: else
44307: ac_check_lib_save_LIBS=$LIBS
44308: LIBS="-l$LIB $LIBS"
1.1.1.3 ! misho 44309: cat >conftest.$ac_ext <<_ACEOF
! 44310: /* confdefs.h. */
! 44311: _ACEOF
! 44312: cat confdefs.h >>conftest.$ac_ext
! 44313: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 44314: /* end confdefs.h. */
44315:
44316: /* Override any GCC internal prototype to avoid an error.
44317: Use char because int might match the return type of a GCC
44318: builtin and then its argument prototype would still apply. */
44319: #ifdef __cplusplus
44320: extern "C"
44321: #endif
44322: char cdb_read ();
44323: int
44324: main ()
44325: {
44326: return cdb_read ();
44327: ;
44328: return 0;
44329: }
44330: _ACEOF
1.1.1.3 ! misho 44331: rm -f conftest.$ac_objext conftest$ac_exeext
! 44332: if { (ac_try="$ac_link"
! 44333: case "(($ac_try" in
! 44334: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 44335: *) ac_try_echo=$ac_try;;
! 44336: esac
! 44337: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 44338: (eval "$ac_link") 2>conftest.er1
! 44339: ac_status=$?
! 44340: grep -v '^ *+' conftest.er1 >conftest.err
! 44341: rm -f conftest.er1
! 44342: cat conftest.err >&5
! 44343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 44344: (exit $ac_status); } && {
! 44345: test -z "$ac_c_werror_flag" ||
! 44346: test ! -s conftest.err
! 44347: } && test -s conftest$ac_exeext &&
! 44348: $as_test_x conftest$ac_exeext; then
1.1 misho 44349: eval "$as_ac_Lib=yes"
44350: else
1.1.1.3 ! misho 44351: echo "$as_me: failed program was:" >&5
! 44352: sed 's/^/| /' conftest.$ac_ext >&5
! 44353:
! 44354: eval "$as_ac_Lib=no"
1.1 misho 44355: fi
1.1.1.3 ! misho 44356:
! 44357: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 44358: conftest$ac_exeext conftest.$ac_ext
1.1 misho 44359: LIBS=$ac_check_lib_save_LIBS
44360: fi
1.1.1.3 ! misho 44361: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 44362: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 44363: echo "${ECHO_T}$ac_res" >&6; }
! 44364: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 44365:
44366: LDFLAGS=$save_old_LDFLAGS
44367: ext_shared=$save_ext_shared
44368:
44369:
44370: cat >>confdefs.h <<_ACEOF
44371: #define CDB_INCLUDE_FILE "$THIS_INCLUDE"
44372: _ACEOF
44373:
44374:
1.1.1.3 ! misho 44375: cat >>confdefs.h <<\_ACEOF
! 44376: #define DBA_CDB 1
! 44377: _ACEOF
1.1 misho 44378:
44379: THIS_LIBS=$LIB
44380:
44381:
44382: else
44383:
44384: LDFLAGS=$save_old_LDFLAGS
44385: ext_shared=$save_ext_shared
44386: unset ac_cv_lib_$LIB_cdb_read
44387:
44388:
44389: fi
44390:
44391: if test -n "$THIS_LIBS"; then
44392: break
44393: fi
44394: done
44395: fi
44396:
44397:
44398: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
44399: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
44400: fi
44401:
44402:
44403: THIS_RESULT=yes
44404: if test -z "$THIS_INCLUDE"; then
1.1.1.3 ! misho 44405: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
! 44406: echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
! 44407: { (exit 1); exit 1; }; }
1.1 misho 44408: fi
44409: if test -z "$THIS_LIBS"; then
1.1.1.3 ! misho 44410: { { echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
! 44411: echo "$as_me: error: DBA: Could not find necessary library." >&2;}
! 44412: { (exit 1); exit 1; }; }
1.1 misho 44413: fi
44414:
44415:
44416:
44417:
44418: if test "$ext_shared" = "yes"; then
44419: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
44420: if test -n "$THIS_LFLAGS"; then
44421:
44422: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44423:
44424: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44425: ai_p=$THIS_LFLAGS
44426: else
44427:
44428: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44429:
44430: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44431: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44432: fi
44433:
44434:
44435: if test "$ext_shared" = "yes"; then
44436: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
44437: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
44438: else
44439:
44440:
44441:
44442: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44443:
44444: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44445: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44446: eval "LIBPATH$unique=set"
44447:
44448: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44449: LDFLAGS="$LDFLAGS -L$ai_p"
44450: PHP_RPATHS="$PHP_RPATHS $ai_p"
44451:
44452: fi
44453:
44454:
44455: fi
44456:
44457: fi
44458:
44459: fi
44460: else
44461:
44462:
44463: if test -n "$THIS_LFLAGS"; then
44464:
44465: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44466:
44467: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44468: ai_p=$THIS_LFLAGS
44469: else
44470:
44471: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44472:
44473: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44474: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44475: fi
44476:
44477:
44478:
44479:
44480:
44481: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44482:
44483: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44484: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44485: eval "LIBPATH$unique=set"
44486:
44487: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44488: LDFLAGS="$LDFLAGS -L$ai_p"
44489: PHP_RPATHS="$PHP_RPATHS $ai_p"
44490:
44491: fi
44492:
44493:
44494:
44495: fi
44496:
44497: fi
44498:
44499:
44500: case $THIS_LIBS in
44501: c|c_r|pthread*) ;;
44502: *)
44503: LIBS="-l$THIS_LIBS $LIBS"
44504: ;;
44505: esac
44506:
44507:
44508:
44509:
44510: fi
44511:
44512:
44513: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
44514:
44515: fi
44516:
44517: THIS_NAME=CDB
44518: if test -n ""; then
44519: THIS_FULL_NAME=""
44520: else
44521: THIS_FULL_NAME="$THIS_NAME"
44522: fi
1.1.1.3 ! misho 44523: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 44524: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 44525: if test -n ""; then
1.1.1.3 ! misho 44526: { { echo "$as_me:$LINENO: error: " >&5
! 44527: echo "$as_me: error: " >&2;}
! 44528: { (exit 1); exit 1; }; }
1.1 misho 44529: fi
44530: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44531: HAVE_DBA=1
44532: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 44533: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 44534: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 44535: else
1.1.1.3 ! misho 44536: { echo "$as_me:$LINENO: result: no" >&5
! 44537: echo "${ECHO_T}no" >&6; }
1.1 misho 44538: fi
44539: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44540:
44541:
44542: # INIFILE
44543: if test "$PHP_INIFILE" != "no"; then
44544:
1.1.1.3 ! misho 44545: cat >>confdefs.h <<\_ACEOF
! 44546: #define DBA_INIFILE 1
! 44547: _ACEOF
1.1 misho 44548:
44549: ini_sources="libinifile/inifile.c"
44550: THIS_RESULT="builtin"
44551: fi
44552:
44553: THIS_NAME=INIFILE
44554: if test -n "INI File"; then
44555: THIS_FULL_NAME="INI File"
44556: else
44557: THIS_FULL_NAME="$THIS_NAME"
44558: fi
1.1.1.3 ! misho 44559: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 44560: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 44561: if test -n ""; then
1.1.1.3 ! misho 44562: { { echo "$as_me:$LINENO: error: " >&5
! 44563: echo "$as_me: error: " >&2;}
! 44564: { (exit 1); exit 1; }; }
1.1 misho 44565: fi
44566: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44567: HAVE_DBA=1
44568: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 44569: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 44570: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 44571: else
1.1.1.3 ! misho 44572: { echo "$as_me:$LINENO: result: no" >&5
! 44573: echo "${ECHO_T}no" >&6; }
1.1 misho 44574: fi
44575: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44576:
44577:
44578: # FLATFILE
44579: if test "$PHP_FLATFILE" != "no"; then
44580:
1.1.1.3 ! misho 44581: cat >>confdefs.h <<\_ACEOF
! 44582: #define DBA_FLATFILE 1
! 44583: _ACEOF
1.1 misho 44584:
44585: flat_sources="libflatfile/flatfile.c"
44586: THIS_RESULT="builtin"
44587: fi
44588:
44589: THIS_NAME=FLATFILE
44590: if test -n "FlatFile"; then
44591: THIS_FULL_NAME="FlatFile"
44592: else
44593: THIS_FULL_NAME="$THIS_NAME"
44594: fi
1.1.1.3 ! misho 44595: { echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
! 44596: echo $ECHO_N "checking for $THIS_FULL_NAME support... $ECHO_C" >&6; }
1.1 misho 44597: if test -n ""; then
1.1.1.3 ! misho 44598: { { echo "$as_me:$LINENO: error: " >&5
! 44599: echo "$as_me: error: " >&2;}
! 44600: { (exit 1); exit 1; }; }
1.1 misho 44601: fi
44602: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44603: HAVE_DBA=1
44604: eval HAVE_$THIS_NAME=1
1.1.1.3 ! misho 44605: { echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
! 44606: echo "${ECHO_T}$THIS_RESULT" >&6; }
1.1 misho 44607: else
1.1.1.3 ! misho 44608: { echo "$as_me:$LINENO: result: no" >&5
! 44609: echo "${ECHO_T}no" >&6; }
1.1 misho 44610: fi
44611: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44612:
44613:
1.1.1.3 ! misho 44614: { echo "$as_me:$LINENO: checking whether to enable DBA interface" >&5
! 44615: echo $ECHO_N "checking whether to enable DBA interface... $ECHO_C" >&6; }
1.1 misho 44616: if test "$HAVE_DBA" = "1"; then
44617: if test "$ext_shared" = "yes"; then
1.1.1.3 ! misho 44618: { echo "$as_me:$LINENO: result: yes, shared" >&5
! 44619: echo "${ECHO_T}yes, shared" >&6; }
1.1 misho 44620: else
1.1.1.3 ! misho 44621: { echo "$as_me:$LINENO: result: yes" >&5
! 44622: echo "${ECHO_T}yes" >&6; }
1.1 misho 44623: fi
44624:
1.1.1.3 ! misho 44625: cat >>confdefs.h <<\_ACEOF
! 44626: #define HAVE_DBA 1
! 44627: _ACEOF
1.1 misho 44628:
44629:
44630: ext_builddir=ext/dba
44631: ext_srcdir=$abs_srcdir/ext/dba
44632:
44633: ac_extra=
44634:
44635: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
44636: PHP_DBA_SHARED=no
44637:
44638:
44639: case ext/dba in
44640: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
44641: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
44642: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
44643: esac
44644:
44645:
44646:
44647: b_c_pre=$php_c_pre
44648: b_cxx_pre=$php_cxx_pre
44649: b_c_meta=$php_c_meta
44650: b_cxx_meta=$php_cxx_meta
44651: b_c_post=$php_c_post
44652: b_cxx_post=$php_cxx_post
44653: b_lo=$php_lo
44654:
44655:
44656: old_IFS=$IFS
1.1.1.2 misho 44657: for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1 misho 44658:
44659: IFS=.
44660: set $ac_src
44661: ac_obj=$1
44662: IFS=$old_IFS
44663:
44664: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
44665:
44666: case $ac_src in
44667: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44668: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44669: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44670: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
44671: esac
44672:
44673: cat >>Makefile.objects<<EOF
44674: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
44675: $ac_comp
44676: EOF
44677: done
44678:
44679:
44680: EXT_STATIC="$EXT_STATIC dba"
44681: if test "$ext_shared" != "nocli"; then
44682: EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
44683: fi
44684: else
44685: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
44686: PHP_DBA_SHARED=yes
44687:
44688: case ext/dba in
44689: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
44690: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
44691: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
44692: esac
44693:
44694:
44695:
44696: b_c_pre=$shared_c_pre
44697: b_cxx_pre=$shared_cxx_pre
44698: b_c_meta=$shared_c_meta
44699: b_cxx_meta=$shared_cxx_meta
44700: b_c_post=$shared_c_post
44701: b_cxx_post=$shared_cxx_post
44702: b_lo=$shared_lo
44703:
44704:
44705: old_IFS=$IFS
1.1.1.2 misho 44706: for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1 misho 44707:
44708: IFS=.
44709: set $ac_src
44710: ac_obj=$1
44711: IFS=$old_IFS
44712:
44713: shared_objects_dba="$shared_objects_dba $ac_bdir$ac_obj.lo"
44714:
44715: case $ac_src in
44716: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44717: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44718: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44719: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
44720: esac
44721:
44722: cat >>Makefile.objects<<EOF
44723: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
44724: $ac_comp
44725: EOF
44726: done
44727:
44728: case $host_alias in
44729: *netware*)
44730:
44731: install_modules="install-modules"
44732:
44733: case $host_alias in
44734: *aix*)
44735: suffix=so
44736: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdba.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(PHPDBA_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdba.so '$ext_builddir'/phpdba.so'
44737: ;;
44738: *netware*)
44739: suffix=nlm
44740: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) -L$(top_builddir)/netware -lphp5lib $(DBA_SHARED_LIBADD)'
44741: ;;
44742: *)
44743: suffix=la
44744: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(PHPDBA_SHARED_LIBADD)'
44745: ;;
44746: esac
44747:
44748: if test "x" = "xyes"; then
44749: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdba.$suffix"
44750: else
44751: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdba.$suffix"
44752: fi
44753:
44754: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
44755:
44756: cat >>Makefile.objects<<EOF
44757: \$(phplibdir)/phpdba.$suffix: $ext_builddir/phpdba.$suffix
44758: \$(LIBTOOL) --mode=install cp $ext_builddir/phpdba.$suffix \$(phplibdir)
44759:
44760: $ext_builddir/phpdba.$suffix: \$(shared_objects_dba) \$(PHPDBA_SHARED_DEPENDENCIES)
44761: $link_cmd
44762:
44763: EOF
44764:
44765: ;;
44766: *)
44767:
44768: install_modules="install-modules"
44769:
44770: case $host_alias in
44771: *aix*)
44772: suffix=so
44773: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/dba.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(DBA_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/dba.so '$ext_builddir'/dba.so'
44774: ;;
44775: *netware*)
44776: suffix=nlm
44777: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
44778: ;;
44779: *)
44780: suffix=la
44781: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(DBA_SHARED_LIBADD)'
44782: ;;
44783: esac
44784:
44785: if test "x" = "xyes"; then
44786: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dba.$suffix"
44787: else
44788: PHP_MODULES="$PHP_MODULES \$(phplibdir)/dba.$suffix"
44789: fi
44790:
44791: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
44792:
44793: cat >>Makefile.objects<<EOF
44794: \$(phplibdir)/dba.$suffix: $ext_builddir/dba.$suffix
44795: \$(LIBTOOL) --mode=install cp $ext_builddir/dba.$suffix \$(phplibdir)
44796:
44797: $ext_builddir/dba.$suffix: \$(shared_objects_dba) \$(DBA_SHARED_DEPENDENCIES)
44798: $link_cmd
44799:
44800: EOF
44801:
44802: ;;
44803: esac
44804:
44805: cat >>confdefs.h <<_ACEOF
44806: #define COMPILE_DL_DBA 1
44807: _ACEOF
44808:
44809: fi
1.1.1.3 ! misho 44810: fi
1.1 misho 44811:
1.1.1.3 ! misho 44812: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
! 44813: PHP_DBA_SHARED=no
! 44814: case "$PHP_SAPI" in
! 44815: cgi|embed)
1.1 misho 44816:
44817:
44818: case ext/dba in
44819: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
44820: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
44821: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
44822: esac
44823:
44824:
44825:
44826: b_c_pre=$php_c_pre
44827: b_cxx_pre=$php_cxx_pre
44828: b_c_meta=$php_c_meta
44829: b_cxx_meta=$php_cxx_meta
44830: b_c_post=$php_c_post
44831: b_cxx_post=$php_cxx_post
44832: b_lo=$php_lo
44833:
44834:
44835: old_IFS=$IFS
1.1.1.2 misho 44836: for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1 misho 44837:
44838: IFS=.
44839: set $ac_src
44840: ac_obj=$1
44841: IFS=$old_IFS
44842:
1.1.1.2 misho 44843: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 44844:
44845: case $ac_src in
44846: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44847: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44848: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44849: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
44850: esac
44851:
44852: cat >>Makefile.objects<<EOF
44853: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
44854: $ac_comp
44855: EOF
44856: done
44857:
44858:
1.1.1.3 ! misho 44859: EXT_STATIC="$EXT_STATIC dba"
! 44860: ;;
! 44861: *)
1.1 misho 44862:
44863:
44864: case ext/dba in
44865: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
44866: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
44867: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
44868: esac
44869:
44870:
44871:
44872: b_c_pre=$php_c_pre
44873: b_cxx_pre=$php_cxx_pre
44874: b_c_meta=$php_c_meta
44875: b_cxx_meta=$php_cxx_meta
44876: b_c_post=$php_c_post
44877: b_cxx_post=$php_cxx_post
44878: b_lo=$php_lo
44879:
44880:
44881: old_IFS=$IFS
1.1.1.2 misho 44882: for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1 misho 44883:
44884: IFS=.
44885: set $ac_src
44886: ac_obj=$1
44887: IFS=$old_IFS
44888:
1.1.1.2 misho 44889: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 44890:
44891: case $ac_src in
44892: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44893: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44894: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
44895: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
44896: esac
44897:
44898: cat >>Makefile.objects<<EOF
44899: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
44900: $ac_comp
44901: EOF
44902: done
44903:
44904:
1.1.1.3 ! misho 44905: ;;
! 44906: esac
1.1 misho 44907: EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
44908: fi
44909:
44910:
44911: BUILD_DIR="$BUILD_DIR $ext_builddir"
44912:
44913:
44914:
44915: if test "$ext_builddir" = "."; then
44916: PHP_PECL_EXTENSION=dba
44917:
44918: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
44919:
44920: fi
44921:
44922:
44923:
44924: BUILD_DIR="$BUILD_DIR $ext_builddir/libinifile"
44925:
44926:
44927:
44928:
44929: BUILD_DIR="$BUILD_DIR $ext_builddir/libcdb"
44930:
44931:
44932:
44933:
44934: BUILD_DIR="$BUILD_DIR $ext_builddir/libflatfile"
44935:
44936:
44937:
44938: PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD"
44939:
44940: else
1.1.1.3 ! misho 44941: { echo "$as_me:$LINENO: result: no" >&5
! 44942: echo "${ECHO_T}no" >&6; }
1.1 misho 44943: fi
44944:
44945:
44946:
44947: php_enable_dom=yes
44948:
1.1.1.3 ! misho 44949: { echo "$as_me:$LINENO: checking whether to enable DOM support" >&5
! 44950: echo $ECHO_N "checking whether to enable DOM support... $ECHO_C" >&6; }
1.1 misho 44951: # Check whether --enable-dom was given.
1.1.1.3 ! misho 44952: if test "${enable_dom+set}" = set; then
1.1 misho 44953: enableval=$enable_dom; PHP_DOM=$enableval
44954: else
44955:
44956: PHP_DOM=yes
44957: test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL
44958:
44959: fi
44960:
44961:
44962:
44963: ext_output="yes, shared"
44964: ext_shared=yes
44965: case $PHP_DOM in
44966: shared,*)
44967: PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'`
44968: ;;
44969: shared)
44970: PHP_DOM=yes
44971: ;;
44972: no)
44973: ext_output=no
44974: ext_shared=no
44975: ;;
44976: *)
44977: ext_output=yes
44978: ext_shared=no
44979: ;;
44980: esac
44981:
44982:
44983:
1.1.1.3 ! misho 44984: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 44985: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 44986:
44987:
44988:
44989:
44990: if test -z "$PHP_LIBXML_DIR"; then
44991:
44992: php_with_libxml_dir=no
44993:
1.1.1.3 ! misho 44994: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 44995: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 44996:
44997: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 44998: if test "${with_libxml_dir+set}" = set; then
1.1 misho 44999: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
45000: else
45001:
45002: PHP_LIBXML_DIR=no
45003:
45004:
45005: fi
45006:
45007:
45008: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 45009: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 45010: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 45011:
45012:
45013:
45014: fi
45015:
45016: if test "$PHP_DOM" != "no"; then
45017:
45018: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 45019: { { echo "$as_me:$LINENO: error: DOM extension requires LIBXML extension, add --enable-libxml" >&5
! 45020: echo "$as_me: error: DOM extension requires LIBXML extension, add --enable-libxml" >&2;}
! 45021: { (exit 1); exit 1; }; }
1.1 misho 45022: fi
45023:
45024:
1.1.1.3 ! misho 45025: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 45026: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 45027: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 45028: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 45029: else
45030:
45031: for i in $PHP_LIBXML_DIR /usr/local /usr; do
45032: if test -x "$i/bin/xml2-config"; then
45033: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
45034: break
45035: fi
45036: done
45037:
45038: fi
1.1.1.3 ! misho 45039: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 45040: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 45041:
45042: if test -x "$ac_cv_php_xml2_config_path"; then
45043: XML2_CONFIG="$ac_cv_php_xml2_config_path"
45044: libxml_full_version=`$XML2_CONFIG --version`
45045: ac_IFS=$IFS
45046: IFS="."
45047: set $libxml_full_version
45048: IFS=$ac_IFS
45049: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
45050: if test "$LIBXML_VERSION" -ge "2006011"; then
45051: LIBXML_LIBS=`$XML2_CONFIG --libs`
45052: LIBXML_INCS=`$XML2_CONFIG --cflags`
45053:
45054: for ac_i in $LIBXML_LIBS; do
45055: case $ac_i in
45056: -pthread)
45057: if test "$ext_shared" = "yes"; then
45058: DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread"
45059: else
45060:
45061:
45062: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45063:
45064: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45065: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45066: eval "EXTRA_LDFLAGS$unique=set"
45067: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45068: fi
45069:
45070: fi
45071: ;;
45072: -l*)
45073: ac_ii=`echo $ac_i|cut -c 3-`
45074:
45075:
45076: case $ac_ii in
45077: c|c_r|pthread*) ;;
45078: *)
45079: if test "$ext_shared" = "yes"; then
45080: DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii"
45081: else
45082:
45083:
45084: case $ac_ii in
45085: c|c_r|pthread*) ;;
45086: *)
45087: LIBS="$LIBS -l$ac_ii"
45088: ;;
45089: esac
45090:
45091:
45092: fi
45093: ;;
45094: esac
45095:
45096:
45097: ;;
45098: -L*)
45099: ac_ii=`echo $ac_i|cut -c 3-`
45100:
45101: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45102:
45103: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45104: ai_p=$ac_ii
45105: else
45106:
45107: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45108:
45109: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45110: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45111: fi
45112:
45113:
45114: if test "$ext_shared" = "yes"; then
45115: DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD"
45116: test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD"
45117: else
45118:
45119:
45120:
45121: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45122:
45123: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45124: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45125: eval "LIBPATH$unique=set"
45126:
45127: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45128: LDFLAGS="$LDFLAGS -L$ai_p"
45129: PHP_RPATHS="$PHP_RPATHS $ai_p"
45130:
45131: fi
45132:
45133:
45134: fi
45135:
45136: fi
45137:
45138: ;;
45139: esac
45140: done
45141:
45142:
45143: for ac_i in $LIBXML_INCS; do
45144: case $ac_i in
45145: -I*)
45146: ac_ii=`echo $ac_i|cut -c 3-`
45147:
45148: if test "$ac_ii" != "/usr/include"; then
45149:
45150: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45151: ai_p=$ac_ii
45152: else
45153:
45154: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45155:
45156: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45157: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45158: fi
45159:
45160:
45161:
45162: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45163:
45164: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
45165: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45166: eval "INCLUDEPATH$unique=set"
45167:
45168: if test ""; then
45169: INCLUDES="-I$ai_p $INCLUDES"
45170: else
45171: INCLUDES="$INCLUDES -I$ai_p"
45172: fi
45173:
45174: fi
45175:
45176: fi
45177:
45178: ;;
45179: esac
45180: done
45181:
45182:
1.1.1.3 ! misho 45183: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 45184: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 45185: if test "${php_cv_libxml_build_works+set}" = set; then
! 45186: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 45187: else
45188:
45189:
45190: old_LIBS=$LIBS
45191: LIBS="
45192: $DOM_SHARED_LIBADD
45193: $LIBS"
1.1.1.3 ! misho 45194: if test "$cross_compiling" = yes; then
1.1 misho 45195:
45196: LIBS=$old_LIBS
45197:
45198: else
1.1.1.3 ! misho 45199: cat >conftest.$ac_ext <<_ACEOF
! 45200: /* confdefs.h. */
! 45201: _ACEOF
! 45202: cat confdefs.h >>conftest.$ac_ext
! 45203: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 45204: /* end confdefs.h. */
45205:
45206:
45207: char xmlInitParser();
45208: int main() {
45209: xmlInitParser();
45210: return 0;
45211: }
45212:
45213: _ACEOF
1.1.1.3 ! misho 45214: rm -f conftest$ac_exeext
! 45215: if { (ac_try="$ac_link"
! 45216: case "(($ac_try" in
! 45217: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 45218: *) ac_try_echo=$ac_try;;
! 45219: esac
! 45220: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 45221: (eval "$ac_link") 2>&5
! 45222: ac_status=$?
! 45223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 45224: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 45225: { (case "(($ac_try" in
! 45226: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 45227: *) ac_try_echo=$ac_try;;
! 45228: esac
! 45229: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 45230: (eval "$ac_try") 2>&5
! 45231: ac_status=$?
! 45232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 45233: (exit $ac_status); }; }; then
1.1 misho 45234:
45235: LIBS=$old_LIBS
45236:
45237: php_cv_libxml_build_works=yes
45238:
45239:
45240: else
1.1.1.3 ! misho 45241: echo "$as_me: program exited with status $ac_status" >&5
! 45242: echo "$as_me: failed program was:" >&5
! 45243: sed 's/^/| /' conftest.$ac_ext >&5
! 45244:
! 45245: ( exit $ac_status )
1.1 misho 45246:
45247: LIBS=$old_LIBS
45248:
1.1.1.3 ! misho 45249: { echo "$as_me:$LINENO: result: no" >&5
! 45250: echo "${ECHO_T}no" >&6; }
! 45251: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 45252: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 45253: { (exit 1); exit 1; }; }
1.1 misho 45254:
45255:
45256: fi
1.1.1.3 ! misho 45257: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 45258: fi
45259:
45260:
45261:
1.1.1.3 ! misho 45262:
1.1 misho 45263: fi
1.1.1.3 ! misho 45264: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 45265: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 45266: if test "$php_cv_libxml_build_works" = "yes"; then
45267:
1.1.1.3 ! misho 45268: cat >>confdefs.h <<\_ACEOF
! 45269: #define HAVE_LIBXML 1
! 45270: _ACEOF
1.1 misho 45271:
45272: fi
45273:
45274:
1.1.1.3 ! misho 45275: cat >>confdefs.h <<\_ACEOF
! 45276: #define HAVE_DOM 1
! 45277: _ACEOF
1.1 misho 45278:
45279:
45280: ext_builddir=ext/dom
45281: ext_srcdir=$abs_srcdir/ext/dom
45282:
45283: ac_extra=
45284:
45285: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
45286: PHP_DOM_SHARED=no
45287:
45288:
45289: case ext/dom in
45290: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45291: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45292: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45293: esac
45294:
45295:
45296:
45297: b_c_pre=$php_c_pre
45298: b_cxx_pre=$php_cxx_pre
45299: b_c_meta=$php_c_meta
45300: b_cxx_meta=$php_cxx_meta
45301: b_c_post=$php_c_post
45302: b_cxx_post=$php_cxx_post
45303: b_lo=$php_lo
45304:
45305:
45306: old_IFS=$IFS
45307: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
45308: domstringlist.c domexception.c namelist.c \
45309: processinginstruction.c cdatasection.c \
45310: documentfragment.c domimplementation.c \
45311: element.c node.c string_extend.c characterdata.c \
45312: documenttype.c domimplementationlist.c entity.c \
45313: nodelist.c text.c comment.c domconfiguration.c \
45314: domimplementationsource.c entityreference.c \
45315: notation.c xpath.c dom_iterators.c \
45316: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
45317:
45318: IFS=.
45319: set $ac_src
45320: ac_obj=$1
45321: IFS=$old_IFS
45322:
45323: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45324:
45325: case $ac_src in
45326: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45327: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45328: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45329: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45330: esac
45331:
45332: cat >>Makefile.objects<<EOF
45333: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45334: $ac_comp
45335: EOF
45336: done
45337:
45338:
45339: EXT_STATIC="$EXT_STATIC dom"
45340: if test "$ext_shared" != "nocli"; then
45341: EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
45342: fi
45343: else
45344: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
45345: PHP_DOM_SHARED=yes
45346:
45347: case ext/dom in
45348: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45349: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45350: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45351: esac
45352:
45353:
45354:
45355: b_c_pre=$shared_c_pre
45356: b_cxx_pre=$shared_cxx_pre
45357: b_c_meta=$shared_c_meta
45358: b_cxx_meta=$shared_cxx_meta
45359: b_c_post=$shared_c_post
45360: b_cxx_post=$shared_cxx_post
45361: b_lo=$shared_lo
45362:
45363:
45364: old_IFS=$IFS
45365: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
45366: domstringlist.c domexception.c namelist.c \
45367: processinginstruction.c cdatasection.c \
45368: documentfragment.c domimplementation.c \
45369: element.c node.c string_extend.c characterdata.c \
45370: documenttype.c domimplementationlist.c entity.c \
45371: nodelist.c text.c comment.c domconfiguration.c \
45372: domimplementationsource.c entityreference.c \
45373: notation.c xpath.c dom_iterators.c \
45374: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
45375:
45376: IFS=.
45377: set $ac_src
45378: ac_obj=$1
45379: IFS=$old_IFS
45380:
45381: shared_objects_dom="$shared_objects_dom $ac_bdir$ac_obj.lo"
45382:
45383: case $ac_src in
45384: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45385: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45386: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45387: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45388: esac
45389:
45390: cat >>Makefile.objects<<EOF
45391: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45392: $ac_comp
45393: EOF
45394: done
45395:
45396: case $host_alias in
45397: *netware*)
45398:
45399: install_modules="install-modules"
45400:
45401: case $host_alias in
45402: *aix*)
45403: suffix=so
45404: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdom.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(PHPDOM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdom.so '$ext_builddir'/phpdom.so'
45405: ;;
45406: *netware*)
45407: suffix=nlm
45408: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) -L$(top_builddir)/netware -lphp5lib $(DOM_SHARED_LIBADD)'
45409: ;;
45410: *)
45411: suffix=la
45412: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(PHPDOM_SHARED_LIBADD)'
45413: ;;
45414: esac
45415:
45416: if test "x" = "xyes"; then
45417: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdom.$suffix"
45418: else
45419: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdom.$suffix"
45420: fi
45421:
45422: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
45423:
45424: cat >>Makefile.objects<<EOF
45425: \$(phplibdir)/phpdom.$suffix: $ext_builddir/phpdom.$suffix
45426: \$(LIBTOOL) --mode=install cp $ext_builddir/phpdom.$suffix \$(phplibdir)
45427:
45428: $ext_builddir/phpdom.$suffix: \$(shared_objects_dom) \$(PHPDOM_SHARED_DEPENDENCIES)
45429: $link_cmd
45430:
45431: EOF
45432:
45433: ;;
45434: *)
45435:
45436: install_modules="install-modules"
45437:
45438: case $host_alias in
45439: *aix*)
45440: suffix=so
45441: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/dom.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(DOM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/dom.so '$ext_builddir'/dom.so'
45442: ;;
45443: *netware*)
45444: suffix=nlm
45445: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
45446: ;;
45447: *)
45448: suffix=la
45449: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(DOM_SHARED_LIBADD)'
45450: ;;
45451: esac
45452:
45453: if test "x" = "xyes"; then
45454: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dom.$suffix"
45455: else
45456: PHP_MODULES="$PHP_MODULES \$(phplibdir)/dom.$suffix"
45457: fi
45458:
45459: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
45460:
45461: cat >>Makefile.objects<<EOF
45462: \$(phplibdir)/dom.$suffix: $ext_builddir/dom.$suffix
45463: \$(LIBTOOL) --mode=install cp $ext_builddir/dom.$suffix \$(phplibdir)
45464:
45465: $ext_builddir/dom.$suffix: \$(shared_objects_dom) \$(DOM_SHARED_DEPENDENCIES)
45466: $link_cmd
45467:
45468: EOF
45469:
45470: ;;
45471: esac
45472:
45473: cat >>confdefs.h <<_ACEOF
45474: #define COMPILE_DL_DOM 1
45475: _ACEOF
45476:
45477: fi
45478: fi
45479:
45480: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
45481: PHP_DOM_SHARED=no
1.1.1.3 ! misho 45482: case "$PHP_SAPI" in
! 45483: cgi|embed)
1.1 misho 45484:
45485:
45486: case ext/dom in
45487: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45488: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45489: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45490: esac
45491:
45492:
45493:
45494: b_c_pre=$php_c_pre
45495: b_cxx_pre=$php_cxx_pre
45496: b_c_meta=$php_c_meta
45497: b_cxx_meta=$php_cxx_meta
45498: b_c_post=$php_c_post
45499: b_cxx_post=$php_cxx_post
45500: b_lo=$php_lo
45501:
45502:
45503: old_IFS=$IFS
45504: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
45505: domstringlist.c domexception.c namelist.c \
45506: processinginstruction.c cdatasection.c \
45507: documentfragment.c domimplementation.c \
45508: element.c node.c string_extend.c characterdata.c \
45509: documenttype.c domimplementationlist.c entity.c \
45510: nodelist.c text.c comment.c domconfiguration.c \
45511: domimplementationsource.c entityreference.c \
45512: notation.c xpath.c dom_iterators.c \
45513: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
45514:
45515: IFS=.
45516: set $ac_src
45517: ac_obj=$1
45518: IFS=$old_IFS
45519:
1.1.1.2 misho 45520: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 45521:
45522: case $ac_src in
45523: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45524: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45525: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45526: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45527: esac
45528:
45529: cat >>Makefile.objects<<EOF
45530: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45531: $ac_comp
45532: EOF
45533: done
45534:
45535:
1.1.1.3 ! misho 45536: EXT_STATIC="$EXT_STATIC dom"
! 45537: ;;
! 45538: *)
1.1 misho 45539:
45540:
45541: case ext/dom in
45542: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45543: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45544: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45545: esac
45546:
45547:
45548:
45549: b_c_pre=$php_c_pre
45550: b_cxx_pre=$php_cxx_pre
45551: b_c_meta=$php_c_meta
45552: b_cxx_meta=$php_cxx_meta
45553: b_c_post=$php_c_post
45554: b_cxx_post=$php_cxx_post
45555: b_lo=$php_lo
45556:
45557:
45558: old_IFS=$IFS
45559: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
45560: domstringlist.c domexception.c namelist.c \
45561: processinginstruction.c cdatasection.c \
45562: documentfragment.c domimplementation.c \
45563: element.c node.c string_extend.c characterdata.c \
45564: documenttype.c domimplementationlist.c entity.c \
45565: nodelist.c text.c comment.c domconfiguration.c \
45566: domimplementationsource.c entityreference.c \
45567: notation.c xpath.c dom_iterators.c \
45568: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
45569:
45570: IFS=.
45571: set $ac_src
45572: ac_obj=$1
45573: IFS=$old_IFS
45574:
1.1.1.2 misho 45575: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 45576:
45577: case $ac_src in
45578: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45579: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45580: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45581: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45582: esac
45583:
45584: cat >>Makefile.objects<<EOF
45585: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45586: $ac_comp
45587: EOF
45588: done
45589:
45590:
1.1.1.3 ! misho 45591: ;;
! 45592: esac
1.1 misho 45593: EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
45594: fi
45595:
45596:
45597: BUILD_DIR="$BUILD_DIR $ext_builddir"
45598:
45599:
45600:
45601: if test "$ext_builddir" = "."; then
45602: PHP_PECL_EXTENSION=dom
45603:
45604: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
45605:
45606: fi
45607:
45608:
45609: PHP_VAR_SUBST="$PHP_VAR_SUBST DOM_SHARED_LIBADD"
45610:
45611:
45612:
45613: for header_file in ext/dom/xml_common.h; do
45614:
45615:
45616: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
45617:
45618: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
45619: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45620: eval "INSTALLHEADERS$unique=set"
45621:
45622: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
45623:
45624: fi
45625:
45626: done
45627:
45628:
45629:
45630: am_i_shared=$PHP_DOM_SHARED
45631: is_it_shared=$PHP_LIBXML_SHARED
45632: is_it_enabled=$PHP_LIBXML
45633: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 45634: { { echo "$as_me:$LINENO: error:
! 45635: You've configured extension dom to build statically, but it
! 45636: depends on extension libxml, which you've configured to build shared.
! 45637: You either need to build dom shared or build libxml statically for the
! 45638: build to be successful.
! 45639: " >&5
! 45640: echo "$as_me: error:
1.1 misho 45641: You've configured extension dom to build statically, but it
45642: depends on extension libxml, which you've configured to build shared.
45643: You either need to build dom shared or build libxml statically for the
45644: build to be successful.
1.1.1.3 ! misho 45645: " >&2;}
! 45646: { (exit 1); exit 1; }; }
! 45647: fi
! 45648: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 45649: { { echo "$as_me:$LINENO: error:
! 45650: You've configured extension dom, which depends on extension libxml,
! 45651: but you've either not enabled libxml, or have disabled it.
! 45652: " >&5
! 45653: echo "$as_me: error:
! 45654: You've configured extension dom, which depends on extension libxml,
! 45655: but you've either not enabled libxml, or have disabled it.
! 45656: " >&2;}
! 45657: { (exit 1); exit 1; }; }
1.1 misho 45658: fi
45659:
45660:
45661: else
1.1.1.3 ! misho 45662: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 45663: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 45664: { (exit 1); exit 1; }; }
1.1 misho 45665: fi
45666: else
1.1.1.3 ! misho 45667: { { echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
! 45668: echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
! 45669: { (exit 1); exit 1; }; }
1.1 misho 45670:
45671: fi
45672:
45673: fi
45674:
45675:
45676:
45677: php_with_enchant=no
45678:
1.1.1.3 ! misho 45679: { echo "$as_me:$LINENO: checking for ENCHANT support" >&5
! 45680: echo $ECHO_N "checking for ENCHANT support... $ECHO_C" >&6; }
1.1 misho 45681:
45682: # Check whether --with-enchant was given.
1.1.1.3 ! misho 45683: if test "${with_enchant+set}" = set; then
1.1 misho 45684: withval=$with_enchant; PHP_ENCHANT=$withval
45685: else
45686:
45687: PHP_ENCHANT=no
45688: test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL
45689:
45690: fi
45691:
45692:
45693:
45694: ext_output="yes, shared"
45695: ext_shared=yes
45696: case $PHP_ENCHANT in
45697: shared,*)
45698: PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'`
45699: ;;
45700: shared)
45701: PHP_ENCHANT=yes
45702: ;;
45703: no)
45704: ext_output=no
45705: ext_shared=no
45706: ;;
45707: *)
45708: ext_output=yes
45709: ext_shared=no
45710: ;;
45711: esac
45712:
45713:
45714:
1.1.1.3 ! misho 45715: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 45716: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 45717:
45718:
45719:
45720:
45721: if test "$PHP_ENCHANT" != "no"; then
45722:
45723: ext_builddir=ext/enchant
45724: ext_srcdir=$abs_srcdir/ext/enchant
45725:
45726: ac_extra=
45727:
45728: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
45729: PHP_ENCHANT_SHARED=no
45730:
45731:
45732: case ext/enchant in
45733: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45734: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45735: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45736: esac
45737:
45738:
45739:
45740: b_c_pre=$php_c_pre
45741: b_cxx_pre=$php_cxx_pre
45742: b_c_meta=$php_c_meta
45743: b_cxx_meta=$php_cxx_meta
45744: b_c_post=$php_c_post
45745: b_cxx_post=$php_cxx_post
45746: b_lo=$php_lo
45747:
45748:
45749: old_IFS=$IFS
45750: for ac_src in enchant.c; do
45751:
45752: IFS=.
45753: set $ac_src
45754: ac_obj=$1
45755: IFS=$old_IFS
45756:
45757: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45758:
45759: case $ac_src in
45760: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45761: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45762: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45763: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45764: esac
45765:
45766: cat >>Makefile.objects<<EOF
45767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45768: $ac_comp
45769: EOF
45770: done
45771:
45772:
45773: EXT_STATIC="$EXT_STATIC enchant"
45774: if test "$ext_shared" != "nocli"; then
45775: EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
45776: fi
45777: else
45778: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
45779: PHP_ENCHANT_SHARED=yes
45780:
45781: case ext/enchant in
45782: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45783: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45784: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45785: esac
45786:
45787:
45788:
45789: b_c_pre=$shared_c_pre
45790: b_cxx_pre=$shared_cxx_pre
45791: b_c_meta=$shared_c_meta
45792: b_cxx_meta=$shared_cxx_meta
45793: b_c_post=$shared_c_post
45794: b_cxx_post=$shared_cxx_post
45795: b_lo=$shared_lo
45796:
45797:
45798: old_IFS=$IFS
45799: for ac_src in enchant.c; do
45800:
45801: IFS=.
45802: set $ac_src
45803: ac_obj=$1
45804: IFS=$old_IFS
45805:
45806: shared_objects_enchant="$shared_objects_enchant $ac_bdir$ac_obj.lo"
45807:
45808: case $ac_src in
45809: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45810: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45811: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45812: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45813: esac
45814:
45815: cat >>Makefile.objects<<EOF
45816: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45817: $ac_comp
45818: EOF
45819: done
45820:
45821: case $host_alias in
45822: *netware*)
45823:
45824: install_modules="install-modules"
45825:
45826: case $host_alias in
45827: *aix*)
45828: suffix=so
45829: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpenchant.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(PHPENCHANT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpenchant.so '$ext_builddir'/phpenchant.so'
45830: ;;
45831: *netware*)
45832: suffix=nlm
45833: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) -L$(top_builddir)/netware -lphp5lib $(ENCHANT_SHARED_LIBADD)'
45834: ;;
45835: *)
45836: suffix=la
45837: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(PHPENCHANT_SHARED_LIBADD)'
45838: ;;
45839: esac
45840:
45841: if test "x" = "xyes"; then
45842: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpenchant.$suffix"
45843: else
45844: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpenchant.$suffix"
45845: fi
45846:
45847: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
45848:
45849: cat >>Makefile.objects<<EOF
45850: \$(phplibdir)/phpenchant.$suffix: $ext_builddir/phpenchant.$suffix
45851: \$(LIBTOOL) --mode=install cp $ext_builddir/phpenchant.$suffix \$(phplibdir)
45852:
45853: $ext_builddir/phpenchant.$suffix: \$(shared_objects_enchant) \$(PHPENCHANT_SHARED_DEPENDENCIES)
45854: $link_cmd
45855:
45856: EOF
45857:
45858: ;;
45859: *)
45860:
45861: install_modules="install-modules"
45862:
45863: case $host_alias in
45864: *aix*)
45865: suffix=so
45866: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/enchant.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(ENCHANT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/enchant.so '$ext_builddir'/enchant.so'
45867: ;;
45868: *netware*)
45869: suffix=nlm
45870: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) -L$(top_builddir)/netware -lphp5lib $(HANT_SHARED_LIBADD)'
45871: ;;
45872: *)
45873: suffix=la
45874: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(ENCHANT_SHARED_LIBADD)'
45875: ;;
45876: esac
45877:
45878: if test "x" = "xyes"; then
45879: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/enchant.$suffix"
45880: else
45881: PHP_MODULES="$PHP_MODULES \$(phplibdir)/enchant.$suffix"
45882: fi
45883:
45884: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
45885:
45886: cat >>Makefile.objects<<EOF
45887: \$(phplibdir)/enchant.$suffix: $ext_builddir/enchant.$suffix
45888: \$(LIBTOOL) --mode=install cp $ext_builddir/enchant.$suffix \$(phplibdir)
45889:
45890: $ext_builddir/enchant.$suffix: \$(shared_objects_enchant) \$(ENCHANT_SHARED_DEPENDENCIES)
45891: $link_cmd
45892:
45893: EOF
45894:
45895: ;;
45896: esac
45897:
45898: cat >>confdefs.h <<_ACEOF
45899: #define COMPILE_DL_ENCHANT 1
45900: _ACEOF
45901:
45902: fi
45903: fi
45904:
45905: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
45906: PHP_ENCHANT_SHARED=no
1.1.1.3 ! misho 45907: case "$PHP_SAPI" in
! 45908: cgi|embed)
1.1 misho 45909:
45910:
45911: case ext/enchant in
45912: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45913: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45914: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45915: esac
45916:
45917:
45918:
45919: b_c_pre=$php_c_pre
45920: b_cxx_pre=$php_cxx_pre
45921: b_c_meta=$php_c_meta
45922: b_cxx_meta=$php_cxx_meta
45923: b_c_post=$php_c_post
45924: b_cxx_post=$php_cxx_post
45925: b_lo=$php_lo
45926:
45927:
45928: old_IFS=$IFS
45929: for ac_src in enchant.c; do
45930:
45931: IFS=.
45932: set $ac_src
45933: ac_obj=$1
45934: IFS=$old_IFS
45935:
1.1.1.2 misho 45936: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 45937:
45938: case $ac_src in
45939: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45940: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45941: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45942: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45943: esac
45944:
45945: cat >>Makefile.objects<<EOF
45946: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45947: $ac_comp
45948: EOF
45949: done
45950:
45951:
1.1.1.3 ! misho 45952: EXT_STATIC="$EXT_STATIC enchant"
! 45953: ;;
! 45954: *)
1.1 misho 45955:
45956:
45957: case ext/enchant in
45958: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45959: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45960: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45961: esac
45962:
45963:
45964:
45965: b_c_pre=$php_c_pre
45966: b_cxx_pre=$php_cxx_pre
45967: b_c_meta=$php_c_meta
45968: b_cxx_meta=$php_cxx_meta
45969: b_c_post=$php_c_post
45970: b_cxx_post=$php_cxx_post
45971: b_lo=$php_lo
45972:
45973:
45974: old_IFS=$IFS
45975: for ac_src in enchant.c; do
45976:
45977: IFS=.
45978: set $ac_src
45979: ac_obj=$1
45980: IFS=$old_IFS
45981:
1.1.1.2 misho 45982: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 45983:
45984: case $ac_src in
45985: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45986: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45987: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45988: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45989: esac
45990:
45991: cat >>Makefile.objects<<EOF
45992: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45993: $ac_comp
45994: EOF
45995: done
45996:
45997:
1.1.1.3 ! misho 45998: ;;
! 45999: esac
1.1 misho 46000: EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
46001: fi
46002:
46003:
46004: BUILD_DIR="$BUILD_DIR $ext_builddir"
46005:
46006:
46007:
46008: if test "$ext_builddir" = "."; then
46009: PHP_PECL_EXTENSION=enchant
46010:
46011: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
46012:
46013: fi
46014:
46015: if test "$PHP_ENCHANT" != "yes"; then
46016: ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
46017: else
46018: ENCHANT_SEARCH_DIRS="/usr/local /usr"
46019: fi
46020: for i in $ENCHANT_SEARCH_DIRS; do
46021: if test -f $i/include/enchant/enchant.h; then
46022: ENCHANT_DIR=$i
46023: ENCHANT_INCDIR=$i/include/enchant
46024: elif test -f $i/include/enchant.h; then
46025: ENCHANT_DIR=$i
46026: ENCHANT_INCDIR=$i/include
46027: fi
46028: done
46029:
46030: if test -z "$ENCHANT_DIR"; then
1.1.1.3 ! misho 46031: { { echo "$as_me:$LINENO: error: Cannot find enchant" >&5
! 46032: echo "$as_me: error: Cannot find enchant" >&2;}
! 46033: { (exit 1); exit 1; }; }
1.1 misho 46034: fi
46035:
46036: ENCHANT_LIBDIR=$ENCHANT_DIR/lib
46037:
46038:
1.1.1.3 ! misho 46039: cat >>confdefs.h <<\_ACEOF
! 46040: #define HAVE_ENCHANT 1
! 46041: _ACEOF
1.1 misho 46042:
46043:
46044: PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD"
46045:
46046:
46047:
46048: if test "$ext_shared" = "yes"; then
46049: ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD"
46050: if test -n "$ENCHANT_LIBDIR"; then
46051:
46052: if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
46053:
46054: if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
46055: ai_p=$ENCHANT_LIBDIR
46056: else
46057:
46058: ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
46059:
46060: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46061: ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
46062: fi
46063:
46064:
46065: if test "$ext_shared" = "yes"; then
46066: ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD"
46067: test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD"
46068: else
46069:
46070:
46071:
46072: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46073:
46074: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46075: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46076: eval "LIBPATH$unique=set"
46077:
46078: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46079: LDFLAGS="$LDFLAGS -L$ai_p"
46080: PHP_RPATHS="$PHP_RPATHS $ai_p"
46081:
46082: fi
46083:
46084:
46085: fi
46086:
46087: fi
46088:
46089: fi
46090: else
46091:
46092:
46093: if test -n "$ENCHANT_LIBDIR"; then
46094:
46095: if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
46096:
46097: if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
46098: ai_p=$ENCHANT_LIBDIR
46099: else
46100:
46101: ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
46102:
46103: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46104: ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
46105: fi
46106:
46107:
46108:
46109:
46110:
46111: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46112:
46113: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46114: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46115: eval "LIBPATH$unique=set"
46116:
46117: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46118: LDFLAGS="$LDFLAGS -L$ai_p"
46119: PHP_RPATHS="$PHP_RPATHS $ai_p"
46120:
46121: fi
46122:
46123:
46124:
46125: fi
46126:
46127: fi
46128:
46129:
46130: case enchant in
46131: c|c_r|pthread*) ;;
46132: *)
46133: LIBS="-lenchant $LIBS"
46134: ;;
46135: esac
46136:
46137:
46138:
46139:
46140: fi
46141:
46142:
46143:
46144: if test "$ENCHANT_INCDIR" != "/usr/include"; then
46145:
46146: if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then
46147: ai_p=$ENCHANT_INCDIR
46148: else
46149:
46150: ep_dir="`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
46151:
46152: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46153: ai_p="$ep_realdir/`basename \"$ENCHANT_INCDIR\"`"
46154: fi
46155:
46156:
46157:
46158: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46159:
46160: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
46161: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46162: eval "INCLUDEPATH$unique=set"
46163:
46164: if test ""; then
46165: INCLUDES="-I$ai_p $INCLUDES"
46166: else
46167: INCLUDES="$INCLUDES -I$ai_p"
46168: fi
46169:
46170: fi
46171:
46172: fi
46173:
46174:
46175: save_old_LDFLAGS=$LDFLAGS
46176: ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD"
46177:
46178: save_ext_shared=$ext_shared
46179: ext_shared=yes
46180:
46181: for ac_i in $ac_stuff; do
46182: case $ac_i in
46183: -pthread)
46184: if test "$ext_shared" = "yes"; then
46185: LDFLAGS="$LDFLAGS -pthread"
46186: else
46187:
46188:
46189: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
46190:
46191: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
46192: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46193: eval "EXTRA_LDFLAGS$unique=set"
46194: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
46195: fi
46196:
46197: fi
46198: ;;
46199: -l*)
46200: ac_ii=`echo $ac_i|cut -c 3-`
46201:
46202:
46203: case $ac_ii in
46204: c|c_r|pthread*) ;;
46205: *)
46206: if test "$ext_shared" = "yes"; then
46207: LDFLAGS="$LDFLAGS -l$ac_ii"
46208: else
46209:
46210:
46211: case $ac_ii in
46212: c|c_r|pthread*) ;;
46213: *)
46214: LIBS="$LIBS -l$ac_ii"
46215: ;;
46216: esac
46217:
46218:
46219: fi
46220: ;;
46221: esac
46222:
46223:
46224: ;;
46225: -L*)
46226: ac_ii=`echo $ac_i|cut -c 3-`
46227:
46228: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
46229:
46230: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46231: ai_p=$ac_ii
46232: else
46233:
46234: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
46235:
46236: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46237: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
46238: fi
46239:
46240:
46241: if test "$ext_shared" = "yes"; then
46242: LDFLAGS="-L$ai_p $LDFLAGS"
46243: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
46244: else
46245:
46246:
46247:
46248: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46249:
46250: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46251: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46252: eval "LIBPATH$unique=set"
46253:
46254: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46255: LDFLAGS="$LDFLAGS -L$ai_p"
46256: PHP_RPATHS="$PHP_RPATHS $ai_p"
46257:
46258: fi
46259:
46260:
46261: fi
46262:
46263: fi
46264:
46265: ;;
46266: esac
46267: done
46268:
1.1.1.3 ! misho 46269: { echo "$as_me:$LINENO: checking for enchant_broker_set_param in -lenchant" >&5
! 46270: echo $ECHO_N "checking for enchant_broker_set_param in -lenchant... $ECHO_C" >&6; }
! 46271: if test "${ac_cv_lib_enchant_enchant_broker_set_param+set}" = set; then
! 46272: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 46273: else
46274: ac_check_lib_save_LIBS=$LIBS
46275: LIBS="-lenchant $LIBS"
1.1.1.3 ! misho 46276: cat >conftest.$ac_ext <<_ACEOF
! 46277: /* confdefs.h. */
! 46278: _ACEOF
! 46279: cat confdefs.h >>conftest.$ac_ext
! 46280: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 46281: /* end confdefs.h. */
46282:
46283: /* Override any GCC internal prototype to avoid an error.
46284: Use char because int might match the return type of a GCC
46285: builtin and then its argument prototype would still apply. */
46286: #ifdef __cplusplus
46287: extern "C"
46288: #endif
46289: char enchant_broker_set_param ();
46290: int
46291: main ()
46292: {
46293: return enchant_broker_set_param ();
46294: ;
46295: return 0;
46296: }
46297: _ACEOF
1.1.1.3 ! misho 46298: rm -f conftest.$ac_objext conftest$ac_exeext
! 46299: if { (ac_try="$ac_link"
! 46300: case "(($ac_try" in
! 46301: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 46302: *) ac_try_echo=$ac_try;;
! 46303: esac
! 46304: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 46305: (eval "$ac_link") 2>conftest.er1
! 46306: ac_status=$?
! 46307: grep -v '^ *+' conftest.er1 >conftest.err
! 46308: rm -f conftest.er1
! 46309: cat conftest.err >&5
! 46310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 46311: (exit $ac_status); } && {
! 46312: test -z "$ac_c_werror_flag" ||
! 46313: test ! -s conftest.err
! 46314: } && test -s conftest$ac_exeext &&
! 46315: $as_test_x conftest$ac_exeext; then
1.1 misho 46316: ac_cv_lib_enchant_enchant_broker_set_param=yes
46317: else
1.1.1.3 ! misho 46318: echo "$as_me: failed program was:" >&5
! 46319: sed 's/^/| /' conftest.$ac_ext >&5
! 46320:
! 46321: ac_cv_lib_enchant_enchant_broker_set_param=no
1.1 misho 46322: fi
1.1.1.3 ! misho 46323:
! 46324: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 46325: conftest$ac_exeext conftest.$ac_ext
1.1 misho 46326: LIBS=$ac_check_lib_save_LIBS
46327: fi
1.1.1.3 ! misho 46328: { echo "$as_me:$LINENO: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5
! 46329: echo "${ECHO_T}$ac_cv_lib_enchant_enchant_broker_set_param" >&6; }
! 46330: if test $ac_cv_lib_enchant_enchant_broker_set_param = yes; then
1.1 misho 46331:
46332: LDFLAGS=$save_old_LDFLAGS
46333: ext_shared=$save_ext_shared
46334:
46335:
1.1.1.3 ! misho 46336: cat >>confdefs.h <<\_ACEOF
! 46337: #define HAVE_ENCHANT_BROKER_SET_PARAM 1
! 46338: _ACEOF
1.1 misho 46339:
46340:
1.1.1.3 ! misho 46341: cat >>confdefs.h <<\_ACEOF
! 46342: #define ENCHANT_VERSION_STRING "1.5.x"
! 46343: _ACEOF
1.1 misho 46344:
46345:
46346:
46347: else
46348:
46349: LDFLAGS=$save_old_LDFLAGS
46350: ext_shared=$save_ext_shared
46351: unset ac_cv_lib_enchant_enchant_broker_set_param
46352:
46353:
46354: fi
46355:
46356:
46357: fi
46358:
46359:
46360:
46361: php_enable_exif=no
46362:
1.1.1.3 ! misho 46363: { echo "$as_me:$LINENO: checking whether to enable EXIF (metadata from images) support" >&5
! 46364: echo $ECHO_N "checking whether to enable EXIF (metadata from images) support... $ECHO_C" >&6; }
1.1 misho 46365: # Check whether --enable-exif was given.
1.1.1.3 ! misho 46366: if test "${enable_exif+set}" = set; then
1.1 misho 46367: enableval=$enable_exif; PHP_EXIF=$enableval
46368: else
46369:
46370: PHP_EXIF=no
46371: test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL
46372:
46373: fi
46374:
46375:
46376:
46377: ext_output="yes, shared"
46378: ext_shared=yes
46379: case $PHP_EXIF in
46380: shared,*)
46381: PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'`
46382: ;;
46383: shared)
46384: PHP_EXIF=yes
46385: ;;
46386: no)
46387: ext_output=no
46388: ext_shared=no
46389: ;;
46390: *)
46391: ext_output=yes
46392: ext_shared=no
46393: ;;
46394: esac
46395:
46396:
46397:
1.1.1.3 ! misho 46398: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 46399: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 46400:
46401:
46402:
46403:
46404: if test "$PHP_EXIF" != "no"; then
46405:
1.1.1.3 ! misho 46406: cat >>confdefs.h <<\_ACEOF
! 46407: #define HAVE_EXIF 1
! 46408: _ACEOF
1.1 misho 46409:
46410:
46411: ext_builddir=ext/exif
46412: ext_srcdir=$abs_srcdir/ext/exif
46413:
46414: ac_extra=
46415:
46416: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
46417: PHP_EXIF_SHARED=no
46418:
46419:
46420: case ext/exif in
46421: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46422: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46423: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46424: esac
46425:
46426:
46427:
46428: b_c_pre=$php_c_pre
46429: b_cxx_pre=$php_cxx_pre
46430: b_c_meta=$php_c_meta
46431: b_cxx_meta=$php_cxx_meta
46432: b_c_post=$php_c_post
46433: b_cxx_post=$php_cxx_post
46434: b_lo=$php_lo
46435:
46436:
46437: old_IFS=$IFS
46438: for ac_src in exif.c; do
46439:
46440: IFS=.
46441: set $ac_src
46442: ac_obj=$1
46443: IFS=$old_IFS
46444:
46445: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46446:
46447: case $ac_src in
46448: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46449: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46450: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46451: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46452: esac
46453:
46454: cat >>Makefile.objects<<EOF
46455: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46456: $ac_comp
46457: EOF
46458: done
46459:
46460:
46461: EXT_STATIC="$EXT_STATIC exif"
46462: if test "$ext_shared" != "nocli"; then
46463: EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
46464: fi
46465: else
46466: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
46467: PHP_EXIF_SHARED=yes
46468:
46469: case ext/exif in
46470: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46471: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46472: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46473: esac
46474:
46475:
46476:
46477: b_c_pre=$shared_c_pre
46478: b_cxx_pre=$shared_cxx_pre
46479: b_c_meta=$shared_c_meta
46480: b_cxx_meta=$shared_cxx_meta
46481: b_c_post=$shared_c_post
46482: b_cxx_post=$shared_cxx_post
46483: b_lo=$shared_lo
46484:
46485:
46486: old_IFS=$IFS
46487: for ac_src in exif.c; do
46488:
46489: IFS=.
46490: set $ac_src
46491: ac_obj=$1
46492: IFS=$old_IFS
46493:
46494: shared_objects_exif="$shared_objects_exif $ac_bdir$ac_obj.lo"
46495:
46496: case $ac_src in
46497: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46498: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46499: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46500: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46501: esac
46502:
46503: cat >>Makefile.objects<<EOF
46504: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46505: $ac_comp
46506: EOF
46507: done
46508:
46509: case $host_alias in
46510: *netware*)
46511:
46512: install_modules="install-modules"
46513:
46514: case $host_alias in
46515: *aix*)
46516: suffix=so
46517: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpexif.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(PHPEXIF_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpexif.so '$ext_builddir'/phpexif.so'
46518: ;;
46519: *netware*)
46520: suffix=nlm
46521: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) -L$(top_builddir)/netware -lphp5lib $(EXIF_SHARED_LIBADD)'
46522: ;;
46523: *)
46524: suffix=la
46525: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(PHPEXIF_SHARED_LIBADD)'
46526: ;;
46527: esac
46528:
46529: if test "x" = "xyes"; then
46530: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpexif.$suffix"
46531: else
46532: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpexif.$suffix"
46533: fi
46534:
46535: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
46536:
46537: cat >>Makefile.objects<<EOF
46538: \$(phplibdir)/phpexif.$suffix: $ext_builddir/phpexif.$suffix
46539: \$(LIBTOOL) --mode=install cp $ext_builddir/phpexif.$suffix \$(phplibdir)
46540:
46541: $ext_builddir/phpexif.$suffix: \$(shared_objects_exif) \$(PHPEXIF_SHARED_DEPENDENCIES)
46542: $link_cmd
46543:
46544: EOF
46545:
46546: ;;
46547: *)
46548:
46549: install_modules="install-modules"
46550:
46551: case $host_alias in
46552: *aix*)
46553: suffix=so
46554: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/exif.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(EXIF_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/exif.so '$ext_builddir'/exif.so'
46555: ;;
46556: *netware*)
46557: suffix=nlm
46558: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) -L$(top_builddir)/netware -lphp5lib $(F_SHARED_LIBADD)'
46559: ;;
46560: *)
46561: suffix=la
46562: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(EXIF_SHARED_LIBADD)'
46563: ;;
46564: esac
46565:
46566: if test "x" = "xyes"; then
46567: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/exif.$suffix"
46568: else
46569: PHP_MODULES="$PHP_MODULES \$(phplibdir)/exif.$suffix"
46570: fi
46571:
46572: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
46573:
46574: cat >>Makefile.objects<<EOF
46575: \$(phplibdir)/exif.$suffix: $ext_builddir/exif.$suffix
46576: \$(LIBTOOL) --mode=install cp $ext_builddir/exif.$suffix \$(phplibdir)
46577:
46578: $ext_builddir/exif.$suffix: \$(shared_objects_exif) \$(EXIF_SHARED_DEPENDENCIES)
46579: $link_cmd
46580:
46581: EOF
46582:
46583: ;;
46584: esac
46585:
46586: cat >>confdefs.h <<_ACEOF
46587: #define COMPILE_DL_EXIF 1
46588: _ACEOF
46589:
46590: fi
46591: fi
46592:
46593: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
46594: PHP_EXIF_SHARED=no
1.1.1.3 ! misho 46595: case "$PHP_SAPI" in
! 46596: cgi|embed)
1.1 misho 46597:
46598:
46599: case ext/exif in
46600: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46601: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46602: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46603: esac
46604:
46605:
46606:
46607: b_c_pre=$php_c_pre
46608: b_cxx_pre=$php_cxx_pre
46609: b_c_meta=$php_c_meta
46610: b_cxx_meta=$php_cxx_meta
46611: b_c_post=$php_c_post
46612: b_cxx_post=$php_cxx_post
46613: b_lo=$php_lo
46614:
46615:
46616: old_IFS=$IFS
46617: for ac_src in exif.c; do
46618:
46619: IFS=.
46620: set $ac_src
46621: ac_obj=$1
46622: IFS=$old_IFS
46623:
1.1.1.2 misho 46624: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 46625:
46626: case $ac_src in
46627: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46628: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46629: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46630: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46631: esac
46632:
46633: cat >>Makefile.objects<<EOF
46634: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46635: $ac_comp
46636: EOF
46637: done
46638:
46639:
1.1.1.3 ! misho 46640: EXT_STATIC="$EXT_STATIC exif"
! 46641: ;;
! 46642: *)
1.1 misho 46643:
46644:
46645: case ext/exif in
46646: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46647: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46648: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46649: esac
46650:
46651:
46652:
46653: b_c_pre=$php_c_pre
46654: b_cxx_pre=$php_cxx_pre
46655: b_c_meta=$php_c_meta
46656: b_cxx_meta=$php_cxx_meta
46657: b_c_post=$php_c_post
46658: b_cxx_post=$php_cxx_post
46659: b_lo=$php_lo
46660:
46661:
46662: old_IFS=$IFS
46663: for ac_src in exif.c; do
46664:
46665: IFS=.
46666: set $ac_src
46667: ac_obj=$1
46668: IFS=$old_IFS
46669:
1.1.1.2 misho 46670: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 46671:
46672: case $ac_src in
46673: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46674: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46675: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46676: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46677: esac
46678:
46679: cat >>Makefile.objects<<EOF
46680: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46681: $ac_comp
46682: EOF
46683: done
46684:
46685:
1.1.1.3 ! misho 46686: ;;
! 46687: esac
1.1 misho 46688: EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
46689: fi
46690:
46691:
46692: BUILD_DIR="$BUILD_DIR $ext_builddir"
46693:
46694:
46695:
46696: if test "$ext_builddir" = "."; then
46697: PHP_PECL_EXTENSION=exif
46698:
46699: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
46700:
46701: fi
46702:
46703: fi
46704:
46705:
46706:
46707: php_enable_fileinfo=yes
46708:
1.1.1.3 ! misho 46709: { echo "$as_me:$LINENO: checking for fileinfo support" >&5
! 46710: echo $ECHO_N "checking for fileinfo support... $ECHO_C" >&6; }
1.1 misho 46711: # Check whether --enable-fileinfo was given.
1.1.1.3 ! misho 46712: if test "${enable_fileinfo+set}" = set; then
1.1 misho 46713: enableval=$enable_fileinfo; PHP_FILEINFO=$enableval
46714: else
46715:
46716: PHP_FILEINFO=yes
46717: test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL
46718:
46719: fi
46720:
46721:
46722:
46723: ext_output="yes, shared"
46724: ext_shared=yes
46725: case $PHP_FILEINFO in
46726: shared,*)
46727: PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'`
46728: ;;
46729: shared)
46730: PHP_FILEINFO=yes
46731: ;;
46732: no)
46733: ext_output=no
46734: ext_shared=no
46735: ;;
46736: *)
46737: ext_output=yes
46738: ext_shared=no
46739: ;;
46740: esac
46741:
46742:
46743:
1.1.1.3 ! misho 46744: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 46745: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 46746:
46747:
46748:
46749:
46750: if test "$PHP_FILEINFO" != "no"; then
46751:
46752: libmagic_sources=" \
46753: libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
46754: libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
46755: libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
46756: libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
46757: libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
46758:
46759:
46760: ext_builddir=ext/fileinfo
46761: ext_srcdir=$abs_srcdir/ext/fileinfo
46762:
46763: ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
46764:
46765: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
46766: PHP_FILEINFO_SHARED=no
46767:
46768:
46769: case ext/fileinfo in
46770: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46771: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46772: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46773: esac
46774:
46775:
46776:
46777: b_c_pre=$php_c_pre
46778: b_cxx_pre=$php_cxx_pre
46779: b_c_meta=$php_c_meta
46780: b_cxx_meta=$php_cxx_meta
46781: b_c_post=$php_c_post
46782: b_cxx_post=$php_cxx_post
46783: b_lo=$php_lo
46784:
46785:
46786: old_IFS=$IFS
46787: for ac_src in fileinfo.c $libmagic_sources; do
46788:
46789: IFS=.
46790: set $ac_src
46791: ac_obj=$1
46792: IFS=$old_IFS
46793:
46794: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46795:
46796: case $ac_src in
46797: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46798: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46799: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46800: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46801: esac
46802:
46803: cat >>Makefile.objects<<EOF
46804: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46805: $ac_comp
46806: EOF
46807: done
46808:
46809:
46810: EXT_STATIC="$EXT_STATIC fileinfo"
46811: if test "$ext_shared" != "nocli"; then
46812: EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
46813: fi
46814: else
46815: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
46816: PHP_FILEINFO_SHARED=yes
46817:
46818: case ext/fileinfo in
46819: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46820: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46821: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46822: esac
46823:
46824:
46825:
46826: b_c_pre=$shared_c_pre
46827: b_cxx_pre=$shared_cxx_pre
46828: b_c_meta=$shared_c_meta
46829: b_cxx_meta=$shared_cxx_meta
46830: b_c_post=$shared_c_post
46831: b_cxx_post=$shared_cxx_post
46832: b_lo=$shared_lo
46833:
46834:
46835: old_IFS=$IFS
46836: for ac_src in fileinfo.c $libmagic_sources; do
46837:
46838: IFS=.
46839: set $ac_src
46840: ac_obj=$1
46841: IFS=$old_IFS
46842:
46843: shared_objects_fileinfo="$shared_objects_fileinfo $ac_bdir$ac_obj.lo"
46844:
46845: case $ac_src in
46846: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46847: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46848: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46849: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46850: esac
46851:
46852: cat >>Makefile.objects<<EOF
46853: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46854: $ac_comp
46855: EOF
46856: done
46857:
46858: case $host_alias in
46859: *netware*)
46860:
46861: install_modules="install-modules"
46862:
46863: case $host_alias in
46864: *aix*)
46865: suffix=so
46866: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfileinfo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(PHPFILEINFO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfileinfo.so '$ext_builddir'/phpfileinfo.so'
46867: ;;
46868: *netware*)
46869: suffix=nlm
46870: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) -L$(top_builddir)/netware -lphp5lib $(FILEINFO_SHARED_LIBADD)'
46871: ;;
46872: *)
46873: suffix=la
46874: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(PHPFILEINFO_SHARED_LIBADD)'
46875: ;;
46876: esac
46877:
46878: if test "x" = "xyes"; then
46879: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfileinfo.$suffix"
46880: else
46881: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfileinfo.$suffix"
46882: fi
46883:
46884: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
46885:
46886: cat >>Makefile.objects<<EOF
46887: \$(phplibdir)/phpfileinfo.$suffix: $ext_builddir/phpfileinfo.$suffix
46888: \$(LIBTOOL) --mode=install cp $ext_builddir/phpfileinfo.$suffix \$(phplibdir)
46889:
46890: $ext_builddir/phpfileinfo.$suffix: \$(shared_objects_fileinfo) \$(PHPFILEINFO_SHARED_DEPENDENCIES)
46891: $link_cmd
46892:
46893: EOF
46894:
46895: ;;
46896: *)
46897:
46898: install_modules="install-modules"
46899:
46900: case $host_alias in
46901: *aix*)
46902: suffix=so
46903: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/fileinfo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(FILEINFO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/fileinfo.so '$ext_builddir'/fileinfo.so'
46904: ;;
46905: *netware*)
46906: suffix=nlm
46907: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) -L$(top_builddir)/netware -lphp5lib $(EINFO_SHARED_LIBADD)'
46908: ;;
46909: *)
46910: suffix=la
46911: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(FILEINFO_SHARED_LIBADD)'
46912: ;;
46913: esac
46914:
46915: if test "x" = "xyes"; then
46916: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fileinfo.$suffix"
46917: else
46918: PHP_MODULES="$PHP_MODULES \$(phplibdir)/fileinfo.$suffix"
46919: fi
46920:
46921: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
46922:
46923: cat >>Makefile.objects<<EOF
46924: \$(phplibdir)/fileinfo.$suffix: $ext_builddir/fileinfo.$suffix
46925: \$(LIBTOOL) --mode=install cp $ext_builddir/fileinfo.$suffix \$(phplibdir)
46926:
46927: $ext_builddir/fileinfo.$suffix: \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_DEPENDENCIES)
46928: $link_cmd
46929:
46930: EOF
46931:
46932: ;;
46933: esac
46934:
46935: cat >>confdefs.h <<_ACEOF
46936: #define COMPILE_DL_FILEINFO 1
46937: _ACEOF
46938:
46939: fi
46940: fi
46941:
46942: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
46943: PHP_FILEINFO_SHARED=no
1.1.1.3 ! misho 46944: case "$PHP_SAPI" in
! 46945: cgi|embed)
1.1 misho 46946:
46947:
46948: case ext/fileinfo in
46949: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46950: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46951: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46952: esac
46953:
46954:
46955:
46956: b_c_pre=$php_c_pre
46957: b_cxx_pre=$php_cxx_pre
46958: b_c_meta=$php_c_meta
46959: b_cxx_meta=$php_cxx_meta
46960: b_c_post=$php_c_post
46961: b_cxx_post=$php_cxx_post
46962: b_lo=$php_lo
46963:
46964:
46965: old_IFS=$IFS
46966: for ac_src in fileinfo.c $libmagic_sources; do
46967:
46968: IFS=.
46969: set $ac_src
46970: ac_obj=$1
46971: IFS=$old_IFS
46972:
1.1.1.2 misho 46973: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 46974:
46975: case $ac_src in
46976: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46977: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46978: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46979: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46980: esac
46981:
46982: cat >>Makefile.objects<<EOF
46983: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46984: $ac_comp
46985: EOF
46986: done
46987:
46988:
1.1.1.3 ! misho 46989: EXT_STATIC="$EXT_STATIC fileinfo"
! 46990: ;;
! 46991: *)
1.1 misho 46992:
46993:
46994: case ext/fileinfo in
46995: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46996: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46997: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46998: esac
46999:
47000:
47001:
47002: b_c_pre=$php_c_pre
47003: b_cxx_pre=$php_cxx_pre
47004: b_c_meta=$php_c_meta
47005: b_cxx_meta=$php_cxx_meta
47006: b_c_post=$php_c_post
47007: b_cxx_post=$php_cxx_post
47008: b_lo=$php_lo
47009:
47010:
47011: old_IFS=$IFS
47012: for ac_src in fileinfo.c $libmagic_sources; do
47013:
47014: IFS=.
47015: set $ac_src
47016: ac_obj=$1
47017: IFS=$old_IFS
47018:
1.1.1.2 misho 47019: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 47020:
47021: case $ac_src in
47022: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47023: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47024: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47025: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47026: esac
47027:
47028: cat >>Makefile.objects<<EOF
47029: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47030: $ac_comp
47031: EOF
47032: done
47033:
47034:
1.1.1.3 ! misho 47035: ;;
! 47036: esac
! 47037: EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
! 47038: fi
1.1 misho 47039:
47040:
1.1.1.3 ! misho 47041: BUILD_DIR="$BUILD_DIR $ext_builddir"
1.1 misho 47042:
47043:
47044:
1.1.1.3 ! misho 47045: if test "$ext_builddir" = "."; then
! 47046: PHP_PECL_EXTENSION=fileinfo
1.1 misho 47047:
1.1.1.3 ! misho 47048: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
1.1 misho 47049:
1.1.1.3 ! misho 47050: fi
1.1 misho 47051:
47052:
47053:
1.1.1.3 ! misho 47054: BUILD_DIR="$BUILD_DIR $ext_builddir/libmagic"
1.1 misho 47055:
47056:
47057:
47058:
47059:
1.1.1.3 ! misho 47060: for ac_func in utimes strndup
! 47061: do
! 47062: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 47063: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 47064: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 47065: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 47066: echo $ECHO_N "(cached) $ECHO_C" >&6
! 47067: else
! 47068: cat >conftest.$ac_ext <<_ACEOF
! 47069: /* confdefs.h. */
! 47070: _ACEOF
! 47071: cat confdefs.h >>conftest.$ac_ext
! 47072: cat >>conftest.$ac_ext <<_ACEOF
! 47073: /* end confdefs.h. */
! 47074: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 47075: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 47076: #define $ac_func innocuous_$ac_func
1.1 misho 47077:
1.1.1.3 ! misho 47078: /* System header to define __stub macros and hopefully few prototypes,
! 47079: which can conflict with char $ac_func (); below.
! 47080: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 47081: <limits.h> exists even on freestanding compilers. */
1.1 misho 47082:
1.1.1.3 ! misho 47083: #ifdef __STDC__
! 47084: # include <limits.h>
! 47085: #else
! 47086: # include <assert.h>
! 47087: #endif
1.1 misho 47088:
1.1.1.3 ! misho 47089: #undef $ac_func
1.1 misho 47090:
1.1.1.3 ! misho 47091: /* Override any GCC internal prototype to avoid an error.
! 47092: Use char because int might match the return type of a GCC
! 47093: builtin and then its argument prototype would still apply. */
! 47094: #ifdef __cplusplus
! 47095: extern "C"
! 47096: #endif
! 47097: char $ac_func ();
! 47098: /* The GNU C library defines this for functions which it implements
! 47099: to always fail with ENOSYS. Some functions are actually named
! 47100: something starting with __ and the normal name is an alias. */
! 47101: #if defined __stub_$ac_func || defined __stub___$ac_func
! 47102: choke me
! 47103: #endif
1.1 misho 47104:
1.1.1.3 ! misho 47105: int
! 47106: main ()
! 47107: {
! 47108: return $ac_func ();
! 47109: ;
! 47110: return 0;
! 47111: }
! 47112: _ACEOF
! 47113: rm -f conftest.$ac_objext conftest$ac_exeext
! 47114: if { (ac_try="$ac_link"
! 47115: case "(($ac_try" in
! 47116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 47117: *) ac_try_echo=$ac_try;;
! 47118: esac
! 47119: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 47120: (eval "$ac_link") 2>conftest.er1
! 47121: ac_status=$?
! 47122: grep -v '^ *+' conftest.er1 >conftest.err
! 47123: rm -f conftest.er1
! 47124: cat conftest.err >&5
! 47125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 47126: (exit $ac_status); } && {
! 47127: test -z "$ac_c_werror_flag" ||
! 47128: test ! -s conftest.err
! 47129: } && test -s conftest$ac_exeext &&
! 47130: $as_test_x conftest$ac_exeext; then
! 47131: eval "$as_ac_var=yes"
! 47132: else
! 47133: echo "$as_me: failed program was:" >&5
! 47134: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 47135:
1.1.1.3 ! misho 47136: eval "$as_ac_var=no"
! 47137: fi
1.1 misho 47138:
1.1.1.3 ! misho 47139: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 47140: conftest$ac_exeext conftest.$ac_ext
! 47141: fi
! 47142: ac_res=`eval echo '${'$as_ac_var'}'`
! 47143: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 47144: echo "${ECHO_T}$ac_res" >&6; }
! 47145: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 47146: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 47147: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 47148: _ACEOF
47149:
47150: fi
47151: done
47152:
47153:
47154:
47155: src=$ext_srcdir/Makefile.frag
47156: ac_srcdir=$ext_srcdir
47157: ac_builddir=$ext_builddir
47158: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
47159:
47160: fi
47161:
47162:
47163:
47164: php_enable_filter=yes
47165:
1.1.1.3 ! misho 47166: { echo "$as_me:$LINENO: checking whether to enable input filter support" >&5
! 47167: echo $ECHO_N "checking whether to enable input filter support... $ECHO_C" >&6; }
1.1 misho 47168: # Check whether --enable-filter was given.
1.1.1.3 ! misho 47169: if test "${enable_filter+set}" = set; then
1.1 misho 47170: enableval=$enable_filter; PHP_FILTER=$enableval
47171: else
47172:
47173: PHP_FILTER=yes
47174: test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL
47175:
47176: fi
47177:
47178:
47179:
47180: ext_output="yes, shared"
47181: ext_shared=yes
47182: case $PHP_FILTER in
47183: shared,*)
47184: PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'`
47185: ;;
47186: shared)
47187: PHP_FILTER=yes
47188: ;;
47189: no)
47190: ext_output=no
47191: ext_shared=no
47192: ;;
47193: *)
47194: ext_output=yes
47195: ext_shared=no
47196: ;;
47197: esac
47198:
47199:
47200:
1.1.1.3 ! misho 47201: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 47202: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 47203:
47204:
47205:
47206:
47207:
47208: php_with_pcre_dir=no
47209:
1.1.1.3 ! misho 47210: { echo "$as_me:$LINENO: checking pcre install prefix" >&5
! 47211: echo $ECHO_N "checking pcre install prefix... $ECHO_C" >&6; }
1.1 misho 47212:
47213: # Check whether --with-pcre-dir was given.
1.1.1.3 ! misho 47214: if test "${with_pcre_dir+set}" = set; then
1.1 misho 47215: withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
47216: else
47217:
47218: PHP_PCRE_DIR=no
47219:
47220:
47221: fi
47222:
47223:
47224: ext_output=$PHP_PCRE_DIR
1.1.1.3 ! misho 47225: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 47226: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 47227:
47228:
47229:
47230:
47231: if test "$PHP_FILTER" != "no"; then
47232:
47233: if test -n "$PHP_VERSION"; then
47234: ext_shared=no
47235: else
47236: old_CPPFLAGS=$CPPFLAGS
47237: CPPFLAGS=$INCLUDES
1.1.1.3 ! misho 47238: cat >conftest.$ac_ext <<_ACEOF
! 47239: /* confdefs.h. */
! 47240: _ACEOF
! 47241: cat confdefs.h >>conftest.$ac_ext
! 47242: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 47243: /* end confdefs.h. */
47244:
47245: #include <main/php_config.h>
47246: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
47247: yes
47248: #endif
47249:
47250: _ACEOF
47251: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 47252: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 47253:
47254: PHP_PCRE_REGEX=yes
47255:
47256: else
47257:
1.1.1.3 ! misho 47258: cat >conftest.$ac_ext <<_ACEOF
! 47259: /* confdefs.h. */
! 47260: _ACEOF
! 47261: cat confdefs.h >>conftest.$ac_ext
! 47262: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 47263: /* end confdefs.h. */
47264:
47265: #include <main/php_config.h>
47266: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
47267: yes
47268: #endif
47269:
47270: _ACEOF
47271: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 47272: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 47273:
47274: PHP_PCRE_REGEX=pecl
47275:
47276: else
47277:
47278: PHP_PCRE_REGEX=no
47279:
47280: fi
1.1.1.3 ! misho 47281: rm -f -r conftest*
1.1 misho 47282:
47283:
47284: fi
1.1.1.3 ! misho 47285: rm -f -r conftest*
1.1 misho 47286:
47287: CPPFLAGS=$old_CPPFLAGS
47288: fi
47289:
47290:
47291: ext_builddir=ext/filter
47292: ext_srcdir=$abs_srcdir/ext/filter
47293:
47294: ac_extra=
47295:
47296: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
47297: PHP_FILTER_SHARED=no
47298:
47299:
47300: case ext/filter in
47301: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47302: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47303: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47304: esac
47305:
47306:
47307:
47308: b_c_pre=$php_c_pre
47309: b_cxx_pre=$php_cxx_pre
47310: b_c_meta=$php_c_meta
47311: b_cxx_meta=$php_cxx_meta
47312: b_c_post=$php_c_post
47313: b_cxx_post=$php_cxx_post
47314: b_lo=$php_lo
47315:
47316:
47317: old_IFS=$IFS
47318: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
47319:
47320: IFS=.
47321: set $ac_src
47322: ac_obj=$1
47323: IFS=$old_IFS
47324:
47325: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47326:
47327: case $ac_src in
47328: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47329: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47330: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47331: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47332: esac
47333:
47334: cat >>Makefile.objects<<EOF
47335: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47336: $ac_comp
47337: EOF
47338: done
47339:
47340:
47341: EXT_STATIC="$EXT_STATIC filter"
47342: if test "$ext_shared" != "nocli"; then
47343: EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
47344: fi
47345: else
47346: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
47347: PHP_FILTER_SHARED=yes
47348:
47349: case ext/filter in
47350: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47351: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47352: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47353: esac
47354:
47355:
47356:
47357: b_c_pre=$shared_c_pre
47358: b_cxx_pre=$shared_cxx_pre
47359: b_c_meta=$shared_c_meta
47360: b_cxx_meta=$shared_cxx_meta
47361: b_c_post=$shared_c_post
47362: b_cxx_post=$shared_cxx_post
47363: b_lo=$shared_lo
47364:
47365:
47366: old_IFS=$IFS
47367: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
47368:
47369: IFS=.
47370: set $ac_src
47371: ac_obj=$1
47372: IFS=$old_IFS
47373:
47374: shared_objects_filter="$shared_objects_filter $ac_bdir$ac_obj.lo"
47375:
47376: case $ac_src in
47377: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47378: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47379: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47380: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47381: esac
47382:
47383: cat >>Makefile.objects<<EOF
47384: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47385: $ac_comp
47386: EOF
47387: done
47388:
47389: case $host_alias in
47390: *netware*)
47391:
47392: install_modules="install-modules"
47393:
47394: case $host_alias in
47395: *aix*)
47396: suffix=so
47397: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfilter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(PHPFILTER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfilter.so '$ext_builddir'/phpfilter.so'
47398: ;;
47399: *netware*)
47400: suffix=nlm
47401: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) -L$(top_builddir)/netware -lphp5lib $(FILTER_SHARED_LIBADD)'
47402: ;;
47403: *)
47404: suffix=la
47405: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(PHPFILTER_SHARED_LIBADD)'
47406: ;;
47407: esac
47408:
47409: if test "x" = "xyes"; then
47410: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfilter.$suffix"
47411: else
47412: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfilter.$suffix"
47413: fi
47414:
47415: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
47416:
47417: cat >>Makefile.objects<<EOF
47418: \$(phplibdir)/phpfilter.$suffix: $ext_builddir/phpfilter.$suffix
47419: \$(LIBTOOL) --mode=install cp $ext_builddir/phpfilter.$suffix \$(phplibdir)
47420:
47421: $ext_builddir/phpfilter.$suffix: \$(shared_objects_filter) \$(PHPFILTER_SHARED_DEPENDENCIES)
47422: $link_cmd
47423:
47424: EOF
47425:
47426: ;;
47427: *)
47428:
47429: install_modules="install-modules"
47430:
47431: case $host_alias in
47432: *aix*)
47433: suffix=so
47434: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/filter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(FILTER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/filter.so '$ext_builddir'/filter.so'
47435: ;;
47436: *netware*)
47437: suffix=nlm
47438: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) -L$(top_builddir)/netware -lphp5lib $(TER_SHARED_LIBADD)'
47439: ;;
47440: *)
47441: suffix=la
47442: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(FILTER_SHARED_LIBADD)'
47443: ;;
47444: esac
47445:
47446: if test "x" = "xyes"; then
47447: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/filter.$suffix"
47448: else
47449: PHP_MODULES="$PHP_MODULES \$(phplibdir)/filter.$suffix"
47450: fi
47451:
47452: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
47453:
47454: cat >>Makefile.objects<<EOF
47455: \$(phplibdir)/filter.$suffix: $ext_builddir/filter.$suffix
47456: \$(LIBTOOL) --mode=install cp $ext_builddir/filter.$suffix \$(phplibdir)
47457:
47458: $ext_builddir/filter.$suffix: \$(shared_objects_filter) \$(FILTER_SHARED_DEPENDENCIES)
47459: $link_cmd
47460:
47461: EOF
47462:
47463: ;;
47464: esac
47465:
47466: cat >>confdefs.h <<_ACEOF
47467: #define COMPILE_DL_FILTER 1
47468: _ACEOF
47469:
47470: fi
47471: fi
47472:
47473: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
47474: PHP_FILTER_SHARED=no
1.1.1.3 ! misho 47475: case "$PHP_SAPI" in
! 47476: cgi|embed)
1.1 misho 47477:
47478:
47479: case ext/filter in
47480: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47481: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47482: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47483: esac
47484:
47485:
47486:
47487: b_c_pre=$php_c_pre
47488: b_cxx_pre=$php_cxx_pre
47489: b_c_meta=$php_c_meta
47490: b_cxx_meta=$php_cxx_meta
47491: b_c_post=$php_c_post
47492: b_cxx_post=$php_cxx_post
47493: b_lo=$php_lo
47494:
47495:
47496: old_IFS=$IFS
47497: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
47498:
47499: IFS=.
47500: set $ac_src
47501: ac_obj=$1
47502: IFS=$old_IFS
47503:
1.1.1.2 misho 47504: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 47505:
47506: case $ac_src in
47507: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47508: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47509: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47510: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47511: esac
47512:
47513: cat >>Makefile.objects<<EOF
47514: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47515: $ac_comp
47516: EOF
47517: done
47518:
47519:
1.1.1.3 ! misho 47520: EXT_STATIC="$EXT_STATIC filter"
! 47521: ;;
! 47522: *)
1.1 misho 47523:
47524:
47525: case ext/filter in
47526: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47527: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47528: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47529: esac
47530:
47531:
47532:
47533: b_c_pre=$php_c_pre
47534: b_cxx_pre=$php_cxx_pre
47535: b_c_meta=$php_c_meta
47536: b_cxx_meta=$php_cxx_meta
47537: b_c_post=$php_c_post
47538: b_cxx_post=$php_cxx_post
47539: b_lo=$php_lo
47540:
47541:
47542: old_IFS=$IFS
47543: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
47544:
47545: IFS=.
47546: set $ac_src
47547: ac_obj=$1
47548: IFS=$old_IFS
47549:
1.1.1.2 misho 47550: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 47551:
47552: case $ac_src in
47553: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47554: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47555: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47556: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47557: esac
47558:
47559: cat >>Makefile.objects<<EOF
47560: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47561: $ac_comp
47562: EOF
47563: done
47564:
47565:
1.1.1.3 ! misho 47566: ;;
! 47567: esac
1.1 misho 47568: EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
47569: fi
47570:
47571:
47572: BUILD_DIR="$BUILD_DIR $ext_builddir"
47573:
47574:
47575:
47576: if test "$ext_builddir" = "."; then
47577: PHP_PECL_EXTENSION=filter
47578:
47579: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
47580:
47581: fi
47582:
47583:
47584: PHP_VAR_SUBST="$PHP_VAR_SUBST FILTER_SHARED_LIBADD"
47585:
47586:
47587:
47588:
47589: for header_file in ext/filter/php_filter.h; do
47590:
47591:
47592: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
47593:
47594: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
47595: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47596: eval "INSTALLHEADERS$unique=set"
47597:
47598: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
47599:
47600: fi
47601:
47602: done
47603:
47604:
47605:
47606: am_i_shared=$PHP_FILTER_SHARED
47607: is_it_shared=$PHP_PCRE_SHARED
47608: is_it_enabled=$PHP_PCRE
47609: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 47610: { { echo "$as_me:$LINENO: error:
! 47611: You've configured extension filter to build statically, but it
! 47612: depends on extension pcre, which you've configured to build shared.
! 47613: You either need to build filter shared or build pcre statically for the
! 47614: build to be successful.
! 47615: " >&5
! 47616: echo "$as_me: error:
1.1 misho 47617: You've configured extension filter to build statically, but it
47618: depends on extension pcre, which you've configured to build shared.
47619: You either need to build filter shared or build pcre statically for the
47620: build to be successful.
1.1.1.3 ! misho 47621: " >&2;}
! 47622: { (exit 1); exit 1; }; }
! 47623: fi
! 47624: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 47625: { { echo "$as_me:$LINENO: error:
! 47626: You've configured extension filter, which depends on extension pcre,
! 47627: but you've either not enabled pcre, or have disabled it.
! 47628: " >&5
! 47629: echo "$as_me: error:
! 47630: You've configured extension filter, which depends on extension pcre,
! 47631: but you've either not enabled pcre, or have disabled it.
! 47632: " >&2;}
! 47633: { (exit 1); exit 1; }; }
1.1 misho 47634: fi
47635:
47636: fi
47637:
47638:
47639:
47640: php_enable_ftp=no
47641:
1.1.1.3 ! misho 47642: { echo "$as_me:$LINENO: checking whether to enable FTP support" >&5
! 47643: echo $ECHO_N "checking whether to enable FTP support... $ECHO_C" >&6; }
1.1 misho 47644: # Check whether --enable-ftp was given.
1.1.1.3 ! misho 47645: if test "${enable_ftp+set}" = set; then
1.1 misho 47646: enableval=$enable_ftp; PHP_FTP=$enableval
47647: else
47648:
47649: PHP_FTP=no
47650: test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL
47651:
47652: fi
47653:
47654:
47655:
47656: ext_output="yes, shared"
47657: ext_shared=yes
47658: case $PHP_FTP in
47659: shared,*)
47660: PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'`
47661: ;;
47662: shared)
47663: PHP_FTP=yes
47664: ;;
47665: no)
47666: ext_output=no
47667: ext_shared=no
47668: ;;
47669: *)
47670: ext_output=yes
47671: ext_shared=no
47672: ;;
47673: esac
47674:
47675:
47676:
1.1.1.3 ! misho 47677: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 47678: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 47679:
47680:
47681:
47682:
47683:
47684: php_with_openssl_dir=no
47685:
1.1.1.3 ! misho 47686: { echo "$as_me:$LINENO: checking OpenSSL dir for FTP" >&5
! 47687: echo $ECHO_N "checking OpenSSL dir for FTP... $ECHO_C" >&6; }
1.1 misho 47688:
47689: # Check whether --with-openssl-dir was given.
1.1.1.3 ! misho 47690: if test "${with_openssl_dir+set}" = set; then
1.1 misho 47691: withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
47692: else
47693:
47694: PHP_OPENSSL_DIR=no
47695:
47696:
47697: fi
47698:
47699:
47700: ext_output=$PHP_OPENSSL_DIR
1.1.1.3 ! misho 47701: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 47702: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 47703:
47704:
47705:
47706:
47707: if test "$PHP_FTP" = "yes"; then
47708:
1.1.1.3 ! misho 47709: cat >>confdefs.h <<\_ACEOF
! 47710: #define HAVE_FTP 1
! 47711: _ACEOF
1.1 misho 47712:
47713:
47714: ext_builddir=ext/ftp
47715: ext_srcdir=$abs_srcdir/ext/ftp
47716:
47717: ac_extra=
47718:
47719: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
47720: PHP_FTP_SHARED=no
47721:
47722:
47723: case ext/ftp in
47724: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47725: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47726: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47727: esac
47728:
47729:
47730:
47731: b_c_pre=$php_c_pre
47732: b_cxx_pre=$php_cxx_pre
47733: b_c_meta=$php_c_meta
47734: b_cxx_meta=$php_cxx_meta
47735: b_c_post=$php_c_post
47736: b_cxx_post=$php_cxx_post
47737: b_lo=$php_lo
47738:
47739:
47740: old_IFS=$IFS
47741: for ac_src in php_ftp.c ftp.c; do
47742:
47743: IFS=.
47744: set $ac_src
47745: ac_obj=$1
47746: IFS=$old_IFS
47747:
47748: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47749:
47750: case $ac_src in
47751: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47752: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47753: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47754: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47755: esac
47756:
47757: cat >>Makefile.objects<<EOF
47758: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47759: $ac_comp
47760: EOF
47761: done
47762:
47763:
47764: EXT_STATIC="$EXT_STATIC ftp"
47765: if test "$ext_shared" != "nocli"; then
47766: EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
47767: fi
47768: else
47769: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
47770: PHP_FTP_SHARED=yes
47771:
47772: case ext/ftp in
47773: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47774: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47775: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47776: esac
47777:
47778:
47779:
47780: b_c_pre=$shared_c_pre
47781: b_cxx_pre=$shared_cxx_pre
47782: b_c_meta=$shared_c_meta
47783: b_cxx_meta=$shared_cxx_meta
47784: b_c_post=$shared_c_post
47785: b_cxx_post=$shared_cxx_post
47786: b_lo=$shared_lo
47787:
47788:
47789: old_IFS=$IFS
47790: for ac_src in php_ftp.c ftp.c; do
47791:
47792: IFS=.
47793: set $ac_src
47794: ac_obj=$1
47795: IFS=$old_IFS
47796:
47797: shared_objects_ftp="$shared_objects_ftp $ac_bdir$ac_obj.lo"
47798:
47799: case $ac_src in
47800: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47801: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47802: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47803: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47804: esac
47805:
47806: cat >>Makefile.objects<<EOF
47807: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47808: $ac_comp
47809: EOF
47810: done
47811:
47812: case $host_alias in
47813: *netware*)
47814:
47815: install_modules="install-modules"
47816:
47817: case $host_alias in
47818: *aix*)
47819: suffix=so
47820: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpftp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(PHPFTP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpftp.so '$ext_builddir'/phpftp.so'
47821: ;;
47822: *netware*)
47823: suffix=nlm
47824: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) -L$(top_builddir)/netware -lphp5lib $(FTP_SHARED_LIBADD)'
47825: ;;
47826: *)
47827: suffix=la
47828: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(PHPFTP_SHARED_LIBADD)'
47829: ;;
47830: esac
47831:
47832: if test "x" = "xyes"; then
47833: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpftp.$suffix"
47834: else
47835: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpftp.$suffix"
47836: fi
47837:
47838: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
47839:
47840: cat >>Makefile.objects<<EOF
47841: \$(phplibdir)/phpftp.$suffix: $ext_builddir/phpftp.$suffix
47842: \$(LIBTOOL) --mode=install cp $ext_builddir/phpftp.$suffix \$(phplibdir)
47843:
47844: $ext_builddir/phpftp.$suffix: \$(shared_objects_ftp) \$(PHPFTP_SHARED_DEPENDENCIES)
47845: $link_cmd
47846:
47847: EOF
47848:
47849: ;;
47850: *)
47851:
47852: install_modules="install-modules"
47853:
47854: case $host_alias in
47855: *aix*)
47856: suffix=so
47857: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ftp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(FTP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ftp.so '$ext_builddir'/ftp.so'
47858: ;;
47859: *netware*)
47860: suffix=nlm
47861: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
47862: ;;
47863: *)
47864: suffix=la
47865: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(FTP_SHARED_LIBADD)'
47866: ;;
47867: esac
47868:
47869: if test "x" = "xyes"; then
47870: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ftp.$suffix"
47871: else
47872: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ftp.$suffix"
47873: fi
47874:
47875: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
47876:
47877: cat >>Makefile.objects<<EOF
47878: \$(phplibdir)/ftp.$suffix: $ext_builddir/ftp.$suffix
47879: \$(LIBTOOL) --mode=install cp $ext_builddir/ftp.$suffix \$(phplibdir)
47880:
47881: $ext_builddir/ftp.$suffix: \$(shared_objects_ftp) \$(FTP_SHARED_DEPENDENCIES)
47882: $link_cmd
47883:
47884: EOF
47885:
47886: ;;
47887: esac
47888:
47889: cat >>confdefs.h <<_ACEOF
47890: #define COMPILE_DL_FTP 1
47891: _ACEOF
47892:
47893: fi
47894: fi
47895:
47896: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
47897: PHP_FTP_SHARED=no
1.1.1.3 ! misho 47898: case "$PHP_SAPI" in
! 47899: cgi|embed)
1.1 misho 47900:
47901:
47902: case ext/ftp in
47903: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47904: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47905: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47906: esac
47907:
47908:
47909:
47910: b_c_pre=$php_c_pre
47911: b_cxx_pre=$php_cxx_pre
47912: b_c_meta=$php_c_meta
47913: b_cxx_meta=$php_cxx_meta
47914: b_c_post=$php_c_post
47915: b_cxx_post=$php_cxx_post
47916: b_lo=$php_lo
47917:
47918:
47919: old_IFS=$IFS
47920: for ac_src in php_ftp.c ftp.c; do
47921:
47922: IFS=.
47923: set $ac_src
47924: ac_obj=$1
47925: IFS=$old_IFS
47926:
1.1.1.2 misho 47927: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 47928:
47929: case $ac_src in
47930: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47931: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47932: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47933: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47934: esac
47935:
47936: cat >>Makefile.objects<<EOF
47937: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47938: $ac_comp
47939: EOF
47940: done
47941:
47942:
1.1.1.3 ! misho 47943: EXT_STATIC="$EXT_STATIC ftp"
! 47944: ;;
! 47945: *)
1.1 misho 47946:
47947:
47948: case ext/ftp in
47949: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47950: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47951: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47952: esac
47953:
47954:
47955:
47956: b_c_pre=$php_c_pre
47957: b_cxx_pre=$php_cxx_pre
47958: b_c_meta=$php_c_meta
47959: b_cxx_meta=$php_cxx_meta
47960: b_c_post=$php_c_post
47961: b_cxx_post=$php_cxx_post
47962: b_lo=$php_lo
47963:
47964:
47965: old_IFS=$IFS
47966: for ac_src in php_ftp.c ftp.c; do
47967:
47968: IFS=.
47969: set $ac_src
47970: ac_obj=$1
47971: IFS=$old_IFS
47972:
1.1.1.2 misho 47973: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 47974:
47975: case $ac_src in
47976: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47977: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47978: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47979: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47980: esac
47981:
47982: cat >>Makefile.objects<<EOF
47983: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47984: $ac_comp
47985: EOF
47986: done
47987:
47988:
1.1.1.3 ! misho 47989: ;;
! 47990: esac
1.1 misho 47991: EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
47992: fi
47993:
47994:
47995: BUILD_DIR="$BUILD_DIR $ext_builddir"
47996:
47997:
47998:
47999: if test "$ext_builddir" = "."; then
48000: PHP_PECL_EXTENSION=ftp
48001:
48002: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
48003:
48004: fi
48005:
48006:
48007: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
48008:
48009: if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
48010:
48011: found_openssl=no
48012: unset OPENSSL_INCDIR
48013: unset OPENSSL_LIBDIR
48014:
48015: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
48016: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
48017:
1.1.1.3 ! misho 48018: if test "$PHP_OPENSSL" != "no"; then
1.1 misho 48019: PHP_OPENSSL_DIR=$PHP_OPENSSL
1.1.1.3 ! misho 48020: elif test "$PHP_IMAP_SSL" != "no"; then
1.1 misho 48021: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
48022: fi
48023:
48024: if test -z "$PKG_CONFIG"; then
48025: # Extract the first word of "pkg-config", so it can be a program name with args.
48026: set dummy pkg-config; ac_word=$2
1.1.1.3 ! misho 48027: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 48028: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 48029: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
! 48030: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 48031: else
48032: case $PKG_CONFIG in
48033: [\\/]* | ?:[\\/]*)
48034: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
48035: ;;
48036: *)
48037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48038: for as_dir in $PATH
48039: do
48040: IFS=$as_save_IFS
48041: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 48042: for ac_exec_ext in '' $ac_executable_extensions; do
! 48043: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 48044: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 48045: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 48046: break 2
48047: fi
48048: done
1.1.1.3 ! misho 48049: done
1.1 misho 48050: IFS=$as_save_IFS
48051:
48052: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
48053: ;;
48054: esac
48055: fi
48056: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
48057: if test -n "$PKG_CONFIG"; then
1.1.1.3 ! misho 48058: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 48059: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1 misho 48060: else
1.1.1.3 ! misho 48061: { echo "$as_me:$LINENO: result: no" >&5
! 48062: echo "${ECHO_T}no" >&6; }
1.1 misho 48063: fi
48064:
48065:
48066: fi
48067:
48068: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
48069: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
48070: found_openssl=yes
48071: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
48072: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
48073: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
48074: else
1.1.1.3 ! misho 48075: { { echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
! 48076: echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
! 48077: { (exit 1); exit 1; }; }
1.1 misho 48078: fi
48079:
1.1.1.3 ! misho 48080: if test -n "$OPENSSL_LIBS"; then
1.1 misho 48081:
48082: for ac_i in $OPENSSL_LIBS; do
48083: case $ac_i in
48084: -pthread)
48085: if test "$ext_shared" = "yes"; then
48086: FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread"
48087: else
48088:
48089:
48090: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48091:
48092: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48093: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48094: eval "EXTRA_LDFLAGS$unique=set"
48095: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48096: fi
48097:
48098: fi
48099: ;;
48100: -l*)
48101: ac_ii=`echo $ac_i|cut -c 3-`
48102:
48103:
48104: case $ac_ii in
48105: c|c_r|pthread*) ;;
48106: *)
48107: if test "$ext_shared" = "yes"; then
48108: FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii"
48109: else
48110:
48111:
48112: case $ac_ii in
48113: c|c_r|pthread*) ;;
48114: *)
48115: LIBS="$LIBS -l$ac_ii"
48116: ;;
48117: esac
48118:
48119:
48120: fi
48121: ;;
48122: esac
48123:
48124:
48125: ;;
48126: -L*)
48127: ac_ii=`echo $ac_i|cut -c 3-`
48128:
48129: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48130:
48131: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48132: ai_p=$ac_ii
48133: else
48134:
48135: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
48136:
48137: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48138: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
48139: fi
48140:
48141:
48142: if test "$ext_shared" = "yes"; then
48143: FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
48144: test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
48145: else
48146:
48147:
48148:
48149: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48150:
48151: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48152: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48153: eval "LIBPATH$unique=set"
48154:
48155: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48156: LDFLAGS="$LDFLAGS -L$ai_p"
48157: PHP_RPATHS="$PHP_RPATHS $ai_p"
48158:
48159: fi
48160:
48161:
48162: fi
48163:
48164: fi
48165:
48166: ;;
48167: esac
48168: done
48169:
1.1.1.3 ! misho 48170: fi
! 48171: if test -n "$OPENSSL_INCS"; then
1.1 misho 48172:
48173: for ac_i in $OPENSSL_INCS; do
48174: case $ac_i in
48175: -I*)
48176: ac_ii=`echo $ac_i|cut -c 3-`
48177:
48178: if test "$ac_ii" != "/usr/include"; then
48179:
48180: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48181: ai_p=$ac_ii
48182: else
48183:
48184: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
48185:
48186: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48187: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
48188: fi
48189:
48190:
48191:
48192: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48193:
48194: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
48195: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48196: eval "INCLUDEPATH$unique=set"
48197:
48198: if test ""; then
48199: INCLUDES="-I$ai_p $INCLUDES"
48200: else
48201: INCLUDES="$INCLUDES -I$ai_p"
48202: fi
48203:
48204: fi
48205:
48206: fi
48207:
48208: ;;
48209: esac
48210: done
48211:
48212: fi
48213: fi
48214:
48215: if test "$found_openssl" = "no"; then
48216:
48217: if test "$PHP_OPENSSL_DIR" = "yes"; then
48218: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
48219: fi
48220:
48221: for i in $PHP_OPENSSL_DIR; do
48222: if test -r $i/include/openssl/evp.h; then
48223: OPENSSL_INCDIR=$i/include
48224: fi
48225: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
48226: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
48227: fi
48228: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
48229: done
48230:
48231: if test -z "$OPENSSL_INCDIR"; then
1.1.1.3 ! misho 48232: { { echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
! 48233: echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
! 48234: { (exit 1); exit 1; }; }
1.1 misho 48235: fi
48236:
48237: if test -z "$OPENSSL_LIBDIR"; then
1.1.1.3 ! misho 48238: { { echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
! 48239: echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
! 48240: { (exit 1); exit 1; }; }
1.1 misho 48241: fi
48242:
48243: old_CPPFLAGS=$CPPFLAGS
48244: CPPFLAGS=-I$OPENSSL_INCDIR
1.1.1.3 ! misho 48245: { echo "$as_me:$LINENO: checking for OpenSSL version" >&5
! 48246: echo $ECHO_N "checking for OpenSSL version... $ECHO_C" >&6; }
! 48247: cat >conftest.$ac_ext <<_ACEOF
! 48248: /* confdefs.h. */
! 48249: _ACEOF
! 48250: cat confdefs.h >>conftest.$ac_ext
! 48251: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 48252: /* end confdefs.h. */
48253:
48254: #include <openssl/opensslv.h>
48255: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
48256: yes
48257: #endif
48258:
48259: _ACEOF
48260: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 48261: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 48262:
1.1.1.3 ! misho 48263: { echo "$as_me:$LINENO: result: >= 0.9.6" >&5
! 48264: echo "${ECHO_T}>= 0.9.6" >&6; }
1.1 misho 48265:
48266: else
48267:
1.1.1.3 ! misho 48268: { { echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
! 48269: echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
! 48270: { (exit 1); exit 1; }; }
1.1 misho 48271:
48272: fi
1.1.1.3 ! misho 48273: rm -f -r conftest*
1.1 misho 48274:
48275: CPPFLAGS=$old_CPPFLAGS
48276:
48277:
48278: if test "$OPENSSL_INCDIR" != "/usr/include"; then
48279:
48280: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
48281: ai_p=$OPENSSL_INCDIR
48282: else
48283:
48284: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
48285:
48286: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48287: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
48288: fi
48289:
48290:
48291:
48292: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48293:
48294: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
48295: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48296: eval "INCLUDEPATH$unique=set"
48297:
48298: if test ""; then
48299: INCLUDES="-I$ai_p $INCLUDES"
48300: else
48301: INCLUDES="$INCLUDES -I$ai_p"
48302: fi
48303:
48304: fi
48305:
48306: fi
48307:
48308:
48309:
48310: save_old_LDFLAGS=$LDFLAGS
48311: ac_stuff="
48312: -L$OPENSSL_LIBDIR
48313: "
48314:
48315: save_ext_shared=$ext_shared
48316: ext_shared=yes
48317:
48318: for ac_i in $ac_stuff; do
48319: case $ac_i in
48320: -pthread)
48321: if test "$ext_shared" = "yes"; then
48322: LDFLAGS="$LDFLAGS -pthread"
48323: else
48324:
48325:
48326: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48327:
48328: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48329: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48330: eval "EXTRA_LDFLAGS$unique=set"
48331: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48332: fi
48333:
48334: fi
48335: ;;
48336: -l*)
48337: ac_ii=`echo $ac_i|cut -c 3-`
48338:
48339:
48340: case $ac_ii in
48341: c|c_r|pthread*) ;;
48342: *)
48343: if test "$ext_shared" = "yes"; then
48344: LDFLAGS="$LDFLAGS -l$ac_ii"
48345: else
48346:
48347:
48348: case $ac_ii in
48349: c|c_r|pthread*) ;;
48350: *)
48351: LIBS="$LIBS -l$ac_ii"
48352: ;;
48353: esac
48354:
48355:
48356: fi
48357: ;;
48358: esac
48359:
48360:
48361: ;;
48362: -L*)
48363: ac_ii=`echo $ac_i|cut -c 3-`
48364:
48365: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48366:
48367: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48368: ai_p=$ac_ii
48369: else
48370:
48371: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
48372:
48373: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48374: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
48375: fi
48376:
48377:
48378: if test "$ext_shared" = "yes"; then
48379: LDFLAGS="-L$ai_p $LDFLAGS"
48380: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
48381: else
48382:
48383:
48384:
48385: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48386:
48387: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48388: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48389: eval "LIBPATH$unique=set"
48390:
48391: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48392: LDFLAGS="$LDFLAGS -L$ai_p"
48393: PHP_RPATHS="$PHP_RPATHS $ai_p"
48394:
48395: fi
48396:
48397:
48398: fi
48399:
48400: fi
48401:
48402: ;;
48403: esac
48404: done
48405:
1.1.1.3 ! misho 48406: { echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
! 48407: echo $ECHO_N "checking for CRYPTO_free in -lcrypto... $ECHO_C" >&6; }
! 48408: if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
! 48409: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 48410: else
48411: ac_check_lib_save_LIBS=$LIBS
48412: LIBS="-lcrypto $LIBS"
1.1.1.3 ! misho 48413: cat >conftest.$ac_ext <<_ACEOF
! 48414: /* confdefs.h. */
! 48415: _ACEOF
! 48416: cat confdefs.h >>conftest.$ac_ext
! 48417: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 48418: /* end confdefs.h. */
48419:
48420: /* Override any GCC internal prototype to avoid an error.
48421: Use char because int might match the return type of a GCC
48422: builtin and then its argument prototype would still apply. */
48423: #ifdef __cplusplus
48424: extern "C"
48425: #endif
48426: char CRYPTO_free ();
48427: int
48428: main ()
48429: {
48430: return CRYPTO_free ();
48431: ;
48432: return 0;
48433: }
48434: _ACEOF
1.1.1.3 ! misho 48435: rm -f conftest.$ac_objext conftest$ac_exeext
! 48436: if { (ac_try="$ac_link"
! 48437: case "(($ac_try" in
! 48438: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 48439: *) ac_try_echo=$ac_try;;
! 48440: esac
! 48441: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 48442: (eval "$ac_link") 2>conftest.er1
! 48443: ac_status=$?
! 48444: grep -v '^ *+' conftest.er1 >conftest.err
! 48445: rm -f conftest.er1
! 48446: cat conftest.err >&5
! 48447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 48448: (exit $ac_status); } && {
! 48449: test -z "$ac_c_werror_flag" ||
! 48450: test ! -s conftest.err
! 48451: } && test -s conftest$ac_exeext &&
! 48452: $as_test_x conftest$ac_exeext; then
1.1 misho 48453: ac_cv_lib_crypto_CRYPTO_free=yes
48454: else
1.1.1.3 ! misho 48455: echo "$as_me: failed program was:" >&5
! 48456: sed 's/^/| /' conftest.$ac_ext >&5
! 48457:
! 48458: ac_cv_lib_crypto_CRYPTO_free=no
1.1 misho 48459: fi
1.1.1.3 ! misho 48460:
! 48461: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 48462: conftest$ac_exeext conftest.$ac_ext
1.1 misho 48463: LIBS=$ac_check_lib_save_LIBS
48464: fi
1.1.1.3 ! misho 48465: { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
! 48466: echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_free" >&6; }
! 48467: if test $ac_cv_lib_crypto_CRYPTO_free = yes; then
1.1 misho 48468:
48469: LDFLAGS=$save_old_LDFLAGS
48470: ext_shared=$save_ext_shared
48471:
48472:
48473:
48474: case crypto in
48475: c|c_r|pthread*) ;;
48476: *)
48477: if test "$ext_shared" = "yes"; then
48478: FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
48479: else
48480:
48481:
48482: case crypto in
48483: c|c_r|pthread*) ;;
48484: *)
48485: LIBS="-lcrypto $LIBS"
48486: ;;
48487: esac
48488:
48489:
48490: fi
48491: ;;
48492: esac
48493:
48494:
48495:
48496:
48497: else
48498:
48499: LDFLAGS=$save_old_LDFLAGS
48500: ext_shared=$save_ext_shared
48501: unset ac_cv_lib_crypto_CRYPTO_free
48502:
1.1.1.3 ! misho 48503: { { echo "$as_me:$LINENO: error: libcrypto not found!" >&5
! 48504: echo "$as_me: error: libcrypto not found!" >&2;}
! 48505: { (exit 1); exit 1; }; }
1.1 misho 48506:
48507:
48508: fi
48509:
48510:
48511: old_LIBS=$LIBS
48512: LIBS="$LIBS -lcrypto"
48513:
48514: save_old_LDFLAGS=$LDFLAGS
48515: ac_stuff="
48516: -L$OPENSSL_LIBDIR
48517: "
48518:
48519: save_ext_shared=$ext_shared
48520: ext_shared=yes
48521:
48522: for ac_i in $ac_stuff; do
48523: case $ac_i in
48524: -pthread)
48525: if test "$ext_shared" = "yes"; then
48526: LDFLAGS="$LDFLAGS -pthread"
48527: else
48528:
48529:
48530: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48531:
48532: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48533: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48534: eval "EXTRA_LDFLAGS$unique=set"
48535: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48536: fi
48537:
48538: fi
48539: ;;
48540: -l*)
48541: ac_ii=`echo $ac_i|cut -c 3-`
48542:
48543:
48544: case $ac_ii in
48545: c|c_r|pthread*) ;;
48546: *)
48547: if test "$ext_shared" = "yes"; then
48548: LDFLAGS="$LDFLAGS -l$ac_ii"
48549: else
48550:
48551:
48552: case $ac_ii in
48553: c|c_r|pthread*) ;;
48554: *)
48555: LIBS="$LIBS -l$ac_ii"
48556: ;;
48557: esac
48558:
48559:
48560: fi
48561: ;;
48562: esac
48563:
48564:
48565: ;;
48566: -L*)
48567: ac_ii=`echo $ac_i|cut -c 3-`
48568:
48569: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48570:
48571: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48572: ai_p=$ac_ii
48573: else
48574:
48575: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
48576:
48577: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48578: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
48579: fi
48580:
48581:
48582: if test "$ext_shared" = "yes"; then
48583: LDFLAGS="-L$ai_p $LDFLAGS"
48584: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
48585: else
48586:
48587:
48588:
48589: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48590:
48591: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48592: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48593: eval "LIBPATH$unique=set"
48594:
48595: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48596: LDFLAGS="$LDFLAGS -L$ai_p"
48597: PHP_RPATHS="$PHP_RPATHS $ai_p"
48598:
48599: fi
48600:
48601:
48602: fi
48603:
48604: fi
48605:
48606: ;;
48607: esac
48608: done
48609:
1.1.1.3 ! misho 48610: { echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
! 48611: echo $ECHO_N "checking for SSL_CTX_set_ssl_version in -lssl... $ECHO_C" >&6; }
! 48612: if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
! 48613: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 48614: else
48615: ac_check_lib_save_LIBS=$LIBS
48616: LIBS="-lssl $LIBS"
1.1.1.3 ! misho 48617: cat >conftest.$ac_ext <<_ACEOF
! 48618: /* confdefs.h. */
! 48619: _ACEOF
! 48620: cat confdefs.h >>conftest.$ac_ext
! 48621: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 48622: /* end confdefs.h. */
48623:
48624: /* Override any GCC internal prototype to avoid an error.
48625: Use char because int might match the return type of a GCC
48626: builtin and then its argument prototype would still apply. */
48627: #ifdef __cplusplus
48628: extern "C"
48629: #endif
48630: char SSL_CTX_set_ssl_version ();
48631: int
48632: main ()
48633: {
48634: return SSL_CTX_set_ssl_version ();
48635: ;
48636: return 0;
48637: }
48638: _ACEOF
1.1.1.3 ! misho 48639: rm -f conftest.$ac_objext conftest$ac_exeext
! 48640: if { (ac_try="$ac_link"
! 48641: case "(($ac_try" in
! 48642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 48643: *) ac_try_echo=$ac_try;;
! 48644: esac
! 48645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 48646: (eval "$ac_link") 2>conftest.er1
! 48647: ac_status=$?
! 48648: grep -v '^ *+' conftest.er1 >conftest.err
! 48649: rm -f conftest.er1
! 48650: cat conftest.err >&5
! 48651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 48652: (exit $ac_status); } && {
! 48653: test -z "$ac_c_werror_flag" ||
! 48654: test ! -s conftest.err
! 48655: } && test -s conftest$ac_exeext &&
! 48656: $as_test_x conftest$ac_exeext; then
1.1 misho 48657: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
48658: else
1.1.1.3 ! misho 48659: echo "$as_me: failed program was:" >&5
! 48660: sed 's/^/| /' conftest.$ac_ext >&5
! 48661:
! 48662: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
1.1 misho 48663: fi
1.1.1.3 ! misho 48664:
! 48665: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 48666: conftest$ac_exeext conftest.$ac_ext
1.1 misho 48667: LIBS=$ac_check_lib_save_LIBS
48668: fi
1.1.1.3 ! misho 48669: { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
! 48670: echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
! 48671: if test $ac_cv_lib_ssl_SSL_CTX_set_ssl_version = yes; then
1.1 misho 48672:
48673: LDFLAGS=$save_old_LDFLAGS
48674: ext_shared=$save_ext_shared
48675:
48676: found_openssl=yes
48677:
48678:
48679: else
48680:
48681: LDFLAGS=$save_old_LDFLAGS
48682: ext_shared=$save_ext_shared
48683: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
48684:
1.1.1.3 ! misho 48685: { { echo "$as_me:$LINENO: error: libssl not found!" >&5
! 48686: echo "$as_me: error: libssl not found!" >&2;}
! 48687: { (exit 1); exit 1; }; }
1.1 misho 48688:
48689:
48690: fi
48691:
48692: LIBS=$old_LIBS
48693:
48694:
48695: case ssl in
48696: c|c_r|pthread*) ;;
48697: *)
48698: if test "$ext_shared" = "yes"; then
48699: FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD"
48700: else
48701:
48702:
48703: case ssl in
48704: c|c_r|pthread*) ;;
48705: *)
48706: LIBS="-lssl $LIBS"
48707: ;;
48708: esac
48709:
48710:
48711: fi
48712: ;;
48713: esac
48714:
48715:
48716:
48717:
48718: case crypto in
48719: c|c_r|pthread*) ;;
48720: *)
48721: if test "$ext_shared" = "yes"; then
48722: FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
48723: else
48724:
48725:
48726: case crypto in
48727: c|c_r|pthread*) ;;
48728: *)
48729: LIBS="-lcrypto $LIBS"
48730: ;;
48731: esac
48732:
48733:
48734: fi
48735: ;;
48736: esac
48737:
48738:
48739:
48740:
48741: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
48742:
48743: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
48744: ai_p=$OPENSSL_LIBDIR
48745: else
48746:
48747: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
48748:
48749: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48750: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
48751: fi
48752:
48753:
48754: if test "$ext_shared" = "yes"; then
48755: FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
48756: test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
48757: else
48758:
48759:
48760:
48761: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48762:
48763: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48764: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48765: eval "LIBPATH$unique=set"
48766:
48767: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48768: LDFLAGS="$LDFLAGS -L$ai_p"
48769: PHP_RPATHS="$PHP_RPATHS $ai_p"
48770:
48771: fi
48772:
48773:
48774: fi
48775:
48776: fi
48777:
48778: fi
48779:
48780: if test "$found_openssl" = "yes"; then
48781: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
48782:
48783:
48784: :
48785:
48786: fi
48787:
48788:
48789: PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD"
48790:
48791: fi
48792: fi
48793:
48794:
48795:
48796:
48797: php_with_gd=no
48798:
1.1.1.3 ! misho 48799: { echo "$as_me:$LINENO: checking for GD support" >&5
! 48800: echo $ECHO_N "checking for GD support... $ECHO_C" >&6; }
1.1 misho 48801:
48802: # Check whether --with-gd was given.
1.1.1.3 ! misho 48803: if test "${with_gd+set}" = set; then
1.1 misho 48804: withval=$with_gd; PHP_GD=$withval
48805: else
48806:
48807: PHP_GD=no
48808: test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL
48809:
48810: fi
48811:
48812:
48813:
48814: ext_output="yes, shared"
48815: ext_shared=yes
48816: case $PHP_GD in
48817: shared,*)
48818: PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'`
48819: ;;
48820: shared)
48821: PHP_GD=yes
48822: ;;
48823: no)
48824: ext_output=no
48825: ext_shared=no
48826: ;;
48827: *)
48828: ext_output=yes
48829: ext_shared=no
48830: ;;
48831: esac
48832:
48833:
48834:
1.1.1.3 ! misho 48835: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48836: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 48837:
48838:
48839:
48840:
1.1.1.2 misho 48841: if test -z "$PHP_VPX_DIR"; then
48842:
48843: php_with_vpx_dir=no
48844:
1.1.1.3 ! misho 48845: { echo "$as_me:$LINENO: checking for the location of libvpx" >&5
! 48846: echo $ECHO_N "checking for the location of libvpx... $ECHO_C" >&6; }
1.1.1.2 misho 48847:
48848: # Check whether --with-vpx-dir was given.
1.1.1.3 ! misho 48849: if test "${with_vpx_dir+set}" = set; then
1.1.1.2 misho 48850: withval=$with_vpx_dir; PHP_VPX_DIR=$withval
48851: else
48852:
48853: PHP_VPX_DIR=no
48854:
48855:
48856: fi
48857:
48858:
48859: ext_output=$PHP_VPX_DIR
1.1.1.3 ! misho 48860: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48861: echo "${ECHO_T}$ext_output" >&6; }
1.1.1.2 misho 48862:
48863:
48864:
48865: fi
48866:
1.1 misho 48867: if test -z "$PHP_JPEG_DIR"; then
48868:
48869: php_with_jpeg_dir=no
48870:
1.1.1.3 ! misho 48871: { echo "$as_me:$LINENO: checking for the location of libjpeg" >&5
! 48872: echo $ECHO_N "checking for the location of libjpeg... $ECHO_C" >&6; }
1.1 misho 48873:
48874: # Check whether --with-jpeg-dir was given.
1.1.1.3 ! misho 48875: if test "${with_jpeg_dir+set}" = set; then
1.1 misho 48876: withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval
48877: else
48878:
48879: PHP_JPEG_DIR=no
48880:
48881:
48882: fi
48883:
48884:
48885: ext_output=$PHP_JPEG_DIR
1.1.1.3 ! misho 48886: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48887: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 48888:
48889:
48890:
48891: fi
48892:
48893: if test -z "$PHP_PNG_DIR"; then
48894:
48895: php_with_png_dir=no
48896:
1.1.1.3 ! misho 48897: { echo "$as_me:$LINENO: checking for the location of libpng" >&5
! 48898: echo $ECHO_N "checking for the location of libpng... $ECHO_C" >&6; }
1.1 misho 48899:
48900: # Check whether --with-png-dir was given.
1.1.1.3 ! misho 48901: if test "${with_png_dir+set}" = set; then
1.1 misho 48902: withval=$with_png_dir; PHP_PNG_DIR=$withval
48903: else
48904:
48905: PHP_PNG_DIR=no
48906:
48907:
48908: fi
48909:
48910:
48911: ext_output=$PHP_PNG_DIR
1.1.1.3 ! misho 48912: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48913: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 48914:
48915:
48916:
48917: fi
48918:
48919: if test -z "$PHP_ZLIB_DIR"; then
48920:
48921: php_with_zlib_dir=no
48922:
1.1.1.3 ! misho 48923: { echo "$as_me:$LINENO: checking for the location of libz" >&5
! 48924: echo $ECHO_N "checking for the location of libz... $ECHO_C" >&6; }
1.1 misho 48925:
48926: # Check whether --with-zlib-dir was given.
1.1.1.3 ! misho 48927: if test "${with_zlib_dir+set}" = set; then
1.1 misho 48928: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
48929: else
48930:
48931: PHP_ZLIB_DIR=no
48932:
48933:
48934: fi
48935:
48936:
48937: ext_output=$PHP_ZLIB_DIR
1.1.1.3 ! misho 48938: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48939: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 48940:
48941:
48942:
48943: fi
48944:
48945:
48946: php_with_xpm_dir=no
48947:
1.1.1.3 ! misho 48948: { echo "$as_me:$LINENO: checking for the location of libXpm" >&5
! 48949: echo $ECHO_N "checking for the location of libXpm... $ECHO_C" >&6; }
1.1 misho 48950:
48951: # Check whether --with-xpm-dir was given.
1.1.1.3 ! misho 48952: if test "${with_xpm_dir+set}" = set; then
1.1 misho 48953: withval=$with_xpm_dir; PHP_XPM_DIR=$withval
48954: else
48955:
48956: PHP_XPM_DIR=no
48957:
48958:
48959: fi
48960:
48961:
48962: ext_output=$PHP_XPM_DIR
1.1.1.3 ! misho 48963: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48964: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 48965:
48966:
48967:
48968:
48969:
48970: php_with_freetype_dir=no
48971:
1.1.1.3 ! misho 48972: { echo "$as_me:$LINENO: checking for FreeType 2" >&5
! 48973: echo $ECHO_N "checking for FreeType 2... $ECHO_C" >&6; }
1.1 misho 48974:
48975: # Check whether --with-freetype-dir was given.
1.1.1.3 ! misho 48976: if test "${with_freetype_dir+set}" = set; then
1.1 misho 48977: withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval
48978: else
48979:
48980: PHP_FREETYPE_DIR=no
48981:
48982:
48983: fi
48984:
48985:
48986: ext_output=$PHP_FREETYPE_DIR
1.1.1.3 ! misho 48987: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 48988: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 48989:
48990:
48991:
48992:
48993:
48994: php_with_t1lib=no
48995:
1.1.1.3 ! misho 48996: { echo "$as_me:$LINENO: checking for T1lib support" >&5
! 48997: echo $ECHO_N "checking for T1lib support... $ECHO_C" >&6; }
1.1 misho 48998:
48999: # Check whether --with-t1lib was given.
1.1.1.3 ! misho 49000: if test "${with_t1lib+set}" = set; then
1.1 misho 49001: withval=$with_t1lib; PHP_T1LIB=$withval
49002: else
49003:
49004: PHP_T1LIB=no
49005:
49006:
49007: fi
49008:
49009:
49010: ext_output=$PHP_T1LIB
1.1.1.3 ! misho 49011: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 49012: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 49013:
49014:
49015:
49016:
49017:
49018: php_enable_gd_native_ttf=no
49019:
1.1.1.3 ! misho 49020: { echo "$as_me:$LINENO: checking whether to enable truetype string function in GD" >&5
! 49021: echo $ECHO_N "checking whether to enable truetype string function in GD... $ECHO_C" >&6; }
1.1 misho 49022: # Check whether --enable-gd-native-ttf was given.
1.1.1.3 ! misho 49023: if test "${enable_gd_native_ttf+set}" = set; then
1.1 misho 49024: enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval
49025: else
49026:
49027: PHP_GD_NATIVE_TTF=no
49028:
49029:
49030: fi
49031:
49032:
49033: ext_output=$PHP_GD_NATIVE_TTF
1.1.1.3 ! misho 49034: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 49035: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 49036:
49037:
49038:
49039:
49040:
49041: php_enable_gd_jis_conv=no
49042:
1.1.1.3 ! misho 49043: { echo "$as_me:$LINENO: checking whether to enable JIS-mapped Japanese font support in GD" >&5
! 49044: echo $ECHO_N "checking whether to enable JIS-mapped Japanese font support in GD... $ECHO_C" >&6; }
1.1 misho 49045: # Check whether --enable-gd-jis-conv was given.
1.1.1.3 ! misho 49046: if test "${enable_gd_jis_conv+set}" = set; then
1.1 misho 49047: enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval
49048: else
49049:
49050: PHP_GD_JIS_CONV=no
49051:
49052:
49053: fi
49054:
49055:
49056: ext_output=$PHP_GD_JIS_CONV
1.1.1.3 ! misho 49057: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 49058: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 49059:
49060:
49061:
49062:
49063:
49064:
49065:
49066:
49067:
49068:
49069:
49070:
49071:
49072:
49073:
49074:
49075:
49076:
49077:
49078:
49079:
49080:
49081:
49082:
1.1.1.2 misho 49083:
49084:
1.1 misho 49085: if test "$PHP_GD" = "yes"; then
49086: GD_MODULE_TYPE=builtin
49087: extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \
1.1.1.2 misho 49088: libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/webpimg.c libgd/gd_webp.c \
49089: libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \
49090: libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \
49091: libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \
49092: libgd/gd_topal.c libgd/gd_gif_in.c libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c \
49093: libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c"
1.1 misho 49094:
1.1.1.3 ! misho 49095:
! 49096:
! 49097: for ac_func in fabsf floorf
! 49098: do
! 49099: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 49100: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 49101: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 49102: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 49103: echo $ECHO_N "(cached) $ECHO_C" >&6
! 49104: else
! 49105: cat >conftest.$ac_ext <<_ACEOF
! 49106: /* confdefs.h. */
! 49107: _ACEOF
! 49108: cat confdefs.h >>conftest.$ac_ext
! 49109: cat >>conftest.$ac_ext <<_ACEOF
! 49110: /* end confdefs.h. */
! 49111: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 49112: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 49113: #define $ac_func innocuous_$ac_func
! 49114:
! 49115: /* System header to define __stub macros and hopefully few prototypes,
! 49116: which can conflict with char $ac_func (); below.
! 49117: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 49118: <limits.h> exists even on freestanding compilers. */
! 49119:
! 49120: #ifdef __STDC__
! 49121: # include <limits.h>
! 49122: #else
! 49123: # include <assert.h>
! 49124: #endif
! 49125:
! 49126: #undef $ac_func
! 49127:
! 49128: /* Override any GCC internal prototype to avoid an error.
! 49129: Use char because int might match the return type of a GCC
! 49130: builtin and then its argument prototype would still apply. */
! 49131: #ifdef __cplusplus
! 49132: extern "C"
! 49133: #endif
! 49134: char $ac_func ();
! 49135: /* The GNU C library defines this for functions which it implements
! 49136: to always fail with ENOSYS. Some functions are actually named
! 49137: something starting with __ and the normal name is an alias. */
! 49138: #if defined __stub_$ac_func || defined __stub___$ac_func
! 49139: choke me
! 49140: #endif
! 49141:
! 49142: int
! 49143: main ()
! 49144: {
! 49145: return $ac_func ();
! 49146: ;
! 49147: return 0;
! 49148: }
! 49149: _ACEOF
! 49150: rm -f conftest.$ac_objext conftest$ac_exeext
! 49151: if { (ac_try="$ac_link"
! 49152: case "(($ac_try" in
! 49153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 49154: *) ac_try_echo=$ac_try;;
! 49155: esac
! 49156: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 49157: (eval "$ac_link") 2>conftest.er1
! 49158: ac_status=$?
! 49159: grep -v '^ *+' conftest.er1 >conftest.err
! 49160: rm -f conftest.er1
! 49161: cat conftest.err >&5
! 49162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 49163: (exit $ac_status); } && {
! 49164: test -z "$ac_c_werror_flag" ||
! 49165: test ! -s conftest.err
! 49166: } && test -s conftest$ac_exeext &&
! 49167: $as_test_x conftest$ac_exeext; then
! 49168: eval "$as_ac_var=yes"
! 49169: else
! 49170: echo "$as_me: failed program was:" >&5
! 49171: sed 's/^/| /' conftest.$ac_ext >&5
! 49172:
! 49173: eval "$as_ac_var=no"
! 49174: fi
! 49175:
! 49176: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 49177: conftest$ac_exeext conftest.$ac_ext
! 49178: fi
! 49179: ac_res=`eval echo '${'$as_ac_var'}'`
! 49180: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 49181: echo "${ECHO_T}$ac_res" >&6; }
! 49182: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 49183: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 49184: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 49185: _ACEOF
49186:
49187: fi
49188: done
49189:
49190:
49191: test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
49192:
49193:
49194: if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
49195: if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
49196: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
49197: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
49198: elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
49199: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
49200: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
49201: else
1.1.1.3 ! misho 49202: { { echo "$as_me:$LINENO: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&5
! 49203: echo "$as_me: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&2;}
! 49204: { (exit 1); exit 1; }; }
1.1 misho 49205: fi
49206: else
49207: for i in /usr/local /usr; do
49208: if test -f "$i/include/zlib/zlib.h"; then
49209: PHP_ZLIB_DIR="$i"
49210: PHP_ZLIB_INCDIR="$i/include/zlib"
49211: elif test -f "$i/include/zlib.h"; then
49212: PHP_ZLIB_DIR="$i"
49213: PHP_ZLIB_INCDIR="$i/include"
49214: fi
49215: done
49216: fi
49217:
49218:
49219: if test "$PHP_GD_NATIVE_TTF" = "yes"; then
49220:
1.1.1.3 ! misho 49221: cat >>confdefs.h <<\_ACEOF
! 49222: #define USE_GD_IMGSTRTTF 1
! 49223: _ACEOF
1.1 misho 49224:
49225: fi
49226:
49227:
49228: if test "$PHP_GD_JIS_CONV" = "yes"; then
49229: USE_GD_JIS_CONV=1
49230: fi
49231:
49232:
49233: if test "$PHP_JPEG_DIR" != "no"; then
49234:
49235: for i in $PHP_JPEG_DIR /usr/local /usr; do
49236: test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
49237: done
49238:
49239: if test -z "$GD_JPEG_DIR"; then
1.1.1.3 ! misho 49240: { { echo "$as_me:$LINENO: error: jpeglib.h not found." >&5
! 49241: echo "$as_me: error: jpeglib.h not found." >&2;}
! 49242: { (exit 1); exit 1; }; }
1.1 misho 49243: fi
49244:
49245:
49246: save_old_LDFLAGS=$LDFLAGS
49247: ac_stuff="
49248: -L$GD_JPEG_DIR/$PHP_LIBDIR
49249: "
49250:
49251: save_ext_shared=$ext_shared
49252: ext_shared=yes
49253:
49254: for ac_i in $ac_stuff; do
49255: case $ac_i in
49256: -pthread)
49257: if test "$ext_shared" = "yes"; then
49258: LDFLAGS="$LDFLAGS -pthread"
49259: else
49260:
49261:
49262: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49263:
49264: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49265: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49266: eval "EXTRA_LDFLAGS$unique=set"
49267: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49268: fi
49269:
49270: fi
49271: ;;
49272: -l*)
49273: ac_ii=`echo $ac_i|cut -c 3-`
49274:
49275:
49276: case $ac_ii in
49277: c|c_r|pthread*) ;;
49278: *)
49279: if test "$ext_shared" = "yes"; then
49280: LDFLAGS="$LDFLAGS -l$ac_ii"
49281: else
49282:
49283:
49284: case $ac_ii in
49285: c|c_r|pthread*) ;;
49286: *)
49287: LIBS="$LIBS -l$ac_ii"
49288: ;;
49289: esac
49290:
49291:
49292: fi
49293: ;;
49294: esac
49295:
49296:
49297: ;;
49298: -L*)
49299: ac_ii=`echo $ac_i|cut -c 3-`
49300:
49301: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49302:
49303: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49304: ai_p=$ac_ii
49305: else
49306:
49307: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49308:
49309: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49310: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49311: fi
49312:
49313:
49314: if test "$ext_shared" = "yes"; then
49315: LDFLAGS="-L$ai_p $LDFLAGS"
49316: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49317: else
49318:
49319:
49320:
49321: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49322:
49323: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49324: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49325: eval "LIBPATH$unique=set"
49326:
49327: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49328: LDFLAGS="$LDFLAGS -L$ai_p"
49329: PHP_RPATHS="$PHP_RPATHS $ai_p"
49330:
49331: fi
49332:
49333:
49334: fi
49335:
49336: fi
49337:
49338: ;;
49339: esac
49340: done
49341:
1.1.1.3 ! misho 49342: { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
! 49343: echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
! 49344: if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
! 49345: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 49346: else
49347: ac_check_lib_save_LIBS=$LIBS
49348: LIBS="-ljpeg $LIBS"
1.1.1.3 ! misho 49349: cat >conftest.$ac_ext <<_ACEOF
! 49350: /* confdefs.h. */
! 49351: _ACEOF
! 49352: cat confdefs.h >>conftest.$ac_ext
! 49353: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 49354: /* end confdefs.h. */
49355:
49356: /* Override any GCC internal prototype to avoid an error.
49357: Use char because int might match the return type of a GCC
49358: builtin and then its argument prototype would still apply. */
49359: #ifdef __cplusplus
49360: extern "C"
49361: #endif
49362: char jpeg_read_header ();
49363: int
49364: main ()
49365: {
49366: return jpeg_read_header ();
49367: ;
49368: return 0;
49369: }
49370: _ACEOF
1.1.1.3 ! misho 49371: rm -f conftest.$ac_objext conftest$ac_exeext
! 49372: if { (ac_try="$ac_link"
! 49373: case "(($ac_try" in
! 49374: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 49375: *) ac_try_echo=$ac_try;;
! 49376: esac
! 49377: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 49378: (eval "$ac_link") 2>conftest.er1
! 49379: ac_status=$?
! 49380: grep -v '^ *+' conftest.er1 >conftest.err
! 49381: rm -f conftest.er1
! 49382: cat conftest.err >&5
! 49383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 49384: (exit $ac_status); } && {
! 49385: test -z "$ac_c_werror_flag" ||
! 49386: test ! -s conftest.err
! 49387: } && test -s conftest$ac_exeext &&
! 49388: $as_test_x conftest$ac_exeext; then
1.1 misho 49389: ac_cv_lib_jpeg_jpeg_read_header=yes
49390: else
1.1.1.3 ! misho 49391: echo "$as_me: failed program was:" >&5
! 49392: sed 's/^/| /' conftest.$ac_ext >&5
! 49393:
! 49394: ac_cv_lib_jpeg_jpeg_read_header=no
1.1 misho 49395: fi
1.1.1.3 ! misho 49396:
! 49397: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 49398: conftest$ac_exeext conftest.$ac_ext
1.1 misho 49399: LIBS=$ac_check_lib_save_LIBS
49400: fi
1.1.1.3 ! misho 49401: { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
! 49402: echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
! 49403: if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
1.1 misho 49404:
49405: LDFLAGS=$save_old_LDFLAGS
49406: ext_shared=$save_ext_shared
49407:
49408:
49409: if test "$GD_JPEG_DIR/include" != "/usr/include"; then
49410:
49411: if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
49412: ai_p=$GD_JPEG_DIR/include
49413: else
49414:
49415: ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
49416:
49417: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49418: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
49419: fi
49420:
49421:
49422:
49423: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49424:
49425: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
49426: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49427: eval "INCLUDEPATH$unique=set"
49428:
49429: if test ""; then
49430: INCLUDES="-I$ai_p $INCLUDES"
49431: else
49432: INCLUDES="$INCLUDES -I$ai_p"
49433: fi
49434:
49435: fi
49436:
49437: fi
49438:
49439:
49440:
49441: if test "$ext_shared" = "yes"; then
49442: GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
49443: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
49444:
49445: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
49446:
49447: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
49448: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
49449: else
49450:
49451: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
49452:
49453: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49454: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
49455: fi
49456:
49457:
49458: if test "$ext_shared" = "yes"; then
49459: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
49460: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
49461: else
49462:
49463:
49464:
49465: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49466:
49467: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49468: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49469: eval "LIBPATH$unique=set"
49470:
49471: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49472: LDFLAGS="$LDFLAGS -L$ai_p"
49473: PHP_RPATHS="$PHP_RPATHS $ai_p"
49474:
49475: fi
49476:
49477:
49478: fi
49479:
49480: fi
49481:
49482: fi
49483: else
49484:
49485:
49486: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
49487:
49488: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
49489:
49490: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
49491: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
49492: else
49493:
49494: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
49495:
49496: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49497: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
49498: fi
49499:
49500:
49501:
49502:
49503:
49504: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49505:
49506: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49507: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49508: eval "LIBPATH$unique=set"
49509:
49510: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49511: LDFLAGS="$LDFLAGS -L$ai_p"
49512: PHP_RPATHS="$PHP_RPATHS $ai_p"
49513:
49514: fi
49515:
49516:
49517:
49518: fi
49519:
49520: fi
49521:
49522:
49523: case jpeg in
49524: c|c_r|pthread*) ;;
49525: *)
49526: LIBS="-ljpeg $LIBS"
49527: ;;
49528: esac
49529:
49530:
49531:
49532:
49533: fi
49534:
49535:
49536:
49537:
49538: else
49539:
49540: LDFLAGS=$save_old_LDFLAGS
49541: ext_shared=$save_ext_shared
49542: unset ac_cv_lib_jpeg_jpeg_read_header
49543:
1.1.1.3 ! misho 49544: { { echo "$as_me:$LINENO: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&5
! 49545: echo "$as_me: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&2;}
! 49546: { (exit 1); exit 1; }; }
1.1 misho 49547:
49548:
49549: fi
49550:
49551: else
1.1.1.3 ! misho 49552: { echo "$as_me:$LINENO: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
! 49553: echo "${ECHO_T}If configure fails try --with-jpeg-dir=<DIR>" >&6; }
1.1 misho 49554: fi
49555:
49556:
1.1.1.2 misho 49557: if test "$PHP_VPX_DIR" != "no"; then
1.1 misho 49558:
1.1.1.2 misho 49559: for i in $PHP_VPX_DIR /usr/local /usr; do
49560: test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
1.1 misho 49561: done
49562:
1.1.1.2 misho 49563: if test -z "$GD_VPX_DIR"; then
1.1.1.3 ! misho 49564: { { echo "$as_me:$LINENO: error: vpx_codec.h not found." >&5
! 49565: echo "$as_me: error: vpx_codec.h not found." >&2;}
! 49566: { (exit 1); exit 1; }; }
1.1 misho 49567: fi
49568:
49569:
49570: save_old_LDFLAGS=$LDFLAGS
49571: ac_stuff="
1.1.1.2 misho 49572: -L$GD_VPX_DIR/$PHP_LIBDIR
1.1 misho 49573: "
49574:
49575: save_ext_shared=$ext_shared
49576: ext_shared=yes
49577:
49578: for ac_i in $ac_stuff; do
49579: case $ac_i in
49580: -pthread)
49581: if test "$ext_shared" = "yes"; then
49582: LDFLAGS="$LDFLAGS -pthread"
49583: else
49584:
49585:
49586: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49587:
49588: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49589: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49590: eval "EXTRA_LDFLAGS$unique=set"
49591: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49592: fi
49593:
49594: fi
49595: ;;
49596: -l*)
49597: ac_ii=`echo $ac_i|cut -c 3-`
49598:
49599:
49600: case $ac_ii in
49601: c|c_r|pthread*) ;;
49602: *)
49603: if test "$ext_shared" = "yes"; then
49604: LDFLAGS="$LDFLAGS -l$ac_ii"
49605: else
49606:
49607:
49608: case $ac_ii in
49609: c|c_r|pthread*) ;;
49610: *)
49611: LIBS="$LIBS -l$ac_ii"
49612: ;;
49613: esac
49614:
49615:
49616: fi
49617: ;;
49618: esac
49619:
49620:
49621: ;;
49622: -L*)
49623: ac_ii=`echo $ac_i|cut -c 3-`
49624:
49625: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49626:
49627: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49628: ai_p=$ac_ii
49629: else
49630:
49631: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49632:
49633: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49634: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49635: fi
49636:
49637:
49638: if test "$ext_shared" = "yes"; then
49639: LDFLAGS="-L$ai_p $LDFLAGS"
49640: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49641: else
49642:
49643:
49644:
49645: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49646:
49647: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49648: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49649: eval "LIBPATH$unique=set"
49650:
49651: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49652: LDFLAGS="$LDFLAGS -L$ai_p"
49653: PHP_RPATHS="$PHP_RPATHS $ai_p"
49654:
49655: fi
49656:
49657:
49658: fi
49659:
49660: fi
49661:
49662: ;;
49663: esac
49664: done
49665:
1.1.1.3 ! misho 49666: { echo "$as_me:$LINENO: checking for vpx_codec_destroy in -lvpx" >&5
! 49667: echo $ECHO_N "checking for vpx_codec_destroy in -lvpx... $ECHO_C" >&6; }
! 49668: if test "${ac_cv_lib_vpx_vpx_codec_destroy+set}" = set; then
! 49669: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 49670: else
49671: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 misho 49672: LIBS="-lvpx $LIBS"
1.1.1.3 ! misho 49673: cat >conftest.$ac_ext <<_ACEOF
! 49674: /* confdefs.h. */
! 49675: _ACEOF
! 49676: cat confdefs.h >>conftest.$ac_ext
! 49677: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 49678: /* end confdefs.h. */
49679:
49680: /* Override any GCC internal prototype to avoid an error.
49681: Use char because int might match the return type of a GCC
49682: builtin and then its argument prototype would still apply. */
49683: #ifdef __cplusplus
49684: extern "C"
49685: #endif
1.1.1.2 misho 49686: char vpx_codec_destroy ();
1.1 misho 49687: int
49688: main ()
49689: {
1.1.1.2 misho 49690: return vpx_codec_destroy ();
1.1 misho 49691: ;
49692: return 0;
49693: }
49694: _ACEOF
1.1.1.3 ! misho 49695: rm -f conftest.$ac_objext conftest$ac_exeext
! 49696: if { (ac_try="$ac_link"
! 49697: case "(($ac_try" in
! 49698: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 49699: *) ac_try_echo=$ac_try;;
! 49700: esac
! 49701: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 49702: (eval "$ac_link") 2>conftest.er1
! 49703: ac_status=$?
! 49704: grep -v '^ *+' conftest.er1 >conftest.err
! 49705: rm -f conftest.er1
! 49706: cat conftest.err >&5
! 49707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 49708: (exit $ac_status); } && {
! 49709: test -z "$ac_c_werror_flag" ||
! 49710: test ! -s conftest.err
! 49711: } && test -s conftest$ac_exeext &&
! 49712: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 49713: ac_cv_lib_vpx_vpx_codec_destroy=yes
1.1 misho 49714: else
1.1.1.3 ! misho 49715: echo "$as_me: failed program was:" >&5
! 49716: sed 's/^/| /' conftest.$ac_ext >&5
! 49717:
! 49718: ac_cv_lib_vpx_vpx_codec_destroy=no
1.1 misho 49719: fi
1.1.1.3 ! misho 49720:
! 49721: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 49722: conftest$ac_exeext conftest.$ac_ext
1.1 misho 49723: LIBS=$ac_check_lib_save_LIBS
49724: fi
1.1.1.3 ! misho 49725: { echo "$as_me:$LINENO: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5
! 49726: echo "${ECHO_T}$ac_cv_lib_vpx_vpx_codec_destroy" >&6; }
! 49727: if test $ac_cv_lib_vpx_vpx_codec_destroy = yes; then
1.1 misho 49728:
49729: LDFLAGS=$save_old_LDFLAGS
49730: ext_shared=$save_ext_shared
49731:
49732:
1.1.1.2 misho 49733: if test "$GD_VPX_DIR/include" != "/usr/include"; then
1.1 misho 49734:
1.1.1.2 misho 49735: if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then
49736: ai_p=$GD_VPX_DIR/include
1.1 misho 49737: else
49738:
1.1.1.2 misho 49739: ep_dir="`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 49740:
49741: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 49742: ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/include\"`"
1.1 misho 49743: fi
49744:
49745:
49746:
49747: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49748:
49749: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
49750: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49751: eval "INCLUDEPATH$unique=set"
49752:
49753: if test ""; then
49754: INCLUDES="-I$ai_p $INCLUDES"
49755: else
49756: INCLUDES="$INCLUDES -I$ai_p"
49757: fi
49758:
49759: fi
49760:
49761: fi
49762:
49763:
49764:
1.1.1.2 misho 49765: case pthread in
49766: c|c_r|pthread*) ;;
49767: *)
49768: LIBS="-lpthread $LIBS"
49769: ;;
49770: esac
49771:
49772:
49773:
49774:
1.1 misho 49775: if test "$ext_shared" = "yes"; then
1.1.1.2 misho 49776: GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD"
49777: if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
1.1 misho 49778:
1.1.1.2 misho 49779: if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1 misho 49780:
1.1.1.2 misho 49781: if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
49782: ai_p=$GD_VPX_DIR/$PHP_LIBDIR
1.1 misho 49783: else
49784:
1.1.1.2 misho 49785: ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 49786:
49787: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 49788: ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
49789: fi
49790:
49791:
49792: if test "$ext_shared" = "yes"; then
49793: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
49794: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
49795: else
49796:
49797:
49798:
49799: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49800:
49801: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49802: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49803: eval "LIBPATH$unique=set"
49804:
49805: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49806: LDFLAGS="$LDFLAGS -L$ai_p"
49807: PHP_RPATHS="$PHP_RPATHS $ai_p"
49808:
49809: fi
49810:
49811:
49812: fi
49813:
49814: fi
49815:
49816: fi
49817: else
49818:
49819:
49820: if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
49821:
49822: if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
49823:
49824: if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
49825: ai_p=$GD_VPX_DIR/$PHP_LIBDIR
49826: else
49827:
49828: ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
49829:
49830: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49831: ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
49832: fi
49833:
49834:
49835:
49836:
49837:
49838: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49839:
49840: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49841: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49842: eval "LIBPATH$unique=set"
49843:
49844: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49845: LDFLAGS="$LDFLAGS -L$ai_p"
49846: PHP_RPATHS="$PHP_RPATHS $ai_p"
49847:
49848: fi
49849:
49850:
49851:
49852: fi
49853:
49854: fi
49855:
49856:
49857: case vpx in
49858: c|c_r|pthread*) ;;
49859: *)
49860: LIBS="-lvpx $LIBS"
49861: ;;
49862: esac
49863:
49864:
49865:
49866:
49867: fi
49868:
49869:
49870:
49871:
49872: else
49873:
49874: LDFLAGS=$save_old_LDFLAGS
49875: ext_shared=$save_ext_shared
49876: unset ac_cv_lib_vpx_vpx_codec_destroy
49877:
1.1.1.3 ! misho 49878: { { echo "$as_me:$LINENO: error: Problem with libvpx.(a|so). Please check config.log for more information." >&5
! 49879: echo "$as_me: error: Problem with libvpx.(a|so). Please check config.log for more information." >&2;}
! 49880: { (exit 1); exit 1; }; }
1.1.1.2 misho 49881:
49882:
49883: fi
49884:
49885: else
1.1.1.3 ! misho 49886: { echo "$as_me:$LINENO: result: If configure fails try --with-vpx-dir=<DIR>" >&5
! 49887: echo "${ECHO_T}If configure fails try --with-vpx-dir=<DIR>" >&6; }
1.1.1.2 misho 49888: fi
49889:
49890:
49891: if test "$PHP_PNG_DIR" != "no"; then
49892:
49893: for i in $PHP_PNG_DIR /usr/local /usr; do
49894: test -f $i/include/png.h && GD_PNG_DIR=$i && break
49895: done
49896:
49897: if test -z "$GD_PNG_DIR"; then
1.1.1.3 ! misho 49898: { { echo "$as_me:$LINENO: error: png.h not found." >&5
! 49899: echo "$as_me: error: png.h not found." >&2;}
! 49900: { (exit 1); exit 1; }; }
1.1.1.2 misho 49901: fi
49902:
49903: if test "$PHP_ZLIB_DIR" = "no"; then
1.1.1.3 ! misho 49904: { { echo "$as_me:$LINENO: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&5
! 49905: echo "$as_me: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&2;}
! 49906: { (exit 1); exit 1; }; }
1.1.1.2 misho 49907: fi
49908:
49909:
49910: save_old_LDFLAGS=$LDFLAGS
49911: ac_stuff="
49912: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
49913: "
49914:
49915: save_ext_shared=$ext_shared
49916: ext_shared=yes
49917:
49918: for ac_i in $ac_stuff; do
49919: case $ac_i in
49920: -pthread)
49921: if test "$ext_shared" = "yes"; then
49922: LDFLAGS="$LDFLAGS -pthread"
49923: else
49924:
49925:
49926: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49927:
49928: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49929: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49930: eval "EXTRA_LDFLAGS$unique=set"
49931: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49932: fi
49933:
49934: fi
49935: ;;
49936: -l*)
49937: ac_ii=`echo $ac_i|cut -c 3-`
49938:
49939:
49940: case $ac_ii in
49941: c|c_r|pthread*) ;;
49942: *)
49943: if test "$ext_shared" = "yes"; then
49944: LDFLAGS="$LDFLAGS -l$ac_ii"
49945: else
49946:
49947:
49948: case $ac_ii in
49949: c|c_r|pthread*) ;;
49950: *)
49951: LIBS="$LIBS -l$ac_ii"
49952: ;;
49953: esac
49954:
49955:
49956: fi
49957: ;;
49958: esac
49959:
49960:
49961: ;;
49962: -L*)
49963: ac_ii=`echo $ac_i|cut -c 3-`
49964:
49965: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49966:
49967: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49968: ai_p=$ac_ii
49969: else
49970:
49971: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49972:
49973: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49974: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49975: fi
49976:
49977:
49978: if test "$ext_shared" = "yes"; then
49979: LDFLAGS="-L$ai_p $LDFLAGS"
49980: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49981: else
49982:
49983:
49984:
49985: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49986:
49987: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49988: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49989: eval "LIBPATH$unique=set"
49990:
49991: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49992: LDFLAGS="$LDFLAGS -L$ai_p"
49993: PHP_RPATHS="$PHP_RPATHS $ai_p"
49994:
49995: fi
49996:
49997:
49998: fi
49999:
50000: fi
50001:
50002: ;;
50003: esac
50004: done
50005:
1.1.1.3 ! misho 50006: { echo "$as_me:$LINENO: checking for png_write_image in -lpng" >&5
! 50007: echo $ECHO_N "checking for png_write_image in -lpng... $ECHO_C" >&6; }
! 50008: if test "${ac_cv_lib_png_png_write_image+set}" = set; then
! 50009: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 50010: else
50011: ac_check_lib_save_LIBS=$LIBS
50012: LIBS="-lpng $LIBS"
1.1.1.3 ! misho 50013: cat >conftest.$ac_ext <<_ACEOF
! 50014: /* confdefs.h. */
! 50015: _ACEOF
! 50016: cat confdefs.h >>conftest.$ac_ext
! 50017: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 50018: /* end confdefs.h. */
50019:
50020: /* Override any GCC internal prototype to avoid an error.
50021: Use char because int might match the return type of a GCC
50022: builtin and then its argument prototype would still apply. */
50023: #ifdef __cplusplus
50024: extern "C"
50025: #endif
50026: char png_write_image ();
50027: int
50028: main ()
50029: {
50030: return png_write_image ();
50031: ;
50032: return 0;
50033: }
50034: _ACEOF
1.1.1.3 ! misho 50035: rm -f conftest.$ac_objext conftest$ac_exeext
! 50036: if { (ac_try="$ac_link"
! 50037: case "(($ac_try" in
! 50038: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 50039: *) ac_try_echo=$ac_try;;
! 50040: esac
! 50041: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 50042: (eval "$ac_link") 2>conftest.er1
! 50043: ac_status=$?
! 50044: grep -v '^ *+' conftest.er1 >conftest.err
! 50045: rm -f conftest.er1
! 50046: cat conftest.err >&5
! 50047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 50048: (exit $ac_status); } && {
! 50049: test -z "$ac_c_werror_flag" ||
! 50050: test ! -s conftest.err
! 50051: } && test -s conftest$ac_exeext &&
! 50052: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 50053: ac_cv_lib_png_png_write_image=yes
50054: else
1.1.1.3 ! misho 50055: echo "$as_me: failed program was:" >&5
! 50056: sed 's/^/| /' conftest.$ac_ext >&5
! 50057:
! 50058: ac_cv_lib_png_png_write_image=no
1.1.1.2 misho 50059: fi
1.1.1.3 ! misho 50060:
! 50061: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 50062: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 50063: LIBS=$ac_check_lib_save_LIBS
50064: fi
1.1.1.3 ! misho 50065: { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_write_image" >&5
! 50066: echo "${ECHO_T}$ac_cv_lib_png_png_write_image" >&6; }
! 50067: if test $ac_cv_lib_png_png_write_image = yes; then
1.1.1.2 misho 50068:
50069: LDFLAGS=$save_old_LDFLAGS
50070: ext_shared=$save_ext_shared
50071:
50072:
50073: if test "$GD_PNG_DIR/include" != "/usr/include"; then
50074:
50075: if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
50076: ai_p=$GD_PNG_DIR/include
50077: else
50078:
50079: ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
50080:
50081: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50082: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
50083: fi
50084:
50085:
50086:
50087: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50088:
50089: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50090: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50091: eval "INCLUDEPATH$unique=set"
50092:
50093: if test ""; then
50094: INCLUDES="-I$ai_p $INCLUDES"
50095: else
50096: INCLUDES="$INCLUDES -I$ai_p"
50097: fi
50098:
50099: fi
50100:
50101: fi
50102:
50103:
50104:
50105: if test "$ext_shared" = "yes"; then
50106: GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
50107: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
50108:
50109: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50110:
50111: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50112: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
50113: else
50114:
50115: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50116:
50117: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50118: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
1.1 misho 50119: fi
50120:
50121:
50122: if test "$ext_shared" = "yes"; then
50123: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50124: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50125: else
50126:
50127:
50128:
50129: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50130:
50131: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50132: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50133: eval "LIBPATH$unique=set"
50134:
50135: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50136: LDFLAGS="$LDFLAGS -L$ai_p"
50137: PHP_RPATHS="$PHP_RPATHS $ai_p"
50138:
50139: fi
50140:
50141:
50142: fi
50143:
50144: fi
50145:
50146: fi
50147: else
50148:
50149:
50150: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
50151:
50152: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50153:
50154: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50155: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
50156: else
50157:
50158: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50159:
50160: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50161: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
50162: fi
50163:
50164:
50165:
50166:
50167:
50168: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50169:
50170: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50171: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50172: eval "LIBPATH$unique=set"
50173:
50174: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50175: LDFLAGS="$LDFLAGS -L$ai_p"
50176: PHP_RPATHS="$PHP_RPATHS $ai_p"
50177:
50178: fi
50179:
50180:
50181:
50182: fi
50183:
50184: fi
50185:
50186:
50187: case z in
50188: c|c_r|pthread*) ;;
50189: *)
50190: LIBS="-lz $LIBS"
50191: ;;
50192: esac
50193:
50194:
50195:
50196:
50197: fi
50198:
50199:
50200:
50201:
50202: if test "$ext_shared" = "yes"; then
50203: GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
50204: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
50205:
50206: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50207:
50208: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50209: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
50210: else
50211:
50212: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50213:
50214: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50215: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
50216: fi
50217:
50218:
50219: if test "$ext_shared" = "yes"; then
50220: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50221: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50222: else
50223:
50224:
50225:
50226: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50227:
50228: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50229: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50230: eval "LIBPATH$unique=set"
50231:
50232: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50233: LDFLAGS="$LDFLAGS -L$ai_p"
50234: PHP_RPATHS="$PHP_RPATHS $ai_p"
50235:
50236: fi
50237:
50238:
50239: fi
50240:
50241: fi
50242:
50243: fi
50244: else
50245:
50246:
50247: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
50248:
50249: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50250:
50251: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50252: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
50253: else
50254:
50255: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50256:
50257: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50258: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
50259: fi
50260:
50261:
50262:
50263:
50264:
50265: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50266:
50267: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50268: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50269: eval "LIBPATH$unique=set"
50270:
50271: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50272: LDFLAGS="$LDFLAGS -L$ai_p"
50273: PHP_RPATHS="$PHP_RPATHS $ai_p"
50274:
50275: fi
50276:
50277:
50278:
50279: fi
50280:
50281: fi
50282:
50283:
50284: case png in
50285: c|c_r|pthread*) ;;
50286: *)
50287: LIBS="-lpng $LIBS"
50288: ;;
50289: esac
50290:
50291:
50292:
50293:
50294: fi
50295:
50296:
50297:
50298:
50299: else
50300:
50301: LDFLAGS=$save_old_LDFLAGS
50302: ext_shared=$save_ext_shared
50303: unset ac_cv_lib_png_png_write_image
50304:
1.1.1.3 ! misho 50305: { { echo "$as_me:$LINENO: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&5
! 50306: echo "$as_me: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&2;}
! 50307: { (exit 1); exit 1; }; }
1.1 misho 50308:
50309:
50310: fi
50311:
50312:
50313: else
1.1.1.3 ! misho 50314: { echo "$as_me:$LINENO: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
! 50315: echo "${ECHO_T}If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
1.1 misho 50316: fi
50317:
50318:
50319: if test "$PHP_XPM_DIR" != "no"; then
50320:
50321: for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
50322: test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
50323: done
50324:
50325: if test -z "$GD_XPM_DIR"; then
1.1.1.3 ! misho 50326: { { echo "$as_me:$LINENO: error: libXpm.(a|so) not found." >&5
! 50327: echo "$as_me: error: libXpm.(a|so) not found." >&2;}
! 50328: { (exit 1); exit 1; }; }
1.1 misho 50329: fi
50330:
50331: for i in include include/X11; do
50332: test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
50333: done
50334:
50335: if test -z "$GD_XPM_INC"; then
1.1.1.3 ! misho 50336: { { echo "$as_me:$LINENO: error: xpm.h not found." >&5
! 50337: echo "$as_me: error: xpm.h not found." >&2;}
! 50338: { (exit 1); exit 1; }; }
1.1 misho 50339: fi
50340:
50341:
50342: save_old_LDFLAGS=$LDFLAGS
50343: ac_stuff="
50344: -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
50345: "
50346:
50347: save_ext_shared=$ext_shared
50348: ext_shared=yes
50349:
50350: for ac_i in $ac_stuff; do
50351: case $ac_i in
50352: -pthread)
50353: if test "$ext_shared" = "yes"; then
50354: LDFLAGS="$LDFLAGS -pthread"
50355: else
50356:
50357:
50358: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50359:
50360: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50361: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50362: eval "EXTRA_LDFLAGS$unique=set"
50363: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50364: fi
50365:
50366: fi
50367: ;;
50368: -l*)
50369: ac_ii=`echo $ac_i|cut -c 3-`
50370:
50371:
50372: case $ac_ii in
50373: c|c_r|pthread*) ;;
50374: *)
50375: if test "$ext_shared" = "yes"; then
50376: LDFLAGS="$LDFLAGS -l$ac_ii"
50377: else
50378:
50379:
50380: case $ac_ii in
50381: c|c_r|pthread*) ;;
50382: *)
50383: LIBS="$LIBS -l$ac_ii"
50384: ;;
50385: esac
50386:
50387:
50388: fi
50389: ;;
50390: esac
50391:
50392:
50393: ;;
50394: -L*)
50395: ac_ii=`echo $ac_i|cut -c 3-`
50396:
50397: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50398:
50399: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50400: ai_p=$ac_ii
50401: else
50402:
50403: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
50404:
50405: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50406: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
50407: fi
50408:
50409:
50410: if test "$ext_shared" = "yes"; then
50411: LDFLAGS="-L$ai_p $LDFLAGS"
50412: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50413: else
50414:
50415:
50416:
50417: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50418:
50419: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50420: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50421: eval "LIBPATH$unique=set"
50422:
50423: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50424: LDFLAGS="$LDFLAGS -L$ai_p"
50425: PHP_RPATHS="$PHP_RPATHS $ai_p"
50426:
50427: fi
50428:
50429:
50430: fi
50431:
50432: fi
50433:
50434: ;;
50435: esac
50436: done
50437:
1.1.1.3 ! misho 50438: { echo "$as_me:$LINENO: checking for XpmFreeXpmImage in -lXpm" >&5
! 50439: echo $ECHO_N "checking for XpmFreeXpmImage in -lXpm... $ECHO_C" >&6; }
! 50440: if test "${ac_cv_lib_Xpm_XpmFreeXpmImage+set}" = set; then
! 50441: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 50442: else
50443: ac_check_lib_save_LIBS=$LIBS
50444: LIBS="-lXpm $LIBS"
1.1.1.3 ! misho 50445: cat >conftest.$ac_ext <<_ACEOF
! 50446: /* confdefs.h. */
! 50447: _ACEOF
! 50448: cat confdefs.h >>conftest.$ac_ext
! 50449: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 50450: /* end confdefs.h. */
50451:
50452: /* Override any GCC internal prototype to avoid an error.
50453: Use char because int might match the return type of a GCC
50454: builtin and then its argument prototype would still apply. */
50455: #ifdef __cplusplus
50456: extern "C"
50457: #endif
50458: char XpmFreeXpmImage ();
50459: int
50460: main ()
50461: {
50462: return XpmFreeXpmImage ();
50463: ;
50464: return 0;
50465: }
50466: _ACEOF
1.1.1.3 ! misho 50467: rm -f conftest.$ac_objext conftest$ac_exeext
! 50468: if { (ac_try="$ac_link"
! 50469: case "(($ac_try" in
! 50470: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 50471: *) ac_try_echo=$ac_try;;
! 50472: esac
! 50473: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 50474: (eval "$ac_link") 2>conftest.er1
! 50475: ac_status=$?
! 50476: grep -v '^ *+' conftest.er1 >conftest.err
! 50477: rm -f conftest.er1
! 50478: cat conftest.err >&5
! 50479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 50480: (exit $ac_status); } && {
! 50481: test -z "$ac_c_werror_flag" ||
! 50482: test ! -s conftest.err
! 50483: } && test -s conftest$ac_exeext &&
! 50484: $as_test_x conftest$ac_exeext; then
1.1 misho 50485: ac_cv_lib_Xpm_XpmFreeXpmImage=yes
50486: else
1.1.1.3 ! misho 50487: echo "$as_me: failed program was:" >&5
! 50488: sed 's/^/| /' conftest.$ac_ext >&5
! 50489:
! 50490: ac_cv_lib_Xpm_XpmFreeXpmImage=no
1.1 misho 50491: fi
1.1.1.3 ! misho 50492:
! 50493: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 50494: conftest$ac_exeext conftest.$ac_ext
1.1 misho 50495: LIBS=$ac_check_lib_save_LIBS
50496: fi
1.1.1.3 ! misho 50497: { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
! 50498: echo "${ECHO_T}$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
! 50499: if test $ac_cv_lib_Xpm_XpmFreeXpmImage = yes; then
1.1 misho 50500:
50501: LDFLAGS=$save_old_LDFLAGS
50502: ext_shared=$save_ext_shared
50503:
50504:
50505: if test "$GD_XPM_INC" != "/usr/include"; then
50506:
50507: if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
50508: ai_p=$GD_XPM_INC
50509: else
50510:
50511: ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
50512:
50513: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50514: ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
50515: fi
50516:
50517:
50518:
50519: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50520:
50521: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50522: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50523: eval "INCLUDEPATH$unique=set"
50524:
50525: if test ""; then
50526: INCLUDES="-I$ai_p $INCLUDES"
50527: else
50528: INCLUDES="$INCLUDES -I$ai_p"
50529: fi
50530:
50531: fi
50532:
50533: fi
50534:
50535:
50536:
50537: if test "$ext_shared" = "yes"; then
50538: GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
50539: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
50540:
50541: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50542:
50543: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50544: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
50545: else
50546:
50547: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50548:
50549: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50550: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
50551: fi
50552:
50553:
50554: if test "$ext_shared" = "yes"; then
50555: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50556: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50557: else
50558:
50559:
50560:
50561: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50562:
50563: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50564: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50565: eval "LIBPATH$unique=set"
50566:
50567: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50568: LDFLAGS="$LDFLAGS -L$ai_p"
50569: PHP_RPATHS="$PHP_RPATHS $ai_p"
50570:
50571: fi
50572:
50573:
50574: fi
50575:
50576: fi
50577:
50578: fi
50579: else
50580:
50581:
50582: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
50583:
50584: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50585:
50586: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50587: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
50588: else
50589:
50590: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50591:
50592: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50593: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
50594: fi
50595:
50596:
50597:
50598:
50599:
50600: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50601:
50602: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50603: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50604: eval "LIBPATH$unique=set"
50605:
50606: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50607: LDFLAGS="$LDFLAGS -L$ai_p"
50608: PHP_RPATHS="$PHP_RPATHS $ai_p"
50609:
50610: fi
50611:
50612:
50613:
50614: fi
50615:
50616: fi
50617:
50618:
50619: case Xpm in
50620: c|c_r|pthread*) ;;
50621: *)
50622: LIBS="-lXpm $LIBS"
50623: ;;
50624: esac
50625:
50626:
50627:
50628:
50629: fi
50630:
50631:
50632:
50633:
50634: if test "$ext_shared" = "yes"; then
50635: GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
50636: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
50637:
50638: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50639:
50640: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50641: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
50642: else
50643:
50644: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50645:
50646: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50647: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
50648: fi
50649:
50650:
50651: if test "$ext_shared" = "yes"; then
50652: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50653: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50654: else
50655:
50656:
50657:
50658: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50659:
50660: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50661: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50662: eval "LIBPATH$unique=set"
50663:
50664: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50665: LDFLAGS="$LDFLAGS -L$ai_p"
50666: PHP_RPATHS="$PHP_RPATHS $ai_p"
50667:
50668: fi
50669:
50670:
50671: fi
50672:
50673: fi
50674:
50675: fi
50676: else
50677:
50678:
50679: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
50680:
50681: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50682:
50683: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50684: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
50685: else
50686:
50687: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50688:
50689: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50690: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
50691: fi
50692:
50693:
50694:
50695:
50696:
50697: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50698:
50699: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50700: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50701: eval "LIBPATH$unique=set"
50702:
50703: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50704: LDFLAGS="$LDFLAGS -L$ai_p"
50705: PHP_RPATHS="$PHP_RPATHS $ai_p"
50706:
50707: fi
50708:
50709:
50710:
50711: fi
50712:
50713: fi
50714:
50715:
50716: case X11 in
50717: c|c_r|pthread*) ;;
50718: *)
50719: LIBS="-lX11 $LIBS"
50720: ;;
50721: esac
50722:
50723:
50724:
50725:
50726: fi
50727:
50728:
50729:
50730:
50731: else
50732:
50733: LDFLAGS=$save_old_LDFLAGS
50734: ext_shared=$save_ext_shared
50735: unset ac_cv_lib_Xpm_XpmFreeXpmImage
50736:
1.1.1.3 ! misho 50737: { { echo "$as_me:$LINENO: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&5
! 50738: echo "$as_me: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&2;}
! 50739: { (exit 1); exit 1; }; }
1.1 misho 50740:
50741:
50742: fi
50743:
50744: else
1.1.1.3 ! misho 50745: { echo "$as_me:$LINENO: result: If configure fails try --with-xpm-dir=<DIR>" >&5
! 50746: echo "${ECHO_T}If configure fails try --with-xpm-dir=<DIR>" >&6; }
1.1 misho 50747: fi
50748:
50749:
50750: if test "$PHP_FREETYPE_DIR" != "no"; then
50751:
50752: for i in $PHP_FREETYPE_DIR /usr/local /usr; do
50753: if test -f "$i/include/freetype2/freetype/freetype.h"; then
50754: FREETYPE2_DIR=$i
50755: FREETYPE2_INC_DIR=$i/include/freetype2
50756: break
50757: fi
50758: done
50759:
50760: if test -z "$FREETYPE2_DIR"; then
1.1.1.3 ! misho 50761: { { echo "$as_me:$LINENO: error: freetype.h not found." >&5
! 50762: echo "$as_me: error: freetype.h not found." >&2;}
! 50763: { (exit 1); exit 1; }; }
1.1 misho 50764: fi
50765:
50766:
50767: save_old_LDFLAGS=$LDFLAGS
50768: ac_stuff="
50769: -L$FREETYPE2_DIR/$PHP_LIBDIR
50770: "
50771:
50772: save_ext_shared=$ext_shared
50773: ext_shared=yes
50774:
50775: for ac_i in $ac_stuff; do
50776: case $ac_i in
50777: -pthread)
50778: if test "$ext_shared" = "yes"; then
50779: LDFLAGS="$LDFLAGS -pthread"
50780: else
50781:
50782:
50783: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50784:
50785: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50786: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50787: eval "EXTRA_LDFLAGS$unique=set"
50788: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50789: fi
50790:
50791: fi
50792: ;;
50793: -l*)
50794: ac_ii=`echo $ac_i|cut -c 3-`
50795:
50796:
50797: case $ac_ii in
50798: c|c_r|pthread*) ;;
50799: *)
50800: if test "$ext_shared" = "yes"; then
50801: LDFLAGS="$LDFLAGS -l$ac_ii"
50802: else
50803:
50804:
50805: case $ac_ii in
50806: c|c_r|pthread*) ;;
50807: *)
50808: LIBS="$LIBS -l$ac_ii"
50809: ;;
50810: esac
50811:
50812:
50813: fi
50814: ;;
50815: esac
50816:
50817:
50818: ;;
50819: -L*)
50820: ac_ii=`echo $ac_i|cut -c 3-`
50821:
50822: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50823:
50824: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50825: ai_p=$ac_ii
50826: else
50827:
50828: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
50829:
50830: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50831: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
50832: fi
50833:
50834:
50835: if test "$ext_shared" = "yes"; then
50836: LDFLAGS="-L$ai_p $LDFLAGS"
50837: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50838: else
50839:
50840:
50841:
50842: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50843:
50844: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50845: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50846: eval "LIBPATH$unique=set"
50847:
50848: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50849: LDFLAGS="$LDFLAGS -L$ai_p"
50850: PHP_RPATHS="$PHP_RPATHS $ai_p"
50851:
50852: fi
50853:
50854:
50855: fi
50856:
50857: fi
50858:
50859: ;;
50860: esac
50861: done
50862:
1.1.1.3 ! misho 50863: { echo "$as_me:$LINENO: checking for FT_New_Face in -lfreetype" >&5
! 50864: echo $ECHO_N "checking for FT_New_Face in -lfreetype... $ECHO_C" >&6; }
! 50865: if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then
! 50866: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 50867: else
50868: ac_check_lib_save_LIBS=$LIBS
50869: LIBS="-lfreetype $LIBS"
1.1.1.3 ! misho 50870: cat >conftest.$ac_ext <<_ACEOF
! 50871: /* confdefs.h. */
! 50872: _ACEOF
! 50873: cat confdefs.h >>conftest.$ac_ext
! 50874: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 50875: /* end confdefs.h. */
50876:
50877: /* Override any GCC internal prototype to avoid an error.
50878: Use char because int might match the return type of a GCC
50879: builtin and then its argument prototype would still apply. */
50880: #ifdef __cplusplus
50881: extern "C"
50882: #endif
50883: char FT_New_Face ();
50884: int
50885: main ()
50886: {
50887: return FT_New_Face ();
50888: ;
50889: return 0;
50890: }
50891: _ACEOF
1.1.1.3 ! misho 50892: rm -f conftest.$ac_objext conftest$ac_exeext
! 50893: if { (ac_try="$ac_link"
! 50894: case "(($ac_try" in
! 50895: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 50896: *) ac_try_echo=$ac_try;;
! 50897: esac
! 50898: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 50899: (eval "$ac_link") 2>conftest.er1
! 50900: ac_status=$?
! 50901: grep -v '^ *+' conftest.er1 >conftest.err
! 50902: rm -f conftest.er1
! 50903: cat conftest.err >&5
! 50904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 50905: (exit $ac_status); } && {
! 50906: test -z "$ac_c_werror_flag" ||
! 50907: test ! -s conftest.err
! 50908: } && test -s conftest$ac_exeext &&
! 50909: $as_test_x conftest$ac_exeext; then
1.1 misho 50910: ac_cv_lib_freetype_FT_New_Face=yes
50911: else
1.1.1.3 ! misho 50912: echo "$as_me: failed program was:" >&5
! 50913: sed 's/^/| /' conftest.$ac_ext >&5
! 50914:
! 50915: ac_cv_lib_freetype_FT_New_Face=no
1.1 misho 50916: fi
1.1.1.3 ! misho 50917:
! 50918: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 50919: conftest$ac_exeext conftest.$ac_ext
1.1 misho 50920: LIBS=$ac_check_lib_save_LIBS
50921: fi
1.1.1.3 ! misho 50922: { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_New_Face" >&5
! 50923: echo "${ECHO_T}$ac_cv_lib_freetype_FT_New_Face" >&6; }
! 50924: if test $ac_cv_lib_freetype_FT_New_Face = yes; then
1.1 misho 50925:
50926: LDFLAGS=$save_old_LDFLAGS
50927: ext_shared=$save_ext_shared
50928:
50929:
50930:
50931: if test "$ext_shared" = "yes"; then
50932: GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
50933: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
50934:
50935: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50936:
50937: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50938: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
50939: else
50940:
50941: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50942:
50943: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50944: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
50945: fi
50946:
50947:
50948: if test "$ext_shared" = "yes"; then
50949: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50950: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50951: else
50952:
50953:
50954:
50955: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50956:
50957: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50958: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50959: eval "LIBPATH$unique=set"
50960:
50961: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50962: LDFLAGS="$LDFLAGS -L$ai_p"
50963: PHP_RPATHS="$PHP_RPATHS $ai_p"
50964:
50965: fi
50966:
50967:
50968: fi
50969:
50970: fi
50971:
50972: fi
50973: else
50974:
50975:
50976: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
50977:
50978: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50979:
50980: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50981: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
50982: else
50983:
50984: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50985:
50986: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50987: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
50988: fi
50989:
50990:
50991:
50992:
50993:
50994: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50995:
50996: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50997: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50998: eval "LIBPATH$unique=set"
50999:
51000: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51001: LDFLAGS="$LDFLAGS -L$ai_p"
51002: PHP_RPATHS="$PHP_RPATHS $ai_p"
51003:
51004: fi
51005:
51006:
51007:
51008: fi
51009:
51010: fi
51011:
51012:
51013: case freetype in
51014: c|c_r|pthread*) ;;
51015: *)
51016: LIBS="-lfreetype $LIBS"
51017: ;;
51018: esac
51019:
51020:
51021:
51022:
51023: fi
51024:
51025:
51026:
51027: if test "$FREETYPE2_DIR/include" != "/usr/include"; then
51028:
51029: if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
51030: ai_p=$FREETYPE2_DIR/include
51031: else
51032:
51033: ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
51034:
51035: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51036: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
51037: fi
51038:
51039:
51040:
51041: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51042:
51043: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51044: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51045: eval "INCLUDEPATH$unique=set"
51046:
51047: if test ""; then
51048: INCLUDES="-I$ai_p $INCLUDES"
51049: else
51050: INCLUDES="$INCLUDES -I$ai_p"
51051: fi
51052:
51053: fi
51054:
51055: fi
51056:
51057:
51058: if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
51059:
51060: if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
51061: ai_p=$FREETYPE2_INC_DIR
51062: else
51063:
51064: ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
51065:
51066: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51067: ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
51068: fi
51069:
51070:
51071:
51072: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51073:
51074: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51075: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51076: eval "INCLUDEPATH$unique=set"
51077:
51078: if test ""; then
51079: INCLUDES="-I$ai_p $INCLUDES"
51080: else
51081: INCLUDES="$INCLUDES -I$ai_p"
51082: fi
51083:
51084: fi
51085:
51086: fi
51087:
51088:
1.1.1.3 ! misho 51089: cat >>confdefs.h <<\_ACEOF
! 51090: #define USE_GD_IMGSTRTTF 1
! 51091: _ACEOF
1.1 misho 51092:
51093:
1.1.1.3 ! misho 51094: cat >>confdefs.h <<\_ACEOF
! 51095: #define HAVE_LIBFREETYPE 1
! 51096: _ACEOF
1.1 misho 51097:
51098:
1.1.1.3 ! misho 51099: cat >>confdefs.h <<\_ACEOF
! 51100: #define ENABLE_GD_TTF 1
! 51101: _ACEOF
1.1 misho 51102:
51103:
51104:
51105: else
51106:
51107: LDFLAGS=$save_old_LDFLAGS
51108: ext_shared=$save_ext_shared
51109: unset ac_cv_lib_freetype_FT_New_Face
51110:
1.1.1.3 ! misho 51111: { { echo "$as_me:$LINENO: error: Problem with freetype.(a|so). Please check config.log for more information." >&5
! 51112: echo "$as_me: error: Problem with freetype.(a|so). Please check config.log for more information." >&2;}
! 51113: { (exit 1); exit 1; }; }
1.1 misho 51114:
51115:
51116: fi
51117:
51118: else
1.1.1.3 ! misho 51119: { echo "$as_me:$LINENO: result: If configure fails try --with-freetype-dir=<DIR>" >&5
! 51120: echo "${ECHO_T}If configure fails try --with-freetype-dir=<DIR>" >&6; }
1.1 misho 51121: fi
51122:
51123:
51124: if test "$PHP_T1LIB" != "no"; then
51125:
51126: for i in $PHP_T1LIB /usr/local /usr; do
51127: test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
51128: done
51129:
51130: if test -z "$GD_T1_DIR"; then
1.1.1.3 ! misho 51131: { { echo "$as_me:$LINENO: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&5
! 51132: echo "$as_me: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&2;}
! 51133: { (exit 1); exit 1; }; }
1.1 misho 51134: fi
51135:
51136:
51137: save_old_LDFLAGS=$LDFLAGS
51138: ac_stuff="
51139: -L$GD_T1_DIR/$PHP_LIBDIR
51140: "
51141:
51142: save_ext_shared=$ext_shared
51143: ext_shared=yes
51144:
51145: for ac_i in $ac_stuff; do
51146: case $ac_i in
51147: -pthread)
51148: if test "$ext_shared" = "yes"; then
51149: LDFLAGS="$LDFLAGS -pthread"
51150: else
51151:
51152:
51153: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51154:
51155: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51156: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51157: eval "EXTRA_LDFLAGS$unique=set"
51158: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51159: fi
51160:
51161: fi
51162: ;;
51163: -l*)
51164: ac_ii=`echo $ac_i|cut -c 3-`
51165:
51166:
51167: case $ac_ii in
51168: c|c_r|pthread*) ;;
51169: *)
51170: if test "$ext_shared" = "yes"; then
51171: LDFLAGS="$LDFLAGS -l$ac_ii"
51172: else
51173:
51174:
51175: case $ac_ii in
51176: c|c_r|pthread*) ;;
51177: *)
51178: LIBS="$LIBS -l$ac_ii"
51179: ;;
51180: esac
51181:
51182:
51183: fi
51184: ;;
51185: esac
51186:
51187:
51188: ;;
51189: -L*)
51190: ac_ii=`echo $ac_i|cut -c 3-`
51191:
51192: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51193:
51194: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51195: ai_p=$ac_ii
51196: else
51197:
51198: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
51199:
51200: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51201: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
51202: fi
51203:
51204:
51205: if test "$ext_shared" = "yes"; then
51206: LDFLAGS="-L$ai_p $LDFLAGS"
51207: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51208: else
51209:
51210:
51211:
51212: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51213:
51214: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51215: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51216: eval "LIBPATH$unique=set"
51217:
51218: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51219: LDFLAGS="$LDFLAGS -L$ai_p"
51220: PHP_RPATHS="$PHP_RPATHS $ai_p"
51221:
51222: fi
51223:
51224:
51225: fi
51226:
51227: fi
51228:
51229: ;;
51230: esac
51231: done
51232:
1.1.1.3 ! misho 51233: { echo "$as_me:$LINENO: checking for T1_StrError in -lt1" >&5
! 51234: echo $ECHO_N "checking for T1_StrError in -lt1... $ECHO_C" >&6; }
! 51235: if test "${ac_cv_lib_t1_T1_StrError+set}" = set; then
! 51236: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 51237: else
51238: ac_check_lib_save_LIBS=$LIBS
51239: LIBS="-lt1 $LIBS"
1.1.1.3 ! misho 51240: cat >conftest.$ac_ext <<_ACEOF
! 51241: /* confdefs.h. */
! 51242: _ACEOF
! 51243: cat confdefs.h >>conftest.$ac_ext
! 51244: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 51245: /* end confdefs.h. */
51246:
51247: /* Override any GCC internal prototype to avoid an error.
51248: Use char because int might match the return type of a GCC
51249: builtin and then its argument prototype would still apply. */
51250: #ifdef __cplusplus
51251: extern "C"
51252: #endif
51253: char T1_StrError ();
51254: int
51255: main ()
51256: {
51257: return T1_StrError ();
51258: ;
51259: return 0;
51260: }
51261: _ACEOF
1.1.1.3 ! misho 51262: rm -f conftest.$ac_objext conftest$ac_exeext
! 51263: if { (ac_try="$ac_link"
! 51264: case "(($ac_try" in
! 51265: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 51266: *) ac_try_echo=$ac_try;;
! 51267: esac
! 51268: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 51269: (eval "$ac_link") 2>conftest.er1
! 51270: ac_status=$?
! 51271: grep -v '^ *+' conftest.er1 >conftest.err
! 51272: rm -f conftest.er1
! 51273: cat conftest.err >&5
! 51274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 51275: (exit $ac_status); } && {
! 51276: test -z "$ac_c_werror_flag" ||
! 51277: test ! -s conftest.err
! 51278: } && test -s conftest$ac_exeext &&
! 51279: $as_test_x conftest$ac_exeext; then
1.1 misho 51280: ac_cv_lib_t1_T1_StrError=yes
51281: else
1.1.1.3 ! misho 51282: echo "$as_me: failed program was:" >&5
! 51283: sed 's/^/| /' conftest.$ac_ext >&5
! 51284:
! 51285: ac_cv_lib_t1_T1_StrError=no
1.1 misho 51286: fi
1.1.1.3 ! misho 51287:
! 51288: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 51289: conftest$ac_exeext conftest.$ac_ext
1.1 misho 51290: LIBS=$ac_check_lib_save_LIBS
51291: fi
1.1.1.3 ! misho 51292: { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_StrError" >&5
! 51293: echo "${ECHO_T}$ac_cv_lib_t1_T1_StrError" >&6; }
! 51294: if test $ac_cv_lib_t1_T1_StrError = yes; then
1.1 misho 51295:
51296: LDFLAGS=$save_old_LDFLAGS
51297: ext_shared=$save_ext_shared
51298:
51299:
1.1.1.3 ! misho 51300: cat >>confdefs.h <<\_ACEOF
! 51301: #define HAVE_LIBT1 1
! 51302: _ACEOF
1.1 misho 51303:
51304:
51305: if test "$GD_T1_DIR/include" != "/usr/include"; then
51306:
51307: if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
51308: ai_p=$GD_T1_DIR/include
51309: else
51310:
51311: ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
51312:
51313: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51314: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
51315: fi
51316:
51317:
51318:
51319: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51320:
51321: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51322: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51323: eval "INCLUDEPATH$unique=set"
51324:
51325: if test ""; then
51326: INCLUDES="-I$ai_p $INCLUDES"
51327: else
51328: INCLUDES="$INCLUDES -I$ai_p"
51329: fi
51330:
51331: fi
51332:
51333: fi
51334:
51335:
51336:
51337: if test "$ext_shared" = "yes"; then
51338: GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
51339: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
51340:
51341: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51342:
51343: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51344: ai_p=$GD_T1_DIR/$PHP_LIBDIR
51345: else
51346:
51347: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51348:
51349: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51350: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
51351: fi
51352:
51353:
51354: if test "$ext_shared" = "yes"; then
51355: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
51356: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
51357: else
51358:
51359:
51360:
51361: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51362:
51363: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51364: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51365: eval "LIBPATH$unique=set"
51366:
51367: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51368: LDFLAGS="$LDFLAGS -L$ai_p"
51369: PHP_RPATHS="$PHP_RPATHS $ai_p"
51370:
51371: fi
51372:
51373:
51374: fi
51375:
51376: fi
51377:
51378: fi
51379: else
51380:
51381:
51382: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
51383:
51384: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51385:
51386: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51387: ai_p=$GD_T1_DIR/$PHP_LIBDIR
51388: else
51389:
51390: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51391:
51392: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51393: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
51394: fi
51395:
51396:
51397:
51398:
51399:
51400: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51401:
51402: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51403: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51404: eval "LIBPATH$unique=set"
51405:
51406: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51407: LDFLAGS="$LDFLAGS -L$ai_p"
51408: PHP_RPATHS="$PHP_RPATHS $ai_p"
51409:
51410: fi
51411:
51412:
51413:
51414: fi
51415:
51416: fi
51417:
51418:
51419: case t1 in
51420: c|c_r|pthread*) ;;
51421: *)
51422: LIBS="-lt1 $LIBS"
51423: ;;
51424: esac
51425:
51426:
51427:
51428:
51429: fi
51430:
51431:
51432:
51433:
51434: else
51435:
51436: LDFLAGS=$save_old_LDFLAGS
51437: ext_shared=$save_ext_shared
51438: unset ac_cv_lib_t1_T1_StrError
51439:
1.1.1.3 ! misho 51440: { { echo "$as_me:$LINENO: error: Problem with libt1.(a|so). Please check config.log for more information." >&5
! 51441: echo "$as_me: error: Problem with libt1.(a|so). Please check config.log for more information." >&2;}
! 51442: { (exit 1); exit 1; }; }
1.1 misho 51443:
51444:
51445: fi
51446:
51447: fi
51448:
51449:
51450:
1.1.1.3 ! misho 51451: cat >>confdefs.h <<\_ACEOF
! 51452: #define HAVE_LIBGD 1
! 51453: _ACEOF
1.1 misho 51454:
51455:
1.1.1.3 ! misho 51456: cat >>confdefs.h <<\_ACEOF
! 51457: #define HAVE_LIBGD13 1
! 51458: _ACEOF
1.1 misho 51459:
51460:
1.1.1.3 ! misho 51461: cat >>confdefs.h <<\_ACEOF
! 51462: #define HAVE_LIBGD15 1
! 51463: _ACEOF
1.1 misho 51464:
51465:
1.1.1.3 ! misho 51466: cat >>confdefs.h <<\_ACEOF
! 51467: #define HAVE_LIBGD20 1
! 51468: _ACEOF
1.1 misho 51469:
51470:
1.1.1.3 ! misho 51471: cat >>confdefs.h <<\_ACEOF
! 51472: #define HAVE_LIBGD204 1
! 51473: _ACEOF
1.1 misho 51474:
51475:
1.1.1.3 ! misho 51476: cat >>confdefs.h <<\_ACEOF
! 51477: #define HAVE_GD_IMAGESETTILE 1
! 51478: _ACEOF
1.1 misho 51479:
51480:
1.1.1.3 ! misho 51481: cat >>confdefs.h <<\_ACEOF
! 51482: #define HAVE_GD_IMAGESETBRUSH 1
! 51483: _ACEOF
1.1 misho 51484:
51485:
1.1.1.3 ! misho 51486: cat >>confdefs.h <<\_ACEOF
! 51487: #define HAVE_GDIMAGECOLORRESOLVE 1
! 51488: _ACEOF
1.1 misho 51489:
51490:
1.1.1.3 ! misho 51491: cat >>confdefs.h <<\_ACEOF
! 51492: #define HAVE_COLORCLOSESTHWB 1
! 51493: _ACEOF
1.1 misho 51494:
51495:
1.1.1.3 ! misho 51496: cat >>confdefs.h <<\_ACEOF
! 51497: #define HAVE_GD_WBMP 1
! 51498: _ACEOF
1.1 misho 51499:
51500:
1.1.1.3 ! misho 51501: cat >>confdefs.h <<\_ACEOF
! 51502: #define HAVE_GD_GD2 1
! 51503: _ACEOF
1.1 misho 51504:
51505:
1.1.1.3 ! misho 51506: cat >>confdefs.h <<\_ACEOF
! 51507: #define HAVE_GD_PNG 1
! 51508: _ACEOF
1.1 misho 51509:
51510:
1.1.1.3 ! misho 51511: cat >>confdefs.h <<\_ACEOF
! 51512: #define HAVE_GD_XBM 1
! 51513: _ACEOF
1.1 misho 51514:
51515:
1.1.1.3 ! misho 51516: cat >>confdefs.h <<\_ACEOF
! 51517: #define HAVE_GD_BUNDLED 1
! 51518: _ACEOF
1.1 misho 51519:
51520:
1.1.1.3 ! misho 51521: cat >>confdefs.h <<\_ACEOF
! 51522: #define HAVE_GD_GIF_READ 1
! 51523: _ACEOF
1.1 misho 51524:
51525:
1.1.1.3 ! misho 51526: cat >>confdefs.h <<\_ACEOF
! 51527: #define HAVE_GD_GIF_CREATE 1
! 51528: _ACEOF
1.1 misho 51529:
51530:
1.1.1.3 ! misho 51531: cat >>confdefs.h <<\_ACEOF
! 51532: #define HAVE_GD_IMAGEELLIPSE 1
! 51533: _ACEOF
1.1 misho 51534:
51535:
1.1.1.3 ! misho 51536: cat >>confdefs.h <<\_ACEOF
! 51537: #define HAVE_GD_FONTCACHESHUTDOWN 1
! 51538: _ACEOF
1.1 misho 51539:
51540:
1.1.1.3 ! misho 51541: cat >>confdefs.h <<\_ACEOF
! 51542: #define HAVE_GD_FONTMUTEX 1
! 51543: _ACEOF
1.1 misho 51544:
51545:
1.1.1.3 ! misho 51546: cat >>confdefs.h <<\_ACEOF
! 51547: #define HAVE_GD_DYNAMIC_CTX_EX 1
! 51548: _ACEOF
1.1 misho 51549:
51550:
1.1.1.3 ! misho 51551: cat >>confdefs.h <<\_ACEOF
! 51552: #define HAVE_GD_GIF_CTX 1
! 51553: _ACEOF
1.1 misho 51554:
51555:
51556: GDLIB_CFLAGS="-DHAVE_LIBPNG"
51557:
51558:
1.1.1.2 misho 51559: if test -n "$GD_VPX_DIR"; then
51560:
1.1.1.3 ! misho 51561: cat >>confdefs.h <<\_ACEOF
! 51562: #define HAVE_GD_WEBP 1
! 51563: _ACEOF
1.1.1.2 misho 51564:
51565: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBVPX"
51566: fi
51567:
1.1 misho 51568: if test -n "$GD_JPEG_DIR"; then
51569:
1.1.1.3 ! misho 51570: cat >>confdefs.h <<\_ACEOF
! 51571: #define HAVE_GD_JPG 1
! 51572: _ACEOF
1.1 misho 51573:
51574: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
51575: fi
51576:
51577: if test -n "$GD_XPM_DIR"; then
51578:
1.1.1.3 ! misho 51579: cat >>confdefs.h <<\_ACEOF
! 51580: #define HAVE_GD_XPM 1
! 51581: _ACEOF
1.1 misho 51582:
51583: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
51584: fi
51585:
51586: if test -n "$FREETYPE2_DIR"; then
51587:
1.1.1.3 ! misho 51588: cat >>confdefs.h <<\_ACEOF
! 51589: #define HAVE_GD_STRINGFT 1
! 51590: _ACEOF
1.1 misho 51591:
51592:
1.1.1.3 ! misho 51593: cat >>confdefs.h <<\_ACEOF
! 51594: #define HAVE_GD_STRINGFTEX 1
! 51595: _ACEOF
1.1 misho 51596:
51597:
1.1.1.3 ! misho 51598: cat >>confdefs.h <<\_ACEOF
! 51599: #define ENABLE_GD_TTF 1
! 51600: _ACEOF
1.1 misho 51601:
51602: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF"
51603: fi
51604:
51605: if test -n "$USE_GD_JIS_CONV"; then
51606:
1.1.1.3 ! misho 51607: cat >>confdefs.h <<\_ACEOF
! 51608: #define USE_GD_JISX0208 1
! 51609: _ACEOF
1.1 misho 51610:
51611: GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
51612: fi
51613:
51614: else
51615:
51616: if test "$PHP_GD" != "no"; then
51617: GD_MODULE_TYPE=external
51618: extra_sources="gdcache.c libgd/gd_compat.c libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c \
51619: libgd/gd_rotate.c libgd/gd_color.c"
51620:
51621:
51622: if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
51623: if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
51624: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
51625: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
51626: elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
51627: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
51628: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
51629: else
1.1.1.3 ! misho 51630: { { echo "$as_me:$LINENO: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&5
! 51631: echo "$as_me: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&2;}
! 51632: { (exit 1); exit 1; }; }
1.1 misho 51633: fi
51634: else
51635: for i in /usr/local /usr; do
51636: if test -f "$i/include/zlib/zlib.h"; then
51637: PHP_ZLIB_DIR="$i"
51638: PHP_ZLIB_INCDIR="$i/include/zlib"
51639: elif test -f "$i/include/zlib.h"; then
51640: PHP_ZLIB_DIR="$i"
51641: PHP_ZLIB_INCDIR="$i/include"
51642: fi
51643: done
51644: fi
51645:
51646:
51647: if test "$PHP_GD_NATIVE_TTF" = "yes"; then
51648:
1.1.1.3 ! misho 51649: cat >>confdefs.h <<\_ACEOF
! 51650: #define USE_GD_IMGSTRTTF 1
! 51651: _ACEOF
1.1 misho 51652:
51653: fi
51654:
51655:
1.1.1.2 misho 51656: if test "$PHP_VPX_DIR" != "no"; then
1.1 misho 51657:
1.1.1.2 misho 51658: for i in $PHP_VPX_DIR /usr/local /usr; do
51659: test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
1.1 misho 51660: done
51661:
1.1.1.2 misho 51662: if test -z "$GD_VPX_DIR"; then
1.1.1.3 ! misho 51663: { { echo "$as_me:$LINENO: error: vpx_codec.h not found." >&5
! 51664: echo "$as_me: error: vpx_codec.h not found." >&2;}
! 51665: { (exit 1); exit 1; }; }
1.1 misho 51666: fi
51667:
51668:
51669: save_old_LDFLAGS=$LDFLAGS
51670: ac_stuff="
1.1.1.2 misho 51671: -L$GD_VPX_DIR/$PHP_LIBDIR
1.1 misho 51672: "
51673:
51674: save_ext_shared=$ext_shared
51675: ext_shared=yes
51676:
51677: for ac_i in $ac_stuff; do
51678: case $ac_i in
51679: -pthread)
51680: if test "$ext_shared" = "yes"; then
51681: LDFLAGS="$LDFLAGS -pthread"
51682: else
51683:
51684:
51685: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51686:
51687: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51688: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51689: eval "EXTRA_LDFLAGS$unique=set"
51690: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51691: fi
51692:
51693: fi
51694: ;;
51695: -l*)
51696: ac_ii=`echo $ac_i|cut -c 3-`
51697:
51698:
51699: case $ac_ii in
51700: c|c_r|pthread*) ;;
51701: *)
51702: if test "$ext_shared" = "yes"; then
51703: LDFLAGS="$LDFLAGS -l$ac_ii"
51704: else
51705:
51706:
51707: case $ac_ii in
51708: c|c_r|pthread*) ;;
51709: *)
51710: LIBS="$LIBS -l$ac_ii"
51711: ;;
51712: esac
51713:
51714:
51715: fi
51716: ;;
51717: esac
51718:
51719:
51720: ;;
51721: -L*)
51722: ac_ii=`echo $ac_i|cut -c 3-`
51723:
51724: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51725:
51726: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51727: ai_p=$ac_ii
51728: else
51729:
51730: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
51731:
51732: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51733: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
51734: fi
51735:
51736:
51737: if test "$ext_shared" = "yes"; then
51738: LDFLAGS="-L$ai_p $LDFLAGS"
51739: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51740: else
51741:
51742:
51743:
51744: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51745:
51746: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51747: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51748: eval "LIBPATH$unique=set"
51749:
51750: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51751: LDFLAGS="$LDFLAGS -L$ai_p"
51752: PHP_RPATHS="$PHP_RPATHS $ai_p"
51753:
51754: fi
51755:
51756:
51757: fi
51758:
51759: fi
51760:
51761: ;;
51762: esac
51763: done
51764:
1.1.1.3 ! misho 51765: { echo "$as_me:$LINENO: checking for vpx_codec_destroy in -lvpx" >&5
! 51766: echo $ECHO_N "checking for vpx_codec_destroy in -lvpx... $ECHO_C" >&6; }
! 51767: if test "${ac_cv_lib_vpx_vpx_codec_destroy+set}" = set; then
! 51768: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 51769: else
51770: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 misho 51771: LIBS="-lvpx $LIBS"
1.1.1.3 ! misho 51772: cat >conftest.$ac_ext <<_ACEOF
! 51773: /* confdefs.h. */
! 51774: _ACEOF
! 51775: cat confdefs.h >>conftest.$ac_ext
! 51776: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 51777: /* end confdefs.h. */
51778:
51779: /* Override any GCC internal prototype to avoid an error.
51780: Use char because int might match the return type of a GCC
51781: builtin and then its argument prototype would still apply. */
51782: #ifdef __cplusplus
51783: extern "C"
51784: #endif
1.1.1.2 misho 51785: char vpx_codec_destroy ();
1.1 misho 51786: int
51787: main ()
51788: {
1.1.1.2 misho 51789: return vpx_codec_destroy ();
1.1 misho 51790: ;
51791: return 0;
51792: }
51793: _ACEOF
1.1.1.3 ! misho 51794: rm -f conftest.$ac_objext conftest$ac_exeext
! 51795: if { (ac_try="$ac_link"
! 51796: case "(($ac_try" in
! 51797: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 51798: *) ac_try_echo=$ac_try;;
! 51799: esac
! 51800: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 51801: (eval "$ac_link") 2>conftest.er1
! 51802: ac_status=$?
! 51803: grep -v '^ *+' conftest.er1 >conftest.err
! 51804: rm -f conftest.er1
! 51805: cat conftest.err >&5
! 51806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 51807: (exit $ac_status); } && {
! 51808: test -z "$ac_c_werror_flag" ||
! 51809: test ! -s conftest.err
! 51810: } && test -s conftest$ac_exeext &&
! 51811: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 51812: ac_cv_lib_vpx_vpx_codec_destroy=yes
1.1 misho 51813: else
1.1.1.3 ! misho 51814: echo "$as_me: failed program was:" >&5
! 51815: sed 's/^/| /' conftest.$ac_ext >&5
! 51816:
! 51817: ac_cv_lib_vpx_vpx_codec_destroy=no
1.1 misho 51818: fi
1.1.1.3 ! misho 51819:
! 51820: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 51821: conftest$ac_exeext conftest.$ac_ext
1.1 misho 51822: LIBS=$ac_check_lib_save_LIBS
51823: fi
1.1.1.3 ! misho 51824: { echo "$as_me:$LINENO: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5
! 51825: echo "${ECHO_T}$ac_cv_lib_vpx_vpx_codec_destroy" >&6; }
! 51826: if test $ac_cv_lib_vpx_vpx_codec_destroy = yes; then
1.1 misho 51827:
51828: LDFLAGS=$save_old_LDFLAGS
51829: ext_shared=$save_ext_shared
51830:
51831:
1.1.1.2 misho 51832: if test "$GD_VPX_DIR/include" != "/usr/include"; then
1.1 misho 51833:
1.1.1.2 misho 51834: if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then
51835: ai_p=$GD_VPX_DIR/include
1.1 misho 51836: else
51837:
1.1.1.2 misho 51838: ep_dir="`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 51839:
51840: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 51841: ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/include\"`"
1.1 misho 51842: fi
51843:
51844:
51845:
51846: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51847:
51848: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51849: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51850: eval "INCLUDEPATH$unique=set"
51851:
51852: if test ""; then
51853: INCLUDES="-I$ai_p $INCLUDES"
51854: else
51855: INCLUDES="$INCLUDES -I$ai_p"
51856: fi
51857:
51858: fi
51859:
51860: fi
51861:
51862:
51863:
1.1.1.2 misho 51864: case pthread in
51865: c|c_r|pthread*) ;;
51866: *)
51867: LIBS="-lpthread $LIBS"
51868: ;;
51869: esac
51870:
51871:
51872:
51873:
1.1 misho 51874: if test "$ext_shared" = "yes"; then
1.1.1.2 misho 51875: GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD"
51876: if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
1.1 misho 51877:
1.1.1.2 misho 51878: if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1 misho 51879:
1.1.1.2 misho 51880: if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51881: ai_p=$GD_VPX_DIR/$PHP_LIBDIR
1.1 misho 51882: else
51883:
1.1.1.2 misho 51884: ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 51885:
51886: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 51887: ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
1.1 misho 51888: fi
51889:
51890:
51891: if test "$ext_shared" = "yes"; then
51892: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
51893: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
51894: else
51895:
51896:
51897:
51898: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51899:
51900: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51901: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51902: eval "LIBPATH$unique=set"
51903:
51904: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51905: LDFLAGS="$LDFLAGS -L$ai_p"
51906: PHP_RPATHS="$PHP_RPATHS $ai_p"
51907:
51908: fi
51909:
51910:
51911: fi
51912:
51913: fi
51914:
51915: fi
51916: else
51917:
51918:
1.1.1.2 misho 51919: if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
1.1 misho 51920:
1.1.1.2 misho 51921: if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1 misho 51922:
1.1.1.2 misho 51923: if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51924: ai_p=$GD_VPX_DIR/$PHP_LIBDIR
1.1 misho 51925: else
51926:
1.1.1.2 misho 51927: ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 51928:
51929: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 51930: ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
1.1 misho 51931: fi
51932:
51933:
51934:
51935:
51936:
51937: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51938:
51939: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51940: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51941: eval "LIBPATH$unique=set"
51942:
51943: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51944: LDFLAGS="$LDFLAGS -L$ai_p"
51945: PHP_RPATHS="$PHP_RPATHS $ai_p"
51946:
51947: fi
51948:
51949:
51950:
51951: fi
51952:
51953: fi
51954:
51955:
1.1.1.2 misho 51956: case vpx in
1.1 misho 51957: c|c_r|pthread*) ;;
51958: *)
1.1.1.2 misho 51959: LIBS="-lvpx $LIBS"
1.1 misho 51960: ;;
51961: esac
51962:
51963:
51964:
51965:
51966: fi
51967:
51968:
51969:
51970:
51971: else
51972:
51973: LDFLAGS=$save_old_LDFLAGS
51974: ext_shared=$save_ext_shared
1.1.1.2 misho 51975: unset ac_cv_lib_vpx_vpx_codec_destroy
1.1 misho 51976:
1.1.1.3 ! misho 51977: { { echo "$as_me:$LINENO: error: Problem with libvpx.(a|so). Please check config.log for more information." >&5
! 51978: echo "$as_me: error: Problem with libvpx.(a|so). Please check config.log for more information." >&2;}
! 51979: { (exit 1); exit 1; }; }
1.1 misho 51980:
51981:
51982: fi
51983:
51984: else
1.1.1.3 ! misho 51985: { echo "$as_me:$LINENO: result: If configure fails try --with-vpx-dir=<DIR>" >&5
! 51986: echo "${ECHO_T}If configure fails try --with-vpx-dir=<DIR>" >&6; }
1.1 misho 51987: fi
51988:
51989:
1.1.1.2 misho 51990: if test "$PHP_JPEG_DIR" != "no"; then
1.1 misho 51991:
1.1.1.2 misho 51992: for i in $PHP_JPEG_DIR /usr/local /usr; do
51993: test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
1.1 misho 51994: done
51995:
1.1.1.2 misho 51996: if test -z "$GD_JPEG_DIR"; then
1.1.1.3 ! misho 51997: { { echo "$as_me:$LINENO: error: jpeglib.h not found." >&5
! 51998: echo "$as_me: error: jpeglib.h not found." >&2;}
! 51999: { (exit 1); exit 1; }; }
1.1 misho 52000: fi
52001:
52002:
52003: save_old_LDFLAGS=$LDFLAGS
52004: ac_stuff="
1.1.1.2 misho 52005: -L$GD_JPEG_DIR/$PHP_LIBDIR
1.1 misho 52006: "
52007:
52008: save_ext_shared=$ext_shared
52009: ext_shared=yes
52010:
52011: for ac_i in $ac_stuff; do
52012: case $ac_i in
52013: -pthread)
52014: if test "$ext_shared" = "yes"; then
52015: LDFLAGS="$LDFLAGS -pthread"
52016: else
52017:
52018:
52019: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52020:
52021: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52022: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52023: eval "EXTRA_LDFLAGS$unique=set"
52024: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52025: fi
52026:
52027: fi
52028: ;;
52029: -l*)
52030: ac_ii=`echo $ac_i|cut -c 3-`
52031:
52032:
52033: case $ac_ii in
52034: c|c_r|pthread*) ;;
52035: *)
52036: if test "$ext_shared" = "yes"; then
52037: LDFLAGS="$LDFLAGS -l$ac_ii"
52038: else
52039:
52040:
52041: case $ac_ii in
52042: c|c_r|pthread*) ;;
52043: *)
52044: LIBS="$LIBS -l$ac_ii"
52045: ;;
52046: esac
52047:
52048:
52049: fi
52050: ;;
52051: esac
52052:
52053:
52054: ;;
52055: -L*)
52056: ac_ii=`echo $ac_i|cut -c 3-`
52057:
52058: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52059:
52060: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52061: ai_p=$ac_ii
52062: else
52063:
52064: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52065:
52066: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52067: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52068: fi
52069:
52070:
52071: if test "$ext_shared" = "yes"; then
52072: LDFLAGS="-L$ai_p $LDFLAGS"
52073: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52074: else
52075:
52076:
52077:
52078: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52079:
52080: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52081: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52082: eval "LIBPATH$unique=set"
52083:
52084: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52085: LDFLAGS="$LDFLAGS -L$ai_p"
52086: PHP_RPATHS="$PHP_RPATHS $ai_p"
52087:
52088: fi
52089:
52090:
52091: fi
52092:
52093: fi
52094:
52095: ;;
52096: esac
52097: done
52098:
1.1.1.3 ! misho 52099: { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
! 52100: echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
! 52101: if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
! 52102: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 52103: else
52104: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 misho 52105: LIBS="-ljpeg $LIBS"
1.1.1.3 ! misho 52106: cat >conftest.$ac_ext <<_ACEOF
! 52107: /* confdefs.h. */
! 52108: _ACEOF
! 52109: cat confdefs.h >>conftest.$ac_ext
! 52110: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 52111: /* end confdefs.h. */
52112:
52113: /* Override any GCC internal prototype to avoid an error.
52114: Use char because int might match the return type of a GCC
52115: builtin and then its argument prototype would still apply. */
52116: #ifdef __cplusplus
52117: extern "C"
52118: #endif
1.1.1.2 misho 52119: char jpeg_read_header ();
1.1 misho 52120: int
52121: main ()
52122: {
1.1.1.2 misho 52123: return jpeg_read_header ();
1.1 misho 52124: ;
52125: return 0;
52126: }
52127: _ACEOF
1.1.1.3 ! misho 52128: rm -f conftest.$ac_objext conftest$ac_exeext
! 52129: if { (ac_try="$ac_link"
! 52130: case "(($ac_try" in
! 52131: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 52132: *) ac_try_echo=$ac_try;;
! 52133: esac
! 52134: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 52135: (eval "$ac_link") 2>conftest.er1
! 52136: ac_status=$?
! 52137: grep -v '^ *+' conftest.er1 >conftest.err
! 52138: rm -f conftest.er1
! 52139: cat conftest.err >&5
! 52140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 52141: (exit $ac_status); } && {
! 52142: test -z "$ac_c_werror_flag" ||
! 52143: test ! -s conftest.err
! 52144: } && test -s conftest$ac_exeext &&
! 52145: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 52146: ac_cv_lib_jpeg_jpeg_read_header=yes
1.1 misho 52147: else
1.1.1.3 ! misho 52148: echo "$as_me: failed program was:" >&5
! 52149: sed 's/^/| /' conftest.$ac_ext >&5
! 52150:
! 52151: ac_cv_lib_jpeg_jpeg_read_header=no
1.1 misho 52152: fi
1.1.1.3 ! misho 52153:
! 52154: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 52155: conftest$ac_exeext conftest.$ac_ext
1.1 misho 52156: LIBS=$ac_check_lib_save_LIBS
52157: fi
1.1.1.3 ! misho 52158: { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
! 52159: echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
! 52160: if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
1.1 misho 52161:
52162: LDFLAGS=$save_old_LDFLAGS
52163: ext_shared=$save_ext_shared
52164:
52165:
1.1.1.2 misho 52166: if test "$GD_JPEG_DIR/include" != "/usr/include"; then
1.1 misho 52167:
1.1.1.2 misho 52168: if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
52169: ai_p=$GD_JPEG_DIR/include
1.1 misho 52170: else
52171:
1.1.1.2 misho 52172: ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 52173:
52174: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 52175: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
1.1 misho 52176: fi
52177:
52178:
52179:
52180: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52181:
52182: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52183: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52184: eval "INCLUDEPATH$unique=set"
52185:
52186: if test ""; then
52187: INCLUDES="-I$ai_p $INCLUDES"
52188: else
52189: INCLUDES="$INCLUDES -I$ai_p"
52190: fi
52191:
52192: fi
52193:
52194: fi
52195:
52196:
52197:
52198: if test "$ext_shared" = "yes"; then
1.1.1.2 misho 52199: GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
52200: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
1.1 misho 52201:
1.1.1.2 misho 52202: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1 misho 52203:
1.1.1.2 misho 52204: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52205: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
1.1 misho 52206: else
52207:
1.1.1.2 misho 52208: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 52209:
52210: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 52211: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
1.1 misho 52212: fi
52213:
52214:
52215: if test "$ext_shared" = "yes"; then
52216: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52217: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52218: else
52219:
52220:
52221:
52222: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52223:
52224: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52225: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52226: eval "LIBPATH$unique=set"
52227:
52228: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52229: LDFLAGS="$LDFLAGS -L$ai_p"
52230: PHP_RPATHS="$PHP_RPATHS $ai_p"
52231:
52232: fi
52233:
52234:
52235: fi
52236:
52237: fi
52238:
52239: fi
52240: else
52241:
52242:
1.1.1.2 misho 52243: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
1.1 misho 52244:
1.1.1.2 misho 52245: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1 misho 52246:
1.1.1.2 misho 52247: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52248: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
1.1 misho 52249: else
52250:
1.1.1.2 misho 52251: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1 misho 52252:
52253: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 misho 52254: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
1.1 misho 52255: fi
52256:
52257:
52258:
52259:
52260:
52261: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52262:
52263: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52264: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52265: eval "LIBPATH$unique=set"
52266:
52267: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52268: LDFLAGS="$LDFLAGS -L$ai_p"
52269: PHP_RPATHS="$PHP_RPATHS $ai_p"
52270:
52271: fi
52272:
52273:
52274:
52275: fi
52276:
52277: fi
52278:
52279:
1.1.1.2 misho 52280: case jpeg in
1.1 misho 52281: c|c_r|pthread*) ;;
52282: *)
1.1.1.2 misho 52283: LIBS="-ljpeg $LIBS"
1.1 misho 52284: ;;
52285: esac
52286:
52287:
52288:
52289:
52290: fi
52291:
52292:
52293:
52294:
1.1.1.2 misho 52295: else
1.1 misho 52296:
1.1.1.2 misho 52297: LDFLAGS=$save_old_LDFLAGS
52298: ext_shared=$save_ext_shared
52299: unset ac_cv_lib_jpeg_jpeg_read_header
1.1 misho 52300:
1.1.1.3 ! misho 52301: { { echo "$as_me:$LINENO: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&5
! 52302: echo "$as_me: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&2;}
! 52303: { (exit 1); exit 1; }; }
1.1 misho 52304:
52305:
1.1.1.2 misho 52306: fi
52307:
52308: else
1.1.1.3 ! misho 52309: { echo "$as_me:$LINENO: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
! 52310: echo "${ECHO_T}If configure fails try --with-jpeg-dir=<DIR>" >&6; }
1.1 misho 52311: fi
52312:
52313:
1.1.1.2 misho 52314: if test "$PHP_PNG_DIR" != "no"; then
52315:
52316: for i in $PHP_PNG_DIR /usr/local /usr; do
52317: test -f $i/include/png.h && GD_PNG_DIR=$i && break
52318: done
1.1 misho 52319:
1.1.1.2 misho 52320: if test -z "$GD_PNG_DIR"; then
1.1.1.3 ! misho 52321: { { echo "$as_me:$LINENO: error: png.h not found." >&5
! 52322: echo "$as_me: error: png.h not found." >&2;}
! 52323: { (exit 1); exit 1; }; }
1.1.1.2 misho 52324: fi
1.1 misho 52325:
1.1.1.2 misho 52326: if test "$PHP_ZLIB_DIR" = "no"; then
1.1.1.3 ! misho 52327: { { echo "$as_me:$LINENO: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&5
! 52328: echo "$as_me: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&2;}
! 52329: { (exit 1); exit 1; }; }
1.1.1.2 misho 52330: fi
1.1 misho 52331:
52332:
1.1.1.2 misho 52333: save_old_LDFLAGS=$LDFLAGS
52334: ac_stuff="
52335: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
52336: "
1.1 misho 52337:
1.1.1.2 misho 52338: save_ext_shared=$ext_shared
52339: ext_shared=yes
1.1 misho 52340:
1.1.1.2 misho 52341: for ac_i in $ac_stuff; do
52342: case $ac_i in
52343: -pthread)
52344: if test "$ext_shared" = "yes"; then
52345: LDFLAGS="$LDFLAGS -pthread"
52346: else
1.1 misho 52347:
52348:
1.1.1.2 misho 52349: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 52350:
1.1.1.2 misho 52351: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52352: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52353: eval "EXTRA_LDFLAGS$unique=set"
52354: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
1.1 misho 52355: fi
52356:
1.1.1.2 misho 52357: fi
52358: ;;
52359: -l*)
52360: ac_ii=`echo $ac_i|cut -c 3-`
1.1 misho 52361:
52362:
1.1.1.2 misho 52363: case $ac_ii in
52364: c|c_r|pthread*) ;;
52365: *)
52366: if test "$ext_shared" = "yes"; then
52367: LDFLAGS="$LDFLAGS -l$ac_ii"
52368: else
1.1 misho 52369:
52370:
1.1.1.2 misho 52371: case $ac_ii in
52372: c|c_r|pthread*) ;;
52373: *)
52374: LIBS="$LIBS -l$ac_ii"
52375: ;;
52376: esac
1.1 misho 52377:
52378:
1.1.1.2 misho 52379: fi
52380: ;;
52381: esac
52382:
52383:
52384: ;;
52385: -L*)
52386: ac_ii=`echo $ac_i|cut -c 3-`
52387:
52388: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52389:
52390: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52391: ai_p=$ac_ii
52392: else
52393:
52394: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52395:
52396: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52397: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52398: fi
52399:
52400:
52401: if test "$ext_shared" = "yes"; then
52402: LDFLAGS="-L$ai_p $LDFLAGS"
52403: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52404: else
52405:
52406:
52407:
52408: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52409:
52410: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52411: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52412: eval "LIBPATH$unique=set"
52413:
52414: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52415: LDFLAGS="$LDFLAGS -L$ai_p"
52416: PHP_RPATHS="$PHP_RPATHS $ai_p"
52417:
52418: fi
52419:
52420:
52421: fi
52422:
52423: fi
52424:
52425: ;;
52426: esac
52427: done
52428:
1.1.1.3 ! misho 52429: { echo "$as_me:$LINENO: checking for png_write_image in -lpng" >&5
! 52430: echo $ECHO_N "checking for png_write_image in -lpng... $ECHO_C" >&6; }
! 52431: if test "${ac_cv_lib_png_png_write_image+set}" = set; then
! 52432: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 52433: else
52434: ac_check_lib_save_LIBS=$LIBS
52435: LIBS="-lpng $LIBS"
1.1.1.3 ! misho 52436: cat >conftest.$ac_ext <<_ACEOF
! 52437: /* confdefs.h. */
! 52438: _ACEOF
! 52439: cat confdefs.h >>conftest.$ac_ext
! 52440: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 52441: /* end confdefs.h. */
52442:
52443: /* Override any GCC internal prototype to avoid an error.
52444: Use char because int might match the return type of a GCC
52445: builtin and then its argument prototype would still apply. */
52446: #ifdef __cplusplus
52447: extern "C"
52448: #endif
52449: char png_write_image ();
52450: int
52451: main ()
52452: {
52453: return png_write_image ();
52454: ;
52455: return 0;
52456: }
52457: _ACEOF
1.1.1.3 ! misho 52458: rm -f conftest.$ac_objext conftest$ac_exeext
! 52459: if { (ac_try="$ac_link"
! 52460: case "(($ac_try" in
! 52461: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 52462: *) ac_try_echo=$ac_try;;
! 52463: esac
! 52464: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 52465: (eval "$ac_link") 2>conftest.er1
! 52466: ac_status=$?
! 52467: grep -v '^ *+' conftest.er1 >conftest.err
! 52468: rm -f conftest.er1
! 52469: cat conftest.err >&5
! 52470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 52471: (exit $ac_status); } && {
! 52472: test -z "$ac_c_werror_flag" ||
! 52473: test ! -s conftest.err
! 52474: } && test -s conftest$ac_exeext &&
! 52475: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 52476: ac_cv_lib_png_png_write_image=yes
52477: else
1.1.1.3 ! misho 52478: echo "$as_me: failed program was:" >&5
! 52479: sed 's/^/| /' conftest.$ac_ext >&5
! 52480:
! 52481: ac_cv_lib_png_png_write_image=no
1.1.1.2 misho 52482: fi
1.1.1.3 ! misho 52483:
! 52484: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 52485: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 52486: LIBS=$ac_check_lib_save_LIBS
52487: fi
1.1.1.3 ! misho 52488: { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_write_image" >&5
! 52489: echo "${ECHO_T}$ac_cv_lib_png_png_write_image" >&6; }
! 52490: if test $ac_cv_lib_png_png_write_image = yes; then
1.1.1.2 misho 52491:
52492: LDFLAGS=$save_old_LDFLAGS
52493: ext_shared=$save_ext_shared
52494:
52495:
52496: if test "$GD_PNG_DIR/include" != "/usr/include"; then
52497:
52498: if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
52499: ai_p=$GD_PNG_DIR/include
52500: else
52501:
52502: ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
52503:
52504: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52505: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
52506: fi
52507:
52508:
52509:
52510: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52511:
52512: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52513: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52514: eval "INCLUDEPATH$unique=set"
52515:
52516: if test ""; then
52517: INCLUDES="-I$ai_p $INCLUDES"
52518: else
52519: INCLUDES="$INCLUDES -I$ai_p"
52520: fi
52521:
52522: fi
52523:
52524: fi
52525:
52526:
52527:
52528: if test "$ext_shared" = "yes"; then
52529: GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
52530: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
52531:
52532: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52533:
52534: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52535: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
52536: else
52537:
52538: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52539:
52540: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52541: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
52542: fi
52543:
52544:
52545: if test "$ext_shared" = "yes"; then
52546: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52547: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52548: else
52549:
52550:
52551:
52552: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52553:
52554: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52555: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52556: eval "LIBPATH$unique=set"
52557:
52558: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52559: LDFLAGS="$LDFLAGS -L$ai_p"
52560: PHP_RPATHS="$PHP_RPATHS $ai_p"
52561:
52562: fi
52563:
52564:
52565: fi
52566:
52567: fi
52568:
52569: fi
52570: else
52571:
52572:
52573: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
52574:
52575: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52576:
52577: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52578: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
52579: else
52580:
52581: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52582:
52583: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52584: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
52585: fi
52586:
52587:
52588:
52589:
52590:
52591: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52592:
52593: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52594: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52595: eval "LIBPATH$unique=set"
52596:
52597: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52598: LDFLAGS="$LDFLAGS -L$ai_p"
52599: PHP_RPATHS="$PHP_RPATHS $ai_p"
52600:
52601: fi
52602:
52603:
52604:
52605: fi
52606:
52607: fi
52608:
52609:
52610: case z in
52611: c|c_r|pthread*) ;;
52612: *)
52613: LIBS="-lz $LIBS"
52614: ;;
52615: esac
52616:
52617:
52618:
52619:
52620: fi
52621:
52622:
52623:
52624:
52625: if test "$ext_shared" = "yes"; then
52626: GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
52627: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
52628:
52629: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52630:
52631: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52632: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
52633: else
52634:
52635: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52636:
52637: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52638: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
52639: fi
52640:
52641:
52642: if test "$ext_shared" = "yes"; then
52643: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52644: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52645: else
52646:
52647:
52648:
52649: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52650:
52651: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52652: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52653: eval "LIBPATH$unique=set"
52654:
52655: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52656: LDFLAGS="$LDFLAGS -L$ai_p"
52657: PHP_RPATHS="$PHP_RPATHS $ai_p"
52658:
52659: fi
52660:
52661:
52662: fi
52663:
52664: fi
52665:
52666: fi
52667: else
52668:
52669:
52670: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
52671:
52672: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52673:
52674: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52675: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
52676: else
52677:
52678: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52679:
52680: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52681: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
52682: fi
1.1 misho 52683:
52684:
52685:
52686:
52687:
52688: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52689:
52690: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52691: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52692: eval "LIBPATH$unique=set"
52693:
52694: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52695: LDFLAGS="$LDFLAGS -L$ai_p"
52696: PHP_RPATHS="$PHP_RPATHS $ai_p"
52697:
52698: fi
52699:
52700:
52701:
52702: fi
52703:
52704: fi
52705:
52706:
52707: case png in
52708: c|c_r|pthread*) ;;
52709: *)
52710: LIBS="-lpng $LIBS"
52711: ;;
52712: esac
52713:
52714:
52715:
52716:
52717: fi
52718:
52719:
52720:
52721:
52722: else
52723:
52724: LDFLAGS=$save_old_LDFLAGS
52725: ext_shared=$save_ext_shared
52726: unset ac_cv_lib_png_png_write_image
52727:
1.1.1.3 ! misho 52728: { { echo "$as_me:$LINENO: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&5
! 52729: echo "$as_me: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&2;}
! 52730: { (exit 1); exit 1; }; }
1.1 misho 52731:
52732:
52733: fi
52734:
52735:
52736: else
1.1.1.3 ! misho 52737: { echo "$as_me:$LINENO: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
! 52738: echo "${ECHO_T}If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
1.1 misho 52739: fi
52740:
52741:
52742: if test "$PHP_XPM_DIR" != "no"; then
52743:
52744: for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
52745: test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
52746: done
52747:
52748: if test -z "$GD_XPM_DIR"; then
1.1.1.3 ! misho 52749: { { echo "$as_me:$LINENO: error: libXpm.(a|so) not found." >&5
! 52750: echo "$as_me: error: libXpm.(a|so) not found." >&2;}
! 52751: { (exit 1); exit 1; }; }
1.1 misho 52752: fi
52753:
52754: for i in include include/X11; do
52755: test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
52756: done
52757:
52758: if test -z "$GD_XPM_INC"; then
1.1.1.3 ! misho 52759: { { echo "$as_me:$LINENO: error: xpm.h not found." >&5
! 52760: echo "$as_me: error: xpm.h not found." >&2;}
! 52761: { (exit 1); exit 1; }; }
1.1 misho 52762: fi
52763:
52764:
52765: save_old_LDFLAGS=$LDFLAGS
52766: ac_stuff="
52767: -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
52768: "
52769:
52770: save_ext_shared=$ext_shared
52771: ext_shared=yes
52772:
52773: for ac_i in $ac_stuff; do
52774: case $ac_i in
52775: -pthread)
52776: if test "$ext_shared" = "yes"; then
52777: LDFLAGS="$LDFLAGS -pthread"
52778: else
52779:
52780:
52781: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52782:
52783: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52784: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52785: eval "EXTRA_LDFLAGS$unique=set"
52786: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52787: fi
52788:
52789: fi
52790: ;;
52791: -l*)
52792: ac_ii=`echo $ac_i|cut -c 3-`
52793:
52794:
52795: case $ac_ii in
52796: c|c_r|pthread*) ;;
52797: *)
52798: if test "$ext_shared" = "yes"; then
52799: LDFLAGS="$LDFLAGS -l$ac_ii"
52800: else
52801:
52802:
52803: case $ac_ii in
52804: c|c_r|pthread*) ;;
52805: *)
52806: LIBS="$LIBS -l$ac_ii"
52807: ;;
52808: esac
52809:
52810:
52811: fi
52812: ;;
52813: esac
52814:
52815:
52816: ;;
52817: -L*)
52818: ac_ii=`echo $ac_i|cut -c 3-`
52819:
52820: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52821:
52822: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52823: ai_p=$ac_ii
52824: else
52825:
52826: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52827:
52828: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52829: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52830: fi
52831:
52832:
52833: if test "$ext_shared" = "yes"; then
52834: LDFLAGS="-L$ai_p $LDFLAGS"
52835: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52836: else
52837:
52838:
52839:
52840: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52841:
52842: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52843: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52844: eval "LIBPATH$unique=set"
52845:
52846: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52847: LDFLAGS="$LDFLAGS -L$ai_p"
52848: PHP_RPATHS="$PHP_RPATHS $ai_p"
52849:
52850: fi
52851:
52852:
52853: fi
52854:
52855: fi
52856:
52857: ;;
52858: esac
52859: done
52860:
1.1.1.3 ! misho 52861: { echo "$as_me:$LINENO: checking for XpmFreeXpmImage in -lXpm" >&5
! 52862: echo $ECHO_N "checking for XpmFreeXpmImage in -lXpm... $ECHO_C" >&6; }
! 52863: if test "${ac_cv_lib_Xpm_XpmFreeXpmImage+set}" = set; then
! 52864: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 52865: else
52866: ac_check_lib_save_LIBS=$LIBS
52867: LIBS="-lXpm $LIBS"
1.1.1.3 ! misho 52868: cat >conftest.$ac_ext <<_ACEOF
! 52869: /* confdefs.h. */
! 52870: _ACEOF
! 52871: cat confdefs.h >>conftest.$ac_ext
! 52872: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 52873: /* end confdefs.h. */
52874:
52875: /* Override any GCC internal prototype to avoid an error.
52876: Use char because int might match the return type of a GCC
52877: builtin and then its argument prototype would still apply. */
52878: #ifdef __cplusplus
52879: extern "C"
52880: #endif
52881: char XpmFreeXpmImage ();
52882: int
52883: main ()
52884: {
52885: return XpmFreeXpmImage ();
52886: ;
52887: return 0;
52888: }
52889: _ACEOF
1.1.1.3 ! misho 52890: rm -f conftest.$ac_objext conftest$ac_exeext
! 52891: if { (ac_try="$ac_link"
! 52892: case "(($ac_try" in
! 52893: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 52894: *) ac_try_echo=$ac_try;;
! 52895: esac
! 52896: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 52897: (eval "$ac_link") 2>conftest.er1
! 52898: ac_status=$?
! 52899: grep -v '^ *+' conftest.er1 >conftest.err
! 52900: rm -f conftest.er1
! 52901: cat conftest.err >&5
! 52902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 52903: (exit $ac_status); } && {
! 52904: test -z "$ac_c_werror_flag" ||
! 52905: test ! -s conftest.err
! 52906: } && test -s conftest$ac_exeext &&
! 52907: $as_test_x conftest$ac_exeext; then
1.1 misho 52908: ac_cv_lib_Xpm_XpmFreeXpmImage=yes
52909: else
1.1.1.3 ! misho 52910: echo "$as_me: failed program was:" >&5
! 52911: sed 's/^/| /' conftest.$ac_ext >&5
! 52912:
! 52913: ac_cv_lib_Xpm_XpmFreeXpmImage=no
1.1 misho 52914: fi
1.1.1.3 ! misho 52915:
! 52916: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 52917: conftest$ac_exeext conftest.$ac_ext
1.1 misho 52918: LIBS=$ac_check_lib_save_LIBS
52919: fi
1.1.1.3 ! misho 52920: { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
! 52921: echo "${ECHO_T}$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
! 52922: if test $ac_cv_lib_Xpm_XpmFreeXpmImage = yes; then
1.1 misho 52923:
52924: LDFLAGS=$save_old_LDFLAGS
52925: ext_shared=$save_ext_shared
52926:
52927:
52928: if test "$GD_XPM_INC" != "/usr/include"; then
52929:
52930: if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
52931: ai_p=$GD_XPM_INC
52932: else
52933:
52934: ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
52935:
52936: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52937: ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
52938: fi
52939:
52940:
52941:
52942: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52943:
52944: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52945: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52946: eval "INCLUDEPATH$unique=set"
52947:
52948: if test ""; then
52949: INCLUDES="-I$ai_p $INCLUDES"
52950: else
52951: INCLUDES="$INCLUDES -I$ai_p"
52952: fi
52953:
52954: fi
52955:
52956: fi
52957:
52958:
52959:
52960: if test "$ext_shared" = "yes"; then
52961: GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
52962: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
52963:
52964: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52965:
52966: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52967: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
52968: else
52969:
52970: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52971:
52972: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52973: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
52974: fi
52975:
52976:
52977: if test "$ext_shared" = "yes"; then
52978: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52979: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52980: else
52981:
52982:
52983:
52984: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52985:
52986: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52987: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52988: eval "LIBPATH$unique=set"
52989:
52990: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52991: LDFLAGS="$LDFLAGS -L$ai_p"
52992: PHP_RPATHS="$PHP_RPATHS $ai_p"
52993:
52994: fi
52995:
52996:
52997: fi
52998:
52999: fi
53000:
53001: fi
53002: else
53003:
53004:
53005: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53006:
53007: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53008:
53009: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53010: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53011: else
53012:
53013: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53014:
53015: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53016: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53017: fi
53018:
53019:
53020:
53021:
53022:
53023: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53024:
53025: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53026: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53027: eval "LIBPATH$unique=set"
53028:
53029: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53030: LDFLAGS="$LDFLAGS -L$ai_p"
53031: PHP_RPATHS="$PHP_RPATHS $ai_p"
53032:
53033: fi
53034:
53035:
53036:
53037: fi
53038:
53039: fi
53040:
53041:
53042: case Xpm in
53043: c|c_r|pthread*) ;;
53044: *)
53045: LIBS="-lXpm $LIBS"
53046: ;;
53047: esac
53048:
53049:
53050:
53051:
53052: fi
53053:
53054:
53055:
53056:
53057: if test "$ext_shared" = "yes"; then
53058: GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
53059: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53060:
53061: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53062:
53063: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53064: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53065: else
53066:
53067: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53068:
53069: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53070: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53071: fi
53072:
53073:
53074: if test "$ext_shared" = "yes"; then
53075: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53076: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53077: else
53078:
53079:
53080:
53081: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53082:
53083: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53084: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53085: eval "LIBPATH$unique=set"
53086:
53087: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53088: LDFLAGS="$LDFLAGS -L$ai_p"
53089: PHP_RPATHS="$PHP_RPATHS $ai_p"
53090:
53091: fi
53092:
53093:
53094: fi
53095:
53096: fi
53097:
53098: fi
53099: else
53100:
53101:
53102: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53103:
53104: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53105:
53106: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53107: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53108: else
53109:
53110: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53111:
53112: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53113: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53114: fi
53115:
53116:
53117:
53118:
53119:
53120: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53121:
53122: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53123: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53124: eval "LIBPATH$unique=set"
53125:
53126: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53127: LDFLAGS="$LDFLAGS -L$ai_p"
53128: PHP_RPATHS="$PHP_RPATHS $ai_p"
53129:
53130: fi
53131:
53132:
53133:
53134: fi
53135:
53136: fi
53137:
53138:
53139: case X11 in
53140: c|c_r|pthread*) ;;
53141: *)
53142: LIBS="-lX11 $LIBS"
53143: ;;
53144: esac
53145:
53146:
53147:
53148:
53149: fi
53150:
53151:
53152:
53153:
53154: else
53155:
53156: LDFLAGS=$save_old_LDFLAGS
53157: ext_shared=$save_ext_shared
53158: unset ac_cv_lib_Xpm_XpmFreeXpmImage
53159:
1.1.1.3 ! misho 53160: { { echo "$as_me:$LINENO: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&5
! 53161: echo "$as_me: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&2;}
! 53162: { (exit 1); exit 1; }; }
1.1 misho 53163:
53164:
53165: fi
53166:
53167: else
1.1.1.3 ! misho 53168: { echo "$as_me:$LINENO: result: If configure fails try --with-xpm-dir=<DIR>" >&5
! 53169: echo "${ECHO_T}If configure fails try --with-xpm-dir=<DIR>" >&6; }
1.1 misho 53170: fi
53171:
53172:
53173: if test "$PHP_FREETYPE_DIR" != "no"; then
53174:
53175: for i in $PHP_FREETYPE_DIR /usr/local /usr; do
53176: if test -f "$i/include/freetype2/freetype/freetype.h"; then
53177: FREETYPE2_DIR=$i
53178: FREETYPE2_INC_DIR=$i/include/freetype2
53179: break
53180: fi
53181: done
53182:
53183: if test -z "$FREETYPE2_DIR"; then
1.1.1.3 ! misho 53184: { { echo "$as_me:$LINENO: error: freetype.h not found." >&5
! 53185: echo "$as_me: error: freetype.h not found." >&2;}
! 53186: { (exit 1); exit 1; }; }
1.1 misho 53187: fi
53188:
53189:
53190: save_old_LDFLAGS=$LDFLAGS
53191: ac_stuff="
53192: -L$FREETYPE2_DIR/$PHP_LIBDIR
53193: "
53194:
53195: save_ext_shared=$ext_shared
53196: ext_shared=yes
53197:
53198: for ac_i in $ac_stuff; do
53199: case $ac_i in
53200: -pthread)
53201: if test "$ext_shared" = "yes"; then
53202: LDFLAGS="$LDFLAGS -pthread"
53203: else
53204:
53205:
53206: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53207:
53208: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53209: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53210: eval "EXTRA_LDFLAGS$unique=set"
53211: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53212: fi
53213:
53214: fi
53215: ;;
53216: -l*)
53217: ac_ii=`echo $ac_i|cut -c 3-`
53218:
53219:
53220: case $ac_ii in
53221: c|c_r|pthread*) ;;
53222: *)
53223: if test "$ext_shared" = "yes"; then
53224: LDFLAGS="$LDFLAGS -l$ac_ii"
53225: else
53226:
53227:
53228: case $ac_ii in
53229: c|c_r|pthread*) ;;
53230: *)
53231: LIBS="$LIBS -l$ac_ii"
53232: ;;
53233: esac
53234:
53235:
53236: fi
53237: ;;
53238: esac
53239:
53240:
53241: ;;
53242: -L*)
53243: ac_ii=`echo $ac_i|cut -c 3-`
53244:
53245: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53246:
53247: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53248: ai_p=$ac_ii
53249: else
53250:
53251: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53252:
53253: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53254: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53255: fi
53256:
53257:
53258: if test "$ext_shared" = "yes"; then
53259: LDFLAGS="-L$ai_p $LDFLAGS"
53260: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53261: else
53262:
53263:
53264:
53265: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53266:
53267: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53268: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53269: eval "LIBPATH$unique=set"
53270:
53271: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53272: LDFLAGS="$LDFLAGS -L$ai_p"
53273: PHP_RPATHS="$PHP_RPATHS $ai_p"
53274:
53275: fi
53276:
53277:
53278: fi
53279:
53280: fi
53281:
53282: ;;
53283: esac
53284: done
53285:
1.1.1.3 ! misho 53286: { echo "$as_me:$LINENO: checking for FT_New_Face in -lfreetype" >&5
! 53287: echo $ECHO_N "checking for FT_New_Face in -lfreetype... $ECHO_C" >&6; }
! 53288: if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then
! 53289: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 53290: else
53291: ac_check_lib_save_LIBS=$LIBS
53292: LIBS="-lfreetype $LIBS"
1.1.1.3 ! misho 53293: cat >conftest.$ac_ext <<_ACEOF
! 53294: /* confdefs.h. */
! 53295: _ACEOF
! 53296: cat confdefs.h >>conftest.$ac_ext
! 53297: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 53298: /* end confdefs.h. */
53299:
53300: /* Override any GCC internal prototype to avoid an error.
53301: Use char because int might match the return type of a GCC
53302: builtin and then its argument prototype would still apply. */
53303: #ifdef __cplusplus
53304: extern "C"
53305: #endif
53306: char FT_New_Face ();
53307: int
53308: main ()
53309: {
53310: return FT_New_Face ();
53311: ;
53312: return 0;
53313: }
53314: _ACEOF
1.1.1.3 ! misho 53315: rm -f conftest.$ac_objext conftest$ac_exeext
! 53316: if { (ac_try="$ac_link"
! 53317: case "(($ac_try" in
! 53318: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 53319: *) ac_try_echo=$ac_try;;
! 53320: esac
! 53321: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 53322: (eval "$ac_link") 2>conftest.er1
! 53323: ac_status=$?
! 53324: grep -v '^ *+' conftest.er1 >conftest.err
! 53325: rm -f conftest.er1
! 53326: cat conftest.err >&5
! 53327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 53328: (exit $ac_status); } && {
! 53329: test -z "$ac_c_werror_flag" ||
! 53330: test ! -s conftest.err
! 53331: } && test -s conftest$ac_exeext &&
! 53332: $as_test_x conftest$ac_exeext; then
1.1 misho 53333: ac_cv_lib_freetype_FT_New_Face=yes
53334: else
1.1.1.3 ! misho 53335: echo "$as_me: failed program was:" >&5
! 53336: sed 's/^/| /' conftest.$ac_ext >&5
! 53337:
! 53338: ac_cv_lib_freetype_FT_New_Face=no
1.1 misho 53339: fi
1.1.1.3 ! misho 53340:
! 53341: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 53342: conftest$ac_exeext conftest.$ac_ext
1.1 misho 53343: LIBS=$ac_check_lib_save_LIBS
53344: fi
1.1.1.3 ! misho 53345: { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_New_Face" >&5
! 53346: echo "${ECHO_T}$ac_cv_lib_freetype_FT_New_Face" >&6; }
! 53347: if test $ac_cv_lib_freetype_FT_New_Face = yes; then
1.1 misho 53348:
53349: LDFLAGS=$save_old_LDFLAGS
53350: ext_shared=$save_ext_shared
53351:
53352:
53353:
53354: if test "$ext_shared" = "yes"; then
53355: GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
53356: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
53357:
53358: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53359:
53360: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53361: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
53362: else
53363:
53364: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53365:
53366: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53367: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
53368: fi
53369:
53370:
53371: if test "$ext_shared" = "yes"; then
53372: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53373: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53374: else
53375:
53376:
53377:
53378: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53379:
53380: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53381: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53382: eval "LIBPATH$unique=set"
53383:
53384: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53385: LDFLAGS="$LDFLAGS -L$ai_p"
53386: PHP_RPATHS="$PHP_RPATHS $ai_p"
53387:
53388: fi
53389:
53390:
53391: fi
53392:
53393: fi
53394:
53395: fi
53396: else
53397:
53398:
53399: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
53400:
53401: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53402:
53403: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53404: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
53405: else
53406:
53407: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53408:
53409: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53410: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
53411: fi
53412:
53413:
53414:
53415:
53416:
53417: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53418:
53419: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53420: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53421: eval "LIBPATH$unique=set"
53422:
53423: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53424: LDFLAGS="$LDFLAGS -L$ai_p"
53425: PHP_RPATHS="$PHP_RPATHS $ai_p"
53426:
53427: fi
53428:
53429:
53430:
53431: fi
53432:
53433: fi
53434:
53435:
53436: case freetype in
53437: c|c_r|pthread*) ;;
53438: *)
53439: LIBS="-lfreetype $LIBS"
53440: ;;
53441: esac
53442:
53443:
53444:
53445:
53446: fi
53447:
53448:
53449:
53450: if test "$FREETYPE2_DIR/include" != "/usr/include"; then
53451:
53452: if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
53453: ai_p=$FREETYPE2_DIR/include
53454: else
53455:
53456: ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
53457:
53458: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53459: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
53460: fi
53461:
53462:
53463:
53464: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53465:
53466: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53467: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53468: eval "INCLUDEPATH$unique=set"
53469:
53470: if test ""; then
53471: INCLUDES="-I$ai_p $INCLUDES"
53472: else
53473: INCLUDES="$INCLUDES -I$ai_p"
53474: fi
53475:
53476: fi
53477:
53478: fi
53479:
53480:
53481: if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
53482:
53483: if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
53484: ai_p=$FREETYPE2_INC_DIR
53485: else
53486:
53487: ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
53488:
53489: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53490: ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
53491: fi
53492:
53493:
53494:
53495: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53496:
53497: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53498: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53499: eval "INCLUDEPATH$unique=set"
53500:
53501: if test ""; then
53502: INCLUDES="-I$ai_p $INCLUDES"
53503: else
53504: INCLUDES="$INCLUDES -I$ai_p"
53505: fi
53506:
53507: fi
53508:
53509: fi
53510:
53511:
1.1.1.3 ! misho 53512: cat >>confdefs.h <<\_ACEOF
! 53513: #define USE_GD_IMGSTRTTF 1
! 53514: _ACEOF
1.1 misho 53515:
53516:
1.1.1.3 ! misho 53517: cat >>confdefs.h <<\_ACEOF
! 53518: #define HAVE_LIBFREETYPE 1
! 53519: _ACEOF
1.1 misho 53520:
53521:
1.1.1.3 ! misho 53522: cat >>confdefs.h <<\_ACEOF
! 53523: #define ENABLE_GD_TTF 1
! 53524: _ACEOF
1.1 misho 53525:
53526:
53527:
53528: else
53529:
53530: LDFLAGS=$save_old_LDFLAGS
53531: ext_shared=$save_ext_shared
53532: unset ac_cv_lib_freetype_FT_New_Face
53533:
1.1.1.3 ! misho 53534: { { echo "$as_me:$LINENO: error: Problem with freetype.(a|so). Please check config.log for more information." >&5
! 53535: echo "$as_me: error: Problem with freetype.(a|so). Please check config.log for more information." >&2;}
! 53536: { (exit 1); exit 1; }; }
1.1 misho 53537:
53538:
53539: fi
53540:
53541: else
1.1.1.3 ! misho 53542: { echo "$as_me:$LINENO: result: If configure fails try --with-freetype-dir=<DIR>" >&5
! 53543: echo "${ECHO_T}If configure fails try --with-freetype-dir=<DIR>" >&6; }
1.1 misho 53544: fi
53545:
53546:
53547: if test "$PHP_T1LIB" != "no"; then
53548:
53549: for i in $PHP_T1LIB /usr/local /usr; do
53550: test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
53551: done
53552:
53553: if test -z "$GD_T1_DIR"; then
1.1.1.3 ! misho 53554: { { echo "$as_me:$LINENO: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&5
! 53555: echo "$as_me: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&2;}
! 53556: { (exit 1); exit 1; }; }
1.1 misho 53557: fi
53558:
53559:
53560: save_old_LDFLAGS=$LDFLAGS
53561: ac_stuff="
53562: -L$GD_T1_DIR/$PHP_LIBDIR
53563: "
53564:
53565: save_ext_shared=$ext_shared
53566: ext_shared=yes
53567:
53568: for ac_i in $ac_stuff; do
53569: case $ac_i in
53570: -pthread)
53571: if test "$ext_shared" = "yes"; then
53572: LDFLAGS="$LDFLAGS -pthread"
53573: else
53574:
53575:
53576: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53577:
53578: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53579: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53580: eval "EXTRA_LDFLAGS$unique=set"
53581: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53582: fi
53583:
53584: fi
53585: ;;
53586: -l*)
53587: ac_ii=`echo $ac_i|cut -c 3-`
53588:
53589:
53590: case $ac_ii in
53591: c|c_r|pthread*) ;;
53592: *)
53593: if test "$ext_shared" = "yes"; then
53594: LDFLAGS="$LDFLAGS -l$ac_ii"
53595: else
53596:
53597:
53598: case $ac_ii in
53599: c|c_r|pthread*) ;;
53600: *)
53601: LIBS="$LIBS -l$ac_ii"
53602: ;;
53603: esac
53604:
53605:
53606: fi
53607: ;;
53608: esac
53609:
53610:
53611: ;;
53612: -L*)
53613: ac_ii=`echo $ac_i|cut -c 3-`
53614:
53615: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53616:
53617: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53618: ai_p=$ac_ii
53619: else
53620:
53621: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53622:
53623: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53624: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53625: fi
53626:
53627:
53628: if test "$ext_shared" = "yes"; then
53629: LDFLAGS="-L$ai_p $LDFLAGS"
53630: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53631: else
53632:
53633:
53634:
53635: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53636:
53637: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53638: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53639: eval "LIBPATH$unique=set"
53640:
53641: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53642: LDFLAGS="$LDFLAGS -L$ai_p"
53643: PHP_RPATHS="$PHP_RPATHS $ai_p"
53644:
53645: fi
53646:
53647:
53648: fi
53649:
53650: fi
53651:
53652: ;;
53653: esac
53654: done
53655:
1.1.1.3 ! misho 53656: { echo "$as_me:$LINENO: checking for T1_StrError in -lt1" >&5
! 53657: echo $ECHO_N "checking for T1_StrError in -lt1... $ECHO_C" >&6; }
! 53658: if test "${ac_cv_lib_t1_T1_StrError+set}" = set; then
! 53659: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 53660: else
53661: ac_check_lib_save_LIBS=$LIBS
53662: LIBS="-lt1 $LIBS"
1.1.1.3 ! misho 53663: cat >conftest.$ac_ext <<_ACEOF
! 53664: /* confdefs.h. */
! 53665: _ACEOF
! 53666: cat confdefs.h >>conftest.$ac_ext
! 53667: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 53668: /* end confdefs.h. */
53669:
53670: /* Override any GCC internal prototype to avoid an error.
53671: Use char because int might match the return type of a GCC
53672: builtin and then its argument prototype would still apply. */
53673: #ifdef __cplusplus
53674: extern "C"
53675: #endif
53676: char T1_StrError ();
53677: int
53678: main ()
53679: {
53680: return T1_StrError ();
53681: ;
53682: return 0;
53683: }
53684: _ACEOF
1.1.1.3 ! misho 53685: rm -f conftest.$ac_objext conftest$ac_exeext
! 53686: if { (ac_try="$ac_link"
! 53687: case "(($ac_try" in
! 53688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 53689: *) ac_try_echo=$ac_try;;
! 53690: esac
! 53691: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 53692: (eval "$ac_link") 2>conftest.er1
! 53693: ac_status=$?
! 53694: grep -v '^ *+' conftest.er1 >conftest.err
! 53695: rm -f conftest.er1
! 53696: cat conftest.err >&5
! 53697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 53698: (exit $ac_status); } && {
! 53699: test -z "$ac_c_werror_flag" ||
! 53700: test ! -s conftest.err
! 53701: } && test -s conftest$ac_exeext &&
! 53702: $as_test_x conftest$ac_exeext; then
1.1 misho 53703: ac_cv_lib_t1_T1_StrError=yes
53704: else
1.1.1.3 ! misho 53705: echo "$as_me: failed program was:" >&5
! 53706: sed 's/^/| /' conftest.$ac_ext >&5
! 53707:
! 53708: ac_cv_lib_t1_T1_StrError=no
1.1 misho 53709: fi
1.1.1.3 ! misho 53710:
! 53711: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 53712: conftest$ac_exeext conftest.$ac_ext
1.1 misho 53713: LIBS=$ac_check_lib_save_LIBS
53714: fi
1.1.1.3 ! misho 53715: { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_StrError" >&5
! 53716: echo "${ECHO_T}$ac_cv_lib_t1_T1_StrError" >&6; }
! 53717: if test $ac_cv_lib_t1_T1_StrError = yes; then
1.1 misho 53718:
53719: LDFLAGS=$save_old_LDFLAGS
53720: ext_shared=$save_ext_shared
53721:
53722:
1.1.1.3 ! misho 53723: cat >>confdefs.h <<\_ACEOF
! 53724: #define HAVE_LIBT1 1
! 53725: _ACEOF
1.1 misho 53726:
53727:
53728: if test "$GD_T1_DIR/include" != "/usr/include"; then
53729:
53730: if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
53731: ai_p=$GD_T1_DIR/include
53732: else
53733:
53734: ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
53735:
53736: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53737: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
53738: fi
53739:
53740:
53741:
53742: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53743:
53744: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53745: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53746: eval "INCLUDEPATH$unique=set"
53747:
53748: if test ""; then
53749: INCLUDES="-I$ai_p $INCLUDES"
53750: else
53751: INCLUDES="$INCLUDES -I$ai_p"
53752: fi
53753:
53754: fi
53755:
53756: fi
53757:
53758:
53759:
53760: if test "$ext_shared" = "yes"; then
53761: GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
53762: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
53763:
53764: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53765:
53766: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53767: ai_p=$GD_T1_DIR/$PHP_LIBDIR
53768: else
53769:
53770: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53771:
53772: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53773: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
53774: fi
53775:
53776:
53777: if test "$ext_shared" = "yes"; then
53778: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53779: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53780: else
53781:
53782:
53783:
53784: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53785:
53786: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53787: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53788: eval "LIBPATH$unique=set"
53789:
53790: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53791: LDFLAGS="$LDFLAGS -L$ai_p"
53792: PHP_RPATHS="$PHP_RPATHS $ai_p"
53793:
53794: fi
53795:
53796:
53797: fi
53798:
53799: fi
53800:
53801: fi
53802: else
53803:
53804:
53805: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
53806:
53807: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53808:
53809: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53810: ai_p=$GD_T1_DIR/$PHP_LIBDIR
53811: else
53812:
53813: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53814:
53815: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53816: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
53817: fi
53818:
53819:
53820:
53821:
53822:
53823: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53824:
53825: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53826: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53827: eval "LIBPATH$unique=set"
53828:
53829: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53830: LDFLAGS="$LDFLAGS -L$ai_p"
53831: PHP_RPATHS="$PHP_RPATHS $ai_p"
53832:
53833: fi
53834:
53835:
53836:
53837: fi
53838:
53839: fi
53840:
53841:
53842: case t1 in
53843: c|c_r|pthread*) ;;
53844: *)
53845: LIBS="-lt1 $LIBS"
53846: ;;
53847: esac
53848:
53849:
53850:
53851:
53852: fi
53853:
53854:
53855:
53856:
53857: else
53858:
53859: LDFLAGS=$save_old_LDFLAGS
53860: ext_shared=$save_ext_shared
53861: unset ac_cv_lib_t1_T1_StrError
53862:
1.1.1.3 ! misho 53863: { { echo "$as_me:$LINENO: error: Problem with libt1.(a|so). Please check config.log for more information." >&5
! 53864: echo "$as_me: error: Problem with libt1.(a|so). Please check config.log for more information." >&2;}
! 53865: { (exit 1); exit 1; }; }
1.1 misho 53866:
53867:
53868: fi
53869:
53870: fi
53871:
53872:
53873: for i in include/gd1.3 include/gd include gd1.3 gd ""; do
53874: test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
53875: done
53876:
53877: for i in $PHP_LIBDIR/gd1.3 $PHP_LIBDIR/gd $PHP_LIBDIR gd1.3 gd ""; do
53878: test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i"
53879: done
53880:
53881: if test -n "$GD_INCLUDE" && test -n "$GD_LIB"; then
53882:
53883:
53884: if test "$ext_shared" = "yes"; then
53885: GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD"
53886: if test -n "$GD_LIB"; then
53887:
53888: if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
53889:
53890: if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
53891: ai_p=$GD_LIB
53892: else
53893:
53894: ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
53895:
53896: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53897: ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
53898: fi
53899:
53900:
53901: if test "$ext_shared" = "yes"; then
53902: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53903: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53904: else
53905:
53906:
53907:
53908: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53909:
53910: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53911: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53912: eval "LIBPATH$unique=set"
53913:
53914: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53915: LDFLAGS="$LDFLAGS -L$ai_p"
53916: PHP_RPATHS="$PHP_RPATHS $ai_p"
53917:
53918: fi
53919:
53920:
53921: fi
53922:
53923: fi
53924:
53925: fi
53926: else
53927:
53928:
53929: if test -n "$GD_LIB"; then
53930:
53931: if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
53932:
53933: if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
53934: ai_p=$GD_LIB
53935: else
53936:
53937: ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
53938:
53939: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53940: ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
53941: fi
53942:
53943:
53944:
53945:
53946:
53947: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53948:
53949: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53950: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53951: eval "LIBPATH$unique=set"
53952:
53953: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53954: LDFLAGS="$LDFLAGS -L$ai_p"
53955: PHP_RPATHS="$PHP_RPATHS $ai_p"
53956:
53957: fi
53958:
53959:
53960:
53961: fi
53962:
53963: fi
53964:
53965:
53966: case gd in
53967: c|c_r|pthread*) ;;
53968: *)
53969: LIBS="-lgd $LIBS"
53970: ;;
53971: esac
53972:
53973:
53974:
53975:
53976: fi
53977:
53978:
53979:
1.1.1.3 ! misho 53980: cat >>confdefs.h <<\_ACEOF
! 53981: #define HAVE_LIBGD 1
! 53982: _ACEOF
1.1 misho 53983:
53984:
53985:
53986: save_old_LDFLAGS=$LDFLAGS
53987: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
53988:
53989: save_ext_shared=$ext_shared
53990: ext_shared=yes
53991:
53992: for ac_i in $ac_stuff; do
53993: case $ac_i in
53994: -pthread)
53995: if test "$ext_shared" = "yes"; then
53996: LDFLAGS="$LDFLAGS -pthread"
53997: else
53998:
53999:
54000: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54001:
54002: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54003: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54004: eval "EXTRA_LDFLAGS$unique=set"
54005: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54006: fi
54007:
54008: fi
54009: ;;
54010: -l*)
54011: ac_ii=`echo $ac_i|cut -c 3-`
54012:
54013:
54014: case $ac_ii in
54015: c|c_r|pthread*) ;;
54016: *)
54017: if test "$ext_shared" = "yes"; then
54018: LDFLAGS="$LDFLAGS -l$ac_ii"
54019: else
54020:
54021:
54022: case $ac_ii in
54023: c|c_r|pthread*) ;;
54024: *)
54025: LIBS="$LIBS -l$ac_ii"
54026: ;;
54027: esac
54028:
54029:
54030: fi
54031: ;;
54032: esac
54033:
54034:
54035: ;;
54036: -L*)
54037: ac_ii=`echo $ac_i|cut -c 3-`
54038:
54039: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54040:
54041: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54042: ai_p=$ac_ii
54043: else
54044:
54045: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54046:
54047: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54048: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54049: fi
54050:
54051:
54052: if test "$ext_shared" = "yes"; then
54053: LDFLAGS="-L$ai_p $LDFLAGS"
54054: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54055: else
54056:
54057:
54058:
54059: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54060:
54061: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54062: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54063: eval "LIBPATH$unique=set"
54064:
54065: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54066: LDFLAGS="$LDFLAGS -L$ai_p"
54067: PHP_RPATHS="$PHP_RPATHS $ai_p"
54068:
54069: fi
54070:
54071:
54072: fi
54073:
54074: fi
54075:
54076: ;;
54077: esac
54078: done
54079:
1.1.1.3 ! misho 54080: { echo "$as_me:$LINENO: checking for gdImageString16 in -lgd" >&5
! 54081: echo $ECHO_N "checking for gdImageString16 in -lgd... $ECHO_C" >&6; }
! 54082: if test "${ac_cv_lib_gd_gdImageString16+set}" = set; then
! 54083: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 54084: else
54085: ac_check_lib_save_LIBS=$LIBS
54086: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 54087: cat >conftest.$ac_ext <<_ACEOF
! 54088: /* confdefs.h. */
! 54089: _ACEOF
! 54090: cat confdefs.h >>conftest.$ac_ext
! 54091: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 54092: /* end confdefs.h. */
54093:
54094: /* Override any GCC internal prototype to avoid an error.
54095: Use char because int might match the return type of a GCC
54096: builtin and then its argument prototype would still apply. */
54097: #ifdef __cplusplus
54098: extern "C"
54099: #endif
54100: char gdImageString16 ();
54101: int
54102: main ()
54103: {
54104: return gdImageString16 ();
54105: ;
54106: return 0;
54107: }
54108: _ACEOF
1.1.1.3 ! misho 54109: rm -f conftest.$ac_objext conftest$ac_exeext
! 54110: if { (ac_try="$ac_link"
! 54111: case "(($ac_try" in
! 54112: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 54113: *) ac_try_echo=$ac_try;;
! 54114: esac
! 54115: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 54116: (eval "$ac_link") 2>conftest.er1
! 54117: ac_status=$?
! 54118: grep -v '^ *+' conftest.er1 >conftest.err
! 54119: rm -f conftest.er1
! 54120: cat conftest.err >&5
! 54121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 54122: (exit $ac_status); } && {
! 54123: test -z "$ac_c_werror_flag" ||
! 54124: test ! -s conftest.err
! 54125: } && test -s conftest$ac_exeext &&
! 54126: $as_test_x conftest$ac_exeext; then
1.1 misho 54127: ac_cv_lib_gd_gdImageString16=yes
54128: else
1.1.1.3 ! misho 54129: echo "$as_me: failed program was:" >&5
! 54130: sed 's/^/| /' conftest.$ac_ext >&5
! 54131:
! 54132: ac_cv_lib_gd_gdImageString16=no
1.1 misho 54133: fi
1.1.1.3 ! misho 54134:
! 54135: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 54136: conftest$ac_exeext conftest.$ac_ext
1.1 misho 54137: LIBS=$ac_check_lib_save_LIBS
54138: fi
1.1.1.3 ! misho 54139: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageString16" >&5
! 54140: echo "${ECHO_T}$ac_cv_lib_gd_gdImageString16" >&6; }
! 54141: if test $ac_cv_lib_gd_gdImageString16 = yes; then
1.1 misho 54142:
54143: LDFLAGS=$save_old_LDFLAGS
54144: ext_shared=$save_ext_shared
54145:
1.1.1.3 ! misho 54146: cat >>confdefs.h <<\_ACEOF
! 54147: #define HAVE_LIBGD13 1
! 54148: _ACEOF
1.1 misho 54149:
54150:
54151: else
54152:
54153: LDFLAGS=$save_old_LDFLAGS
54154: ext_shared=$save_ext_shared
54155: unset ac_cv_lib_gd_gdImageString16
54156:
54157:
54158: fi
54159:
54160:
54161: save_old_LDFLAGS=$LDFLAGS
54162: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54163:
54164: save_ext_shared=$ext_shared
54165: ext_shared=yes
54166:
54167: for ac_i in $ac_stuff; do
54168: case $ac_i in
54169: -pthread)
54170: if test "$ext_shared" = "yes"; then
54171: LDFLAGS="$LDFLAGS -pthread"
54172: else
54173:
54174:
54175: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54176:
54177: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54178: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54179: eval "EXTRA_LDFLAGS$unique=set"
54180: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54181: fi
54182:
54183: fi
54184: ;;
54185: -l*)
54186: ac_ii=`echo $ac_i|cut -c 3-`
54187:
54188:
54189: case $ac_ii in
54190: c|c_r|pthread*) ;;
54191: *)
54192: if test "$ext_shared" = "yes"; then
54193: LDFLAGS="$LDFLAGS -l$ac_ii"
54194: else
54195:
54196:
54197: case $ac_ii in
54198: c|c_r|pthread*) ;;
54199: *)
54200: LIBS="$LIBS -l$ac_ii"
54201: ;;
54202: esac
54203:
54204:
54205: fi
54206: ;;
54207: esac
54208:
54209:
54210: ;;
54211: -L*)
54212: ac_ii=`echo $ac_i|cut -c 3-`
54213:
54214: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54215:
54216: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54217: ai_p=$ac_ii
54218: else
54219:
54220: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54221:
54222: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54223: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54224: fi
54225:
54226:
54227: if test "$ext_shared" = "yes"; then
54228: LDFLAGS="-L$ai_p $LDFLAGS"
54229: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54230: else
54231:
54232:
54233:
54234: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54235:
54236: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54237: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54238: eval "LIBPATH$unique=set"
54239:
54240: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54241: LDFLAGS="$LDFLAGS -L$ai_p"
54242: PHP_RPATHS="$PHP_RPATHS $ai_p"
54243:
54244: fi
54245:
54246:
54247: fi
54248:
54249: fi
54250:
54251: ;;
54252: esac
54253: done
54254:
1.1.1.3 ! misho 54255: { echo "$as_me:$LINENO: checking for gdImagePaletteCopy in -lgd" >&5
! 54256: echo $ECHO_N "checking for gdImagePaletteCopy in -lgd... $ECHO_C" >&6; }
! 54257: if test "${ac_cv_lib_gd_gdImagePaletteCopy+set}" = set; then
! 54258: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 54259: else
54260: ac_check_lib_save_LIBS=$LIBS
54261: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 54262: cat >conftest.$ac_ext <<_ACEOF
! 54263: /* confdefs.h. */
! 54264: _ACEOF
! 54265: cat confdefs.h >>conftest.$ac_ext
! 54266: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 54267: /* end confdefs.h. */
54268:
54269: /* Override any GCC internal prototype to avoid an error.
54270: Use char because int might match the return type of a GCC
54271: builtin and then its argument prototype would still apply. */
54272: #ifdef __cplusplus
54273: extern "C"
54274: #endif
54275: char gdImagePaletteCopy ();
54276: int
54277: main ()
54278: {
54279: return gdImagePaletteCopy ();
54280: ;
54281: return 0;
54282: }
54283: _ACEOF
1.1.1.3 ! misho 54284: rm -f conftest.$ac_objext conftest$ac_exeext
! 54285: if { (ac_try="$ac_link"
! 54286: case "(($ac_try" in
! 54287: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 54288: *) ac_try_echo=$ac_try;;
! 54289: esac
! 54290: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 54291: (eval "$ac_link") 2>conftest.er1
! 54292: ac_status=$?
! 54293: grep -v '^ *+' conftest.er1 >conftest.err
! 54294: rm -f conftest.er1
! 54295: cat conftest.err >&5
! 54296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 54297: (exit $ac_status); } && {
! 54298: test -z "$ac_c_werror_flag" ||
! 54299: test ! -s conftest.err
! 54300: } && test -s conftest$ac_exeext &&
! 54301: $as_test_x conftest$ac_exeext; then
1.1 misho 54302: ac_cv_lib_gd_gdImagePaletteCopy=yes
54303: else
1.1.1.3 ! misho 54304: echo "$as_me: failed program was:" >&5
! 54305: sed 's/^/| /' conftest.$ac_ext >&5
! 54306:
! 54307: ac_cv_lib_gd_gdImagePaletteCopy=no
1.1 misho 54308: fi
1.1.1.3 ! misho 54309:
! 54310: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 54311: conftest$ac_exeext conftest.$ac_ext
1.1 misho 54312: LIBS=$ac_check_lib_save_LIBS
54313: fi
1.1.1.3 ! misho 54314: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePaletteCopy" >&5
! 54315: echo "${ECHO_T}$ac_cv_lib_gd_gdImagePaletteCopy" >&6; }
! 54316: if test $ac_cv_lib_gd_gdImagePaletteCopy = yes; then
1.1 misho 54317:
54318: LDFLAGS=$save_old_LDFLAGS
54319: ext_shared=$save_ext_shared
54320:
1.1.1.3 ! misho 54321: cat >>confdefs.h <<\_ACEOF
! 54322: #define HAVE_LIBGD15 1
! 54323: _ACEOF
1.1 misho 54324:
54325:
54326: else
54327:
54328: LDFLAGS=$save_old_LDFLAGS
54329: ext_shared=$save_ext_shared
54330: unset ac_cv_lib_gd_gdImagePaletteCopy
54331:
54332:
54333: fi
54334:
54335:
54336: save_old_LDFLAGS=$LDFLAGS
54337: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54338:
54339: save_ext_shared=$ext_shared
54340: ext_shared=yes
54341:
54342: for ac_i in $ac_stuff; do
54343: case $ac_i in
54344: -pthread)
54345: if test "$ext_shared" = "yes"; then
54346: LDFLAGS="$LDFLAGS -pthread"
54347: else
54348:
54349:
54350: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54351:
54352: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54353: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54354: eval "EXTRA_LDFLAGS$unique=set"
54355: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54356: fi
54357:
54358: fi
54359: ;;
54360: -l*)
54361: ac_ii=`echo $ac_i|cut -c 3-`
54362:
54363:
54364: case $ac_ii in
54365: c|c_r|pthread*) ;;
54366: *)
54367: if test "$ext_shared" = "yes"; then
54368: LDFLAGS="$LDFLAGS -l$ac_ii"
54369: else
54370:
54371:
54372: case $ac_ii in
54373: c|c_r|pthread*) ;;
54374: *)
54375: LIBS="$LIBS -l$ac_ii"
54376: ;;
54377: esac
54378:
54379:
54380: fi
54381: ;;
54382: esac
54383:
54384:
54385: ;;
54386: -L*)
54387: ac_ii=`echo $ac_i|cut -c 3-`
54388:
54389: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54390:
54391: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54392: ai_p=$ac_ii
54393: else
54394:
54395: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54396:
54397: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54398: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54399: fi
54400:
54401:
54402: if test "$ext_shared" = "yes"; then
54403: LDFLAGS="-L$ai_p $LDFLAGS"
54404: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54405: else
54406:
54407:
54408:
54409: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54410:
54411: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54412: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54413: eval "LIBPATH$unique=set"
54414:
54415: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54416: LDFLAGS="$LDFLAGS -L$ai_p"
54417: PHP_RPATHS="$PHP_RPATHS $ai_p"
54418:
54419: fi
54420:
54421:
54422: fi
54423:
54424: fi
54425:
54426: ;;
54427: esac
54428: done
54429:
1.1.1.3 ! misho 54430: { echo "$as_me:$LINENO: checking for gdImageCreateFromPng in -lgd" >&5
! 54431: echo $ECHO_N "checking for gdImageCreateFromPng in -lgd... $ECHO_C" >&6; }
! 54432: if test "${ac_cv_lib_gd_gdImageCreateFromPng+set}" = set; then
! 54433: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 54434: else
54435: ac_check_lib_save_LIBS=$LIBS
54436: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 54437: cat >conftest.$ac_ext <<_ACEOF
! 54438: /* confdefs.h. */
! 54439: _ACEOF
! 54440: cat confdefs.h >>conftest.$ac_ext
! 54441: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 54442: /* end confdefs.h. */
54443:
54444: /* Override any GCC internal prototype to avoid an error.
54445: Use char because int might match the return type of a GCC
54446: builtin and then its argument prototype would still apply. */
54447: #ifdef __cplusplus
54448: extern "C"
54449: #endif
54450: char gdImageCreateFromPng ();
54451: int
54452: main ()
54453: {
54454: return gdImageCreateFromPng ();
54455: ;
54456: return 0;
54457: }
54458: _ACEOF
1.1.1.3 ! misho 54459: rm -f conftest.$ac_objext conftest$ac_exeext
! 54460: if { (ac_try="$ac_link"
! 54461: case "(($ac_try" in
! 54462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 54463: *) ac_try_echo=$ac_try;;
! 54464: esac
! 54465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 54466: (eval "$ac_link") 2>conftest.er1
! 54467: ac_status=$?
! 54468: grep -v '^ *+' conftest.er1 >conftest.err
! 54469: rm -f conftest.er1
! 54470: cat conftest.err >&5
! 54471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 54472: (exit $ac_status); } && {
! 54473: test -z "$ac_c_werror_flag" ||
! 54474: test ! -s conftest.err
! 54475: } && test -s conftest$ac_exeext &&
! 54476: $as_test_x conftest$ac_exeext; then
1.1 misho 54477: ac_cv_lib_gd_gdImageCreateFromPng=yes
54478: else
1.1.1.3 ! misho 54479: echo "$as_me: failed program was:" >&5
! 54480: sed 's/^/| /' conftest.$ac_ext >&5
! 54481:
! 54482: ac_cv_lib_gd_gdImageCreateFromPng=no
1.1 misho 54483: fi
1.1.1.3 ! misho 54484:
! 54485: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 54486: conftest$ac_exeext conftest.$ac_ext
1.1 misho 54487: LIBS=$ac_check_lib_save_LIBS
54488: fi
1.1.1.3 ! misho 54489: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5
! 54490: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateFromPng" >&6; }
! 54491: if test $ac_cv_lib_gd_gdImageCreateFromPng = yes; then
1.1 misho 54492:
54493: LDFLAGS=$save_old_LDFLAGS
54494: ext_shared=$save_ext_shared
54495:
1.1.1.3 ! misho 54496: cat >>confdefs.h <<\_ACEOF
! 54497: #define HAVE_GD_PNG 1
! 54498: _ACEOF
1.1 misho 54499:
54500:
54501: else
54502:
54503: LDFLAGS=$save_old_LDFLAGS
54504: ext_shared=$save_ext_shared
54505: unset ac_cv_lib_gd_gdImageCreateFromPng
54506:
54507:
54508: fi
54509:
54510:
54511: save_old_LDFLAGS=$LDFLAGS
54512: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54513:
54514: save_ext_shared=$ext_shared
54515: ext_shared=yes
54516:
54517: for ac_i in $ac_stuff; do
54518: case $ac_i in
54519: -pthread)
54520: if test "$ext_shared" = "yes"; then
54521: LDFLAGS="$LDFLAGS -pthread"
54522: else
54523:
54524:
54525: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54526:
54527: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54528: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54529: eval "EXTRA_LDFLAGS$unique=set"
54530: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54531: fi
54532:
54533: fi
54534: ;;
54535: -l*)
54536: ac_ii=`echo $ac_i|cut -c 3-`
54537:
54538:
54539: case $ac_ii in
54540: c|c_r|pthread*) ;;
54541: *)
54542: if test "$ext_shared" = "yes"; then
54543: LDFLAGS="$LDFLAGS -l$ac_ii"
54544: else
54545:
54546:
54547: case $ac_ii in
54548: c|c_r|pthread*) ;;
54549: *)
54550: LIBS="$LIBS -l$ac_ii"
54551: ;;
54552: esac
54553:
54554:
54555: fi
54556: ;;
54557: esac
54558:
54559:
54560: ;;
54561: -L*)
54562: ac_ii=`echo $ac_i|cut -c 3-`
54563:
54564: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54565:
54566: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54567: ai_p=$ac_ii
54568: else
54569:
54570: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54571:
54572: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54573: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54574: fi
54575:
54576:
54577: if test "$ext_shared" = "yes"; then
54578: LDFLAGS="-L$ai_p $LDFLAGS"
54579: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54580: else
54581:
54582:
54583:
54584: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54585:
54586: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54587: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54588: eval "LIBPATH$unique=set"
54589:
54590: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54591: LDFLAGS="$LDFLAGS -L$ai_p"
54592: PHP_RPATHS="$PHP_RPATHS $ai_p"
54593:
54594: fi
54595:
54596:
54597: fi
54598:
54599: fi
54600:
54601: ;;
54602: esac
54603: done
54604:
1.1.1.3 ! misho 54605: { echo "$as_me:$LINENO: checking for gdImageCreateFromGif in -lgd" >&5
! 54606: echo $ECHO_N "checking for gdImageCreateFromGif in -lgd... $ECHO_C" >&6; }
! 54607: if test "${ac_cv_lib_gd_gdImageCreateFromGif+set}" = set; then
! 54608: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 54609: else
54610: ac_check_lib_save_LIBS=$LIBS
54611: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 54612: cat >conftest.$ac_ext <<_ACEOF
! 54613: /* confdefs.h. */
! 54614: _ACEOF
! 54615: cat confdefs.h >>conftest.$ac_ext
! 54616: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 54617: /* end confdefs.h. */
54618:
54619: /* Override any GCC internal prototype to avoid an error.
54620: Use char because int might match the return type of a GCC
54621: builtin and then its argument prototype would still apply. */
54622: #ifdef __cplusplus
54623: extern "C"
54624: #endif
54625: char gdImageCreateFromGif ();
54626: int
54627: main ()
54628: {
54629: return gdImageCreateFromGif ();
54630: ;
54631: return 0;
54632: }
54633: _ACEOF
1.1.1.3 ! misho 54634: rm -f conftest.$ac_objext conftest$ac_exeext
! 54635: if { (ac_try="$ac_link"
! 54636: case "(($ac_try" in
! 54637: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 54638: *) ac_try_echo=$ac_try;;
! 54639: esac
! 54640: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 54641: (eval "$ac_link") 2>conftest.er1
! 54642: ac_status=$?
! 54643: grep -v '^ *+' conftest.er1 >conftest.err
! 54644: rm -f conftest.er1
! 54645: cat conftest.err >&5
! 54646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 54647: (exit $ac_status); } && {
! 54648: test -z "$ac_c_werror_flag" ||
! 54649: test ! -s conftest.err
! 54650: } && test -s conftest$ac_exeext &&
! 54651: $as_test_x conftest$ac_exeext; then
1.1 misho 54652: ac_cv_lib_gd_gdImageCreateFromGif=yes
54653: else
1.1.1.3 ! misho 54654: echo "$as_me: failed program was:" >&5
! 54655: sed 's/^/| /' conftest.$ac_ext >&5
! 54656:
! 54657: ac_cv_lib_gd_gdImageCreateFromGif=no
1.1 misho 54658: fi
1.1.1.3 ! misho 54659:
! 54660: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 54661: conftest$ac_exeext conftest.$ac_ext
1.1 misho 54662: LIBS=$ac_check_lib_save_LIBS
54663: fi
1.1.1.3 ! misho 54664: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromGif" >&5
! 54665: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateFromGif" >&6; }
! 54666: if test $ac_cv_lib_gd_gdImageCreateFromGif = yes; then
1.1 misho 54667:
54668: LDFLAGS=$save_old_LDFLAGS
54669: ext_shared=$save_ext_shared
54670:
1.1.1.3 ! misho 54671: cat >>confdefs.h <<\_ACEOF
! 54672: #define HAVE_GD_GIF_READ 1
! 54673: _ACEOF
1.1 misho 54674:
54675:
54676: else
54677:
54678: LDFLAGS=$save_old_LDFLAGS
54679: ext_shared=$save_ext_shared
54680: unset ac_cv_lib_gd_gdImageCreateFromGif
54681:
54682:
54683: fi
54684:
54685:
54686: save_old_LDFLAGS=$LDFLAGS
54687: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54688:
54689: save_ext_shared=$ext_shared
54690: ext_shared=yes
54691:
54692: for ac_i in $ac_stuff; do
54693: case $ac_i in
54694: -pthread)
54695: if test "$ext_shared" = "yes"; then
54696: LDFLAGS="$LDFLAGS -pthread"
54697: else
54698:
54699:
54700: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54701:
54702: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54703: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54704: eval "EXTRA_LDFLAGS$unique=set"
54705: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54706: fi
54707:
54708: fi
54709: ;;
54710: -l*)
54711: ac_ii=`echo $ac_i|cut -c 3-`
54712:
54713:
54714: case $ac_ii in
54715: c|c_r|pthread*) ;;
54716: *)
54717: if test "$ext_shared" = "yes"; then
54718: LDFLAGS="$LDFLAGS -l$ac_ii"
54719: else
54720:
54721:
54722: case $ac_ii in
54723: c|c_r|pthread*) ;;
54724: *)
54725: LIBS="$LIBS -l$ac_ii"
54726: ;;
54727: esac
54728:
54729:
54730: fi
54731: ;;
54732: esac
54733:
54734:
54735: ;;
54736: -L*)
54737: ac_ii=`echo $ac_i|cut -c 3-`
54738:
54739: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54740:
54741: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54742: ai_p=$ac_ii
54743: else
54744:
54745: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54746:
54747: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54748: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54749: fi
54750:
54751:
54752: if test "$ext_shared" = "yes"; then
54753: LDFLAGS="-L$ai_p $LDFLAGS"
54754: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54755: else
54756:
54757:
54758:
54759: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54760:
54761: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54762: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54763: eval "LIBPATH$unique=set"
54764:
54765: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54766: LDFLAGS="$LDFLAGS -L$ai_p"
54767: PHP_RPATHS="$PHP_RPATHS $ai_p"
54768:
54769: fi
54770:
54771:
54772: fi
54773:
54774: fi
54775:
54776: ;;
54777: esac
54778: done
54779:
1.1.1.3 ! misho 54780: { echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
! 54781: echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6; }
! 54782: if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
! 54783: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 54784: else
54785: ac_check_lib_save_LIBS=$LIBS
54786: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 54787: cat >conftest.$ac_ext <<_ACEOF
! 54788: /* confdefs.h. */
! 54789: _ACEOF
! 54790: cat confdefs.h >>conftest.$ac_ext
! 54791: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 54792: /* end confdefs.h. */
54793:
54794: /* Override any GCC internal prototype to avoid an error.
54795: Use char because int might match the return type of a GCC
54796: builtin and then its argument prototype would still apply. */
54797: #ifdef __cplusplus
54798: extern "C"
54799: #endif
54800: char gdImageGif ();
54801: int
54802: main ()
54803: {
54804: return gdImageGif ();
54805: ;
54806: return 0;
54807: }
54808: _ACEOF
1.1.1.3 ! misho 54809: rm -f conftest.$ac_objext conftest$ac_exeext
! 54810: if { (ac_try="$ac_link"
! 54811: case "(($ac_try" in
! 54812: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 54813: *) ac_try_echo=$ac_try;;
! 54814: esac
! 54815: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 54816: (eval "$ac_link") 2>conftest.er1
! 54817: ac_status=$?
! 54818: grep -v '^ *+' conftest.er1 >conftest.err
! 54819: rm -f conftest.er1
! 54820: cat conftest.err >&5
! 54821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 54822: (exit $ac_status); } && {
! 54823: test -z "$ac_c_werror_flag" ||
! 54824: test ! -s conftest.err
! 54825: } && test -s conftest$ac_exeext &&
! 54826: $as_test_x conftest$ac_exeext; then
1.1 misho 54827: ac_cv_lib_gd_gdImageGif=yes
54828: else
1.1.1.3 ! misho 54829: echo "$as_me: failed program was:" >&5
! 54830: sed 's/^/| /' conftest.$ac_ext >&5
! 54831:
! 54832: ac_cv_lib_gd_gdImageGif=no
1.1 misho 54833: fi
1.1.1.3 ! misho 54834:
! 54835: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 54836: conftest$ac_exeext conftest.$ac_ext
1.1 misho 54837: LIBS=$ac_check_lib_save_LIBS
54838: fi
1.1.1.3 ! misho 54839: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
! 54840: echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6; }
! 54841: if test $ac_cv_lib_gd_gdImageGif = yes; then
1.1 misho 54842:
54843: LDFLAGS=$save_old_LDFLAGS
54844: ext_shared=$save_ext_shared
54845:
1.1.1.3 ! misho 54846: cat >>confdefs.h <<\_ACEOF
! 54847: #define HAVE_GD_GIF_CREATE 1
! 54848: _ACEOF
1.1 misho 54849:
54850:
54851: else
54852:
54853: LDFLAGS=$save_old_LDFLAGS
54854: ext_shared=$save_ext_shared
54855: unset ac_cv_lib_gd_gdImageGif
54856:
54857:
54858: fi
54859:
54860:
54861: save_old_LDFLAGS=$LDFLAGS
54862: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54863:
54864: save_ext_shared=$ext_shared
54865: ext_shared=yes
54866:
54867: for ac_i in $ac_stuff; do
54868: case $ac_i in
54869: -pthread)
54870: if test "$ext_shared" = "yes"; then
54871: LDFLAGS="$LDFLAGS -pthread"
54872: else
54873:
54874:
54875: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54876:
54877: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54878: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54879: eval "EXTRA_LDFLAGS$unique=set"
54880: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54881: fi
54882:
54883: fi
54884: ;;
54885: -l*)
54886: ac_ii=`echo $ac_i|cut -c 3-`
54887:
54888:
54889: case $ac_ii in
54890: c|c_r|pthread*) ;;
54891: *)
54892: if test "$ext_shared" = "yes"; then
54893: LDFLAGS="$LDFLAGS -l$ac_ii"
54894: else
54895:
54896:
54897: case $ac_ii in
54898: c|c_r|pthread*) ;;
54899: *)
54900: LIBS="$LIBS -l$ac_ii"
54901: ;;
54902: esac
54903:
54904:
54905: fi
54906: ;;
54907: esac
54908:
54909:
54910: ;;
54911: -L*)
54912: ac_ii=`echo $ac_i|cut -c 3-`
54913:
54914: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54915:
54916: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54917: ai_p=$ac_ii
54918: else
54919:
54920: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54921:
54922: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54923: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54924: fi
54925:
54926:
54927: if test "$ext_shared" = "yes"; then
54928: LDFLAGS="-L$ai_p $LDFLAGS"
54929: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54930: else
54931:
54932:
54933:
54934: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54935:
54936: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54937: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54938: eval "LIBPATH$unique=set"
54939:
54940: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54941: LDFLAGS="$LDFLAGS -L$ai_p"
54942: PHP_RPATHS="$PHP_RPATHS $ai_p"
54943:
54944: fi
54945:
54946:
54947: fi
54948:
54949: fi
54950:
54951: ;;
54952: esac
54953: done
54954:
1.1.1.3 ! misho 54955: { echo "$as_me:$LINENO: checking for gdImageWBMP in -lgd" >&5
! 54956: echo $ECHO_N "checking for gdImageWBMP in -lgd... $ECHO_C" >&6; }
! 54957: if test "${ac_cv_lib_gd_gdImageWBMP+set}" = set; then
! 54958: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 54959: else
54960: ac_check_lib_save_LIBS=$LIBS
54961: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 54962: cat >conftest.$ac_ext <<_ACEOF
! 54963: /* confdefs.h. */
! 54964: _ACEOF
! 54965: cat confdefs.h >>conftest.$ac_ext
! 54966: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 54967: /* end confdefs.h. */
54968:
54969: /* Override any GCC internal prototype to avoid an error.
54970: Use char because int might match the return type of a GCC
54971: builtin and then its argument prototype would still apply. */
54972: #ifdef __cplusplus
54973: extern "C"
54974: #endif
54975: char gdImageWBMP ();
54976: int
54977: main ()
54978: {
54979: return gdImageWBMP ();
54980: ;
54981: return 0;
54982: }
54983: _ACEOF
1.1.1.3 ! misho 54984: rm -f conftest.$ac_objext conftest$ac_exeext
! 54985: if { (ac_try="$ac_link"
! 54986: case "(($ac_try" in
! 54987: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 54988: *) ac_try_echo=$ac_try;;
! 54989: esac
! 54990: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 54991: (eval "$ac_link") 2>conftest.er1
! 54992: ac_status=$?
! 54993: grep -v '^ *+' conftest.er1 >conftest.err
! 54994: rm -f conftest.er1
! 54995: cat conftest.err >&5
! 54996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 54997: (exit $ac_status); } && {
! 54998: test -z "$ac_c_werror_flag" ||
! 54999: test ! -s conftest.err
! 55000: } && test -s conftest$ac_exeext &&
! 55001: $as_test_x conftest$ac_exeext; then
1.1 misho 55002: ac_cv_lib_gd_gdImageWBMP=yes
55003: else
1.1.1.3 ! misho 55004: echo "$as_me: failed program was:" >&5
! 55005: sed 's/^/| /' conftest.$ac_ext >&5
! 55006:
! 55007: ac_cv_lib_gd_gdImageWBMP=no
1.1 misho 55008: fi
1.1.1.3 ! misho 55009:
! 55010: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 55011: conftest$ac_exeext conftest.$ac_ext
1.1 misho 55012: LIBS=$ac_check_lib_save_LIBS
55013: fi
1.1.1.3 ! misho 55014: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageWBMP" >&5
! 55015: echo "${ECHO_T}$ac_cv_lib_gd_gdImageWBMP" >&6; }
! 55016: if test $ac_cv_lib_gd_gdImageWBMP = yes; then
1.1 misho 55017:
55018: LDFLAGS=$save_old_LDFLAGS
55019: ext_shared=$save_ext_shared
55020:
1.1.1.3 ! misho 55021: cat >>confdefs.h <<\_ACEOF
! 55022: #define HAVE_GD_WBMP 1
! 55023: _ACEOF
1.1 misho 55024:
55025:
55026: else
55027:
55028: LDFLAGS=$save_old_LDFLAGS
55029: ext_shared=$save_ext_shared
55030: unset ac_cv_lib_gd_gdImageWBMP
55031:
55032:
55033: fi
55034:
55035:
55036: save_old_LDFLAGS=$LDFLAGS
55037: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55038:
55039: save_ext_shared=$ext_shared
55040: ext_shared=yes
55041:
55042: for ac_i in $ac_stuff; do
55043: case $ac_i in
55044: -pthread)
55045: if test "$ext_shared" = "yes"; then
55046: LDFLAGS="$LDFLAGS -pthread"
55047: else
55048:
55049:
55050: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55051:
55052: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55053: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55054: eval "EXTRA_LDFLAGS$unique=set"
55055: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55056: fi
55057:
55058: fi
55059: ;;
55060: -l*)
55061: ac_ii=`echo $ac_i|cut -c 3-`
55062:
55063:
55064: case $ac_ii in
55065: c|c_r|pthread*) ;;
55066: *)
55067: if test "$ext_shared" = "yes"; then
55068: LDFLAGS="$LDFLAGS -l$ac_ii"
55069: else
55070:
55071:
55072: case $ac_ii in
55073: c|c_r|pthread*) ;;
55074: *)
55075: LIBS="$LIBS -l$ac_ii"
55076: ;;
55077: esac
55078:
55079:
55080: fi
55081: ;;
55082: esac
55083:
55084:
55085: ;;
55086: -L*)
55087: ac_ii=`echo $ac_i|cut -c 3-`
55088:
55089: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55090:
55091: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55092: ai_p=$ac_ii
55093: else
55094:
55095: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55096:
55097: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55098: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55099: fi
55100:
55101:
55102: if test "$ext_shared" = "yes"; then
55103: LDFLAGS="-L$ai_p $LDFLAGS"
55104: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55105: else
55106:
55107:
55108:
55109: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55110:
55111: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55112: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55113: eval "LIBPATH$unique=set"
55114:
55115: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55116: LDFLAGS="$LDFLAGS -L$ai_p"
55117: PHP_RPATHS="$PHP_RPATHS $ai_p"
55118:
55119: fi
55120:
55121:
55122: fi
55123:
55124: fi
55125:
55126: ;;
55127: esac
55128: done
55129:
1.1.1.3 ! misho 55130: { echo "$as_me:$LINENO: checking for gdImageCreateFromJpeg in -lgd" >&5
! 55131: echo $ECHO_N "checking for gdImageCreateFromJpeg in -lgd... $ECHO_C" >&6; }
! 55132: if test "${ac_cv_lib_gd_gdImageCreateFromJpeg+set}" = set; then
! 55133: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 55134: else
55135: ac_check_lib_save_LIBS=$LIBS
55136: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 55137: cat >conftest.$ac_ext <<_ACEOF
! 55138: /* confdefs.h. */
! 55139: _ACEOF
! 55140: cat confdefs.h >>conftest.$ac_ext
! 55141: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 55142: /* end confdefs.h. */
55143:
55144: /* Override any GCC internal prototype to avoid an error.
55145: Use char because int might match the return type of a GCC
55146: builtin and then its argument prototype would still apply. */
55147: #ifdef __cplusplus
55148: extern "C"
55149: #endif
55150: char gdImageCreateFromJpeg ();
55151: int
55152: main ()
55153: {
55154: return gdImageCreateFromJpeg ();
55155: ;
55156: return 0;
55157: }
55158: _ACEOF
1.1.1.3 ! misho 55159: rm -f conftest.$ac_objext conftest$ac_exeext
! 55160: if { (ac_try="$ac_link"
! 55161: case "(($ac_try" in
! 55162: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 55163: *) ac_try_echo=$ac_try;;
! 55164: esac
! 55165: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 55166: (eval "$ac_link") 2>conftest.er1
! 55167: ac_status=$?
! 55168: grep -v '^ *+' conftest.er1 >conftest.err
! 55169: rm -f conftest.er1
! 55170: cat conftest.err >&5
! 55171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 55172: (exit $ac_status); } && {
! 55173: test -z "$ac_c_werror_flag" ||
! 55174: test ! -s conftest.err
! 55175: } && test -s conftest$ac_exeext &&
! 55176: $as_test_x conftest$ac_exeext; then
1.1 misho 55177: ac_cv_lib_gd_gdImageCreateFromJpeg=yes
55178: else
1.1.1.3 ! misho 55179: echo "$as_me: failed program was:" >&5
! 55180: sed 's/^/| /' conftest.$ac_ext >&5
! 55181:
! 55182: ac_cv_lib_gd_gdImageCreateFromJpeg=no
1.1 misho 55183: fi
1.1.1.3 ! misho 55184:
! 55185: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 55186: conftest$ac_exeext conftest.$ac_ext
1.1 misho 55187: LIBS=$ac_check_lib_save_LIBS
55188: fi
1.1.1.3 ! misho 55189: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5
! 55190: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; }
! 55191: if test $ac_cv_lib_gd_gdImageCreateFromJpeg = yes; then
1.1 misho 55192:
55193: LDFLAGS=$save_old_LDFLAGS
55194: ext_shared=$save_ext_shared
55195:
1.1.1.3 ! misho 55196: cat >>confdefs.h <<\_ACEOF
! 55197: #define HAVE_GD_JPG 1
! 55198: _ACEOF
1.1 misho 55199:
55200:
55201: else
55202:
55203: LDFLAGS=$save_old_LDFLAGS
55204: ext_shared=$save_ext_shared
55205: unset ac_cv_lib_gd_gdImageCreateFromJpeg
55206:
55207:
55208: fi
55209:
55210:
55211: save_old_LDFLAGS=$LDFLAGS
55212: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55213:
55214: save_ext_shared=$ext_shared
55215: ext_shared=yes
55216:
55217: for ac_i in $ac_stuff; do
55218: case $ac_i in
55219: -pthread)
55220: if test "$ext_shared" = "yes"; then
55221: LDFLAGS="$LDFLAGS -pthread"
55222: else
55223:
55224:
55225: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55226:
55227: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55228: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55229: eval "EXTRA_LDFLAGS$unique=set"
55230: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55231: fi
55232:
55233: fi
55234: ;;
55235: -l*)
55236: ac_ii=`echo $ac_i|cut -c 3-`
55237:
55238:
55239: case $ac_ii in
55240: c|c_r|pthread*) ;;
55241: *)
55242: if test "$ext_shared" = "yes"; then
55243: LDFLAGS="$LDFLAGS -l$ac_ii"
55244: else
55245:
55246:
55247: case $ac_ii in
55248: c|c_r|pthread*) ;;
55249: *)
55250: LIBS="$LIBS -l$ac_ii"
55251: ;;
55252: esac
55253:
55254:
55255: fi
55256: ;;
55257: esac
55258:
55259:
55260: ;;
55261: -L*)
55262: ac_ii=`echo $ac_i|cut -c 3-`
55263:
55264: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55265:
55266: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55267: ai_p=$ac_ii
55268: else
55269:
55270: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55271:
55272: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55273: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55274: fi
55275:
55276:
55277: if test "$ext_shared" = "yes"; then
55278: LDFLAGS="-L$ai_p $LDFLAGS"
55279: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55280: else
55281:
55282:
55283:
55284: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55285:
55286: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55287: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55288: eval "LIBPATH$unique=set"
55289:
55290: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55291: LDFLAGS="$LDFLAGS -L$ai_p"
55292: PHP_RPATHS="$PHP_RPATHS $ai_p"
55293:
55294: fi
55295:
55296:
55297: fi
55298:
55299: fi
55300:
55301: ;;
55302: esac
55303: done
55304:
1.1.1.3 ! misho 55305: { echo "$as_me:$LINENO: checking for gdImageCreateFromXpm in -lgd" >&5
! 55306: echo $ECHO_N "checking for gdImageCreateFromXpm in -lgd... $ECHO_C" >&6; }
! 55307: if test "${ac_cv_lib_gd_gdImageCreateFromXpm+set}" = set; then
! 55308: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 55309: else
55310: ac_check_lib_save_LIBS=$LIBS
55311: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 55312: cat >conftest.$ac_ext <<_ACEOF
! 55313: /* confdefs.h. */
! 55314: _ACEOF
! 55315: cat confdefs.h >>conftest.$ac_ext
! 55316: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 55317: /* end confdefs.h. */
55318:
55319: /* Override any GCC internal prototype to avoid an error.
55320: Use char because int might match the return type of a GCC
55321: builtin and then its argument prototype would still apply. */
55322: #ifdef __cplusplus
55323: extern "C"
55324: #endif
55325: char gdImageCreateFromXpm ();
55326: int
55327: main ()
55328: {
55329: return gdImageCreateFromXpm ();
55330: ;
55331: return 0;
55332: }
55333: _ACEOF
1.1.1.3 ! misho 55334: rm -f conftest.$ac_objext conftest$ac_exeext
! 55335: if { (ac_try="$ac_link"
! 55336: case "(($ac_try" in
! 55337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 55338: *) ac_try_echo=$ac_try;;
! 55339: esac
! 55340: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 55341: (eval "$ac_link") 2>conftest.er1
! 55342: ac_status=$?
! 55343: grep -v '^ *+' conftest.er1 >conftest.err
! 55344: rm -f conftest.er1
! 55345: cat conftest.err >&5
! 55346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 55347: (exit $ac_status); } && {
! 55348: test -z "$ac_c_werror_flag" ||
! 55349: test ! -s conftest.err
! 55350: } && test -s conftest$ac_exeext &&
! 55351: $as_test_x conftest$ac_exeext; then
! 55352: ac_cv_lib_gd_gdImageCreateFromXpm=yes
! 55353: else
! 55354: echo "$as_me: failed program was:" >&5
! 55355: sed 's/^/| /' conftest.$ac_ext >&5
! 55356:
! 55357: ac_cv_lib_gd_gdImageCreateFromXpm=no
! 55358: fi
! 55359:
! 55360: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 55361: conftest$ac_exeext conftest.$ac_ext
! 55362: LIBS=$ac_check_lib_save_LIBS
! 55363: fi
! 55364: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5
! 55365: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; }
! 55366: if test $ac_cv_lib_gd_gdImageCreateFromXpm = yes; then
! 55367:
! 55368: LDFLAGS=$save_old_LDFLAGS
! 55369: ext_shared=$save_ext_shared
! 55370:
! 55371: cat >>confdefs.h <<\_ACEOF
! 55372: #define HAVE_GD_XPM 1
! 55373: _ACEOF
! 55374:
! 55375:
! 55376: else
! 55377:
! 55378: LDFLAGS=$save_old_LDFLAGS
! 55379: ext_shared=$save_ext_shared
! 55380: unset ac_cv_lib_gd_gdImageCreateFromXpm
! 55381:
! 55382:
! 55383: fi
! 55384:
! 55385:
! 55386: save_old_LDFLAGS=$LDFLAGS
! 55387: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
! 55388:
! 55389: save_ext_shared=$ext_shared
! 55390: ext_shared=yes
! 55391:
! 55392: for ac_i in $ac_stuff; do
! 55393: case $ac_i in
! 55394: -pthread)
! 55395: if test "$ext_shared" = "yes"; then
! 55396: LDFLAGS="$LDFLAGS -pthread"
! 55397: else
! 55398:
! 55399:
! 55400: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
! 55401:
! 55402: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
! 55403: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 55404: eval "EXTRA_LDFLAGS$unique=set"
! 55405: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
! 55406: fi
! 55407:
! 55408: fi
! 55409: ;;
! 55410: -l*)
! 55411: ac_ii=`echo $ac_i|cut -c 3-`
! 55412:
! 55413:
! 55414: case $ac_ii in
! 55415: c|c_r|pthread*) ;;
! 55416: *)
! 55417: if test "$ext_shared" = "yes"; then
! 55418: LDFLAGS="$LDFLAGS -l$ac_ii"
! 55419: else
! 55420:
! 55421:
! 55422: case $ac_ii in
! 55423: c|c_r|pthread*) ;;
! 55424: *)
! 55425: LIBS="$LIBS -l$ac_ii"
! 55426: ;;
! 55427: esac
! 55428:
! 55429:
! 55430: fi
! 55431: ;;
! 55432: esac
! 55433:
! 55434:
! 55435: ;;
! 55436: -L*)
! 55437: ac_ii=`echo $ac_i|cut -c 3-`
! 55438:
! 55439: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
! 55440:
! 55441: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
! 55442: ai_p=$ac_ii
! 55443: else
! 55444:
! 55445: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
! 55446:
! 55447: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
! 55448: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
! 55449: fi
! 55450:
! 55451:
! 55452: if test "$ext_shared" = "yes"; then
! 55453: LDFLAGS="-L$ai_p $LDFLAGS"
! 55454: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
! 55455: else
! 55456:
! 55457:
! 55458:
! 55459: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
! 55460:
! 55461: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
! 55462: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 55463: eval "LIBPATH$unique=set"
! 55464:
! 55465: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
! 55466: LDFLAGS="$LDFLAGS -L$ai_p"
! 55467: PHP_RPATHS="$PHP_RPATHS $ai_p"
! 55468:
! 55469: fi
! 55470:
! 55471:
! 55472: fi
! 55473:
! 55474: fi
! 55475:
! 55476: ;;
! 55477: esac
! 55478: done
! 55479:
! 55480: { echo "$as_me:$LINENO: checking for gdImageCreateFromGd2 in -lgd" >&5
! 55481: echo $ECHO_N "checking for gdImageCreateFromGd2 in -lgd... $ECHO_C" >&6; }
! 55482: if test "${ac_cv_lib_gd_gdImageCreateFromGd2+set}" = set; then
! 55483: echo $ECHO_N "(cached) $ECHO_C" >&6
! 55484: else
! 55485: ac_check_lib_save_LIBS=$LIBS
! 55486: LIBS="-lgd $LIBS"
! 55487: cat >conftest.$ac_ext <<_ACEOF
! 55488: /* confdefs.h. */
! 55489: _ACEOF
! 55490: cat confdefs.h >>conftest.$ac_ext
! 55491: cat >>conftest.$ac_ext <<_ACEOF
! 55492: /* end confdefs.h. */
! 55493:
! 55494: /* Override any GCC internal prototype to avoid an error.
! 55495: Use char because int might match the return type of a GCC
! 55496: builtin and then its argument prototype would still apply. */
! 55497: #ifdef __cplusplus
! 55498: extern "C"
! 55499: #endif
! 55500: char gdImageCreateFromGd2 ();
! 55501: int
! 55502: main ()
! 55503: {
! 55504: return gdImageCreateFromGd2 ();
! 55505: ;
! 55506: return 0;
! 55507: }
! 55508: _ACEOF
! 55509: rm -f conftest.$ac_objext conftest$ac_exeext
! 55510: if { (ac_try="$ac_link"
! 55511: case "(($ac_try" in
! 55512: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 55513: *) ac_try_echo=$ac_try;;
! 55514: esac
! 55515: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 55516: (eval "$ac_link") 2>conftest.er1
! 55517: ac_status=$?
! 55518: grep -v '^ *+' conftest.er1 >conftest.err
! 55519: rm -f conftest.er1
! 55520: cat conftest.err >&5
! 55521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 55522: (exit $ac_status); } && {
! 55523: test -z "$ac_c_werror_flag" ||
! 55524: test ! -s conftest.err
! 55525: } && test -s conftest$ac_exeext &&
! 55526: $as_test_x conftest$ac_exeext; then
! 55527: ac_cv_lib_gd_gdImageCreateFromGd2=yes
! 55528: else
! 55529: echo "$as_me: failed program was:" >&5
! 55530: sed 's/^/| /' conftest.$ac_ext >&5
! 55531:
! 55532: ac_cv_lib_gd_gdImageCreateFromGd2=no
! 55533: fi
! 55534:
! 55535: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 55536: conftest$ac_exeext conftest.$ac_ext
! 55537: LIBS=$ac_check_lib_save_LIBS
! 55538: fi
! 55539: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5
! 55540: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; }
! 55541: if test $ac_cv_lib_gd_gdImageCreateFromGd2 = yes; then
! 55542:
! 55543: LDFLAGS=$save_old_LDFLAGS
! 55544: ext_shared=$save_ext_shared
! 55545:
! 55546: cat >>confdefs.h <<\_ACEOF
! 55547: #define HAVE_GD_GD2 1
! 55548: _ACEOF
! 55549:
! 55550:
! 55551: else
! 55552:
! 55553: LDFLAGS=$save_old_LDFLAGS
! 55554: ext_shared=$save_ext_shared
! 55555: unset ac_cv_lib_gd_gdImageCreateFromGd2
! 55556:
! 55557:
! 55558: fi
! 55559:
! 55560:
! 55561: save_old_LDFLAGS=$LDFLAGS
! 55562: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
! 55563:
! 55564: save_ext_shared=$ext_shared
! 55565: ext_shared=yes
! 55566:
! 55567: for ac_i in $ac_stuff; do
! 55568: case $ac_i in
! 55569: -pthread)
! 55570: if test "$ext_shared" = "yes"; then
! 55571: LDFLAGS="$LDFLAGS -pthread"
! 55572: else
! 55573:
! 55574:
! 55575: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
! 55576:
! 55577: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
! 55578: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 55579: eval "EXTRA_LDFLAGS$unique=set"
! 55580: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
! 55581: fi
! 55582:
! 55583: fi
! 55584: ;;
! 55585: -l*)
! 55586: ac_ii=`echo $ac_i|cut -c 3-`
! 55587:
! 55588:
! 55589: case $ac_ii in
! 55590: c|c_r|pthread*) ;;
! 55591: *)
! 55592: if test "$ext_shared" = "yes"; then
! 55593: LDFLAGS="$LDFLAGS -l$ac_ii"
! 55594: else
! 55595:
! 55596:
! 55597: case $ac_ii in
! 55598: c|c_r|pthread*) ;;
! 55599: *)
! 55600: LIBS="$LIBS -l$ac_ii"
! 55601: ;;
! 55602: esac
! 55603:
! 55604:
! 55605: fi
! 55606: ;;
! 55607: esac
! 55608:
! 55609:
! 55610: ;;
! 55611: -L*)
! 55612: ac_ii=`echo $ac_i|cut -c 3-`
! 55613:
! 55614: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
! 55615:
! 55616: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
! 55617: ai_p=$ac_ii
! 55618: else
! 55619:
! 55620: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
! 55621:
! 55622: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
! 55623: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
! 55624: fi
! 55625:
! 55626:
! 55627: if test "$ext_shared" = "yes"; then
! 55628: LDFLAGS="-L$ai_p $LDFLAGS"
! 55629: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
! 55630: else
! 55631:
! 55632:
! 55633:
! 55634: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
! 55635:
! 55636: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
! 55637: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 55638: eval "LIBPATH$unique=set"
! 55639:
! 55640: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
! 55641: LDFLAGS="$LDFLAGS -L$ai_p"
! 55642: PHP_RPATHS="$PHP_RPATHS $ai_p"
! 55643:
! 55644: fi
! 55645:
! 55646:
! 55647: fi
! 55648:
! 55649: fi
! 55650:
! 55651: ;;
! 55652: esac
! 55653: done
! 55654:
! 55655: { echo "$as_me:$LINENO: checking for gdImageCreateTrueColor in -lgd" >&5
! 55656: echo $ECHO_N "checking for gdImageCreateTrueColor in -lgd... $ECHO_C" >&6; }
! 55657: if test "${ac_cv_lib_gd_gdImageCreateTrueColor+set}" = set; then
! 55658: echo $ECHO_N "(cached) $ECHO_C" >&6
! 55659: else
! 55660: ac_check_lib_save_LIBS=$LIBS
! 55661: LIBS="-lgd $LIBS"
! 55662: cat >conftest.$ac_ext <<_ACEOF
! 55663: /* confdefs.h. */
! 55664: _ACEOF
! 55665: cat confdefs.h >>conftest.$ac_ext
! 55666: cat >>conftest.$ac_ext <<_ACEOF
! 55667: /* end confdefs.h. */
! 55668:
! 55669: /* Override any GCC internal prototype to avoid an error.
! 55670: Use char because int might match the return type of a GCC
! 55671: builtin and then its argument prototype would still apply. */
! 55672: #ifdef __cplusplus
! 55673: extern "C"
! 55674: #endif
! 55675: char gdImageCreateTrueColor ();
! 55676: int
! 55677: main ()
! 55678: {
! 55679: return gdImageCreateTrueColor ();
! 55680: ;
! 55681: return 0;
! 55682: }
! 55683: _ACEOF
! 55684: rm -f conftest.$ac_objext conftest$ac_exeext
! 55685: if { (ac_try="$ac_link"
! 55686: case "(($ac_try" in
! 55687: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 55688: *) ac_try_echo=$ac_try;;
! 55689: esac
! 55690: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 55691: (eval "$ac_link") 2>conftest.er1
! 55692: ac_status=$?
! 55693: grep -v '^ *+' conftest.er1 >conftest.err
! 55694: rm -f conftest.er1
! 55695: cat conftest.err >&5
! 55696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 55697: (exit $ac_status); } && {
! 55698: test -z "$ac_c_werror_flag" ||
! 55699: test ! -s conftest.err
! 55700: } && test -s conftest$ac_exeext &&
! 55701: $as_test_x conftest$ac_exeext; then
! 55702: ac_cv_lib_gd_gdImageCreateTrueColor=yes
1.1 misho 55703: else
1.1.1.3 ! misho 55704: echo "$as_me: failed program was:" >&5
! 55705: sed 's/^/| /' conftest.$ac_ext >&5
! 55706:
! 55707: ac_cv_lib_gd_gdImageCreateTrueColor=no
1.1 misho 55708: fi
1.1.1.3 ! misho 55709:
! 55710: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 55711: conftest$ac_exeext conftest.$ac_ext
1.1 misho 55712: LIBS=$ac_check_lib_save_LIBS
55713: fi
1.1.1.3 ! misho 55714: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
! 55715: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
! 55716: if test $ac_cv_lib_gd_gdImageCreateTrueColor = yes; then
1.1 misho 55717:
55718: LDFLAGS=$save_old_LDFLAGS
55719: ext_shared=$save_ext_shared
55720:
1.1.1.3 ! misho 55721: cat >>confdefs.h <<\_ACEOF
! 55722: #define HAVE_LIBGD20 1
! 55723: _ACEOF
1.1 misho 55724:
55725:
55726: else
55727:
55728: LDFLAGS=$save_old_LDFLAGS
55729: ext_shared=$save_ext_shared
1.1.1.3 ! misho 55730: unset ac_cv_lib_gd_gdImageCreateTrueColor
1.1 misho 55731:
55732:
55733: fi
55734:
55735:
55736: save_old_LDFLAGS=$LDFLAGS
55737: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55738:
55739: save_ext_shared=$ext_shared
55740: ext_shared=yes
55741:
55742: for ac_i in $ac_stuff; do
55743: case $ac_i in
55744: -pthread)
55745: if test "$ext_shared" = "yes"; then
55746: LDFLAGS="$LDFLAGS -pthread"
55747: else
55748:
55749:
55750: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55751:
55752: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55753: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55754: eval "EXTRA_LDFLAGS$unique=set"
55755: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55756: fi
55757:
55758: fi
55759: ;;
55760: -l*)
55761: ac_ii=`echo $ac_i|cut -c 3-`
55762:
55763:
55764: case $ac_ii in
55765: c|c_r|pthread*) ;;
55766: *)
55767: if test "$ext_shared" = "yes"; then
55768: LDFLAGS="$LDFLAGS -l$ac_ii"
55769: else
55770:
55771:
55772: case $ac_ii in
55773: c|c_r|pthread*) ;;
55774: *)
55775: LIBS="$LIBS -l$ac_ii"
55776: ;;
55777: esac
55778:
55779:
55780: fi
55781: ;;
55782: esac
55783:
55784:
55785: ;;
55786: -L*)
55787: ac_ii=`echo $ac_i|cut -c 3-`
55788:
55789: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55790:
55791: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55792: ai_p=$ac_ii
55793: else
55794:
55795: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55796:
55797: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55798: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55799: fi
55800:
55801:
55802: if test "$ext_shared" = "yes"; then
55803: LDFLAGS="-L$ai_p $LDFLAGS"
55804: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55805: else
55806:
55807:
55808:
55809: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55810:
55811: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55812: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55813: eval "LIBPATH$unique=set"
55814:
55815: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55816: LDFLAGS="$LDFLAGS -L$ai_p"
55817: PHP_RPATHS="$PHP_RPATHS $ai_p"
55818:
55819: fi
55820:
55821:
55822: fi
55823:
55824: fi
55825:
55826: ;;
55827: esac
55828: done
55829:
1.1.1.3 ! misho 55830: { echo "$as_me:$LINENO: checking for gdImageSetTile in -lgd" >&5
! 55831: echo $ECHO_N "checking for gdImageSetTile in -lgd... $ECHO_C" >&6; }
! 55832: if test "${ac_cv_lib_gd_gdImageSetTile+set}" = set; then
! 55833: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 55834: else
55835: ac_check_lib_save_LIBS=$LIBS
55836: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 55837: cat >conftest.$ac_ext <<_ACEOF
! 55838: /* confdefs.h. */
! 55839: _ACEOF
! 55840: cat confdefs.h >>conftest.$ac_ext
! 55841: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 55842: /* end confdefs.h. */
55843:
55844: /* Override any GCC internal prototype to avoid an error.
55845: Use char because int might match the return type of a GCC
55846: builtin and then its argument prototype would still apply. */
55847: #ifdef __cplusplus
55848: extern "C"
55849: #endif
1.1.1.3 ! misho 55850: char gdImageSetTile ();
1.1 misho 55851: int
55852: main ()
55853: {
1.1.1.3 ! misho 55854: return gdImageSetTile ();
1.1 misho 55855: ;
55856: return 0;
55857: }
55858: _ACEOF
1.1.1.3 ! misho 55859: rm -f conftest.$ac_objext conftest$ac_exeext
! 55860: if { (ac_try="$ac_link"
! 55861: case "(($ac_try" in
! 55862: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 55863: *) ac_try_echo=$ac_try;;
! 55864: esac
! 55865: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 55866: (eval "$ac_link") 2>conftest.er1
! 55867: ac_status=$?
! 55868: grep -v '^ *+' conftest.er1 >conftest.err
! 55869: rm -f conftest.er1
! 55870: cat conftest.err >&5
! 55871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 55872: (exit $ac_status); } && {
! 55873: test -z "$ac_c_werror_flag" ||
! 55874: test ! -s conftest.err
! 55875: } && test -s conftest$ac_exeext &&
! 55876: $as_test_x conftest$ac_exeext; then
! 55877: ac_cv_lib_gd_gdImageSetTile=yes
1.1 misho 55878: else
1.1.1.3 ! misho 55879: echo "$as_me: failed program was:" >&5
! 55880: sed 's/^/| /' conftest.$ac_ext >&5
! 55881:
! 55882: ac_cv_lib_gd_gdImageSetTile=no
1.1 misho 55883: fi
1.1.1.3 ! misho 55884:
! 55885: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 55886: conftest$ac_exeext conftest.$ac_ext
1.1 misho 55887: LIBS=$ac_check_lib_save_LIBS
55888: fi
1.1.1.3 ! misho 55889: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageSetTile" >&5
! 55890: echo "${ECHO_T}$ac_cv_lib_gd_gdImageSetTile" >&6; }
! 55891: if test $ac_cv_lib_gd_gdImageSetTile = yes; then
1.1 misho 55892:
55893: LDFLAGS=$save_old_LDFLAGS
55894: ext_shared=$save_ext_shared
55895:
1.1.1.3 ! misho 55896: cat >>confdefs.h <<\_ACEOF
! 55897: #define HAVE_GD_IMAGESETTILE 1
! 55898: _ACEOF
1.1 misho 55899:
55900:
55901: else
55902:
55903: LDFLAGS=$save_old_LDFLAGS
55904: ext_shared=$save_ext_shared
1.1.1.3 ! misho 55905: unset ac_cv_lib_gd_gdImageSetTile
1.1 misho 55906:
55907:
55908: fi
55909:
55910:
55911: save_old_LDFLAGS=$LDFLAGS
55912: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55913:
55914: save_ext_shared=$ext_shared
55915: ext_shared=yes
55916:
55917: for ac_i in $ac_stuff; do
55918: case $ac_i in
55919: -pthread)
55920: if test "$ext_shared" = "yes"; then
55921: LDFLAGS="$LDFLAGS -pthread"
55922: else
55923:
55924:
55925: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55926:
55927: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55928: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55929: eval "EXTRA_LDFLAGS$unique=set"
55930: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55931: fi
55932:
55933: fi
55934: ;;
55935: -l*)
55936: ac_ii=`echo $ac_i|cut -c 3-`
55937:
55938:
55939: case $ac_ii in
55940: c|c_r|pthread*) ;;
55941: *)
55942: if test "$ext_shared" = "yes"; then
55943: LDFLAGS="$LDFLAGS -l$ac_ii"
55944: else
55945:
55946:
55947: case $ac_ii in
55948: c|c_r|pthread*) ;;
55949: *)
55950: LIBS="$LIBS -l$ac_ii"
55951: ;;
55952: esac
55953:
55954:
55955: fi
55956: ;;
55957: esac
55958:
55959:
55960: ;;
55961: -L*)
55962: ac_ii=`echo $ac_i|cut -c 3-`
55963:
55964: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55965:
55966: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55967: ai_p=$ac_ii
55968: else
55969:
55970: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55971:
55972: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55973: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55974: fi
55975:
55976:
55977: if test "$ext_shared" = "yes"; then
55978: LDFLAGS="-L$ai_p $LDFLAGS"
55979: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55980: else
55981:
55982:
55983:
55984: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55985:
55986: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55987: if test -n "$unique" && test "`eval $cmd`" = "" ; then
55988: eval "LIBPATH$unique=set"
55989:
55990: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55991: LDFLAGS="$LDFLAGS -L$ai_p"
55992: PHP_RPATHS="$PHP_RPATHS $ai_p"
55993:
55994: fi
55995:
55996:
55997: fi
55998:
55999: fi
56000:
56001: ;;
56002: esac
56003: done
56004:
1.1.1.3 ! misho 56005: { echo "$as_me:$LINENO: checking for gdImageEllipse in -lgd" >&5
! 56006: echo $ECHO_N "checking for gdImageEllipse in -lgd... $ECHO_C" >&6; }
! 56007: if test "${ac_cv_lib_gd_gdImageEllipse+set}" = set; then
! 56008: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 56009: else
56010: ac_check_lib_save_LIBS=$LIBS
56011: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 56012: cat >conftest.$ac_ext <<_ACEOF
! 56013: /* confdefs.h. */
! 56014: _ACEOF
! 56015: cat confdefs.h >>conftest.$ac_ext
! 56016: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 56017: /* end confdefs.h. */
56018:
56019: /* Override any GCC internal prototype to avoid an error.
56020: Use char because int might match the return type of a GCC
56021: builtin and then its argument prototype would still apply. */
56022: #ifdef __cplusplus
56023: extern "C"
56024: #endif
1.1.1.3 ! misho 56025: char gdImageEllipse ();
1.1 misho 56026: int
56027: main ()
56028: {
1.1.1.3 ! misho 56029: return gdImageEllipse ();
1.1 misho 56030: ;
56031: return 0;
56032: }
56033: _ACEOF
1.1.1.3 ! misho 56034: rm -f conftest.$ac_objext conftest$ac_exeext
! 56035: if { (ac_try="$ac_link"
! 56036: case "(($ac_try" in
! 56037: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 56038: *) ac_try_echo=$ac_try;;
! 56039: esac
! 56040: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 56041: (eval "$ac_link") 2>conftest.er1
! 56042: ac_status=$?
! 56043: grep -v '^ *+' conftest.er1 >conftest.err
! 56044: rm -f conftest.er1
! 56045: cat conftest.err >&5
! 56046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 56047: (exit $ac_status); } && {
! 56048: test -z "$ac_c_werror_flag" ||
! 56049: test ! -s conftest.err
! 56050: } && test -s conftest$ac_exeext &&
! 56051: $as_test_x conftest$ac_exeext; then
! 56052: ac_cv_lib_gd_gdImageEllipse=yes
1.1 misho 56053: else
1.1.1.3 ! misho 56054: echo "$as_me: failed program was:" >&5
! 56055: sed 's/^/| /' conftest.$ac_ext >&5
! 56056:
! 56057: ac_cv_lib_gd_gdImageEllipse=no
1.1 misho 56058: fi
1.1.1.3 ! misho 56059:
! 56060: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 56061: conftest$ac_exeext conftest.$ac_ext
1.1 misho 56062: LIBS=$ac_check_lib_save_LIBS
56063: fi
1.1.1.3 ! misho 56064: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageEllipse" >&5
! 56065: echo "${ECHO_T}$ac_cv_lib_gd_gdImageEllipse" >&6; }
! 56066: if test $ac_cv_lib_gd_gdImageEllipse = yes; then
1.1 misho 56067:
56068: LDFLAGS=$save_old_LDFLAGS
56069: ext_shared=$save_ext_shared
56070:
1.1.1.3 ! misho 56071: cat >>confdefs.h <<\_ACEOF
! 56072: #define HAVE_GD_IMAGEELLIPSE 1
! 56073: _ACEOF
1.1 misho 56074:
56075:
56076: else
56077:
56078: LDFLAGS=$save_old_LDFLAGS
56079: ext_shared=$save_ext_shared
1.1.1.3 ! misho 56080: unset ac_cv_lib_gd_gdImageEllipse
1.1 misho 56081:
56082:
56083: fi
56084:
56085:
56086: save_old_LDFLAGS=$LDFLAGS
56087: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56088:
56089: save_ext_shared=$ext_shared
56090: ext_shared=yes
56091:
56092: for ac_i in $ac_stuff; do
56093: case $ac_i in
56094: -pthread)
56095: if test "$ext_shared" = "yes"; then
56096: LDFLAGS="$LDFLAGS -pthread"
56097: else
56098:
56099:
56100: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56101:
56102: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56103: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56104: eval "EXTRA_LDFLAGS$unique=set"
56105: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56106: fi
56107:
56108: fi
56109: ;;
56110: -l*)
56111: ac_ii=`echo $ac_i|cut -c 3-`
56112:
56113:
56114: case $ac_ii in
56115: c|c_r|pthread*) ;;
56116: *)
56117: if test "$ext_shared" = "yes"; then
56118: LDFLAGS="$LDFLAGS -l$ac_ii"
56119: else
56120:
56121:
56122: case $ac_ii in
56123: c|c_r|pthread*) ;;
56124: *)
56125: LIBS="$LIBS -l$ac_ii"
56126: ;;
56127: esac
56128:
56129:
56130: fi
56131: ;;
56132: esac
56133:
56134:
56135: ;;
56136: -L*)
56137: ac_ii=`echo $ac_i|cut -c 3-`
56138:
56139: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56140:
56141: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56142: ai_p=$ac_ii
56143: else
56144:
56145: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56146:
56147: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56148: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56149: fi
56150:
56151:
56152: if test "$ext_shared" = "yes"; then
56153: LDFLAGS="-L$ai_p $LDFLAGS"
56154: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56155: else
56156:
56157:
56158:
56159: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56160:
56161: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56162: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56163: eval "LIBPATH$unique=set"
56164:
56165: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56166: LDFLAGS="$LDFLAGS -L$ai_p"
56167: PHP_RPATHS="$PHP_RPATHS $ai_p"
56168:
56169: fi
56170:
56171:
56172: fi
56173:
56174: fi
56175:
56176: ;;
56177: esac
56178: done
56179:
1.1.1.3 ! misho 56180: { echo "$as_me:$LINENO: checking for gdImageSetBrush in -lgd" >&5
! 56181: echo $ECHO_N "checking for gdImageSetBrush in -lgd... $ECHO_C" >&6; }
! 56182: if test "${ac_cv_lib_gd_gdImageSetBrush+set}" = set; then
! 56183: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 56184: else
56185: ac_check_lib_save_LIBS=$LIBS
56186: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 56187: cat >conftest.$ac_ext <<_ACEOF
! 56188: /* confdefs.h. */
! 56189: _ACEOF
! 56190: cat confdefs.h >>conftest.$ac_ext
! 56191: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 56192: /* end confdefs.h. */
56193:
56194: /* Override any GCC internal prototype to avoid an error.
56195: Use char because int might match the return type of a GCC
56196: builtin and then its argument prototype would still apply. */
56197: #ifdef __cplusplus
56198: extern "C"
56199: #endif
1.1.1.3 ! misho 56200: char gdImageSetBrush ();
1.1 misho 56201: int
56202: main ()
56203: {
1.1.1.3 ! misho 56204: return gdImageSetBrush ();
1.1 misho 56205: ;
56206: return 0;
56207: }
56208: _ACEOF
1.1.1.3 ! misho 56209: rm -f conftest.$ac_objext conftest$ac_exeext
! 56210: if { (ac_try="$ac_link"
! 56211: case "(($ac_try" in
! 56212: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 56213: *) ac_try_echo=$ac_try;;
! 56214: esac
! 56215: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 56216: (eval "$ac_link") 2>conftest.er1
! 56217: ac_status=$?
! 56218: grep -v '^ *+' conftest.er1 >conftest.err
! 56219: rm -f conftest.er1
! 56220: cat conftest.err >&5
! 56221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 56222: (exit $ac_status); } && {
! 56223: test -z "$ac_c_werror_flag" ||
! 56224: test ! -s conftest.err
! 56225: } && test -s conftest$ac_exeext &&
! 56226: $as_test_x conftest$ac_exeext; then
! 56227: ac_cv_lib_gd_gdImageSetBrush=yes
1.1 misho 56228: else
1.1.1.3 ! misho 56229: echo "$as_me: failed program was:" >&5
! 56230: sed 's/^/| /' conftest.$ac_ext >&5
! 56231:
! 56232: ac_cv_lib_gd_gdImageSetBrush=no
1.1 misho 56233: fi
1.1.1.3 ! misho 56234:
! 56235: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 56236: conftest$ac_exeext conftest.$ac_ext
1.1 misho 56237: LIBS=$ac_check_lib_save_LIBS
56238: fi
1.1.1.3 ! misho 56239: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageSetBrush" >&5
! 56240: echo "${ECHO_T}$ac_cv_lib_gd_gdImageSetBrush" >&6; }
! 56241: if test $ac_cv_lib_gd_gdImageSetBrush = yes; then
1.1 misho 56242:
56243: LDFLAGS=$save_old_LDFLAGS
56244: ext_shared=$save_ext_shared
56245:
1.1.1.3 ! misho 56246: cat >>confdefs.h <<\_ACEOF
! 56247: #define HAVE_GD_IMAGESETBRUSH 1
! 56248: _ACEOF
1.1 misho 56249:
56250:
56251: else
56252:
56253: LDFLAGS=$save_old_LDFLAGS
56254: ext_shared=$save_ext_shared
1.1.1.3 ! misho 56255: unset ac_cv_lib_gd_gdImageSetBrush
1.1 misho 56256:
56257:
56258: fi
56259:
56260:
56261: save_old_LDFLAGS=$LDFLAGS
56262: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56263:
56264: save_ext_shared=$ext_shared
56265: ext_shared=yes
56266:
56267: for ac_i in $ac_stuff; do
56268: case $ac_i in
56269: -pthread)
56270: if test "$ext_shared" = "yes"; then
56271: LDFLAGS="$LDFLAGS -pthread"
56272: else
56273:
56274:
56275: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56276:
56277: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56278: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56279: eval "EXTRA_LDFLAGS$unique=set"
56280: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56281: fi
56282:
56283: fi
56284: ;;
56285: -l*)
56286: ac_ii=`echo $ac_i|cut -c 3-`
56287:
56288:
56289: case $ac_ii in
56290: c|c_r|pthread*) ;;
56291: *)
56292: if test "$ext_shared" = "yes"; then
56293: LDFLAGS="$LDFLAGS -l$ac_ii"
56294: else
56295:
56296:
56297: case $ac_ii in
56298: c|c_r|pthread*) ;;
56299: *)
56300: LIBS="$LIBS -l$ac_ii"
56301: ;;
56302: esac
56303:
56304:
56305: fi
56306: ;;
56307: esac
56308:
56309:
56310: ;;
56311: -L*)
56312: ac_ii=`echo $ac_i|cut -c 3-`
56313:
56314: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56315:
56316: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56317: ai_p=$ac_ii
56318: else
56319:
56320: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56321:
56322: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56323: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56324: fi
56325:
56326:
56327: if test "$ext_shared" = "yes"; then
56328: LDFLAGS="-L$ai_p $LDFLAGS"
56329: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56330: else
56331:
56332:
56333:
56334: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56335:
56336: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56337: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56338: eval "LIBPATH$unique=set"
56339:
56340: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56341: LDFLAGS="$LDFLAGS -L$ai_p"
56342: PHP_RPATHS="$PHP_RPATHS $ai_p"
56343:
56344: fi
56345:
56346:
56347: fi
56348:
56349: fi
56350:
56351: ;;
56352: esac
56353: done
56354:
1.1.1.3 ! misho 56355: { echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
! 56356: echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6; }
! 56357: if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
! 56358: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 56359: else
56360: ac_check_lib_save_LIBS=$LIBS
56361: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 56362: cat >conftest.$ac_ext <<_ACEOF
! 56363: /* confdefs.h. */
! 56364: _ACEOF
! 56365: cat confdefs.h >>conftest.$ac_ext
! 56366: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 56367: /* end confdefs.h. */
56368:
56369: /* Override any GCC internal prototype to avoid an error.
56370: Use char because int might match the return type of a GCC
56371: builtin and then its argument prototype would still apply. */
56372: #ifdef __cplusplus
56373: extern "C"
56374: #endif
1.1.1.3 ! misho 56375: char gdImageStringTTF ();
1.1 misho 56376: int
56377: main ()
56378: {
1.1.1.3 ! misho 56379: return gdImageStringTTF ();
1.1 misho 56380: ;
56381: return 0;
56382: }
56383: _ACEOF
1.1.1.3 ! misho 56384: rm -f conftest.$ac_objext conftest$ac_exeext
! 56385: if { (ac_try="$ac_link"
! 56386: case "(($ac_try" in
! 56387: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 56388: *) ac_try_echo=$ac_try;;
! 56389: esac
! 56390: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 56391: (eval "$ac_link") 2>conftest.er1
! 56392: ac_status=$?
! 56393: grep -v '^ *+' conftest.er1 >conftest.err
! 56394: rm -f conftest.er1
! 56395: cat conftest.err >&5
! 56396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 56397: (exit $ac_status); } && {
! 56398: test -z "$ac_c_werror_flag" ||
! 56399: test ! -s conftest.err
! 56400: } && test -s conftest$ac_exeext &&
! 56401: $as_test_x conftest$ac_exeext; then
! 56402: ac_cv_lib_gd_gdImageStringTTF=yes
1.1 misho 56403: else
1.1.1.3 ! misho 56404: echo "$as_me: failed program was:" >&5
! 56405: sed 's/^/| /' conftest.$ac_ext >&5
! 56406:
! 56407: ac_cv_lib_gd_gdImageStringTTF=no
1.1 misho 56408: fi
1.1.1.3 ! misho 56409:
! 56410: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 56411: conftest$ac_exeext conftest.$ac_ext
1.1 misho 56412: LIBS=$ac_check_lib_save_LIBS
56413: fi
1.1.1.3 ! misho 56414: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
! 56415: echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6; }
! 56416: if test $ac_cv_lib_gd_gdImageStringTTF = yes; then
1.1 misho 56417:
56418: LDFLAGS=$save_old_LDFLAGS
56419: ext_shared=$save_ext_shared
56420:
1.1.1.3 ! misho 56421: cat >>confdefs.h <<\_ACEOF
! 56422: #define HAVE_GD_STRINGTTF 1
! 56423: _ACEOF
1.1 misho 56424:
56425:
56426: else
56427:
56428: LDFLAGS=$save_old_LDFLAGS
56429: ext_shared=$save_ext_shared
1.1.1.3 ! misho 56430: unset ac_cv_lib_gd_gdImageStringTTF
1.1 misho 56431:
56432:
56433: fi
56434:
56435:
56436: save_old_LDFLAGS=$LDFLAGS
56437: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56438:
56439: save_ext_shared=$ext_shared
56440: ext_shared=yes
56441:
56442: for ac_i in $ac_stuff; do
56443: case $ac_i in
56444: -pthread)
56445: if test "$ext_shared" = "yes"; then
56446: LDFLAGS="$LDFLAGS -pthread"
56447: else
56448:
56449:
56450: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56451:
56452: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56453: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56454: eval "EXTRA_LDFLAGS$unique=set"
56455: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56456: fi
56457:
56458: fi
56459: ;;
56460: -l*)
56461: ac_ii=`echo $ac_i|cut -c 3-`
56462:
56463:
56464: case $ac_ii in
56465: c|c_r|pthread*) ;;
56466: *)
56467: if test "$ext_shared" = "yes"; then
56468: LDFLAGS="$LDFLAGS -l$ac_ii"
56469: else
56470:
56471:
56472: case $ac_ii in
56473: c|c_r|pthread*) ;;
56474: *)
56475: LIBS="$LIBS -l$ac_ii"
56476: ;;
56477: esac
56478:
56479:
56480: fi
56481: ;;
56482: esac
56483:
56484:
56485: ;;
56486: -L*)
56487: ac_ii=`echo $ac_i|cut -c 3-`
56488:
56489: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56490:
56491: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56492: ai_p=$ac_ii
56493: else
56494:
56495: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56496:
56497: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56498: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56499: fi
56500:
56501:
56502: if test "$ext_shared" = "yes"; then
56503: LDFLAGS="-L$ai_p $LDFLAGS"
56504: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56505: else
56506:
56507:
56508:
56509: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56510:
56511: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56512: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56513: eval "LIBPATH$unique=set"
56514:
56515: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56516: LDFLAGS="$LDFLAGS -L$ai_p"
56517: PHP_RPATHS="$PHP_RPATHS $ai_p"
56518:
56519: fi
56520:
56521:
56522: fi
56523:
56524: fi
56525:
56526: ;;
56527: esac
56528: done
56529:
1.1.1.3 ! misho 56530: { echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
! 56531: echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6; }
! 56532: if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
! 56533: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 56534: else
56535: ac_check_lib_save_LIBS=$LIBS
56536: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 56537: cat >conftest.$ac_ext <<_ACEOF
! 56538: /* confdefs.h. */
! 56539: _ACEOF
! 56540: cat confdefs.h >>conftest.$ac_ext
! 56541: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 56542: /* end confdefs.h. */
56543:
56544: /* Override any GCC internal prototype to avoid an error.
56545: Use char because int might match the return type of a GCC
56546: builtin and then its argument prototype would still apply. */
56547: #ifdef __cplusplus
56548: extern "C"
56549: #endif
1.1.1.3 ! misho 56550: char gdImageStringFT ();
1.1 misho 56551: int
56552: main ()
56553: {
1.1.1.3 ! misho 56554: return gdImageStringFT ();
1.1 misho 56555: ;
56556: return 0;
56557: }
56558: _ACEOF
1.1.1.3 ! misho 56559: rm -f conftest.$ac_objext conftest$ac_exeext
! 56560: if { (ac_try="$ac_link"
! 56561: case "(($ac_try" in
! 56562: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 56563: *) ac_try_echo=$ac_try;;
! 56564: esac
! 56565: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 56566: (eval "$ac_link") 2>conftest.er1
! 56567: ac_status=$?
! 56568: grep -v '^ *+' conftest.er1 >conftest.err
! 56569: rm -f conftest.er1
! 56570: cat conftest.err >&5
! 56571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 56572: (exit $ac_status); } && {
! 56573: test -z "$ac_c_werror_flag" ||
! 56574: test ! -s conftest.err
! 56575: } && test -s conftest$ac_exeext &&
! 56576: $as_test_x conftest$ac_exeext; then
! 56577: ac_cv_lib_gd_gdImageStringFT=yes
1.1 misho 56578: else
1.1.1.3 ! misho 56579: echo "$as_me: failed program was:" >&5
! 56580: sed 's/^/| /' conftest.$ac_ext >&5
! 56581:
! 56582: ac_cv_lib_gd_gdImageStringFT=no
1.1 misho 56583: fi
1.1.1.3 ! misho 56584:
! 56585: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 56586: conftest$ac_exeext conftest.$ac_ext
1.1 misho 56587: LIBS=$ac_check_lib_save_LIBS
56588: fi
1.1.1.3 ! misho 56589: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
! 56590: echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6; }
! 56591: if test $ac_cv_lib_gd_gdImageStringFT = yes; then
1.1 misho 56592:
56593: LDFLAGS=$save_old_LDFLAGS
56594: ext_shared=$save_ext_shared
56595:
1.1.1.3 ! misho 56596: cat >>confdefs.h <<\_ACEOF
! 56597: #define HAVE_GD_STRINGFT 1
! 56598: _ACEOF
1.1 misho 56599:
56600:
56601: else
56602:
56603: LDFLAGS=$save_old_LDFLAGS
56604: ext_shared=$save_ext_shared
1.1.1.3 ! misho 56605: unset ac_cv_lib_gd_gdImageStringFT
1.1 misho 56606:
56607:
56608: fi
56609:
56610:
56611: save_old_LDFLAGS=$LDFLAGS
56612: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56613:
56614: save_ext_shared=$ext_shared
56615: ext_shared=yes
56616:
56617: for ac_i in $ac_stuff; do
56618: case $ac_i in
56619: -pthread)
56620: if test "$ext_shared" = "yes"; then
56621: LDFLAGS="$LDFLAGS -pthread"
56622: else
56623:
56624:
56625: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56626:
56627: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56628: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56629: eval "EXTRA_LDFLAGS$unique=set"
56630: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56631: fi
56632:
56633: fi
56634: ;;
56635: -l*)
56636: ac_ii=`echo $ac_i|cut -c 3-`
56637:
56638:
56639: case $ac_ii in
56640: c|c_r|pthread*) ;;
56641: *)
56642: if test "$ext_shared" = "yes"; then
56643: LDFLAGS="$LDFLAGS -l$ac_ii"
56644: else
56645:
56646:
56647: case $ac_ii in
56648: c|c_r|pthread*) ;;
56649: *)
56650: LIBS="$LIBS -l$ac_ii"
56651: ;;
56652: esac
56653:
56654:
56655: fi
56656: ;;
56657: esac
56658:
56659:
56660: ;;
56661: -L*)
56662: ac_ii=`echo $ac_i|cut -c 3-`
56663:
56664: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56665:
56666: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56667: ai_p=$ac_ii
56668: else
56669:
56670: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56671:
56672: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56673: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56674: fi
56675:
56676:
56677: if test "$ext_shared" = "yes"; then
56678: LDFLAGS="-L$ai_p $LDFLAGS"
56679: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56680: else
56681:
56682:
56683:
56684: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56685:
56686: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56687: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56688: eval "LIBPATH$unique=set"
56689:
56690: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56691: LDFLAGS="$LDFLAGS -L$ai_p"
56692: PHP_RPATHS="$PHP_RPATHS $ai_p"
56693:
56694: fi
56695:
56696:
56697: fi
56698:
56699: fi
56700:
56701: ;;
56702: esac
56703: done
56704:
1.1.1.3 ! misho 56705: { echo "$as_me:$LINENO: checking for gdImageStringFTEx in -lgd" >&5
! 56706: echo $ECHO_N "checking for gdImageStringFTEx in -lgd... $ECHO_C" >&6; }
! 56707: if test "${ac_cv_lib_gd_gdImageStringFTEx+set}" = set; then
! 56708: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 56709: else
56710: ac_check_lib_save_LIBS=$LIBS
56711: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 56712: cat >conftest.$ac_ext <<_ACEOF
! 56713: /* confdefs.h. */
! 56714: _ACEOF
! 56715: cat confdefs.h >>conftest.$ac_ext
! 56716: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 56717: /* end confdefs.h. */
56718:
56719: /* Override any GCC internal prototype to avoid an error.
56720: Use char because int might match the return type of a GCC
56721: builtin and then its argument prototype would still apply. */
56722: #ifdef __cplusplus
56723: extern "C"
56724: #endif
1.1.1.3 ! misho 56725: char gdImageStringFTEx ();
1.1 misho 56726: int
56727: main ()
56728: {
1.1.1.3 ! misho 56729: return gdImageStringFTEx ();
1.1 misho 56730: ;
56731: return 0;
56732: }
56733: _ACEOF
1.1.1.3 ! misho 56734: rm -f conftest.$ac_objext conftest$ac_exeext
! 56735: if { (ac_try="$ac_link"
! 56736: case "(($ac_try" in
! 56737: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 56738: *) ac_try_echo=$ac_try;;
! 56739: esac
! 56740: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 56741: (eval "$ac_link") 2>conftest.er1
! 56742: ac_status=$?
! 56743: grep -v '^ *+' conftest.er1 >conftest.err
! 56744: rm -f conftest.er1
! 56745: cat conftest.err >&5
! 56746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 56747: (exit $ac_status); } && {
! 56748: test -z "$ac_c_werror_flag" ||
! 56749: test ! -s conftest.err
! 56750: } && test -s conftest$ac_exeext &&
! 56751: $as_test_x conftest$ac_exeext; then
! 56752: ac_cv_lib_gd_gdImageStringFTEx=yes
1.1 misho 56753: else
1.1.1.3 ! misho 56754: echo "$as_me: failed program was:" >&5
! 56755: sed 's/^/| /' conftest.$ac_ext >&5
! 56756:
! 56757: ac_cv_lib_gd_gdImageStringFTEx=no
1.1 misho 56758: fi
1.1.1.3 ! misho 56759:
! 56760: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 56761: conftest$ac_exeext conftest.$ac_ext
1.1 misho 56762: LIBS=$ac_check_lib_save_LIBS
56763: fi
1.1.1.3 ! misho 56764: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFTEx" >&5
! 56765: echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFTEx" >&6; }
! 56766: if test $ac_cv_lib_gd_gdImageStringFTEx = yes; then
1.1 misho 56767:
56768: LDFLAGS=$save_old_LDFLAGS
56769: ext_shared=$save_ext_shared
56770:
1.1.1.3 ! misho 56771: cat >>confdefs.h <<\_ACEOF
! 56772: #define HAVE_GD_STRINGFTEX 1
! 56773: _ACEOF
1.1 misho 56774:
56775:
56776: else
56777:
56778: LDFLAGS=$save_old_LDFLAGS
56779: ext_shared=$save_ext_shared
1.1.1.3 ! misho 56780: unset ac_cv_lib_gd_gdImageStringFTEx
1.1 misho 56781:
56782:
56783: fi
56784:
56785:
56786: save_old_LDFLAGS=$LDFLAGS
56787: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56788:
56789: save_ext_shared=$ext_shared
56790: ext_shared=yes
56791:
56792: for ac_i in $ac_stuff; do
56793: case $ac_i in
56794: -pthread)
56795: if test "$ext_shared" = "yes"; then
56796: LDFLAGS="$LDFLAGS -pthread"
56797: else
56798:
56799:
56800: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56801:
56802: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56803: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56804: eval "EXTRA_LDFLAGS$unique=set"
56805: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56806: fi
56807:
56808: fi
56809: ;;
56810: -l*)
56811: ac_ii=`echo $ac_i|cut -c 3-`
56812:
56813:
56814: case $ac_ii in
56815: c|c_r|pthread*) ;;
56816: *)
56817: if test "$ext_shared" = "yes"; then
56818: LDFLAGS="$LDFLAGS -l$ac_ii"
56819: else
56820:
56821:
56822: case $ac_ii in
56823: c|c_r|pthread*) ;;
56824: *)
56825: LIBS="$LIBS -l$ac_ii"
56826: ;;
56827: esac
56828:
56829:
56830: fi
56831: ;;
56832: esac
56833:
56834:
56835: ;;
56836: -L*)
56837: ac_ii=`echo $ac_i|cut -c 3-`
56838:
56839: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56840:
56841: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56842: ai_p=$ac_ii
56843: else
56844:
56845: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56846:
56847: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56848: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56849: fi
56850:
56851:
56852: if test "$ext_shared" = "yes"; then
56853: LDFLAGS="-L$ai_p $LDFLAGS"
56854: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56855: else
56856:
56857:
56858:
56859: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56860:
56861: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56862: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56863: eval "LIBPATH$unique=set"
56864:
56865: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56866: LDFLAGS="$LDFLAGS -L$ai_p"
56867: PHP_RPATHS="$PHP_RPATHS $ai_p"
56868:
56869: fi
56870:
56871:
56872: fi
56873:
56874: fi
56875:
56876: ;;
56877: esac
56878: done
56879:
1.1.1.3 ! misho 56880: { echo "$as_me:$LINENO: checking for gdImageColorClosestHWB in -lgd" >&5
! 56881: echo $ECHO_N "checking for gdImageColorClosestHWB in -lgd... $ECHO_C" >&6; }
! 56882: if test "${ac_cv_lib_gd_gdImageColorClosestHWB+set}" = set; then
! 56883: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 56884: else
56885: ac_check_lib_save_LIBS=$LIBS
56886: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 56887: cat >conftest.$ac_ext <<_ACEOF
! 56888: /* confdefs.h. */
! 56889: _ACEOF
! 56890: cat confdefs.h >>conftest.$ac_ext
! 56891: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 56892: /* end confdefs.h. */
56893:
56894: /* Override any GCC internal prototype to avoid an error.
56895: Use char because int might match the return type of a GCC
56896: builtin and then its argument prototype would still apply. */
56897: #ifdef __cplusplus
56898: extern "C"
56899: #endif
1.1.1.3 ! misho 56900: char gdImageColorClosestHWB ();
1.1 misho 56901: int
56902: main ()
56903: {
1.1.1.3 ! misho 56904: return gdImageColorClosestHWB ();
1.1 misho 56905: ;
56906: return 0;
56907: }
56908: _ACEOF
1.1.1.3 ! misho 56909: rm -f conftest.$ac_objext conftest$ac_exeext
! 56910: if { (ac_try="$ac_link"
! 56911: case "(($ac_try" in
! 56912: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 56913: *) ac_try_echo=$ac_try;;
! 56914: esac
! 56915: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 56916: (eval "$ac_link") 2>conftest.er1
! 56917: ac_status=$?
! 56918: grep -v '^ *+' conftest.er1 >conftest.err
! 56919: rm -f conftest.er1
! 56920: cat conftest.err >&5
! 56921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 56922: (exit $ac_status); } && {
! 56923: test -z "$ac_c_werror_flag" ||
! 56924: test ! -s conftest.err
! 56925: } && test -s conftest$ac_exeext &&
! 56926: $as_test_x conftest$ac_exeext; then
! 56927: ac_cv_lib_gd_gdImageColorClosestHWB=yes
1.1 misho 56928: else
1.1.1.3 ! misho 56929: echo "$as_me: failed program was:" >&5
! 56930: sed 's/^/| /' conftest.$ac_ext >&5
! 56931:
! 56932: ac_cv_lib_gd_gdImageColorClosestHWB=no
1.1 misho 56933: fi
1.1.1.3 ! misho 56934:
! 56935: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 56936: conftest$ac_exeext conftest.$ac_ext
1.1 misho 56937: LIBS=$ac_check_lib_save_LIBS
56938: fi
1.1.1.3 ! misho 56939: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageColorClosestHWB" >&5
! 56940: echo "${ECHO_T}$ac_cv_lib_gd_gdImageColorClosestHWB" >&6; }
! 56941: if test $ac_cv_lib_gd_gdImageColorClosestHWB = yes; then
1.1 misho 56942:
56943: LDFLAGS=$save_old_LDFLAGS
56944: ext_shared=$save_ext_shared
56945:
1.1.1.3 ! misho 56946: cat >>confdefs.h <<\_ACEOF
! 56947: #define HAVE_COLORCLOSESTHWB 1
! 56948: _ACEOF
1.1 misho 56949:
56950:
56951: else
56952:
56953: LDFLAGS=$save_old_LDFLAGS
56954: ext_shared=$save_ext_shared
1.1.1.3 ! misho 56955: unset ac_cv_lib_gd_gdImageColorClosestHWB
1.1 misho 56956:
56957:
56958: fi
56959:
56960:
56961: save_old_LDFLAGS=$LDFLAGS
56962: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56963:
56964: save_ext_shared=$ext_shared
56965: ext_shared=yes
56966:
56967: for ac_i in $ac_stuff; do
56968: case $ac_i in
56969: -pthread)
56970: if test "$ext_shared" = "yes"; then
56971: LDFLAGS="$LDFLAGS -pthread"
56972: else
56973:
56974:
56975: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56976:
56977: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56978: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56979: eval "EXTRA_LDFLAGS$unique=set"
56980: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56981: fi
56982:
56983: fi
56984: ;;
56985: -l*)
56986: ac_ii=`echo $ac_i|cut -c 3-`
56987:
56988:
56989: case $ac_ii in
56990: c|c_r|pthread*) ;;
56991: *)
56992: if test "$ext_shared" = "yes"; then
56993: LDFLAGS="$LDFLAGS -l$ac_ii"
56994: else
56995:
56996:
56997: case $ac_ii in
56998: c|c_r|pthread*) ;;
56999: *)
57000: LIBS="$LIBS -l$ac_ii"
57001: ;;
57002: esac
57003:
57004:
57005: fi
57006: ;;
57007: esac
57008:
57009:
57010: ;;
57011: -L*)
57012: ac_ii=`echo $ac_i|cut -c 3-`
57013:
57014: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57015:
57016: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57017: ai_p=$ac_ii
57018: else
57019:
57020: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57021:
57022: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57023: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57024: fi
57025:
57026:
57027: if test "$ext_shared" = "yes"; then
57028: LDFLAGS="-L$ai_p $LDFLAGS"
57029: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57030: else
57031:
57032:
57033:
57034: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57035:
57036: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57037: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57038: eval "LIBPATH$unique=set"
57039:
57040: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57041: LDFLAGS="$LDFLAGS -L$ai_p"
57042: PHP_RPATHS="$PHP_RPATHS $ai_p"
57043:
57044: fi
57045:
57046:
57047: fi
57048:
57049: fi
57050:
57051: ;;
57052: esac
57053: done
57054:
1.1.1.3 ! misho 57055: { echo "$as_me:$LINENO: checking for gdImageColorResolve in -lgd" >&5
! 57056: echo $ECHO_N "checking for gdImageColorResolve in -lgd... $ECHO_C" >&6; }
! 57057: if test "${ac_cv_lib_gd_gdImageColorResolve+set}" = set; then
! 57058: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 57059: else
57060: ac_check_lib_save_LIBS=$LIBS
57061: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 57062: cat >conftest.$ac_ext <<_ACEOF
! 57063: /* confdefs.h. */
! 57064: _ACEOF
! 57065: cat confdefs.h >>conftest.$ac_ext
! 57066: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 57067: /* end confdefs.h. */
57068:
57069: /* Override any GCC internal prototype to avoid an error.
57070: Use char because int might match the return type of a GCC
57071: builtin and then its argument prototype would still apply. */
57072: #ifdef __cplusplus
57073: extern "C"
57074: #endif
1.1.1.3 ! misho 57075: char gdImageColorResolve ();
1.1 misho 57076: int
57077: main ()
57078: {
1.1.1.3 ! misho 57079: return gdImageColorResolve ();
1.1 misho 57080: ;
57081: return 0;
57082: }
57083: _ACEOF
1.1.1.3 ! misho 57084: rm -f conftest.$ac_objext conftest$ac_exeext
! 57085: if { (ac_try="$ac_link"
! 57086: case "(($ac_try" in
! 57087: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 57088: *) ac_try_echo=$ac_try;;
! 57089: esac
! 57090: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 57091: (eval "$ac_link") 2>conftest.er1
! 57092: ac_status=$?
! 57093: grep -v '^ *+' conftest.er1 >conftest.err
! 57094: rm -f conftest.er1
! 57095: cat conftest.err >&5
! 57096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 57097: (exit $ac_status); } && {
! 57098: test -z "$ac_c_werror_flag" ||
! 57099: test ! -s conftest.err
! 57100: } && test -s conftest$ac_exeext &&
! 57101: $as_test_x conftest$ac_exeext; then
! 57102: ac_cv_lib_gd_gdImageColorResolve=yes
1.1 misho 57103: else
1.1.1.3 ! misho 57104: echo "$as_me: failed program was:" >&5
! 57105: sed 's/^/| /' conftest.$ac_ext >&5
! 57106:
! 57107: ac_cv_lib_gd_gdImageColorResolve=no
1.1 misho 57108: fi
1.1.1.3 ! misho 57109:
! 57110: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 57111: conftest$ac_exeext conftest.$ac_ext
1.1 misho 57112: LIBS=$ac_check_lib_save_LIBS
57113: fi
1.1.1.3 ! misho 57114: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageColorResolve" >&5
! 57115: echo "${ECHO_T}$ac_cv_lib_gd_gdImageColorResolve" >&6; }
! 57116: if test $ac_cv_lib_gd_gdImageColorResolve = yes; then
1.1 misho 57117:
57118: LDFLAGS=$save_old_LDFLAGS
57119: ext_shared=$save_ext_shared
57120:
1.1.1.3 ! misho 57121: cat >>confdefs.h <<\_ACEOF
! 57122: #define HAVE_GDIMAGECOLORRESOLVE 1
! 57123: _ACEOF
1.1 misho 57124:
57125:
57126: else
57127:
57128: LDFLAGS=$save_old_LDFLAGS
57129: ext_shared=$save_ext_shared
1.1.1.3 ! misho 57130: unset ac_cv_lib_gd_gdImageColorResolve
1.1 misho 57131:
57132:
57133: fi
57134:
57135:
57136: save_old_LDFLAGS=$LDFLAGS
57137: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57138:
57139: save_ext_shared=$ext_shared
57140: ext_shared=yes
57141:
57142: for ac_i in $ac_stuff; do
57143: case $ac_i in
57144: -pthread)
57145: if test "$ext_shared" = "yes"; then
57146: LDFLAGS="$LDFLAGS -pthread"
57147: else
57148:
57149:
57150: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57151:
57152: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57153: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57154: eval "EXTRA_LDFLAGS$unique=set"
57155: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57156: fi
57157:
57158: fi
57159: ;;
57160: -l*)
57161: ac_ii=`echo $ac_i|cut -c 3-`
57162:
57163:
57164: case $ac_ii in
57165: c|c_r|pthread*) ;;
57166: *)
57167: if test "$ext_shared" = "yes"; then
57168: LDFLAGS="$LDFLAGS -l$ac_ii"
57169: else
57170:
57171:
57172: case $ac_ii in
57173: c|c_r|pthread*) ;;
57174: *)
57175: LIBS="$LIBS -l$ac_ii"
57176: ;;
57177: esac
57178:
57179:
57180: fi
57181: ;;
57182: esac
57183:
57184:
57185: ;;
57186: -L*)
57187: ac_ii=`echo $ac_i|cut -c 3-`
57188:
57189: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57190:
57191: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57192: ai_p=$ac_ii
57193: else
57194:
57195: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57196:
57197: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57198: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57199: fi
57200:
57201:
57202: if test "$ext_shared" = "yes"; then
57203: LDFLAGS="-L$ai_p $LDFLAGS"
57204: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57205: else
57206:
57207:
57208:
57209: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57210:
57211: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57212: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57213: eval "LIBPATH$unique=set"
57214:
57215: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57216: LDFLAGS="$LDFLAGS -L$ai_p"
57217: PHP_RPATHS="$PHP_RPATHS $ai_p"
57218:
57219: fi
57220:
57221:
57222: fi
57223:
57224: fi
57225:
57226: ;;
57227: esac
57228: done
57229:
1.1.1.3 ! misho 57230: { echo "$as_me:$LINENO: checking for gdImageGifCtx in -lgd" >&5
! 57231: echo $ECHO_N "checking for gdImageGifCtx in -lgd... $ECHO_C" >&6; }
! 57232: if test "${ac_cv_lib_gd_gdImageGifCtx+set}" = set; then
! 57233: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 57234: else
57235: ac_check_lib_save_LIBS=$LIBS
57236: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 57237: cat >conftest.$ac_ext <<_ACEOF
! 57238: /* confdefs.h. */
! 57239: _ACEOF
! 57240: cat confdefs.h >>conftest.$ac_ext
! 57241: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 57242: /* end confdefs.h. */
57243:
57244: /* Override any GCC internal prototype to avoid an error.
57245: Use char because int might match the return type of a GCC
57246: builtin and then its argument prototype would still apply. */
57247: #ifdef __cplusplus
57248: extern "C"
57249: #endif
1.1.1.3 ! misho 57250: char gdImageGifCtx ();
1.1 misho 57251: int
57252: main ()
57253: {
1.1.1.3 ! misho 57254: return gdImageGifCtx ();
1.1 misho 57255: ;
57256: return 0;
57257: }
57258: _ACEOF
1.1.1.3 ! misho 57259: rm -f conftest.$ac_objext conftest$ac_exeext
! 57260: if { (ac_try="$ac_link"
! 57261: case "(($ac_try" in
! 57262: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 57263: *) ac_try_echo=$ac_try;;
! 57264: esac
! 57265: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 57266: (eval "$ac_link") 2>conftest.er1
! 57267: ac_status=$?
! 57268: grep -v '^ *+' conftest.er1 >conftest.err
! 57269: rm -f conftest.er1
! 57270: cat conftest.err >&5
! 57271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 57272: (exit $ac_status); } && {
! 57273: test -z "$ac_c_werror_flag" ||
! 57274: test ! -s conftest.err
! 57275: } && test -s conftest$ac_exeext &&
! 57276: $as_test_x conftest$ac_exeext; then
! 57277: ac_cv_lib_gd_gdImageGifCtx=yes
1.1 misho 57278: else
1.1.1.3 ! misho 57279: echo "$as_me: failed program was:" >&5
! 57280: sed 's/^/| /' conftest.$ac_ext >&5
! 57281:
! 57282: ac_cv_lib_gd_gdImageGifCtx=no
1.1 misho 57283: fi
1.1.1.3 ! misho 57284:
! 57285: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 57286: conftest$ac_exeext conftest.$ac_ext
1.1 misho 57287: LIBS=$ac_check_lib_save_LIBS
57288: fi
1.1.1.3 ! misho 57289: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGifCtx" >&5
! 57290: echo "${ECHO_T}$ac_cv_lib_gd_gdImageGifCtx" >&6; }
! 57291: if test $ac_cv_lib_gd_gdImageGifCtx = yes; then
1.1 misho 57292:
57293: LDFLAGS=$save_old_LDFLAGS
57294: ext_shared=$save_ext_shared
57295:
1.1.1.3 ! misho 57296: cat >>confdefs.h <<\_ACEOF
! 57297: #define HAVE_GD_GIF_CTX 1
! 57298: _ACEOF
1.1 misho 57299:
57300:
57301: else
57302:
57303: LDFLAGS=$save_old_LDFLAGS
57304: ext_shared=$save_ext_shared
1.1.1.3 ! misho 57305: unset ac_cv_lib_gd_gdImageGifCtx
1.1 misho 57306:
57307:
57308: fi
57309:
57310:
57311: save_old_LDFLAGS=$LDFLAGS
57312: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57313:
57314: save_ext_shared=$ext_shared
57315: ext_shared=yes
57316:
57317: for ac_i in $ac_stuff; do
57318: case $ac_i in
57319: -pthread)
57320: if test "$ext_shared" = "yes"; then
57321: LDFLAGS="$LDFLAGS -pthread"
57322: else
57323:
57324:
57325: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57326:
57327: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57328: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57329: eval "EXTRA_LDFLAGS$unique=set"
57330: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57331: fi
57332:
57333: fi
57334: ;;
57335: -l*)
57336: ac_ii=`echo $ac_i|cut -c 3-`
57337:
57338:
57339: case $ac_ii in
57340: c|c_r|pthread*) ;;
57341: *)
57342: if test "$ext_shared" = "yes"; then
57343: LDFLAGS="$LDFLAGS -l$ac_ii"
57344: else
57345:
57346:
57347: case $ac_ii in
57348: c|c_r|pthread*) ;;
57349: *)
57350: LIBS="$LIBS -l$ac_ii"
57351: ;;
57352: esac
57353:
57354:
57355: fi
57356: ;;
57357: esac
57358:
57359:
57360: ;;
57361: -L*)
57362: ac_ii=`echo $ac_i|cut -c 3-`
57363:
57364: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57365:
57366: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57367: ai_p=$ac_ii
57368: else
57369:
57370: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57371:
57372: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57373: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57374: fi
57375:
57376:
57377: if test "$ext_shared" = "yes"; then
57378: LDFLAGS="-L$ai_p $LDFLAGS"
57379: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57380: else
57381:
57382:
57383:
57384: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57385:
57386: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57387: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57388: eval "LIBPATH$unique=set"
57389:
57390: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57391: LDFLAGS="$LDFLAGS -L$ai_p"
57392: PHP_RPATHS="$PHP_RPATHS $ai_p"
57393:
57394: fi
57395:
57396:
57397: fi
57398:
57399: fi
57400:
57401: ;;
57402: esac
57403: done
57404:
1.1.1.3 ! misho 57405: { echo "$as_me:$LINENO: checking for gdCacheCreate in -lgd" >&5
! 57406: echo $ECHO_N "checking for gdCacheCreate in -lgd... $ECHO_C" >&6; }
! 57407: if test "${ac_cv_lib_gd_gdCacheCreate+set}" = set; then
! 57408: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 57409: else
57410: ac_check_lib_save_LIBS=$LIBS
57411: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 57412: cat >conftest.$ac_ext <<_ACEOF
! 57413: /* confdefs.h. */
! 57414: _ACEOF
! 57415: cat confdefs.h >>conftest.$ac_ext
! 57416: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 57417: /* end confdefs.h. */
57418:
57419: /* Override any GCC internal prototype to avoid an error.
57420: Use char because int might match the return type of a GCC
57421: builtin and then its argument prototype would still apply. */
57422: #ifdef __cplusplus
57423: extern "C"
57424: #endif
1.1.1.3 ! misho 57425: char gdCacheCreate ();
1.1 misho 57426: int
57427: main ()
57428: {
1.1.1.3 ! misho 57429: return gdCacheCreate ();
1.1 misho 57430: ;
57431: return 0;
57432: }
57433: _ACEOF
1.1.1.3 ! misho 57434: rm -f conftest.$ac_objext conftest$ac_exeext
! 57435: if { (ac_try="$ac_link"
! 57436: case "(($ac_try" in
! 57437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 57438: *) ac_try_echo=$ac_try;;
! 57439: esac
! 57440: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 57441: (eval "$ac_link") 2>conftest.er1
! 57442: ac_status=$?
! 57443: grep -v '^ *+' conftest.er1 >conftest.err
! 57444: rm -f conftest.er1
! 57445: cat conftest.err >&5
! 57446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 57447: (exit $ac_status); } && {
! 57448: test -z "$ac_c_werror_flag" ||
! 57449: test ! -s conftest.err
! 57450: } && test -s conftest$ac_exeext &&
! 57451: $as_test_x conftest$ac_exeext; then
! 57452: ac_cv_lib_gd_gdCacheCreate=yes
1.1 misho 57453: else
1.1.1.3 ! misho 57454: echo "$as_me: failed program was:" >&5
! 57455: sed 's/^/| /' conftest.$ac_ext >&5
! 57456:
! 57457: ac_cv_lib_gd_gdCacheCreate=no
1.1 misho 57458: fi
1.1.1.3 ! misho 57459:
! 57460: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 57461: conftest$ac_exeext conftest.$ac_ext
1.1 misho 57462: LIBS=$ac_check_lib_save_LIBS
57463: fi
1.1.1.3 ! misho 57464: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdCacheCreate" >&5
! 57465: echo "${ECHO_T}$ac_cv_lib_gd_gdCacheCreate" >&6; }
! 57466: if test $ac_cv_lib_gd_gdCacheCreate = yes; then
1.1 misho 57467:
57468: LDFLAGS=$save_old_LDFLAGS
57469: ext_shared=$save_ext_shared
57470:
1.1.1.3 ! misho 57471: cat >>confdefs.h <<\_ACEOF
! 57472: #define HAVE_GD_CACHE_CREATE 1
! 57473: _ACEOF
1.1 misho 57474:
57475:
57476: else
57477:
57478: LDFLAGS=$save_old_LDFLAGS
57479: ext_shared=$save_ext_shared
1.1.1.3 ! misho 57480: unset ac_cv_lib_gd_gdCacheCreate
1.1 misho 57481:
57482:
57483: fi
57484:
57485:
57486: save_old_LDFLAGS=$LDFLAGS
57487: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57488:
57489: save_ext_shared=$ext_shared
57490: ext_shared=yes
57491:
57492: for ac_i in $ac_stuff; do
57493: case $ac_i in
57494: -pthread)
57495: if test "$ext_shared" = "yes"; then
57496: LDFLAGS="$LDFLAGS -pthread"
57497: else
57498:
57499:
57500: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57501:
57502: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57503: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57504: eval "EXTRA_LDFLAGS$unique=set"
57505: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57506: fi
57507:
57508: fi
57509: ;;
57510: -l*)
57511: ac_ii=`echo $ac_i|cut -c 3-`
57512:
57513:
57514: case $ac_ii in
57515: c|c_r|pthread*) ;;
57516: *)
57517: if test "$ext_shared" = "yes"; then
57518: LDFLAGS="$LDFLAGS -l$ac_ii"
57519: else
57520:
57521:
57522: case $ac_ii in
57523: c|c_r|pthread*) ;;
57524: *)
57525: LIBS="$LIBS -l$ac_ii"
57526: ;;
57527: esac
57528:
57529:
57530: fi
57531: ;;
57532: esac
57533:
57534:
57535: ;;
57536: -L*)
57537: ac_ii=`echo $ac_i|cut -c 3-`
57538:
57539: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57540:
57541: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57542: ai_p=$ac_ii
57543: else
57544:
57545: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57546:
57547: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57548: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57549: fi
57550:
57551:
57552: if test "$ext_shared" = "yes"; then
57553: LDFLAGS="-L$ai_p $LDFLAGS"
57554: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57555: else
57556:
57557:
57558:
57559: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57560:
57561: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57562: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57563: eval "LIBPATH$unique=set"
57564:
57565: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57566: LDFLAGS="$LDFLAGS -L$ai_p"
57567: PHP_RPATHS="$PHP_RPATHS $ai_p"
57568:
57569: fi
57570:
57571:
57572: fi
57573:
57574: fi
57575:
57576: ;;
57577: esac
57578: done
57579:
1.1.1.3 ! misho 57580: { echo "$as_me:$LINENO: checking for gdFontCacheShutdown in -lgd" >&5
! 57581: echo $ECHO_N "checking for gdFontCacheShutdown in -lgd... $ECHO_C" >&6; }
! 57582: if test "${ac_cv_lib_gd_gdFontCacheShutdown+set}" = set; then
! 57583: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 57584: else
57585: ac_check_lib_save_LIBS=$LIBS
57586: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 57587: cat >conftest.$ac_ext <<_ACEOF
! 57588: /* confdefs.h. */
! 57589: _ACEOF
! 57590: cat confdefs.h >>conftest.$ac_ext
! 57591: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 57592: /* end confdefs.h. */
57593:
57594: /* Override any GCC internal prototype to avoid an error.
57595: Use char because int might match the return type of a GCC
57596: builtin and then its argument prototype would still apply. */
57597: #ifdef __cplusplus
57598: extern "C"
57599: #endif
1.1.1.3 ! misho 57600: char gdFontCacheShutdown ();
1.1 misho 57601: int
57602: main ()
57603: {
1.1.1.3 ! misho 57604: return gdFontCacheShutdown ();
1.1 misho 57605: ;
57606: return 0;
57607: }
57608: _ACEOF
1.1.1.3 ! misho 57609: rm -f conftest.$ac_objext conftest$ac_exeext
! 57610: if { (ac_try="$ac_link"
! 57611: case "(($ac_try" in
! 57612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 57613: *) ac_try_echo=$ac_try;;
! 57614: esac
! 57615: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 57616: (eval "$ac_link") 2>conftest.er1
! 57617: ac_status=$?
! 57618: grep -v '^ *+' conftest.er1 >conftest.err
! 57619: rm -f conftest.er1
! 57620: cat conftest.err >&5
! 57621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 57622: (exit $ac_status); } && {
! 57623: test -z "$ac_c_werror_flag" ||
! 57624: test ! -s conftest.err
! 57625: } && test -s conftest$ac_exeext &&
! 57626: $as_test_x conftest$ac_exeext; then
! 57627: ac_cv_lib_gd_gdFontCacheShutdown=yes
1.1 misho 57628: else
1.1.1.3 ! misho 57629: echo "$as_me: failed program was:" >&5
! 57630: sed 's/^/| /' conftest.$ac_ext >&5
! 57631:
! 57632: ac_cv_lib_gd_gdFontCacheShutdown=no
1.1 misho 57633: fi
1.1.1.3 ! misho 57634:
! 57635: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 57636: conftest$ac_exeext conftest.$ac_ext
1.1 misho 57637: LIBS=$ac_check_lib_save_LIBS
57638: fi
1.1.1.3 ! misho 57639: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5
! 57640: echo "${ECHO_T}$ac_cv_lib_gd_gdFontCacheShutdown" >&6; }
! 57641: if test $ac_cv_lib_gd_gdFontCacheShutdown = yes; then
1.1 misho 57642:
57643: LDFLAGS=$save_old_LDFLAGS
57644: ext_shared=$save_ext_shared
57645:
1.1.1.3 ! misho 57646: cat >>confdefs.h <<\_ACEOF
! 57647: #define HAVE_GD_FONTCACHESHUTDOWN 1
! 57648: _ACEOF
1.1 misho 57649:
57650:
57651: else
57652:
57653: LDFLAGS=$save_old_LDFLAGS
57654: ext_shared=$save_ext_shared
1.1.1.3 ! misho 57655: unset ac_cv_lib_gd_gdFontCacheShutdown
1.1 misho 57656:
57657:
57658: fi
57659:
57660:
57661: save_old_LDFLAGS=$LDFLAGS
57662: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57663:
57664: save_ext_shared=$ext_shared
57665: ext_shared=yes
57666:
57667: for ac_i in $ac_stuff; do
57668: case $ac_i in
57669: -pthread)
57670: if test "$ext_shared" = "yes"; then
57671: LDFLAGS="$LDFLAGS -pthread"
57672: else
57673:
57674:
57675: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57676:
57677: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57678: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57679: eval "EXTRA_LDFLAGS$unique=set"
57680: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57681: fi
57682:
57683: fi
57684: ;;
57685: -l*)
57686: ac_ii=`echo $ac_i|cut -c 3-`
57687:
57688:
57689: case $ac_ii in
57690: c|c_r|pthread*) ;;
57691: *)
57692: if test "$ext_shared" = "yes"; then
57693: LDFLAGS="$LDFLAGS -l$ac_ii"
57694: else
57695:
57696:
57697: case $ac_ii in
57698: c|c_r|pthread*) ;;
57699: *)
57700: LIBS="$LIBS -l$ac_ii"
57701: ;;
57702: esac
57703:
57704:
57705: fi
57706: ;;
57707: esac
57708:
57709:
57710: ;;
57711: -L*)
57712: ac_ii=`echo $ac_i|cut -c 3-`
57713:
57714: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57715:
57716: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57717: ai_p=$ac_ii
57718: else
57719:
57720: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57721:
57722: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57723: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57724: fi
57725:
57726:
57727: if test "$ext_shared" = "yes"; then
57728: LDFLAGS="-L$ai_p $LDFLAGS"
57729: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57730: else
57731:
57732:
57733:
57734: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57735:
57736: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57737: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57738: eval "LIBPATH$unique=set"
57739:
57740: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57741: LDFLAGS="$LDFLAGS -L$ai_p"
57742: PHP_RPATHS="$PHP_RPATHS $ai_p"
57743:
57744: fi
57745:
57746:
57747: fi
57748:
57749: fi
57750:
57751: ;;
57752: esac
57753: done
57754:
1.1.1.3 ! misho 57755: { echo "$as_me:$LINENO: checking for gdFreeFontCache in -lgd" >&5
! 57756: echo $ECHO_N "checking for gdFreeFontCache in -lgd... $ECHO_C" >&6; }
! 57757: if test "${ac_cv_lib_gd_gdFreeFontCache+set}" = set; then
! 57758: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 57759: else
57760: ac_check_lib_save_LIBS=$LIBS
57761: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 57762: cat >conftest.$ac_ext <<_ACEOF
! 57763: /* confdefs.h. */
! 57764: _ACEOF
! 57765: cat confdefs.h >>conftest.$ac_ext
! 57766: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 57767: /* end confdefs.h. */
57768:
57769: /* Override any GCC internal prototype to avoid an error.
57770: Use char because int might match the return type of a GCC
57771: builtin and then its argument prototype would still apply. */
57772: #ifdef __cplusplus
57773: extern "C"
57774: #endif
1.1.1.3 ! misho 57775: char gdFreeFontCache ();
1.1 misho 57776: int
57777: main ()
57778: {
1.1.1.3 ! misho 57779: return gdFreeFontCache ();
1.1 misho 57780: ;
57781: return 0;
57782: }
57783: _ACEOF
1.1.1.3 ! misho 57784: rm -f conftest.$ac_objext conftest$ac_exeext
! 57785: if { (ac_try="$ac_link"
! 57786: case "(($ac_try" in
! 57787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 57788: *) ac_try_echo=$ac_try;;
! 57789: esac
! 57790: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 57791: (eval "$ac_link") 2>conftest.er1
! 57792: ac_status=$?
! 57793: grep -v '^ *+' conftest.er1 >conftest.err
! 57794: rm -f conftest.er1
! 57795: cat conftest.err >&5
! 57796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 57797: (exit $ac_status); } && {
! 57798: test -z "$ac_c_werror_flag" ||
! 57799: test ! -s conftest.err
! 57800: } && test -s conftest$ac_exeext &&
! 57801: $as_test_x conftest$ac_exeext; then
! 57802: ac_cv_lib_gd_gdFreeFontCache=yes
1.1 misho 57803: else
1.1.1.3 ! misho 57804: echo "$as_me: failed program was:" >&5
! 57805: sed 's/^/| /' conftest.$ac_ext >&5
! 57806:
! 57807: ac_cv_lib_gd_gdFreeFontCache=no
1.1 misho 57808: fi
1.1.1.3 ! misho 57809:
! 57810: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 57811: conftest$ac_exeext conftest.$ac_ext
1.1 misho 57812: LIBS=$ac_check_lib_save_LIBS
57813: fi
1.1.1.3 ! misho 57814: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFreeFontCache" >&5
! 57815: echo "${ECHO_T}$ac_cv_lib_gd_gdFreeFontCache" >&6; }
! 57816: if test $ac_cv_lib_gd_gdFreeFontCache = yes; then
1.1 misho 57817:
57818: LDFLAGS=$save_old_LDFLAGS
57819: ext_shared=$save_ext_shared
57820:
1.1.1.3 ! misho 57821: cat >>confdefs.h <<\_ACEOF
! 57822: #define HAVE_GD_FREEFONTCACHE 1
! 57823: _ACEOF
1.1 misho 57824:
57825:
57826: else
57827:
57828: LDFLAGS=$save_old_LDFLAGS
57829: ext_shared=$save_ext_shared
1.1.1.3 ! misho 57830: unset ac_cv_lib_gd_gdFreeFontCache
1.1 misho 57831:
57832:
57833: fi
57834:
57835:
57836: save_old_LDFLAGS=$LDFLAGS
57837: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57838:
57839: save_ext_shared=$ext_shared
57840: ext_shared=yes
57841:
57842: for ac_i in $ac_stuff; do
57843: case $ac_i in
57844: -pthread)
57845: if test "$ext_shared" = "yes"; then
57846: LDFLAGS="$LDFLAGS -pthread"
57847: else
57848:
57849:
57850: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57851:
57852: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57853: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57854: eval "EXTRA_LDFLAGS$unique=set"
57855: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57856: fi
57857:
57858: fi
57859: ;;
57860: -l*)
57861: ac_ii=`echo $ac_i|cut -c 3-`
57862:
57863:
57864: case $ac_ii in
57865: c|c_r|pthread*) ;;
57866: *)
57867: if test "$ext_shared" = "yes"; then
57868: LDFLAGS="$LDFLAGS -l$ac_ii"
57869: else
57870:
57871:
57872: case $ac_ii in
57873: c|c_r|pthread*) ;;
57874: *)
57875: LIBS="$LIBS -l$ac_ii"
57876: ;;
57877: esac
57878:
57879:
57880: fi
57881: ;;
57882: esac
57883:
57884:
57885: ;;
57886: -L*)
57887: ac_ii=`echo $ac_i|cut -c 3-`
57888:
57889: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57890:
57891: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57892: ai_p=$ac_ii
57893: else
57894:
57895: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57896:
57897: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57898: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57899: fi
57900:
57901:
57902: if test "$ext_shared" = "yes"; then
57903: LDFLAGS="-L$ai_p $LDFLAGS"
57904: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57905: else
57906:
57907:
57908:
57909: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57910:
57911: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57912: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57913: eval "LIBPATH$unique=set"
57914:
57915: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57916: LDFLAGS="$LDFLAGS -L$ai_p"
57917: PHP_RPATHS="$PHP_RPATHS $ai_p"
57918:
57919: fi
57920:
57921:
57922: fi
57923:
57924: fi
57925:
57926: ;;
57927: esac
57928: done
57929:
1.1.1.3 ! misho 57930: { echo "$as_me:$LINENO: checking for gdFontCacheMutexSetup in -lgd" >&5
! 57931: echo $ECHO_N "checking for gdFontCacheMutexSetup in -lgd... $ECHO_C" >&6; }
! 57932: if test "${ac_cv_lib_gd_gdFontCacheMutexSetup+set}" = set; then
! 57933: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 57934: else
57935: ac_check_lib_save_LIBS=$LIBS
57936: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 57937: cat >conftest.$ac_ext <<_ACEOF
! 57938: /* confdefs.h. */
! 57939: _ACEOF
! 57940: cat confdefs.h >>conftest.$ac_ext
! 57941: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 57942: /* end confdefs.h. */
57943:
57944: /* Override any GCC internal prototype to avoid an error.
57945: Use char because int might match the return type of a GCC
57946: builtin and then its argument prototype would still apply. */
57947: #ifdef __cplusplus
57948: extern "C"
57949: #endif
1.1.1.3 ! misho 57950: char gdFontCacheMutexSetup ();
1.1 misho 57951: int
57952: main ()
57953: {
1.1.1.3 ! misho 57954: return gdFontCacheMutexSetup ();
1.1 misho 57955: ;
57956: return 0;
57957: }
57958: _ACEOF
1.1.1.3 ! misho 57959: rm -f conftest.$ac_objext conftest$ac_exeext
! 57960: if { (ac_try="$ac_link"
! 57961: case "(($ac_try" in
! 57962: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 57963: *) ac_try_echo=$ac_try;;
! 57964: esac
! 57965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 57966: (eval "$ac_link") 2>conftest.er1
! 57967: ac_status=$?
! 57968: grep -v '^ *+' conftest.er1 >conftest.err
! 57969: rm -f conftest.er1
! 57970: cat conftest.err >&5
! 57971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 57972: (exit $ac_status); } && {
! 57973: test -z "$ac_c_werror_flag" ||
! 57974: test ! -s conftest.err
! 57975: } && test -s conftest$ac_exeext &&
! 57976: $as_test_x conftest$ac_exeext; then
! 57977: ac_cv_lib_gd_gdFontCacheMutexSetup=yes
1.1 misho 57978: else
1.1.1.3 ! misho 57979: echo "$as_me: failed program was:" >&5
! 57980: sed 's/^/| /' conftest.$ac_ext >&5
! 57981:
! 57982: ac_cv_lib_gd_gdFontCacheMutexSetup=no
1.1 misho 57983: fi
1.1.1.3 ! misho 57984:
! 57985: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 57986: conftest$ac_exeext conftest.$ac_ext
1.1 misho 57987: LIBS=$ac_check_lib_save_LIBS
57988: fi
1.1.1.3 ! misho 57989: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFontCacheMutexSetup" >&5
! 57990: echo "${ECHO_T}$ac_cv_lib_gd_gdFontCacheMutexSetup" >&6; }
! 57991: if test $ac_cv_lib_gd_gdFontCacheMutexSetup = yes; then
1.1 misho 57992:
57993: LDFLAGS=$save_old_LDFLAGS
57994: ext_shared=$save_ext_shared
57995:
1.1.1.3 ! misho 57996: cat >>confdefs.h <<\_ACEOF
! 57997: #define HAVE_GD_FONTMUTEX 1
! 57998: _ACEOF
1.1 misho 57999:
58000:
58001: else
58002:
58003: LDFLAGS=$save_old_LDFLAGS
58004: ext_shared=$save_ext_shared
1.1.1.3 ! misho 58005: unset ac_cv_lib_gd_gdFontCacheMutexSetup
1.1 misho 58006:
58007:
58008: fi
58009:
58010:
58011: save_old_LDFLAGS=$LDFLAGS
58012: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
58013:
58014: save_ext_shared=$ext_shared
58015: ext_shared=yes
58016:
58017: for ac_i in $ac_stuff; do
58018: case $ac_i in
58019: -pthread)
58020: if test "$ext_shared" = "yes"; then
58021: LDFLAGS="$LDFLAGS -pthread"
58022: else
58023:
58024:
58025: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58026:
58027: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58028: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58029: eval "EXTRA_LDFLAGS$unique=set"
58030: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58031: fi
58032:
58033: fi
58034: ;;
58035: -l*)
58036: ac_ii=`echo $ac_i|cut -c 3-`
58037:
58038:
58039: case $ac_ii in
58040: c|c_r|pthread*) ;;
58041: *)
58042: if test "$ext_shared" = "yes"; then
58043: LDFLAGS="$LDFLAGS -l$ac_ii"
58044: else
58045:
58046:
58047: case $ac_ii in
58048: c|c_r|pthread*) ;;
58049: *)
58050: LIBS="$LIBS -l$ac_ii"
58051: ;;
58052: esac
58053:
58054:
58055: fi
58056: ;;
58057: esac
58058:
58059:
58060: ;;
58061: -L*)
58062: ac_ii=`echo $ac_i|cut -c 3-`
58063:
58064: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58065:
58066: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58067: ai_p=$ac_ii
58068: else
58069:
58070: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58071:
58072: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58073: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58074: fi
58075:
58076:
58077: if test "$ext_shared" = "yes"; then
58078: LDFLAGS="-L$ai_p $LDFLAGS"
58079: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58080: else
58081:
58082:
58083:
58084: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58085:
58086: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58087: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58088: eval "LIBPATH$unique=set"
58089:
58090: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58091: LDFLAGS="$LDFLAGS -L$ai_p"
58092: PHP_RPATHS="$PHP_RPATHS $ai_p"
58093:
58094: fi
58095:
58096:
58097: fi
58098:
58099: fi
58100:
58101: ;;
58102: esac
58103: done
58104:
1.1.1.3 ! misho 58105: { echo "$as_me:$LINENO: checking for gdNewDynamicCtxEx in -lgd" >&5
! 58106: echo $ECHO_N "checking for gdNewDynamicCtxEx in -lgd... $ECHO_C" >&6; }
! 58107: if test "${ac_cv_lib_gd_gdNewDynamicCtxEx+set}" = set; then
! 58108: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 58109: else
58110: ac_check_lib_save_LIBS=$LIBS
58111: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 58112: cat >conftest.$ac_ext <<_ACEOF
! 58113: /* confdefs.h. */
! 58114: _ACEOF
! 58115: cat confdefs.h >>conftest.$ac_ext
! 58116: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 58117: /* end confdefs.h. */
58118:
58119: /* Override any GCC internal prototype to avoid an error.
58120: Use char because int might match the return type of a GCC
58121: builtin and then its argument prototype would still apply. */
58122: #ifdef __cplusplus
58123: extern "C"
58124: #endif
1.1.1.3 ! misho 58125: char gdNewDynamicCtxEx ();
1.1 misho 58126: int
58127: main ()
58128: {
1.1.1.3 ! misho 58129: return gdNewDynamicCtxEx ();
1.1 misho 58130: ;
58131: return 0;
58132: }
58133: _ACEOF
1.1.1.3 ! misho 58134: rm -f conftest.$ac_objext conftest$ac_exeext
! 58135: if { (ac_try="$ac_link"
! 58136: case "(($ac_try" in
! 58137: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 58138: *) ac_try_echo=$ac_try;;
! 58139: esac
! 58140: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 58141: (eval "$ac_link") 2>conftest.er1
! 58142: ac_status=$?
! 58143: grep -v '^ *+' conftest.er1 >conftest.err
! 58144: rm -f conftest.er1
! 58145: cat conftest.err >&5
! 58146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 58147: (exit $ac_status); } && {
! 58148: test -z "$ac_c_werror_flag" ||
! 58149: test ! -s conftest.err
! 58150: } && test -s conftest$ac_exeext &&
! 58151: $as_test_x conftest$ac_exeext; then
! 58152: ac_cv_lib_gd_gdNewDynamicCtxEx=yes
1.1 misho 58153: else
1.1.1.3 ! misho 58154: echo "$as_me: failed program was:" >&5
! 58155: sed 's/^/| /' conftest.$ac_ext >&5
! 58156:
! 58157: ac_cv_lib_gd_gdNewDynamicCtxEx=no
1.1 misho 58158: fi
1.1.1.3 ! misho 58159:
! 58160: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 58161: conftest$ac_exeext conftest.$ac_ext
1.1 misho 58162: LIBS=$ac_check_lib_save_LIBS
58163: fi
1.1.1.3 ! misho 58164: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdNewDynamicCtxEx" >&5
! 58165: echo "${ECHO_T}$ac_cv_lib_gd_gdNewDynamicCtxEx" >&6; }
! 58166: if test $ac_cv_lib_gd_gdNewDynamicCtxEx = yes; then
1.1 misho 58167:
58168: LDFLAGS=$save_old_LDFLAGS
58169: ext_shared=$save_ext_shared
58170:
1.1.1.3 ! misho 58171: cat >>confdefs.h <<\_ACEOF
! 58172: #define HAVE_GD_DYNAMIC_CTX_EX 1
! 58173: _ACEOF
1.1 misho 58174:
58175:
58176: else
58177:
58178: LDFLAGS=$save_old_LDFLAGS
58179: ext_shared=$save_ext_shared
1.1.1.3 ! misho 58180: unset ac_cv_lib_gd_gdNewDynamicCtxEx
1.1 misho 58181:
58182:
58183: fi
58184:
58185:
58186: save_old_LDFLAGS=$LDFLAGS
58187: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
58188:
58189: save_ext_shared=$ext_shared
58190: ext_shared=yes
58191:
58192: for ac_i in $ac_stuff; do
58193: case $ac_i in
58194: -pthread)
58195: if test "$ext_shared" = "yes"; then
58196: LDFLAGS="$LDFLAGS -pthread"
58197: else
58198:
58199:
58200: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58201:
58202: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58203: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58204: eval "EXTRA_LDFLAGS$unique=set"
58205: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58206: fi
58207:
58208: fi
58209: ;;
58210: -l*)
58211: ac_ii=`echo $ac_i|cut -c 3-`
58212:
58213:
58214: case $ac_ii in
58215: c|c_r|pthread*) ;;
58216: *)
58217: if test "$ext_shared" = "yes"; then
58218: LDFLAGS="$LDFLAGS -l$ac_ii"
58219: else
58220:
58221:
58222: case $ac_ii in
58223: c|c_r|pthread*) ;;
58224: *)
58225: LIBS="$LIBS -l$ac_ii"
58226: ;;
58227: esac
58228:
58229:
58230: fi
58231: ;;
58232: esac
58233:
58234:
58235: ;;
58236: -L*)
58237: ac_ii=`echo $ac_i|cut -c 3-`
58238:
58239: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58240:
58241: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58242: ai_p=$ac_ii
58243: else
58244:
58245: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58246:
58247: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58248: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58249: fi
58250:
58251:
58252: if test "$ext_shared" = "yes"; then
58253: LDFLAGS="-L$ai_p $LDFLAGS"
58254: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58255: else
58256:
58257:
58258:
58259: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58260:
58261: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58262: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58263: eval "LIBPATH$unique=set"
58264:
58265: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58266: LDFLAGS="$LDFLAGS -L$ai_p"
58267: PHP_RPATHS="$PHP_RPATHS $ai_p"
58268:
58269: fi
58270:
58271:
58272: fi
58273:
58274: fi
58275:
58276: ;;
58277: esac
58278: done
58279:
1.1.1.3 ! misho 58280: { echo "$as_me:$LINENO: checking for gdImageConvolution in -lgd" >&5
! 58281: echo $ECHO_N "checking for gdImageConvolution in -lgd... $ECHO_C" >&6; }
! 58282: if test "${ac_cv_lib_gd_gdImageConvolution+set}" = set; then
! 58283: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 58284: else
58285: ac_check_lib_save_LIBS=$LIBS
58286: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 58287: cat >conftest.$ac_ext <<_ACEOF
! 58288: /* confdefs.h. */
! 58289: _ACEOF
! 58290: cat confdefs.h >>conftest.$ac_ext
! 58291: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 58292: /* end confdefs.h. */
58293:
58294: /* Override any GCC internal prototype to avoid an error.
58295: Use char because int might match the return type of a GCC
58296: builtin and then its argument prototype would still apply. */
58297: #ifdef __cplusplus
58298: extern "C"
58299: #endif
1.1.1.3 ! misho 58300: char gdImageConvolution ();
1.1 misho 58301: int
58302: main ()
58303: {
1.1.1.3 ! misho 58304: return gdImageConvolution ();
1.1 misho 58305: ;
58306: return 0;
58307: }
58308: _ACEOF
1.1.1.3 ! misho 58309: rm -f conftest.$ac_objext conftest$ac_exeext
! 58310: if { (ac_try="$ac_link"
! 58311: case "(($ac_try" in
! 58312: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 58313: *) ac_try_echo=$ac_try;;
! 58314: esac
! 58315: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 58316: (eval "$ac_link") 2>conftest.er1
! 58317: ac_status=$?
! 58318: grep -v '^ *+' conftest.er1 >conftest.err
! 58319: rm -f conftest.er1
! 58320: cat conftest.err >&5
! 58321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 58322: (exit $ac_status); } && {
! 58323: test -z "$ac_c_werror_flag" ||
! 58324: test ! -s conftest.err
! 58325: } && test -s conftest$ac_exeext &&
! 58326: $as_test_x conftest$ac_exeext; then
! 58327: ac_cv_lib_gd_gdImageConvolution=yes
1.1 misho 58328: else
1.1.1.3 ! misho 58329: echo "$as_me: failed program was:" >&5
! 58330: sed 's/^/| /' conftest.$ac_ext >&5
! 58331:
! 58332: ac_cv_lib_gd_gdImageConvolution=no
1.1 misho 58333: fi
1.1.1.3 ! misho 58334:
! 58335: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 58336: conftest$ac_exeext conftest.$ac_ext
1.1 misho 58337: LIBS=$ac_check_lib_save_LIBS
58338: fi
1.1.1.3 ! misho 58339: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageConvolution" >&5
! 58340: echo "${ECHO_T}$ac_cv_lib_gd_gdImageConvolution" >&6; }
! 58341: if test $ac_cv_lib_gd_gdImageConvolution = yes; then
1.1 misho 58342:
58343: LDFLAGS=$save_old_LDFLAGS
58344: ext_shared=$save_ext_shared
58345:
1.1.1.3 ! misho 58346: cat >>confdefs.h <<\_ACEOF
! 58347: #define HAVE_GD_IMAGE_CONVOLUTION 1
! 58348: _ACEOF
1.1 misho 58349:
58350:
58351: else
58352:
58353: LDFLAGS=$save_old_LDFLAGS
58354: ext_shared=$save_ext_shared
1.1.1.3 ! misho 58355: unset ac_cv_lib_gd_gdImageConvolution
1.1 misho 58356:
58357:
58358: fi
58359:
58360:
58361: save_old_LDFLAGS=$LDFLAGS
58362: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
58363:
58364: save_ext_shared=$ext_shared
58365: ext_shared=yes
58366:
58367: for ac_i in $ac_stuff; do
58368: case $ac_i in
58369: -pthread)
58370: if test "$ext_shared" = "yes"; then
58371: LDFLAGS="$LDFLAGS -pthread"
58372: else
58373:
58374:
58375: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58376:
58377: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58378: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58379: eval "EXTRA_LDFLAGS$unique=set"
58380: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58381: fi
58382:
58383: fi
58384: ;;
58385: -l*)
58386: ac_ii=`echo $ac_i|cut -c 3-`
58387:
58388:
58389: case $ac_ii in
58390: c|c_r|pthread*) ;;
58391: *)
58392: if test "$ext_shared" = "yes"; then
58393: LDFLAGS="$LDFLAGS -l$ac_ii"
58394: else
58395:
58396:
58397: case $ac_ii in
58398: c|c_r|pthread*) ;;
58399: *)
58400: LIBS="$LIBS -l$ac_ii"
58401: ;;
58402: esac
58403:
58404:
58405: fi
58406: ;;
58407: esac
58408:
58409:
58410: ;;
58411: -L*)
58412: ac_ii=`echo $ac_i|cut -c 3-`
58413:
58414: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58415:
58416: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58417: ai_p=$ac_ii
58418: else
58419:
58420: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58421:
58422: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58423: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58424: fi
58425:
58426:
58427: if test "$ext_shared" = "yes"; then
58428: LDFLAGS="-L$ai_p $LDFLAGS"
58429: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58430: else
58431:
58432:
58433:
58434: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58435:
58436: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58437: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58438: eval "LIBPATH$unique=set"
58439:
58440: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58441: LDFLAGS="$LDFLAGS -L$ai_p"
58442: PHP_RPATHS="$PHP_RPATHS $ai_p"
58443:
58444: fi
58445:
58446:
58447: fi
58448:
58449: fi
58450:
58451: ;;
58452: esac
58453: done
58454:
1.1.1.3 ! misho 58455: { echo "$as_me:$LINENO: checking for gdImagePixelate in -lgd" >&5
! 58456: echo $ECHO_N "checking for gdImagePixelate in -lgd... $ECHO_C" >&6; }
! 58457: if test "${ac_cv_lib_gd_gdImagePixelate+set}" = set; then
! 58458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 58459: else
58460: ac_check_lib_save_LIBS=$LIBS
58461: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 58462: cat >conftest.$ac_ext <<_ACEOF
! 58463: /* confdefs.h. */
! 58464: _ACEOF
! 58465: cat confdefs.h >>conftest.$ac_ext
! 58466: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 58467: /* end confdefs.h. */
58468:
58469: /* Override any GCC internal prototype to avoid an error.
58470: Use char because int might match the return type of a GCC
58471: builtin and then its argument prototype would still apply. */
58472: #ifdef __cplusplus
58473: extern "C"
58474: #endif
1.1.1.3 ! misho 58475: char gdImagePixelate ();
1.1 misho 58476: int
58477: main ()
58478: {
1.1.1.3 ! misho 58479: return gdImagePixelate ();
1.1 misho 58480: ;
58481: return 0;
58482: }
58483: _ACEOF
1.1.1.3 ! misho 58484: rm -f conftest.$ac_objext conftest$ac_exeext
! 58485: if { (ac_try="$ac_link"
! 58486: case "(($ac_try" in
! 58487: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 58488: *) ac_try_echo=$ac_try;;
! 58489: esac
! 58490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 58491: (eval "$ac_link") 2>conftest.er1
! 58492: ac_status=$?
! 58493: grep -v '^ *+' conftest.er1 >conftest.err
! 58494: rm -f conftest.er1
! 58495: cat conftest.err >&5
! 58496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 58497: (exit $ac_status); } && {
! 58498: test -z "$ac_c_werror_flag" ||
! 58499: test ! -s conftest.err
! 58500: } && test -s conftest$ac_exeext &&
! 58501: $as_test_x conftest$ac_exeext; then
! 58502: ac_cv_lib_gd_gdImagePixelate=yes
1.1 misho 58503: else
1.1.1.3 ! misho 58504: echo "$as_me: failed program was:" >&5
! 58505: sed 's/^/| /' conftest.$ac_ext >&5
! 58506:
! 58507: ac_cv_lib_gd_gdImagePixelate=no
1.1 misho 58508: fi
1.1.1.3 ! misho 58509:
! 58510: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 58511: conftest$ac_exeext conftest.$ac_ext
1.1 misho 58512: LIBS=$ac_check_lib_save_LIBS
58513: fi
1.1.1.3 ! misho 58514: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePixelate" >&5
! 58515: echo "${ECHO_T}$ac_cv_lib_gd_gdImagePixelate" >&6; }
! 58516: if test $ac_cv_lib_gd_gdImagePixelate = yes; then
1.1 misho 58517:
58518: LDFLAGS=$save_old_LDFLAGS
58519: ext_shared=$save_ext_shared
58520:
1.1.1.3 ! misho 58521: cat >>confdefs.h <<\_ACEOF
! 58522: #define HAVE_GD_IMAGE_PIXELATE 1
! 58523: _ACEOF
1.1 misho 58524:
58525:
58526: else
58527:
58528: LDFLAGS=$save_old_LDFLAGS
58529: ext_shared=$save_ext_shared
1.1.1.3 ! misho 58530: unset ac_cv_lib_gd_gdImagePixelate
1.1 misho 58531:
58532:
58533: fi
58534:
58535:
58536: elif test -z "$GD_INCLUDE"; then
1.1.1.3 ! misho 58537: { { echo "$as_me:$LINENO: error: Unable to find gd.h anywhere under $PHP_GD" >&5
! 58538: echo "$as_me: error: Unable to find gd.h anywhere under $PHP_GD" >&2;}
! 58539: { (exit 1); exit 1; }; }
! 58540: else
! 58541: { { echo "$as_me:$LINENO: error: Unable to find libgd.(a|so) anywhere under $PHP_GD" >&5
! 58542: echo "$as_me: error: Unable to find libgd.(a|so) anywhere under $PHP_GD" >&2;}
! 58543: { (exit 1); exit 1; }; }
1.1 misho 58544: fi
58545:
58546:
58547: if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
58548: GD_INCLUDE=$GD_INCLUDE
58549: else
58550:
58551: ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
58552:
58553: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58554: GD_INCLUDE="$ep_realdir/`basename \"$GD_INCLUDE\"`"
58555: fi
58556:
58557:
58558: old_CPPFLAGS=$CPPFLAGS
58559: CPPFLAGS=-I$GD_INCLUDE
1.1.1.3 ! misho 58560: cat >conftest.$ac_ext <<_ACEOF
! 58561: /* confdefs.h. */
! 58562: _ACEOF
! 58563: cat confdefs.h >>conftest.$ac_ext
! 58564: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 58565: /* end confdefs.h. */
58566:
58567: #include <gd.h>
58568: #include <stdlib.h>
58569:
58570: int
58571: main ()
58572: {
58573:
58574: gdIOCtx *ctx;
58575: ctx = malloc(sizeof(gdIOCtx));
58576: ctx->gd_free = 1;
58577:
58578: ;
58579: return 0;
58580: }
58581: _ACEOF
1.1.1.3 ! misho 58582: rm -f conftest.$ac_objext
! 58583: if { (ac_try="$ac_compile"
! 58584: case "(($ac_try" in
! 58585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 58586: *) ac_try_echo=$ac_try;;
! 58587: esac
! 58588: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 58589: (eval "$ac_compile") 2>conftest.er1
! 58590: ac_status=$?
! 58591: grep -v '^ *+' conftest.er1 >conftest.err
! 58592: rm -f conftest.er1
! 58593: cat conftest.err >&5
! 58594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 58595: (exit $ac_status); } && {
! 58596: test -z "$ac_c_werror_flag" ||
! 58597: test ! -s conftest.err
! 58598: } && test -s conftest.$ac_objext; then
! 58599:
! 58600:
! 58601: cat >>confdefs.h <<\_ACEOF
! 58602: #define HAVE_LIBGD204 1
! 58603: _ACEOF
1.1 misho 58604:
58605:
1.1.1.3 ! misho 58606: else
! 58607: echo "$as_me: failed program was:" >&5
! 58608: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 58609:
58610:
58611: fi
1.1.1.3 ! misho 58612:
1.1 misho 58613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58614: CPPFLAGS=$old_CPPFLAGS
58615:
58616: fi
58617: fi
58618:
58619: if test "$PHP_GD" != "no"; then
58620:
58621: ext_builddir=ext/gd
58622: ext_srcdir=$abs_srcdir/ext/gd
58623:
58624: ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
58625:
58626: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
58627: PHP_GD_SHARED=no
58628:
58629:
58630: case ext/gd in
58631: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58632: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58633: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58634: esac
58635:
58636:
58637:
58638: b_c_pre=$php_c_pre
58639: b_cxx_pre=$php_cxx_pre
58640: b_c_meta=$php_c_meta
58641: b_cxx_meta=$php_cxx_meta
58642: b_c_post=$php_c_post
58643: b_cxx_post=$php_cxx_post
58644: b_lo=$php_lo
58645:
58646:
58647: old_IFS=$IFS
58648: for ac_src in gd.c $extra_sources; do
58649:
58650: IFS=.
58651: set $ac_src
58652: ac_obj=$1
58653: IFS=$old_IFS
58654:
58655: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
58656:
58657: case $ac_src in
58658: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58659: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58660: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58661: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58662: esac
58663:
58664: cat >>Makefile.objects<<EOF
58665: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58666: $ac_comp
58667: EOF
58668: done
58669:
58670:
58671: EXT_STATIC="$EXT_STATIC gd"
58672: if test "$ext_shared" != "nocli"; then
58673: EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
58674: fi
58675: else
58676: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
58677: PHP_GD_SHARED=yes
58678:
58679: case ext/gd in
58680: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58681: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58682: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58683: esac
58684:
58685:
58686:
58687: b_c_pre=$shared_c_pre
58688: b_cxx_pre=$shared_cxx_pre
58689: b_c_meta=$shared_c_meta
58690: b_cxx_meta=$shared_cxx_meta
58691: b_c_post=$shared_c_post
58692: b_cxx_post=$shared_cxx_post
58693: b_lo=$shared_lo
58694:
58695:
58696: old_IFS=$IFS
58697: for ac_src in gd.c $extra_sources; do
58698:
58699: IFS=.
58700: set $ac_src
58701: ac_obj=$1
58702: IFS=$old_IFS
58703:
58704: shared_objects_gd="$shared_objects_gd $ac_bdir$ac_obj.lo"
58705:
58706: case $ac_src in
58707: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58708: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58709: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58710: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58711: esac
58712:
58713: cat >>Makefile.objects<<EOF
58714: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58715: $ac_comp
58716: EOF
58717: done
58718:
58719: case $host_alias in
58720: *netware*)
58721:
58722: install_modules="install-modules"
58723:
58724: case $host_alias in
58725: *aix*)
58726: suffix=so
58727: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(PHPGD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgd.so '$ext_builddir'/phpgd.so'
58728: ;;
58729: *netware*)
58730: suffix=nlm
58731: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) -L$(top_builddir)/netware -lphp5lib $(GD_SHARED_LIBADD)'
58732: ;;
58733: *)
58734: suffix=la
58735: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(PHPGD_SHARED_LIBADD)'
58736: ;;
58737: esac
58738:
58739: if test "x" = "xyes"; then
58740: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgd.$suffix"
58741: else
58742: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgd.$suffix"
58743: fi
58744:
58745: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
58746:
58747: cat >>Makefile.objects<<EOF
58748: \$(phplibdir)/phpgd.$suffix: $ext_builddir/phpgd.$suffix
58749: \$(LIBTOOL) --mode=install cp $ext_builddir/phpgd.$suffix \$(phplibdir)
58750:
58751: $ext_builddir/phpgd.$suffix: \$(shared_objects_gd) \$(PHPGD_SHARED_DEPENDENCIES)
58752: $link_cmd
58753:
58754: EOF
58755:
58756: ;;
58757: *)
58758:
58759: install_modules="install-modules"
58760:
58761: case $host_alias in
58762: *aix*)
58763: suffix=so
58764: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(GD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gd.so '$ext_builddir'/gd.so'
58765: ;;
58766: *netware*)
58767: suffix=nlm
58768: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
58769: ;;
58770: *)
58771: suffix=la
58772: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(GD_SHARED_LIBADD)'
58773: ;;
58774: esac
58775:
58776: if test "x" = "xyes"; then
58777: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gd.$suffix"
58778: else
58779: PHP_MODULES="$PHP_MODULES \$(phplibdir)/gd.$suffix"
58780: fi
58781:
58782: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
58783:
58784: cat >>Makefile.objects<<EOF
58785: \$(phplibdir)/gd.$suffix: $ext_builddir/gd.$suffix
58786: \$(LIBTOOL) --mode=install cp $ext_builddir/gd.$suffix \$(phplibdir)
58787:
58788: $ext_builddir/gd.$suffix: \$(shared_objects_gd) \$(GD_SHARED_DEPENDENCIES)
58789: $link_cmd
58790:
58791: EOF
58792:
58793: ;;
58794: esac
58795:
58796: cat >>confdefs.h <<_ACEOF
58797: #define COMPILE_DL_GD 1
58798: _ACEOF
58799:
58800: fi
58801: fi
58802:
58803: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
58804: PHP_GD_SHARED=no
1.1.1.3 ! misho 58805: case "$PHP_SAPI" in
! 58806: cgi|embed)
1.1 misho 58807:
58808:
58809: case ext/gd in
58810: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58811: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58812: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58813: esac
58814:
58815:
58816:
58817: b_c_pre=$php_c_pre
58818: b_cxx_pre=$php_cxx_pre
58819: b_c_meta=$php_c_meta
58820: b_cxx_meta=$php_cxx_meta
58821: b_c_post=$php_c_post
58822: b_cxx_post=$php_cxx_post
58823: b_lo=$php_lo
58824:
58825:
58826: old_IFS=$IFS
58827: for ac_src in gd.c $extra_sources; do
58828:
58829: IFS=.
58830: set $ac_src
58831: ac_obj=$1
58832: IFS=$old_IFS
58833:
1.1.1.2 misho 58834: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 58835:
58836: case $ac_src in
58837: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58838: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58839: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58840: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58841: esac
58842:
58843: cat >>Makefile.objects<<EOF
58844: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58845: $ac_comp
58846: EOF
58847: done
58848:
58849:
1.1.1.3 ! misho 58850: EXT_STATIC="$EXT_STATIC gd"
! 58851: ;;
! 58852: *)
1.1 misho 58853:
58854:
58855: case ext/gd in
58856: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58857: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58858: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58859: esac
58860:
58861:
58862:
58863: b_c_pre=$php_c_pre
58864: b_cxx_pre=$php_cxx_pre
58865: b_c_meta=$php_c_meta
58866: b_cxx_meta=$php_cxx_meta
58867: b_c_post=$php_c_post
58868: b_cxx_post=$php_cxx_post
58869: b_lo=$php_lo
58870:
58871:
58872: old_IFS=$IFS
58873: for ac_src in gd.c $extra_sources; do
58874:
58875: IFS=.
58876: set $ac_src
58877: ac_obj=$1
58878: IFS=$old_IFS
58879:
1.1.1.2 misho 58880: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 58881:
58882: case $ac_src in
58883: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58884: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58885: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58886: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58887: esac
58888:
58889: cat >>Makefile.objects<<EOF
58890: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58891: $ac_comp
58892: EOF
58893: done
58894:
58895:
1.1.1.3 ! misho 58896: ;;
! 58897: esac
1.1 misho 58898: EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
58899: fi
58900:
58901:
58902: BUILD_DIR="$BUILD_DIR $ext_builddir"
58903:
58904:
58905:
58906: if test "$ext_builddir" = "."; then
58907: PHP_PECL_EXTENSION=gd
58908:
58909: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
58910:
58911: fi
58912:
58913:
58914:
58915:
58916: BUILD_DIR="$BUILD_DIR $ext_builddir/libgd"
58917:
58918:
58919:
58920: if test "$GD_MODULE_TYPE" = "builtin"; then
58921: GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
58922: GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
58923:
58924:
58925: old_LIBS=$LIBS
58926: LIBS=" $GD_SHARED_LIBADD $LIBS"
1.1.1.3 ! misho 58927: if test "$cross_compiling" = yes; then
1.1 misho 58928:
58929: LIBS=$old_LIBS
58930:
58931: else
1.1.1.3 ! misho 58932: cat >conftest.$ac_ext <<_ACEOF
! 58933: /* confdefs.h. */
! 58934: _ACEOF
! 58935: cat confdefs.h >>conftest.$ac_ext
! 58936: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 58937: /* end confdefs.h. */
58938:
58939: char foobar () {}
58940: char foobar();
58941: int main() {
58942: foobar();
58943: return 0;
58944: }
58945:
58946: _ACEOF
1.1.1.3 ! misho 58947: rm -f conftest$ac_exeext
! 58948: if { (ac_try="$ac_link"
! 58949: case "(($ac_try" in
! 58950: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 58951: *) ac_try_echo=$ac_try;;
! 58952: esac
! 58953: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 58954: (eval "$ac_link") 2>&5
! 58955: ac_status=$?
! 58956: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 58957: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 58958: { (case "(($ac_try" in
! 58959: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 58960: *) ac_try_echo=$ac_try;;
! 58961: esac
! 58962: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 58963: (eval "$ac_try") 2>&5
! 58964: ac_status=$?
! 58965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 58966: (exit $ac_status); }; }; then
1.1 misho 58967:
58968: LIBS=$old_LIBS
58969:
58970:
58971: else
1.1.1.3 ! misho 58972: echo "$as_me: program exited with status $ac_status" >&5
! 58973: echo "$as_me: failed program was:" >&5
! 58974: sed 's/^/| /' conftest.$ac_ext >&5
! 58975:
! 58976: ( exit $ac_status )
1.1 misho 58977:
58978: LIBS=$old_LIBS
58979:
1.1.1.3 ! misho 58980: { { echo "$as_me:$LINENO: error: GD build test failed. Please check the config.log for details." >&5
! 58981: echo "$as_me: error: GD build test failed. Please check the config.log for details." >&2;}
! 58982: { (exit 1); exit 1; }; }
1.1 misho 58983:
58984:
58985: fi
1.1.1.3 ! misho 58986: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 58987: fi
58988:
58989:
1.1.1.3 ! misho 58990:
1.1 misho 58991: else
58992: GD_HEADER_DIRS="ext/gd/"
58993: GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
58994:
58995: if test "$GD_INCLUDE" != "/usr/include"; then
58996:
58997: if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
58998: ai_p=$GD_INCLUDE
58999: else
59000:
59001: ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
59002:
59003: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59004: ai_p="$ep_realdir/`basename \"$GD_INCLUDE\"`"
59005: fi
59006:
59007:
59008:
59009: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59010:
59011: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59012: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59013: eval "INCLUDEPATH$unique=set"
59014:
59015: if test ""; then
59016: INCLUDES="-I$ai_p $INCLUDES"
59017: else
59018: INCLUDES="$INCLUDES -I$ai_p"
59019: fi
59020:
59021: fi
59022:
59023: fi
59024:
59025:
59026: save_old_LDFLAGS=$LDFLAGS
59027: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
59028:
59029: save_ext_shared=$ext_shared
59030: ext_shared=yes
59031:
59032: for ac_i in $ac_stuff; do
59033: case $ac_i in
59034: -pthread)
59035: if test "$ext_shared" = "yes"; then
59036: LDFLAGS="$LDFLAGS -pthread"
59037: else
59038:
59039:
59040: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
59041:
59042: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
59043: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59044: eval "EXTRA_LDFLAGS$unique=set"
59045: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
59046: fi
59047:
59048: fi
59049: ;;
59050: -l*)
59051: ac_ii=`echo $ac_i|cut -c 3-`
59052:
59053:
59054: case $ac_ii in
59055: c|c_r|pthread*) ;;
59056: *)
59057: if test "$ext_shared" = "yes"; then
59058: LDFLAGS="$LDFLAGS -l$ac_ii"
59059: else
59060:
59061:
59062: case $ac_ii in
59063: c|c_r|pthread*) ;;
59064: *)
59065: LIBS="$LIBS -l$ac_ii"
59066: ;;
59067: esac
59068:
59069:
59070: fi
59071: ;;
59072: esac
59073:
59074:
59075: ;;
59076: -L*)
59077: ac_ii=`echo $ac_i|cut -c 3-`
59078:
59079: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
59080:
59081: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
59082: ai_p=$ac_ii
59083: else
59084:
59085: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
59086:
59087: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59088: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
59089: fi
59090:
59091:
59092: if test "$ext_shared" = "yes"; then
59093: LDFLAGS="-L$ai_p $LDFLAGS"
59094: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
59095: else
59096:
59097:
59098:
59099: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59100:
59101: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59102: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59103: eval "LIBPATH$unique=set"
59104:
59105: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59106: LDFLAGS="$LDFLAGS -L$ai_p"
59107: PHP_RPATHS="$PHP_RPATHS $ai_p"
59108:
59109: fi
59110:
59111:
59112: fi
59113:
59114: fi
59115:
59116: ;;
59117: esac
59118: done
59119:
1.1.1.3 ! misho 59120: { echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
! 59121: echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6; }
! 59122: if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then
! 59123: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 59124: else
59125: ac_check_lib_save_LIBS=$LIBS
59126: LIBS="-lgd $LIBS"
1.1.1.3 ! misho 59127: cat >conftest.$ac_ext <<_ACEOF
! 59128: /* confdefs.h. */
! 59129: _ACEOF
! 59130: cat confdefs.h >>conftest.$ac_ext
! 59131: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 59132: /* end confdefs.h. */
59133:
59134: /* Override any GCC internal prototype to avoid an error.
59135: Use char because int might match the return type of a GCC
59136: builtin and then its argument prototype would still apply. */
59137: #ifdef __cplusplus
59138: extern "C"
59139: #endif
59140: char gdImageCreate ();
59141: int
59142: main ()
59143: {
59144: return gdImageCreate ();
59145: ;
59146: return 0;
59147: }
59148: _ACEOF
1.1.1.3 ! misho 59149: rm -f conftest.$ac_objext conftest$ac_exeext
! 59150: if { (ac_try="$ac_link"
! 59151: case "(($ac_try" in
! 59152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 59153: *) ac_try_echo=$ac_try;;
! 59154: esac
! 59155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 59156: (eval "$ac_link") 2>conftest.er1
! 59157: ac_status=$?
! 59158: grep -v '^ *+' conftest.er1 >conftest.err
! 59159: rm -f conftest.er1
! 59160: cat conftest.err >&5
! 59161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 59162: (exit $ac_status); } && {
! 59163: test -z "$ac_c_werror_flag" ||
! 59164: test ! -s conftest.err
! 59165: } && test -s conftest$ac_exeext &&
! 59166: $as_test_x conftest$ac_exeext; then
1.1 misho 59167: ac_cv_lib_gd_gdImageCreate=yes
59168: else
1.1.1.3 ! misho 59169: echo "$as_me: failed program was:" >&5
! 59170: sed 's/^/| /' conftest.$ac_ext >&5
! 59171:
! 59172: ac_cv_lib_gd_gdImageCreate=no
1.1 misho 59173: fi
1.1.1.3 ! misho 59174:
! 59175: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 59176: conftest$ac_exeext conftest.$ac_ext
1.1 misho 59177: LIBS=$ac_check_lib_save_LIBS
59178: fi
1.1.1.3 ! misho 59179: { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
! 59180: echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6; }
! 59181: if test $ac_cv_lib_gd_gdImageCreate = yes; then
1.1 misho 59182:
59183: LDFLAGS=$save_old_LDFLAGS
59184: ext_shared=$save_ext_shared
59185:
59186:
59187: else
59188:
59189: LDFLAGS=$save_old_LDFLAGS
59190: ext_shared=$save_ext_shared
59191: unset ac_cv_lib_gd_gdImageCreate
59192:
1.1.1.3 ! misho 59193: { { echo "$as_me:$LINENO: error: GD build test failed. Please check the config.log for details." >&5
! 59194: echo "$as_me: error: GD build test failed. Please check the config.log for details." >&2;}
! 59195: { (exit 1); exit 1; }; }
1.1 misho 59196:
59197:
59198: fi
59199:
59200: fi
59201:
59202:
59203:
59204: for header_file in $GD_HEADER_DIRS; do
59205:
59206:
59207: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
59208:
59209: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
59210: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59211: eval "INSTALLHEADERS$unique=set"
59212:
59213: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
59214:
59215: fi
59216:
59217: done
59218:
59219:
59220:
59221: PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS"
59222:
59223:
59224: PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD"
59225:
59226: fi
59227:
59228:
59229:
59230: php_with_gettext=no
59231:
1.1.1.3 ! misho 59232: { echo "$as_me:$LINENO: checking for GNU gettext support" >&5
! 59233: echo $ECHO_N "checking for GNU gettext support... $ECHO_C" >&6; }
1.1 misho 59234:
59235: # Check whether --with-gettext was given.
1.1.1.3 ! misho 59236: if test "${with_gettext+set}" = set; then
1.1 misho 59237: withval=$with_gettext; PHP_GETTEXT=$withval
59238: else
59239:
59240: PHP_GETTEXT=no
59241: test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL
59242:
59243: fi
59244:
59245:
59246:
59247: ext_output="yes, shared"
59248: ext_shared=yes
59249: case $PHP_GETTEXT in
59250: shared,*)
59251: PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'`
59252: ;;
59253: shared)
59254: PHP_GETTEXT=yes
59255: ;;
59256: no)
59257: ext_output=no
59258: ext_shared=no
59259: ;;
59260: *)
59261: ext_output=yes
59262: ext_shared=no
59263: ;;
59264: esac
59265:
59266:
59267:
1.1.1.3 ! misho 59268: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 59269: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 59270:
59271:
59272:
59273:
59274: if test "$PHP_GETTEXT" != "no"; then
59275: for i in $PHP_GETTEXT /usr/local /usr; do
59276: test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
59277: done
59278:
59279: if test -z "$GETTEXT_DIR"; then
1.1.1.3 ! misho 59280: { { echo "$as_me:$LINENO: error: Cannot locate header file libintl.h" >&5
! 59281: echo "$as_me: error: Cannot locate header file libintl.h" >&2;}
! 59282: { (exit 1); exit 1; }; }
1.1 misho 59283: fi
59284:
59285: GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
59286: GETTEXT_INCDIR=$GETTEXT_DIR/include
59287:
59288: O_LDFLAGS=$LDFLAGS
59289: LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"
1.1.1.3 ! misho 59290: { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
! 59291: echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
! 59292: if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
! 59293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 59294: else
59295: ac_check_lib_save_LIBS=$LIBS
59296: LIBS="-lintl $LIBS"
1.1.1.3 ! misho 59297: cat >conftest.$ac_ext <<_ACEOF
! 59298: /* confdefs.h. */
! 59299: _ACEOF
! 59300: cat confdefs.h >>conftest.$ac_ext
! 59301: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 59302: /* end confdefs.h. */
59303:
59304: /* Override any GCC internal prototype to avoid an error.
59305: Use char because int might match the return type of a GCC
59306: builtin and then its argument prototype would still apply. */
59307: #ifdef __cplusplus
59308: extern "C"
59309: #endif
59310: char bindtextdomain ();
59311: int
59312: main ()
59313: {
59314: return bindtextdomain ();
59315: ;
59316: return 0;
59317: }
59318: _ACEOF
1.1.1.3 ! misho 59319: rm -f conftest.$ac_objext conftest$ac_exeext
! 59320: if { (ac_try="$ac_link"
! 59321: case "(($ac_try" in
! 59322: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 59323: *) ac_try_echo=$ac_try;;
! 59324: esac
! 59325: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 59326: (eval "$ac_link") 2>conftest.er1
! 59327: ac_status=$?
! 59328: grep -v '^ *+' conftest.er1 >conftest.err
! 59329: rm -f conftest.er1
! 59330: cat conftest.err >&5
! 59331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 59332: (exit $ac_status); } && {
! 59333: test -z "$ac_c_werror_flag" ||
! 59334: test ! -s conftest.err
! 59335: } && test -s conftest$ac_exeext &&
! 59336: $as_test_x conftest$ac_exeext; then
1.1 misho 59337: ac_cv_lib_intl_bindtextdomain=yes
59338: else
1.1.1.3 ! misho 59339: echo "$as_me: failed program was:" >&5
! 59340: sed 's/^/| /' conftest.$ac_ext >&5
! 59341:
! 59342: ac_cv_lib_intl_bindtextdomain=no
1.1 misho 59343: fi
1.1.1.3 ! misho 59344:
! 59345: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 59346: conftest$ac_exeext conftest.$ac_ext
1.1 misho 59347: LIBS=$ac_check_lib_save_LIBS
59348: fi
1.1.1.3 ! misho 59349: { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
! 59350: echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
! 59351: if test $ac_cv_lib_intl_bindtextdomain = yes; then
1.1 misho 59352:
59353: GETTEXT_LIBS=intl
59354: GETTEXT_CHECK_IN_LIB=intl
59355:
59356: else
1.1.1.3 ! misho 59357: { echo "$as_me:$LINENO: checking for bindtextdomain in -lc" >&5
! 59358: echo $ECHO_N "checking for bindtextdomain in -lc... $ECHO_C" >&6; }
! 59359: if test "${ac_cv_lib_c_bindtextdomain+set}" = set; then
! 59360: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 59361: else
59362: ac_check_lib_save_LIBS=$LIBS
59363: LIBS="-lc $LIBS"
1.1.1.3 ! misho 59364: cat >conftest.$ac_ext <<_ACEOF
! 59365: /* confdefs.h. */
! 59366: _ACEOF
! 59367: cat confdefs.h >>conftest.$ac_ext
! 59368: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 59369: /* end confdefs.h. */
59370:
59371: /* Override any GCC internal prototype to avoid an error.
59372: Use char because int might match the return type of a GCC
59373: builtin and then its argument prototype would still apply. */
59374: #ifdef __cplusplus
59375: extern "C"
59376: #endif
59377: char bindtextdomain ();
59378: int
59379: main ()
59380: {
59381: return bindtextdomain ();
59382: ;
59383: return 0;
59384: }
59385: _ACEOF
1.1.1.3 ! misho 59386: rm -f conftest.$ac_objext conftest$ac_exeext
! 59387: if { (ac_try="$ac_link"
! 59388: case "(($ac_try" in
! 59389: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 59390: *) ac_try_echo=$ac_try;;
! 59391: esac
! 59392: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 59393: (eval "$ac_link") 2>conftest.er1
! 59394: ac_status=$?
! 59395: grep -v '^ *+' conftest.er1 >conftest.err
! 59396: rm -f conftest.er1
! 59397: cat conftest.err >&5
! 59398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 59399: (exit $ac_status); } && {
! 59400: test -z "$ac_c_werror_flag" ||
! 59401: test ! -s conftest.err
! 59402: } && test -s conftest$ac_exeext &&
! 59403: $as_test_x conftest$ac_exeext; then
1.1 misho 59404: ac_cv_lib_c_bindtextdomain=yes
59405: else
1.1.1.3 ! misho 59406: echo "$as_me: failed program was:" >&5
! 59407: sed 's/^/| /' conftest.$ac_ext >&5
! 59408:
! 59409: ac_cv_lib_c_bindtextdomain=no
1.1 misho 59410: fi
1.1.1.3 ! misho 59411:
! 59412: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 59413: conftest$ac_exeext conftest.$ac_ext
1.1 misho 59414: LIBS=$ac_check_lib_save_LIBS
59415: fi
1.1.1.3 ! misho 59416: { echo "$as_me:$LINENO: result: $ac_cv_lib_c_bindtextdomain" >&5
! 59417: echo "${ECHO_T}$ac_cv_lib_c_bindtextdomain" >&6; }
! 59418: if test $ac_cv_lib_c_bindtextdomain = yes; then
1.1 misho 59419:
59420: GETTEXT_LIBS=
59421: GETTEXT_CHECK_IN_LIB=c
59422:
59423: else
59424:
1.1.1.3 ! misho 59425: { { echo "$as_me:$LINENO: error: Unable to find required gettext library" >&5
! 59426: echo "$as_me: error: Unable to find required gettext library" >&2;}
! 59427: { (exit 1); exit 1; }; }
1.1 misho 59428:
59429: fi
59430:
59431:
59432: fi
59433:
59434: LDFLAGS=$O_LDFLAGS
59435:
59436:
1.1.1.3 ! misho 59437: cat >>confdefs.h <<\_ACEOF
! 59438: #define HAVE_LIBINTL 1
! 59439: _ACEOF
1.1 misho 59440:
59441:
59442: ext_builddir=ext/gettext
59443: ext_srcdir=$abs_srcdir/ext/gettext
59444:
59445: ac_extra=
59446:
59447: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
59448: PHP_GETTEXT_SHARED=no
59449:
59450:
59451: case ext/gettext in
59452: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59453: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59454: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59455: esac
59456:
59457:
59458:
59459: b_c_pre=$php_c_pre
59460: b_cxx_pre=$php_cxx_pre
59461: b_c_meta=$php_c_meta
59462: b_cxx_meta=$php_cxx_meta
59463: b_c_post=$php_c_post
59464: b_cxx_post=$php_cxx_post
59465: b_lo=$php_lo
59466:
59467:
59468: old_IFS=$IFS
59469: for ac_src in gettext.c; do
59470:
59471: IFS=.
59472: set $ac_src
59473: ac_obj=$1
59474: IFS=$old_IFS
59475:
59476: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59477:
59478: case $ac_src in
59479: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59480: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59481: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59482: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59483: esac
59484:
59485: cat >>Makefile.objects<<EOF
59486: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59487: $ac_comp
59488: EOF
59489: done
59490:
59491:
59492: EXT_STATIC="$EXT_STATIC gettext"
59493: if test "$ext_shared" != "nocli"; then
59494: EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
59495: fi
59496: else
59497: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
59498: PHP_GETTEXT_SHARED=yes
59499:
59500: case ext/gettext in
59501: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59502: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59503: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59504: esac
59505:
59506:
59507:
59508: b_c_pre=$shared_c_pre
59509: b_cxx_pre=$shared_cxx_pre
59510: b_c_meta=$shared_c_meta
59511: b_cxx_meta=$shared_cxx_meta
59512: b_c_post=$shared_c_post
59513: b_cxx_post=$shared_cxx_post
59514: b_lo=$shared_lo
59515:
59516:
59517: old_IFS=$IFS
59518: for ac_src in gettext.c; do
59519:
59520: IFS=.
59521: set $ac_src
59522: ac_obj=$1
59523: IFS=$old_IFS
59524:
59525: shared_objects_gettext="$shared_objects_gettext $ac_bdir$ac_obj.lo"
59526:
59527: case $ac_src in
59528: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59529: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59530: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59531: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59532: esac
59533:
59534: cat >>Makefile.objects<<EOF
59535: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59536: $ac_comp
59537: EOF
59538: done
59539:
59540: case $host_alias in
59541: *netware*)
59542:
59543: install_modules="install-modules"
59544:
59545: case $host_alias in
59546: *aix*)
59547: suffix=so
59548: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgettext.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(PHPGETTEXT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgettext.so '$ext_builddir'/phpgettext.so'
59549: ;;
59550: *netware*)
59551: suffix=nlm
59552: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) -L$(top_builddir)/netware -lphp5lib $(GETTEXT_SHARED_LIBADD)'
59553: ;;
59554: *)
59555: suffix=la
59556: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(PHPGETTEXT_SHARED_LIBADD)'
59557: ;;
59558: esac
59559:
59560: if test "x" = "xyes"; then
59561: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgettext.$suffix"
59562: else
59563: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgettext.$suffix"
59564: fi
59565:
59566: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
59567:
59568: cat >>Makefile.objects<<EOF
59569: \$(phplibdir)/phpgettext.$suffix: $ext_builddir/phpgettext.$suffix
59570: \$(LIBTOOL) --mode=install cp $ext_builddir/phpgettext.$suffix \$(phplibdir)
59571:
59572: $ext_builddir/phpgettext.$suffix: \$(shared_objects_gettext) \$(PHPGETTEXT_SHARED_DEPENDENCIES)
59573: $link_cmd
59574:
59575: EOF
59576:
59577: ;;
59578: *)
59579:
59580: install_modules="install-modules"
59581:
59582: case $host_alias in
59583: *aix*)
59584: suffix=so
59585: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gettext.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(GETTEXT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gettext.so '$ext_builddir'/gettext.so'
59586: ;;
59587: *netware*)
59588: suffix=nlm
59589: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) -L$(top_builddir)/netware -lphp5lib $(TEXT_SHARED_LIBADD)'
59590: ;;
59591: *)
59592: suffix=la
59593: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(GETTEXT_SHARED_LIBADD)'
59594: ;;
59595: esac
59596:
59597: if test "x" = "xyes"; then
59598: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gettext.$suffix"
59599: else
59600: PHP_MODULES="$PHP_MODULES \$(phplibdir)/gettext.$suffix"
59601: fi
59602:
59603: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
59604:
59605: cat >>Makefile.objects<<EOF
59606: \$(phplibdir)/gettext.$suffix: $ext_builddir/gettext.$suffix
59607: \$(LIBTOOL) --mode=install cp $ext_builddir/gettext.$suffix \$(phplibdir)
59608:
59609: $ext_builddir/gettext.$suffix: \$(shared_objects_gettext) \$(GETTEXT_SHARED_DEPENDENCIES)
59610: $link_cmd
59611:
59612: EOF
59613:
59614: ;;
59615: esac
59616:
59617: cat >>confdefs.h <<_ACEOF
59618: #define COMPILE_DL_GETTEXT 1
59619: _ACEOF
59620:
59621: fi
59622: fi
59623:
59624: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
59625: PHP_GETTEXT_SHARED=no
1.1.1.3 ! misho 59626: case "$PHP_SAPI" in
! 59627: cgi|embed)
1.1 misho 59628:
59629:
59630: case ext/gettext in
59631: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59632: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59633: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59634: esac
59635:
59636:
59637:
59638: b_c_pre=$php_c_pre
59639: b_cxx_pre=$php_cxx_pre
59640: b_c_meta=$php_c_meta
59641: b_cxx_meta=$php_cxx_meta
59642: b_c_post=$php_c_post
59643: b_cxx_post=$php_cxx_post
59644: b_lo=$php_lo
59645:
59646:
59647: old_IFS=$IFS
59648: for ac_src in gettext.c; do
59649:
59650: IFS=.
59651: set $ac_src
59652: ac_obj=$1
59653: IFS=$old_IFS
59654:
1.1.1.2 misho 59655: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 59656:
59657: case $ac_src in
59658: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59659: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59660: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59661: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59662: esac
59663:
59664: cat >>Makefile.objects<<EOF
59665: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59666: $ac_comp
59667: EOF
59668: done
59669:
59670:
1.1.1.3 ! misho 59671: EXT_STATIC="$EXT_STATIC gettext"
! 59672: ;;
! 59673: *)
1.1 misho 59674:
59675:
59676: case ext/gettext in
59677: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59678: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59679: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59680: esac
59681:
59682:
59683:
59684: b_c_pre=$php_c_pre
59685: b_cxx_pre=$php_cxx_pre
59686: b_c_meta=$php_c_meta
59687: b_cxx_meta=$php_cxx_meta
59688: b_c_post=$php_c_post
59689: b_cxx_post=$php_cxx_post
59690: b_lo=$php_lo
59691:
59692:
59693: old_IFS=$IFS
59694: for ac_src in gettext.c; do
59695:
59696: IFS=.
59697: set $ac_src
59698: ac_obj=$1
59699: IFS=$old_IFS
59700:
1.1.1.2 misho 59701: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 59702:
59703: case $ac_src in
59704: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59705: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59706: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59707: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59708: esac
59709:
59710: cat >>Makefile.objects<<EOF
59711: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59712: $ac_comp
59713: EOF
59714: done
59715:
59716:
1.1.1.3 ! misho 59717: ;;
! 59718: esac
1.1 misho 59719: EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
59720: fi
59721:
59722:
59723: BUILD_DIR="$BUILD_DIR $ext_builddir"
59724:
59725:
59726:
59727: if test "$ext_builddir" = "."; then
59728: PHP_PECL_EXTENSION=gettext
59729:
59730: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
59731:
59732: fi
59733:
59734:
59735: PHP_VAR_SUBST="$PHP_VAR_SUBST GETTEXT_SHARED_LIBADD"
59736:
59737:
59738: if test -n "$GETTEXT_LIBS"; then
59739:
59740:
59741: if test "$ext_shared" = "yes"; then
59742: GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD"
59743: if test -n "$GETTEXT_LIBDIR"; then
59744:
59745: if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
59746:
59747: if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
59748: ai_p=$GETTEXT_LIBDIR
59749: else
59750:
59751: ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
59752:
59753: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59754: ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
59755: fi
59756:
59757:
59758: if test "$ext_shared" = "yes"; then
59759: GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD"
59760: test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD"
59761: else
59762:
59763:
59764:
59765: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59766:
59767: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59768: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59769: eval "LIBPATH$unique=set"
59770:
59771: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59772: LDFLAGS="$LDFLAGS -L$ai_p"
59773: PHP_RPATHS="$PHP_RPATHS $ai_p"
59774:
59775: fi
59776:
59777:
59778: fi
59779:
59780: fi
59781:
59782: fi
59783: else
59784:
59785:
59786: if test -n "$GETTEXT_LIBDIR"; then
59787:
59788: if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
59789:
59790: if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
59791: ai_p=$GETTEXT_LIBDIR
59792: else
59793:
59794: ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
59795:
59796: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59797: ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
59798: fi
59799:
59800:
59801:
59802:
59803:
59804: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59805:
59806: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59807: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59808: eval "LIBPATH$unique=set"
59809:
59810: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59811: LDFLAGS="$LDFLAGS -L$ai_p"
59812: PHP_RPATHS="$PHP_RPATHS $ai_p"
59813:
59814: fi
59815:
59816:
59817:
59818: fi
59819:
59820: fi
59821:
59822:
59823: case $GETTEXT_LIBS in
59824: c|c_r|pthread*) ;;
59825: *)
59826: LIBS="-l$GETTEXT_LIBS $LIBS"
59827: ;;
59828: esac
59829:
59830:
59831:
59832:
59833: fi
59834:
59835:
59836: fi
59837:
59838:
59839: if test "$GETTEXT_INCDIR" != "/usr/include"; then
59840:
59841: if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then
59842: ai_p=$GETTEXT_INCDIR
59843: else
59844:
59845: ep_dir="`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
59846:
59847: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59848: ai_p="$ep_realdir/`basename \"$GETTEXT_INCDIR\"`"
59849: fi
59850:
59851:
59852:
59853: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59854:
59855: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59856: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59857: eval "INCLUDEPATH$unique=set"
59858:
59859: if test ""; then
59860: INCLUDES="-I$ai_p $INCLUDES"
59861: else
59862: INCLUDES="$INCLUDES -I$ai_p"
59863: fi
59864:
59865: fi
59866:
59867: fi
59868:
59869:
1.1.1.3 ! misho 59870: as_ac_Lib=`echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh`
! 59871: { echo "$as_me:$LINENO: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
! 59872: echo $ECHO_N "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... $ECHO_C" >&6; }
! 59873: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 59874: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 59875: else
59876: ac_check_lib_save_LIBS=$LIBS
59877: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
1.1.1.3 ! misho 59878: cat >conftest.$ac_ext <<_ACEOF
! 59879: /* confdefs.h. */
! 59880: _ACEOF
! 59881: cat confdefs.h >>conftest.$ac_ext
! 59882: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 59883: /* end confdefs.h. */
59884:
59885: /* Override any GCC internal prototype to avoid an error.
59886: Use char because int might match the return type of a GCC
59887: builtin and then its argument prototype would still apply. */
59888: #ifdef __cplusplus
59889: extern "C"
59890: #endif
59891: char ngettext ();
59892: int
59893: main ()
59894: {
59895: return ngettext ();
59896: ;
59897: return 0;
59898: }
59899: _ACEOF
1.1.1.3 ! misho 59900: rm -f conftest.$ac_objext conftest$ac_exeext
! 59901: if { (ac_try="$ac_link"
! 59902: case "(($ac_try" in
! 59903: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 59904: *) ac_try_echo=$ac_try;;
! 59905: esac
! 59906: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 59907: (eval "$ac_link") 2>conftest.er1
! 59908: ac_status=$?
! 59909: grep -v '^ *+' conftest.er1 >conftest.err
! 59910: rm -f conftest.er1
! 59911: cat conftest.err >&5
! 59912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 59913: (exit $ac_status); } && {
! 59914: test -z "$ac_c_werror_flag" ||
! 59915: test ! -s conftest.err
! 59916: } && test -s conftest$ac_exeext &&
! 59917: $as_test_x conftest$ac_exeext; then
1.1 misho 59918: eval "$as_ac_Lib=yes"
59919: else
1.1.1.3 ! misho 59920: echo "$as_me: failed program was:" >&5
! 59921: sed 's/^/| /' conftest.$ac_ext >&5
! 59922:
! 59923: eval "$as_ac_Lib=no"
1.1 misho 59924: fi
1.1.1.3 ! misho 59925:
! 59926: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 59927: conftest$ac_exeext conftest.$ac_ext
1.1 misho 59928: LIBS=$ac_check_lib_save_LIBS
59929: fi
1.1.1.3 ! misho 59930: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 59931: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 59932: echo "${ECHO_T}$ac_res" >&6; }
! 59933: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 59934:
1.1.1.3 ! misho 59935: cat >>confdefs.h <<\_ACEOF
! 59936: #define HAVE_NGETTEXT 1
! 59937: _ACEOF
1.1 misho 59938:
59939: fi
59940:
1.1.1.3 ! misho 59941: as_ac_Lib=`echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh`
! 59942: { echo "$as_me:$LINENO: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
! 59943: echo $ECHO_N "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... $ECHO_C" >&6; }
! 59944: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 59945: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 59946: else
59947: ac_check_lib_save_LIBS=$LIBS
59948: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
1.1.1.3 ! misho 59949: cat >conftest.$ac_ext <<_ACEOF
! 59950: /* confdefs.h. */
! 59951: _ACEOF
! 59952: cat confdefs.h >>conftest.$ac_ext
! 59953: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 59954: /* end confdefs.h. */
59955:
59956: /* Override any GCC internal prototype to avoid an error.
59957: Use char because int might match the return type of a GCC
59958: builtin and then its argument prototype would still apply. */
59959: #ifdef __cplusplus
59960: extern "C"
59961: #endif
59962: char dngettext ();
59963: int
59964: main ()
59965: {
59966: return dngettext ();
59967: ;
59968: return 0;
59969: }
59970: _ACEOF
1.1.1.3 ! misho 59971: rm -f conftest.$ac_objext conftest$ac_exeext
! 59972: if { (ac_try="$ac_link"
! 59973: case "(($ac_try" in
! 59974: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 59975: *) ac_try_echo=$ac_try;;
! 59976: esac
! 59977: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 59978: (eval "$ac_link") 2>conftest.er1
! 59979: ac_status=$?
! 59980: grep -v '^ *+' conftest.er1 >conftest.err
! 59981: rm -f conftest.er1
! 59982: cat conftest.err >&5
! 59983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 59984: (exit $ac_status); } && {
! 59985: test -z "$ac_c_werror_flag" ||
! 59986: test ! -s conftest.err
! 59987: } && test -s conftest$ac_exeext &&
! 59988: $as_test_x conftest$ac_exeext; then
1.1 misho 59989: eval "$as_ac_Lib=yes"
59990: else
1.1.1.3 ! misho 59991: echo "$as_me: failed program was:" >&5
! 59992: sed 's/^/| /' conftest.$ac_ext >&5
! 59993:
! 59994: eval "$as_ac_Lib=no"
1.1 misho 59995: fi
1.1.1.3 ! misho 59996:
! 59997: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 59998: conftest$ac_exeext conftest.$ac_ext
1.1 misho 59999: LIBS=$ac_check_lib_save_LIBS
60000: fi
1.1.1.3 ! misho 60001: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 60002: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 60003: echo "${ECHO_T}$ac_res" >&6; }
! 60004: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 60005:
1.1.1.3 ! misho 60006: cat >>confdefs.h <<\_ACEOF
! 60007: #define HAVE_DNGETTEXT 1
! 60008: _ACEOF
1.1 misho 60009:
60010: fi
60011:
1.1.1.3 ! misho 60012: as_ac_Lib=`echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh`
! 60013: { echo "$as_me:$LINENO: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
! 60014: echo $ECHO_N "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... $ECHO_C" >&6; }
! 60015: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 60016: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 60017: else
60018: ac_check_lib_save_LIBS=$LIBS
60019: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
1.1.1.3 ! misho 60020: cat >conftest.$ac_ext <<_ACEOF
! 60021: /* confdefs.h. */
! 60022: _ACEOF
! 60023: cat confdefs.h >>conftest.$ac_ext
! 60024: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 60025: /* end confdefs.h. */
60026:
60027: /* Override any GCC internal prototype to avoid an error.
60028: Use char because int might match the return type of a GCC
60029: builtin and then its argument prototype would still apply. */
60030: #ifdef __cplusplus
60031: extern "C"
60032: #endif
60033: char dcngettext ();
60034: int
60035: main ()
60036: {
60037: return dcngettext ();
60038: ;
60039: return 0;
60040: }
60041: _ACEOF
1.1.1.3 ! misho 60042: rm -f conftest.$ac_objext conftest$ac_exeext
! 60043: if { (ac_try="$ac_link"
! 60044: case "(($ac_try" in
! 60045: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 60046: *) ac_try_echo=$ac_try;;
! 60047: esac
! 60048: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 60049: (eval "$ac_link") 2>conftest.er1
! 60050: ac_status=$?
! 60051: grep -v '^ *+' conftest.er1 >conftest.err
! 60052: rm -f conftest.er1
! 60053: cat conftest.err >&5
! 60054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 60055: (exit $ac_status); } && {
! 60056: test -z "$ac_c_werror_flag" ||
! 60057: test ! -s conftest.err
! 60058: } && test -s conftest$ac_exeext &&
! 60059: $as_test_x conftest$ac_exeext; then
1.1 misho 60060: eval "$as_ac_Lib=yes"
60061: else
1.1.1.3 ! misho 60062: echo "$as_me: failed program was:" >&5
! 60063: sed 's/^/| /' conftest.$ac_ext >&5
! 60064:
! 60065: eval "$as_ac_Lib=no"
1.1 misho 60066: fi
1.1.1.3 ! misho 60067:
! 60068: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 60069: conftest$ac_exeext conftest.$ac_ext
1.1 misho 60070: LIBS=$ac_check_lib_save_LIBS
60071: fi
1.1.1.3 ! misho 60072: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 60073: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 60074: echo "${ECHO_T}$ac_res" >&6; }
! 60075: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 60076:
1.1.1.3 ! misho 60077: cat >>confdefs.h <<\_ACEOF
! 60078: #define HAVE_DCNGETTEXT 1
! 60079: _ACEOF
1.1 misho 60080:
60081: fi
60082:
1.1.1.3 ! misho 60083: as_ac_Lib=`echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh`
! 60084: { echo "$as_me:$LINENO: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5
! 60085: echo $ECHO_N "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... $ECHO_C" >&6; }
! 60086: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 60087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 60088: else
60089: ac_check_lib_save_LIBS=$LIBS
60090: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
1.1.1.3 ! misho 60091: cat >conftest.$ac_ext <<_ACEOF
! 60092: /* confdefs.h. */
! 60093: _ACEOF
! 60094: cat confdefs.h >>conftest.$ac_ext
! 60095: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 60096: /* end confdefs.h. */
60097:
60098: /* Override any GCC internal prototype to avoid an error.
60099: Use char because int might match the return type of a GCC
60100: builtin and then its argument prototype would still apply. */
60101: #ifdef __cplusplus
60102: extern "C"
60103: #endif
60104: char bind_textdomain_codeset ();
60105: int
60106: main ()
60107: {
60108: return bind_textdomain_codeset ();
60109: ;
60110: return 0;
60111: }
60112: _ACEOF
1.1.1.3 ! misho 60113: rm -f conftest.$ac_objext conftest$ac_exeext
! 60114: if { (ac_try="$ac_link"
! 60115: case "(($ac_try" in
! 60116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 60117: *) ac_try_echo=$ac_try;;
! 60118: esac
! 60119: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 60120: (eval "$ac_link") 2>conftest.er1
! 60121: ac_status=$?
! 60122: grep -v '^ *+' conftest.er1 >conftest.err
! 60123: rm -f conftest.er1
! 60124: cat conftest.err >&5
! 60125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 60126: (exit $ac_status); } && {
! 60127: test -z "$ac_c_werror_flag" ||
! 60128: test ! -s conftest.err
! 60129: } && test -s conftest$ac_exeext &&
! 60130: $as_test_x conftest$ac_exeext; then
1.1 misho 60131: eval "$as_ac_Lib=yes"
60132: else
1.1.1.3 ! misho 60133: echo "$as_me: failed program was:" >&5
! 60134: sed 's/^/| /' conftest.$ac_ext >&5
! 60135:
! 60136: eval "$as_ac_Lib=no"
1.1 misho 60137: fi
1.1.1.3 ! misho 60138:
! 60139: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 60140: conftest$ac_exeext conftest.$ac_ext
1.1 misho 60141: LIBS=$ac_check_lib_save_LIBS
60142: fi
1.1.1.3 ! misho 60143: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 60144: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 60145: echo "${ECHO_T}$ac_res" >&6; }
! 60146: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 60147:
1.1.1.3 ! misho 60148: cat >>confdefs.h <<\_ACEOF
! 60149: #define HAVE_BIND_TEXTDOMAIN_CODESET 1
! 60150: _ACEOF
1.1 misho 60151:
60152: fi
60153:
60154:
60155: fi
60156:
60157:
60158:
60159: php_with_gmp=no
60160:
1.1.1.3 ! misho 60161: { echo "$as_me:$LINENO: checking for GNU MP support" >&5
! 60162: echo $ECHO_N "checking for GNU MP support... $ECHO_C" >&6; }
1.1 misho 60163:
60164: # Check whether --with-gmp was given.
1.1.1.3 ! misho 60165: if test "${with_gmp+set}" = set; then
1.1 misho 60166: withval=$with_gmp; PHP_GMP=$withval
60167: else
60168:
60169: PHP_GMP=no
60170: test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL
60171:
60172: fi
60173:
60174:
60175:
60176: ext_output="yes, shared"
60177: ext_shared=yes
60178: case $PHP_GMP in
60179: shared,*)
60180: PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'`
60181: ;;
60182: shared)
60183: PHP_GMP=yes
60184: ;;
60185: no)
60186: ext_output=no
60187: ext_shared=no
60188: ;;
60189: *)
60190: ext_output=yes
60191: ext_shared=no
60192: ;;
60193: esac
60194:
60195:
60196:
1.1.1.3 ! misho 60197: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 60198: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 60199:
60200:
60201:
60202:
60203: if test "$PHP_GMP" != "no"; then
60204:
60205: for i in $PHP_GMP /usr/local /usr; do
60206: test -f $i/include/gmp.h && GMP_DIR=$i && break
60207: done
60208:
60209: if test -z "$GMP_DIR"; then
1.1.1.3 ! misho 60210: { { echo "$as_me:$LINENO: error: Unable to locate gmp.h" >&5
! 60211: echo "$as_me: error: Unable to locate gmp.h" >&2;}
! 60212: { (exit 1); exit 1; }; }
1.1 misho 60213: fi
60214:
60215:
60216: save_old_LDFLAGS=$LDFLAGS
60217: ac_stuff="
60218: -L$GMP_DIR/$PHP_LIBDIR
60219: "
60220:
60221: save_ext_shared=$ext_shared
60222: ext_shared=yes
60223:
60224: for ac_i in $ac_stuff; do
60225: case $ac_i in
60226: -pthread)
60227: if test "$ext_shared" = "yes"; then
60228: LDFLAGS="$LDFLAGS -pthread"
60229: else
60230:
60231:
60232: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60233:
60234: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60235: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60236: eval "EXTRA_LDFLAGS$unique=set"
60237: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60238: fi
60239:
60240: fi
60241: ;;
60242: -l*)
60243: ac_ii=`echo $ac_i|cut -c 3-`
60244:
60245:
60246: case $ac_ii in
60247: c|c_r|pthread*) ;;
60248: *)
60249: if test "$ext_shared" = "yes"; then
60250: LDFLAGS="$LDFLAGS -l$ac_ii"
60251: else
60252:
60253:
60254: case $ac_ii in
60255: c|c_r|pthread*) ;;
60256: *)
60257: LIBS="$LIBS -l$ac_ii"
60258: ;;
60259: esac
60260:
60261:
60262: fi
60263: ;;
60264: esac
60265:
60266:
60267: ;;
60268: -L*)
60269: ac_ii=`echo $ac_i|cut -c 3-`
60270:
60271: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60272:
60273: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60274: ai_p=$ac_ii
60275: else
60276:
60277: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
60278:
60279: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60280: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
60281: fi
60282:
60283:
60284: if test "$ext_shared" = "yes"; then
60285: LDFLAGS="-L$ai_p $LDFLAGS"
60286: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60287: else
60288:
60289:
60290:
60291: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60292:
60293: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60294: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60295: eval "LIBPATH$unique=set"
60296:
60297: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60298: LDFLAGS="$LDFLAGS -L$ai_p"
60299: PHP_RPATHS="$PHP_RPATHS $ai_p"
60300:
60301: fi
60302:
60303:
60304: fi
60305:
60306: fi
60307:
60308: ;;
60309: esac
60310: done
60311:
1.1.1.3 ! misho 60312: { echo "$as_me:$LINENO: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5
! 60313: echo $ECHO_N "checking for __gmp_randinit_lc_2exp_size in -lgmp... $ECHO_C" >&6; }
! 60314: if test "${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+set}" = set; then
! 60315: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 60316: else
60317: ac_check_lib_save_LIBS=$LIBS
60318: LIBS="-lgmp $LIBS"
1.1.1.3 ! misho 60319: cat >conftest.$ac_ext <<_ACEOF
! 60320: /* confdefs.h. */
! 60321: _ACEOF
! 60322: cat confdefs.h >>conftest.$ac_ext
! 60323: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 60324: /* end confdefs.h. */
60325:
60326: /* Override any GCC internal prototype to avoid an error.
60327: Use char because int might match the return type of a GCC
60328: builtin and then its argument prototype would still apply. */
60329: #ifdef __cplusplus
60330: extern "C"
60331: #endif
60332: char __gmp_randinit_lc_2exp_size ();
60333: int
60334: main ()
60335: {
60336: return __gmp_randinit_lc_2exp_size ();
60337: ;
60338: return 0;
60339: }
60340: _ACEOF
1.1.1.3 ! misho 60341: rm -f conftest.$ac_objext conftest$ac_exeext
! 60342: if { (ac_try="$ac_link"
! 60343: case "(($ac_try" in
! 60344: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 60345: *) ac_try_echo=$ac_try;;
! 60346: esac
! 60347: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 60348: (eval "$ac_link") 2>conftest.er1
! 60349: ac_status=$?
! 60350: grep -v '^ *+' conftest.er1 >conftest.err
! 60351: rm -f conftest.er1
! 60352: cat conftest.err >&5
! 60353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 60354: (exit $ac_status); } && {
! 60355: test -z "$ac_c_werror_flag" ||
! 60356: test ! -s conftest.err
! 60357: } && test -s conftest$ac_exeext &&
! 60358: $as_test_x conftest$ac_exeext; then
1.1 misho 60359: ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes
60360: else
1.1.1.3 ! misho 60361: echo "$as_me: failed program was:" >&5
! 60362: sed 's/^/| /' conftest.$ac_ext >&5
! 60363:
! 60364: ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no
1.1 misho 60365: fi
1.1.1.3 ! misho 60366:
! 60367: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 60368: conftest$ac_exeext conftest.$ac_ext
1.1 misho 60369: LIBS=$ac_check_lib_save_LIBS
60370: fi
1.1.1.3 ! misho 60371: { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5
! 60372: echo "${ECHO_T}$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; }
! 60373: if test $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size = yes; then
1.1 misho 60374:
60375: LDFLAGS=$save_old_LDFLAGS
60376: ext_shared=$save_ext_shared
60377:
60378:
60379: else
60380:
60381: LDFLAGS=$save_old_LDFLAGS
60382: ext_shared=$save_ext_shared
60383: unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size
60384:
60385:
60386: save_old_LDFLAGS=$LDFLAGS
60387: ac_stuff="
60388: -L$GMP_DIR/$PHP_LIBDIR
60389: "
60390:
60391: save_ext_shared=$ext_shared
60392: ext_shared=yes
60393:
60394: for ac_i in $ac_stuff; do
60395: case $ac_i in
60396: -pthread)
60397: if test "$ext_shared" = "yes"; then
60398: LDFLAGS="$LDFLAGS -pthread"
60399: else
60400:
60401:
60402: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60403:
60404: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60405: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60406: eval "EXTRA_LDFLAGS$unique=set"
60407: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60408: fi
60409:
60410: fi
60411: ;;
60412: -l*)
60413: ac_ii=`echo $ac_i|cut -c 3-`
60414:
60415:
60416: case $ac_ii in
60417: c|c_r|pthread*) ;;
60418: *)
60419: if test "$ext_shared" = "yes"; then
60420: LDFLAGS="$LDFLAGS -l$ac_ii"
60421: else
60422:
60423:
60424: case $ac_ii in
60425: c|c_r|pthread*) ;;
60426: *)
60427: LIBS="$LIBS -l$ac_ii"
60428: ;;
60429: esac
60430:
60431:
60432: fi
60433: ;;
60434: esac
60435:
60436:
60437: ;;
60438: -L*)
60439: ac_ii=`echo $ac_i|cut -c 3-`
60440:
60441: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60442:
60443: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60444: ai_p=$ac_ii
60445: else
60446:
60447: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
60448:
60449: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60450: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
60451: fi
60452:
60453:
60454: if test "$ext_shared" = "yes"; then
60455: LDFLAGS="-L$ai_p $LDFLAGS"
60456: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60457: else
60458:
60459:
60460:
60461: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60462:
60463: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60464: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60465: eval "LIBPATH$unique=set"
60466:
60467: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60468: LDFLAGS="$LDFLAGS -L$ai_p"
60469: PHP_RPATHS="$PHP_RPATHS $ai_p"
60470:
60471: fi
60472:
60473:
60474: fi
60475:
60476: fi
60477:
60478: ;;
60479: esac
60480: done
60481:
1.1.1.3 ! misho 60482: { echo "$as_me:$LINENO: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5
! 60483: echo $ECHO_N "checking for gmp_randinit_lc_2exp_size in -lgmp... $ECHO_C" >&6; }
! 60484: if test "${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+set}" = set; then
! 60485: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 60486: else
60487: ac_check_lib_save_LIBS=$LIBS
60488: LIBS="-lgmp $LIBS"
1.1.1.3 ! misho 60489: cat >conftest.$ac_ext <<_ACEOF
! 60490: /* confdefs.h. */
! 60491: _ACEOF
! 60492: cat confdefs.h >>conftest.$ac_ext
! 60493: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 60494: /* end confdefs.h. */
60495:
60496: /* Override any GCC internal prototype to avoid an error.
60497: Use char because int might match the return type of a GCC
60498: builtin and then its argument prototype would still apply. */
60499: #ifdef __cplusplus
60500: extern "C"
60501: #endif
60502: char gmp_randinit_lc_2exp_size ();
60503: int
60504: main ()
60505: {
60506: return gmp_randinit_lc_2exp_size ();
60507: ;
60508: return 0;
60509: }
60510: _ACEOF
1.1.1.3 ! misho 60511: rm -f conftest.$ac_objext conftest$ac_exeext
! 60512: if { (ac_try="$ac_link"
! 60513: case "(($ac_try" in
! 60514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 60515: *) ac_try_echo=$ac_try;;
! 60516: esac
! 60517: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 60518: (eval "$ac_link") 2>conftest.er1
! 60519: ac_status=$?
! 60520: grep -v '^ *+' conftest.er1 >conftest.err
! 60521: rm -f conftest.er1
! 60522: cat conftest.err >&5
! 60523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 60524: (exit $ac_status); } && {
! 60525: test -z "$ac_c_werror_flag" ||
! 60526: test ! -s conftest.err
! 60527: } && test -s conftest$ac_exeext &&
! 60528: $as_test_x conftest$ac_exeext; then
1.1 misho 60529: ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes
60530: else
1.1.1.3 ! misho 60531: echo "$as_me: failed program was:" >&5
! 60532: sed 's/^/| /' conftest.$ac_ext >&5
! 60533:
! 60534: ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no
1.1 misho 60535: fi
1.1.1.3 ! misho 60536:
! 60537: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 60538: conftest$ac_exeext conftest.$ac_ext
1.1 misho 60539: LIBS=$ac_check_lib_save_LIBS
60540: fi
1.1.1.3 ! misho 60541: { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5
! 60542: echo "${ECHO_T}$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; }
! 60543: if test $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size = yes; then
1.1 misho 60544:
60545: LDFLAGS=$save_old_LDFLAGS
60546: ext_shared=$save_ext_shared
60547:
60548:
60549: else
60550:
60551: LDFLAGS=$save_old_LDFLAGS
60552: ext_shared=$save_ext_shared
60553: unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size
60554:
1.1.1.3 ! misho 60555: { { echo "$as_me:$LINENO: error: GNU MP Library version 4.1.2 or greater required." >&5
! 60556: echo "$as_me: error: GNU MP Library version 4.1.2 or greater required." >&2;}
! 60557: { (exit 1); exit 1; }; }
1.1 misho 60558:
60559:
60560: fi
60561:
60562:
60563:
60564: fi
60565:
60566:
60567:
60568:
60569: if test "$ext_shared" = "yes"; then
60570: GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD"
60571: if test -n "$GMP_DIR/$PHP_LIBDIR"; then
60572:
60573: if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60574:
60575: if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60576: ai_p=$GMP_DIR/$PHP_LIBDIR
60577: else
60578:
60579: ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60580:
60581: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60582: ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
60583: fi
60584:
60585:
60586: if test "$ext_shared" = "yes"; then
60587: GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD"
60588: test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD"
60589: else
60590:
60591:
60592:
60593: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60594:
60595: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60596: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60597: eval "LIBPATH$unique=set"
60598:
60599: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60600: LDFLAGS="$LDFLAGS -L$ai_p"
60601: PHP_RPATHS="$PHP_RPATHS $ai_p"
60602:
60603: fi
60604:
60605:
60606: fi
60607:
60608: fi
60609:
60610: fi
60611: else
60612:
60613:
60614: if test -n "$GMP_DIR/$PHP_LIBDIR"; then
60615:
60616: if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60617:
60618: if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60619: ai_p=$GMP_DIR/$PHP_LIBDIR
60620: else
60621:
60622: ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60623:
60624: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60625: ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
60626: fi
60627:
60628:
60629:
60630:
60631:
60632: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60633:
60634: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60635: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60636: eval "LIBPATH$unique=set"
60637:
60638: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60639: LDFLAGS="$LDFLAGS -L$ai_p"
60640: PHP_RPATHS="$PHP_RPATHS $ai_p"
60641:
60642: fi
60643:
60644:
60645:
60646: fi
60647:
60648: fi
60649:
60650:
60651: case gmp in
60652: c|c_r|pthread*) ;;
60653: *)
60654: LIBS="-lgmp $LIBS"
60655: ;;
60656: esac
60657:
60658:
60659:
60660:
60661: fi
60662:
60663:
60664:
60665: if test "$GMP_DIR/include" != "/usr/include"; then
60666:
60667: if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then
60668: ai_p=$GMP_DIR/include
60669: else
60670:
60671: ep_dir="`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
60672:
60673: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60674: ai_p="$ep_realdir/`basename \"$GMP_DIR/include\"`"
60675: fi
60676:
60677:
60678:
60679: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60680:
60681: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
60682: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60683: eval "INCLUDEPATH$unique=set"
60684:
60685: if test ""; then
60686: INCLUDES="-I$ai_p $INCLUDES"
60687: else
60688: INCLUDES="$INCLUDES -I$ai_p"
60689: fi
60690:
60691: fi
60692:
60693: fi
60694:
60695:
60696:
60697: ext_builddir=ext/gmp
60698: ext_srcdir=$abs_srcdir/ext/gmp
60699:
60700: ac_extra=
60701:
60702: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
60703: PHP_GMP_SHARED=no
60704:
60705:
60706: case ext/gmp in
60707: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60708: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60709: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60710: esac
60711:
60712:
60713:
60714: b_c_pre=$php_c_pre
60715: b_cxx_pre=$php_cxx_pre
60716: b_c_meta=$php_c_meta
60717: b_cxx_meta=$php_cxx_meta
60718: b_c_post=$php_c_post
60719: b_cxx_post=$php_cxx_post
60720: b_lo=$php_lo
60721:
60722:
60723: old_IFS=$IFS
60724: for ac_src in gmp.c; do
60725:
60726: IFS=.
60727: set $ac_src
60728: ac_obj=$1
60729: IFS=$old_IFS
60730:
60731: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60732:
60733: case $ac_src in
60734: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60735: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60736: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60737: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60738: esac
60739:
60740: cat >>Makefile.objects<<EOF
60741: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60742: $ac_comp
60743: EOF
60744: done
60745:
60746:
60747: EXT_STATIC="$EXT_STATIC gmp"
60748: if test "$ext_shared" != "nocli"; then
60749: EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
60750: fi
60751: else
60752: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
60753: PHP_GMP_SHARED=yes
60754:
60755: case ext/gmp in
60756: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60757: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60758: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60759: esac
60760:
60761:
60762:
60763: b_c_pre=$shared_c_pre
60764: b_cxx_pre=$shared_cxx_pre
60765: b_c_meta=$shared_c_meta
60766: b_cxx_meta=$shared_cxx_meta
60767: b_c_post=$shared_c_post
60768: b_cxx_post=$shared_cxx_post
60769: b_lo=$shared_lo
60770:
60771:
60772: old_IFS=$IFS
60773: for ac_src in gmp.c; do
60774:
60775: IFS=.
60776: set $ac_src
60777: ac_obj=$1
60778: IFS=$old_IFS
60779:
60780: shared_objects_gmp="$shared_objects_gmp $ac_bdir$ac_obj.lo"
60781:
60782: case $ac_src in
60783: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60784: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60785: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60786: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60787: esac
60788:
60789: cat >>Makefile.objects<<EOF
60790: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60791: $ac_comp
60792: EOF
60793: done
60794:
60795: case $host_alias in
60796: *netware*)
60797:
60798: install_modules="install-modules"
60799:
60800: case $host_alias in
60801: *aix*)
60802: suffix=so
60803: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(PHPGMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgmp.so '$ext_builddir'/phpgmp.so'
60804: ;;
60805: *netware*)
60806: suffix=nlm
60807: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) -L$(top_builddir)/netware -lphp5lib $(GMP_SHARED_LIBADD)'
60808: ;;
60809: *)
60810: suffix=la
60811: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(PHPGMP_SHARED_LIBADD)'
60812: ;;
60813: esac
60814:
60815: if test "x" = "xyes"; then
60816: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgmp.$suffix"
60817: else
60818: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgmp.$suffix"
60819: fi
60820:
60821: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
60822:
60823: cat >>Makefile.objects<<EOF
60824: \$(phplibdir)/phpgmp.$suffix: $ext_builddir/phpgmp.$suffix
60825: \$(LIBTOOL) --mode=install cp $ext_builddir/phpgmp.$suffix \$(phplibdir)
60826:
60827: $ext_builddir/phpgmp.$suffix: \$(shared_objects_gmp) \$(PHPGMP_SHARED_DEPENDENCIES)
60828: $link_cmd
60829:
60830: EOF
60831:
60832: ;;
60833: *)
60834:
60835: install_modules="install-modules"
60836:
60837: case $host_alias in
60838: *aix*)
60839: suffix=so
60840: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(GMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gmp.so '$ext_builddir'/gmp.so'
60841: ;;
60842: *netware*)
60843: suffix=nlm
60844: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
60845: ;;
60846: *)
60847: suffix=la
60848: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(GMP_SHARED_LIBADD)'
60849: ;;
60850: esac
60851:
60852: if test "x" = "xyes"; then
60853: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gmp.$suffix"
60854: else
60855: PHP_MODULES="$PHP_MODULES \$(phplibdir)/gmp.$suffix"
60856: fi
60857:
60858: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
60859:
60860: cat >>Makefile.objects<<EOF
60861: \$(phplibdir)/gmp.$suffix: $ext_builddir/gmp.$suffix
60862: \$(LIBTOOL) --mode=install cp $ext_builddir/gmp.$suffix \$(phplibdir)
60863:
60864: $ext_builddir/gmp.$suffix: \$(shared_objects_gmp) \$(GMP_SHARED_DEPENDENCIES)
60865: $link_cmd
60866:
60867: EOF
60868:
60869: ;;
60870: esac
60871:
60872: cat >>confdefs.h <<_ACEOF
60873: #define COMPILE_DL_GMP 1
60874: _ACEOF
60875:
60876: fi
60877: fi
60878:
60879: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
60880: PHP_GMP_SHARED=no
1.1.1.3 ! misho 60881: case "$PHP_SAPI" in
! 60882: cgi|embed)
1.1 misho 60883:
60884:
60885: case ext/gmp in
60886: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60887: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60888: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60889: esac
60890:
60891:
60892:
60893: b_c_pre=$php_c_pre
60894: b_cxx_pre=$php_cxx_pre
60895: b_c_meta=$php_c_meta
60896: b_cxx_meta=$php_cxx_meta
60897: b_c_post=$php_c_post
60898: b_cxx_post=$php_cxx_post
60899: b_lo=$php_lo
60900:
60901:
60902: old_IFS=$IFS
60903: for ac_src in gmp.c; do
60904:
60905: IFS=.
60906: set $ac_src
60907: ac_obj=$1
60908: IFS=$old_IFS
60909:
1.1.1.2 misho 60910: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 60911:
60912: case $ac_src in
60913: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60914: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60915: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60916: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60917: esac
60918:
60919: cat >>Makefile.objects<<EOF
60920: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60921: $ac_comp
60922: EOF
60923: done
60924:
60925:
1.1.1.3 ! misho 60926: EXT_STATIC="$EXT_STATIC gmp"
! 60927: ;;
! 60928: *)
1.1 misho 60929:
60930:
60931: case ext/gmp in
60932: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60933: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60934: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60935: esac
60936:
60937:
60938:
60939: b_c_pre=$php_c_pre
60940: b_cxx_pre=$php_cxx_pre
60941: b_c_meta=$php_c_meta
60942: b_cxx_meta=$php_cxx_meta
60943: b_c_post=$php_c_post
60944: b_cxx_post=$php_cxx_post
60945: b_lo=$php_lo
60946:
60947:
60948: old_IFS=$IFS
60949: for ac_src in gmp.c; do
60950:
60951: IFS=.
60952: set $ac_src
60953: ac_obj=$1
60954: IFS=$old_IFS
60955:
1.1.1.2 misho 60956: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 60957:
60958: case $ac_src in
60959: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60960: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60961: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60962: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60963: esac
60964:
60965: cat >>Makefile.objects<<EOF
60966: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60967: $ac_comp
60968: EOF
60969: done
60970:
60971:
1.1.1.3 ! misho 60972: ;;
! 60973: esac
! 60974: EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
! 60975: fi
1.1 misho 60976:
60977:
1.1.1.3 ! misho 60978: BUILD_DIR="$BUILD_DIR $ext_builddir"
1.1 misho 60979:
60980:
60981:
1.1.1.3 ! misho 60982: if test "$ext_builddir" = "."; then
! 60983: PHP_PECL_EXTENSION=gmp
1.1 misho 60984:
1.1.1.3 ! misho 60985: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
1.1 misho 60986:
1.1.1.3 ! misho 60987: fi
1.1 misho 60988:
60989:
1.1.1.3 ! misho 60990: PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD"
! 60991:
! 60992:
! 60993: cat >>confdefs.h <<\_ACEOF
! 60994: #define HAVE_GMP 1
! 60995: _ACEOF
! 60996:
! 60997: fi
! 60998:
! 60999:
! 61000:
! 61001: php_with_mhash=no
! 61002:
! 61003: { echo "$as_me:$LINENO: checking for mhash support" >&5
! 61004: echo $ECHO_N "checking for mhash support... $ECHO_C" >&6; }
! 61005:
! 61006: # Check whether --with-mhash was given.
! 61007: if test "${with_mhash+set}" = set; then
! 61008: withval=$with_mhash; PHP_MHASH=$withval
! 61009: else
! 61010:
! 61011: PHP_MHASH=no
! 61012: test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL
! 61013:
! 61014: fi
! 61015:
! 61016:
! 61017:
! 61018: ext_output="yes, shared"
! 61019: ext_shared=yes
! 61020: case $PHP_MHASH in
! 61021: shared,*)
! 61022: PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'`
! 61023: ;;
! 61024: shared)
! 61025: PHP_MHASH=yes
! 61026: ;;
! 61027: no)
! 61028: ext_output=no
! 61029: ext_shared=no
! 61030: ;;
! 61031: *)
! 61032: ext_output=yes
! 61033: ext_shared=no
! 61034: ;;
! 61035: esac
! 61036:
! 61037:
! 61038:
! 61039: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 61040: echo "${ECHO_T}$ext_output" >&6; }
! 61041:
! 61042:
! 61043:
! 61044:
! 61045:
! 61046: php_enable_hash=yes
! 61047:
! 61048: { echo "$as_me:$LINENO: checking whether to enable hash support" >&5
! 61049: echo $ECHO_N "checking whether to enable hash support... $ECHO_C" >&6; }
! 61050: # Check whether --enable-hash was given.
! 61051: if test "${enable_hash+set}" = set; then
! 61052: enableval=$enable_hash; PHP_HASH=$enableval
! 61053: else
! 61054:
! 61055: PHP_HASH=yes
! 61056: test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL
! 61057:
! 61058: fi
! 61059:
! 61060:
! 61061:
! 61062: ext_output="yes, shared"
! 61063: ext_shared=yes
! 61064: case $PHP_HASH in
! 61065: shared,*)
! 61066: PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'`
! 61067: ;;
! 61068: shared)
! 61069: PHP_HASH=yes
! 61070: ;;
! 61071: no)
! 61072: ext_output=no
! 61073: ext_shared=no
! 61074: ;;
! 61075: *)
! 61076: ext_output=yes
! 61077: ext_shared=no
! 61078: ;;
! 61079: esac
! 61080:
! 61081:
! 61082:
! 61083: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 61084: echo "${ECHO_T}$ext_output" >&6; }
! 61085:
! 61086:
! 61087:
! 61088:
! 61089: if test "$PHP_MHASH" != "no"; then
! 61090: if test "$PHP_HASH" = "no"; then
! 61091: PHP_HASH="yes"
! 61092: fi
! 61093:
! 61094:
! 61095: cat >>confdefs.h <<\_ACEOF
! 61096: #define PHP_MHASH_BC 1
! 61097: _ACEOF
! 61098:
! 61099: fi
! 61100:
! 61101: if test "$PHP_HASH" != "no"; then
! 61102:
! 61103: cat >>confdefs.h <<\_ACEOF
! 61104: #define HAVE_HASH_EXT 1
! 61105: _ACEOF
! 61106:
! 61107:
! 61108: { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
! 61109: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
! 61110: if test "${ac_cv_c_bigendian_php+set}" = set; then
! 61111: echo $ECHO_N "(cached) $ECHO_C" >&6
! 61112: else
! 61113:
! 61114: ac_cv_c_bigendian_php=unknown
! 61115: if test "$cross_compiling" = yes; then
! 61116: ac_cv_c_bigendian_php=unknown
! 61117: else
! 61118: cat >conftest.$ac_ext <<_ACEOF
! 61119: /* confdefs.h. */
! 61120: _ACEOF
! 61121: cat confdefs.h >>conftest.$ac_ext
! 61122: cat >>conftest.$ac_ext <<_ACEOF
! 61123: /* end confdefs.h. */
! 61124:
! 61125: int main(void)
! 61126: {
! 61127: short one = 1;
! 61128: char *cp = (char *)&one;
! 61129:
! 61130: if (*cp == 0) {
! 61131: return(0);
! 61132: } else {
! 61133: return(1);
! 61134: }
! 61135: }
! 61136:
! 61137: _ACEOF
! 61138: rm -f conftest$ac_exeext
! 61139: if { (ac_try="$ac_link"
! 61140: case "(($ac_try" in
! 61141: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61142: *) ac_try_echo=$ac_try;;
! 61143: esac
! 61144: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61145: (eval "$ac_link") 2>&5
! 61146: ac_status=$?
! 61147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61148: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 61149: { (case "(($ac_try" in
! 61150: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61151: *) ac_try_echo=$ac_try;;
! 61152: esac
! 61153: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61154: (eval "$ac_try") 2>&5
! 61155: ac_status=$?
! 61156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61157: (exit $ac_status); }; }; then
! 61158: ac_cv_c_bigendian_php=yes
! 61159: else
! 61160: echo "$as_me: program exited with status $ac_status" >&5
! 61161: echo "$as_me: failed program was:" >&5
! 61162: sed 's/^/| /' conftest.$ac_ext >&5
! 61163:
! 61164: ( exit $ac_status )
! 61165: ac_cv_c_bigendian_php=no
! 61166: fi
! 61167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 61168: fi
! 61169:
! 61170:
! 61171:
! 61172: fi
! 61173: { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian_php" >&5
! 61174: echo "${ECHO_T}$ac_cv_c_bigendian_php" >&6; }
! 61175: if test $ac_cv_c_bigendian_php = yes; then
! 61176:
! 61177: cat >>confdefs.h <<\_ACEOF
! 61178: #define WORDS_BIGENDIAN
! 61179: _ACEOF
! 61180:
! 61181: fi
! 61182:
! 61183:
! 61184: { echo "$as_me:$LINENO: checking for short" >&5
! 61185: echo $ECHO_N "checking for short... $ECHO_C" >&6; }
! 61186: if test "${ac_cv_type_short+set}" = set; then
! 61187: echo $ECHO_N "(cached) $ECHO_C" >&6
! 61188: else
! 61189: cat >conftest.$ac_ext <<_ACEOF
! 61190: /* confdefs.h. */
! 61191: _ACEOF
! 61192: cat confdefs.h >>conftest.$ac_ext
! 61193: cat >>conftest.$ac_ext <<_ACEOF
! 61194: /* end confdefs.h. */
! 61195: $ac_includes_default
! 61196: typedef short ac__type_new_;
! 61197: int
! 61198: main ()
! 61199: {
! 61200: if ((ac__type_new_ *) 0)
! 61201: return 0;
! 61202: if (sizeof (ac__type_new_))
! 61203: return 0;
! 61204: ;
! 61205: return 0;
! 61206: }
! 61207: _ACEOF
! 61208: rm -f conftest.$ac_objext
! 61209: if { (ac_try="$ac_compile"
! 61210: case "(($ac_try" in
! 61211: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61212: *) ac_try_echo=$ac_try;;
! 61213: esac
! 61214: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61215: (eval "$ac_compile") 2>conftest.er1
! 61216: ac_status=$?
! 61217: grep -v '^ *+' conftest.er1 >conftest.err
! 61218: rm -f conftest.er1
! 61219: cat conftest.err >&5
! 61220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61221: (exit $ac_status); } && {
! 61222: test -z "$ac_c_werror_flag" ||
! 61223: test ! -s conftest.err
! 61224: } && test -s conftest.$ac_objext; then
! 61225: ac_cv_type_short=yes
! 61226: else
! 61227: echo "$as_me: failed program was:" >&5
! 61228: sed 's/^/| /' conftest.$ac_ext >&5
! 61229:
! 61230: ac_cv_type_short=no
! 61231: fi
! 61232:
! 61233: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61234: fi
! 61235: { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
! 61236: echo "${ECHO_T}$ac_cv_type_short" >&6; }
! 61237:
! 61238: # The cast to long int works around a bug in the HP C Compiler
! 61239: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 61240: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 61241: # This bug is HP SR number 8606223364.
! 61242: { echo "$as_me:$LINENO: checking size of short" >&5
! 61243: echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
! 61244: if test "${ac_cv_sizeof_short+set}" = set; then
! 61245: echo $ECHO_N "(cached) $ECHO_C" >&6
! 61246: else
! 61247: if test "$cross_compiling" = yes; then
! 61248: # Depending upon the size, compute the lo and hi bounds.
! 61249: cat >conftest.$ac_ext <<_ACEOF
! 61250: /* confdefs.h. */
! 61251: _ACEOF
! 61252: cat confdefs.h >>conftest.$ac_ext
! 61253: cat >>conftest.$ac_ext <<_ACEOF
! 61254: /* end confdefs.h. */
! 61255: $ac_includes_default
! 61256: typedef short ac__type_sizeof_;
! 61257: int
! 61258: main ()
! 61259: {
! 61260: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 61261: test_array [0] = 0
! 61262:
! 61263: ;
! 61264: return 0;
! 61265: }
! 61266: _ACEOF
! 61267: rm -f conftest.$ac_objext
! 61268: if { (ac_try="$ac_compile"
! 61269: case "(($ac_try" in
! 61270: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61271: *) ac_try_echo=$ac_try;;
! 61272: esac
! 61273: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61274: (eval "$ac_compile") 2>conftest.er1
! 61275: ac_status=$?
! 61276: grep -v '^ *+' conftest.er1 >conftest.err
! 61277: rm -f conftest.er1
! 61278: cat conftest.err >&5
! 61279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61280: (exit $ac_status); } && {
! 61281: test -z "$ac_c_werror_flag" ||
! 61282: test ! -s conftest.err
! 61283: } && test -s conftest.$ac_objext; then
! 61284: ac_lo=0 ac_mid=0
! 61285: while :; do
! 61286: cat >conftest.$ac_ext <<_ACEOF
! 61287: /* confdefs.h. */
! 61288: _ACEOF
! 61289: cat confdefs.h >>conftest.$ac_ext
! 61290: cat >>conftest.$ac_ext <<_ACEOF
! 61291: /* end confdefs.h. */
! 61292: $ac_includes_default
! 61293: typedef short ac__type_sizeof_;
! 61294: int
! 61295: main ()
! 61296: {
! 61297: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 61298: test_array [0] = 0
! 61299:
! 61300: ;
! 61301: return 0;
! 61302: }
! 61303: _ACEOF
! 61304: rm -f conftest.$ac_objext
! 61305: if { (ac_try="$ac_compile"
! 61306: case "(($ac_try" in
! 61307: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61308: *) ac_try_echo=$ac_try;;
! 61309: esac
! 61310: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61311: (eval "$ac_compile") 2>conftest.er1
! 61312: ac_status=$?
! 61313: grep -v '^ *+' conftest.er1 >conftest.err
! 61314: rm -f conftest.er1
! 61315: cat conftest.err >&5
! 61316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61317: (exit $ac_status); } && {
! 61318: test -z "$ac_c_werror_flag" ||
! 61319: test ! -s conftest.err
! 61320: } && test -s conftest.$ac_objext; then
! 61321: ac_hi=$ac_mid; break
! 61322: else
! 61323: echo "$as_me: failed program was:" >&5
! 61324: sed 's/^/| /' conftest.$ac_ext >&5
! 61325:
! 61326: ac_lo=`expr $ac_mid + 1`
! 61327: if test $ac_lo -le $ac_mid; then
! 61328: ac_lo= ac_hi=
! 61329: break
! 61330: fi
! 61331: ac_mid=`expr 2 '*' $ac_mid + 1`
! 61332: fi
! 61333:
! 61334: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61335: done
! 61336: else
! 61337: echo "$as_me: failed program was:" >&5
! 61338: sed 's/^/| /' conftest.$ac_ext >&5
! 61339:
! 61340: cat >conftest.$ac_ext <<_ACEOF
! 61341: /* confdefs.h. */
! 61342: _ACEOF
! 61343: cat confdefs.h >>conftest.$ac_ext
! 61344: cat >>conftest.$ac_ext <<_ACEOF
! 61345: /* end confdefs.h. */
! 61346: $ac_includes_default
! 61347: typedef short ac__type_sizeof_;
! 61348: int
! 61349: main ()
! 61350: {
! 61351: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 61352: test_array [0] = 0
! 61353:
! 61354: ;
! 61355: return 0;
! 61356: }
! 61357: _ACEOF
! 61358: rm -f conftest.$ac_objext
! 61359: if { (ac_try="$ac_compile"
! 61360: case "(($ac_try" in
! 61361: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61362: *) ac_try_echo=$ac_try;;
! 61363: esac
! 61364: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61365: (eval "$ac_compile") 2>conftest.er1
! 61366: ac_status=$?
! 61367: grep -v '^ *+' conftest.er1 >conftest.err
! 61368: rm -f conftest.er1
! 61369: cat conftest.err >&5
! 61370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61371: (exit $ac_status); } && {
! 61372: test -z "$ac_c_werror_flag" ||
! 61373: test ! -s conftest.err
! 61374: } && test -s conftest.$ac_objext; then
! 61375: ac_hi=-1 ac_mid=-1
! 61376: while :; do
! 61377: cat >conftest.$ac_ext <<_ACEOF
! 61378: /* confdefs.h. */
! 61379: _ACEOF
! 61380: cat confdefs.h >>conftest.$ac_ext
! 61381: cat >>conftest.$ac_ext <<_ACEOF
! 61382: /* end confdefs.h. */
! 61383: $ac_includes_default
! 61384: typedef short ac__type_sizeof_;
! 61385: int
! 61386: main ()
! 61387: {
! 61388: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 61389: test_array [0] = 0
! 61390:
! 61391: ;
! 61392: return 0;
! 61393: }
! 61394: _ACEOF
! 61395: rm -f conftest.$ac_objext
! 61396: if { (ac_try="$ac_compile"
! 61397: case "(($ac_try" in
! 61398: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61399: *) ac_try_echo=$ac_try;;
! 61400: esac
! 61401: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61402: (eval "$ac_compile") 2>conftest.er1
! 61403: ac_status=$?
! 61404: grep -v '^ *+' conftest.er1 >conftest.err
! 61405: rm -f conftest.er1
! 61406: cat conftest.err >&5
! 61407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61408: (exit $ac_status); } && {
! 61409: test -z "$ac_c_werror_flag" ||
! 61410: test ! -s conftest.err
! 61411: } && test -s conftest.$ac_objext; then
! 61412: ac_lo=$ac_mid; break
! 61413: else
! 61414: echo "$as_me: failed program was:" >&5
! 61415: sed 's/^/| /' conftest.$ac_ext >&5
! 61416:
! 61417: ac_hi=`expr '(' $ac_mid ')' - 1`
! 61418: if test $ac_mid -le $ac_hi; then
! 61419: ac_lo= ac_hi=
! 61420: break
! 61421: fi
! 61422: ac_mid=`expr 2 '*' $ac_mid`
! 61423: fi
! 61424:
! 61425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61426: done
! 61427: else
! 61428: echo "$as_me: failed program was:" >&5
! 61429: sed 's/^/| /' conftest.$ac_ext >&5
! 61430:
! 61431: ac_lo= ac_hi=
! 61432: fi
! 61433:
! 61434: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61435: fi
! 61436:
! 61437: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61438: # Binary search between lo and hi bounds.
! 61439: while test "x$ac_lo" != "x$ac_hi"; do
! 61440: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 61441: cat >conftest.$ac_ext <<_ACEOF
! 61442: /* confdefs.h. */
! 61443: _ACEOF
! 61444: cat confdefs.h >>conftest.$ac_ext
! 61445: cat >>conftest.$ac_ext <<_ACEOF
! 61446: /* end confdefs.h. */
! 61447: $ac_includes_default
! 61448: typedef short ac__type_sizeof_;
! 61449: int
! 61450: main ()
! 61451: {
! 61452: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 61453: test_array [0] = 0
! 61454:
! 61455: ;
! 61456: return 0;
! 61457: }
! 61458: _ACEOF
! 61459: rm -f conftest.$ac_objext
! 61460: if { (ac_try="$ac_compile"
! 61461: case "(($ac_try" in
! 61462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61463: *) ac_try_echo=$ac_try;;
! 61464: esac
! 61465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61466: (eval "$ac_compile") 2>conftest.er1
! 61467: ac_status=$?
! 61468: grep -v '^ *+' conftest.er1 >conftest.err
! 61469: rm -f conftest.er1
! 61470: cat conftest.err >&5
! 61471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61472: (exit $ac_status); } && {
! 61473: test -z "$ac_c_werror_flag" ||
! 61474: test ! -s conftest.err
! 61475: } && test -s conftest.$ac_objext; then
! 61476: ac_hi=$ac_mid
! 61477: else
! 61478: echo "$as_me: failed program was:" >&5
! 61479: sed 's/^/| /' conftest.$ac_ext >&5
! 61480:
! 61481: ac_lo=`expr '(' $ac_mid ')' + 1`
! 61482: fi
! 61483:
! 61484: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61485: done
! 61486: case $ac_lo in
! 61487: ?*) ac_cv_sizeof_short=$ac_lo;;
! 61488: '') if test "$ac_cv_type_short" = yes; then
! 61489: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
! 61490: See \`config.log' for more details." >&5
! 61491: echo "$as_me: error: cannot compute sizeof (short)
! 61492: See \`config.log' for more details." >&2;}
! 61493: { (exit 77); exit 77; }; }
! 61494: else
! 61495: ac_cv_sizeof_short=0
! 61496: fi ;;
! 61497: esac
! 61498: else
! 61499: cat >conftest.$ac_ext <<_ACEOF
! 61500: /* confdefs.h. */
! 61501: _ACEOF
! 61502: cat confdefs.h >>conftest.$ac_ext
! 61503: cat >>conftest.$ac_ext <<_ACEOF
! 61504: /* end confdefs.h. */
! 61505: $ac_includes_default
! 61506: typedef short ac__type_sizeof_;
! 61507: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 61508: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 61509: #include <stdio.h>
! 61510: #include <stdlib.h>
! 61511: int
! 61512: main ()
! 61513: {
! 61514:
! 61515: FILE *f = fopen ("conftest.val", "w");
! 61516: if (! f)
! 61517: return 1;
! 61518: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 61519: {
! 61520: long int i = longval ();
! 61521: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 61522: return 1;
! 61523: fprintf (f, "%ld\n", i);
! 61524: }
! 61525: else
! 61526: {
! 61527: unsigned long int i = ulongval ();
! 61528: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 61529: return 1;
! 61530: fprintf (f, "%lu\n", i);
! 61531: }
! 61532: return ferror (f) || fclose (f) != 0;
! 61533:
! 61534: ;
! 61535: return 0;
! 61536: }
! 61537: _ACEOF
! 61538: rm -f conftest$ac_exeext
! 61539: if { (ac_try="$ac_link"
! 61540: case "(($ac_try" in
! 61541: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61542: *) ac_try_echo=$ac_try;;
! 61543: esac
! 61544: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61545: (eval "$ac_link") 2>&5
! 61546: ac_status=$?
! 61547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61548: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 61549: { (case "(($ac_try" in
! 61550: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61551: *) ac_try_echo=$ac_try;;
! 61552: esac
! 61553: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61554: (eval "$ac_try") 2>&5
! 61555: ac_status=$?
! 61556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61557: (exit $ac_status); }; }; then
! 61558: ac_cv_sizeof_short=`cat conftest.val`
! 61559: else
! 61560: echo "$as_me: program exited with status $ac_status" >&5
! 61561: echo "$as_me: failed program was:" >&5
! 61562: sed 's/^/| /' conftest.$ac_ext >&5
! 61563:
! 61564: ( exit $ac_status )
! 61565: if test "$ac_cv_type_short" = yes; then
! 61566: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
! 61567: See \`config.log' for more details." >&5
! 61568: echo "$as_me: error: cannot compute sizeof (short)
! 61569: See \`config.log' for more details." >&2;}
! 61570: { (exit 77); exit 77; }; }
! 61571: else
! 61572: ac_cv_sizeof_short=0
! 61573: fi
! 61574: fi
! 61575: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 61576: fi
! 61577: rm -f conftest.val
! 61578: fi
! 61579: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
! 61580: echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
! 61581:
! 61582:
! 61583:
! 61584: cat >>confdefs.h <<_ACEOF
! 61585: #define SIZEOF_SHORT $ac_cv_sizeof_short
! 61586: _ACEOF
! 61587:
! 61588:
! 61589: { echo "$as_me:$LINENO: checking for int" >&5
! 61590: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
! 61591: if test "${ac_cv_type_int+set}" = set; then
! 61592: echo $ECHO_N "(cached) $ECHO_C" >&6
! 61593: else
! 61594: cat >conftest.$ac_ext <<_ACEOF
! 61595: /* confdefs.h. */
! 61596: _ACEOF
! 61597: cat confdefs.h >>conftest.$ac_ext
! 61598: cat >>conftest.$ac_ext <<_ACEOF
! 61599: /* end confdefs.h. */
! 61600: $ac_includes_default
! 61601: typedef int ac__type_new_;
! 61602: int
! 61603: main ()
! 61604: {
! 61605: if ((ac__type_new_ *) 0)
! 61606: return 0;
! 61607: if (sizeof (ac__type_new_))
! 61608: return 0;
! 61609: ;
! 61610: return 0;
! 61611: }
! 61612: _ACEOF
! 61613: rm -f conftest.$ac_objext
! 61614: if { (ac_try="$ac_compile"
! 61615: case "(($ac_try" in
! 61616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61617: *) ac_try_echo=$ac_try;;
! 61618: esac
! 61619: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61620: (eval "$ac_compile") 2>conftest.er1
! 61621: ac_status=$?
! 61622: grep -v '^ *+' conftest.er1 >conftest.err
! 61623: rm -f conftest.er1
! 61624: cat conftest.err >&5
! 61625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61626: (exit $ac_status); } && {
! 61627: test -z "$ac_c_werror_flag" ||
! 61628: test ! -s conftest.err
! 61629: } && test -s conftest.$ac_objext; then
! 61630: ac_cv_type_int=yes
! 61631: else
! 61632: echo "$as_me: failed program was:" >&5
! 61633: sed 's/^/| /' conftest.$ac_ext >&5
! 61634:
! 61635: ac_cv_type_int=no
! 61636: fi
! 61637:
! 61638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61639: fi
! 61640: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 61641: echo "${ECHO_T}$ac_cv_type_int" >&6; }
! 61642:
! 61643: # The cast to long int works around a bug in the HP C Compiler
! 61644: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 61645: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 61646: # This bug is HP SR number 8606223364.
! 61647: { echo "$as_me:$LINENO: checking size of int" >&5
! 61648: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
! 61649: if test "${ac_cv_sizeof_int+set}" = set; then
! 61650: echo $ECHO_N "(cached) $ECHO_C" >&6
! 61651: else
! 61652: if test "$cross_compiling" = yes; then
! 61653: # Depending upon the size, compute the lo and hi bounds.
! 61654: cat >conftest.$ac_ext <<_ACEOF
! 61655: /* confdefs.h. */
! 61656: _ACEOF
! 61657: cat confdefs.h >>conftest.$ac_ext
! 61658: cat >>conftest.$ac_ext <<_ACEOF
! 61659: /* end confdefs.h. */
! 61660: $ac_includes_default
! 61661: typedef int ac__type_sizeof_;
! 61662: int
! 61663: main ()
! 61664: {
! 61665: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 61666: test_array [0] = 0
! 61667:
! 61668: ;
! 61669: return 0;
! 61670: }
! 61671: _ACEOF
! 61672: rm -f conftest.$ac_objext
! 61673: if { (ac_try="$ac_compile"
! 61674: case "(($ac_try" in
! 61675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61676: *) ac_try_echo=$ac_try;;
! 61677: esac
! 61678: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61679: (eval "$ac_compile") 2>conftest.er1
! 61680: ac_status=$?
! 61681: grep -v '^ *+' conftest.er1 >conftest.err
! 61682: rm -f conftest.er1
! 61683: cat conftest.err >&5
! 61684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61685: (exit $ac_status); } && {
! 61686: test -z "$ac_c_werror_flag" ||
! 61687: test ! -s conftest.err
! 61688: } && test -s conftest.$ac_objext; then
! 61689: ac_lo=0 ac_mid=0
! 61690: while :; do
! 61691: cat >conftest.$ac_ext <<_ACEOF
! 61692: /* confdefs.h. */
! 61693: _ACEOF
! 61694: cat confdefs.h >>conftest.$ac_ext
! 61695: cat >>conftest.$ac_ext <<_ACEOF
! 61696: /* end confdefs.h. */
! 61697: $ac_includes_default
! 61698: typedef int ac__type_sizeof_;
! 61699: int
! 61700: main ()
! 61701: {
! 61702: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 61703: test_array [0] = 0
! 61704:
! 61705: ;
! 61706: return 0;
! 61707: }
! 61708: _ACEOF
! 61709: rm -f conftest.$ac_objext
! 61710: if { (ac_try="$ac_compile"
! 61711: case "(($ac_try" in
! 61712: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61713: *) ac_try_echo=$ac_try;;
! 61714: esac
! 61715: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61716: (eval "$ac_compile") 2>conftest.er1
! 61717: ac_status=$?
! 61718: grep -v '^ *+' conftest.er1 >conftest.err
! 61719: rm -f conftest.er1
! 61720: cat conftest.err >&5
! 61721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61722: (exit $ac_status); } && {
! 61723: test -z "$ac_c_werror_flag" ||
! 61724: test ! -s conftest.err
! 61725: } && test -s conftest.$ac_objext; then
! 61726: ac_hi=$ac_mid; break
! 61727: else
! 61728: echo "$as_me: failed program was:" >&5
! 61729: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 61730:
1.1.1.3 ! misho 61731: ac_lo=`expr $ac_mid + 1`
! 61732: if test $ac_lo -le $ac_mid; then
! 61733: ac_lo= ac_hi=
! 61734: break
! 61735: fi
! 61736: ac_mid=`expr 2 '*' $ac_mid + 1`
! 61737: fi
1.1 misho 61738:
1.1.1.3 ! misho 61739: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 61740: done
1.1.1.3 ! misho 61741: else
! 61742: echo "$as_me: failed program was:" >&5
! 61743: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 61744:
1.1.1.3 ! misho 61745: cat >conftest.$ac_ext <<_ACEOF
! 61746: /* confdefs.h. */
! 61747: _ACEOF
! 61748: cat confdefs.h >>conftest.$ac_ext
! 61749: cat >>conftest.$ac_ext <<_ACEOF
! 61750: /* end confdefs.h. */
! 61751: $ac_includes_default
! 61752: typedef int ac__type_sizeof_;
! 61753: int
! 61754: main ()
! 61755: {
! 61756: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 61757: test_array [0] = 0
1.1 misho 61758:
1.1.1.3 ! misho 61759: ;
! 61760: return 0;
! 61761: }
! 61762: _ACEOF
! 61763: rm -f conftest.$ac_objext
! 61764: if { (ac_try="$ac_compile"
! 61765: case "(($ac_try" in
! 61766: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61767: *) ac_try_echo=$ac_try;;
! 61768: esac
! 61769: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61770: (eval "$ac_compile") 2>conftest.er1
! 61771: ac_status=$?
! 61772: grep -v '^ *+' conftest.er1 >conftest.err
! 61773: rm -f conftest.er1
! 61774: cat conftest.err >&5
! 61775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61776: (exit $ac_status); } && {
! 61777: test -z "$ac_c_werror_flag" ||
! 61778: test ! -s conftest.err
! 61779: } && test -s conftest.$ac_objext; then
! 61780: ac_hi=-1 ac_mid=-1
! 61781: while :; do
! 61782: cat >conftest.$ac_ext <<_ACEOF
! 61783: /* confdefs.h. */
! 61784: _ACEOF
! 61785: cat confdefs.h >>conftest.$ac_ext
! 61786: cat >>conftest.$ac_ext <<_ACEOF
! 61787: /* end confdefs.h. */
! 61788: $ac_includes_default
! 61789: typedef int ac__type_sizeof_;
! 61790: int
! 61791: main ()
! 61792: {
! 61793: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 61794: test_array [0] = 0
1.1 misho 61795:
1.1.1.3 ! misho 61796: ;
! 61797: return 0;
! 61798: }
! 61799: _ACEOF
! 61800: rm -f conftest.$ac_objext
! 61801: if { (ac_try="$ac_compile"
! 61802: case "(($ac_try" in
! 61803: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61804: *) ac_try_echo=$ac_try;;
! 61805: esac
! 61806: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61807: (eval "$ac_compile") 2>conftest.er1
! 61808: ac_status=$?
! 61809: grep -v '^ *+' conftest.er1 >conftest.err
! 61810: rm -f conftest.er1
! 61811: cat conftest.err >&5
! 61812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61813: (exit $ac_status); } && {
! 61814: test -z "$ac_c_werror_flag" ||
! 61815: test ! -s conftest.err
! 61816: } && test -s conftest.$ac_objext; then
! 61817: ac_lo=$ac_mid; break
! 61818: else
! 61819: echo "$as_me: failed program was:" >&5
! 61820: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 61821:
1.1.1.3 ! misho 61822: ac_hi=`expr '(' $ac_mid ')' - 1`
! 61823: if test $ac_mid -le $ac_hi; then
! 61824: ac_lo= ac_hi=
! 61825: break
! 61826: fi
! 61827: ac_mid=`expr 2 '*' $ac_mid`
! 61828: fi
1.1 misho 61829:
1.1.1.3 ! misho 61830: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61831: done
! 61832: else
! 61833: echo "$as_me: failed program was:" >&5
! 61834: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 61835:
1.1.1.3 ! misho 61836: ac_lo= ac_hi=
! 61837: fi
1.1 misho 61838:
1.1.1.3 ! misho 61839: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61840: fi
1.1 misho 61841:
1.1.1.3 ! misho 61842: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61843: # Binary search between lo and hi bounds.
! 61844: while test "x$ac_lo" != "x$ac_hi"; do
! 61845: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 61846: cat >conftest.$ac_ext <<_ACEOF
! 61847: /* confdefs.h. */
! 61848: _ACEOF
! 61849: cat confdefs.h >>conftest.$ac_ext
! 61850: cat >>conftest.$ac_ext <<_ACEOF
! 61851: /* end confdefs.h. */
! 61852: $ac_includes_default
! 61853: typedef int ac__type_sizeof_;
! 61854: int
! 61855: main ()
! 61856: {
! 61857: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 61858: test_array [0] = 0
1.1 misho 61859:
1.1.1.3 ! misho 61860: ;
! 61861: return 0;
! 61862: }
! 61863: _ACEOF
! 61864: rm -f conftest.$ac_objext
! 61865: if { (ac_try="$ac_compile"
! 61866: case "(($ac_try" in
! 61867: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61868: *) ac_try_echo=$ac_try;;
! 61869: esac
! 61870: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61871: (eval "$ac_compile") 2>conftest.er1
! 61872: ac_status=$?
! 61873: grep -v '^ *+' conftest.er1 >conftest.err
! 61874: rm -f conftest.er1
! 61875: cat conftest.err >&5
! 61876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61877: (exit $ac_status); } && {
! 61878: test -z "$ac_c_werror_flag" ||
! 61879: test ! -s conftest.err
! 61880: } && test -s conftest.$ac_objext; then
! 61881: ac_hi=$ac_mid
! 61882: else
! 61883: echo "$as_me: failed program was:" >&5
! 61884: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 61885:
1.1.1.3 ! misho 61886: ac_lo=`expr '(' $ac_mid ')' + 1`
! 61887: fi
1.1 misho 61888:
1.1.1.3 ! misho 61889: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 61890: done
! 61891: case $ac_lo in
! 61892: ?*) ac_cv_sizeof_int=$ac_lo;;
! 61893: '') if test "$ac_cv_type_int" = yes; then
! 61894: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 61895: See \`config.log' for more details." >&5
! 61896: echo "$as_me: error: cannot compute sizeof (int)
! 61897: See \`config.log' for more details." >&2;}
! 61898: { (exit 77); exit 77; }; }
! 61899: else
! 61900: ac_cv_sizeof_int=0
! 61901: fi ;;
! 61902: esac
! 61903: else
! 61904: cat >conftest.$ac_ext <<_ACEOF
! 61905: /* confdefs.h. */
! 61906: _ACEOF
! 61907: cat confdefs.h >>conftest.$ac_ext
! 61908: cat >>conftest.$ac_ext <<_ACEOF
! 61909: /* end confdefs.h. */
! 61910: $ac_includes_default
! 61911: typedef int ac__type_sizeof_;
! 61912: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 61913: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 61914: #include <stdio.h>
! 61915: #include <stdlib.h>
! 61916: int
! 61917: main ()
! 61918: {
1.1 misho 61919:
1.1.1.3 ! misho 61920: FILE *f = fopen ("conftest.val", "w");
! 61921: if (! f)
! 61922: return 1;
! 61923: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 61924: {
! 61925: long int i = longval ();
! 61926: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 61927: return 1;
! 61928: fprintf (f, "%ld\n", i);
! 61929: }
! 61930: else
! 61931: {
! 61932: unsigned long int i = ulongval ();
! 61933: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 61934: return 1;
! 61935: fprintf (f, "%lu\n", i);
! 61936: }
! 61937: return ferror (f) || fclose (f) != 0;
1.1 misho 61938:
1.1.1.3 ! misho 61939: ;
! 61940: return 0;
! 61941: }
! 61942: _ACEOF
! 61943: rm -f conftest$ac_exeext
! 61944: if { (ac_try="$ac_link"
! 61945: case "(($ac_try" in
! 61946: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61947: *) ac_try_echo=$ac_try;;
! 61948: esac
! 61949: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61950: (eval "$ac_link") 2>&5
! 61951: ac_status=$?
! 61952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61953: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 61954: { (case "(($ac_try" in
! 61955: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 61956: *) ac_try_echo=$ac_try;;
! 61957: esac
! 61958: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 61959: (eval "$ac_try") 2>&5
! 61960: ac_status=$?
! 61961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 61962: (exit $ac_status); }; }; then
! 61963: ac_cv_sizeof_int=`cat conftest.val`
! 61964: else
! 61965: echo "$as_me: program exited with status $ac_status" >&5
! 61966: echo "$as_me: failed program was:" >&5
! 61967: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 61968:
1.1.1.3 ! misho 61969: ( exit $ac_status )
! 61970: if test "$ac_cv_type_int" = yes; then
! 61971: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 61972: See \`config.log' for more details." >&5
! 61973: echo "$as_me: error: cannot compute sizeof (int)
! 61974: See \`config.log' for more details." >&2;}
! 61975: { (exit 77); exit 77; }; }
! 61976: else
! 61977: ac_cv_sizeof_int=0
! 61978: fi
! 61979: fi
! 61980: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 61981: fi
1.1.1.3 ! misho 61982: rm -f conftest.val
! 61983: fi
! 61984: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 61985: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
1.1 misho 61986:
61987:
61988:
1.1.1.3 ! misho 61989: cat >>confdefs.h <<_ACEOF
! 61990: #define SIZEOF_INT $ac_cv_sizeof_int
! 61991: _ACEOF
1.1 misho 61992:
61993:
1.1.1.3 ! misho 61994: { echo "$as_me:$LINENO: checking for long" >&5
! 61995: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
! 61996: if test "${ac_cv_type_long+set}" = set; then
! 61997: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 61998: else
1.1.1.3 ! misho 61999: cat >conftest.$ac_ext <<_ACEOF
! 62000: /* confdefs.h. */
! 62001: _ACEOF
! 62002: cat confdefs.h >>conftest.$ac_ext
! 62003: cat >>conftest.$ac_ext <<_ACEOF
! 62004: /* end confdefs.h. */
! 62005: $ac_includes_default
! 62006: typedef long ac__type_new_;
! 62007: int
! 62008: main ()
! 62009: {
! 62010: if ((ac__type_new_ *) 0)
! 62011: return 0;
! 62012: if (sizeof (ac__type_new_))
! 62013: return 0;
! 62014: ;
! 62015: return 0;
! 62016: }
! 62017: _ACEOF
! 62018: rm -f conftest.$ac_objext
! 62019: if { (ac_try="$ac_compile"
! 62020: case "(($ac_try" in
! 62021: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62022: *) ac_try_echo=$ac_try;;
! 62023: esac
! 62024: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62025: (eval "$ac_compile") 2>conftest.er1
! 62026: ac_status=$?
! 62027: grep -v '^ *+' conftest.er1 >conftest.err
! 62028: rm -f conftest.er1
! 62029: cat conftest.err >&5
! 62030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62031: (exit $ac_status); } && {
! 62032: test -z "$ac_c_werror_flag" ||
! 62033: test ! -s conftest.err
! 62034: } && test -s conftest.$ac_objext; then
! 62035: ac_cv_type_long=yes
! 62036: else
! 62037: echo "$as_me: failed program was:" >&5
! 62038: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62039:
1.1.1.3 ! misho 62040: ac_cv_type_long=no
1.1 misho 62041: fi
62042:
1.1.1.3 ! misho 62043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62044: fi
! 62045: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 62046: echo "${ECHO_T}$ac_cv_type_long" >&6; }
1.1 misho 62047:
1.1.1.3 ! misho 62048: # The cast to long int works around a bug in the HP C Compiler
! 62049: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 62050: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 62051: # This bug is HP SR number 8606223364.
! 62052: { echo "$as_me:$LINENO: checking size of long" >&5
! 62053: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
! 62054: if test "${ac_cv_sizeof_long+set}" = set; then
! 62055: echo $ECHO_N "(cached) $ECHO_C" >&6
! 62056: else
! 62057: if test "$cross_compiling" = yes; then
! 62058: # Depending upon the size, compute the lo and hi bounds.
! 62059: cat >conftest.$ac_ext <<_ACEOF
! 62060: /* confdefs.h. */
! 62061: _ACEOF
! 62062: cat confdefs.h >>conftest.$ac_ext
! 62063: cat >>conftest.$ac_ext <<_ACEOF
! 62064: /* end confdefs.h. */
! 62065: $ac_includes_default
! 62066: typedef long ac__type_sizeof_;
! 62067: int
! 62068: main ()
! 62069: {
! 62070: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 62071: test_array [0] = 0
1.1 misho 62072:
1.1.1.3 ! misho 62073: ;
! 62074: return 0;
! 62075: }
! 62076: _ACEOF
! 62077: rm -f conftest.$ac_objext
! 62078: if { (ac_try="$ac_compile"
! 62079: case "(($ac_try" in
! 62080: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62081: *) ac_try_echo=$ac_try;;
1.1 misho 62082: esac
1.1.1.3 ! misho 62083: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62084: (eval "$ac_compile") 2>conftest.er1
! 62085: ac_status=$?
! 62086: grep -v '^ *+' conftest.er1 >conftest.err
! 62087: rm -f conftest.er1
! 62088: cat conftest.err >&5
! 62089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62090: (exit $ac_status); } && {
! 62091: test -z "$ac_c_werror_flag" ||
! 62092: test ! -s conftest.err
! 62093: } && test -s conftest.$ac_objext; then
! 62094: ac_lo=0 ac_mid=0
! 62095: while :; do
! 62096: cat >conftest.$ac_ext <<_ACEOF
! 62097: /* confdefs.h. */
! 62098: _ACEOF
! 62099: cat confdefs.h >>conftest.$ac_ext
! 62100: cat >>conftest.$ac_ext <<_ACEOF
! 62101: /* end confdefs.h. */
! 62102: $ac_includes_default
! 62103: typedef long ac__type_sizeof_;
! 62104: int
! 62105: main ()
! 62106: {
! 62107: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 62108: test_array [0] = 0
1.1 misho 62109:
1.1.1.3 ! misho 62110: ;
! 62111: return 0;
! 62112: }
! 62113: _ACEOF
! 62114: rm -f conftest.$ac_objext
! 62115: if { (ac_try="$ac_compile"
! 62116: case "(($ac_try" in
! 62117: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62118: *) ac_try_echo=$ac_try;;
! 62119: esac
! 62120: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62121: (eval "$ac_compile") 2>conftest.er1
! 62122: ac_status=$?
! 62123: grep -v '^ *+' conftest.er1 >conftest.err
! 62124: rm -f conftest.er1
! 62125: cat conftest.err >&5
! 62126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62127: (exit $ac_status); } && {
! 62128: test -z "$ac_c_werror_flag" ||
! 62129: test ! -s conftest.err
! 62130: } && test -s conftest.$ac_objext; then
! 62131: ac_hi=$ac_mid; break
! 62132: else
! 62133: echo "$as_me: failed program was:" >&5
! 62134: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62135:
1.1.1.3 ! misho 62136: ac_lo=`expr $ac_mid + 1`
! 62137: if test $ac_lo -le $ac_mid; then
! 62138: ac_lo= ac_hi=
! 62139: break
! 62140: fi
! 62141: ac_mid=`expr 2 '*' $ac_mid + 1`
! 62142: fi
1.1 misho 62143:
1.1.1.3 ! misho 62144: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62145: done
! 62146: else
! 62147: echo "$as_me: failed program was:" >&5
! 62148: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62149:
1.1.1.3 ! misho 62150: cat >conftest.$ac_ext <<_ACEOF
! 62151: /* confdefs.h. */
! 62152: _ACEOF
! 62153: cat confdefs.h >>conftest.$ac_ext
! 62154: cat >>conftest.$ac_ext <<_ACEOF
! 62155: /* end confdefs.h. */
! 62156: $ac_includes_default
! 62157: typedef long ac__type_sizeof_;
! 62158: int
! 62159: main ()
! 62160: {
! 62161: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 62162: test_array [0] = 0
1.1 misho 62163:
1.1.1.3 ! misho 62164: ;
! 62165: return 0;
! 62166: }
! 62167: _ACEOF
! 62168: rm -f conftest.$ac_objext
! 62169: if { (ac_try="$ac_compile"
! 62170: case "(($ac_try" in
! 62171: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62172: *) ac_try_echo=$ac_try;;
! 62173: esac
! 62174: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62175: (eval "$ac_compile") 2>conftest.er1
! 62176: ac_status=$?
! 62177: grep -v '^ *+' conftest.er1 >conftest.err
! 62178: rm -f conftest.er1
! 62179: cat conftest.err >&5
! 62180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62181: (exit $ac_status); } && {
! 62182: test -z "$ac_c_werror_flag" ||
! 62183: test ! -s conftest.err
! 62184: } && test -s conftest.$ac_objext; then
! 62185: ac_hi=-1 ac_mid=-1
! 62186: while :; do
! 62187: cat >conftest.$ac_ext <<_ACEOF
! 62188: /* confdefs.h. */
! 62189: _ACEOF
! 62190: cat confdefs.h >>conftest.$ac_ext
! 62191: cat >>conftest.$ac_ext <<_ACEOF
! 62192: /* end confdefs.h. */
! 62193: $ac_includes_default
! 62194: typedef long ac__type_sizeof_;
! 62195: int
! 62196: main ()
! 62197: {
! 62198: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 62199: test_array [0] = 0
1.1 misho 62200:
1.1.1.3 ! misho 62201: ;
! 62202: return 0;
! 62203: }
! 62204: _ACEOF
! 62205: rm -f conftest.$ac_objext
! 62206: if { (ac_try="$ac_compile"
! 62207: case "(($ac_try" in
! 62208: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62209: *) ac_try_echo=$ac_try;;
! 62210: esac
! 62211: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62212: (eval "$ac_compile") 2>conftest.er1
! 62213: ac_status=$?
! 62214: grep -v '^ *+' conftest.er1 >conftest.err
! 62215: rm -f conftest.er1
! 62216: cat conftest.err >&5
! 62217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62218: (exit $ac_status); } && {
! 62219: test -z "$ac_c_werror_flag" ||
! 62220: test ! -s conftest.err
! 62221: } && test -s conftest.$ac_objext; then
! 62222: ac_lo=$ac_mid; break
! 62223: else
! 62224: echo "$as_me: failed program was:" >&5
! 62225: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62226:
1.1.1.3 ! misho 62227: ac_hi=`expr '(' $ac_mid ')' - 1`
! 62228: if test $ac_mid -le $ac_hi; then
! 62229: ac_lo= ac_hi=
! 62230: break
! 62231: fi
! 62232: ac_mid=`expr 2 '*' $ac_mid`
! 62233: fi
1.1 misho 62234:
1.1.1.3 ! misho 62235: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62236: done
1.1 misho 62237: else
1.1.1.3 ! misho 62238: echo "$as_me: failed program was:" >&5
! 62239: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62240:
1.1.1.3 ! misho 62241: ac_lo= ac_hi=
1.1 misho 62242: fi
62243:
1.1.1.3 ! misho 62244: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62245: fi
1.1 misho 62246:
1.1.1.3 ! misho 62247: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62248: # Binary search between lo and hi bounds.
! 62249: while test "x$ac_lo" != "x$ac_hi"; do
! 62250: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 62251: cat >conftest.$ac_ext <<_ACEOF
! 62252: /* confdefs.h. */
! 62253: _ACEOF
! 62254: cat confdefs.h >>conftest.$ac_ext
! 62255: cat >>conftest.$ac_ext <<_ACEOF
! 62256: /* end confdefs.h. */
! 62257: $ac_includes_default
! 62258: typedef long ac__type_sizeof_;
! 62259: int
! 62260: main ()
! 62261: {
! 62262: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 62263: test_array [0] = 0
1.1 misho 62264:
1.1.1.3 ! misho 62265: ;
! 62266: return 0;
! 62267: }
! 62268: _ACEOF
! 62269: rm -f conftest.$ac_objext
! 62270: if { (ac_try="$ac_compile"
! 62271: case "(($ac_try" in
! 62272: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62273: *) ac_try_echo=$ac_try;;
1.1 misho 62274: esac
1.1.1.3 ! misho 62275: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62276: (eval "$ac_compile") 2>conftest.er1
! 62277: ac_status=$?
! 62278: grep -v '^ *+' conftest.er1 >conftest.err
! 62279: rm -f conftest.er1
! 62280: cat conftest.err >&5
! 62281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62282: (exit $ac_status); } && {
! 62283: test -z "$ac_c_werror_flag" ||
! 62284: test ! -s conftest.err
! 62285: } && test -s conftest.$ac_objext; then
! 62286: ac_hi=$ac_mid
! 62287: else
! 62288: echo "$as_me: failed program was:" >&5
! 62289: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62290:
1.1.1.3 ! misho 62291: ac_lo=`expr '(' $ac_mid ')' + 1`
! 62292: fi
1.1 misho 62293:
1.1.1.3 ! misho 62294: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62295: done
! 62296: case $ac_lo in
! 62297: ?*) ac_cv_sizeof_long=$ac_lo;;
! 62298: '') if test "$ac_cv_type_long" = yes; then
! 62299: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 62300: See \`config.log' for more details." >&5
! 62301: echo "$as_me: error: cannot compute sizeof (long)
! 62302: See \`config.log' for more details." >&2;}
! 62303: { (exit 77); exit 77; }; }
! 62304: else
! 62305: ac_cv_sizeof_long=0
! 62306: fi ;;
! 62307: esac
! 62308: else
! 62309: cat >conftest.$ac_ext <<_ACEOF
! 62310: /* confdefs.h. */
! 62311: _ACEOF
! 62312: cat confdefs.h >>conftest.$ac_ext
! 62313: cat >>conftest.$ac_ext <<_ACEOF
! 62314: /* end confdefs.h. */
! 62315: $ac_includes_default
! 62316: typedef long ac__type_sizeof_;
! 62317: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 62318: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 62319: #include <stdio.h>
! 62320: #include <stdlib.h>
! 62321: int
! 62322: main ()
! 62323: {
1.1 misho 62324:
1.1.1.3 ! misho 62325: FILE *f = fopen ("conftest.val", "w");
! 62326: if (! f)
! 62327: return 1;
! 62328: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 62329: {
! 62330: long int i = longval ();
! 62331: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 62332: return 1;
! 62333: fprintf (f, "%ld\n", i);
! 62334: }
! 62335: else
! 62336: {
! 62337: unsigned long int i = ulongval ();
! 62338: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 62339: return 1;
! 62340: fprintf (f, "%lu\n", i);
! 62341: }
! 62342: return ferror (f) || fclose (f) != 0;
1.1 misho 62343:
1.1.1.3 ! misho 62344: ;
! 62345: return 0;
! 62346: }
! 62347: _ACEOF
! 62348: rm -f conftest$ac_exeext
! 62349: if { (ac_try="$ac_link"
! 62350: case "(($ac_try" in
! 62351: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62352: *) ac_try_echo=$ac_try;;
! 62353: esac
! 62354: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62355: (eval "$ac_link") 2>&5
! 62356: ac_status=$?
! 62357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62358: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 62359: { (case "(($ac_try" in
! 62360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62361: *) ac_try_echo=$ac_try;;
! 62362: esac
! 62363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62364: (eval "$ac_try") 2>&5
! 62365: ac_status=$?
! 62366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62367: (exit $ac_status); }; }; then
! 62368: ac_cv_sizeof_long=`cat conftest.val`
! 62369: else
! 62370: echo "$as_me: program exited with status $ac_status" >&5
! 62371: echo "$as_me: failed program was:" >&5
! 62372: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62373:
1.1.1.3 ! misho 62374: ( exit $ac_status )
! 62375: if test "$ac_cv_type_long" = yes; then
! 62376: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 62377: See \`config.log' for more details." >&5
! 62378: echo "$as_me: error: cannot compute sizeof (long)
! 62379: See \`config.log' for more details." >&2;}
! 62380: { (exit 77); exit 77; }; }
! 62381: else
! 62382: ac_cv_sizeof_long=0
! 62383: fi
1.1 misho 62384: fi
1.1.1.3 ! misho 62385: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 62386: fi
! 62387: rm -f conftest.val
! 62388: fi
! 62389: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 62390: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
1.1 misho 62391:
62392:
62393:
1.1.1.3 ! misho 62394: cat >>confdefs.h <<_ACEOF
! 62395: #define SIZEOF_LONG $ac_cv_sizeof_long
! 62396: _ACEOF
1.1 misho 62397:
62398:
1.1.1.3 ! misho 62399: { echo "$as_me:$LINENO: checking for long long" >&5
! 62400: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
! 62401: if test "${ac_cv_type_long_long+set}" = set; then
! 62402: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 62403: else
1.1.1.3 ! misho 62404: cat >conftest.$ac_ext <<_ACEOF
! 62405: /* confdefs.h. */
! 62406: _ACEOF
! 62407: cat confdefs.h >>conftest.$ac_ext
! 62408: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 62409: /* end confdefs.h. */
1.1.1.3 ! misho 62410: $ac_includes_default
! 62411: typedef long long ac__type_new_;
! 62412: int
! 62413: main ()
1.1 misho 62414: {
1.1.1.3 ! misho 62415: if ((ac__type_new_ *) 0)
! 62416: return 0;
! 62417: if (sizeof (ac__type_new_))
! 62418: return 0;
! 62419: ;
! 62420: return 0;
1.1 misho 62421: }
62422: _ACEOF
1.1.1.3 ! misho 62423: rm -f conftest.$ac_objext
! 62424: if { (ac_try="$ac_compile"
! 62425: case "(($ac_try" in
! 62426: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62427: *) ac_try_echo=$ac_try;;
! 62428: esac
! 62429: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62430: (eval "$ac_compile") 2>conftest.er1
! 62431: ac_status=$?
! 62432: grep -v '^ *+' conftest.er1 >conftest.err
! 62433: rm -f conftest.er1
! 62434: cat conftest.err >&5
! 62435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62436: (exit $ac_status); } && {
! 62437: test -z "$ac_c_werror_flag" ||
! 62438: test ! -s conftest.err
! 62439: } && test -s conftest.$ac_objext; then
! 62440: ac_cv_type_long_long=yes
1.1 misho 62441: else
1.1.1.3 ! misho 62442: echo "$as_me: failed program was:" >&5
! 62443: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62444:
1.1.1.3 ! misho 62445: ac_cv_type_long_long=no
1.1 misho 62446: fi
62447:
1.1.1.3 ! misho 62448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62449: fi
! 62450: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 62451: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
1.1 misho 62452:
1.1.1.3 ! misho 62453: # The cast to long int works around a bug in the HP C Compiler
1.1 misho 62454: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
62455: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
62456: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 62457: { echo "$as_me:$LINENO: checking size of long long" >&5
! 62458: echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
! 62459: if test "${ac_cv_sizeof_long_long+set}" = set; then
! 62460: echo $ECHO_N "(cached) $ECHO_C" >&6
! 62461: else
! 62462: if test "$cross_compiling" = yes; then
! 62463: # Depending upon the size, compute the lo and hi bounds.
! 62464: cat >conftest.$ac_ext <<_ACEOF
! 62465: /* confdefs.h. */
! 62466: _ACEOF
! 62467: cat confdefs.h >>conftest.$ac_ext
! 62468: cat >>conftest.$ac_ext <<_ACEOF
! 62469: /* end confdefs.h. */
! 62470: $ac_includes_default
! 62471: typedef long long ac__type_sizeof_;
! 62472: int
! 62473: main ()
! 62474: {
! 62475: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 62476: test_array [0] = 0
! 62477:
! 62478: ;
! 62479: return 0;
! 62480: }
! 62481: _ACEOF
! 62482: rm -f conftest.$ac_objext
! 62483: if { (ac_try="$ac_compile"
! 62484: case "(($ac_try" in
! 62485: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62486: *) ac_try_echo=$ac_try;;
! 62487: esac
! 62488: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62489: (eval "$ac_compile") 2>conftest.er1
! 62490: ac_status=$?
! 62491: grep -v '^ *+' conftest.er1 >conftest.err
! 62492: rm -f conftest.er1
! 62493: cat conftest.err >&5
! 62494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62495: (exit $ac_status); } && {
! 62496: test -z "$ac_c_werror_flag" ||
! 62497: test ! -s conftest.err
! 62498: } && test -s conftest.$ac_objext; then
! 62499: ac_lo=0 ac_mid=0
! 62500: while :; do
! 62501: cat >conftest.$ac_ext <<_ACEOF
! 62502: /* confdefs.h. */
! 62503: _ACEOF
! 62504: cat confdefs.h >>conftest.$ac_ext
! 62505: cat >>conftest.$ac_ext <<_ACEOF
! 62506: /* end confdefs.h. */
! 62507: $ac_includes_default
! 62508: typedef long long ac__type_sizeof_;
! 62509: int
! 62510: main ()
! 62511: {
! 62512: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 62513: test_array [0] = 0
1.1 misho 62514:
1.1.1.3 ! misho 62515: ;
! 62516: return 0;
! 62517: }
! 62518: _ACEOF
! 62519: rm -f conftest.$ac_objext
! 62520: if { (ac_try="$ac_compile"
! 62521: case "(($ac_try" in
! 62522: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62523: *) ac_try_echo=$ac_try;;
! 62524: esac
! 62525: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62526: (eval "$ac_compile") 2>conftest.er1
! 62527: ac_status=$?
! 62528: grep -v '^ *+' conftest.er1 >conftest.err
! 62529: rm -f conftest.er1
! 62530: cat conftest.err >&5
! 62531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62532: (exit $ac_status); } && {
! 62533: test -z "$ac_c_werror_flag" ||
! 62534: test ! -s conftest.err
! 62535: } && test -s conftest.$ac_objext; then
! 62536: ac_hi=$ac_mid; break
1.1 misho 62537: else
1.1.1.3 ! misho 62538: echo "$as_me: failed program was:" >&5
! 62539: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62540:
1.1.1.3 ! misho 62541: ac_lo=`expr $ac_mid + 1`
! 62542: if test $ac_lo -le $ac_mid; then
! 62543: ac_lo= ac_hi=
! 62544: break
! 62545: fi
! 62546: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 62547: fi
62548:
1.1.1.3 ! misho 62549: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62550: done
! 62551: else
! 62552: echo "$as_me: failed program was:" >&5
! 62553: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62554:
1.1.1.3 ! misho 62555: cat >conftest.$ac_ext <<_ACEOF
! 62556: /* confdefs.h. */
! 62557: _ACEOF
! 62558: cat confdefs.h >>conftest.$ac_ext
! 62559: cat >>conftest.$ac_ext <<_ACEOF
! 62560: /* end confdefs.h. */
! 62561: $ac_includes_default
! 62562: typedef long long ac__type_sizeof_;
! 62563: int
! 62564: main ()
! 62565: {
! 62566: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 62567: test_array [0] = 0
1.1 misho 62568:
1.1.1.3 ! misho 62569: ;
! 62570: return 0;
! 62571: }
! 62572: _ACEOF
! 62573: rm -f conftest.$ac_objext
! 62574: if { (ac_try="$ac_compile"
! 62575: case "(($ac_try" in
! 62576: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62577: *) ac_try_echo=$ac_try;;
! 62578: esac
! 62579: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62580: (eval "$ac_compile") 2>conftest.er1
! 62581: ac_status=$?
! 62582: grep -v '^ *+' conftest.er1 >conftest.err
! 62583: rm -f conftest.er1
! 62584: cat conftest.err >&5
! 62585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62586: (exit $ac_status); } && {
! 62587: test -z "$ac_c_werror_flag" ||
! 62588: test ! -s conftest.err
! 62589: } && test -s conftest.$ac_objext; then
! 62590: ac_hi=-1 ac_mid=-1
! 62591: while :; do
! 62592: cat >conftest.$ac_ext <<_ACEOF
! 62593: /* confdefs.h. */
1.1 misho 62594: _ACEOF
1.1.1.3 ! misho 62595: cat confdefs.h >>conftest.$ac_ext
! 62596: cat >>conftest.$ac_ext <<_ACEOF
! 62597: /* end confdefs.h. */
! 62598: $ac_includes_default
! 62599: typedef long long ac__type_sizeof_;
! 62600: int
! 62601: main ()
! 62602: {
! 62603: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 62604: test_array [0] = 0
1.1 misho 62605:
1.1.1.3 ! misho 62606: ;
! 62607: return 0;
! 62608: }
! 62609: _ACEOF
! 62610: rm -f conftest.$ac_objext
! 62611: if { (ac_try="$ac_compile"
! 62612: case "(($ac_try" in
! 62613: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62614: *) ac_try_echo=$ac_try;;
! 62615: esac
! 62616: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62617: (eval "$ac_compile") 2>conftest.er1
! 62618: ac_status=$?
! 62619: grep -v '^ *+' conftest.er1 >conftest.err
! 62620: rm -f conftest.er1
! 62621: cat conftest.err >&5
! 62622: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62623: (exit $ac_status); } && {
! 62624: test -z "$ac_c_werror_flag" ||
! 62625: test ! -s conftest.err
! 62626: } && test -s conftest.$ac_objext; then
! 62627: ac_lo=$ac_mid; break
! 62628: else
! 62629: echo "$as_me: failed program was:" >&5
! 62630: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62631:
1.1.1.3 ! misho 62632: ac_hi=`expr '(' $ac_mid ')' - 1`
! 62633: if test $ac_mid -le $ac_hi; then
! 62634: ac_lo= ac_hi=
! 62635: break
! 62636: fi
! 62637: ac_mid=`expr 2 '*' $ac_mid`
! 62638: fi
1.1 misho 62639:
1.1.1.3 ! misho 62640: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62641: done
1.1 misho 62642: else
1.1.1.3 ! misho 62643: echo "$as_me: failed program was:" >&5
! 62644: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62645:
1.1.1.3 ! misho 62646: ac_lo= ac_hi=
1.1 misho 62647: fi
62648:
1.1.1.3 ! misho 62649: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62650: fi
1.1 misho 62651:
1.1.1.3 ! misho 62652: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62653: # Binary search between lo and hi bounds.
! 62654: while test "x$ac_lo" != "x$ac_hi"; do
! 62655: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 62656: cat >conftest.$ac_ext <<_ACEOF
! 62657: /* confdefs.h. */
1.1 misho 62658: _ACEOF
1.1.1.3 ! misho 62659: cat confdefs.h >>conftest.$ac_ext
! 62660: cat >>conftest.$ac_ext <<_ACEOF
! 62661: /* end confdefs.h. */
! 62662: $ac_includes_default
! 62663: typedef long long ac__type_sizeof_;
! 62664: int
! 62665: main ()
! 62666: {
! 62667: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 62668: test_array [0] = 0
1.1 misho 62669:
1.1.1.3 ! misho 62670: ;
! 62671: return 0;
! 62672: }
! 62673: _ACEOF
! 62674: rm -f conftest.$ac_objext
! 62675: if { (ac_try="$ac_compile"
! 62676: case "(($ac_try" in
! 62677: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62678: *) ac_try_echo=$ac_try;;
! 62679: esac
! 62680: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62681: (eval "$ac_compile") 2>conftest.er1
! 62682: ac_status=$?
! 62683: grep -v '^ *+' conftest.er1 >conftest.err
! 62684: rm -f conftest.er1
! 62685: cat conftest.err >&5
! 62686: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62687: (exit $ac_status); } && {
! 62688: test -z "$ac_c_werror_flag" ||
! 62689: test ! -s conftest.err
! 62690: } && test -s conftest.$ac_objext; then
! 62691: ac_hi=$ac_mid
1.1 misho 62692: else
1.1.1.3 ! misho 62693: echo "$as_me: failed program was:" >&5
! 62694: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 62695:
1.1.1.3 ! misho 62696: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 62697: fi
62698:
1.1.1.3 ! misho 62699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 62700: done
! 62701: case $ac_lo in
! 62702: ?*) ac_cv_sizeof_long_long=$ac_lo;;
! 62703: '') if test "$ac_cv_type_long_long" = yes; then
! 62704: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
! 62705: See \`config.log' for more details." >&5
! 62706: echo "$as_me: error: cannot compute sizeof (long long)
! 62707: See \`config.log' for more details." >&2;}
! 62708: { (exit 77); exit 77; }; }
! 62709: else
! 62710: ac_cv_sizeof_long_long=0
! 62711: fi ;;
! 62712: esac
! 62713: else
! 62714: cat >conftest.$ac_ext <<_ACEOF
! 62715: /* confdefs.h. */
1.1 misho 62716: _ACEOF
1.1.1.3 ! misho 62717: cat confdefs.h >>conftest.$ac_ext
! 62718: cat >>conftest.$ac_ext <<_ACEOF
! 62719: /* end confdefs.h. */
! 62720: $ac_includes_default
! 62721: typedef long long ac__type_sizeof_;
! 62722: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 62723: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 62724: #include <stdio.h>
! 62725: #include <stdlib.h>
! 62726: int
! 62727: main ()
! 62728: {
1.1 misho 62729:
1.1.1.3 ! misho 62730: FILE *f = fopen ("conftest.val", "w");
! 62731: if (! f)
! 62732: return 1;
! 62733: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 62734: {
! 62735: long int i = longval ();
! 62736: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 62737: return 1;
! 62738: fprintf (f, "%ld\n", i);
! 62739: }
! 62740: else
! 62741: {
! 62742: unsigned long int i = ulongval ();
! 62743: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 62744: return 1;
! 62745: fprintf (f, "%lu\n", i);
! 62746: }
! 62747: return ferror (f) || fclose (f) != 0;
1.1 misho 62748:
1.1.1.3 ! misho 62749: ;
! 62750: return 0;
! 62751: }
! 62752: _ACEOF
! 62753: rm -f conftest$ac_exeext
! 62754: if { (ac_try="$ac_link"
! 62755: case "(($ac_try" in
! 62756: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62757: *) ac_try_echo=$ac_try;;
! 62758: esac
! 62759: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62760: (eval "$ac_link") 2>&5
! 62761: ac_status=$?
! 62762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62763: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 62764: { (case "(($ac_try" in
! 62765: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 62766: *) ac_try_echo=$ac_try;;
! 62767: esac
! 62768: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 62769: (eval "$ac_try") 2>&5
! 62770: ac_status=$?
! 62771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 62772: (exit $ac_status); }; }; then
! 62773: ac_cv_sizeof_long_long=`cat conftest.val`
1.1 misho 62774: else
1.1.1.3 ! misho 62775: echo "$as_me: program exited with status $ac_status" >&5
! 62776: echo "$as_me: failed program was:" >&5
! 62777: sed 's/^/| /' conftest.$ac_ext >&5
! 62778:
! 62779: ( exit $ac_status )
! 62780: if test "$ac_cv_type_long_long" = yes; then
! 62781: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
! 62782: See \`config.log' for more details." >&5
! 62783: echo "$as_me: error: cannot compute sizeof (long long)
! 62784: See \`config.log' for more details." >&2;}
! 62785: { (exit 77); exit 77; }; }
1.1 misho 62786: else
62787: ac_cv_sizeof_long_long=0
62788: fi
62789: fi
1.1.1.3 ! misho 62790: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 62791: fi
! 62792: rm -f conftest.val
1.1 misho 62793: fi
1.1.1.3 ! misho 62794: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
! 62795: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
1.1 misho 62796:
62797:
62798:
62799: cat >>confdefs.h <<_ACEOF
62800: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
62801: _ACEOF
62802:
62803:
62804:
62805: EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
62806: hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
1.1.1.2 misho 62807: hash_crc32.c hash_fnv.c hash_joaat.c"
1.1 misho 62808: EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
62809: php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
1.1.1.2 misho 62810: php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
62811: php_hash_fnv.h php_hash_joaat.h php_hash_types.h"
1.1 misho 62812:
62813:
62814: ext_builddir=ext/hash
62815: ext_srcdir=$abs_srcdir/ext/hash
62816:
62817: ac_extra=
62818:
62819: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
62820: PHP_HASH_SHARED=no
62821:
62822:
62823: case ext/hash in
62824: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62825: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62826: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62827: esac
62828:
62829:
62830:
62831: b_c_pre=$php_c_pre
62832: b_cxx_pre=$php_cxx_pre
62833: b_c_meta=$php_c_meta
62834: b_cxx_meta=$php_cxx_meta
62835: b_c_post=$php_c_post
62836: b_cxx_post=$php_cxx_post
62837: b_lo=$php_lo
62838:
62839:
62840: old_IFS=$IFS
62841: for ac_src in $EXT_HASH_SOURCES; do
62842:
62843: IFS=.
62844: set $ac_src
62845: ac_obj=$1
62846: IFS=$old_IFS
62847:
62848: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
62849:
62850: case $ac_src in
62851: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62852: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62853: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62854: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62855: esac
62856:
62857: cat >>Makefile.objects<<EOF
62858: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62859: $ac_comp
62860: EOF
62861: done
62862:
62863:
62864: EXT_STATIC="$EXT_STATIC hash"
62865: if test "$ext_shared" != "nocli"; then
62866: EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
62867: fi
62868: else
62869: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
62870: PHP_HASH_SHARED=yes
62871:
62872: case ext/hash in
62873: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62874: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62875: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62876: esac
62877:
62878:
62879:
62880: b_c_pre=$shared_c_pre
62881: b_cxx_pre=$shared_cxx_pre
62882: b_c_meta=$shared_c_meta
62883: b_cxx_meta=$shared_cxx_meta
62884: b_c_post=$shared_c_post
62885: b_cxx_post=$shared_cxx_post
62886: b_lo=$shared_lo
62887:
62888:
62889: old_IFS=$IFS
62890: for ac_src in $EXT_HASH_SOURCES; do
62891:
62892: IFS=.
62893: set $ac_src
62894: ac_obj=$1
62895: IFS=$old_IFS
62896:
62897: shared_objects_hash="$shared_objects_hash $ac_bdir$ac_obj.lo"
62898:
62899: case $ac_src in
62900: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62901: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62902: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62903: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62904: esac
62905:
62906: cat >>Makefile.objects<<EOF
62907: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62908: $ac_comp
62909: EOF
62910: done
62911:
62912: case $host_alias in
62913: *netware*)
62914:
62915: install_modules="install-modules"
62916:
62917: case $host_alias in
62918: *aix*)
62919: suffix=so
62920: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phphash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(PHPHASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phphash.so '$ext_builddir'/phphash.so'
62921: ;;
62922: *netware*)
62923: suffix=nlm
62924: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) -L$(top_builddir)/netware -lphp5lib $(HASH_SHARED_LIBADD)'
62925: ;;
62926: *)
62927: suffix=la
62928: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(PHPHASH_SHARED_LIBADD)'
62929: ;;
62930: esac
62931:
62932: if test "x" = "xyes"; then
62933: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phphash.$suffix"
62934: else
62935: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phphash.$suffix"
62936: fi
62937:
62938: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
62939:
62940: cat >>Makefile.objects<<EOF
62941: \$(phplibdir)/phphash.$suffix: $ext_builddir/phphash.$suffix
62942: \$(LIBTOOL) --mode=install cp $ext_builddir/phphash.$suffix \$(phplibdir)
62943:
62944: $ext_builddir/phphash.$suffix: \$(shared_objects_hash) \$(PHPHASH_SHARED_DEPENDENCIES)
62945: $link_cmd
62946:
62947: EOF
62948:
62949: ;;
62950: *)
62951:
62952: install_modules="install-modules"
62953:
62954: case $host_alias in
62955: *aix*)
62956: suffix=so
62957: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/hash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(HASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/hash.so '$ext_builddir'/hash.so'
62958: ;;
62959: *netware*)
62960: suffix=nlm
62961: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) -L$(top_builddir)/netware -lphp5lib $(H_SHARED_LIBADD)'
62962: ;;
62963: *)
62964: suffix=la
62965: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(HASH_SHARED_LIBADD)'
62966: ;;
62967: esac
62968:
62969: if test "x" = "xyes"; then
62970: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/hash.$suffix"
62971: else
62972: PHP_MODULES="$PHP_MODULES \$(phplibdir)/hash.$suffix"
62973: fi
62974:
62975: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
62976:
62977: cat >>Makefile.objects<<EOF
62978: \$(phplibdir)/hash.$suffix: $ext_builddir/hash.$suffix
62979: \$(LIBTOOL) --mode=install cp $ext_builddir/hash.$suffix \$(phplibdir)
62980:
62981: $ext_builddir/hash.$suffix: \$(shared_objects_hash) \$(HASH_SHARED_DEPENDENCIES)
62982: $link_cmd
62983:
62984: EOF
62985:
62986: ;;
62987: esac
62988:
62989: cat >>confdefs.h <<_ACEOF
62990: #define COMPILE_DL_HASH 1
62991: _ACEOF
62992:
62993: fi
62994: fi
62995:
62996: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
62997: PHP_HASH_SHARED=no
1.1.1.3 ! misho 62998: case "$PHP_SAPI" in
! 62999: cgi|embed)
1.1 misho 63000:
63001:
63002: case ext/hash in
63003: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63004: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63005: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63006: esac
63007:
63008:
63009:
63010: b_c_pre=$php_c_pre
63011: b_cxx_pre=$php_cxx_pre
63012: b_c_meta=$php_c_meta
63013: b_cxx_meta=$php_cxx_meta
63014: b_c_post=$php_c_post
63015: b_cxx_post=$php_cxx_post
63016: b_lo=$php_lo
63017:
63018:
63019: old_IFS=$IFS
63020: for ac_src in $EXT_HASH_SOURCES; do
63021:
63022: IFS=.
63023: set $ac_src
63024: ac_obj=$1
63025: IFS=$old_IFS
63026:
1.1.1.2 misho 63027: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 63028:
63029: case $ac_src in
63030: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63031: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63032: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63033: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63034: esac
63035:
63036: cat >>Makefile.objects<<EOF
63037: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63038: $ac_comp
63039: EOF
63040: done
63041:
63042:
1.1.1.3 ! misho 63043: EXT_STATIC="$EXT_STATIC hash"
! 63044: ;;
! 63045: *)
1.1 misho 63046:
63047:
63048: case ext/hash in
63049: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63050: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63051: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63052: esac
63053:
63054:
63055:
63056: b_c_pre=$php_c_pre
63057: b_cxx_pre=$php_cxx_pre
63058: b_c_meta=$php_c_meta
63059: b_cxx_meta=$php_cxx_meta
63060: b_c_post=$php_c_post
63061: b_cxx_post=$php_cxx_post
63062: b_lo=$php_lo
63063:
63064:
63065: old_IFS=$IFS
63066: for ac_src in $EXT_HASH_SOURCES; do
63067:
63068: IFS=.
63069: set $ac_src
63070: ac_obj=$1
63071: IFS=$old_IFS
63072:
1.1.1.2 misho 63073: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 63074:
63075: case $ac_src in
63076: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63077: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63078: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63079: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63080: esac
63081:
63082: cat >>Makefile.objects<<EOF
63083: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63084: $ac_comp
63085: EOF
63086: done
63087:
63088:
1.1.1.3 ! misho 63089: ;;
! 63090: esac
1.1 misho 63091: EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
63092: fi
63093:
63094:
63095: BUILD_DIR="$BUILD_DIR $ext_builddir"
63096:
63097:
63098:
63099: if test "$ext_builddir" = "."; then
63100: PHP_PECL_EXTENSION=hash
63101:
63102: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
63103:
63104: fi
63105:
63106:
63107:
63108:
63109: header_path=ext/hash
63110: for header_file in $EXT_HASH_HEADERS; do
63111: hp_hf="$header_path/$header_file"
63112:
63113:
63114: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
63115:
63116: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
63117: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63118: eval "INSTALLHEADERS$unique=set"
63119:
63120: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
63121:
63122: fi
63123:
63124: done
63125:
63126:
63127:
63128: fi
63129:
63130:
63131:
63132: php_with_iconv=yes
63133:
1.1.1.3 ! misho 63134: { echo "$as_me:$LINENO: checking for iconv support" >&5
! 63135: echo $ECHO_N "checking for iconv support... $ECHO_C" >&6; }
1.1 misho 63136:
63137: # Check whether --with-iconv was given.
1.1.1.3 ! misho 63138: if test "${with_iconv+set}" = set; then
1.1 misho 63139: withval=$with_iconv; PHP_ICONV=$withval
63140: else
63141:
63142: PHP_ICONV=yes
63143: test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL
63144:
63145: fi
63146:
63147:
63148:
63149: ext_output="yes, shared"
63150: ext_shared=yes
63151: case $PHP_ICONV in
63152: shared,*)
63153: PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'`
63154: ;;
63155: shared)
63156: PHP_ICONV=yes
63157: ;;
63158: no)
63159: ext_output=no
63160: ext_shared=no
63161: ;;
63162: *)
63163: ext_output=yes
63164: ext_shared=no
63165: ;;
63166: esac
63167:
63168:
63169:
1.1.1.3 ! misho 63170: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 63171: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 63172:
63173:
63174:
63175:
63176: if test "$PHP_ICONV" != "no"; then
63177:
63178:
63179: found_iconv=no
63180: unset ICONV_DIR
63181:
63182: # Create the directories for a VPATH build:
63183: $php_shtool mkdir -p ext/iconv
63184:
63185: echo > ext/iconv/php_have_bsd_iconv.h
63186: echo > ext/iconv/php_have_ibm_iconv.h
63187: echo > ext/iconv/php_have_glibc_iconv.h
63188: echo > ext/iconv/php_have_libiconv.h
63189: echo > ext/iconv/php_have_iconv.h
63190: echo > ext/iconv/php_php_iconv_impl.h
63191: echo > ext/iconv/php_iconv_aliased_libiconv.h
63192: echo > ext/iconv/php_php_iconv_h_path.h
63193: echo > ext/iconv/php_iconv_supports_errno.h
63194:
1.1.1.3 ! misho 63195:
! 63196: if test "$PHP_ICONV" = "yes"; then
! 63197: LIBS_save="$LIBS"
! 63198: LIBS=
! 63199: { echo "$as_me:$LINENO: checking for iconv" >&5
! 63200: echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
! 63201: if test "${ac_cv_func_iconv+set}" = set; then
! 63202: echo $ECHO_N "(cached) $ECHO_C" >&6
! 63203: else
! 63204: cat >conftest.$ac_ext <<_ACEOF
! 63205: /* confdefs.h. */
! 63206: _ACEOF
! 63207: cat confdefs.h >>conftest.$ac_ext
! 63208: cat >>conftest.$ac_ext <<_ACEOF
! 63209: /* end confdefs.h. */
! 63210: /* Define iconv to an innocuous variant, in case <limits.h> declares iconv.
! 63211: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 63212: #define iconv innocuous_iconv
! 63213:
! 63214: /* System header to define __stub macros and hopefully few prototypes,
! 63215: which can conflict with char iconv (); below.
! 63216: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 63217: <limits.h> exists even on freestanding compilers. */
! 63218:
! 63219: #ifdef __STDC__
! 63220: # include <limits.h>
! 63221: #else
! 63222: # include <assert.h>
! 63223: #endif
! 63224:
! 63225: #undef iconv
! 63226:
! 63227: /* Override any GCC internal prototype to avoid an error.
! 63228: Use char because int might match the return type of a GCC
! 63229: builtin and then its argument prototype would still apply. */
! 63230: #ifdef __cplusplus
! 63231: extern "C"
! 63232: #endif
! 63233: char iconv ();
! 63234: /* The GNU C library defines this for functions which it implements
! 63235: to always fail with ENOSYS. Some functions are actually named
! 63236: something starting with __ and the normal name is an alias. */
! 63237: #if defined __stub_iconv || defined __stub___iconv
! 63238: choke me
! 63239: #endif
! 63240:
! 63241: int
! 63242: main ()
! 63243: {
! 63244: return iconv ();
! 63245: ;
! 63246: return 0;
! 63247: }
! 63248: _ACEOF
! 63249: rm -f conftest.$ac_objext conftest$ac_exeext
! 63250: if { (ac_try="$ac_link"
! 63251: case "(($ac_try" in
! 63252: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 63253: *) ac_try_echo=$ac_try;;
! 63254: esac
! 63255: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 63256: (eval "$ac_link") 2>conftest.er1
! 63257: ac_status=$?
! 63258: grep -v '^ *+' conftest.er1 >conftest.err
! 63259: rm -f conftest.er1
! 63260: cat conftest.err >&5
! 63261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 63262: (exit $ac_status); } && {
! 63263: test -z "$ac_c_werror_flag" ||
! 63264: test ! -s conftest.err
! 63265: } && test -s conftest$ac_exeext &&
! 63266: $as_test_x conftest$ac_exeext; then
! 63267: ac_cv_func_iconv=yes
! 63268: else
! 63269: echo "$as_me: failed program was:" >&5
! 63270: sed 's/^/| /' conftest.$ac_ext >&5
! 63271:
! 63272: ac_cv_func_iconv=no
! 63273: fi
! 63274:
! 63275: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 63276: conftest$ac_exeext conftest.$ac_ext
! 63277: fi
! 63278: { echo "$as_me:$LINENO: result: $ac_cv_func_iconv" >&5
! 63279: echo "${ECHO_T}$ac_cv_func_iconv" >&6; }
! 63280: if test $ac_cv_func_iconv = yes; then
1.1 misho 63281:
63282: found_iconv=yes
63283:
63284: else
63285:
1.1.1.3 ! misho 63286: { echo "$as_me:$LINENO: checking for libiconv" >&5
! 63287: echo $ECHO_N "checking for libiconv... $ECHO_C" >&6; }
! 63288: if test "${ac_cv_func_libiconv+set}" = set; then
! 63289: echo $ECHO_N "(cached) $ECHO_C" >&6
! 63290: else
! 63291: cat >conftest.$ac_ext <<_ACEOF
! 63292: /* confdefs.h. */
! 63293: _ACEOF
! 63294: cat confdefs.h >>conftest.$ac_ext
! 63295: cat >>conftest.$ac_ext <<_ACEOF
! 63296: /* end confdefs.h. */
! 63297: /* Define libiconv to an innocuous variant, in case <limits.h> declares libiconv.
! 63298: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 63299: #define libiconv innocuous_libiconv
! 63300:
! 63301: /* System header to define __stub macros and hopefully few prototypes,
! 63302: which can conflict with char libiconv (); below.
! 63303: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 63304: <limits.h> exists even on freestanding compilers. */
! 63305:
! 63306: #ifdef __STDC__
! 63307: # include <limits.h>
! 63308: #else
! 63309: # include <assert.h>
! 63310: #endif
! 63311:
! 63312: #undef libiconv
! 63313:
! 63314: /* Override any GCC internal prototype to avoid an error.
! 63315: Use char because int might match the return type of a GCC
! 63316: builtin and then its argument prototype would still apply. */
! 63317: #ifdef __cplusplus
! 63318: extern "C"
! 63319: #endif
! 63320: char libiconv ();
! 63321: /* The GNU C library defines this for functions which it implements
! 63322: to always fail with ENOSYS. Some functions are actually named
! 63323: something starting with __ and the normal name is an alias. */
! 63324: #if defined __stub_libiconv || defined __stub___libiconv
! 63325: choke me
! 63326: #endif
! 63327:
! 63328: int
! 63329: main ()
! 63330: {
! 63331: return libiconv ();
! 63332: ;
! 63333: return 0;
! 63334: }
! 63335: _ACEOF
! 63336: rm -f conftest.$ac_objext conftest$ac_exeext
! 63337: if { (ac_try="$ac_link"
! 63338: case "(($ac_try" in
! 63339: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 63340: *) ac_try_echo=$ac_try;;
! 63341: esac
! 63342: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 63343: (eval "$ac_link") 2>conftest.er1
! 63344: ac_status=$?
! 63345: grep -v '^ *+' conftest.er1 >conftest.err
! 63346: rm -f conftest.er1
! 63347: cat conftest.err >&5
! 63348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 63349: (exit $ac_status); } && {
! 63350: test -z "$ac_c_werror_flag" ||
! 63351: test ! -s conftest.err
! 63352: } && test -s conftest$ac_exeext &&
! 63353: $as_test_x conftest$ac_exeext; then
! 63354: ac_cv_func_libiconv=yes
! 63355: else
! 63356: echo "$as_me: failed program was:" >&5
! 63357: sed 's/^/| /' conftest.$ac_ext >&5
! 63358:
! 63359: ac_cv_func_libiconv=no
! 63360: fi
! 63361:
! 63362: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 63363: conftest$ac_exeext conftest.$ac_ext
! 63364: fi
! 63365: { echo "$as_me:$LINENO: result: $ac_cv_func_libiconv" >&5
! 63366: echo "${ECHO_T}$ac_cv_func_libiconv" >&6; }
! 63367: if test $ac_cv_func_libiconv = yes; then
1.1 misho 63368:
63369:
63370: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
63371:
63372:
1.1.1.3 ! misho 63373: cat >>confdefs.h <<\_ACEOF
! 63374: #define HAVE_LIBICONV 1
! 63375: _ACEOF
1.1 misho 63376:
63377: found_iconv=yes
63378:
63379: fi
63380:
63381:
63382: fi
63383:
1.1.1.3 ! misho 63384: LIBS="$LIBS_save"
1.1 misho 63385: fi
63386:
63387: if test "$found_iconv" = "no"; then
63388:
63389: for i in $PHP_ICONV /usr/local /usr; do
63390: if test -r $i/include/giconv.h; then
63391:
1.1.1.3 ! misho 63392: cat >>confdefs.h <<\_ACEOF
! 63393: #define HAVE_GICONV_H 1
! 63394: _ACEOF
1.1 misho 63395:
63396: ICONV_DIR=$i
63397: iconv_lib_name=giconv
63398: break
63399: elif test -r $i/include/iconv.h; then
63400: ICONV_DIR=$i
63401: iconv_lib_name=iconv
63402: break
63403: fi
63404: done
63405:
63406: if test -z "$ICONV_DIR"; then
1.1.1.3 ! misho 63407: { { echo "$as_me:$LINENO: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&5
! 63408: echo "$as_me: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&2;}
! 63409: { (exit 1); exit 1; }; }
1.1 misho 63410: fi
63411:
63412: if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
63413: test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
63414: then
63415:
63416: save_old_LDFLAGS=$LDFLAGS
63417: ac_stuff="
63418: -L$ICONV_DIR/$PHP_LIBDIR
63419: "
63420:
63421: save_ext_shared=$ext_shared
63422: ext_shared=yes
63423:
63424: for ac_i in $ac_stuff; do
63425: case $ac_i in
63426: -pthread)
63427: if test "$ext_shared" = "yes"; then
63428: LDFLAGS="$LDFLAGS -pthread"
63429: else
63430:
63431:
63432: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63433:
63434: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63435: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63436: eval "EXTRA_LDFLAGS$unique=set"
63437: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63438: fi
63439:
63440: fi
63441: ;;
63442: -l*)
63443: ac_ii=`echo $ac_i|cut -c 3-`
63444:
63445:
63446: case $ac_ii in
63447: c|c_r|pthread*) ;;
63448: *)
63449: if test "$ext_shared" = "yes"; then
63450: LDFLAGS="$LDFLAGS -l$ac_ii"
63451: else
63452:
63453:
63454: case $ac_ii in
63455: c|c_r|pthread*) ;;
63456: *)
63457: LIBS="$LIBS -l$ac_ii"
63458: ;;
63459: esac
63460:
63461:
63462: fi
63463: ;;
63464: esac
63465:
63466:
63467: ;;
63468: -L*)
63469: ac_ii=`echo $ac_i|cut -c 3-`
63470:
63471: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63472:
63473: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63474: ai_p=$ac_ii
63475: else
63476:
63477: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
63478:
63479: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63480: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63481: fi
63482:
63483:
63484: if test "$ext_shared" = "yes"; then
63485: LDFLAGS="-L$ai_p $LDFLAGS"
63486: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63487: else
63488:
63489:
63490:
63491: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63492:
63493: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63494: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63495: eval "LIBPATH$unique=set"
63496:
63497: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63498: LDFLAGS="$LDFLAGS -L$ai_p"
63499: PHP_RPATHS="$PHP_RPATHS $ai_p"
63500:
63501: fi
63502:
63503:
63504: fi
63505:
63506: fi
63507:
63508: ;;
63509: esac
63510: done
63511:
1.1.1.3 ! misho 63512: as_ac_Lib=`echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
! 63513: { echo "$as_me:$LINENO: checking for libiconv in -l$iconv_lib_name" >&5
! 63514: echo $ECHO_N "checking for libiconv in -l$iconv_lib_name... $ECHO_C" >&6; }
! 63515: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 63516: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 63517: else
63518: ac_check_lib_save_LIBS=$LIBS
63519: LIBS="-l$iconv_lib_name $LIBS"
1.1.1.3 ! misho 63520: cat >conftest.$ac_ext <<_ACEOF
! 63521: /* confdefs.h. */
! 63522: _ACEOF
! 63523: cat confdefs.h >>conftest.$ac_ext
! 63524: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 63525: /* end confdefs.h. */
63526:
63527: /* Override any GCC internal prototype to avoid an error.
63528: Use char because int might match the return type of a GCC
63529: builtin and then its argument prototype would still apply. */
63530: #ifdef __cplusplus
63531: extern "C"
63532: #endif
63533: char libiconv ();
63534: int
63535: main ()
63536: {
63537: return libiconv ();
63538: ;
63539: return 0;
63540: }
63541: _ACEOF
1.1.1.3 ! misho 63542: rm -f conftest.$ac_objext conftest$ac_exeext
! 63543: if { (ac_try="$ac_link"
! 63544: case "(($ac_try" in
! 63545: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 63546: *) ac_try_echo=$ac_try;;
! 63547: esac
! 63548: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 63549: (eval "$ac_link") 2>conftest.er1
! 63550: ac_status=$?
! 63551: grep -v '^ *+' conftest.er1 >conftest.err
! 63552: rm -f conftest.er1
! 63553: cat conftest.err >&5
! 63554: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 63555: (exit $ac_status); } && {
! 63556: test -z "$ac_c_werror_flag" ||
! 63557: test ! -s conftest.err
! 63558: } && test -s conftest$ac_exeext &&
! 63559: $as_test_x conftest$ac_exeext; then
1.1 misho 63560: eval "$as_ac_Lib=yes"
63561: else
1.1.1.3 ! misho 63562: echo "$as_me: failed program was:" >&5
! 63563: sed 's/^/| /' conftest.$ac_ext >&5
! 63564:
! 63565: eval "$as_ac_Lib=no"
1.1 misho 63566: fi
1.1.1.3 ! misho 63567:
! 63568: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 63569: conftest$ac_exeext conftest.$ac_ext
1.1 misho 63570: LIBS=$ac_check_lib_save_LIBS
63571: fi
1.1.1.3 ! misho 63572: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 63573: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 63574: echo "${ECHO_T}$ac_res" >&6; }
! 63575: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 63576:
63577: LDFLAGS=$save_old_LDFLAGS
63578: ext_shared=$save_ext_shared
63579:
63580: found_iconv=yes
63581:
63582: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
63583:
63584:
1.1.1.3 ! misho 63585: cat >>confdefs.h <<\_ACEOF
! 63586: #define HAVE_LIBICONV 1
! 63587: _ACEOF
1.1 misho 63588:
63589:
63590: echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
63591:
63592:
1.1.1.3 ! misho 63593: cat >>confdefs.h <<\_ACEOF
! 63594: #define ICONV_ALIASED_LIBICONV 1
! 63595: _ACEOF
1.1 misho 63596:
63597:
63598:
63599: else
63600:
63601: LDFLAGS=$save_old_LDFLAGS
63602: ext_shared=$save_ext_shared
63603: unset ac_cv_lib_$iconv_lib_name_libiconv
63604:
63605:
63606: save_old_LDFLAGS=$LDFLAGS
63607: ac_stuff="
63608: -L$ICONV_DIR/$PHP_LIBDIR
63609: "
63610:
63611: save_ext_shared=$ext_shared
63612: ext_shared=yes
63613:
63614: for ac_i in $ac_stuff; do
63615: case $ac_i in
63616: -pthread)
63617: if test "$ext_shared" = "yes"; then
63618: LDFLAGS="$LDFLAGS -pthread"
63619: else
63620:
63621:
63622: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63623:
63624: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63625: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63626: eval "EXTRA_LDFLAGS$unique=set"
63627: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63628: fi
63629:
63630: fi
63631: ;;
63632: -l*)
63633: ac_ii=`echo $ac_i|cut -c 3-`
63634:
63635:
63636: case $ac_ii in
63637: c|c_r|pthread*) ;;
63638: *)
63639: if test "$ext_shared" = "yes"; then
63640: LDFLAGS="$LDFLAGS -l$ac_ii"
63641: else
63642:
63643:
63644: case $ac_ii in
63645: c|c_r|pthread*) ;;
63646: *)
63647: LIBS="$LIBS -l$ac_ii"
63648: ;;
63649: esac
63650:
63651:
63652: fi
63653: ;;
63654: esac
63655:
63656:
63657: ;;
63658: -L*)
63659: ac_ii=`echo $ac_i|cut -c 3-`
63660:
63661: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63662:
63663: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63664: ai_p=$ac_ii
63665: else
63666:
63667: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
63668:
63669: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63670: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63671: fi
63672:
63673:
63674: if test "$ext_shared" = "yes"; then
63675: LDFLAGS="-L$ai_p $LDFLAGS"
63676: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63677: else
63678:
63679:
63680:
63681: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63682:
63683: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63684: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63685: eval "LIBPATH$unique=set"
63686:
63687: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63688: LDFLAGS="$LDFLAGS -L$ai_p"
63689: PHP_RPATHS="$PHP_RPATHS $ai_p"
63690:
63691: fi
63692:
63693:
63694: fi
63695:
63696: fi
63697:
63698: ;;
63699: esac
63700: done
63701:
1.1.1.3 ! misho 63702: as_ac_Lib=`echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
! 63703: { echo "$as_me:$LINENO: checking for iconv in -l$iconv_lib_name" >&5
! 63704: echo $ECHO_N "checking for iconv in -l$iconv_lib_name... $ECHO_C" >&6; }
! 63705: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 63706: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 63707: else
63708: ac_check_lib_save_LIBS=$LIBS
63709: LIBS="-l$iconv_lib_name $LIBS"
1.1.1.3 ! misho 63710: cat >conftest.$ac_ext <<_ACEOF
! 63711: /* confdefs.h. */
! 63712: _ACEOF
! 63713: cat confdefs.h >>conftest.$ac_ext
! 63714: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 63715: /* end confdefs.h. */
63716:
63717: /* Override any GCC internal prototype to avoid an error.
63718: Use char because int might match the return type of a GCC
63719: builtin and then its argument prototype would still apply. */
63720: #ifdef __cplusplus
63721: extern "C"
63722: #endif
63723: char iconv ();
63724: int
63725: main ()
63726: {
63727: return iconv ();
63728: ;
63729: return 0;
63730: }
63731: _ACEOF
1.1.1.3 ! misho 63732: rm -f conftest.$ac_objext conftest$ac_exeext
! 63733: if { (ac_try="$ac_link"
! 63734: case "(($ac_try" in
! 63735: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 63736: *) ac_try_echo=$ac_try;;
! 63737: esac
! 63738: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 63739: (eval "$ac_link") 2>conftest.er1
! 63740: ac_status=$?
! 63741: grep -v '^ *+' conftest.er1 >conftest.err
! 63742: rm -f conftest.er1
! 63743: cat conftest.err >&5
! 63744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 63745: (exit $ac_status); } && {
! 63746: test -z "$ac_c_werror_flag" ||
! 63747: test ! -s conftest.err
! 63748: } && test -s conftest$ac_exeext &&
! 63749: $as_test_x conftest$ac_exeext; then
1.1 misho 63750: eval "$as_ac_Lib=yes"
63751: else
1.1.1.3 ! misho 63752: echo "$as_me: failed program was:" >&5
! 63753: sed 's/^/| /' conftest.$ac_ext >&5
! 63754:
! 63755: eval "$as_ac_Lib=no"
1.1 misho 63756: fi
1.1.1.3 ! misho 63757:
! 63758: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 63759: conftest$ac_exeext conftest.$ac_ext
1.1 misho 63760: LIBS=$ac_check_lib_save_LIBS
63761: fi
1.1.1.3 ! misho 63762: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 63763: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 63764: echo "${ECHO_T}$ac_res" >&6; }
! 63765: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 63766:
63767: LDFLAGS=$save_old_LDFLAGS
63768: ext_shared=$save_ext_shared
63769:
63770: found_iconv=yes
63771:
63772:
63773: else
63774:
63775: LDFLAGS=$save_old_LDFLAGS
63776: ext_shared=$save_ext_shared
63777: unset ac_cv_lib_$iconv_lib_name_iconv
63778:
63779:
63780: fi
63781:
63782:
63783:
63784: fi
63785:
63786: fi
63787: fi
63788:
63789: if test "$found_iconv" = "yes"; then
63790:
63791: echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
63792:
63793:
1.1.1.3 ! misho 63794: cat >>confdefs.h <<\_ACEOF
! 63795: #define HAVE_ICONV 1
! 63796: _ACEOF
1.1 misho 63797:
63798: if test -n "$ICONV_DIR"; then
63799:
63800:
63801: if test "$ext_shared" = "yes"; then
63802: ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD"
63803: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
63804:
63805: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
63806:
63807: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
63808: ai_p=$ICONV_DIR/$PHP_LIBDIR
63809: else
63810:
63811: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
63812:
63813: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63814: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
63815: fi
63816:
63817:
63818: if test "$ext_shared" = "yes"; then
63819: ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
63820: test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
63821: else
63822:
63823:
63824:
63825: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63826:
63827: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63828: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63829: eval "LIBPATH$unique=set"
63830:
63831: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63832: LDFLAGS="$LDFLAGS -L$ai_p"
63833: PHP_RPATHS="$PHP_RPATHS $ai_p"
63834:
63835: fi
63836:
63837:
63838: fi
63839:
63840: fi
63841:
63842: fi
63843: else
63844:
63845:
63846: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
63847:
63848: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
63849:
63850: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
63851: ai_p=$ICONV_DIR/$PHP_LIBDIR
63852: else
63853:
63854: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
63855:
63856: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63857: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
63858: fi
63859:
63860:
63861:
63862:
63863:
63864: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63865:
63866: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63867: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63868: eval "LIBPATH$unique=set"
63869:
63870: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63871: LDFLAGS="$LDFLAGS -L$ai_p"
63872: PHP_RPATHS="$PHP_RPATHS $ai_p"
63873:
63874: fi
63875:
63876:
63877:
63878: fi
63879:
63880: fi
63881:
63882:
63883: case $iconv_lib_name in
63884: c|c_r|pthread*) ;;
63885: *)
63886: LIBS="-l$iconv_lib_name $LIBS"
63887: ;;
63888: esac
63889:
63890:
63891:
63892:
63893: fi
63894:
63895:
63896:
63897: if test "$ICONV_DIR/include" != "/usr/include"; then
63898:
63899: if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
63900: ai_p=$ICONV_DIR/include
63901: else
63902:
63903: ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
63904:
63905: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63906: ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
63907: fi
63908:
63909:
63910:
63911: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63912:
63913: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63914: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63915: eval "INCLUDEPATH$unique=set"
63916:
63917: if test ""; then
63918: INCLUDES="-I$ai_p $INCLUDES"
63919: else
63920: INCLUDES="$INCLUDES -I$ai_p"
63921: fi
63922:
63923: fi
63924:
63925: fi
63926:
63927: fi
63928:
63929: iconv_avail="yes";
63930:
63931: else
63932: iconv_avail="no";
63933:
63934: fi
63935:
63936:
63937: if test "$iconv_avail" != "no"; then
63938: if test -z "$ICONV_DIR"; then
63939: for i in /usr/local /usr; do
63940: if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
63941: PHP_ICONV_PREFIX="$i"
63942: break
63943: fi
63944: done
63945: if test -z "$PHP_ICONV_PREFIX"; then
63946: PHP_ICONV_PREFIX="/usr"
63947: fi
63948: else
63949: PHP_ICONV_PREFIX="$ICONV_DIR"
63950: fi
63951:
63952: CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
63953: LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
63954:
63955: if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
63956: PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
63957: else
63958: PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
63959: fi
63960:
1.1.1.3 ! misho 63961: { echo "$as_me:$LINENO: checking if iconv is glibc's" >&5
! 63962: echo $ECHO_N "checking if iconv is glibc's... $ECHO_C" >&6; }
! 63963: cat >conftest.$ac_ext <<_ACEOF
! 63964: /* confdefs.h. */
! 63965: _ACEOF
! 63966: cat confdefs.h >>conftest.$ac_ext
! 63967: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 63968: /* end confdefs.h. */
63969: #include <gnu/libc-version.h>
63970: int
63971: main ()
63972: {
63973: gnu_get_libc_version();
63974: ;
63975: return 0;
63976: }
63977: _ACEOF
1.1.1.3 ! misho 63978: rm -f conftest.$ac_objext conftest$ac_exeext
! 63979: if { (ac_try="$ac_link"
! 63980: case "(($ac_try" in
! 63981: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 63982: *) ac_try_echo=$ac_try;;
! 63983: esac
! 63984: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 63985: (eval "$ac_link") 2>conftest.er1
! 63986: ac_status=$?
! 63987: grep -v '^ *+' conftest.er1 >conftest.err
! 63988: rm -f conftest.er1
! 63989: cat conftest.err >&5
! 63990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 63991: (exit $ac_status); } && {
! 63992: test -z "$ac_c_werror_flag" ||
! 63993: test ! -s conftest.err
! 63994: } && test -s conftest$ac_exeext &&
! 63995: $as_test_x conftest$ac_exeext; then
1.1 misho 63996:
1.1.1.3 ! misho 63997: { echo "$as_me:$LINENO: result: yes" >&5
! 63998: echo "${ECHO_T}yes" >&6; }
1.1 misho 63999: iconv_impl_name="glibc"
64000:
64001: else
1.1.1.3 ! misho 64002: echo "$as_me: failed program was:" >&5
! 64003: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 64004:
1.1.1.3 ! misho 64005:
! 64006: { echo "$as_me:$LINENO: result: no" >&5
! 64007: echo "${ECHO_T}no" >&6; }
1.1 misho 64008:
64009: fi
1.1.1.3 ! misho 64010:
! 64011: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 64012: conftest$ac_exeext conftest.$ac_ext
1.1 misho 64013:
64014: if test -z "$iconv_impl_name"; then
1.1.1.3 ! misho 64015: { echo "$as_me:$LINENO: checking if using GNU libiconv" >&5
! 64016: echo $ECHO_N "checking if using GNU libiconv... $ECHO_C" >&6; }
1.1 misho 64017: php_iconv_old_ld="$LDFLAGS"
64018: LDFLAGS="-liconv $LDFLAGS"
1.1.1.3 ! misho 64019: if test "$cross_compiling" = yes; then
1.1 misho 64020:
1.1.1.3 ! misho 64021: { echo "$as_me:$LINENO: result: no" >&5
! 64022: echo "${ECHO_T}no" >&6; }
1.1 misho 64023: LDFLAGS="$php_iconv_old_ld"
64024:
64025: else
1.1.1.3 ! misho 64026: cat >conftest.$ac_ext <<_ACEOF
! 64027: /* confdefs.h. */
! 64028: _ACEOF
! 64029: cat confdefs.h >>conftest.$ac_ext
! 64030: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 64031: /* end confdefs.h. */
64032:
64033: #include <$PHP_ICONV_H_PATH>
64034: int main() {
64035: printf("%d", _libiconv_version);
64036: return 0;
64037: }
64038:
64039: _ACEOF
1.1.1.3 ! misho 64040: rm -f conftest$ac_exeext
! 64041: if { (ac_try="$ac_link"
! 64042: case "(($ac_try" in
! 64043: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64044: *) ac_try_echo=$ac_try;;
! 64045: esac
! 64046: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64047: (eval "$ac_link") 2>&5
! 64048: ac_status=$?
! 64049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64050: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 64051: { (case "(($ac_try" in
! 64052: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64053: *) ac_try_echo=$ac_try;;
! 64054: esac
! 64055: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64056: (eval "$ac_try") 2>&5
! 64057: ac_status=$?
! 64058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64059: (exit $ac_status); }; }; then
1.1 misho 64060:
1.1.1.3 ! misho 64061: { echo "$as_me:$LINENO: result: yes" >&5
! 64062: echo "${ECHO_T}yes" >&6; }
1.1 misho 64063: iconv_impl_name="gnu_libiconv"
64064:
64065: else
1.1.1.3 ! misho 64066: echo "$as_me: program exited with status $ac_status" >&5
! 64067: echo "$as_me: failed program was:" >&5
! 64068: sed 's/^/| /' conftest.$ac_ext >&5
! 64069:
! 64070: ( exit $ac_status )
1.1 misho 64071:
1.1.1.3 ! misho 64072: { echo "$as_me:$LINENO: result: no" >&5
! 64073: echo "${ECHO_T}no" >&6; }
1.1 misho 64074: LDFLAGS="$php_iconv_old_ld"
64075:
64076: fi
1.1.1.3 ! misho 64077: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 64078: fi
64079:
1.1.1.3 ! misho 64080:
1.1 misho 64081: fi
64082:
64083: if test -z "$iconv_impl_name"; then
1.1.1.3 ! misho 64084: { echo "$as_me:$LINENO: checking if iconv is Konstantin Chuguev's" >&5
! 64085: echo $ECHO_N "checking if iconv is Konstantin Chuguev's... $ECHO_C" >&6; }
! 64086: cat >conftest.$ac_ext <<_ACEOF
! 64087: /* confdefs.h. */
! 64088: _ACEOF
! 64089: cat confdefs.h >>conftest.$ac_ext
! 64090: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 64091: /* end confdefs.h. */
64092: #include <iconv.h>
64093: int
64094: main ()
64095: {
64096: iconv_ccs_init(NULL, NULL);
64097: ;
64098: return 0;
64099: }
64100: _ACEOF
1.1.1.3 ! misho 64101: rm -f conftest.$ac_objext conftest$ac_exeext
! 64102: if { (ac_try="$ac_link"
! 64103: case "(($ac_try" in
! 64104: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64105: *) ac_try_echo=$ac_try;;
! 64106: esac
! 64107: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64108: (eval "$ac_link") 2>conftest.er1
! 64109: ac_status=$?
! 64110: grep -v '^ *+' conftest.er1 >conftest.err
! 64111: rm -f conftest.er1
! 64112: cat conftest.err >&5
! 64113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64114: (exit $ac_status); } && {
! 64115: test -z "$ac_c_werror_flag" ||
! 64116: test ! -s conftest.err
! 64117: } && test -s conftest$ac_exeext &&
! 64118: $as_test_x conftest$ac_exeext; then
1.1 misho 64119:
1.1.1.3 ! misho 64120: { echo "$as_me:$LINENO: result: yes" >&5
! 64121: echo "${ECHO_T}yes" >&6; }
1.1 misho 64122: iconv_impl_name="bsd"
64123:
64124: else
1.1.1.3 ! misho 64125: echo "$as_me: failed program was:" >&5
! 64126: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 64127:
1.1.1.3 ! misho 64128:
! 64129: { echo "$as_me:$LINENO: result: no" >&5
! 64130: echo "${ECHO_T}no" >&6; }
1.1 misho 64131:
64132: fi
1.1.1.3 ! misho 64133:
! 64134: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 64135: conftest$ac_exeext conftest.$ac_ext
1.1 misho 64136: fi
64137:
64138: if test -z "$iconv_impl_name"; then
1.1.1.3 ! misho 64139: { echo "$as_me:$LINENO: checking if using IBM iconv" >&5
! 64140: echo $ECHO_N "checking if using IBM iconv... $ECHO_C" >&6; }
1.1 misho 64141: php_iconv_old_ld="$LDFLAGS"
64142: LDFLAGS="-liconv $LDFLAGS"
1.1.1.3 ! misho 64143: cat >conftest.$ac_ext <<_ACEOF
! 64144: /* confdefs.h. */
! 64145: _ACEOF
! 64146: cat confdefs.h >>conftest.$ac_ext
! 64147: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 64148: /* end confdefs.h. */
64149: #include <iconv.h>
64150: int
64151: main ()
64152: {
64153: cstoccsid("");
64154: ;
64155: return 0;
64156: }
64157: _ACEOF
1.1.1.3 ! misho 64158: rm -f conftest.$ac_objext conftest$ac_exeext
! 64159: if { (ac_try="$ac_link"
! 64160: case "(($ac_try" in
! 64161: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64162: *) ac_try_echo=$ac_try;;
! 64163: esac
! 64164: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64165: (eval "$ac_link") 2>conftest.er1
! 64166: ac_status=$?
! 64167: grep -v '^ *+' conftest.er1 >conftest.err
! 64168: rm -f conftest.er1
! 64169: cat conftest.err >&5
! 64170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64171: (exit $ac_status); } && {
! 64172: test -z "$ac_c_werror_flag" ||
! 64173: test ! -s conftest.err
! 64174: } && test -s conftest$ac_exeext &&
! 64175: $as_test_x conftest$ac_exeext; then
1.1 misho 64176:
1.1.1.3 ! misho 64177: { echo "$as_me:$LINENO: result: yes" >&5
! 64178: echo "${ECHO_T}yes" >&6; }
1.1 misho 64179: iconv_impl_name="ibm"
64180:
64181: else
1.1.1.3 ! misho 64182: echo "$as_me: failed program was:" >&5
! 64183: sed 's/^/| /' conftest.$ac_ext >&5
! 64184:
1.1 misho 64185:
1.1.1.3 ! misho 64186: { echo "$as_me:$LINENO: result: no" >&5
! 64187: echo "${ECHO_T}no" >&6; }
1.1 misho 64188: LDFLAGS="$php_iconv_old_ld"
64189:
64190: fi
1.1.1.3 ! misho 64191:
! 64192: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 64193: conftest$ac_exeext conftest.$ac_ext
1.1 misho 64194: fi
64195:
64196: echo > ext/iconv/php_have_bsd_iconv.h
64197: echo > ext/iconv/php_have_glibc_iconv.h
64198: echo > ext/iconv/php_have_libiconv.h
64199: echo > ext/iconv/php_have_ibm_iconv.h
64200:
64201: case "$iconv_impl_name" in
64202: gnu_libiconv )
64203:
64204: echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h
64205:
64206:
1.1.1.3 ! misho 64207: cat >>confdefs.h <<\_ACEOF
! 64208: #define PHP_ICONV_IMPL "libiconv"
! 64209: _ACEOF
1.1 misho 64210:
64211:
64212: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
64213:
64214:
64215:
64216: if test "$ext_shared" = "yes"; then
64217: ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD"
64218: if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
64219:
64220: if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
64221:
64222: if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
64223: ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
64224: else
64225:
64226: ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
64227:
64228: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64229: ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
64230: fi
64231:
64232:
64233: if test "$ext_shared" = "yes"; then
64234: ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
64235: test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
64236: else
64237:
64238:
64239:
64240: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64241:
64242: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64243: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64244: eval "LIBPATH$unique=set"
64245:
64246: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64247: LDFLAGS="$LDFLAGS -L$ai_p"
64248: PHP_RPATHS="$PHP_RPATHS $ai_p"
64249:
64250: fi
64251:
64252:
64253: fi
64254:
64255: fi
64256:
64257: fi
64258: else
64259:
64260:
64261: if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
64262:
64263: if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
64264:
64265: if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
64266: ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
64267: else
64268:
64269: ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
64270:
64271: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64272: ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
64273: fi
64274:
64275:
64276:
64277:
64278:
64279: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64280:
64281: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64282: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64283: eval "LIBPATH$unique=set"
64284:
64285: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64286: LDFLAGS="$LDFLAGS -L$ai_p"
64287: PHP_RPATHS="$PHP_RPATHS $ai_p"
64288:
64289: fi
64290:
64291:
64292:
64293: fi
64294:
64295: fi
64296:
64297:
64298: case iconv in
64299: c|c_r|pthread*) ;;
64300: *)
64301: LIBS="-liconv $LIBS"
64302: ;;
64303: esac
64304:
64305:
64306:
64307:
64308: fi
64309:
64310:
64311: ;;
64312:
64313: bsd )
64314:
64315: echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h
64316:
64317:
1.1.1.3 ! misho 64318: cat >>confdefs.h <<\_ACEOF
! 64319: #define HAVE_BSD_ICONV 1
! 64320: _ACEOF
1.1 misho 64321:
64322:
64323: echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h
64324:
64325:
1.1.1.3 ! misho 64326: cat >>confdefs.h <<\_ACEOF
! 64327: #define PHP_ICONV_IMPL "BSD iconv"
! 64328: _ACEOF
1.1 misho 64329:
64330: ;;
64331:
64332: glibc )
64333:
64334: echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h
64335:
64336:
1.1.1.3 ! misho 64337: cat >>confdefs.h <<\_ACEOF
! 64338: #define HAVE_GLIBC_ICONV 1
! 64339: _ACEOF
1.1 misho 64340:
64341:
64342: echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h
64343:
64344:
1.1.1.3 ! misho 64345: cat >>confdefs.h <<\_ACEOF
! 64346: #define PHP_ICONV_IMPL "glibc"
! 64347: _ACEOF
1.1 misho 64348:
64349: ;;
64350: ibm )
64351:
64352: echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h
64353:
64354:
1.1.1.3 ! misho 64355: cat >>confdefs.h <<\_ACEOF
! 64356: #define HAVE_IBM_ICONV 1
! 64357: _ACEOF
1.1 misho 64358:
64359:
64360: echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h
64361:
64362:
1.1.1.3 ! misho 64363: cat >>confdefs.h <<\_ACEOF
! 64364: #define PHP_ICONV_IMPL "IBM iconv"
! 64365: _ACEOF
1.1 misho 64366:
64367: ;;
64368: esac
64369:
1.1.1.3 ! misho 64370: { echo "$as_me:$LINENO: checking if iconv supports errno" >&5
! 64371: echo $ECHO_N "checking if iconv supports errno... $ECHO_C" >&6; }
! 64372: if test "$cross_compiling" = yes; then
1.1 misho 64373:
1.1.1.3 ! misho 64374: { echo "$as_me:$LINENO: result: no" >&5
! 64375: echo "${ECHO_T}no" >&6; }
1.1 misho 64376:
64377: echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
64378:
64379:
1.1.1.3 ! misho 64380: cat >>confdefs.h <<\_ACEOF
! 64381: #define ICONV_SUPPORTS_ERRNO 0
! 64382: _ACEOF
1.1 misho 64383:
64384:
64385: else
1.1.1.3 ! misho 64386: cat >conftest.$ac_ext <<_ACEOF
! 64387: /* confdefs.h. */
! 64388: _ACEOF
! 64389: cat confdefs.h >>conftest.$ac_ext
! 64390: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 64391: /* end confdefs.h. */
64392:
64393: #include <$PHP_ICONV_H_PATH>
64394: #include <errno.h>
64395:
64396: int main() {
64397: iconv_t cd;
64398: cd = iconv_open( "*blahblah*", "*blahblah*" );
64399: if (cd == (iconv_t)(-1)) {
64400: if (errno == EINVAL) {
64401: return 0;
64402: } else {
64403: return 1;
64404: }
64405: }
64406: iconv_close( cd );
64407: return 2;
64408: }
64409:
64410: _ACEOF
1.1.1.3 ! misho 64411: rm -f conftest$ac_exeext
! 64412: if { (ac_try="$ac_link"
! 64413: case "(($ac_try" in
! 64414: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64415: *) ac_try_echo=$ac_try;;
! 64416: esac
! 64417: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64418: (eval "$ac_link") 2>&5
! 64419: ac_status=$?
! 64420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64421: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 64422: { (case "(($ac_try" in
! 64423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64424: *) ac_try_echo=$ac_try;;
! 64425: esac
! 64426: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64427: (eval "$ac_try") 2>&5
! 64428: ac_status=$?
! 64429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64430: (exit $ac_status); }; }; then
1.1 misho 64431:
1.1.1.3 ! misho 64432: { echo "$as_me:$LINENO: result: yes" >&5
! 64433: echo "${ECHO_T}yes" >&6; }
1.1 misho 64434:
64435: echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h
64436:
64437:
1.1.1.3 ! misho 64438: cat >>confdefs.h <<\_ACEOF
! 64439: #define ICONV_SUPPORTS_ERRNO 1
! 64440: _ACEOF
1.1 misho 64441:
64442:
64443: else
1.1.1.3 ! misho 64444: echo "$as_me: program exited with status $ac_status" >&5
! 64445: echo "$as_me: failed program was:" >&5
! 64446: sed 's/^/| /' conftest.$ac_ext >&5
! 64447:
! 64448: ( exit $ac_status )
1.1 misho 64449:
1.1.1.3 ! misho 64450: { echo "$as_me:$LINENO: result: no" >&5
! 64451: echo "${ECHO_T}no" >&6; }
1.1 misho 64452:
64453: echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
64454:
64455:
1.1.1.3 ! misho 64456: cat >>confdefs.h <<\_ACEOF
! 64457: #define ICONV_SUPPORTS_ERRNO 0
! 64458: _ACEOF
1.1 misho 64459:
64460:
64461: fi
1.1.1.3 ! misho 64462: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 64463: fi
64464:
64465:
1.1.1.3 ! misho 64466:
! 64467: { echo "$as_me:$LINENO: checking if your cpp allows macro usage in include lines" >&5
! 64468: echo $ECHO_N "checking if your cpp allows macro usage in include lines... $ECHO_C" >&6; }
! 64469: cat >conftest.$ac_ext <<_ACEOF
! 64470: /* confdefs.h. */
! 64471: _ACEOF
! 64472: cat confdefs.h >>conftest.$ac_ext
! 64473: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 64474: /* end confdefs.h. */
64475:
64476: #define FOO <$PHP_ICONV_H_PATH>
64477: #include FOO
64478:
64479: int
64480: main ()
64481: {
64482:
64483: ;
64484: return 0;
64485: }
64486: _ACEOF
1.1.1.3 ! misho 64487: rm -f conftest.$ac_objext
! 64488: if { (ac_try="$ac_compile"
! 64489: case "(($ac_try" in
! 64490: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 64491: *) ac_try_echo=$ac_try;;
! 64492: esac
! 64493: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 64494: (eval "$ac_compile") 2>conftest.er1
! 64495: ac_status=$?
! 64496: grep -v '^ *+' conftest.er1 >conftest.err
! 64497: rm -f conftest.er1
! 64498: cat conftest.err >&5
! 64499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 64500: (exit $ac_status); } && {
! 64501: test -z "$ac_c_werror_flag" ||
! 64502: test ! -s conftest.err
! 64503: } && test -s conftest.$ac_objext; then
1.1 misho 64504:
1.1.1.3 ! misho 64505: { echo "$as_me:$LINENO: result: yes" >&5
! 64506: echo "${ECHO_T}yes" >&6; }
1.1 misho 64507:
64508: echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h
64509:
64510:
64511: cat >>confdefs.h <<_ACEOF
64512: #define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>
64513: _ACEOF
64514:
64515:
64516: else
1.1.1.3 ! misho 64517: echo "$as_me: failed program was:" >&5
! 64518: sed 's/^/| /' conftest.$ac_ext >&5
! 64519:
1.1 misho 64520:
1.1.1.3 ! misho 64521: { echo "$as_me:$LINENO: result: no" >&5
! 64522: echo "${ECHO_T}no" >&6; }
1.1 misho 64523:
64524: fi
1.1.1.3 ! misho 64525:
1.1 misho 64526: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64527:
64528:
64529: ext_builddir=ext/iconv
64530: ext_srcdir=$abs_srcdir/ext/iconv
64531:
64532: ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
64533:
64534: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
64535: PHP_ICONV_SHARED=no
64536:
64537:
64538: case ext/iconv in
64539: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64540: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64541: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64542: esac
64543:
64544:
64545:
64546: b_c_pre=$php_c_pre
64547: b_cxx_pre=$php_cxx_pre
64548: b_c_meta=$php_c_meta
64549: b_cxx_meta=$php_cxx_meta
64550: b_c_post=$php_c_post
64551: b_cxx_post=$php_cxx_post
64552: b_lo=$php_lo
64553:
64554:
64555: old_IFS=$IFS
64556: for ac_src in iconv.c; do
64557:
64558: IFS=.
64559: set $ac_src
64560: ac_obj=$1
64561: IFS=$old_IFS
64562:
64563: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64564:
64565: case $ac_src in
64566: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64567: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64568: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64569: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64570: esac
64571:
64572: cat >>Makefile.objects<<EOF
64573: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64574: $ac_comp
64575: EOF
64576: done
64577:
64578:
64579: EXT_STATIC="$EXT_STATIC iconv"
64580: if test "$ext_shared" != "nocli"; then
64581: EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
64582: fi
64583: else
64584: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
64585: PHP_ICONV_SHARED=yes
64586:
64587: case ext/iconv in
64588: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64589: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64590: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64591: esac
64592:
64593:
64594:
64595: b_c_pre=$shared_c_pre
64596: b_cxx_pre=$shared_cxx_pre
64597: b_c_meta=$shared_c_meta
64598: b_cxx_meta=$shared_cxx_meta
64599: b_c_post=$shared_c_post
64600: b_cxx_post=$shared_cxx_post
64601: b_lo=$shared_lo
64602:
64603:
64604: old_IFS=$IFS
64605: for ac_src in iconv.c; do
64606:
64607: IFS=.
64608: set $ac_src
64609: ac_obj=$1
64610: IFS=$old_IFS
64611:
64612: shared_objects_iconv="$shared_objects_iconv $ac_bdir$ac_obj.lo"
64613:
64614: case $ac_src in
64615: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64616: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64617: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64618: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64619: esac
64620:
64621: cat >>Makefile.objects<<EOF
64622: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64623: $ac_comp
64624: EOF
64625: done
64626:
64627: case $host_alias in
64628: *netware*)
64629:
64630: install_modules="install-modules"
64631:
64632: case $host_alias in
64633: *aix*)
64634: suffix=so
64635: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpiconv.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(PHPICONV_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpiconv.so '$ext_builddir'/phpiconv.so'
64636: ;;
64637: *netware*)
64638: suffix=nlm
64639: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) -L$(top_builddir)/netware -lphp5lib $(ICONV_SHARED_LIBADD)'
64640: ;;
64641: *)
64642: suffix=la
64643: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(PHPICONV_SHARED_LIBADD)'
64644: ;;
64645: esac
64646:
64647: if test "x" = "xyes"; then
64648: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpiconv.$suffix"
64649: else
64650: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpiconv.$suffix"
64651: fi
64652:
64653: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
64654:
64655: cat >>Makefile.objects<<EOF
64656: \$(phplibdir)/phpiconv.$suffix: $ext_builddir/phpiconv.$suffix
64657: \$(LIBTOOL) --mode=install cp $ext_builddir/phpiconv.$suffix \$(phplibdir)
64658:
64659: $ext_builddir/phpiconv.$suffix: \$(shared_objects_iconv) \$(PHPICONV_SHARED_DEPENDENCIES)
64660: $link_cmd
64661:
64662: EOF
64663:
64664: ;;
64665: *)
64666:
64667: install_modules="install-modules"
64668:
64669: case $host_alias in
64670: *aix*)
64671: suffix=so
64672: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/iconv.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(ICONV_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/iconv.so '$ext_builddir'/iconv.so'
64673: ;;
64674: *netware*)
64675: suffix=nlm
64676: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) -L$(top_builddir)/netware -lphp5lib $(NV_SHARED_LIBADD)'
64677: ;;
64678: *)
64679: suffix=la
64680: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(ICONV_SHARED_LIBADD)'
64681: ;;
64682: esac
64683:
64684: if test "x" = "xyes"; then
64685: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/iconv.$suffix"
64686: else
64687: PHP_MODULES="$PHP_MODULES \$(phplibdir)/iconv.$suffix"
64688: fi
64689:
64690: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
64691:
64692: cat >>Makefile.objects<<EOF
64693: \$(phplibdir)/iconv.$suffix: $ext_builddir/iconv.$suffix
64694: \$(LIBTOOL) --mode=install cp $ext_builddir/iconv.$suffix \$(phplibdir)
64695:
64696: $ext_builddir/iconv.$suffix: \$(shared_objects_iconv) \$(ICONV_SHARED_DEPENDENCIES)
64697: $link_cmd
64698:
64699: EOF
64700:
64701: ;;
64702: esac
64703:
64704: cat >>confdefs.h <<_ACEOF
64705: #define COMPILE_DL_ICONV 1
64706: _ACEOF
64707:
64708: fi
64709: fi
64710:
64711: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
64712: PHP_ICONV_SHARED=no
1.1.1.3 ! misho 64713: case "$PHP_SAPI" in
! 64714: cgi|embed)
1.1 misho 64715:
64716:
64717: case ext/iconv in
64718: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64719: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64720: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64721: esac
64722:
64723:
64724:
64725: b_c_pre=$php_c_pre
64726: b_cxx_pre=$php_cxx_pre
64727: b_c_meta=$php_c_meta
64728: b_cxx_meta=$php_cxx_meta
64729: b_c_post=$php_c_post
64730: b_cxx_post=$php_cxx_post
64731: b_lo=$php_lo
64732:
64733:
64734: old_IFS=$IFS
64735: for ac_src in iconv.c; do
64736:
64737: IFS=.
64738: set $ac_src
64739: ac_obj=$1
64740: IFS=$old_IFS
64741:
1.1.1.2 misho 64742: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 64743:
64744: case $ac_src in
64745: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64746: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64747: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64748: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64749: esac
64750:
64751: cat >>Makefile.objects<<EOF
64752: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64753: $ac_comp
64754: EOF
64755: done
64756:
64757:
1.1.1.3 ! misho 64758: EXT_STATIC="$EXT_STATIC iconv"
! 64759: ;;
! 64760: *)
1.1 misho 64761:
64762:
64763: case ext/iconv in
64764: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64765: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64766: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64767: esac
64768:
64769:
64770:
64771: b_c_pre=$php_c_pre
64772: b_cxx_pre=$php_cxx_pre
64773: b_c_meta=$php_c_meta
64774: b_cxx_meta=$php_cxx_meta
64775: b_c_post=$php_c_post
64776: b_cxx_post=$php_cxx_post
64777: b_lo=$php_lo
64778:
64779:
64780: old_IFS=$IFS
64781: for ac_src in iconv.c; do
64782:
64783: IFS=.
64784: set $ac_src
64785: ac_obj=$1
64786: IFS=$old_IFS
64787:
1.1.1.2 misho 64788: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 64789:
64790: case $ac_src in
64791: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64792: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64793: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64794: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64795: esac
64796:
64797: cat >>Makefile.objects<<EOF
64798: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64799: $ac_comp
64800: EOF
64801: done
64802:
64803:
1.1.1.3 ! misho 64804: ;;
! 64805: esac
1.1 misho 64806: EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
64807: fi
64808:
64809:
64810: BUILD_DIR="$BUILD_DIR $ext_builddir"
64811:
64812:
64813:
64814: if test "$ext_builddir" = "."; then
64815: PHP_PECL_EXTENSION=iconv
64816:
64817: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
64818:
64819: fi
64820:
64821:
64822: PHP_VAR_SUBST="$PHP_VAR_SUBST ICONV_SHARED_LIBADD"
64823:
64824:
64825:
64826: for header_file in ext/iconv/; do
64827:
64828:
64829: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
64830:
64831: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
64832: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64833: eval "INSTALLHEADERS$unique=set"
64834:
64835: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
64836:
64837: fi
64838:
64839: done
64840:
64841:
64842: else
1.1.1.3 ! misho 64843: { { echo "$as_me:$LINENO: error: Please reinstall the iconv library." >&5
! 64844: echo "$as_me: error: Please reinstall the iconv library." >&2;}
! 64845: { (exit 1); exit 1; }; }
1.1 misho 64846: fi
64847: fi
64848:
64849:
64850:
64851:
64852:
64853:
64854:
64855:
64856:
64857:
64858:
64859:
64860:
64861:
64862: php_with_imap=no
64863:
1.1.1.3 ! misho 64864: { echo "$as_me:$LINENO: checking for IMAP support" >&5
! 64865: echo $ECHO_N "checking for IMAP support... $ECHO_C" >&6; }
1.1 misho 64866:
64867: # Check whether --with-imap was given.
1.1.1.3 ! misho 64868: if test "${with_imap+set}" = set; then
1.1 misho 64869: withval=$with_imap; PHP_IMAP=$withval
64870: else
64871:
64872: PHP_IMAP=no
64873: test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL
64874:
64875: fi
64876:
64877:
64878:
64879: ext_output="yes, shared"
64880: ext_shared=yes
64881: case $PHP_IMAP in
64882: shared,*)
64883: PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'`
64884: ;;
64885: shared)
64886: PHP_IMAP=yes
64887: ;;
64888: no)
64889: ext_output=no
64890: ext_shared=no
64891: ;;
64892: *)
64893: ext_output=yes
64894: ext_shared=no
64895: ;;
64896: esac
64897:
64898:
64899:
1.1.1.3 ! misho 64900: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 64901: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 64902:
64903:
64904:
64905:
64906:
64907: php_with_kerberos=no
64908:
1.1.1.3 ! misho 64909: { echo "$as_me:$LINENO: checking for IMAP Kerberos support" >&5
! 64910: echo $ECHO_N "checking for IMAP Kerberos support... $ECHO_C" >&6; }
1.1 misho 64911:
64912: # Check whether --with-kerberos was given.
1.1.1.3 ! misho 64913: if test "${with_kerberos+set}" = set; then
1.1 misho 64914: withval=$with_kerberos; PHP_KERBEROS=$withval
64915: else
64916:
64917: PHP_KERBEROS=no
64918:
64919:
64920: fi
64921:
64922:
64923: ext_output=$PHP_KERBEROS
1.1.1.3 ! misho 64924: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 64925: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 64926:
64927:
64928:
64929:
64930:
64931: php_with_imap_ssl=no
64932:
1.1.1.3 ! misho 64933: { echo "$as_me:$LINENO: checking for IMAP SSL support" >&5
! 64934: echo $ECHO_N "checking for IMAP SSL support... $ECHO_C" >&6; }
1.1 misho 64935:
64936: # Check whether --with-imap-ssl was given.
1.1.1.3 ! misho 64937: if test "${with_imap_ssl+set}" = set; then
1.1 misho 64938: withval=$with_imap_ssl; PHP_IMAP_SSL=$withval
64939: else
64940:
64941: PHP_IMAP_SSL=no
64942:
64943:
64944: fi
64945:
64946:
64947: ext_output=$PHP_IMAP_SSL
1.1.1.3 ! misho 64948: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 64949: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 64950:
64951:
64952:
64953:
64954:
64955: if test "$PHP_IMAP" != "no"; then
64956:
64957: PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD"
64958:
64959:
64960: ext_builddir=ext/imap
64961: ext_srcdir=$abs_srcdir/ext/imap
64962:
64963: ac_extra=
64964:
64965: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
64966: PHP_IMAP_SHARED=no
64967:
64968:
64969: case ext/imap in
64970: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64971: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64972: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64973: esac
64974:
64975:
64976:
64977: b_c_pre=$php_c_pre
64978: b_cxx_pre=$php_cxx_pre
64979: b_c_meta=$php_c_meta
64980: b_cxx_meta=$php_cxx_meta
64981: b_c_post=$php_c_post
64982: b_cxx_post=$php_cxx_post
64983: b_lo=$php_lo
64984:
64985:
64986: old_IFS=$IFS
64987: for ac_src in php_imap.c; do
64988:
64989: IFS=.
64990: set $ac_src
64991: ac_obj=$1
64992: IFS=$old_IFS
64993:
64994: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64995:
64996: case $ac_src in
64997: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64998: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64999: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65000: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65001: esac
65002:
65003: cat >>Makefile.objects<<EOF
65004: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65005: $ac_comp
65006: EOF
65007: done
65008:
65009:
65010: EXT_STATIC="$EXT_STATIC imap"
65011: if test "$ext_shared" != "nocli"; then
65012: EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
65013: fi
65014: else
65015: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
65016: PHP_IMAP_SHARED=yes
65017:
65018: case ext/imap in
65019: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65020: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65021: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65022: esac
65023:
65024:
65025:
65026: b_c_pre=$shared_c_pre
65027: b_cxx_pre=$shared_cxx_pre
65028: b_c_meta=$shared_c_meta
65029: b_cxx_meta=$shared_cxx_meta
65030: b_c_post=$shared_c_post
65031: b_cxx_post=$shared_cxx_post
65032: b_lo=$shared_lo
65033:
65034:
65035: old_IFS=$IFS
65036: for ac_src in php_imap.c; do
65037:
65038: IFS=.
65039: set $ac_src
65040: ac_obj=$1
65041: IFS=$old_IFS
65042:
65043: shared_objects_imap="$shared_objects_imap $ac_bdir$ac_obj.lo"
65044:
65045: case $ac_src in
65046: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65047: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65048: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65049: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65050: esac
65051:
65052: cat >>Makefile.objects<<EOF
65053: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65054: $ac_comp
65055: EOF
65056: done
65057:
65058: case $host_alias in
65059: *netware*)
65060:
65061: install_modules="install-modules"
65062:
65063: case $host_alias in
65064: *aix*)
65065: suffix=so
65066: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpimap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(PHPIMAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpimap.so '$ext_builddir'/phpimap.so'
65067: ;;
65068: *netware*)
65069: suffix=nlm
65070: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) -L$(top_builddir)/netware -lphp5lib $(IMAP_SHARED_LIBADD)'
65071: ;;
65072: *)
65073: suffix=la
65074: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(PHPIMAP_SHARED_LIBADD)'
65075: ;;
65076: esac
65077:
65078: if test "x" = "xyes"; then
65079: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpimap.$suffix"
65080: else
65081: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpimap.$suffix"
65082: fi
65083:
65084: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
65085:
65086: cat >>Makefile.objects<<EOF
65087: \$(phplibdir)/phpimap.$suffix: $ext_builddir/phpimap.$suffix
65088: \$(LIBTOOL) --mode=install cp $ext_builddir/phpimap.$suffix \$(phplibdir)
65089:
65090: $ext_builddir/phpimap.$suffix: \$(shared_objects_imap) \$(PHPIMAP_SHARED_DEPENDENCIES)
65091: $link_cmd
65092:
65093: EOF
65094:
65095: ;;
65096: *)
65097:
65098: install_modules="install-modules"
65099:
65100: case $host_alias in
65101: *aix*)
65102: suffix=so
65103: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/imap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(IMAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/imap.so '$ext_builddir'/imap.so'
65104: ;;
65105: *netware*)
65106: suffix=nlm
65107: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
65108: ;;
65109: *)
65110: suffix=la
65111: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(IMAP_SHARED_LIBADD)'
65112: ;;
65113: esac
65114:
65115: if test "x" = "xyes"; then
65116: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/imap.$suffix"
65117: else
65118: PHP_MODULES="$PHP_MODULES \$(phplibdir)/imap.$suffix"
65119: fi
65120:
65121: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
65122:
65123: cat >>Makefile.objects<<EOF
65124: \$(phplibdir)/imap.$suffix: $ext_builddir/imap.$suffix
65125: \$(LIBTOOL) --mode=install cp $ext_builddir/imap.$suffix \$(phplibdir)
65126:
65127: $ext_builddir/imap.$suffix: \$(shared_objects_imap) \$(IMAP_SHARED_DEPENDENCIES)
65128: $link_cmd
65129:
65130: EOF
65131:
65132: ;;
65133: esac
65134:
65135: cat >>confdefs.h <<_ACEOF
65136: #define COMPILE_DL_IMAP 1
65137: _ACEOF
65138:
65139: fi
65140: fi
65141:
65142: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
1.1.1.3 ! misho 65143: PHP_IMAP_SHARED=no
! 65144: case "$PHP_SAPI" in
! 65145: cgi|embed)
1.1 misho 65146:
65147:
65148: case ext/imap in
65149: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65150: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65151: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65152: esac
65153:
65154:
65155:
65156: b_c_pre=$php_c_pre
65157: b_cxx_pre=$php_cxx_pre
65158: b_c_meta=$php_c_meta
65159: b_cxx_meta=$php_cxx_meta
65160: b_c_post=$php_c_post
65161: b_cxx_post=$php_cxx_post
65162: b_lo=$php_lo
65163:
65164:
65165: old_IFS=$IFS
65166: for ac_src in php_imap.c; do
65167:
65168: IFS=.
65169: set $ac_src
65170: ac_obj=$1
65171: IFS=$old_IFS
65172:
1.1.1.2 misho 65173: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 65174:
65175: case $ac_src in
65176: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65177: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65178: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65179: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65180: esac
65181:
65182: cat >>Makefile.objects<<EOF
65183: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65184: $ac_comp
65185: EOF
65186: done
65187:
65188:
1.1.1.3 ! misho 65189: EXT_STATIC="$EXT_STATIC imap"
! 65190: ;;
! 65191: *)
1.1 misho 65192:
65193:
65194: case ext/imap in
65195: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65196: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65197: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65198: esac
65199:
65200:
65201:
65202: b_c_pre=$php_c_pre
65203: b_cxx_pre=$php_cxx_pre
65204: b_c_meta=$php_c_meta
65205: b_cxx_meta=$php_cxx_meta
65206: b_c_post=$php_c_post
65207: b_cxx_post=$php_cxx_post
65208: b_lo=$php_lo
65209:
65210:
65211: old_IFS=$IFS
65212: for ac_src in php_imap.c; do
65213:
65214: IFS=.
65215: set $ac_src
65216: ac_obj=$1
65217: IFS=$old_IFS
65218:
1.1.1.2 misho 65219: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 65220:
65221: case $ac_src in
65222: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65223: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65224: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65225: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65226: esac
65227:
65228: cat >>Makefile.objects<<EOF
65229: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65230: $ac_comp
65231: EOF
65232: done
65233:
65234:
1.1.1.3 ! misho 65235: ;;
! 65236: esac
1.1 misho 65237: EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
65238: fi
65239:
65240:
65241: BUILD_DIR="$BUILD_DIR $ext_builddir"
65242:
65243:
65244:
65245: if test "$ext_builddir" = "."; then
65246: PHP_PECL_EXTENSION=imap
65247:
65248: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
65249:
65250: fi
65251:
65252:
1.1.1.3 ! misho 65253: cat >>confdefs.h <<\_ACEOF
! 65254: #define HAVE_IMAP 1
! 65255: _ACEOF
1.1 misho 65256:
65257:
65258: for i in $PHP_IMAP /usr/local /usr; do
65259: if test -r "$i/c-client.h"; then
65260:
1.1.1.3 ! misho 65261: cat >>confdefs.h <<\_ACEOF
! 65262: #define HAVE_IMAP2000 1
! 65263: _ACEOF
1.1 misho 65264:
65265: IMAP_DIR=$i
65266: IMAP_INC_DIR=$i
65267: break
65268: elif test -r "$i/rfc822.h"; then
65269: IMAP_DIR=$i;
65270: IMAP_INC_DIR=$i
65271: break
65272:
65273: elif test -r "$i/include/c-client/c-client.h"; then
65274:
1.1.1.3 ! misho 65275: cat >>confdefs.h <<\_ACEOF
! 65276: #define HAVE_IMAP2000 1
! 65277: _ACEOF
1.1 misho 65278:
65279: IMAP_DIR=$i
65280: IMAP_INC_DIR=$i/include/c-client
65281: break
65282: elif test -r "$i/include/c-client/rfc822.h"; then
65283: IMAP_DIR=$i;
65284: IMAP_INC_DIR=$i/include/c-client
65285: break
65286:
65287: elif test -r "$i/include/imap/c-client.h"; then
65288:
1.1.1.3 ! misho 65289: cat >>confdefs.h <<\_ACEOF
! 65290: #define HAVE_IMAP2000 1
! 65291: _ACEOF
1.1 misho 65292:
65293: IMAP_DIR=$i
65294: IMAP_INC_DIR=$i/include/imap
65295: break
65296: elif test -r "$i/include/imap/rfc822.h"; then
65297: IMAP_DIR=$i;
65298: IMAP_INC_DIR=$i/include/imap
65299: break
65300:
65301: elif test -r "$i/include/c-client.h"; then
65302:
1.1.1.3 ! misho 65303: cat >>confdefs.h <<\_ACEOF
! 65304: #define HAVE_IMAP2000 1
! 65305: _ACEOF
1.1 misho 65306:
65307: IMAP_DIR=$i
65308: IMAP_INC_DIR=$i/include
65309: break
65310: elif test -r "$i/include/rfc822.h"; then
65311: IMAP_DIR=$i;
65312: IMAP_INC_DIR=$i/include
65313: break
65314:
65315: elif test -r "$i/imap/c-client.h"; then
65316:
1.1.1.3 ! misho 65317: cat >>confdefs.h <<\_ACEOF
! 65318: #define HAVE_IMAP2000 1
! 65319: _ACEOF
1.1 misho 65320:
65321: IMAP_DIR=$i
65322: IMAP_INC_DIR=$i/imap
65323: break
65324: elif test -r "$i/imap/rfc822.h"; then
65325: IMAP_DIR=$i;
65326: IMAP_INC_DIR=$i/imap
65327: break
65328:
65329: elif test -r "$i/c-client/c-client.h"; then
65330:
1.1.1.3 ! misho 65331: cat >>confdefs.h <<\_ACEOF
! 65332: #define HAVE_IMAP2000 1
! 65333: _ACEOF
1.1 misho 65334:
65335: IMAP_DIR=$i
65336: IMAP_INC_DIR=$i/c-client
65337: break
65338: elif test -r "$i/c-client/rfc822.h"; then
65339: IMAP_DIR=$i;
65340: IMAP_INC_DIR=$i/c-client
65341: break
65342:
65343: fi
65344: done
65345:
1.1.1.3 ! misho 65346: cat >conftest.$ac_ext <<_ACEOF
! 65347: /* confdefs.h. */
! 65348: _ACEOF
! 65349: cat confdefs.h >>conftest.$ac_ext
! 65350: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 65351: /* end confdefs.h. */
65352: #include <$IMAP_INC_DIR/mail.h>
65353:
65354: _ACEOF
65355: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 65356: $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then
1.1 misho 65357:
65358:
1.1.1.3 ! misho 65359: cat >>confdefs.h <<\_ACEOF
! 65360: #define HAVE_IMAP2004 1
! 65361: _ACEOF
1.1 misho 65362:
65363:
65364: fi
1.1.1.3 ! misho 65365: rm -f -r conftest*
1.1 misho 65366:
65367:
65368: old_CFLAGS=$CFLAGS
65369: CFLAGS="-I$IMAP_INC_DIR"
1.1.1.3 ! misho 65370: { echo "$as_me:$LINENO: checking for utf8_mime2text signature" >&5
! 65371: echo $ECHO_N "checking for utf8_mime2text signature... $ECHO_C" >&6; }
! 65372: if test "${ac_cv_utf8_mime2text+set}" = set; then
! 65373: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 65374: else
1.1.1.3 ! misho 65375: cat >conftest.$ac_ext <<_ACEOF
! 65376: /* confdefs.h. */
! 65377: _ACEOF
! 65378: cat confdefs.h >>conftest.$ac_ext
! 65379: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 65380: /* end confdefs.h. */
65381:
65382: #include <stdio.h>
65383: #include <c-client.h>
65384:
65385: int
65386: main ()
65387: {
65388:
65389: SIZEDTEXT *src, *dst;
65390: utf8_mime2text(src, dst);
65391:
65392: ;
65393: return 0;
65394: }
65395: _ACEOF
1.1.1.3 ! misho 65396: rm -f conftest.$ac_objext
! 65397: if { (ac_try="$ac_compile"
! 65398: case "(($ac_try" in
! 65399: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 65400: *) ac_try_echo=$ac_try;;
! 65401: esac
! 65402: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 65403: (eval "$ac_compile") 2>conftest.er1
! 65404: ac_status=$?
! 65405: grep -v '^ *+' conftest.er1 >conftest.err
! 65406: rm -f conftest.er1
! 65407: cat conftest.err >&5
! 65408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 65409: (exit $ac_status); } && {
! 65410: test -z "$ac_c_werror_flag" ||
! 65411: test ! -s conftest.err
! 65412: } && test -s conftest.$ac_objext; then
1.1 misho 65413:
65414: ac_cv_utf8_mime2text=old
65415:
65416: else
1.1.1.3 ! misho 65417: echo "$as_me: failed program was:" >&5
! 65418: sed 's/^/| /' conftest.$ac_ext >&5
! 65419:
1.1 misho 65420:
65421: ac_cv_utf8_mime2text=new
65422:
65423: fi
1.1.1.3 ! misho 65424:
1.1 misho 65425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65426:
65427: fi
1.1.1.3 ! misho 65428: { echo "$as_me:$LINENO: result: $ac_cv_utf8_mime2text" >&5
! 65429: echo "${ECHO_T}$ac_cv_utf8_mime2text" >&6; }
1.1 misho 65430: if test "$ac_cv_utf8_mime2text" = "new"; then
65431:
1.1.1.3 ! misho 65432: cat >>confdefs.h <<\_ACEOF
! 65433: #define HAVE_NEW_MIME2TEXT 1
! 65434: _ACEOF
1.1 misho 65435:
65436: fi
65437: CFLAGS=$old_CFLAGS
65438:
65439: old_CFLAGS=$CFLAGS
65440: CFLAGS="-I$IMAP_INC_DIR"
1.1.1.3 ! misho 65441: { echo "$as_me:$LINENO: checking for U8T_DECOMPOSE" >&5
! 65442: echo $ECHO_N "checking for U8T_DECOMPOSE... $ECHO_C" >&6; }
! 65443: if test "${ac_cv_u8t_canonical+set}" = set; then
! 65444: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 65445: else
1.1.1.3 ! misho 65446: cat >conftest.$ac_ext <<_ACEOF
! 65447: /* confdefs.h. */
! 65448: _ACEOF
! 65449: cat confdefs.h >>conftest.$ac_ext
! 65450: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 65451: /* end confdefs.h. */
65452:
65453: #include <c-client.h>
65454:
65455: int
65456: main ()
65457: {
65458:
65459: int i = U8T_CANONICAL;
65460:
65461: ;
65462: return 0;
65463: }
65464: _ACEOF
1.1.1.3 ! misho 65465: rm -f conftest.$ac_objext
! 65466: if { (ac_try="$ac_compile"
! 65467: case "(($ac_try" in
! 65468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 65469: *) ac_try_echo=$ac_try;;
! 65470: esac
! 65471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 65472: (eval "$ac_compile") 2>conftest.er1
! 65473: ac_status=$?
! 65474: grep -v '^ *+' conftest.er1 >conftest.err
! 65475: rm -f conftest.er1
! 65476: cat conftest.err >&5
! 65477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 65478: (exit $ac_status); } && {
! 65479: test -z "$ac_c_werror_flag" ||
! 65480: test ! -s conftest.err
! 65481: } && test -s conftest.$ac_objext; then
1.1 misho 65482:
65483: ac_cv_u8t_decompose=yes
65484:
65485: else
1.1.1.3 ! misho 65486: echo "$as_me: failed program was:" >&5
! 65487: sed 's/^/| /' conftest.$ac_ext >&5
! 65488:
1.1 misho 65489:
65490: ac_cv_u8t_decompose=no
65491:
65492: fi
1.1.1.3 ! misho 65493:
1.1 misho 65494: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65495:
65496: fi
1.1.1.3 ! misho 65497: { echo "$as_me:$LINENO: result: $ac_cv_u8t_canonical" >&5
! 65498: echo "${ECHO_T}$ac_cv_u8t_canonical" >&6; }
1.1 misho 65499: CFLAGS=$old_CFLAGS
65500:
65501: if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then
1.1.1.3 ! misho 65502: { { echo "$as_me:$LINENO: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." >&5
! 65503: echo "$as_me: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." >&2;}
! 65504: { (exit 1); exit 1; }; }
1.1 misho 65505: fi
65506: if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then
1.1.1.3 ! misho 65507: { { echo "$as_me:$LINENO: error: utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." >&5
! 65508: echo "$as_me: error: utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." >&2;}
! 65509: { (exit 1); exit 1; }; }
1.1 misho 65510: fi
65511:
65512: old_CPPFLAGS=$CPPFLAGS
65513: CPPFLAGS=-I$IMAP_INC_DIR
1.1.1.3 ! misho 65514: cat >conftest.$ac_ext <<_ACEOF
! 65515: /* confdefs.h. */
! 65516: _ACEOF
! 65517: cat confdefs.h >>conftest.$ac_ext
! 65518: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 65519: /* end confdefs.h. */
65520:
65521: #include "imap4r1.h"
65522: #if defined(IMAPSSLPORT)
65523: this_is_true
65524: #endif
65525:
65526: _ACEOF
65527: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 65528: $EGREP "this_is_true" >/dev/null 2>&1; then
1.1 misho 65529:
65530:
1.1.1.3 ! misho 65531: cat >>confdefs.h <<\_ACEOF
! 65532: #define HAVE_IMAP2001 1
! 65533: _ACEOF
1.1 misho 65534:
65535:
65536: fi
1.1.1.3 ! misho 65537: rm -f -r conftest*
1.1 misho 65538:
65539: CPPFLAGS=$old_CPPFLAGS
65540:
65541:
65542: save_old_LDFLAGS=$LDFLAGS
65543: ac_stuff=""
65544:
65545: save_ext_shared=$ext_shared
65546: ext_shared=yes
65547:
65548: for ac_i in $ac_stuff; do
65549: case $ac_i in
65550: -pthread)
65551: if test "$ext_shared" = "yes"; then
65552: LDFLAGS="$LDFLAGS -pthread"
65553: else
65554:
65555:
65556: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65557:
65558: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65559: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65560: eval "EXTRA_LDFLAGS$unique=set"
65561: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65562: fi
65563:
65564: fi
65565: ;;
65566: -l*)
65567: ac_ii=`echo $ac_i|cut -c 3-`
65568:
65569:
65570: case $ac_ii in
65571: c|c_r|pthread*) ;;
65572: *)
65573: if test "$ext_shared" = "yes"; then
65574: LDFLAGS="$LDFLAGS -l$ac_ii"
65575: else
65576:
65577:
65578: case $ac_ii in
65579: c|c_r|pthread*) ;;
65580: *)
65581: LIBS="$LIBS -l$ac_ii"
65582: ;;
65583: esac
65584:
65585:
65586: fi
65587: ;;
65588: esac
65589:
65590:
65591: ;;
65592: -L*)
65593: ac_ii=`echo $ac_i|cut -c 3-`
65594:
65595: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65596:
65597: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65598: ai_p=$ac_ii
65599: else
65600:
65601: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65602:
65603: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65604: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65605: fi
65606:
65607:
65608: if test "$ext_shared" = "yes"; then
65609: LDFLAGS="-L$ai_p $LDFLAGS"
65610: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
65611: else
65612:
65613:
65614:
65615: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65616:
65617: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65618: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65619: eval "LIBPATH$unique=set"
65620:
65621: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65622: LDFLAGS="$LDFLAGS -L$ai_p"
65623: PHP_RPATHS="$PHP_RPATHS $ai_p"
65624:
65625: fi
65626:
65627:
65628: fi
65629:
65630: fi
65631:
65632: ;;
65633: esac
65634: done
65635:
1.1.1.3 ! misho 65636: { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
! 65637: echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
! 65638: if test "${ac_cv_lib_pam_pam_start+set}" = set; then
! 65639: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 65640: else
65641: ac_check_lib_save_LIBS=$LIBS
65642: LIBS="-lpam $LIBS"
1.1.1.3 ! misho 65643: cat >conftest.$ac_ext <<_ACEOF
! 65644: /* confdefs.h. */
! 65645: _ACEOF
! 65646: cat confdefs.h >>conftest.$ac_ext
! 65647: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 65648: /* end confdefs.h. */
65649:
65650: /* Override any GCC internal prototype to avoid an error.
65651: Use char because int might match the return type of a GCC
65652: builtin and then its argument prototype would still apply. */
65653: #ifdef __cplusplus
65654: extern "C"
65655: #endif
65656: char pam_start ();
65657: int
65658: main ()
65659: {
65660: return pam_start ();
65661: ;
65662: return 0;
65663: }
65664: _ACEOF
1.1.1.3 ! misho 65665: rm -f conftest.$ac_objext conftest$ac_exeext
! 65666: if { (ac_try="$ac_link"
! 65667: case "(($ac_try" in
! 65668: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 65669: *) ac_try_echo=$ac_try;;
! 65670: esac
! 65671: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 65672: (eval "$ac_link") 2>conftest.er1
! 65673: ac_status=$?
! 65674: grep -v '^ *+' conftest.er1 >conftest.err
! 65675: rm -f conftest.er1
! 65676: cat conftest.err >&5
! 65677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 65678: (exit $ac_status); } && {
! 65679: test -z "$ac_c_werror_flag" ||
! 65680: test ! -s conftest.err
! 65681: } && test -s conftest$ac_exeext &&
! 65682: $as_test_x conftest$ac_exeext; then
1.1 misho 65683: ac_cv_lib_pam_pam_start=yes
65684: else
1.1.1.3 ! misho 65685: echo "$as_me: failed program was:" >&5
! 65686: sed 's/^/| /' conftest.$ac_ext >&5
! 65687:
! 65688: ac_cv_lib_pam_pam_start=no
1.1 misho 65689: fi
1.1.1.3 ! misho 65690:
! 65691: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 65692: conftest$ac_exeext conftest.$ac_ext
1.1 misho 65693: LIBS=$ac_check_lib_save_LIBS
65694: fi
1.1.1.3 ! misho 65695: { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
! 65696: echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
! 65697: if test $ac_cv_lib_pam_pam_start = yes; then
1.1 misho 65698:
65699: LDFLAGS=$save_old_LDFLAGS
65700: ext_shared=$save_ext_shared
65701:
65702:
65703:
65704: case pam in
65705: c|c_r|pthread*) ;;
65706: *)
65707: if test "$ext_shared" = "yes"; then
65708: IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD"
65709: else
65710:
65711:
65712: case pam in
65713: c|c_r|pthread*) ;;
65714: *)
65715: LIBS="-lpam $LIBS"
65716: ;;
65717: esac
65718:
65719:
65720: fi
65721: ;;
65722: esac
65723:
65724:
65725:
1.1.1.3 ! misho 65726: cat >>confdefs.h <<\_ACEOF
! 65727: #define HAVE_LIBPAM 1
! 65728: _ACEOF
1.1 misho 65729:
65730:
65731:
65732: else
65733:
65734: LDFLAGS=$save_old_LDFLAGS
65735: ext_shared=$save_ext_shared
65736: unset ac_cv_lib_pam_pam_start
65737:
65738:
65739: fi
65740:
65741:
65742:
65743: save_old_LDFLAGS=$LDFLAGS
65744: ac_stuff=""
65745:
65746: save_ext_shared=$ext_shared
65747: ext_shared=yes
65748:
65749: for ac_i in $ac_stuff; do
65750: case $ac_i in
65751: -pthread)
65752: if test "$ext_shared" = "yes"; then
65753: LDFLAGS="$LDFLAGS -pthread"
65754: else
65755:
65756:
65757: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65758:
65759: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65760: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65761: eval "EXTRA_LDFLAGS$unique=set"
65762: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65763: fi
65764:
65765: fi
65766: ;;
65767: -l*)
65768: ac_ii=`echo $ac_i|cut -c 3-`
65769:
65770:
65771: case $ac_ii in
65772: c|c_r|pthread*) ;;
65773: *)
65774: if test "$ext_shared" = "yes"; then
65775: LDFLAGS="$LDFLAGS -l$ac_ii"
65776: else
65777:
65778:
65779: case $ac_ii in
65780: c|c_r|pthread*) ;;
65781: *)
65782: LIBS="$LIBS -l$ac_ii"
65783: ;;
65784: esac
65785:
65786:
65787: fi
65788: ;;
65789: esac
65790:
65791:
65792: ;;
65793: -L*)
65794: ac_ii=`echo $ac_i|cut -c 3-`
65795:
65796: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65797:
65798: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65799: ai_p=$ac_ii
65800: else
65801:
65802: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65803:
65804: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65805: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65806: fi
65807:
65808:
65809: if test "$ext_shared" = "yes"; then
65810: LDFLAGS="-L$ai_p $LDFLAGS"
65811: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
65812: else
65813:
65814:
65815:
65816: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65817:
65818: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65819: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65820: eval "LIBPATH$unique=set"
65821:
65822: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65823: LDFLAGS="$LDFLAGS -L$ai_p"
65824: PHP_RPATHS="$PHP_RPATHS $ai_p"
65825:
65826: fi
65827:
65828:
65829: fi
65830:
65831: fi
65832:
65833: ;;
65834: esac
65835: done
65836:
1.1.1.3 ! misho 65837: { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
! 65838: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
! 65839: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
! 65840: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 65841: else
65842: ac_check_lib_save_LIBS=$LIBS
65843: LIBS="-lcrypt $LIBS"
1.1.1.3 ! misho 65844: cat >conftest.$ac_ext <<_ACEOF
! 65845: /* confdefs.h. */
! 65846: _ACEOF
! 65847: cat confdefs.h >>conftest.$ac_ext
! 65848: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 65849: /* end confdefs.h. */
65850:
65851: /* Override any GCC internal prototype to avoid an error.
65852: Use char because int might match the return type of a GCC
65853: builtin and then its argument prototype would still apply. */
65854: #ifdef __cplusplus
65855: extern "C"
65856: #endif
65857: char crypt ();
65858: int
65859: main ()
65860: {
65861: return crypt ();
65862: ;
65863: return 0;
65864: }
65865: _ACEOF
1.1.1.3 ! misho 65866: rm -f conftest.$ac_objext conftest$ac_exeext
! 65867: if { (ac_try="$ac_link"
! 65868: case "(($ac_try" in
! 65869: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 65870: *) ac_try_echo=$ac_try;;
! 65871: esac
! 65872: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 65873: (eval "$ac_link") 2>conftest.er1
! 65874: ac_status=$?
! 65875: grep -v '^ *+' conftest.er1 >conftest.err
! 65876: rm -f conftest.er1
! 65877: cat conftest.err >&5
! 65878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 65879: (exit $ac_status); } && {
! 65880: test -z "$ac_c_werror_flag" ||
! 65881: test ! -s conftest.err
! 65882: } && test -s conftest$ac_exeext &&
! 65883: $as_test_x conftest$ac_exeext; then
1.1 misho 65884: ac_cv_lib_crypt_crypt=yes
65885: else
1.1.1.3 ! misho 65886: echo "$as_me: failed program was:" >&5
! 65887: sed 's/^/| /' conftest.$ac_ext >&5
! 65888:
! 65889: ac_cv_lib_crypt_crypt=no
1.1 misho 65890: fi
1.1.1.3 ! misho 65891:
! 65892: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 65893: conftest$ac_exeext conftest.$ac_ext
1.1 misho 65894: LIBS=$ac_check_lib_save_LIBS
65895: fi
1.1.1.3 ! misho 65896: { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
! 65897: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
! 65898: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 misho 65899:
65900: LDFLAGS=$save_old_LDFLAGS
65901: ext_shared=$save_ext_shared
65902:
65903:
65904:
65905: case crypt in
65906: c|c_r|pthread*) ;;
65907: *)
65908: if test "$ext_shared" = "yes"; then
65909: IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD"
65910: else
65911:
65912:
65913: case crypt in
65914: c|c_r|pthread*) ;;
65915: *)
65916: LIBS="-lcrypt $LIBS"
65917: ;;
65918: esac
65919:
65920:
65921: fi
65922: ;;
65923: esac
65924:
65925:
65926:
1.1.1.3 ! misho 65927: cat >>confdefs.h <<\_ACEOF
! 65928: #define HAVE_LIBCRYPT 1
! 65929: _ACEOF
1.1 misho 65930:
65931:
65932:
65933: else
65934:
65935: LDFLAGS=$save_old_LDFLAGS
65936: ext_shared=$save_ext_shared
65937: unset ac_cv_lib_crypt_crypt
65938:
65939:
65940: fi
65941:
65942:
65943:
65944: if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then
65945: IMAP_DIR=$IMAP_DIR
65946: else
65947:
65948: ep_dir="`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
65949:
65950: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65951: IMAP_DIR="$ep_realdir/`basename \"$IMAP_DIR\"`"
65952: fi
65953:
65954:
65955: if test -z "$IMAP_DIR"; then
1.1.1.3 ! misho 65956: { { echo "$as_me:$LINENO: error: Cannot find rfc822.h. Please check your c-client installation." >&5
! 65957: echo "$as_me: error: Cannot find rfc822.h. Please check your c-client installation." >&2;}
! 65958: { (exit 1); exit 1; }; }
1.1 misho 65959: fi
65960:
65961: if test -r "$IMAP_DIR/c-client/c-client.a"; then
65962: ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1
65963: elif test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then
65964: ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1
65965: fi
65966:
65967: for lib in c-client4 c-client imap; do
65968: IMAP_LIB=$lib
65969:
65970: str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*"
65971: for i in `echo $str`; do
65972: test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2
65973: done
65974:
65975:
65976: str="$IMAP_DIR/c-client/lib$lib.*"
65977: for i in `echo $str`; do
65978: test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2
65979: done
65980:
65981: done
65982:
65983: if test -z "$IMAP_LIBDIR"; then
1.1.1.3 ! misho 65984: { { echo "$as_me:$LINENO: error: Cannot find imap library (libc-client.a). Please check your c-client installation." >&5
! 65985: echo "$as_me: error: Cannot find imap library (libc-client.a). Please check your c-client installation." >&2;}
! 65986: { (exit 1); exit 1; }; }
1.1 misho 65987: fi
65988:
65989:
65990: if test "$IMAP_INC_DIR" != "/usr/include"; then
65991:
65992: if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then
65993: ai_p=$IMAP_INC_DIR
65994: else
65995:
65996: ep_dir="`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
65997:
65998: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65999: ai_p="$ep_realdir/`basename \"$IMAP_INC_DIR\"`"
66000: fi
66001:
66002:
66003:
66004: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66005:
66006: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66007: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66008: eval "INCLUDEPATH$unique=set"
66009:
66010: if test ""; then
66011: INCLUDES="-I$ai_p $INCLUDES"
66012: else
66013: INCLUDES="$INCLUDES -I$ai_p"
66014: fi
66015:
66016: fi
66017:
66018: fi
66019:
66020:
66021:
66022: case $IMAP_LIB in
66023: c|c_r|pthread*) ;;
66024: *)
66025: if test "$ext_shared" = "yes"; then
66026: IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD"
66027: else
66028:
66029:
66030: case $IMAP_LIB in
66031: c|c_r|pthread*) ;;
66032: *)
66033: DLIBS="-l$IMAP_LIB $DLIBS"
66034: ;;
66035: esac
66036:
66037:
66038: fi
66039: ;;
66040: esac
66041:
66042:
66043:
66044: if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then
66045:
66046: if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then
66047: ai_p=$IMAP_LIBDIR
66048: else
66049:
66050: ep_dir="`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
66051:
66052: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66053: ai_p="$ep_realdir/`basename \"$IMAP_LIBDIR\"`"
66054: fi
66055:
66056:
66057: if test "$ext_shared" = "yes"; then
66058: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66059: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66060: else
66061:
66062:
66063:
66064: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66065:
66066: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66067: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66068: eval "LIBPATH$unique=set"
66069:
66070: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66071: LDFLAGS="$LDFLAGS -L$ai_p"
66072: PHP_RPATHS="$PHP_RPATHS $ai_p"
66073:
66074: fi
66075:
66076:
66077: fi
66078:
66079: fi
66080:
66081:
66082: if test "$PHP_KERBEROS" != "no"; then
66083:
66084: found_kerberos=no
66085: unset KERBEROS_CFLAGS
66086: unset KERBEROS_LIBS
66087:
66088: if test -z "$KRB5_CONFIG"; then
66089: # Extract the first word of "krb5-config", so it can be a program name with args.
66090: set dummy krb5-config; ac_word=$2
1.1.1.3 ! misho 66091: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 66092: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 66093: if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
! 66094: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 66095: else
66096: case $KRB5_CONFIG in
66097: [\\/]* | ?:[\\/]*)
66098: ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
66099: ;;
66100: *)
66101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66102: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
66103: for as_dir in $as_dummy
66104: do
66105: IFS=$as_save_IFS
66106: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 66107: for ac_exec_ext in '' $ac_executable_extensions; do
! 66108: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 66109: ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 66110: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 66111: break 2
66112: fi
66113: done
1.1.1.3 ! misho 66114: done
1.1 misho 66115: IFS=$as_save_IFS
66116:
66117: test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
66118: ;;
66119: esac
66120: fi
66121: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
66122: if test -n "$KRB5_CONFIG"; then
1.1.1.3 ! misho 66123: { echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
! 66124: echo "${ECHO_T}$KRB5_CONFIG" >&6; }
1.1 misho 66125: else
1.1.1.3 ! misho 66126: { echo "$as_me:$LINENO: result: no" >&5
! 66127: echo "${ECHO_T}no" >&6; }
1.1 misho 66128: fi
66129:
66130:
66131: fi
66132:
66133: if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
66134: KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
66135: KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
66136:
66137: if test -n "$KERBEROS_LIBS"; then
66138: found_kerberos=yes
66139:
66140: for ac_i in $KERBEROS_LIBS; do
66141: case $ac_i in
66142: -pthread)
66143: if test "$ext_shared" = "yes"; then
66144: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
66145: else
66146:
66147:
66148: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66149:
66150: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66151: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66152: eval "EXTRA_LDFLAGS$unique=set"
66153: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66154: fi
66155:
66156: fi
66157: ;;
66158: -l*)
66159: ac_ii=`echo $ac_i|cut -c 3-`
66160:
66161:
66162: case $ac_ii in
66163: c|c_r|pthread*) ;;
66164: *)
66165: if test "$ext_shared" = "yes"; then
66166: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
66167: else
66168:
66169:
66170: case $ac_ii in
66171: c|c_r|pthread*) ;;
66172: *)
66173: LIBS="$LIBS -l$ac_ii"
66174: ;;
66175: esac
66176:
66177:
66178: fi
66179: ;;
66180: esac
66181:
66182:
66183: ;;
66184: -L*)
66185: ac_ii=`echo $ac_i|cut -c 3-`
66186:
66187: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66188:
66189: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66190: ai_p=$ac_ii
66191: else
66192:
66193: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66194:
66195: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66196: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66197: fi
66198:
66199:
66200: if test "$ext_shared" = "yes"; then
66201: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66202: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66203: else
66204:
66205:
66206:
66207: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66208:
66209: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66210: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66211: eval "LIBPATH$unique=set"
66212:
66213: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66214: LDFLAGS="$LDFLAGS -L$ai_p"
66215: PHP_RPATHS="$PHP_RPATHS $ai_p"
66216:
66217: fi
66218:
66219:
66220: fi
66221:
66222: fi
66223:
66224: ;;
66225: esac
66226: done
66227:
66228:
66229: for ac_i in $KERBEROS_CFLAGS; do
66230: case $ac_i in
66231: -I*)
66232: ac_ii=`echo $ac_i|cut -c 3-`
66233:
66234: if test "$ac_ii" != "/usr/include"; then
66235:
66236: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66237: ai_p=$ac_ii
66238: else
66239:
66240: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66241:
66242: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66243: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66244: fi
66245:
66246:
66247:
66248: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66249:
66250: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66251: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66252: eval "INCLUDEPATH$unique=set"
66253:
66254: if test ""; then
66255: INCLUDES="-I$ai_p $INCLUDES"
66256: else
66257: INCLUDES="$INCLUDES -I$ai_p"
66258: fi
66259:
66260: fi
66261:
66262: fi
66263:
66264: ;;
66265: esac
66266: done
66267:
66268: fi
66269: fi
66270:
66271: if test "$found_kerberos" = "no"; then
66272:
66273: if test "$PHP_KERBEROS" = "yes"; then
66274: PHP_KERBEROS="/usr/kerberos /usr/local /usr"
66275: fi
66276:
66277: for i in $PHP_KERBEROS; do
66278: if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
66279: PHP_KERBEROS_DIR=$i
66280: break
66281: fi
66282: done
66283:
66284: if test "$PHP_KERBEROS_DIR"; then
66285: found_kerberos=yes
66286:
66287: if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
66288:
66289: if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
66290: ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
66291: else
66292:
66293: ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
66294:
66295: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66296: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
66297: fi
66298:
66299:
66300: if test "$ext_shared" = "yes"; then
66301: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66302: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66303: else
66304:
66305:
66306:
66307: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66308:
66309: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66310: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66311: eval "LIBPATH$unique=set"
66312:
66313: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66314: LDFLAGS="$LDFLAGS -L$ai_p"
66315: PHP_RPATHS="$PHP_RPATHS $ai_p"
66316:
66317: fi
66318:
66319:
66320: fi
66321:
66322: fi
66323:
66324:
66325:
66326: case gssapi_krb5 in
66327: c|c_r|pthread*) ;;
66328: *)
66329: if test "$ext_shared" = "yes"; then
66330: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5"
66331: else
66332:
66333:
66334: case gssapi_krb5 in
66335: c|c_r|pthread*) ;;
66336: *)
66337: LIBS="$LIBS -lgssapi_krb5"
66338: ;;
66339: esac
66340:
66341:
66342: fi
66343: ;;
66344: esac
66345:
66346:
66347:
66348:
66349: case krb5 in
66350: c|c_r|pthread*) ;;
66351: *)
66352: if test "$ext_shared" = "yes"; then
66353: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5"
66354: else
66355:
66356:
66357: case krb5 in
66358: c|c_r|pthread*) ;;
66359: *)
66360: LIBS="$LIBS -lkrb5"
66361: ;;
66362: esac
66363:
66364:
66365: fi
66366: ;;
66367: esac
66368:
66369:
66370:
66371:
66372: case k5crypto in
66373: c|c_r|pthread*) ;;
66374: *)
66375: if test "$ext_shared" = "yes"; then
66376: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto"
66377: else
66378:
66379:
66380: case k5crypto in
66381: c|c_r|pthread*) ;;
66382: *)
66383: LIBS="$LIBS -lk5crypto"
66384: ;;
66385: esac
66386:
66387:
66388: fi
66389: ;;
66390: esac
66391:
66392:
66393:
66394:
66395: case com_err in
66396: c|c_r|pthread*) ;;
66397: *)
66398: if test "$ext_shared" = "yes"; then
66399: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err"
66400: else
66401:
66402:
66403: case com_err in
66404: c|c_r|pthread*) ;;
66405: *)
66406: LIBS="$LIBS -lcom_err"
66407: ;;
66408: esac
66409:
66410:
66411: fi
66412: ;;
66413: esac
66414:
66415:
66416:
66417: if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
66418:
66419: if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
66420: ai_p=$PHP_KERBEROS_DIR/include
66421: else
66422:
66423: ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
66424:
66425: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66426: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
66427: fi
66428:
66429:
66430:
66431: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66432:
66433: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66434: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66435: eval "INCLUDEPATH$unique=set"
66436:
66437: if test ""; then
66438: INCLUDES="-I$ai_p $INCLUDES"
66439: else
66440: INCLUDES="$INCLUDES -I$ai_p"
66441: fi
66442:
66443: fi
66444:
66445: fi
66446:
66447: fi
66448: fi
66449:
66450: if test "$found_kerberos" = "yes"; then
66451:
66452:
1.1.1.3 ! misho 66453: cat >>confdefs.h <<\_ACEOF
! 66454: #define HAVE_IMAP_KRB 1
! 66455: _ACEOF
1.1 misho 66456:
66457:
66458: else
1.1.1.3 ! misho 66459: { { echo "$as_me:$LINENO: error: Kerberos libraries not found.
! 66460:
! 66461: Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
! 66462: " >&5
! 66463: echo "$as_me: error: Kerberos libraries not found.
1.1 misho 66464:
66465: Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
1.1.1.3 ! misho 66466: " >&2;}
! 66467: { (exit 1); exit 1; }; }
1.1 misho 66468:
66469: fi
66470:
66471: else
1.1.1.3 ! misho 66472: cat >conftest.$ac_ext <<_ACEOF
! 66473: /* confdefs.h. */
! 66474: _ACEOF
! 66475: cat confdefs.h >>conftest.$ac_ext
! 66476: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 66477: /* end confdefs.h. */
66478: #include <$IMAP_INC_DIR/linkage.h>
66479:
66480: _ACEOF
66481: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 66482: $EGREP "auth_gss" >/dev/null 2>&1; then
1.1 misho 66483:
1.1.1.3 ! misho 66484: { { echo "$as_me:$LINENO: error: This c-client library is built with Kerberos support.
1.1 misho 66485:
66486: Add --with-kerberos to your configure line. Check config.log for details.
1.1.1.3 ! misho 66487: " >&5
! 66488: echo "$as_me: error: This c-client library is built with Kerberos support.
! 66489:
! 66490: Add --with-kerberos to your configure line. Check config.log for details.
! 66491: " >&2;}
! 66492: { (exit 1); exit 1; }; }
1.1 misho 66493:
66494: fi
1.1.1.3 ! misho 66495: rm -f -r conftest*
1.1 misho 66496:
66497: fi
66498:
66499:
66500: if test "$PHP_IMAP_SSL" != "no"; then
66501: if test "$PHP_OPENSSL" = ""; then
66502: PHP_OPENSSL='no'
66503: fi
66504:
66505: found_openssl=no
66506: unset OPENSSL_INCDIR
66507: unset OPENSSL_LIBDIR
66508:
66509: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
66510: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
66511:
1.1.1.3 ! misho 66512: if test "$PHP_OPENSSL" != "no"; then
1.1 misho 66513: PHP_OPENSSL_DIR=$PHP_OPENSSL
1.1.1.3 ! misho 66514: elif test "$PHP_IMAP_SSL" != "no"; then
1.1 misho 66515: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
66516: fi
66517:
66518: if test -z "$PKG_CONFIG"; then
66519: # Extract the first word of "pkg-config", so it can be a program name with args.
66520: set dummy pkg-config; ac_word=$2
1.1.1.3 ! misho 66521: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 66522: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 66523: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
! 66524: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 66525: else
66526: case $PKG_CONFIG in
66527: [\\/]* | ?:[\\/]*)
66528: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
66529: ;;
66530: *)
66531: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66532: for as_dir in $PATH
66533: do
66534: IFS=$as_save_IFS
66535: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 66536: for ac_exec_ext in '' $ac_executable_extensions; do
! 66537: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 66538: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 66539: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 66540: break 2
66541: fi
66542: done
1.1.1.3 ! misho 66543: done
1.1 misho 66544: IFS=$as_save_IFS
66545:
66546: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
66547: ;;
66548: esac
66549: fi
66550: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
66551: if test -n "$PKG_CONFIG"; then
1.1.1.3 ! misho 66552: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 66553: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1 misho 66554: else
1.1.1.3 ! misho 66555: { echo "$as_me:$LINENO: result: no" >&5
! 66556: echo "${ECHO_T}no" >&6; }
1.1 misho 66557: fi
66558:
66559:
66560: fi
66561:
66562: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
66563: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
66564: found_openssl=yes
66565: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
66566: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
66567: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
66568: else
1.1.1.3 ! misho 66569: { { echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
! 66570: echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
! 66571: { (exit 1); exit 1; }; }
1.1 misho 66572: fi
66573:
1.1.1.3 ! misho 66574: if test -n "$OPENSSL_LIBS"; then
1.1 misho 66575:
66576: for ac_i in $OPENSSL_LIBS; do
66577: case $ac_i in
66578: -pthread)
66579: if test "$ext_shared" = "yes"; then
66580: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
66581: else
66582:
66583:
66584: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66585:
66586: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66587: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66588: eval "EXTRA_LDFLAGS$unique=set"
66589: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66590: fi
66591:
66592: fi
66593: ;;
66594: -l*)
66595: ac_ii=`echo $ac_i|cut -c 3-`
66596:
66597:
66598: case $ac_ii in
66599: c|c_r|pthread*) ;;
66600: *)
66601: if test "$ext_shared" = "yes"; then
66602: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
66603: else
66604:
66605:
66606: case $ac_ii in
66607: c|c_r|pthread*) ;;
66608: *)
66609: LIBS="$LIBS -l$ac_ii"
66610: ;;
66611: esac
66612:
66613:
66614: fi
66615: ;;
66616: esac
66617:
66618:
66619: ;;
66620: -L*)
66621: ac_ii=`echo $ac_i|cut -c 3-`
66622:
66623: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66624:
66625: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66626: ai_p=$ac_ii
66627: else
66628:
66629: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66630:
66631: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66632: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66633: fi
66634:
66635:
66636: if test "$ext_shared" = "yes"; then
66637: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66638: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66639: else
66640:
66641:
66642:
66643: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66644:
66645: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66646: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66647: eval "LIBPATH$unique=set"
66648:
66649: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66650: LDFLAGS="$LDFLAGS -L$ai_p"
66651: PHP_RPATHS="$PHP_RPATHS $ai_p"
66652:
66653: fi
66654:
66655:
66656: fi
66657:
66658: fi
66659:
66660: ;;
66661: esac
66662: done
66663:
1.1.1.3 ! misho 66664: fi
! 66665: if test -n "$OPENSSL_INCS"; then
1.1 misho 66666:
66667: for ac_i in $OPENSSL_INCS; do
66668: case $ac_i in
66669: -I*)
66670: ac_ii=`echo $ac_i|cut -c 3-`
66671:
66672: if test "$ac_ii" != "/usr/include"; then
66673:
66674: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66675: ai_p=$ac_ii
66676: else
66677:
66678: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66679:
66680: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66681: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66682: fi
66683:
66684:
66685:
66686: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66687:
66688: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66689: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66690: eval "INCLUDEPATH$unique=set"
66691:
66692: if test ""; then
66693: INCLUDES="-I$ai_p $INCLUDES"
66694: else
66695: INCLUDES="$INCLUDES -I$ai_p"
66696: fi
66697:
66698: fi
66699:
66700: fi
66701:
66702: ;;
66703: esac
66704: done
66705:
66706: fi
66707: fi
66708:
66709: if test "$found_openssl" = "no"; then
66710:
66711: if test "$PHP_OPENSSL_DIR" = "yes"; then
66712: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
66713: fi
66714:
66715: for i in $PHP_OPENSSL_DIR; do
66716: if test -r $i/include/openssl/evp.h; then
66717: OPENSSL_INCDIR=$i/include
66718: fi
66719: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
66720: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
66721: fi
66722: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
66723: done
66724:
66725: if test -z "$OPENSSL_INCDIR"; then
1.1.1.3 ! misho 66726: { { echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
! 66727: echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
! 66728: { (exit 1); exit 1; }; }
1.1 misho 66729: fi
66730:
66731: if test -z "$OPENSSL_LIBDIR"; then
1.1.1.3 ! misho 66732: { { echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
! 66733: echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
! 66734: { (exit 1); exit 1; }; }
1.1 misho 66735: fi
66736:
66737: old_CPPFLAGS=$CPPFLAGS
66738: CPPFLAGS=-I$OPENSSL_INCDIR
1.1.1.3 ! misho 66739: { echo "$as_me:$LINENO: checking for OpenSSL version" >&5
! 66740: echo $ECHO_N "checking for OpenSSL version... $ECHO_C" >&6; }
! 66741: cat >conftest.$ac_ext <<_ACEOF
! 66742: /* confdefs.h. */
! 66743: _ACEOF
! 66744: cat confdefs.h >>conftest.$ac_ext
! 66745: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 66746: /* end confdefs.h. */
66747:
66748: #include <openssl/opensslv.h>
66749: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
66750: yes
66751: #endif
66752:
66753: _ACEOF
66754: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 66755: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 66756:
1.1.1.3 ! misho 66757: { echo "$as_me:$LINENO: result: >= 0.9.6" >&5
! 66758: echo "${ECHO_T}>= 0.9.6" >&6; }
1.1 misho 66759:
66760: else
66761:
1.1.1.3 ! misho 66762: { { echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
! 66763: echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
! 66764: { (exit 1); exit 1; }; }
1.1 misho 66765:
66766: fi
1.1.1.3 ! misho 66767: rm -f -r conftest*
1.1 misho 66768:
66769: CPPFLAGS=$old_CPPFLAGS
66770:
66771:
66772: if test "$OPENSSL_INCDIR" != "/usr/include"; then
66773:
66774: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
66775: ai_p=$OPENSSL_INCDIR
66776: else
66777:
66778: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
66779:
66780: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66781: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
66782: fi
66783:
66784:
66785:
66786: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66787:
66788: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66789: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66790: eval "INCLUDEPATH$unique=set"
66791:
66792: if test ""; then
66793: INCLUDES="-I$ai_p $INCLUDES"
66794: else
66795: INCLUDES="$INCLUDES -I$ai_p"
66796: fi
66797:
66798: fi
66799:
66800: fi
66801:
66802:
66803:
66804: save_old_LDFLAGS=$LDFLAGS
66805: ac_stuff="
66806: -L$OPENSSL_LIBDIR
66807: "
66808:
66809: save_ext_shared=$ext_shared
66810: ext_shared=yes
66811:
66812: for ac_i in $ac_stuff; do
66813: case $ac_i in
66814: -pthread)
66815: if test "$ext_shared" = "yes"; then
66816: LDFLAGS="$LDFLAGS -pthread"
66817: else
66818:
66819:
66820: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66821:
66822: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66823: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66824: eval "EXTRA_LDFLAGS$unique=set"
66825: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66826: fi
66827:
66828: fi
66829: ;;
66830: -l*)
66831: ac_ii=`echo $ac_i|cut -c 3-`
66832:
66833:
66834: case $ac_ii in
66835: c|c_r|pthread*) ;;
66836: *)
66837: if test "$ext_shared" = "yes"; then
66838: LDFLAGS="$LDFLAGS -l$ac_ii"
66839: else
66840:
66841:
66842: case $ac_ii in
66843: c|c_r|pthread*) ;;
66844: *)
66845: LIBS="$LIBS -l$ac_ii"
66846: ;;
66847: esac
66848:
66849:
66850: fi
66851: ;;
66852: esac
66853:
66854:
66855: ;;
66856: -L*)
66857: ac_ii=`echo $ac_i|cut -c 3-`
66858:
66859: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66860:
66861: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66862: ai_p=$ac_ii
66863: else
66864:
66865: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66866:
66867: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66868: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66869: fi
66870:
66871:
66872: if test "$ext_shared" = "yes"; then
66873: LDFLAGS="-L$ai_p $LDFLAGS"
66874: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
66875: else
66876:
66877:
66878:
66879: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66880:
66881: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66882: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66883: eval "LIBPATH$unique=set"
66884:
66885: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66886: LDFLAGS="$LDFLAGS -L$ai_p"
66887: PHP_RPATHS="$PHP_RPATHS $ai_p"
66888:
66889: fi
66890:
66891:
66892: fi
66893:
66894: fi
66895:
66896: ;;
66897: esac
66898: done
66899:
1.1.1.3 ! misho 66900: { echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
! 66901: echo $ECHO_N "checking for CRYPTO_free in -lcrypto... $ECHO_C" >&6; }
! 66902: if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
! 66903: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 66904: else
66905: ac_check_lib_save_LIBS=$LIBS
66906: LIBS="-lcrypto $LIBS"
1.1.1.3 ! misho 66907: cat >conftest.$ac_ext <<_ACEOF
! 66908: /* confdefs.h. */
! 66909: _ACEOF
! 66910: cat confdefs.h >>conftest.$ac_ext
! 66911: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 66912: /* end confdefs.h. */
66913:
66914: /* Override any GCC internal prototype to avoid an error.
66915: Use char because int might match the return type of a GCC
66916: builtin and then its argument prototype would still apply. */
66917: #ifdef __cplusplus
66918: extern "C"
66919: #endif
66920: char CRYPTO_free ();
66921: int
66922: main ()
66923: {
66924: return CRYPTO_free ();
66925: ;
66926: return 0;
66927: }
66928: _ACEOF
1.1.1.3 ! misho 66929: rm -f conftest.$ac_objext conftest$ac_exeext
! 66930: if { (ac_try="$ac_link"
! 66931: case "(($ac_try" in
! 66932: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 66933: *) ac_try_echo=$ac_try;;
! 66934: esac
! 66935: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 66936: (eval "$ac_link") 2>conftest.er1
! 66937: ac_status=$?
! 66938: grep -v '^ *+' conftest.er1 >conftest.err
! 66939: rm -f conftest.er1
! 66940: cat conftest.err >&5
! 66941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 66942: (exit $ac_status); } && {
! 66943: test -z "$ac_c_werror_flag" ||
! 66944: test ! -s conftest.err
! 66945: } && test -s conftest$ac_exeext &&
! 66946: $as_test_x conftest$ac_exeext; then
1.1 misho 66947: ac_cv_lib_crypto_CRYPTO_free=yes
66948: else
1.1.1.3 ! misho 66949: echo "$as_me: failed program was:" >&5
! 66950: sed 's/^/| /' conftest.$ac_ext >&5
! 66951:
! 66952: ac_cv_lib_crypto_CRYPTO_free=no
1.1 misho 66953: fi
1.1.1.3 ! misho 66954:
! 66955: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 66956: conftest$ac_exeext conftest.$ac_ext
1.1 misho 66957: LIBS=$ac_check_lib_save_LIBS
66958: fi
1.1.1.3 ! misho 66959: { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
! 66960: echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_free" >&6; }
! 66961: if test $ac_cv_lib_crypto_CRYPTO_free = yes; then
1.1 misho 66962:
66963: LDFLAGS=$save_old_LDFLAGS
66964: ext_shared=$save_ext_shared
66965:
66966:
66967:
66968: case crypto in
66969: c|c_r|pthread*) ;;
66970: *)
66971: if test "$ext_shared" = "yes"; then
66972: IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
66973: else
66974:
66975:
66976: case crypto in
66977: c|c_r|pthread*) ;;
66978: *)
66979: LIBS="-lcrypto $LIBS"
66980: ;;
66981: esac
66982:
66983:
66984: fi
66985: ;;
66986: esac
66987:
66988:
66989:
66990:
66991: else
66992:
66993: LDFLAGS=$save_old_LDFLAGS
66994: ext_shared=$save_ext_shared
66995: unset ac_cv_lib_crypto_CRYPTO_free
66996:
1.1.1.3 ! misho 66997: { { echo "$as_me:$LINENO: error: libcrypto not found!" >&5
! 66998: echo "$as_me: error: libcrypto not found!" >&2;}
! 66999: { (exit 1); exit 1; }; }
1.1 misho 67000:
67001:
67002: fi
67003:
67004:
67005: old_LIBS=$LIBS
67006: LIBS="$LIBS -lcrypto"
67007:
67008: save_old_LDFLAGS=$LDFLAGS
67009: ac_stuff="
67010: -L$OPENSSL_LIBDIR
67011: "
67012:
67013: save_ext_shared=$ext_shared
67014: ext_shared=yes
67015:
67016: for ac_i in $ac_stuff; do
67017: case $ac_i in
67018: -pthread)
67019: if test "$ext_shared" = "yes"; then
67020: LDFLAGS="$LDFLAGS -pthread"
67021: else
67022:
67023:
67024: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
67025:
67026: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
67027: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67028: eval "EXTRA_LDFLAGS$unique=set"
67029: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
67030: fi
67031:
67032: fi
67033: ;;
67034: -l*)
67035: ac_ii=`echo $ac_i|cut -c 3-`
67036:
67037:
67038: case $ac_ii in
67039: c|c_r|pthread*) ;;
67040: *)
67041: if test "$ext_shared" = "yes"; then
67042: LDFLAGS="$LDFLAGS -l$ac_ii"
67043: else
67044:
67045:
67046: case $ac_ii in
67047: c|c_r|pthread*) ;;
67048: *)
67049: LIBS="$LIBS -l$ac_ii"
67050: ;;
67051: esac
67052:
67053:
67054: fi
67055: ;;
67056: esac
67057:
67058:
67059: ;;
67060: -L*)
67061: ac_ii=`echo $ac_i|cut -c 3-`
67062:
67063: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
67064:
67065: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
67066: ai_p=$ac_ii
67067: else
67068:
67069: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
67070:
67071: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67072: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
67073: fi
67074:
67075:
67076: if test "$ext_shared" = "yes"; then
67077: LDFLAGS="-L$ai_p $LDFLAGS"
67078: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
67079: else
67080:
67081:
67082:
67083: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67084:
67085: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67086: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67087: eval "LIBPATH$unique=set"
67088:
67089: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67090: LDFLAGS="$LDFLAGS -L$ai_p"
67091: PHP_RPATHS="$PHP_RPATHS $ai_p"
67092:
67093: fi
67094:
67095:
67096: fi
67097:
67098: fi
67099:
67100: ;;
67101: esac
67102: done
67103:
1.1.1.3 ! misho 67104: { echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
! 67105: echo $ECHO_N "checking for SSL_CTX_set_ssl_version in -lssl... $ECHO_C" >&6; }
! 67106: if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
! 67107: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 67108: else
67109: ac_check_lib_save_LIBS=$LIBS
67110: LIBS="-lssl $LIBS"
1.1.1.3 ! misho 67111: cat >conftest.$ac_ext <<_ACEOF
! 67112: /* confdefs.h. */
! 67113: _ACEOF
! 67114: cat confdefs.h >>conftest.$ac_ext
! 67115: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67116: /* end confdefs.h. */
67117:
67118: /* Override any GCC internal prototype to avoid an error.
67119: Use char because int might match the return type of a GCC
67120: builtin and then its argument prototype would still apply. */
67121: #ifdef __cplusplus
67122: extern "C"
67123: #endif
67124: char SSL_CTX_set_ssl_version ();
67125: int
67126: main ()
67127: {
67128: return SSL_CTX_set_ssl_version ();
67129: ;
67130: return 0;
67131: }
67132: _ACEOF
1.1.1.3 ! misho 67133: rm -f conftest.$ac_objext conftest$ac_exeext
! 67134: if { (ac_try="$ac_link"
! 67135: case "(($ac_try" in
! 67136: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67137: *) ac_try_echo=$ac_try;;
! 67138: esac
! 67139: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67140: (eval "$ac_link") 2>conftest.er1
! 67141: ac_status=$?
! 67142: grep -v '^ *+' conftest.er1 >conftest.err
! 67143: rm -f conftest.er1
! 67144: cat conftest.err >&5
! 67145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67146: (exit $ac_status); } && {
! 67147: test -z "$ac_c_werror_flag" ||
! 67148: test ! -s conftest.err
! 67149: } && test -s conftest$ac_exeext &&
! 67150: $as_test_x conftest$ac_exeext; then
1.1 misho 67151: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
67152: else
1.1.1.3 ! misho 67153: echo "$as_me: failed program was:" >&5
! 67154: sed 's/^/| /' conftest.$ac_ext >&5
! 67155:
! 67156: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
1.1 misho 67157: fi
1.1.1.3 ! misho 67158:
! 67159: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 67160: conftest$ac_exeext conftest.$ac_ext
1.1 misho 67161: LIBS=$ac_check_lib_save_LIBS
67162: fi
1.1.1.3 ! misho 67163: { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
! 67164: echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
! 67165: if test $ac_cv_lib_ssl_SSL_CTX_set_ssl_version = yes; then
1.1 misho 67166:
67167: LDFLAGS=$save_old_LDFLAGS
67168: ext_shared=$save_ext_shared
67169:
67170: found_openssl=yes
67171:
67172:
67173: else
67174:
67175: LDFLAGS=$save_old_LDFLAGS
67176: ext_shared=$save_ext_shared
67177: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
67178:
1.1.1.3 ! misho 67179: { { echo "$as_me:$LINENO: error: libssl not found!" >&5
! 67180: echo "$as_me: error: libssl not found!" >&2;}
! 67181: { (exit 1); exit 1; }; }
1.1 misho 67182:
67183:
67184: fi
67185:
67186: LIBS=$old_LIBS
67187:
67188:
67189: case ssl in
67190: c|c_r|pthread*) ;;
67191: *)
67192: if test "$ext_shared" = "yes"; then
67193: IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD"
67194: else
67195:
67196:
67197: case ssl in
67198: c|c_r|pthread*) ;;
67199: *)
67200: LIBS="-lssl $LIBS"
67201: ;;
67202: esac
67203:
67204:
67205: fi
67206: ;;
67207: esac
67208:
67209:
67210:
67211:
67212: case crypto in
67213: c|c_r|pthread*) ;;
67214: *)
67215: if test "$ext_shared" = "yes"; then
67216: IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
67217: else
67218:
67219:
67220: case crypto in
67221: c|c_r|pthread*) ;;
67222: *)
67223: LIBS="-lcrypto $LIBS"
67224: ;;
67225: esac
67226:
67227:
67228: fi
67229: ;;
67230: esac
67231:
67232:
67233:
67234:
67235: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
67236:
67237: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
67238: ai_p=$OPENSSL_LIBDIR
67239: else
67240:
67241: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
67242:
67243: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67244: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
67245: fi
67246:
67247:
67248: if test "$ext_shared" = "yes"; then
67249: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
67250: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
67251: else
67252:
67253:
67254:
67255: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67256:
67257: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67258: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67259: eval "LIBPATH$unique=set"
67260:
67261: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67262: LDFLAGS="$LDFLAGS -L$ai_p"
67263: PHP_RPATHS="$PHP_RPATHS $ai_p"
67264:
67265: fi
67266:
67267:
67268: fi
67269:
67270: fi
67271:
67272: fi
67273:
67274: if test "$found_openssl" = "yes"; then
67275: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
67276:
67277:
67278:
67279:
1.1.1.3 ! misho 67280: cat >>confdefs.h <<\_ACEOF
! 67281: #define HAVE_IMAP_SSL 1
! 67282: _ACEOF
1.1 misho 67283:
67284:
67285: else
1.1.1.3 ! misho 67286: { { echo "$as_me:$LINENO: error: OpenSSL libraries not found.
1.1 misho 67287:
67288: Check the path given to --with-openssl-dir and output in config.log)
1.1.1.3 ! misho 67289: " >&5
! 67290: echo "$as_me: error: OpenSSL libraries not found.
! 67291:
! 67292: Check the path given to --with-openssl-dir and output in config.log)
! 67293: " >&2;}
! 67294: { (exit 1); exit 1; }; }
1.1 misho 67295:
67296: fi
67297:
67298: elif test -f "$IMAP_INC_DIR/linkage.c"; then
1.1.1.3 ! misho 67299: cat >conftest.$ac_ext <<_ACEOF
! 67300: /* confdefs.h. */
! 67301: _ACEOF
! 67302: cat confdefs.h >>conftest.$ac_ext
! 67303: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67304: /* end confdefs.h. */
67305: #include <$IMAP_INC_DIR/linkage.c>
67306:
67307: _ACEOF
67308: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 67309: $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then
! 67310:
! 67311: { { echo "$as_me:$LINENO: error: This c-client library is built with SSL support.
1.1 misho 67312:
1.1.1.3 ! misho 67313: Add --with-imap-ssl to your configure line. Check config.log for details.
! 67314: " >&5
! 67315: echo "$as_me: error: This c-client library is built with SSL support.
1.1 misho 67316:
67317: Add --with-imap-ssl to your configure line. Check config.log for details.
1.1.1.3 ! misho 67318: " >&2;}
! 67319: { (exit 1); exit 1; }; }
1.1 misho 67320:
67321: fi
1.1.1.3 ! misho 67322: rm -f -r conftest*
1.1 misho 67323:
67324: fi
67325:
67326:
67327: TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD"
67328:
67329:
67330:
67331: old_LIBS=$LIBS
67332: LIBS="$TST_LIBS $LIBS"
1.1.1.3 ! misho 67333: if test "$cross_compiling" = yes; then
1.1 misho 67334:
67335: LIBS=$old_LIBS
67336:
67337: else
1.1.1.3 ! misho 67338: cat >conftest.$ac_ext <<_ACEOF
! 67339: /* confdefs.h. */
! 67340: _ACEOF
! 67341: cat confdefs.h >>conftest.$ac_ext
! 67342: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67343: /* end confdefs.h. */
67344:
67345:
67346: #if defined(__GNUC__) && __GNUC__ >= 4
67347: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67348: #else
67349: # define PHP_IMAP_EXPORT
67350: #endif
67351:
67352: PHP_IMAP_EXPORT void mm_log(void){}
67353: PHP_IMAP_EXPORT void mm_dlog(void){}
67354: PHP_IMAP_EXPORT void mm_flags(void){}
67355: PHP_IMAP_EXPORT void mm_fatal(void){}
67356: PHP_IMAP_EXPORT void mm_critical(void){}
67357: PHP_IMAP_EXPORT void mm_nocritical(void){}
67358: PHP_IMAP_EXPORT void mm_notify(void){}
67359: PHP_IMAP_EXPORT void mm_login(void){}
67360: PHP_IMAP_EXPORT void mm_diskerror(void){}
67361: PHP_IMAP_EXPORT void mm_status(void){}
67362: PHP_IMAP_EXPORT void mm_lsub(void){}
67363: PHP_IMAP_EXPORT void mm_list(void){}
67364: PHP_IMAP_EXPORT void mm_exists(void){}
67365: PHP_IMAP_EXPORT void mm_searched(void){}
67366: PHP_IMAP_EXPORT void mm_expunged(void){}
67367:
67368: char auth_gssapi_valid();
67369: int main() {
67370: auth_gssapi_valid();
67371: return 0;
67372: }
67373:
67374: _ACEOF
1.1.1.3 ! misho 67375: rm -f conftest$ac_exeext
! 67376: if { (ac_try="$ac_link"
! 67377: case "(($ac_try" in
! 67378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67379: *) ac_try_echo=$ac_try;;
! 67380: esac
! 67381: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67382: (eval "$ac_link") 2>&5
! 67383: ac_status=$?
! 67384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67385: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 67386: { (case "(($ac_try" in
! 67387: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67388: *) ac_try_echo=$ac_try;;
! 67389: esac
! 67390: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67391: (eval "$ac_try") 2>&5
! 67392: ac_status=$?
! 67393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67394: (exit $ac_status); }; }; then
1.1 misho 67395:
67396: LIBS=$old_LIBS
67397:
67398:
1.1.1.3 ! misho 67399: cat >>confdefs.h <<\_ACEOF
! 67400: #define HAVE_IMAP_AUTH_GSS 1
! 67401: _ACEOF
1.1 misho 67402:
67403:
67404:
67405: else
1.1.1.3 ! misho 67406: echo "$as_me: program exited with status $ac_status" >&5
! 67407: echo "$as_me: failed program was:" >&5
! 67408: sed 's/^/| /' conftest.$ac_ext >&5
! 67409:
! 67410: ( exit $ac_status )
1.1 misho 67411:
67412: LIBS=$old_LIBS
67413:
67414:
67415: fi
1.1.1.3 ! misho 67416: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 67417: fi
67418:
67419:
67420:
67421:
67422:
67423:
1.1.1.3 ! misho 67424:
1.1 misho 67425: old_LIBS=$LIBS
67426: LIBS="$TST_LIBS $LIBS"
1.1.1.3 ! misho 67427: if test "$cross_compiling" = yes; then
1.1 misho 67428:
67429: LIBS=$old_LIBS
67430:
67431: else
1.1.1.3 ! misho 67432: cat >conftest.$ac_ext <<_ACEOF
! 67433: /* confdefs.h. */
! 67434: _ACEOF
! 67435: cat confdefs.h >>conftest.$ac_ext
! 67436: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67437: /* end confdefs.h. */
67438:
67439:
67440: #if defined(__GNUC__) && __GNUC__ >= 4
67441: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67442: #else
67443: # define PHP_IMAP_EXPORT
67444: #endif
67445:
67446: PHP_IMAP_EXPORT void mm_log(void){}
67447: PHP_IMAP_EXPORT void mm_dlog(void){}
67448: PHP_IMAP_EXPORT void mm_flags(void){}
67449: PHP_IMAP_EXPORT void mm_fatal(void){}
67450: PHP_IMAP_EXPORT void mm_critical(void){}
67451: PHP_IMAP_EXPORT void mm_nocritical(void){}
67452: PHP_IMAP_EXPORT void mm_notify(void){}
67453: PHP_IMAP_EXPORT void mm_login(void){}
67454: PHP_IMAP_EXPORT void mm_diskerror(void){}
67455: PHP_IMAP_EXPORT void mm_status(void){}
67456: PHP_IMAP_EXPORT void mm_lsub(void){}
67457: PHP_IMAP_EXPORT void mm_list(void){}
67458: PHP_IMAP_EXPORT void mm_exists(void){}
67459: PHP_IMAP_EXPORT void mm_searched(void){}
67460: PHP_IMAP_EXPORT void mm_expunged(void){}
67461:
67462: char utf8_to_mutf7();
67463: int main() {
67464: utf8_to_mutf7();
67465: return 0;
67466: }
67467:
67468: _ACEOF
1.1.1.3 ! misho 67469: rm -f conftest$ac_exeext
! 67470: if { (ac_try="$ac_link"
! 67471: case "(($ac_try" in
! 67472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67473: *) ac_try_echo=$ac_try;;
! 67474: esac
! 67475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67476: (eval "$ac_link") 2>&5
! 67477: ac_status=$?
! 67478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67479: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 67480: { (case "(($ac_try" in
! 67481: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67482: *) ac_try_echo=$ac_try;;
! 67483: esac
! 67484: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67485: (eval "$ac_try") 2>&5
! 67486: ac_status=$?
! 67487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67488: (exit $ac_status); }; }; then
1.1 misho 67489:
67490: LIBS=$old_LIBS
67491:
67492:
1.1.1.3 ! misho 67493: cat >>confdefs.h <<\_ACEOF
! 67494: #define HAVE_IMAP_MUTF7 1
! 67495: _ACEOF
1.1 misho 67496:
67497:
67498:
67499: else
1.1.1.3 ! misho 67500: echo "$as_me: program exited with status $ac_status" >&5
! 67501: echo "$as_me: failed program was:" >&5
! 67502: sed 's/^/| /' conftest.$ac_ext >&5
! 67503:
! 67504: ( exit $ac_status )
1.1 misho 67505:
67506: LIBS=$old_LIBS
67507:
67508:
67509: fi
1.1.1.3 ! misho 67510: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 67511: fi
67512:
67513:
67514:
67515:
1.1.1.3 ! misho 67516:
! 67517: { echo "$as_me:$LINENO: checking whether rfc822_output_address_list function present" >&5
! 67518: echo $ECHO_N "checking whether rfc822_output_address_list function present... $ECHO_C" >&6; }
1.1 misho 67519:
67520: old_LIBS=$LIBS
67521: LIBS="
67522: $TST_LIBS
67523: $LIBS"
1.1.1.3 ! misho 67524: if test "$cross_compiling" = yes; then
1.1 misho 67525:
67526: LIBS=$old_LIBS
67527:
67528: else
1.1.1.3 ! misho 67529: cat >conftest.$ac_ext <<_ACEOF
! 67530: /* confdefs.h. */
! 67531: _ACEOF
! 67532: cat confdefs.h >>conftest.$ac_ext
! 67533: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67534: /* end confdefs.h. */
67535:
67536:
67537: #if defined(__GNUC__) && __GNUC__ >= 4
67538: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67539: #else
67540: # define PHP_IMAP_EXPORT
67541: #endif
67542:
67543: PHP_IMAP_EXPORT void mm_log(void){}
67544: PHP_IMAP_EXPORT void mm_dlog(void){}
67545: PHP_IMAP_EXPORT void mm_flags(void){}
67546: PHP_IMAP_EXPORT void mm_fatal(void){}
67547: PHP_IMAP_EXPORT void mm_critical(void){}
67548: PHP_IMAP_EXPORT void mm_nocritical(void){}
67549: PHP_IMAP_EXPORT void mm_notify(void){}
67550: PHP_IMAP_EXPORT void mm_login(void){}
67551: PHP_IMAP_EXPORT void mm_diskerror(void){}
67552: PHP_IMAP_EXPORT void mm_status(void){}
67553: PHP_IMAP_EXPORT void mm_lsub(void){}
67554: PHP_IMAP_EXPORT void mm_list(void){}
67555: PHP_IMAP_EXPORT void mm_exists(void){}
67556: PHP_IMAP_EXPORT void mm_searched(void){}
67557: PHP_IMAP_EXPORT void mm_expunged(void){}
67558: void rfc822_output_address_list(void);
67559: void (*f)(void);
67560: char foobar () {f = rfc822_output_address_list;}
67561:
67562: char foobar();
67563: int main() {
67564: foobar();
67565: return 0;
67566: }
67567:
67568: _ACEOF
1.1.1.3 ! misho 67569: rm -f conftest$ac_exeext
! 67570: if { (ac_try="$ac_link"
! 67571: case "(($ac_try" in
! 67572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67573: *) ac_try_echo=$ac_try;;
! 67574: esac
! 67575: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67576: (eval "$ac_link") 2>&5
! 67577: ac_status=$?
! 67578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67579: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 67580: { (case "(($ac_try" in
! 67581: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67582: *) ac_try_echo=$ac_try;;
! 67583: esac
! 67584: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67585: (eval "$ac_try") 2>&5
! 67586: ac_status=$?
! 67587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67588: (exit $ac_status); }; }; then
1.1 misho 67589:
67590: LIBS=$old_LIBS
67591:
1.1.1.3 ! misho 67592: { echo "$as_me:$LINENO: result: yes" >&5
! 67593: echo "${ECHO_T}yes" >&6; }
1.1 misho 67594:
1.1.1.3 ! misho 67595: cat >>confdefs.h <<\_ACEOF
! 67596: #define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1
! 67597: _ACEOF
1.1 misho 67598:
67599:
67600:
67601: else
1.1.1.3 ! misho 67602: echo "$as_me: program exited with status $ac_status" >&5
! 67603: echo "$as_me: failed program was:" >&5
! 67604: sed 's/^/| /' conftest.$ac_ext >&5
! 67605:
! 67606: ( exit $ac_status )
1.1 misho 67607:
67608: LIBS=$old_LIBS
67609:
1.1.1.3 ! misho 67610: { echo "$as_me:$LINENO: result: no" >&5
! 67611: echo "${ECHO_T}no" >&6; }
1.1 misho 67612:
67613:
67614: fi
1.1.1.3 ! misho 67615: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 67616: fi
67617:
67618:
67619:
1.1.1.3 ! misho 67620:
! 67621: { echo "$as_me:$LINENO: checking whether build with IMAP works" >&5
! 67622: echo $ECHO_N "checking whether build with IMAP works... $ECHO_C" >&6; }
1.1 misho 67623:
67624:
67625: old_LIBS=$LIBS
67626: LIBS="$TST_LIBS $LIBS"
1.1.1.3 ! misho 67627: if test "$cross_compiling" = yes; then
1.1 misho 67628:
67629: LIBS=$old_LIBS
67630:
67631: else
1.1.1.3 ! misho 67632: cat >conftest.$ac_ext <<_ACEOF
! 67633: /* confdefs.h. */
! 67634: _ACEOF
! 67635: cat confdefs.h >>conftest.$ac_ext
! 67636: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67637: /* end confdefs.h. */
67638:
67639:
67640: #if defined(__GNUC__) && __GNUC__ >= 4
67641: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67642: #else
67643: # define PHP_IMAP_EXPORT
67644: #endif
67645:
67646: PHP_IMAP_EXPORT void mm_log(void){}
67647: PHP_IMAP_EXPORT void mm_dlog(void){}
67648: PHP_IMAP_EXPORT void mm_flags(void){}
67649: PHP_IMAP_EXPORT void mm_fatal(void){}
67650: PHP_IMAP_EXPORT void mm_critical(void){}
67651: PHP_IMAP_EXPORT void mm_nocritical(void){}
67652: PHP_IMAP_EXPORT void mm_notify(void){}
67653: PHP_IMAP_EXPORT void mm_login(void){}
67654: PHP_IMAP_EXPORT void mm_diskerror(void){}
67655: PHP_IMAP_EXPORT void mm_status(void){}
67656: PHP_IMAP_EXPORT void mm_lsub(void){}
67657: PHP_IMAP_EXPORT void mm_list(void){}
67658: PHP_IMAP_EXPORT void mm_exists(void){}
67659: PHP_IMAP_EXPORT void mm_searched(void){}
67660: PHP_IMAP_EXPORT void mm_expunged(void){}
67661:
67662: char mail_newbody();
67663: int main() {
67664: mail_newbody();
67665: return 0;
67666: }
67667:
67668: _ACEOF
1.1.1.3 ! misho 67669: rm -f conftest$ac_exeext
! 67670: if { (ac_try="$ac_link"
! 67671: case "(($ac_try" in
! 67672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67673: *) ac_try_echo=$ac_try;;
! 67674: esac
! 67675: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67676: (eval "$ac_link") 2>&5
! 67677: ac_status=$?
! 67678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67679: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 67680: { (case "(($ac_try" in
! 67681: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67682: *) ac_try_echo=$ac_try;;
! 67683: esac
! 67684: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67685: (eval "$ac_try") 2>&5
! 67686: ac_status=$?
! 67687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67688: (exit $ac_status); }; }; then
1.1 misho 67689:
67690: LIBS=$old_LIBS
67691:
1.1.1.3 ! misho 67692: { echo "$as_me:$LINENO: result: yes" >&5
! 67693: echo "${ECHO_T}yes" >&6; }
1.1 misho 67694:
67695:
67696: else
1.1.1.3 ! misho 67697: echo "$as_me: program exited with status $ac_status" >&5
! 67698: echo "$as_me: failed program was:" >&5
! 67699: sed 's/^/| /' conftest.$ac_ext >&5
! 67700:
! 67701: ( exit $ac_status )
1.1 misho 67702:
67703: LIBS=$old_LIBS
67704:
1.1.1.3 ! misho 67705: { echo "$as_me:$LINENO: result: no" >&5
! 67706: echo "${ECHO_T}no" >&6; }
! 67707: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 67708: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 67709: { (exit 1); exit 1; }; }
1.1 misho 67710:
67711:
67712: fi
1.1.1.3 ! misho 67713: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 67714: fi
67715:
67716:
67717:
1.1.1.3 ! misho 67718:
1.1 misho 67719: fi
67720:
67721:
67722:
67723: php_with_interbase=no
67724:
1.1.1.3 ! misho 67725: { echo "$as_me:$LINENO: checking for InterBase support" >&5
! 67726: echo $ECHO_N "checking for InterBase support... $ECHO_C" >&6; }
1.1 misho 67727:
67728: # Check whether --with-interbase was given.
1.1.1.3 ! misho 67729: if test "${with_interbase+set}" = set; then
1.1 misho 67730: withval=$with_interbase; PHP_INTERBASE=$withval
67731: else
67732:
67733: PHP_INTERBASE=no
67734: test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL
67735:
67736: fi
67737:
67738:
67739:
67740: ext_output="yes, shared"
67741: ext_shared=yes
67742: case $PHP_INTERBASE in
67743: shared,*)
67744: PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'`
67745: ;;
67746: shared)
67747: PHP_INTERBASE=yes
67748: ;;
67749: no)
67750: ext_output=no
67751: ext_shared=no
67752: ;;
67753: *)
67754: ext_output=yes
67755: ext_shared=no
67756: ;;
67757: esac
67758:
67759:
67760:
1.1.1.3 ! misho 67761: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 67762: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 67763:
67764:
67765:
67766:
67767: if test "$PHP_INTERBASE" != "no"; then
67768: if test "$PHP_INTERBASE" = "yes"; then
67769: IBASE_INCDIR=/usr/interbase/include
67770: IBASE_LIBDIR=/usr/interbase/lib
67771: else
67772: IBASE_INCDIR=$PHP_INTERBASE/include
67773: IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
67774: fi
67775:
67776:
67777: save_old_LDFLAGS=$LDFLAGS
67778: ac_stuff="
67779: -L$IBASE_LIBDIR
67780: "
67781:
67782: save_ext_shared=$ext_shared
67783: ext_shared=yes
67784:
67785: for ac_i in $ac_stuff; do
67786: case $ac_i in
67787: -pthread)
67788: if test "$ext_shared" = "yes"; then
67789: LDFLAGS="$LDFLAGS -pthread"
67790: else
67791:
67792:
67793: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
67794:
67795: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
67796: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67797: eval "EXTRA_LDFLAGS$unique=set"
67798: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
67799: fi
67800:
67801: fi
67802: ;;
67803: -l*)
67804: ac_ii=`echo $ac_i|cut -c 3-`
67805:
67806:
67807: case $ac_ii in
67808: c|c_r|pthread*) ;;
67809: *)
67810: if test "$ext_shared" = "yes"; then
67811: LDFLAGS="$LDFLAGS -l$ac_ii"
67812: else
67813:
67814:
67815: case $ac_ii in
67816: c|c_r|pthread*) ;;
67817: *)
67818: LIBS="$LIBS -l$ac_ii"
67819: ;;
67820: esac
67821:
67822:
67823: fi
67824: ;;
67825: esac
67826:
67827:
67828: ;;
67829: -L*)
67830: ac_ii=`echo $ac_i|cut -c 3-`
67831:
67832: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
67833:
67834: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
67835: ai_p=$ac_ii
67836: else
67837:
67838: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
67839:
67840: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67841: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
67842: fi
67843:
67844:
67845: if test "$ext_shared" = "yes"; then
67846: LDFLAGS="-L$ai_p $LDFLAGS"
67847: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
67848: else
67849:
67850:
67851:
67852: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67853:
67854: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67855: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67856: eval "LIBPATH$unique=set"
67857:
67858: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67859: LDFLAGS="$LDFLAGS -L$ai_p"
67860: PHP_RPATHS="$PHP_RPATHS $ai_p"
67861:
67862: fi
67863:
67864:
67865: fi
67866:
67867: fi
67868:
67869: ;;
67870: esac
67871: done
67872:
1.1.1.3 ! misho 67873: { echo "$as_me:$LINENO: checking for isc_detach_database in -lfbclient" >&5
! 67874: echo $ECHO_N "checking for isc_detach_database in -lfbclient... $ECHO_C" >&6; }
! 67875: if test "${ac_cv_lib_fbclient_isc_detach_database+set}" = set; then
! 67876: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 67877: else
67878: ac_check_lib_save_LIBS=$LIBS
67879: LIBS="-lfbclient $LIBS"
1.1.1.3 ! misho 67880: cat >conftest.$ac_ext <<_ACEOF
! 67881: /* confdefs.h. */
! 67882: _ACEOF
! 67883: cat confdefs.h >>conftest.$ac_ext
! 67884: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 67885: /* end confdefs.h. */
67886:
67887: /* Override any GCC internal prototype to avoid an error.
67888: Use char because int might match the return type of a GCC
67889: builtin and then its argument prototype would still apply. */
67890: #ifdef __cplusplus
67891: extern "C"
67892: #endif
67893: char isc_detach_database ();
67894: int
67895: main ()
67896: {
67897: return isc_detach_database ();
67898: ;
67899: return 0;
67900: }
67901: _ACEOF
1.1.1.3 ! misho 67902: rm -f conftest.$ac_objext conftest$ac_exeext
! 67903: if { (ac_try="$ac_link"
! 67904: case "(($ac_try" in
! 67905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 67906: *) ac_try_echo=$ac_try;;
! 67907: esac
! 67908: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 67909: (eval "$ac_link") 2>conftest.er1
! 67910: ac_status=$?
! 67911: grep -v '^ *+' conftest.er1 >conftest.err
! 67912: rm -f conftest.er1
! 67913: cat conftest.err >&5
! 67914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 67915: (exit $ac_status); } && {
! 67916: test -z "$ac_c_werror_flag" ||
! 67917: test ! -s conftest.err
! 67918: } && test -s conftest$ac_exeext &&
! 67919: $as_test_x conftest$ac_exeext; then
1.1 misho 67920: ac_cv_lib_fbclient_isc_detach_database=yes
67921: else
1.1.1.3 ! misho 67922: echo "$as_me: failed program was:" >&5
! 67923: sed 's/^/| /' conftest.$ac_ext >&5
! 67924:
! 67925: ac_cv_lib_fbclient_isc_detach_database=no
1.1 misho 67926: fi
1.1.1.3 ! misho 67927:
! 67928: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 67929: conftest$ac_exeext conftest.$ac_ext
1.1 misho 67930: LIBS=$ac_check_lib_save_LIBS
67931: fi
1.1.1.3 ! misho 67932: { echo "$as_me:$LINENO: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
! 67933: echo "${ECHO_T}$ac_cv_lib_fbclient_isc_detach_database" >&6; }
! 67934: if test $ac_cv_lib_fbclient_isc_detach_database = yes; then
1.1 misho 67935:
67936: LDFLAGS=$save_old_LDFLAGS
67937: ext_shared=$save_ext_shared
67938:
67939: IBASE_LIBNAME=fbclient
67940:
67941:
67942: else
67943:
67944: LDFLAGS=$save_old_LDFLAGS
67945: ext_shared=$save_ext_shared
67946: unset ac_cv_lib_fbclient_isc_detach_database
67947:
67948:
67949: save_old_LDFLAGS=$LDFLAGS
67950: ac_stuff="
67951: -L$IBASE_LIBDIR
67952: "
67953:
67954: save_ext_shared=$ext_shared
67955: ext_shared=yes
67956:
67957: for ac_i in $ac_stuff; do
67958: case $ac_i in
67959: -pthread)
67960: if test "$ext_shared" = "yes"; then
67961: LDFLAGS="$LDFLAGS -pthread"
67962: else
67963:
67964:
67965: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
67966:
67967: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
67968: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67969: eval "EXTRA_LDFLAGS$unique=set"
67970: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
67971: fi
67972:
67973: fi
67974: ;;
67975: -l*)
67976: ac_ii=`echo $ac_i|cut -c 3-`
67977:
67978:
67979: case $ac_ii in
67980: c|c_r|pthread*) ;;
67981: *)
67982: if test "$ext_shared" = "yes"; then
67983: LDFLAGS="$LDFLAGS -l$ac_ii"
67984: else
67985:
67986:
67987: case $ac_ii in
67988: c|c_r|pthread*) ;;
67989: *)
67990: LIBS="$LIBS -l$ac_ii"
67991: ;;
67992: esac
67993:
67994:
67995: fi
67996: ;;
67997: esac
67998:
67999:
68000: ;;
68001: -L*)
68002: ac_ii=`echo $ac_i|cut -c 3-`
68003:
68004: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
68005:
68006: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68007: ai_p=$ac_ii
68008: else
68009:
68010: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68011:
68012: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68013: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68014: fi
68015:
68016:
68017: if test "$ext_shared" = "yes"; then
68018: LDFLAGS="-L$ai_p $LDFLAGS"
68019: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
68020: else
68021:
68022:
68023:
68024: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68025:
68026: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68027: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68028: eval "LIBPATH$unique=set"
68029:
68030: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68031: LDFLAGS="$LDFLAGS -L$ai_p"
68032: PHP_RPATHS="$PHP_RPATHS $ai_p"
68033:
68034: fi
68035:
68036:
68037: fi
68038:
68039: fi
68040:
68041: ;;
68042: esac
68043: done
68044:
1.1.1.3 ! misho 68045: { echo "$as_me:$LINENO: checking for isc_detach_database in -lgds" >&5
! 68046: echo $ECHO_N "checking for isc_detach_database in -lgds... $ECHO_C" >&6; }
! 68047: if test "${ac_cv_lib_gds_isc_detach_database+set}" = set; then
! 68048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 68049: else
68050: ac_check_lib_save_LIBS=$LIBS
68051: LIBS="-lgds $LIBS"
1.1.1.3 ! misho 68052: cat >conftest.$ac_ext <<_ACEOF
! 68053: /* confdefs.h. */
! 68054: _ACEOF
! 68055: cat confdefs.h >>conftest.$ac_ext
! 68056: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 68057: /* end confdefs.h. */
68058:
68059: /* Override any GCC internal prototype to avoid an error.
68060: Use char because int might match the return type of a GCC
68061: builtin and then its argument prototype would still apply. */
68062: #ifdef __cplusplus
68063: extern "C"
68064: #endif
68065: char isc_detach_database ();
68066: int
68067: main ()
68068: {
68069: return isc_detach_database ();
68070: ;
68071: return 0;
68072: }
68073: _ACEOF
1.1.1.3 ! misho 68074: rm -f conftest.$ac_objext conftest$ac_exeext
! 68075: if { (ac_try="$ac_link"
! 68076: case "(($ac_try" in
! 68077: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 68078: *) ac_try_echo=$ac_try;;
! 68079: esac
! 68080: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 68081: (eval "$ac_link") 2>conftest.er1
! 68082: ac_status=$?
! 68083: grep -v '^ *+' conftest.er1 >conftest.err
! 68084: rm -f conftest.er1
! 68085: cat conftest.err >&5
! 68086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 68087: (exit $ac_status); } && {
! 68088: test -z "$ac_c_werror_flag" ||
! 68089: test ! -s conftest.err
! 68090: } && test -s conftest$ac_exeext &&
! 68091: $as_test_x conftest$ac_exeext; then
1.1 misho 68092: ac_cv_lib_gds_isc_detach_database=yes
68093: else
1.1.1.3 ! misho 68094: echo "$as_me: failed program was:" >&5
! 68095: sed 's/^/| /' conftest.$ac_ext >&5
! 68096:
! 68097: ac_cv_lib_gds_isc_detach_database=no
1.1 misho 68098: fi
1.1.1.3 ! misho 68099:
! 68100: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 68101: conftest$ac_exeext conftest.$ac_ext
1.1 misho 68102: LIBS=$ac_check_lib_save_LIBS
68103: fi
1.1.1.3 ! misho 68104: { echo "$as_me:$LINENO: result: $ac_cv_lib_gds_isc_detach_database" >&5
! 68105: echo "${ECHO_T}$ac_cv_lib_gds_isc_detach_database" >&6; }
! 68106: if test $ac_cv_lib_gds_isc_detach_database = yes; then
1.1 misho 68107:
68108: LDFLAGS=$save_old_LDFLAGS
68109: ext_shared=$save_ext_shared
68110:
68111: IBASE_LIBNAME=gds
68112:
68113:
68114: else
68115:
68116: LDFLAGS=$save_old_LDFLAGS
68117: ext_shared=$save_ext_shared
68118: unset ac_cv_lib_gds_isc_detach_database
68119:
68120:
68121: save_old_LDFLAGS=$LDFLAGS
68122: ac_stuff="
68123: -L$IBASE_LIBDIR
68124: "
68125:
68126: save_ext_shared=$ext_shared
68127: ext_shared=yes
68128:
68129: for ac_i in $ac_stuff; do
68130: case $ac_i in
68131: -pthread)
68132: if test "$ext_shared" = "yes"; then
68133: LDFLAGS="$LDFLAGS -pthread"
68134: else
68135:
68136:
68137: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
68138:
68139: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
68140: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68141: eval "EXTRA_LDFLAGS$unique=set"
68142: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
68143: fi
68144:
68145: fi
68146: ;;
68147: -l*)
68148: ac_ii=`echo $ac_i|cut -c 3-`
68149:
68150:
68151: case $ac_ii in
68152: c|c_r|pthread*) ;;
68153: *)
68154: if test "$ext_shared" = "yes"; then
68155: LDFLAGS="$LDFLAGS -l$ac_ii"
68156: else
68157:
68158:
68159: case $ac_ii in
68160: c|c_r|pthread*) ;;
68161: *)
68162: LIBS="$LIBS -l$ac_ii"
68163: ;;
68164: esac
68165:
68166:
68167: fi
68168: ;;
68169: esac
68170:
68171:
68172: ;;
68173: -L*)
68174: ac_ii=`echo $ac_i|cut -c 3-`
68175:
68176: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
68177:
68178: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68179: ai_p=$ac_ii
68180: else
68181:
68182: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68183:
68184: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68185: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68186: fi
68187:
68188:
68189: if test "$ext_shared" = "yes"; then
68190: LDFLAGS="-L$ai_p $LDFLAGS"
68191: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
68192: else
68193:
68194:
68195:
68196: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68197:
68198: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68199: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68200: eval "LIBPATH$unique=set"
68201:
68202: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68203: LDFLAGS="$LDFLAGS -L$ai_p"
68204: PHP_RPATHS="$PHP_RPATHS $ai_p"
68205:
68206: fi
68207:
68208:
68209: fi
68210:
68211: fi
68212:
68213: ;;
68214: esac
68215: done
68216:
1.1.1.3 ! misho 68217: { echo "$as_me:$LINENO: checking for isc_detach_database in -lib_util" >&5
! 68218: echo $ECHO_N "checking for isc_detach_database in -lib_util... $ECHO_C" >&6; }
! 68219: if test "${ac_cv_lib_ib_util_isc_detach_database+set}" = set; then
! 68220: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 68221: else
68222: ac_check_lib_save_LIBS=$LIBS
68223: LIBS="-lib_util $LIBS"
1.1.1.3 ! misho 68224: cat >conftest.$ac_ext <<_ACEOF
! 68225: /* confdefs.h. */
! 68226: _ACEOF
! 68227: cat confdefs.h >>conftest.$ac_ext
! 68228: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 68229: /* end confdefs.h. */
68230:
68231: /* Override any GCC internal prototype to avoid an error.
68232: Use char because int might match the return type of a GCC
68233: builtin and then its argument prototype would still apply. */
68234: #ifdef __cplusplus
68235: extern "C"
68236: #endif
68237: char isc_detach_database ();
68238: int
68239: main ()
68240: {
68241: return isc_detach_database ();
68242: ;
68243: return 0;
68244: }
68245: _ACEOF
1.1.1.3 ! misho 68246: rm -f conftest.$ac_objext conftest$ac_exeext
! 68247: if { (ac_try="$ac_link"
! 68248: case "(($ac_try" in
! 68249: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 68250: *) ac_try_echo=$ac_try;;
! 68251: esac
! 68252: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 68253: (eval "$ac_link") 2>conftest.er1
! 68254: ac_status=$?
! 68255: grep -v '^ *+' conftest.er1 >conftest.err
! 68256: rm -f conftest.er1
! 68257: cat conftest.err >&5
! 68258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 68259: (exit $ac_status); } && {
! 68260: test -z "$ac_c_werror_flag" ||
! 68261: test ! -s conftest.err
! 68262: } && test -s conftest$ac_exeext &&
! 68263: $as_test_x conftest$ac_exeext; then
1.1 misho 68264: ac_cv_lib_ib_util_isc_detach_database=yes
68265: else
1.1.1.3 ! misho 68266: echo "$as_me: failed program was:" >&5
! 68267: sed 's/^/| /' conftest.$ac_ext >&5
! 68268:
! 68269: ac_cv_lib_ib_util_isc_detach_database=no
1.1 misho 68270: fi
1.1.1.3 ! misho 68271:
! 68272: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 68273: conftest$ac_exeext conftest.$ac_ext
1.1 misho 68274: LIBS=$ac_check_lib_save_LIBS
68275: fi
1.1.1.3 ! misho 68276: { echo "$as_me:$LINENO: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
! 68277: echo "${ECHO_T}$ac_cv_lib_ib_util_isc_detach_database" >&6; }
! 68278: if test $ac_cv_lib_ib_util_isc_detach_database = yes; then
1.1 misho 68279:
68280: LDFLAGS=$save_old_LDFLAGS
68281: ext_shared=$save_ext_shared
68282:
68283: IBASE_LIBNAME=ib_util
68284:
68285:
68286: else
68287:
68288: LDFLAGS=$save_old_LDFLAGS
68289: ext_shared=$save_ext_shared
68290: unset ac_cv_lib_ib_util_isc_detach_database
68291:
1.1.1.3 ! misho 68292: { { echo "$as_me:$LINENO: error: libgds, libib_util or libfbclient not found! Check config.log for more information." >&5
! 68293: echo "$as_me: error: libgds, libib_util or libfbclient not found! Check config.log for more information." >&2;}
! 68294: { (exit 1); exit 1; }; }
1.1 misho 68295:
68296:
68297: fi
68298:
68299:
68300:
68301: fi
68302:
68303:
68304:
68305: fi
68306:
68307:
68308:
68309:
68310: if test "$ext_shared" = "yes"; then
68311: INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD"
68312: if test -n "$IBASE_LIBDIR"; then
68313:
68314: if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
68315:
68316: if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
68317: ai_p=$IBASE_LIBDIR
68318: else
68319:
68320: ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68321:
68322: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68323: ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
68324: fi
68325:
68326:
68327: if test "$ext_shared" = "yes"; then
68328: INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
68329: test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
68330: else
68331:
68332:
68333:
68334: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68335:
68336: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68337: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68338: eval "LIBPATH$unique=set"
68339:
68340: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68341: LDFLAGS="$LDFLAGS -L$ai_p"
68342: PHP_RPATHS="$PHP_RPATHS $ai_p"
68343:
68344: fi
68345:
68346:
68347: fi
68348:
68349: fi
68350:
68351: fi
68352: else
68353:
68354:
68355: if test -n "$IBASE_LIBDIR"; then
68356:
68357: if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
68358:
68359: if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
68360: ai_p=$IBASE_LIBDIR
68361: else
68362:
68363: ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68364:
68365: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68366: ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
68367: fi
68368:
68369:
68370:
68371:
68372:
68373: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68374:
68375: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68376: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68377: eval "LIBPATH$unique=set"
68378:
68379: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68380: LDFLAGS="$LDFLAGS -L$ai_p"
68381: PHP_RPATHS="$PHP_RPATHS $ai_p"
68382:
68383: fi
68384:
68385:
68386:
68387: fi
68388:
68389: fi
68390:
68391:
68392: case $IBASE_LIBNAME in
68393: c|c_r|pthread*) ;;
68394: *)
68395: LIBS="-l$IBASE_LIBNAME $LIBS"
68396: ;;
68397: esac
68398:
68399:
68400:
68401:
68402: fi
68403:
68404:
68405:
68406: if test "$IBASE_INCDIR" != "/usr/include"; then
68407:
68408: if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then
68409: ai_p=$IBASE_INCDIR
68410: else
68411:
68412: ep_dir="`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68413:
68414: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68415: ai_p="$ep_realdir/`basename \"$IBASE_INCDIR\"`"
68416: fi
68417:
68418:
68419:
68420: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68421:
68422: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68423: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68424: eval "INCLUDEPATH$unique=set"
68425:
68426: if test ""; then
68427: INCLUDES="-I$ai_p $INCLUDES"
68428: else
68429: INCLUDES="$INCLUDES -I$ai_p"
68430: fi
68431:
68432: fi
68433:
68434: fi
68435:
68436:
1.1.1.3 ! misho 68437: cat >>confdefs.h <<\_ACEOF
! 68438: #define HAVE_IBASE 1
! 68439: _ACEOF
1.1 misho 68440:
68441:
68442: ext_builddir=ext/interbase
68443: ext_srcdir=$abs_srcdir/ext/interbase
68444:
68445: ac_extra=
68446:
68447: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
68448: PHP_INTERBASE_SHARED=no
68449:
68450:
68451: case ext/interbase in
68452: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68453: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68454: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68455: esac
68456:
68457:
68458:
68459: b_c_pre=$php_c_pre
68460: b_cxx_pre=$php_cxx_pre
68461: b_c_meta=$php_c_meta
68462: b_cxx_meta=$php_cxx_meta
68463: b_c_post=$php_c_post
68464: b_cxx_post=$php_cxx_post
68465: b_lo=$php_lo
68466:
68467:
68468: old_IFS=$IFS
68469: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68470:
68471: IFS=.
68472: set $ac_src
68473: ac_obj=$1
68474: IFS=$old_IFS
68475:
68476: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68477:
68478: case $ac_src in
68479: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68480: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68481: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68482: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68483: esac
68484:
68485: cat >>Makefile.objects<<EOF
68486: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68487: $ac_comp
68488: EOF
68489: done
68490:
68491:
68492: EXT_STATIC="$EXT_STATIC interbase"
68493: if test "$ext_shared" != "nocli"; then
68494: EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
68495: fi
68496: else
68497: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
68498: PHP_INTERBASE_SHARED=yes
68499:
68500: case ext/interbase in
68501: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68502: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68503: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68504: esac
68505:
68506:
68507:
68508: b_c_pre=$shared_c_pre
68509: b_cxx_pre=$shared_cxx_pre
68510: b_c_meta=$shared_c_meta
68511: b_cxx_meta=$shared_cxx_meta
68512: b_c_post=$shared_c_post
68513: b_cxx_post=$shared_cxx_post
68514: b_lo=$shared_lo
68515:
68516:
68517: old_IFS=$IFS
68518: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68519:
68520: IFS=.
68521: set $ac_src
68522: ac_obj=$1
68523: IFS=$old_IFS
68524:
68525: shared_objects_interbase="$shared_objects_interbase $ac_bdir$ac_obj.lo"
68526:
68527: case $ac_src in
68528: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68529: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68530: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68531: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68532: esac
68533:
68534: cat >>Makefile.objects<<EOF
68535: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68536: $ac_comp
68537: EOF
68538: done
68539:
68540: case $host_alias in
68541: *netware*)
68542:
68543: install_modules="install-modules"
68544:
68545: case $host_alias in
68546: *aix*)
68547: suffix=so
68548: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpinterbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(PHPINTERBASE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpinterbase.so '$ext_builddir'/phpinterbase.so'
68549: ;;
68550: *netware*)
68551: suffix=nlm
68552: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) -L$(top_builddir)/netware -lphp5lib $(INTERBASE_SHARED_LIBADD)'
68553: ;;
68554: *)
68555: suffix=la
68556: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(PHPINTERBASE_SHARED_LIBADD)'
68557: ;;
68558: esac
68559:
68560: if test "x" = "xyes"; then
68561: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpinterbase.$suffix"
68562: else
68563: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpinterbase.$suffix"
68564: fi
68565:
68566: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
68567:
68568: cat >>Makefile.objects<<EOF
68569: \$(phplibdir)/phpinterbase.$suffix: $ext_builddir/phpinterbase.$suffix
68570: \$(LIBTOOL) --mode=install cp $ext_builddir/phpinterbase.$suffix \$(phplibdir)
68571:
68572: $ext_builddir/phpinterbase.$suffix: \$(shared_objects_interbase) \$(PHPINTERBASE_SHARED_DEPENDENCIES)
68573: $link_cmd
68574:
68575: EOF
68576:
68577: ;;
68578: *)
68579:
68580: install_modules="install-modules"
68581:
68582: case $host_alias in
68583: *aix*)
68584: suffix=so
68585: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/interbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(INTERBASE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/interbase.so '$ext_builddir'/interbase.so'
68586: ;;
68587: *netware*)
68588: suffix=nlm
68589: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) -L$(top_builddir)/netware -lphp5lib $(ERBASE_SHARED_LIBADD)'
68590: ;;
68591: *)
68592: suffix=la
68593: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(INTERBASE_SHARED_LIBADD)'
68594: ;;
68595: esac
68596:
68597: if test "x" = "xyes"; then
68598: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/interbase.$suffix"
68599: else
68600: PHP_MODULES="$PHP_MODULES \$(phplibdir)/interbase.$suffix"
68601: fi
68602:
68603: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
68604:
68605: cat >>Makefile.objects<<EOF
68606: \$(phplibdir)/interbase.$suffix: $ext_builddir/interbase.$suffix
68607: \$(LIBTOOL) --mode=install cp $ext_builddir/interbase.$suffix \$(phplibdir)
68608:
68609: $ext_builddir/interbase.$suffix: \$(shared_objects_interbase) \$(INTERBASE_SHARED_DEPENDENCIES)
68610: $link_cmd
68611:
68612: EOF
68613:
68614: ;;
68615: esac
68616:
68617: cat >>confdefs.h <<_ACEOF
68618: #define COMPILE_DL_INTERBASE 1
68619: _ACEOF
68620:
68621: fi
68622: fi
68623:
68624: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
68625: PHP_INTERBASE_SHARED=no
1.1.1.3 ! misho 68626: case "$PHP_SAPI" in
! 68627: cgi|embed)
1.1 misho 68628:
68629:
68630: case ext/interbase in
68631: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68632: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68633: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68634: esac
68635:
68636:
68637:
68638: b_c_pre=$php_c_pre
68639: b_cxx_pre=$php_cxx_pre
68640: b_c_meta=$php_c_meta
68641: b_cxx_meta=$php_cxx_meta
68642: b_c_post=$php_c_post
68643: b_cxx_post=$php_cxx_post
68644: b_lo=$php_lo
68645:
68646:
68647: old_IFS=$IFS
68648: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68649:
68650: IFS=.
68651: set $ac_src
68652: ac_obj=$1
68653: IFS=$old_IFS
68654:
1.1.1.2 misho 68655: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 68656:
68657: case $ac_src in
68658: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68659: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68660: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68661: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68662: esac
68663:
68664: cat >>Makefile.objects<<EOF
68665: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68666: $ac_comp
68667: EOF
68668: done
68669:
68670:
1.1.1.3 ! misho 68671: EXT_STATIC="$EXT_STATIC interbase"
! 68672: ;;
! 68673: *)
1.1 misho 68674:
68675:
68676: case ext/interbase in
68677: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68678: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68679: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68680: esac
68681:
68682:
68683:
68684: b_c_pre=$php_c_pre
68685: b_cxx_pre=$php_cxx_pre
68686: b_c_meta=$php_c_meta
68687: b_cxx_meta=$php_cxx_meta
68688: b_c_post=$php_c_post
68689: b_cxx_post=$php_cxx_post
68690: b_lo=$php_lo
68691:
68692:
68693: old_IFS=$IFS
68694: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68695:
68696: IFS=.
68697: set $ac_src
68698: ac_obj=$1
68699: IFS=$old_IFS
68700:
1.1.1.2 misho 68701: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 68702:
68703: case $ac_src in
68704: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68705: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68706: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68707: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68708: esac
68709:
68710: cat >>Makefile.objects<<EOF
68711: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68712: $ac_comp
68713: EOF
68714: done
68715:
68716:
1.1.1.3 ! misho 68717: ;;
! 68718: esac
1.1 misho 68719: EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
68720: fi
68721:
68722:
68723: BUILD_DIR="$BUILD_DIR $ext_builddir"
68724:
68725:
68726:
68727: if test "$ext_builddir" = "."; then
68728: PHP_PECL_EXTENSION=interbase
68729:
68730: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
68731:
68732: fi
68733:
68734:
68735: PHP_VAR_SUBST="$PHP_VAR_SUBST INTERBASE_SHARED_LIBADD"
68736:
68737: fi
68738:
68739:
68740:
68741: php_enable_intl=no
68742:
1.1.1.3 ! misho 68743: { echo "$as_me:$LINENO: checking whether to enable internationalization support" >&5
! 68744: echo $ECHO_N "checking whether to enable internationalization support... $ECHO_C" >&6; }
1.1 misho 68745: # Check whether --enable-intl was given.
1.1.1.3 ! misho 68746: if test "${enable_intl+set}" = set; then
1.1 misho 68747: enableval=$enable_intl; PHP_INTL=$enableval
68748: else
68749:
68750: PHP_INTL=no
68751: test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL
68752:
68753: fi
68754:
68755:
68756:
68757: ext_output="yes, shared"
68758: ext_shared=yes
68759: case $PHP_INTL in
68760: shared,*)
68761: PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'`
68762: ;;
68763: shared)
68764: PHP_INTL=yes
68765: ;;
68766: no)
68767: ext_output=no
68768: ext_shared=no
68769: ;;
68770: *)
68771: ext_output=yes
68772: ext_shared=no
68773: ;;
68774: esac
68775:
68776:
68777:
1.1.1.3 ! misho 68778: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 68779: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 68780:
68781:
68782:
68783:
68784: if test "$PHP_INTL" != "no"; then
68785:
68786:
68787: php_with_icu_dir=DEFAULT
68788:
68789:
68790:
68791: # Check whether --with-icu-dir was given.
1.1.1.3 ! misho 68792: if test "${with_icu_dir+set}" = set; then
1.1 misho 68793: withval=$with_icu_dir; PHP_ICU_DIR=$withval
68794: else
68795:
68796: PHP_ICU_DIR=DEFAULT
68797:
68798:
68799: fi
68800:
68801:
68802: ext_output=$PHP_ICU_DIR
68803:
68804:
68805:
68806:
68807:
68808: if test "$PHP_ICU_DIR" = "no"; then
68809: PHP_ICU_DIR=DEFAULT
68810: fi
68811:
68812: if test "$PHP_ICU_DIR" = "DEFAULT"; then
68813: # Extract the first word of "icu-config", so it can be a program name with args.
68814: set dummy icu-config; ac_word=$2
1.1.1.3 ! misho 68815: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 68816: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 68817: if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
! 68818: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 68819: else
68820: case $ICU_CONFIG in
68821: [\\/]* | ?:[\\/]*)
68822: ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
68823: ;;
68824: *)
68825: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68826: as_dummy="$PATH:/usr/local/bin"
68827: for as_dir in $as_dummy
68828: do
68829: IFS=$as_save_IFS
68830: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 68831: for ac_exec_ext in '' $ac_executable_extensions; do
! 68832: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 68833: ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 68834: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 68835: break 2
68836: fi
68837: done
1.1.1.3 ! misho 68838: done
1.1 misho 68839: IFS=$as_save_IFS
68840:
68841: test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
68842: ;;
68843: esac
68844: fi
68845: ICU_CONFIG=$ac_cv_path_ICU_CONFIG
68846: if test -n "$ICU_CONFIG"; then
1.1.1.3 ! misho 68847: { echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
! 68848: echo "${ECHO_T}$ICU_CONFIG" >&6; }
1.1 misho 68849: else
1.1.1.3 ! misho 68850: { echo "$as_me:$LINENO: result: no" >&5
! 68851: echo "${ECHO_T}no" >&6; }
1.1 misho 68852: fi
68853:
68854:
68855: else
68856: ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
68857: fi
68858:
1.1.1.3 ! misho 68859: { echo "$as_me:$LINENO: checking for location of ICU headers and libraries" >&5
! 68860: echo $ECHO_N "checking for location of ICU headers and libraries... $ECHO_C" >&6; }
1.1 misho 68861:
68862: icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
68863: if test "$?" != "0" || test -z "$icu_install_prefix"; then
1.1.1.3 ! misho 68864: { echo "$as_me:$LINENO: result: not found" >&5
! 68865: echo "${ECHO_T}not found" >&6; }
! 68866: { { echo "$as_me:$LINENO: error: Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." >&5
! 68867: echo "$as_me: error: Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." >&2;}
! 68868: { (exit 1); exit 1; }; }
1.1 misho 68869: else
1.1.1.3 ! misho 68870: { echo "$as_me:$LINENO: result: $icu_install_prefix" >&5
! 68871: echo "${ECHO_T}$icu_install_prefix" >&6; }
1.1 misho 68872:
1.1.1.3 ! misho 68873: { echo "$as_me:$LINENO: checking for ICU 3.4 or greater" >&5
! 68874: echo $ECHO_N "checking for ICU 3.4 or greater... $ECHO_C" >&6; }
1.1 misho 68875: icu_version_full=`$ICU_CONFIG --version`
68876: ac_IFS=$IFS
68877: IFS="."
68878: set $icu_version_full
68879: IFS=$ac_IFS
68880: icu_version=`expr $1 \* 1000 + $2`
1.1.1.3 ! misho 68881: { echo "$as_me:$LINENO: result: found $icu_version_full" >&5
! 68882: echo "${ECHO_T}found $icu_version_full" >&6; }
1.1 misho 68883:
68884: if test "$icu_version" -lt "3004"; then
1.1.1.3 ! misho 68885: { { echo "$as_me:$LINENO: error: ICU version 3.4 or later is required" >&5
! 68886: echo "$as_me: error: ICU version 3.4 or later is required" >&2;}
! 68887: { (exit 1); exit 1; }; }
1.1 misho 68888: fi
68889:
68890: ICU_VERSION=$icu_version
68891: ICU_INCS=`$ICU_CONFIG --cppflags-searchpath`
68892: ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio`
68893:
68894: for ac_i in $ICU_INCS; do
68895: case $ac_i in
68896: -I*)
68897: ac_ii=`echo $ac_i|cut -c 3-`
68898:
68899: if test "$ac_ii" != "/usr/include"; then
68900:
68901: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68902: ai_p=$ac_ii
68903: else
68904:
68905: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68906:
68907: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68908: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68909: fi
68910:
68911:
68912:
68913: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68914:
68915: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68916: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68917: eval "INCLUDEPATH$unique=set"
68918:
68919: if test ""; then
68920: INCLUDES="-I$ai_p $INCLUDES"
68921: else
68922: INCLUDES="$INCLUDES -I$ai_p"
68923: fi
68924:
68925: fi
68926:
68927: fi
68928:
68929: ;;
68930: esac
68931: done
68932:
68933:
68934: for ac_i in $ICU_LIBS; do
68935: case $ac_i in
68936: -pthread)
68937: if test "$ext_shared" = "yes"; then
68938: INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
68939: else
68940:
68941:
68942: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
68943:
68944: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
68945: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68946: eval "EXTRA_LDFLAGS$unique=set"
68947: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
68948: fi
68949:
68950: fi
68951: ;;
68952: -l*)
68953: ac_ii=`echo $ac_i|cut -c 3-`
68954:
68955:
68956: case $ac_ii in
68957: c|c_r|pthread*) ;;
68958: *)
68959: if test "$ext_shared" = "yes"; then
68960: INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii"
68961: else
68962:
68963:
68964: case $ac_ii in
68965: c|c_r|pthread*) ;;
68966: *)
68967: LIBS="$LIBS -l$ac_ii"
68968: ;;
68969: esac
68970:
68971:
68972: fi
68973: ;;
68974: esac
68975:
68976:
68977: ;;
68978: -L*)
68979: ac_ii=`echo $ac_i|cut -c 3-`
68980:
68981: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
68982:
68983: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68984: ai_p=$ac_ii
68985: else
68986:
68987: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68988:
68989: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68990: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68991: fi
68992:
68993:
68994: if test "$ext_shared" = "yes"; then
68995: INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
68996: test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
68997: else
68998:
68999:
69000:
69001: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69002:
69003: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69004: if test -n "$unique" && test "`eval $cmd`" = "" ; then
69005: eval "LIBPATH$unique=set"
69006:
69007: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69008: LDFLAGS="$LDFLAGS -L$ai_p"
69009: PHP_RPATHS="$PHP_RPATHS $ai_p"
69010:
69011: fi
69012:
69013:
69014: fi
69015:
69016: fi
69017:
69018: ;;
69019: esac
69020: done
69021:
69022: fi
69023:
69024:
69025: PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD"
69026:
69027:
69028: if test -z "$php_cxx_done"; then
69029: ac_ext=cpp
69030: ac_cpp='$CXXCPP $CPPFLAGS'
69031: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69032: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69033: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
69034: if test -z "$CXX"; then
69035: if test -n "$CCC"; then
69036: CXX=$CCC
69037: else
69038: if test -n "$ac_tool_prefix"; then
69039: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
69040: do
69041: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
69042: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.3 ! misho 69043: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 69044: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 69045: if test "${ac_cv_prog_CXX+set}" = set; then
! 69046: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 69047: else
69048: if test -n "$CXX"; then
69049: ac_cv_prog_CXX="$CXX" # Let the user override the test.
69050: else
69051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69052: for as_dir in $PATH
69053: do
69054: IFS=$as_save_IFS
69055: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 69056: for ac_exec_ext in '' $ac_executable_extensions; do
! 69057: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 69058: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.1.1.3 ! misho 69059: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 69060: break 2
69061: fi
69062: done
1.1.1.3 ! misho 69063: done
1.1 misho 69064: IFS=$as_save_IFS
69065:
69066: fi
69067: fi
69068: CXX=$ac_cv_prog_CXX
69069: if test -n "$CXX"; then
1.1.1.3 ! misho 69070: { echo "$as_me:$LINENO: result: $CXX" >&5
! 69071: echo "${ECHO_T}$CXX" >&6; }
1.1 misho 69072: else
1.1.1.3 ! misho 69073: { echo "$as_me:$LINENO: result: no" >&5
! 69074: echo "${ECHO_T}no" >&6; }
1.1 misho 69075: fi
69076:
69077:
69078: test -n "$CXX" && break
69079: done
69080: fi
69081: if test -z "$CXX"; then
69082: ac_ct_CXX=$CXX
69083: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
69084: do
69085: # Extract the first word of "$ac_prog", so it can be a program name with args.
69086: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 69087: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 69088: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 69089: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 69090: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 69091: else
69092: if test -n "$ac_ct_CXX"; then
69093: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
69094: else
69095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69096: for as_dir in $PATH
69097: do
69098: IFS=$as_save_IFS
69099: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 69100: for ac_exec_ext in '' $ac_executable_extensions; do
! 69101: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 69102: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.1.1.3 ! misho 69103: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 69104: break 2
69105: fi
69106: done
1.1.1.3 ! misho 69107: done
1.1 misho 69108: IFS=$as_save_IFS
69109:
69110: fi
69111: fi
69112: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
69113: if test -n "$ac_ct_CXX"; then
1.1.1.3 ! misho 69114: { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 69115: echo "${ECHO_T}$ac_ct_CXX" >&6; }
1.1 misho 69116: else
1.1.1.3 ! misho 69117: { echo "$as_me:$LINENO: result: no" >&5
! 69118: echo "${ECHO_T}no" >&6; }
1.1 misho 69119: fi
69120:
69121:
69122: test -n "$ac_ct_CXX" && break
69123: done
69124:
69125: if test "x$ac_ct_CXX" = x; then
69126: CXX="g++"
69127: else
69128: case $cross_compiling:$ac_tool_warned in
69129: yes:)
1.1.1.3 ! misho 69130: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 69131: whose name does not start with the host triplet. If you think this
! 69132: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 69133: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 69134: whose name does not start with the host triplet. If you think this
! 69135: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 69136: ac_tool_warned=yes ;;
69137: esac
69138: CXX=$ac_ct_CXX
69139: fi
69140: fi
69141:
69142: fi
69143: fi
69144: # Provide some information about the compiler.
1.1.1.3 ! misho 69145: echo "$as_me:$LINENO: checking for C++ compiler version" >&5
! 69146: ac_compiler=`set X $ac_compile; echo $2`
! 69147: { (ac_try="$ac_compiler --version >&5"
1.1 misho 69148: case "(($ac_try" in
69149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69150: *) ac_try_echo=$ac_try;;
69151: esac
1.1.1.3 ! misho 69152: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69153: (eval "$ac_compiler --version >&5") 2>&5
1.1 misho 69154: ac_status=$?
1.1.1.3 ! misho 69155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69156: (exit $ac_status); }
! 69157: { (ac_try="$ac_compiler -v >&5"
! 69158: case "(($ac_try" in
! 69159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69160: *) ac_try_echo=$ac_try;;
! 69161: esac
! 69162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69163: (eval "$ac_compiler -v >&5") 2>&5
! 69164: ac_status=$?
! 69165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69166: (exit $ac_status); }
! 69167: { (ac_try="$ac_compiler -V >&5"
! 69168: case "(($ac_try" in
! 69169: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69170: *) ac_try_echo=$ac_try;;
! 69171: esac
! 69172: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69173: (eval "$ac_compiler -V >&5") 2>&5
! 69174: ac_status=$?
! 69175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69176: (exit $ac_status); }
1.1 misho 69177:
1.1.1.3 ! misho 69178: { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 69179: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
! 69180: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 69181: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 69182: else
1.1.1.3 ! misho 69183: cat >conftest.$ac_ext <<_ACEOF
! 69184: /* confdefs.h. */
! 69185: _ACEOF
! 69186: cat confdefs.h >>conftest.$ac_ext
! 69187: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69188: /* end confdefs.h. */
69189:
69190: int
69191: main ()
69192: {
69193: #ifndef __GNUC__
69194: choke me
69195: #endif
69196:
69197: ;
69198: return 0;
69199: }
69200: _ACEOF
1.1.1.3 ! misho 69201: rm -f conftest.$ac_objext
! 69202: if { (ac_try="$ac_compile"
! 69203: case "(($ac_try" in
! 69204: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69205: *) ac_try_echo=$ac_try;;
! 69206: esac
! 69207: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69208: (eval "$ac_compile") 2>conftest.er1
! 69209: ac_status=$?
! 69210: grep -v '^ *+' conftest.er1 >conftest.err
! 69211: rm -f conftest.er1
! 69212: cat conftest.err >&5
! 69213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69214: (exit $ac_status); } && {
! 69215: test -z "$ac_cxx_werror_flag" ||
! 69216: test ! -s conftest.err
! 69217: } && test -s conftest.$ac_objext; then
1.1 misho 69218: ac_compiler_gnu=yes
69219: else
1.1.1.3 ! misho 69220: echo "$as_me: failed program was:" >&5
! 69221: sed 's/^/| /' conftest.$ac_ext >&5
! 69222:
! 69223: ac_compiler_gnu=no
1.1 misho 69224: fi
1.1.1.3 ! misho 69225:
1.1 misho 69226: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69227: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
69228:
69229: fi
1.1.1.3 ! misho 69230: { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 69231: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
! 69232: GXX=`test $ac_compiler_gnu = yes && echo yes`
1.1 misho 69233: ac_test_CXXFLAGS=${CXXFLAGS+set}
69234: ac_save_CXXFLAGS=$CXXFLAGS
1.1.1.3 ! misho 69235: { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 69236: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
! 69237: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 69238: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 69239: else
69240: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
69241: ac_cxx_werror_flag=yes
69242: ac_cv_prog_cxx_g=no
69243: CXXFLAGS="-g"
1.1.1.3 ! misho 69244: cat >conftest.$ac_ext <<_ACEOF
! 69245: /* confdefs.h. */
! 69246: _ACEOF
! 69247: cat confdefs.h >>conftest.$ac_ext
! 69248: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69249: /* end confdefs.h. */
69250:
69251: int
69252: main ()
69253: {
69254:
69255: ;
69256: return 0;
69257: }
69258: _ACEOF
1.1.1.3 ! misho 69259: rm -f conftest.$ac_objext
! 69260: if { (ac_try="$ac_compile"
! 69261: case "(($ac_try" in
! 69262: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69263: *) ac_try_echo=$ac_try;;
! 69264: esac
! 69265: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69266: (eval "$ac_compile") 2>conftest.er1
! 69267: ac_status=$?
! 69268: grep -v '^ *+' conftest.er1 >conftest.err
! 69269: rm -f conftest.er1
! 69270: cat conftest.err >&5
! 69271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69272: (exit $ac_status); } && {
! 69273: test -z "$ac_cxx_werror_flag" ||
! 69274: test ! -s conftest.err
! 69275: } && test -s conftest.$ac_objext; then
1.1 misho 69276: ac_cv_prog_cxx_g=yes
69277: else
1.1.1.3 ! misho 69278: echo "$as_me: failed program was:" >&5
! 69279: sed 's/^/| /' conftest.$ac_ext >&5
! 69280:
! 69281: CXXFLAGS=""
! 69282: cat >conftest.$ac_ext <<_ACEOF
! 69283: /* confdefs.h. */
! 69284: _ACEOF
! 69285: cat confdefs.h >>conftest.$ac_ext
! 69286: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69287: /* end confdefs.h. */
69288:
69289: int
69290: main ()
69291: {
69292:
69293: ;
69294: return 0;
69295: }
69296: _ACEOF
1.1.1.3 ! misho 69297: rm -f conftest.$ac_objext
! 69298: if { (ac_try="$ac_compile"
! 69299: case "(($ac_try" in
! 69300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69301: *) ac_try_echo=$ac_try;;
! 69302: esac
! 69303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69304: (eval "$ac_compile") 2>conftest.er1
! 69305: ac_status=$?
! 69306: grep -v '^ *+' conftest.er1 >conftest.err
! 69307: rm -f conftest.er1
! 69308: cat conftest.err >&5
! 69309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69310: (exit $ac_status); } && {
! 69311: test -z "$ac_cxx_werror_flag" ||
! 69312: test ! -s conftest.err
! 69313: } && test -s conftest.$ac_objext; then
! 69314: :
1.1 misho 69315: else
1.1.1.3 ! misho 69316: echo "$as_me: failed program was:" >&5
! 69317: sed 's/^/| /' conftest.$ac_ext >&5
! 69318:
! 69319: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1.1 misho 69320: CXXFLAGS="-g"
1.1.1.3 ! misho 69321: cat >conftest.$ac_ext <<_ACEOF
! 69322: /* confdefs.h. */
! 69323: _ACEOF
! 69324: cat confdefs.h >>conftest.$ac_ext
! 69325: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69326: /* end confdefs.h. */
69327:
69328: int
69329: main ()
69330: {
69331:
69332: ;
69333: return 0;
69334: }
69335: _ACEOF
1.1.1.3 ! misho 69336: rm -f conftest.$ac_objext
! 69337: if { (ac_try="$ac_compile"
! 69338: case "(($ac_try" in
! 69339: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69340: *) ac_try_echo=$ac_try;;
! 69341: esac
! 69342: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69343: (eval "$ac_compile") 2>conftest.er1
! 69344: ac_status=$?
! 69345: grep -v '^ *+' conftest.er1 >conftest.err
! 69346: rm -f conftest.er1
! 69347: cat conftest.err >&5
! 69348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69349: (exit $ac_status); } && {
! 69350: test -z "$ac_cxx_werror_flag" ||
! 69351: test ! -s conftest.err
! 69352: } && test -s conftest.$ac_objext; then
1.1 misho 69353: ac_cv_prog_cxx_g=yes
1.1.1.3 ! misho 69354: else
! 69355: echo "$as_me: failed program was:" >&5
! 69356: sed 's/^/| /' conftest.$ac_ext >&5
! 69357:
! 69358:
1.1 misho 69359: fi
1.1.1.3 ! misho 69360:
1.1 misho 69361: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69362: fi
1.1.1.3 ! misho 69363:
1.1 misho 69364: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69365: fi
1.1.1.3 ! misho 69366:
1.1 misho 69367: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69368: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
69369: fi
1.1.1.3 ! misho 69370: { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 69371: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
1.1 misho 69372: if test "$ac_test_CXXFLAGS" = set; then
69373: CXXFLAGS=$ac_save_CXXFLAGS
69374: elif test $ac_cv_prog_cxx_g = yes; then
69375: if test "$GXX" = yes; then
69376: CXXFLAGS="-g -O2"
69377: else
69378: CXXFLAGS="-g"
69379: fi
69380: else
69381: if test "$GXX" = yes; then
69382: CXXFLAGS="-O2"
69383: else
69384: CXXFLAGS=
69385: fi
69386: fi
69387: ac_ext=c
69388: ac_cpp='$CPP $CPPFLAGS'
69389: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69390: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69391: ac_compiler_gnu=$ac_cv_c_compiler_gnu
69392:
69393: ac_ext=cpp
69394: ac_cpp='$CXXCPP $CPPFLAGS'
69395: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69396: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69397: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.1.3 ! misho 69398: { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 69399: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
1.1 misho 69400: if test -z "$CXXCPP"; then
1.1.1.3 ! misho 69401: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 69402: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 69403: else
69404: # Double quotes because CXXCPP needs to be expanded
69405: for CXXCPP in "$CXX -E" "/lib/cpp"
69406: do
69407: ac_preproc_ok=false
69408: for ac_cxx_preproc_warn_flag in '' yes
69409: do
69410: # Use a header file that comes with gcc, so configuring glibc
69411: # with a fresh cross-compiler works.
69412: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69413: # <limits.h> exists even on freestanding compilers.
69414: # On the NeXT, cc -E runs the code through the compiler's parser,
69415: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 69416: cat >conftest.$ac_ext <<_ACEOF
! 69417: /* confdefs.h. */
! 69418: _ACEOF
! 69419: cat confdefs.h >>conftest.$ac_ext
! 69420: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69421: /* end confdefs.h. */
69422: #ifdef __STDC__
69423: # include <limits.h>
69424: #else
69425: # include <assert.h>
69426: #endif
69427: Syntax error
69428: _ACEOF
1.1.1.3 ! misho 69429: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 69430: case "(($ac_try" in
! 69431: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69432: *) ac_try_echo=$ac_try;;
! 69433: esac
! 69434: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69435: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 69436: ac_status=$?
! 69437: grep -v '^ *+' conftest.er1 >conftest.err
! 69438: rm -f conftest.er1
! 69439: cat conftest.err >&5
! 69440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69441: (exit $ac_status); } >/dev/null && {
! 69442: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 69443: test ! -s conftest.err
! 69444: }; then
! 69445: :
1.1 misho 69446: else
1.1.1.3 ! misho 69447: echo "$as_me: failed program was:" >&5
! 69448: sed 's/^/| /' conftest.$ac_ext >&5
! 69449:
1.1 misho 69450: # Broken: fails on valid input.
69451: continue
69452: fi
1.1.1.3 ! misho 69453:
! 69454: rm -f conftest.err conftest.$ac_ext
1.1 misho 69455:
69456: # OK, works on sane cases. Now check whether nonexistent headers
69457: # can be detected and how.
1.1.1.3 ! misho 69458: cat >conftest.$ac_ext <<_ACEOF
! 69459: /* confdefs.h. */
! 69460: _ACEOF
! 69461: cat confdefs.h >>conftest.$ac_ext
! 69462: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69463: /* end confdefs.h. */
69464: #include <ac_nonexistent.h>
69465: _ACEOF
1.1.1.3 ! misho 69466: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 69467: case "(($ac_try" in
! 69468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69469: *) ac_try_echo=$ac_try;;
! 69470: esac
! 69471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69472: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 69473: ac_status=$?
! 69474: grep -v '^ *+' conftest.er1 >conftest.err
! 69475: rm -f conftest.er1
! 69476: cat conftest.err >&5
! 69477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69478: (exit $ac_status); } >/dev/null && {
! 69479: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 69480: test ! -s conftest.err
! 69481: }; then
1.1 misho 69482: # Broken: success on invalid input.
69483: continue
69484: else
1.1.1.3 ! misho 69485: echo "$as_me: failed program was:" >&5
! 69486: sed 's/^/| /' conftest.$ac_ext >&5
! 69487:
1.1 misho 69488: # Passes both tests.
69489: ac_preproc_ok=:
69490: break
69491: fi
1.1.1.3 ! misho 69492:
! 69493: rm -f conftest.err conftest.$ac_ext
1.1 misho 69494:
69495: done
69496: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 69497: rm -f conftest.err conftest.$ac_ext
! 69498: if $ac_preproc_ok; then
1.1 misho 69499: break
69500: fi
69501:
69502: done
69503: ac_cv_prog_CXXCPP=$CXXCPP
69504:
69505: fi
69506: CXXCPP=$ac_cv_prog_CXXCPP
69507: else
69508: ac_cv_prog_CXXCPP=$CXXCPP
69509: fi
1.1.1.3 ! misho 69510: { echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 69511: echo "${ECHO_T}$CXXCPP" >&6; }
1.1 misho 69512: ac_preproc_ok=false
69513: for ac_cxx_preproc_warn_flag in '' yes
69514: do
69515: # Use a header file that comes with gcc, so configuring glibc
69516: # with a fresh cross-compiler works.
69517: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69518: # <limits.h> exists even on freestanding compilers.
69519: # On the NeXT, cc -E runs the code through the compiler's parser,
69520: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 69521: cat >conftest.$ac_ext <<_ACEOF
! 69522: /* confdefs.h. */
! 69523: _ACEOF
! 69524: cat confdefs.h >>conftest.$ac_ext
! 69525: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69526: /* end confdefs.h. */
69527: #ifdef __STDC__
69528: # include <limits.h>
69529: #else
69530: # include <assert.h>
69531: #endif
69532: Syntax error
69533: _ACEOF
1.1.1.3 ! misho 69534: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 69535: case "(($ac_try" in
! 69536: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69537: *) ac_try_echo=$ac_try;;
! 69538: esac
! 69539: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69540: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 69541: ac_status=$?
! 69542: grep -v '^ *+' conftest.er1 >conftest.err
! 69543: rm -f conftest.er1
! 69544: cat conftest.err >&5
! 69545: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69546: (exit $ac_status); } >/dev/null && {
! 69547: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 69548: test ! -s conftest.err
! 69549: }; then
! 69550: :
1.1 misho 69551: else
1.1.1.3 ! misho 69552: echo "$as_me: failed program was:" >&5
! 69553: sed 's/^/| /' conftest.$ac_ext >&5
! 69554:
1.1 misho 69555: # Broken: fails on valid input.
69556: continue
69557: fi
1.1.1.3 ! misho 69558:
! 69559: rm -f conftest.err conftest.$ac_ext
1.1 misho 69560:
69561: # OK, works on sane cases. Now check whether nonexistent headers
69562: # can be detected and how.
1.1.1.3 ! misho 69563: cat >conftest.$ac_ext <<_ACEOF
! 69564: /* confdefs.h. */
! 69565: _ACEOF
! 69566: cat confdefs.h >>conftest.$ac_ext
! 69567: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 69568: /* end confdefs.h. */
69569: #include <ac_nonexistent.h>
69570: _ACEOF
1.1.1.3 ! misho 69571: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 69572: case "(($ac_try" in
! 69573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 69574: *) ac_try_echo=$ac_try;;
! 69575: esac
! 69576: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 69577: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 69578: ac_status=$?
! 69579: grep -v '^ *+' conftest.er1 >conftest.err
! 69580: rm -f conftest.er1
! 69581: cat conftest.err >&5
! 69582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 69583: (exit $ac_status); } >/dev/null && {
! 69584: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 69585: test ! -s conftest.err
! 69586: }; then
1.1 misho 69587: # Broken: success on invalid input.
69588: continue
69589: else
1.1.1.3 ! misho 69590: echo "$as_me: failed program was:" >&5
! 69591: sed 's/^/| /' conftest.$ac_ext >&5
! 69592:
1.1 misho 69593: # Passes both tests.
69594: ac_preproc_ok=:
69595: break
69596: fi
1.1.1.3 ! misho 69597:
! 69598: rm -f conftest.err conftest.$ac_ext
1.1 misho 69599:
69600: done
69601: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 69602: rm -f conftest.err conftest.$ac_ext
! 69603: if $ac_preproc_ok; then
! 69604: :
1.1 misho 69605: else
1.1.1.3 ! misho 69606: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 69607: See \`config.log' for more details." >&5
! 69608: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 69609: See \`config.log' for more details." >&2;}
! 69610: { (exit 1); exit 1; }; }
1.1 misho 69611: fi
69612:
69613: ac_ext=c
69614: ac_cpp='$CPP $CPPFLAGS'
69615: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69616: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69617: ac_compiler_gnu=$ac_cv_c_compiler_gnu
69618:
1.1.1.2 misho 69619:
69620:
69621: case stdc++ in
69622: c|c_r|pthread*) ;;
69623: *)
69624: LIBS="-lstdc++ $LIBS"
69625: ;;
69626: esac
69627:
69628:
1.1 misho 69629: php_cxx_done=yes
69630: fi
69631:
1.1.1.2 misho 69632: if test "$icu_version" -ge "4002"; then
69633: icu_spoof_src=" spoofchecker/spoofchecker_class.c \
69634: spoofchecker/spoofchecker.c\
69635: spoofchecker/spoofchecker_create.c\
69636: spoofchecker/spoofchecker_main.c"
69637: else
69638: icu_spoof_src=""
69639: fi
1.1 misho 69640:
69641: ext_builddir=ext/intl
69642: ext_srcdir=$abs_srcdir/ext/intl
69643:
69644: ac_extra=`echo "$ICU_INCS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
69645:
69646: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
69647: PHP_INTL_SHARED=no
69648:
69649:
69650: case ext/intl in
69651: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69652: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69653: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69654: esac
69655:
69656:
69657:
69658: b_c_pre=$php_c_pre
69659: b_cxx_pre=$php_cxx_pre
69660: b_c_meta=$php_c_meta
69661: b_cxx_meta=$php_cxx_meta
69662: b_c_post=$php_c_post
69663: b_cxx_post=$php_cxx_post
69664: b_lo=$php_lo
69665:
69666:
69667: old_IFS=$IFS
69668: for ac_src in php_intl.c \
69669: intl_error.c \
69670: intl_convert.c \
69671: collator/collator.c \
69672: collator/collator_class.c \
69673: collator/collator_sort.c \
69674: collator/collator_convert.c \
69675: collator/collator_locale.c \
69676: collator/collator_compare.c \
69677: collator/collator_attr.c \
69678: collator/collator_create.c \
69679: collator/collator_is_numeric.c \
69680: collator/collator_error.c \
69681: common/common_error.c \
69682: formatter/formatter.c \
69683: formatter/formatter_main.c \
69684: formatter/formatter_class.c \
69685: formatter/formatter_attr.c \
69686: formatter/formatter_data.c \
69687: formatter/formatter_format.c \
69688: formatter/formatter_parse.c \
69689: normalizer/normalizer.c \
69690: normalizer/normalizer_class.c \
69691: normalizer/normalizer_normalize.c \
69692: locale/locale.c \
69693: locale/locale_class.c \
69694: locale/locale_methods.c \
69695: dateformat/dateformat.c \
69696: dateformat/dateformat_class.c \
69697: dateformat/dateformat_attr.c \
69698: dateformat/dateformat_data.c \
69699: dateformat/dateformat_format.c \
69700: dateformat/dateformat_parse.c \
69701: msgformat/msgformat.c \
69702: msgformat/msgformat_attr.c \
69703: msgformat/msgformat_class.c \
69704: msgformat/msgformat_data.c \
69705: msgformat/msgformat_format.c \
69706: msgformat/msgformat_helpers.cpp \
69707: msgformat/msgformat_parse.c \
69708: grapheme/grapheme_string.c \
69709: grapheme/grapheme_util.c \
69710: resourcebundle/resourcebundle.c \
69711: resourcebundle/resourcebundle_class.c \
69712: resourcebundle/resourcebundle_iterator.c \
1.1.1.2 misho 69713: transliterator/transliterator.c \
69714: transliterator/transliterator_class.c \
69715: transliterator/transliterator_methods.c \
69716: idn/idn.c \
69717: $icu_spoof_src; do
1.1 misho 69718:
69719: IFS=.
69720: set $ac_src
69721: ac_obj=$1
69722: IFS=$old_IFS
69723:
69724: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69725:
69726: case $ac_src in
69727: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69728: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69729: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69730: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69731: esac
69732:
69733: cat >>Makefile.objects<<EOF
69734: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69735: $ac_comp
69736: EOF
69737: done
69738:
69739:
69740: EXT_STATIC="$EXT_STATIC intl"
69741: if test "$ext_shared" != "nocli"; then
69742: EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
69743: fi
69744: else
69745: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
69746: PHP_INTL_SHARED=yes
69747:
69748: case ext/intl in
69749: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69750: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69751: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69752: esac
69753:
69754:
69755:
69756: b_c_pre=$shared_c_pre
69757: b_cxx_pre=$shared_cxx_pre
69758: b_c_meta=$shared_c_meta
69759: b_cxx_meta=$shared_cxx_meta
69760: b_c_post=$shared_c_post
69761: b_cxx_post=$shared_cxx_post
69762: b_lo=$shared_lo
69763:
69764:
69765: old_IFS=$IFS
69766: for ac_src in php_intl.c \
69767: intl_error.c \
69768: intl_convert.c \
69769: collator/collator.c \
69770: collator/collator_class.c \
69771: collator/collator_sort.c \
69772: collator/collator_convert.c \
69773: collator/collator_locale.c \
69774: collator/collator_compare.c \
69775: collator/collator_attr.c \
69776: collator/collator_create.c \
69777: collator/collator_is_numeric.c \
69778: collator/collator_error.c \
69779: common/common_error.c \
69780: formatter/formatter.c \
69781: formatter/formatter_main.c \
69782: formatter/formatter_class.c \
69783: formatter/formatter_attr.c \
69784: formatter/formatter_data.c \
69785: formatter/formatter_format.c \
69786: formatter/formatter_parse.c \
69787: normalizer/normalizer.c \
69788: normalizer/normalizer_class.c \
69789: normalizer/normalizer_normalize.c \
69790: locale/locale.c \
69791: locale/locale_class.c \
69792: locale/locale_methods.c \
69793: dateformat/dateformat.c \
69794: dateformat/dateformat_class.c \
69795: dateformat/dateformat_attr.c \
69796: dateformat/dateformat_data.c \
69797: dateformat/dateformat_format.c \
69798: dateformat/dateformat_parse.c \
69799: msgformat/msgformat.c \
69800: msgformat/msgformat_attr.c \
69801: msgformat/msgformat_class.c \
69802: msgformat/msgformat_data.c \
69803: msgformat/msgformat_format.c \
69804: msgformat/msgformat_helpers.cpp \
69805: msgformat/msgformat_parse.c \
69806: grapheme/grapheme_string.c \
69807: grapheme/grapheme_util.c \
69808: resourcebundle/resourcebundle.c \
69809: resourcebundle/resourcebundle_class.c \
69810: resourcebundle/resourcebundle_iterator.c \
1.1.1.2 misho 69811: transliterator/transliterator.c \
69812: transliterator/transliterator_class.c \
69813: transliterator/transliterator_methods.c \
69814: idn/idn.c \
69815: $icu_spoof_src; do
1.1 misho 69816:
69817: IFS=.
69818: set $ac_src
69819: ac_obj=$1
69820: IFS=$old_IFS
69821:
69822: shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
69823:
69824: case $ac_src in
69825: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69826: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69827: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69828: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69829: esac
69830:
69831: cat >>Makefile.objects<<EOF
69832: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69833: $ac_comp
69834: EOF
69835: done
69836:
69837: case $host_alias in
69838: *netware*)
69839:
69840: install_modules="install-modules"
69841:
69842: case $host_alias in
69843: *aix*)
69844: suffix=so
69845: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpintl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(PHPINTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpintl.so '$ext_builddir'/phpintl.so'
69846: ;;
69847: *netware*)
69848: suffix=nlm
69849: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) -L$(top_builddir)/netware -lphp5lib $(INTL_SHARED_LIBADD)'
69850: ;;
69851: *)
69852: suffix=la
69853: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(PHPINTL_SHARED_LIBADD)'
69854: ;;
69855: esac
69856:
69857: if test "x" = "xyes"; then
69858: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpintl.$suffix"
69859: else
1.1.1.3 ! misho 69860: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpintl.$suffix"
! 69861: fi
1.1 misho 69862:
1.1.1.3 ! misho 69863: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
1.1 misho 69864:
1.1.1.3 ! misho 69865: cat >>Makefile.objects<<EOF
! 69866: \$(phplibdir)/phpintl.$suffix: $ext_builddir/phpintl.$suffix
! 69867: \$(LIBTOOL) --mode=install cp $ext_builddir/phpintl.$suffix \$(phplibdir)
1.1 misho 69868:
1.1.1.3 ! misho 69869: $ext_builddir/phpintl.$suffix: \$(shared_objects_intl) \$(PHPINTL_SHARED_DEPENDENCIES)
! 69870: $link_cmd
1.1 misho 69871:
69872: EOF
69873:
1.1.1.3 ! misho 69874: ;;
! 69875: *)
! 69876:
! 69877: install_modules="install-modules"
! 69878:
! 69879: case $host_alias in
! 69880: *aix*)
! 69881: suffix=so
! 69882: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/intl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(INTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/intl.so '$ext_builddir'/intl.so'
! 69883: ;;
! 69884: *netware*)
! 69885: suffix=nlm
! 69886: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) -L$(top_builddir)/netware -lphp5lib $(L_SHARED_LIBADD)'
! 69887: ;;
! 69888: *)
! 69889: suffix=la
! 69890: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(INTL_SHARED_LIBADD)'
! 69891: ;;
! 69892: esac
! 69893:
! 69894: if test "x" = "xyes"; then
! 69895: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/intl.$suffix"
! 69896: else
! 69897: PHP_MODULES="$PHP_MODULES \$(phplibdir)/intl.$suffix"
! 69898: fi
! 69899:
! 69900: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
! 69901:
! 69902: cat >>Makefile.objects<<EOF
! 69903: \$(phplibdir)/intl.$suffix: $ext_builddir/intl.$suffix
! 69904: \$(LIBTOOL) --mode=install cp $ext_builddir/intl.$suffix \$(phplibdir)
! 69905:
! 69906: $ext_builddir/intl.$suffix: \$(shared_objects_intl) \$(INTL_SHARED_DEPENDENCIES)
! 69907: $link_cmd
! 69908:
! 69909: EOF
! 69910:
! 69911: ;;
! 69912: esac
! 69913:
! 69914: cat >>confdefs.h <<_ACEOF
! 69915: #define COMPILE_DL_INTL 1
! 69916: _ACEOF
! 69917:
! 69918: fi
! 69919: fi
1.1 misho 69920:
1.1.1.3 ! misho 69921: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
! 69922: PHP_INTL_SHARED=no
! 69923: case "$PHP_SAPI" in
! 69924: cgi|embed)
1.1 misho 69925:
69926:
69927: case ext/intl in
69928: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69929: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69930: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69931: esac
69932:
69933:
69934:
69935: b_c_pre=$php_c_pre
69936: b_cxx_pre=$php_cxx_pre
69937: b_c_meta=$php_c_meta
69938: b_cxx_meta=$php_cxx_meta
69939: b_c_post=$php_c_post
69940: b_cxx_post=$php_cxx_post
69941: b_lo=$php_lo
69942:
69943:
69944: old_IFS=$IFS
69945: for ac_src in php_intl.c \
69946: intl_error.c \
69947: intl_convert.c \
69948: collator/collator.c \
69949: collator/collator_class.c \
69950: collator/collator_sort.c \
69951: collator/collator_convert.c \
69952: collator/collator_locale.c \
69953: collator/collator_compare.c \
69954: collator/collator_attr.c \
69955: collator/collator_create.c \
69956: collator/collator_is_numeric.c \
69957: collator/collator_error.c \
69958: common/common_error.c \
69959: formatter/formatter.c \
69960: formatter/formatter_main.c \
69961: formatter/formatter_class.c \
69962: formatter/formatter_attr.c \
69963: formatter/formatter_data.c \
69964: formatter/formatter_format.c \
69965: formatter/formatter_parse.c \
69966: normalizer/normalizer.c \
69967: normalizer/normalizer_class.c \
69968: normalizer/normalizer_normalize.c \
69969: locale/locale.c \
69970: locale/locale_class.c \
69971: locale/locale_methods.c \
69972: dateformat/dateformat.c \
69973: dateformat/dateformat_class.c \
69974: dateformat/dateformat_attr.c \
69975: dateformat/dateformat_data.c \
69976: dateformat/dateformat_format.c \
69977: dateformat/dateformat_parse.c \
69978: msgformat/msgformat.c \
69979: msgformat/msgformat_attr.c \
69980: msgformat/msgformat_class.c \
69981: msgformat/msgformat_data.c \
69982: msgformat/msgformat_format.c \
69983: msgformat/msgformat_helpers.cpp \
69984: msgformat/msgformat_parse.c \
69985: grapheme/grapheme_string.c \
69986: grapheme/grapheme_util.c \
69987: resourcebundle/resourcebundle.c \
69988: resourcebundle/resourcebundle_class.c \
69989: resourcebundle/resourcebundle_iterator.c \
1.1.1.2 misho 69990: transliterator/transliterator.c \
69991: transliterator/transliterator_class.c \
69992: transliterator/transliterator_methods.c \
69993: idn/idn.c \
69994: $icu_spoof_src; do
1.1 misho 69995:
69996: IFS=.
69997: set $ac_src
69998: ac_obj=$1
69999: IFS=$old_IFS
70000:
1.1.1.2 misho 70001: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 70002:
70003: case $ac_src in
70004: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70005: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70006: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70007: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70008: esac
70009:
70010: cat >>Makefile.objects<<EOF
70011: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70012: $ac_comp
70013: EOF
70014: done
70015:
70016:
1.1.1.3 ! misho 70017: EXT_STATIC="$EXT_STATIC intl"
! 70018: ;;
! 70019: *)
1.1 misho 70020:
70021:
70022: case ext/intl in
70023: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70024: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70025: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70026: esac
70027:
70028:
70029:
70030: b_c_pre=$php_c_pre
70031: b_cxx_pre=$php_cxx_pre
70032: b_c_meta=$php_c_meta
70033: b_cxx_meta=$php_cxx_meta
70034: b_c_post=$php_c_post
70035: b_cxx_post=$php_cxx_post
70036: b_lo=$php_lo
70037:
70038:
70039: old_IFS=$IFS
70040: for ac_src in php_intl.c \
70041: intl_error.c \
70042: intl_convert.c \
70043: collator/collator.c \
70044: collator/collator_class.c \
70045: collator/collator_sort.c \
70046: collator/collator_convert.c \
70047: collator/collator_locale.c \
70048: collator/collator_compare.c \
70049: collator/collator_attr.c \
70050: collator/collator_create.c \
70051: collator/collator_is_numeric.c \
70052: collator/collator_error.c \
70053: common/common_error.c \
70054: formatter/formatter.c \
70055: formatter/formatter_main.c \
70056: formatter/formatter_class.c \
70057: formatter/formatter_attr.c \
70058: formatter/formatter_data.c \
70059: formatter/formatter_format.c \
70060: formatter/formatter_parse.c \
70061: normalizer/normalizer.c \
70062: normalizer/normalizer_class.c \
70063: normalizer/normalizer_normalize.c \
70064: locale/locale.c \
70065: locale/locale_class.c \
70066: locale/locale_methods.c \
70067: dateformat/dateformat.c \
70068: dateformat/dateformat_class.c \
70069: dateformat/dateformat_attr.c \
70070: dateformat/dateformat_data.c \
70071: dateformat/dateformat_format.c \
70072: dateformat/dateformat_parse.c \
70073: msgformat/msgformat.c \
70074: msgformat/msgformat_attr.c \
70075: msgformat/msgformat_class.c \
70076: msgformat/msgformat_data.c \
70077: msgformat/msgformat_format.c \
70078: msgformat/msgformat_helpers.cpp \
70079: msgformat/msgformat_parse.c \
70080: grapheme/grapheme_string.c \
70081: grapheme/grapheme_util.c \
70082: resourcebundle/resourcebundle.c \
70083: resourcebundle/resourcebundle_class.c \
70084: resourcebundle/resourcebundle_iterator.c \
1.1.1.2 misho 70085: transliterator/transliterator.c \
70086: transliterator/transliterator_class.c \
70087: transliterator/transliterator_methods.c \
70088: idn/idn.c \
70089: $icu_spoof_src; do
1.1 misho 70090:
70091: IFS=.
70092: set $ac_src
70093: ac_obj=$1
70094: IFS=$old_IFS
70095:
1.1.1.2 misho 70096: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 70097:
70098: case $ac_src in
70099: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70100: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70101: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70102: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70103: esac
70104:
70105: cat >>Makefile.objects<<EOF
70106: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70107: $ac_comp
70108: EOF
70109: done
70110:
70111:
1.1.1.3 ! misho 70112: ;;
! 70113: esac
1.1 misho 70114: EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
70115: fi
70116:
70117:
70118: BUILD_DIR="$BUILD_DIR $ext_builddir"
70119:
70120:
70121:
70122: if test "$ext_builddir" = "."; then
70123: PHP_PECL_EXTENSION=intl
70124:
70125: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
70126:
70127: fi
70128:
70129:
70130:
70131: BUILD_DIR="$BUILD_DIR $ext_builddir/collator"
70132:
70133:
70134:
70135:
70136: BUILD_DIR="$BUILD_DIR $ext_builddir/common"
70137:
70138:
70139:
70140:
70141: BUILD_DIR="$BUILD_DIR $ext_builddir/formatter"
70142:
70143:
70144:
70145:
70146: BUILD_DIR="$BUILD_DIR $ext_builddir/normalizer"
70147:
70148:
70149:
70150:
70151: BUILD_DIR="$BUILD_DIR $ext_builddir/dateformat"
70152:
70153:
70154:
70155:
70156: BUILD_DIR="$BUILD_DIR $ext_builddir/locale"
70157:
70158:
70159:
70160:
70161: BUILD_DIR="$BUILD_DIR $ext_builddir/msgformat"
70162:
70163:
70164:
70165:
70166: BUILD_DIR="$BUILD_DIR $ext_builddir/grapheme"
70167:
70168:
70169:
70170:
70171: BUILD_DIR="$BUILD_DIR $ext_builddir/resourcebundle"
70172:
70173:
70174:
70175:
1.1.1.2 misho 70176: BUILD_DIR="$BUILD_DIR $ext_builddir/transliterator"
70177:
70178:
70179:
70180:
1.1 misho 70181: BUILD_DIR="$BUILD_DIR $ext_builddir/idn"
70182:
70183:
1.1.1.2 misho 70184:
70185:
70186: BUILD_DIR="$BUILD_DIR $ext_builddir/spoofchecker"
70187:
70188:
1.1 misho 70189: fi
70190:
70191:
70192:
70193: php_enable_json=yes
70194:
1.1.1.3 ! misho 70195: { echo "$as_me:$LINENO: checking whether to enable JavaScript Object Serialization support" >&5
! 70196: echo $ECHO_N "checking whether to enable JavaScript Object Serialization support... $ECHO_C" >&6; }
1.1 misho 70197: # Check whether --enable-json was given.
1.1.1.3 ! misho 70198: if test "${enable_json+set}" = set; then
1.1 misho 70199: enableval=$enable_json; PHP_JSON=$enableval
70200: else
70201:
70202: PHP_JSON=yes
70203: test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL
70204:
70205: fi
70206:
70207:
70208:
70209: ext_output="yes, shared"
70210: ext_shared=yes
70211: case $PHP_JSON in
70212: shared,*)
70213: PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'`
70214: ;;
70215: shared)
70216: PHP_JSON=yes
70217: ;;
70218: no)
70219: ext_output=no
70220: ext_shared=no
70221: ;;
70222: *)
70223: ext_output=yes
70224: ext_shared=no
70225: ;;
70226: esac
70227:
70228:
70229:
1.1.1.3 ! misho 70230: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 70231: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 70232:
70233:
70234:
70235:
70236: if test "$PHP_JSON" != "no"; then
70237:
1.1.1.3 ! misho 70238: cat >>confdefs.h <<\_ACEOF
! 70239: #define HAVE_JSON 1
! 70240: _ACEOF
1.1 misho 70241:
1.1.1.3 ! misho 70242: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 70243: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 70244: if test "${ac_cv_header_stdc+set}" = set; then
! 70245: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 70246: else
1.1.1.3 ! misho 70247: cat >conftest.$ac_ext <<_ACEOF
! 70248: /* confdefs.h. */
! 70249: _ACEOF
! 70250: cat confdefs.h >>conftest.$ac_ext
! 70251: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 70252: /* end confdefs.h. */
70253: #include <stdlib.h>
70254: #include <stdarg.h>
70255: #include <string.h>
70256: #include <float.h>
70257:
70258: int
70259: main ()
70260: {
70261:
70262: ;
70263: return 0;
70264: }
70265: _ACEOF
1.1.1.3 ! misho 70266: rm -f conftest.$ac_objext
! 70267: if { (ac_try="$ac_compile"
! 70268: case "(($ac_try" in
! 70269: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 70270: *) ac_try_echo=$ac_try;;
! 70271: esac
! 70272: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 70273: (eval "$ac_compile") 2>conftest.er1
! 70274: ac_status=$?
! 70275: grep -v '^ *+' conftest.er1 >conftest.err
! 70276: rm -f conftest.er1
! 70277: cat conftest.err >&5
! 70278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 70279: (exit $ac_status); } && {
! 70280: test -z "$ac_c_werror_flag" ||
! 70281: test ! -s conftest.err
! 70282: } && test -s conftest.$ac_objext; then
1.1 misho 70283: ac_cv_header_stdc=yes
70284: else
1.1.1.3 ! misho 70285: echo "$as_me: failed program was:" >&5
! 70286: sed 's/^/| /' conftest.$ac_ext >&5
! 70287:
! 70288: ac_cv_header_stdc=no
1.1 misho 70289: fi
1.1.1.3 ! misho 70290:
1.1 misho 70291: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70292:
70293: if test $ac_cv_header_stdc = yes; then
70294: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.1.1.3 ! misho 70295: cat >conftest.$ac_ext <<_ACEOF
! 70296: /* confdefs.h. */
! 70297: _ACEOF
! 70298: cat confdefs.h >>conftest.$ac_ext
! 70299: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 70300: /* end confdefs.h. */
70301: #include <string.h>
70302:
70303: _ACEOF
70304: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 70305: $EGREP "memchr" >/dev/null 2>&1; then
! 70306: :
1.1 misho 70307: else
70308: ac_cv_header_stdc=no
70309: fi
1.1.1.3 ! misho 70310: rm -f -r conftest*
1.1 misho 70311:
70312: fi
70313:
70314: if test $ac_cv_header_stdc = yes; then
70315: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.1.1.3 ! misho 70316: cat >conftest.$ac_ext <<_ACEOF
! 70317: /* confdefs.h. */
! 70318: _ACEOF
! 70319: cat confdefs.h >>conftest.$ac_ext
! 70320: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 70321: /* end confdefs.h. */
70322: #include <stdlib.h>
70323:
70324: _ACEOF
70325: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 70326: $EGREP "free" >/dev/null 2>&1; then
! 70327: :
1.1 misho 70328: else
70329: ac_cv_header_stdc=no
70330: fi
1.1.1.3 ! misho 70331: rm -f -r conftest*
1.1 misho 70332:
70333: fi
70334:
70335: if test $ac_cv_header_stdc = yes; then
70336: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.1.1.3 ! misho 70337: if test "$cross_compiling" = yes; then
1.1 misho 70338: :
70339: else
1.1.1.3 ! misho 70340: cat >conftest.$ac_ext <<_ACEOF
! 70341: /* confdefs.h. */
! 70342: _ACEOF
! 70343: cat confdefs.h >>conftest.$ac_ext
! 70344: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 70345: /* end confdefs.h. */
70346: #include <ctype.h>
70347: #include <stdlib.h>
70348: #if ((' ' & 0x0FF) == 0x020)
70349: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
70350: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
70351: #else
70352: # define ISLOWER(c) \
70353: (('a' <= (c) && (c) <= 'i') \
70354: || ('j' <= (c) && (c) <= 'r') \
70355: || ('s' <= (c) && (c) <= 'z'))
70356: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
70357: #endif
70358:
70359: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
70360: int
70361: main ()
70362: {
70363: int i;
70364: for (i = 0; i < 256; i++)
70365: if (XOR (islower (i), ISLOWER (i))
70366: || toupper (i) != TOUPPER (i))
70367: return 2;
70368: return 0;
70369: }
70370: _ACEOF
1.1.1.3 ! misho 70371: rm -f conftest$ac_exeext
! 70372: if { (ac_try="$ac_link"
! 70373: case "(($ac_try" in
! 70374: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 70375: *) ac_try_echo=$ac_try;;
! 70376: esac
! 70377: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 70378: (eval "$ac_link") 2>&5
! 70379: ac_status=$?
! 70380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 70381: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 70382: { (case "(($ac_try" in
! 70383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 70384: *) ac_try_echo=$ac_try;;
! 70385: esac
! 70386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 70387: (eval "$ac_try") 2>&5
! 70388: ac_status=$?
! 70389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 70390: (exit $ac_status); }; }; then
! 70391: :
1.1 misho 70392: else
1.1.1.3 ! misho 70393: echo "$as_me: program exited with status $ac_status" >&5
! 70394: echo "$as_me: failed program was:" >&5
! 70395: sed 's/^/| /' conftest.$ac_ext >&5
! 70396:
! 70397: ( exit $ac_status )
! 70398: ac_cv_header_stdc=no
1.1 misho 70399: fi
1.1.1.3 ! misho 70400: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 70401: fi
70402:
1.1.1.3 ! misho 70403:
1.1 misho 70404: fi
70405: fi
1.1.1.3 ! misho 70406: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 70407: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.1 misho 70408: if test $ac_cv_header_stdc = yes; then
70409:
1.1.1.3 ! misho 70410: cat >>confdefs.h <<\_ACEOF
! 70411: #define STDC_HEADERS 1
! 70412: _ACEOF
1.1 misho 70413:
70414: fi
70415:
70416:
70417:
70418: ext_builddir=ext/json
70419: ext_srcdir=$abs_srcdir/ext/json
70420:
70421: ac_extra=
70422:
70423: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
70424: PHP_JSON_SHARED=no
70425:
70426:
70427: case ext/json in
70428: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70429: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70430: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70431: esac
70432:
70433:
70434:
70435: b_c_pre=$php_c_pre
70436: b_cxx_pre=$php_cxx_pre
70437: b_c_meta=$php_c_meta
70438: b_cxx_meta=$php_cxx_meta
70439: b_c_post=$php_c_post
70440: b_cxx_post=$php_cxx_post
70441: b_lo=$php_lo
70442:
70443:
70444: old_IFS=$IFS
1.1.1.3 ! misho 70445: for ac_src in json.c utf8_decode.c JSON_parser.c; do
1.1 misho 70446:
70447: IFS=.
70448: set $ac_src
70449: ac_obj=$1
70450: IFS=$old_IFS
70451:
70452: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70453:
70454: case $ac_src in
70455: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70456: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70457: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70458: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70459: esac
70460:
70461: cat >>Makefile.objects<<EOF
70462: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70463: $ac_comp
70464: EOF
70465: done
70466:
70467:
70468: EXT_STATIC="$EXT_STATIC json"
70469: if test "$ext_shared" != "nocli"; then
70470: EXT_CLI_STATIC="$EXT_CLI_STATIC json"
70471: fi
70472: else
70473: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
70474: PHP_JSON_SHARED=yes
70475:
70476: case ext/json in
70477: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70478: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70479: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70480: esac
70481:
70482:
70483:
70484: b_c_pre=$shared_c_pre
70485: b_cxx_pre=$shared_cxx_pre
70486: b_c_meta=$shared_c_meta
70487: b_cxx_meta=$shared_cxx_meta
70488: b_c_post=$shared_c_post
70489: b_cxx_post=$shared_cxx_post
70490: b_lo=$shared_lo
70491:
70492:
70493: old_IFS=$IFS
1.1.1.3 ! misho 70494: for ac_src in json.c utf8_decode.c JSON_parser.c; do
1.1 misho 70495:
70496: IFS=.
70497: set $ac_src
70498: ac_obj=$1
70499: IFS=$old_IFS
70500:
70501: shared_objects_json="$shared_objects_json $ac_bdir$ac_obj.lo"
70502:
70503: case $ac_src in
70504: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70505: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70506: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70507: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70508: esac
70509:
70510: cat >>Makefile.objects<<EOF
70511: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70512: $ac_comp
70513: EOF
70514: done
70515:
70516: case $host_alias in
70517: *netware*)
70518:
70519: install_modules="install-modules"
70520:
70521: case $host_alias in
70522: *aix*)
70523: suffix=so
70524: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpjson.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(PHPJSON_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpjson.so '$ext_builddir'/phpjson.so'
70525: ;;
70526: *netware*)
70527: suffix=nlm
70528: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) -L$(top_builddir)/netware -lphp5lib $(JSON_SHARED_LIBADD)'
70529: ;;
70530: *)
70531: suffix=la
70532: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(PHPJSON_SHARED_LIBADD)'
70533: ;;
70534: esac
70535:
70536: if test "x" = "xyes"; then
70537: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpjson.$suffix"
70538: else
70539: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpjson.$suffix"
70540: fi
70541:
70542: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
70543:
70544: cat >>Makefile.objects<<EOF
70545: \$(phplibdir)/phpjson.$suffix: $ext_builddir/phpjson.$suffix
70546: \$(LIBTOOL) --mode=install cp $ext_builddir/phpjson.$suffix \$(phplibdir)
70547:
70548: $ext_builddir/phpjson.$suffix: \$(shared_objects_json) \$(PHPJSON_SHARED_DEPENDENCIES)
70549: $link_cmd
70550:
70551: EOF
70552:
70553: ;;
70554: *)
70555:
70556: install_modules="install-modules"
70557:
70558: case $host_alias in
70559: *aix*)
70560: suffix=so
70561: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/json.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(JSON_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/json.so '$ext_builddir'/json.so'
70562: ;;
70563: *netware*)
70564: suffix=nlm
70565: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) -L$(top_builddir)/netware -lphp5lib $(N_SHARED_LIBADD)'
70566: ;;
70567: *)
70568: suffix=la
70569: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(JSON_SHARED_LIBADD)'
70570: ;;
70571: esac
70572:
70573: if test "x" = "xyes"; then
70574: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/json.$suffix"
70575: else
70576: PHP_MODULES="$PHP_MODULES \$(phplibdir)/json.$suffix"
70577: fi
70578:
70579: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
70580:
70581: cat >>Makefile.objects<<EOF
70582: \$(phplibdir)/json.$suffix: $ext_builddir/json.$suffix
70583: \$(LIBTOOL) --mode=install cp $ext_builddir/json.$suffix \$(phplibdir)
70584:
70585: $ext_builddir/json.$suffix: \$(shared_objects_json) \$(JSON_SHARED_DEPENDENCIES)
70586: $link_cmd
70587:
70588: EOF
70589:
70590: ;;
70591: esac
70592:
70593: cat >>confdefs.h <<_ACEOF
70594: #define COMPILE_DL_JSON 1
70595: _ACEOF
70596:
70597: fi
70598: fi
70599:
70600: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
70601: PHP_JSON_SHARED=no
1.1.1.3 ! misho 70602: case "$PHP_SAPI" in
! 70603: cgi|embed)
1.1 misho 70604:
70605:
70606: case ext/json in
70607: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70608: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70609: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70610: esac
70611:
70612:
70613:
70614: b_c_pre=$php_c_pre
70615: b_cxx_pre=$php_cxx_pre
70616: b_c_meta=$php_c_meta
70617: b_cxx_meta=$php_cxx_meta
70618: b_c_post=$php_c_post
70619: b_cxx_post=$php_cxx_post
70620: b_lo=$php_lo
70621:
70622:
70623: old_IFS=$IFS
1.1.1.3 ! misho 70624: for ac_src in json.c utf8_decode.c JSON_parser.c; do
1.1 misho 70625:
70626: IFS=.
70627: set $ac_src
70628: ac_obj=$1
70629: IFS=$old_IFS
70630:
1.1.1.2 misho 70631: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 70632:
70633: case $ac_src in
70634: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70635: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70636: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70637: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70638: esac
70639:
70640: cat >>Makefile.objects<<EOF
70641: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70642: $ac_comp
70643: EOF
70644: done
70645:
70646:
1.1.1.3 ! misho 70647: EXT_STATIC="$EXT_STATIC json"
! 70648: ;;
! 70649: *)
1.1 misho 70650:
70651:
70652: case ext/json in
70653: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70654: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70655: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70656: esac
70657:
70658:
70659:
70660: b_c_pre=$php_c_pre
70661: b_cxx_pre=$php_cxx_pre
70662: b_c_meta=$php_c_meta
70663: b_cxx_meta=$php_cxx_meta
70664: b_c_post=$php_c_post
70665: b_cxx_post=$php_cxx_post
70666: b_lo=$php_lo
70667:
70668:
70669: old_IFS=$IFS
1.1.1.3 ! misho 70670: for ac_src in json.c utf8_decode.c JSON_parser.c; do
1.1 misho 70671:
70672: IFS=.
70673: set $ac_src
70674: ac_obj=$1
70675: IFS=$old_IFS
70676:
1.1.1.2 misho 70677: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 70678:
70679: case $ac_src in
70680: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70681: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70682: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70683: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70684: esac
70685:
70686: cat >>Makefile.objects<<EOF
70687: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70688: $ac_comp
70689: EOF
70690: done
70691:
70692:
1.1.1.3 ! misho 70693: ;;
! 70694: esac
1.1 misho 70695: EXT_CLI_STATIC="$EXT_CLI_STATIC json"
70696: fi
70697:
70698:
70699: BUILD_DIR="$BUILD_DIR $ext_builddir"
70700:
70701:
70702:
70703: if test "$ext_builddir" = "."; then
70704: PHP_PECL_EXTENSION=json
70705:
70706: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
70707:
70708: fi
70709:
70710:
70711:
70712: header_path=ext/json
70713: for header_file in php_json.h; do
70714: hp_hf="$header_path/$header_file"
70715:
70716:
70717: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
70718:
70719: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
70720: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70721: eval "INSTALLHEADERS$unique=set"
70722:
70723: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
70724:
70725: fi
70726:
70727: done
70728:
70729:
70730:
70731: PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD"
70732:
70733: fi
70734:
70735:
70736:
70737:
70738:
70739:
70740:
70741: php_with_ldap=no
70742:
1.1.1.3 ! misho 70743: { echo "$as_me:$LINENO: checking for LDAP support" >&5
! 70744: echo $ECHO_N "checking for LDAP support... $ECHO_C" >&6; }
1.1 misho 70745:
70746: # Check whether --with-ldap was given.
1.1.1.3 ! misho 70747: if test "${with_ldap+set}" = set; then
1.1 misho 70748: withval=$with_ldap; PHP_LDAP=$withval
70749: else
70750:
70751: PHP_LDAP=no
70752: test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL
70753:
70754: fi
70755:
70756:
70757:
70758: ext_output="yes, shared"
70759: ext_shared=yes
70760: case $PHP_LDAP in
70761: shared,*)
70762: PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'`
70763: ;;
70764: shared)
70765: PHP_LDAP=yes
70766: ;;
70767: no)
70768: ext_output=no
70769: ext_shared=no
70770: ;;
70771: *)
70772: ext_output=yes
70773: ext_shared=no
70774: ;;
70775: esac
70776:
70777:
70778:
1.1.1.3 ! misho 70779: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 70780: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 70781:
70782:
70783:
70784:
70785:
70786: php_with_ldap_sasl=no
70787:
1.1.1.3 ! misho 70788: { echo "$as_me:$LINENO: checking for LDAP Cyrus SASL support" >&5
! 70789: echo $ECHO_N "checking for LDAP Cyrus SASL support... $ECHO_C" >&6; }
1.1 misho 70790:
70791: # Check whether --with-ldap-sasl was given.
1.1.1.3 ! misho 70792: if test "${with_ldap_sasl+set}" = set; then
1.1 misho 70793: withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval
70794: else
70795:
70796: PHP_LDAP_SASL=no
70797:
70798:
70799: fi
70800:
70801:
70802: ext_output=$PHP_LDAP_SASL
1.1.1.3 ! misho 70803: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 70804: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 70805:
70806:
70807:
70808:
70809: if test "$PHP_LDAP" != "no"; then
70810:
70811:
70812: ext_builddir=ext/ldap
70813: ext_srcdir=$abs_srcdir/ext/ldap
70814:
70815: ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
70816:
70817: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
70818: PHP_LDAP_SHARED=no
70819:
70820:
70821: case ext/ldap in
70822: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70823: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70824: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70825: esac
70826:
70827:
70828:
70829: b_c_pre=$php_c_pre
70830: b_cxx_pre=$php_cxx_pre
70831: b_c_meta=$php_c_meta
70832: b_cxx_meta=$php_cxx_meta
70833: b_c_post=$php_c_post
70834: b_cxx_post=$php_cxx_post
70835: b_lo=$php_lo
70836:
70837:
70838: old_IFS=$IFS
70839: for ac_src in ldap.c; do
70840:
70841: IFS=.
70842: set $ac_src
70843: ac_obj=$1
70844: IFS=$old_IFS
70845:
70846: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70847:
70848: case $ac_src in
70849: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70850: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70851: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70852: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70853: esac
70854:
70855: cat >>Makefile.objects<<EOF
70856: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70857: $ac_comp
70858: EOF
70859: done
70860:
70861:
70862: EXT_STATIC="$EXT_STATIC ldap"
70863: if test "$ext_shared" != "nocli"; then
70864: EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
70865: fi
70866: else
70867: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
70868: PHP_LDAP_SHARED=yes
70869:
70870: case ext/ldap in
70871: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70872: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70873: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70874: esac
70875:
70876:
70877:
70878: b_c_pre=$shared_c_pre
70879: b_cxx_pre=$shared_cxx_pre
70880: b_c_meta=$shared_c_meta
70881: b_cxx_meta=$shared_cxx_meta
70882: b_c_post=$shared_c_post
70883: b_cxx_post=$shared_cxx_post
70884: b_lo=$shared_lo
70885:
70886:
70887: old_IFS=$IFS
70888: for ac_src in ldap.c; do
70889:
70890: IFS=.
70891: set $ac_src
70892: ac_obj=$1
70893: IFS=$old_IFS
70894:
70895: shared_objects_ldap="$shared_objects_ldap $ac_bdir$ac_obj.lo"
70896:
70897: case $ac_src in
70898: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70899: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70900: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70901: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70902: esac
70903:
70904: cat >>Makefile.objects<<EOF
70905: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70906: $ac_comp
70907: EOF
70908: done
70909:
70910: case $host_alias in
70911: *netware*)
70912:
70913: install_modules="install-modules"
70914:
70915: case $host_alias in
70916: *aix*)
70917: suffix=so
70918: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(PHPLDAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpldap.so '$ext_builddir'/phpldap.so'
70919: ;;
70920: *netware*)
70921: suffix=nlm
70922: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) -L$(top_builddir)/netware -lphp5lib $(LDAP_SHARED_LIBADD)'
70923: ;;
70924: *)
70925: suffix=la
70926: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(PHPLDAP_SHARED_LIBADD)'
70927: ;;
70928: esac
70929:
70930: if test "x" = "xyes"; then
70931: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpldap.$suffix"
70932: else
70933: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpldap.$suffix"
70934: fi
70935:
70936: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
70937:
70938: cat >>Makefile.objects<<EOF
70939: \$(phplibdir)/phpldap.$suffix: $ext_builddir/phpldap.$suffix
70940: \$(LIBTOOL) --mode=install cp $ext_builddir/phpldap.$suffix \$(phplibdir)
70941:
70942: $ext_builddir/phpldap.$suffix: \$(shared_objects_ldap) \$(PHPLDAP_SHARED_DEPENDENCIES)
70943: $link_cmd
70944:
70945: EOF
70946:
70947: ;;
70948: *)
70949:
70950: install_modules="install-modules"
70951:
70952: case $host_alias in
70953: *aix*)
70954: suffix=so
70955: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(LDAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ldap.so '$ext_builddir'/ldap.so'
70956: ;;
70957: *netware*)
70958: suffix=nlm
70959: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
70960: ;;
70961: *)
70962: suffix=la
70963: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(LDAP_SHARED_LIBADD)'
70964: ;;
70965: esac
70966:
70967: if test "x" = "xyes"; then
70968: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ldap.$suffix"
70969: else
70970: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ldap.$suffix"
70971: fi
70972:
70973: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
70974:
70975: cat >>Makefile.objects<<EOF
70976: \$(phplibdir)/ldap.$suffix: $ext_builddir/ldap.$suffix
70977: \$(LIBTOOL) --mode=install cp $ext_builddir/ldap.$suffix \$(phplibdir)
70978:
70979: $ext_builddir/ldap.$suffix: \$(shared_objects_ldap) \$(LDAP_SHARED_DEPENDENCIES)
70980: $link_cmd
70981:
70982: EOF
70983:
70984: ;;
70985: esac
70986:
70987: cat >>confdefs.h <<_ACEOF
70988: #define COMPILE_DL_LDAP 1
70989: _ACEOF
70990:
70991: fi
70992: fi
70993:
70994: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
70995: PHP_LDAP_SHARED=no
1.1.1.3 ! misho 70996: case "$PHP_SAPI" in
! 70997: cgi|embed)
1.1 misho 70998:
70999:
71000: case ext/ldap in
71001: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71002: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71003: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71004: esac
71005:
71006:
71007:
71008: b_c_pre=$php_c_pre
71009: b_cxx_pre=$php_cxx_pre
71010: b_c_meta=$php_c_meta
71011: b_cxx_meta=$php_cxx_meta
71012: b_c_post=$php_c_post
71013: b_cxx_post=$php_cxx_post
71014: b_lo=$php_lo
71015:
71016:
71017: old_IFS=$IFS
71018: for ac_src in ldap.c; do
71019:
71020: IFS=.
71021: set $ac_src
71022: ac_obj=$1
71023: IFS=$old_IFS
71024:
1.1.1.2 misho 71025: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 71026:
71027: case $ac_src in
71028: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71029: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71030: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71031: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71032: esac
71033:
71034: cat >>Makefile.objects<<EOF
71035: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71036: $ac_comp
71037: EOF
71038: done
71039:
71040:
1.1.1.3 ! misho 71041: EXT_STATIC="$EXT_STATIC ldap"
! 71042: ;;
! 71043: *)
1.1 misho 71044:
71045:
71046: case ext/ldap in
71047: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71048: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71049: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71050: esac
71051:
71052:
71053:
71054: b_c_pre=$php_c_pre
71055: b_cxx_pre=$php_cxx_pre
71056: b_c_meta=$php_c_meta
71057: b_cxx_meta=$php_cxx_meta
71058: b_c_post=$php_c_post
71059: b_cxx_post=$php_cxx_post
71060: b_lo=$php_lo
71061:
71062:
71063: old_IFS=$IFS
71064: for ac_src in ldap.c; do
71065:
71066: IFS=.
71067: set $ac_src
71068: ac_obj=$1
71069: IFS=$old_IFS
71070:
1.1.1.2 misho 71071: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 71072:
71073: case $ac_src in
71074: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71075: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71076: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71077: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71078: esac
71079:
71080: cat >>Makefile.objects<<EOF
71081: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71082: $ac_comp
71083: EOF
71084: done
71085:
71086:
1.1.1.3 ! misho 71087: ;;
! 71088: esac
1.1 misho 71089: EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
71090: fi
71091:
71092:
71093: BUILD_DIR="$BUILD_DIR $ext_builddir"
71094:
71095:
71096:
71097: if test "$ext_builddir" = "."; then
71098: PHP_PECL_EXTENSION=ldap
71099:
71100: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
71101:
71102: fi
71103:
71104:
71105: if test "$PHP_LDAP" = "yes"; then
71106: for i in /usr/local /usr; do
71107:
71108: if test -f $i/include/ldap.h; then
71109: LDAP_DIR=$i
71110: LDAP_INCDIR=$i/include
71111: LDAP_LIBDIR=$i/$PHP_LIBDIR
71112: elif test -f $i/include/umich-ldap/ldap.h; then
71113: LDAP_DIR=$i
71114: LDAP_INCDIR=$i/include/umich-ldap
71115: LDAP_LIBDIR=$i/$PHP_LIBDIR
71116: elif test -f $i/ldap/public/ldap.h; then
71117: LDAP_DIR=$i
71118: LDAP_INCDIR=$i/ldap/public
71119: LDAP_LIBDIR=$i/$PHP_LIBDIR
71120: fi
71121:
71122: done
71123: else
71124:
71125: if test -f $PHP_LDAP/include/ldap.h; then
71126: LDAP_DIR=$PHP_LDAP
71127: LDAP_INCDIR=$PHP_LDAP/include
71128: LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
71129: elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
71130: LDAP_DIR=$PHP_LDAP
71131: LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
71132: LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
71133: elif test -f $PHP_LDAP/ldap/public/ldap.h; then
71134: LDAP_DIR=$PHP_LDAP
71135: LDAP_INCDIR=$PHP_LDAP/ldap/public
71136: LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
71137: fi
71138:
71139: fi
71140:
71141: if test -z "$LDAP_DIR"; then
1.1.1.3 ! misho 71142: { { echo "$as_me:$LINENO: error: Cannot find ldap.h" >&5
! 71143: echo "$as_me: error: Cannot find ldap.h" >&2;}
! 71144: { (exit 1); exit 1; }; }
1.1 misho 71145: fi
71146:
71147:
71148: if test `uname` = "Linux"; then
71149: LDAP_PTHREAD=pthread
71150: else
71151: LDAP_PTHREAD=
71152: fi
71153:
71154: if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
71155:
71156:
71157: if test "$ext_shared" = "yes"; then
71158: LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD"
71159: if test -n "$LDAP_LIBDIR"; then
71160:
71161: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71162:
71163: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71164: ai_p=$LDAP_LIBDIR
71165: else
71166:
71167: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71168:
71169: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71170: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71171: fi
71172:
71173:
71174: if test "$ext_shared" = "yes"; then
71175: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71176: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71177: else
71178:
71179:
71180:
71181: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71182:
71183: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71184: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71185: eval "LIBPATH$unique=set"
71186:
71187: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71188: LDFLAGS="$LDFLAGS -L$ai_p"
71189: PHP_RPATHS="$PHP_RPATHS $ai_p"
71190:
71191: fi
71192:
71193:
71194: fi
71195:
71196: fi
71197:
71198: fi
71199: else
71200:
71201:
71202: if test -n "$LDAP_LIBDIR"; then
71203:
71204: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71205:
71206: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71207: ai_p=$LDAP_LIBDIR
71208: else
71209:
71210: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71211:
71212: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71213: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71214: fi
71215:
71216:
71217:
71218:
71219:
71220: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71221:
71222: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71223: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71224: eval "LIBPATH$unique=set"
71225:
71226: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71227: LDFLAGS="$LDFLAGS -L$ai_p"
71228: PHP_RPATHS="$PHP_RPATHS $ai_p"
71229:
71230: fi
71231:
71232:
71233:
71234: fi
71235:
71236: fi
71237:
71238:
71239: case lber in
71240: c|c_r|pthread*) ;;
71241: *)
71242: LIBS="-llber $LIBS"
71243: ;;
71244: esac
71245:
71246:
71247:
71248:
71249: fi
71250:
71251:
71252:
71253:
71254: if test "$ext_shared" = "yes"; then
71255: LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
71256: if test -n "$LDAP_LIBDIR"; then
71257:
71258: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71259:
71260: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71261: ai_p=$LDAP_LIBDIR
71262: else
71263:
71264: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71265:
71266: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71267: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71268: fi
71269:
71270:
71271: if test "$ext_shared" = "yes"; then
71272: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71273: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71274: else
71275:
71276:
71277:
71278: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71279:
71280: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71281: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71282: eval "LIBPATH$unique=set"
71283:
71284: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71285: LDFLAGS="$LDFLAGS -L$ai_p"
71286: PHP_RPATHS="$PHP_RPATHS $ai_p"
71287:
71288: fi
71289:
71290:
71291: fi
71292:
71293: fi
71294:
71295: fi
71296: else
71297:
71298:
71299: if test -n "$LDAP_LIBDIR"; then
71300:
71301: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71302:
71303: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71304: ai_p=$LDAP_LIBDIR
71305: else
71306:
71307: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71308:
71309: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71310: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71311: fi
71312:
71313:
71314:
71315:
71316:
71317: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71318:
71319: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71320: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71321: eval "LIBPATH$unique=set"
71322:
71323: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71324: LDFLAGS="$LDFLAGS -L$ai_p"
71325: PHP_RPATHS="$PHP_RPATHS $ai_p"
71326:
71327: fi
71328:
71329:
71330:
71331: fi
71332:
71333: fi
71334:
71335:
71336: case ldap in
71337: c|c_r|pthread*) ;;
71338: *)
71339: LIBS="-lldap $LIBS"
71340: ;;
71341: esac
71342:
71343:
71344:
71345:
71346: fi
71347:
71348:
71349:
71350: elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then
71351:
71352:
71353: if test "$ext_shared" = "yes"; then
71354: LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
71355: if test -n "$LDAP_LIBDIR"; then
71356:
71357: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71358:
71359: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71360: ai_p=$LDAP_LIBDIR
71361: else
71362:
71363: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71364:
71365: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71366: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71367: fi
71368:
71369:
71370: if test "$ext_shared" = "yes"; then
71371: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71372: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71373: else
71374:
71375:
71376:
71377: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71378:
71379: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71380: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71381: eval "LIBPATH$unique=set"
71382:
71383: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71384: LDFLAGS="$LDFLAGS -L$ai_p"
71385: PHP_RPATHS="$PHP_RPATHS $ai_p"
71386:
71387: fi
71388:
71389:
71390: fi
71391:
71392: fi
71393:
71394: fi
71395: else
71396:
71397:
71398: if test -n "$LDAP_LIBDIR"; then
71399:
71400: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71401:
71402: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71403: ai_p=$LDAP_LIBDIR
71404: else
71405:
71406: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71407:
71408: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71409: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71410: fi
71411:
71412:
71413:
71414:
71415:
71416: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71417:
71418: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71419: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71420: eval "LIBPATH$unique=set"
71421:
71422: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71423: LDFLAGS="$LDFLAGS -L$ai_p"
71424: PHP_RPATHS="$PHP_RPATHS $ai_p"
71425:
71426: fi
71427:
71428:
71429:
71430: fi
71431:
71432: fi
71433:
71434:
71435: case ldap in
71436: c|c_r|pthread*) ;;
71437: *)
71438: LIBS="-lldap $LIBS"
71439: ;;
71440: esac
71441:
71442:
71443:
71444:
71445: fi
71446:
71447:
71448:
71449: elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then
71450: if test -n "$LDAP_PTHREAD"; then
71451:
71452:
71453: case $LDAP_PTHREAD in
71454: c|c_r|pthread*) ;;
71455: *)
71456: LIBS="-l$LDAP_PTHREAD $LIBS"
71457: ;;
71458: esac
71459:
71460:
71461: fi
71462:
71463:
71464: if test "$ext_shared" = "yes"; then
71465: LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD"
71466: if test -n "$LDAP_LIBDIR"; then
71467:
71468: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71469:
71470: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71471: ai_p=$LDAP_LIBDIR
71472: else
71473:
71474: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71475:
71476: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71477: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71478: fi
71479:
71480:
71481: if test "$ext_shared" = "yes"; then
71482: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71483: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71484: else
71485:
71486:
71487:
71488: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71489:
71490: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71491: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71492: eval "LIBPATH$unique=set"
71493:
71494: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71495: LDFLAGS="$LDFLAGS -L$ai_p"
71496: PHP_RPATHS="$PHP_RPATHS $ai_p"
71497:
71498: fi
71499:
71500:
71501: fi
71502:
71503: fi
71504:
71505: fi
71506: else
71507:
71508:
71509: if test -n "$LDAP_LIBDIR"; then
71510:
71511: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71512:
71513: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71514: ai_p=$LDAP_LIBDIR
71515: else
71516:
71517: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71518:
71519: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71520: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71521: fi
71522:
71523:
71524:
71525:
71526:
71527: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71528:
71529: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71530: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71531: eval "LIBPATH$unique=set"
71532:
71533: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71534: LDFLAGS="$LDFLAGS -L$ai_p"
71535: PHP_RPATHS="$PHP_RPATHS $ai_p"
71536:
71537: fi
71538:
71539:
71540:
71541: fi
71542:
71543: fi
71544:
71545:
71546: case nspr4 in
71547: c|c_r|pthread*) ;;
71548: *)
71549: LIBS="-lnspr4 $LIBS"
71550: ;;
71551: esac
71552:
71553:
71554:
71555:
71556: fi
71557:
71558:
71559:
71560:
71561: if test "$ext_shared" = "yes"; then
71562: LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD"
71563: if test -n "$LDAP_LIBDIR"; then
71564:
71565: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71566:
71567: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71568: ai_p=$LDAP_LIBDIR
71569: else
71570:
71571: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71572:
71573: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71574: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71575: fi
71576:
71577:
71578: if test "$ext_shared" = "yes"; then
71579: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71580: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71581: else
71582:
71583:
71584:
71585: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71586:
71587: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71588: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71589: eval "LIBPATH$unique=set"
71590:
71591: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71592: LDFLAGS="$LDFLAGS -L$ai_p"
71593: PHP_RPATHS="$PHP_RPATHS $ai_p"
71594:
71595: fi
71596:
71597:
71598: fi
71599:
71600: fi
71601:
71602: fi
71603: else
71604:
71605:
71606: if test -n "$LDAP_LIBDIR"; then
71607:
71608: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71609:
71610: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71611: ai_p=$LDAP_LIBDIR
71612: else
71613:
71614: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71615:
71616: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71617: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71618: fi
71619:
71620:
71621:
71622:
71623:
71624: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71625:
71626: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71627: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71628: eval "LIBPATH$unique=set"
71629:
71630: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71631: LDFLAGS="$LDFLAGS -L$ai_p"
71632: PHP_RPATHS="$PHP_RPATHS $ai_p"
71633:
71634: fi
71635:
71636:
71637:
71638: fi
71639:
71640: fi
71641:
71642:
71643: case plc4 in
71644: c|c_r|pthread*) ;;
71645: *)
71646: LIBS="-lplc4 $LIBS"
71647: ;;
71648: esac
71649:
71650:
71651:
71652:
71653: fi
71654:
71655:
71656:
71657:
71658: if test "$ext_shared" = "yes"; then
71659: LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD"
71660: if test -n "$LDAP_LIBDIR"; then
71661:
71662: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71663:
71664: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71665: ai_p=$LDAP_LIBDIR
71666: else
71667:
71668: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71669:
71670: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71671: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71672: fi
71673:
71674:
71675: if test "$ext_shared" = "yes"; then
71676: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71677: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71678: else
71679:
71680:
71681:
71682: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71683:
71684: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71685: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71686: eval "LIBPATH$unique=set"
71687:
71688: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71689: LDFLAGS="$LDFLAGS -L$ai_p"
71690: PHP_RPATHS="$PHP_RPATHS $ai_p"
71691:
71692: fi
71693:
71694:
71695: fi
71696:
71697: fi
71698:
71699: fi
71700: else
71701:
71702:
71703: if test -n "$LDAP_LIBDIR"; then
71704:
71705: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71706:
71707: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71708: ai_p=$LDAP_LIBDIR
71709: else
71710:
71711: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71712:
71713: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71714: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71715: fi
71716:
71717:
71718:
71719:
71720:
71721: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71722:
71723: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71724: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71725: eval "LIBPATH$unique=set"
71726:
71727: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71728: LDFLAGS="$LDFLAGS -L$ai_p"
71729: PHP_RPATHS="$PHP_RPATHS $ai_p"
71730:
71731: fi
71732:
71733:
71734:
71735: fi
71736:
71737: fi
71738:
71739:
71740: case plds4 in
71741: c|c_r|pthread*) ;;
71742: *)
71743: LIBS="-lplds4 $LIBS"
71744: ;;
71745: esac
71746:
71747:
71748:
71749:
71750: fi
71751:
71752:
71753:
71754:
71755: if test "$ext_shared" = "yes"; then
71756: LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD"
71757: if test -n "$LDAP_LIBDIR"; then
71758:
71759: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71760:
71761: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71762: ai_p=$LDAP_LIBDIR
71763: else
71764:
71765: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71766:
71767: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71768: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71769: fi
71770:
71771:
71772: if test "$ext_shared" = "yes"; then
71773: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71774: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71775: else
71776:
71777:
71778:
71779: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71780:
71781: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71782: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71783: eval "LIBPATH$unique=set"
71784:
71785: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71786: LDFLAGS="$LDFLAGS -L$ai_p"
71787: PHP_RPATHS="$PHP_RPATHS $ai_p"
71788:
71789: fi
71790:
71791:
71792: fi
71793:
71794: fi
71795:
71796: fi
71797: else
71798:
71799:
71800: if test -n "$LDAP_LIBDIR"; then
71801:
71802: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71803:
71804: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71805: ai_p=$LDAP_LIBDIR
71806: else
71807:
71808: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71809:
71810: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71811: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71812: fi
71813:
71814:
71815:
71816:
71817:
71818: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71819:
71820: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71821: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71822: eval "LIBPATH$unique=set"
71823:
71824: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71825: LDFLAGS="$LDFLAGS -L$ai_p"
71826: PHP_RPATHS="$PHP_RPATHS $ai_p"
71827:
71828: fi
71829:
71830:
71831:
71832: fi
71833:
71834: fi
71835:
71836:
71837: case ssldap50 in
71838: c|c_r|pthread*) ;;
71839: *)
71840: LIBS="-lssldap50 $LIBS"
71841: ;;
71842: esac
71843:
71844:
71845:
71846:
71847: fi
71848:
71849:
71850:
71851:
71852: if test "$ext_shared" = "yes"; then
71853: LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD"
71854: if test -n "$LDAP_LIBDIR"; then
71855:
71856: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71857:
71858: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71859: ai_p=$LDAP_LIBDIR
71860: else
71861:
71862: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71863:
71864: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71865: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71866: fi
71867:
71868:
71869: if test "$ext_shared" = "yes"; then
71870: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71871: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71872: else
71873:
71874:
71875:
71876: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71877:
71878: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71879: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71880: eval "LIBPATH$unique=set"
71881:
71882: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71883: LDFLAGS="$LDFLAGS -L$ai_p"
71884: PHP_RPATHS="$PHP_RPATHS $ai_p"
71885:
71886: fi
71887:
71888:
71889: fi
71890:
71891: fi
71892:
71893: fi
71894: else
71895:
71896:
71897: if test -n "$LDAP_LIBDIR"; then
71898:
71899: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71900:
71901: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71902: ai_p=$LDAP_LIBDIR
71903: else
71904:
71905: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71906:
71907: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71908: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71909: fi
71910:
71911:
71912:
71913:
71914:
71915: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71916:
71917: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71918: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71919: eval "LIBPATH$unique=set"
71920:
71921: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71922: LDFLAGS="$LDFLAGS -L$ai_p"
71923: PHP_RPATHS="$PHP_RPATHS $ai_p"
71924:
71925: fi
71926:
71927:
71928:
71929: fi
71930:
71931: fi
71932:
71933:
71934: case ldap50 in
71935: c|c_r|pthread*) ;;
71936: *)
71937: LIBS="-lldap50 $LIBS"
71938: ;;
71939: esac
71940:
71941:
71942:
71943:
71944: fi
71945:
71946:
71947:
71948:
71949: if test "$ext_shared" = "yes"; then
71950: LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD"
71951: if test -n "$LDAP_LIBDIR"; then
71952:
71953: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71954:
71955: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71956: ai_p=$LDAP_LIBDIR
71957: else
71958:
71959: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71960:
71961: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71962: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71963: fi
71964:
71965:
71966: if test "$ext_shared" = "yes"; then
71967: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71968: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71969: else
71970:
71971:
71972:
71973: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71974:
71975: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71976: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71977: eval "LIBPATH$unique=set"
71978:
71979: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71980: LDFLAGS="$LDFLAGS -L$ai_p"
71981: PHP_RPATHS="$PHP_RPATHS $ai_p"
71982:
71983: fi
71984:
71985:
71986: fi
71987:
71988: fi
71989:
71990: fi
71991: else
71992:
71993:
71994: if test -n "$LDAP_LIBDIR"; then
71995:
71996: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71997:
71998: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71999: ai_p=$LDAP_LIBDIR
72000: else
72001:
72002: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72003:
72004: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72005: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72006: fi
72007:
72008:
72009:
72010:
72011:
72012: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72013:
72014: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72015: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72016: eval "LIBPATH$unique=set"
72017:
72018: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72019: LDFLAGS="$LDFLAGS -L$ai_p"
72020: PHP_RPATHS="$PHP_RPATHS $ai_p"
72021:
72022: fi
72023:
72024:
72025:
72026: fi
72027:
72028: fi
72029:
72030:
72031: case prldap50 in
72032: c|c_r|pthread*) ;;
72033: *)
72034: LIBS="-lprldap50 $LIBS"
72035: ;;
72036: esac
72037:
72038:
72039:
72040:
72041: fi
72042:
72043:
72044:
72045:
72046: if test "$ext_shared" = "yes"; then
72047: LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD"
72048: if test -n "$LDAP_LIBDIR"; then
72049:
72050: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72051:
72052: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72053: ai_p=$LDAP_LIBDIR
72054: else
72055:
72056: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72057:
72058: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72059: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72060: fi
72061:
72062:
72063: if test "$ext_shared" = "yes"; then
72064: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72065: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72066: else
72067:
72068:
72069:
72070: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72071:
72072: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72073: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72074: eval "LIBPATH$unique=set"
72075:
72076: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72077: LDFLAGS="$LDFLAGS -L$ai_p"
72078: PHP_RPATHS="$PHP_RPATHS $ai_p"
72079:
72080: fi
72081:
72082:
72083: fi
72084:
72085: fi
72086:
72087: fi
72088: else
72089:
72090:
72091: if test -n "$LDAP_LIBDIR"; then
72092:
72093: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72094:
72095: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72096: ai_p=$LDAP_LIBDIR
72097: else
72098:
72099: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72100:
72101: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72102: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72103: fi
72104:
72105:
72106:
72107:
72108:
72109: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72110:
72111: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72112: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72113: eval "LIBPATH$unique=set"
72114:
72115: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72116: LDFLAGS="$LDFLAGS -L$ai_p"
72117: PHP_RPATHS="$PHP_RPATHS $ai_p"
72118:
72119: fi
72120:
72121:
72122:
72123: fi
72124:
72125: fi
72126:
72127:
72128: case ssl3 in
72129: c|c_r|pthread*) ;;
72130: *)
72131: LIBS="-lssl3 $LIBS"
72132: ;;
72133: esac
72134:
72135:
72136:
72137:
72138: fi
72139:
72140:
72141:
1.1.1.3 ! misho 72142: cat >>confdefs.h <<\_ACEOF
! 72143: #define HAVE_NSLDAP 1
! 72144: _ACEOF
1.1 misho 72145:
72146:
72147: elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then
72148: if test -n "$LDAP_PTHREAD"; then
72149:
72150:
72151: case $LDAP_PTHREAD in
72152: c|c_r|pthread*) ;;
72153: *)
72154: LIBS="-l$LDAP_PTHREAD $LIBS"
72155: ;;
72156: esac
72157:
72158:
72159: fi
72160:
72161:
72162: if test "$ext_shared" = "yes"; then
72163: LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD"
72164: if test -n "$LDAP_LIBDIR"; then
72165:
72166: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72167:
72168: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72169: ai_p=$LDAP_LIBDIR
72170: else
72171:
72172: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72173:
72174: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72175: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72176: fi
72177:
72178:
72179: if test "$ext_shared" = "yes"; then
72180: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72181: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72182: else
72183:
72184:
72185:
72186: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72187:
72188: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72189: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72190: eval "LIBPATH$unique=set"
72191:
72192: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72193: LDFLAGS="$LDFLAGS -L$ai_p"
72194: PHP_RPATHS="$PHP_RPATHS $ai_p"
72195:
72196: fi
72197:
72198:
72199: fi
72200:
72201: fi
72202:
72203: fi
72204: else
72205:
72206:
72207: if test -n "$LDAP_LIBDIR"; then
72208:
72209: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72210:
72211: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72212: ai_p=$LDAP_LIBDIR
72213: else
72214:
72215: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72216:
72217: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72218: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72219: fi
72220:
72221:
72222:
72223:
72224:
72225: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72226:
72227: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72228: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72229: eval "LIBPATH$unique=set"
72230:
72231: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72232: LDFLAGS="$LDFLAGS -L$ai_p"
72233: PHP_RPATHS="$PHP_RPATHS $ai_p"
72234:
72235: fi
72236:
72237:
72238:
72239: fi
72240:
72241: fi
72242:
72243:
72244: case nspr3 in
72245: c|c_r|pthread*) ;;
72246: *)
72247: LIBS="-lnspr3 $LIBS"
72248: ;;
72249: esac
72250:
72251:
72252:
72253:
72254: fi
72255:
72256:
72257:
72258:
72259: if test "$ext_shared" = "yes"; then
72260: LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD"
72261: if test -n "$LDAP_LIBDIR"; then
72262:
72263: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72264:
72265: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72266: ai_p=$LDAP_LIBDIR
72267: else
72268:
72269: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72270:
72271: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72272: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72273: fi
72274:
72275:
72276: if test "$ext_shared" = "yes"; then
72277: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72278: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72279: else
72280:
72281:
72282:
72283: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72284:
72285: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72286: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72287: eval "LIBPATH$unique=set"
72288:
72289: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72290: LDFLAGS="$LDFLAGS -L$ai_p"
72291: PHP_RPATHS="$PHP_RPATHS $ai_p"
72292:
72293: fi
72294:
72295:
72296: fi
72297:
72298: fi
72299:
72300: fi
72301: else
72302:
72303:
72304: if test -n "$LDAP_LIBDIR"; then
72305:
72306: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72307:
72308: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72309: ai_p=$LDAP_LIBDIR
72310: else
72311:
72312: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72313:
72314: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72315: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72316: fi
72317:
72318:
72319:
72320:
72321:
72322: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72323:
72324: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72325: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72326: eval "LIBPATH$unique=set"
72327:
72328: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72329: LDFLAGS="$LDFLAGS -L$ai_p"
72330: PHP_RPATHS="$PHP_RPATHS $ai_p"
72331:
72332: fi
72333:
72334:
72335:
72336: fi
72337:
72338: fi
72339:
72340:
72341: case plc3 in
72342: c|c_r|pthread*) ;;
72343: *)
72344: LIBS="-lplc3 $LIBS"
72345: ;;
72346: esac
72347:
72348:
72349:
72350:
72351: fi
72352:
72353:
72354:
72355:
72356: if test "$ext_shared" = "yes"; then
72357: LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD"
72358: if test -n "$LDAP_LIBDIR"; then
72359:
72360: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72361:
72362: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72363: ai_p=$LDAP_LIBDIR
72364: else
72365:
72366: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72367:
72368: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72369: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72370: fi
72371:
72372:
72373: if test "$ext_shared" = "yes"; then
72374: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72375: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72376: else
72377:
72378:
72379:
72380: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72381:
72382: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72383: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72384: eval "LIBPATH$unique=set"
72385:
72386: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72387: LDFLAGS="$LDFLAGS -L$ai_p"
72388: PHP_RPATHS="$PHP_RPATHS $ai_p"
72389:
72390: fi
72391:
72392:
72393: fi
72394:
72395: fi
72396:
72397: fi
72398: else
72399:
72400:
72401: if test -n "$LDAP_LIBDIR"; then
72402:
72403: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72404:
72405: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72406: ai_p=$LDAP_LIBDIR
72407: else
72408:
72409: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72410:
72411: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72412: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72413: fi
72414:
72415:
72416:
72417:
72418:
72419: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72420:
72421: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72422: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72423: eval "LIBPATH$unique=set"
72424:
72425: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72426: LDFLAGS="$LDFLAGS -L$ai_p"
72427: PHP_RPATHS="$PHP_RPATHS $ai_p"
72428:
72429: fi
72430:
72431:
72432:
72433: fi
72434:
72435: fi
72436:
72437:
72438: case plds3 in
72439: c|c_r|pthread*) ;;
72440: *)
72441: LIBS="-lplds3 $LIBS"
72442: ;;
72443: esac
72444:
72445:
72446:
72447:
72448: fi
72449:
72450:
72451:
72452:
72453: if test "$ext_shared" = "yes"; then
72454: LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD"
72455: if test -n "$LDAP_LIBDIR"; then
72456:
72457: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72458:
72459: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72460: ai_p=$LDAP_LIBDIR
72461: else
72462:
72463: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72464:
72465: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72466: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72467: fi
72468:
72469:
72470: if test "$ext_shared" = "yes"; then
72471: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72472: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72473: else
72474:
72475:
72476:
72477: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72478:
72479: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72480: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72481: eval "LIBPATH$unique=set"
72482:
72483: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72484: LDFLAGS="$LDFLAGS -L$ai_p"
72485: PHP_RPATHS="$PHP_RPATHS $ai_p"
72486:
72487: fi
72488:
72489:
72490: fi
72491:
72492: fi
72493:
72494: fi
72495: else
72496:
72497:
72498: if test -n "$LDAP_LIBDIR"; then
72499:
72500: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72501:
72502: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72503: ai_p=$LDAP_LIBDIR
72504: else
72505:
72506: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72507:
72508: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72509: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72510: fi
72511:
72512:
72513:
72514:
72515:
72516: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72517:
72518: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72519: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72520: eval "LIBPATH$unique=set"
72521:
72522: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72523: LDFLAGS="$LDFLAGS -L$ai_p"
72524: PHP_RPATHS="$PHP_RPATHS $ai_p"
72525:
72526: fi
72527:
72528:
72529:
72530: fi
72531:
72532: fi
72533:
72534:
72535: case ldapssl41 in
72536: c|c_r|pthread*) ;;
72537: *)
72538: LIBS="-lldapssl41 $LIBS"
72539: ;;
72540: esac
72541:
72542:
72543:
72544:
72545: fi
72546:
72547:
72548:
1.1.1.3 ! misho 72549: cat >>confdefs.h <<\_ACEOF
! 72550: #define HAVE_NSLDAP 1
! 72551: _ACEOF
1.1 misho 72552:
72553:
72554: elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then
72555: if test -n "$LDAP_PTHREAD"; then
72556:
72557:
72558: case $LDAP_PTHREAD in
72559: c|c_r|pthread*) ;;
72560: *)
72561: LIBS="-l$LDAP_PTHREAD $LIBS"
72562: ;;
72563: esac
72564:
72565:
72566: fi
72567:
72568:
72569: if test "$ext_shared" = "yes"; then
72570: LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD"
72571: if test -n "$LDAP_LIBDIR"; then
72572:
72573: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72574:
72575: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72576: ai_p=$LDAP_LIBDIR
72577: else
72578:
72579: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72580:
72581: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72582: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72583: fi
72584:
72585:
72586: if test "$ext_shared" = "yes"; then
72587: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72588: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72589: else
72590:
72591:
72592:
72593: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72594:
72595: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72596: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72597: eval "LIBPATH$unique=set"
72598:
72599: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72600: LDFLAGS="$LDFLAGS -L$ai_p"
72601: PHP_RPATHS="$PHP_RPATHS $ai_p"
72602:
72603: fi
72604:
72605:
72606: fi
72607:
72608: fi
72609:
72610: fi
72611: else
72612:
72613:
72614: if test -n "$LDAP_LIBDIR"; then
72615:
72616: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72617:
72618: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72619: ai_p=$LDAP_LIBDIR
72620: else
72621:
72622: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72623:
72624: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72625: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72626: fi
72627:
72628:
72629:
72630:
72631:
72632: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72633:
72634: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72635: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72636: eval "LIBPATH$unique=set"
72637:
72638: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72639: LDFLAGS="$LDFLAGS -L$ai_p"
72640: PHP_RPATHS="$PHP_RPATHS $ai_p"
72641:
72642: fi
72643:
72644:
72645:
72646: fi
72647:
72648: fi
72649:
72650:
72651: case ldapssl30 in
72652: c|c_r|pthread*) ;;
72653: *)
72654: LIBS="-lldapssl30 $LIBS"
72655: ;;
72656: esac
72657:
72658:
72659:
72660:
72661: fi
72662:
72663:
72664:
1.1.1.3 ! misho 72665: cat >>confdefs.h <<\_ACEOF
! 72666: #define HAVE_NSLDAP 1
! 72667: _ACEOF
1.1 misho 72668:
72669:
72670: elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then
72671: if test -n "$LDAP_PTHREAD"; then
72672:
72673:
72674: case $LDAP_PTHREAD in
72675: c|c_r|pthread*) ;;
72676: *)
72677: LIBS="-l$LDAP_PTHREAD $LIBS"
72678: ;;
72679: esac
72680:
72681:
72682: fi
72683:
72684:
72685: if test "$ext_shared" = "yes"; then
72686: LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD"
72687: if test -n "$LDAP_LIBDIR"; then
72688:
72689: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72690:
72691: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72692: ai_p=$LDAP_LIBDIR
72693: else
72694:
72695: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72696:
72697: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72698: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72699: fi
72700:
72701:
72702: if test "$ext_shared" = "yes"; then
72703: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72704: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72705: else
72706:
72707:
72708:
72709: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72710:
72711: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72712: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72713: eval "LIBPATH$unique=set"
72714:
72715: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72716: LDFLAGS="$LDFLAGS -L$ai_p"
72717: PHP_RPATHS="$PHP_RPATHS $ai_p"
72718:
72719: fi
72720:
72721:
72722: fi
72723:
72724: fi
72725:
72726: fi
72727: else
72728:
72729:
72730: if test -n "$LDAP_LIBDIR"; then
72731:
72732: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72733:
72734: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72735: ai_p=$LDAP_LIBDIR
72736: else
72737:
72738: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72739:
72740: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72741: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72742: fi
72743:
72744:
72745:
72746:
72747:
72748: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72749:
72750: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72751: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72752: eval "LIBPATH$unique=set"
72753:
72754: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72755: LDFLAGS="$LDFLAGS -L$ai_p"
72756: PHP_RPATHS="$PHP_RPATHS $ai_p"
72757:
72758: fi
72759:
72760:
72761:
72762: fi
72763:
72764: fi
72765:
72766:
72767: case ldap30 in
72768: c|c_r|pthread*) ;;
72769: *)
72770: LIBS="-lldap30 $LIBS"
72771: ;;
72772: esac
72773:
72774:
72775:
72776:
72777: fi
72778:
72779:
72780:
1.1.1.3 ! misho 72781: cat >>confdefs.h <<\_ACEOF
! 72782: #define HAVE_NSLDAP 1
! 72783: _ACEOF
1.1 misho 72784:
72785:
72786: elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then
72787:
72788:
72789: if test "$ext_shared" = "yes"; then
72790: LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD"
72791: if test -n "$LDAP_LIBDIR"; then
72792:
72793: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72794:
72795: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72796: ai_p=$LDAP_LIBDIR
72797: else
72798:
72799: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72800:
72801: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72802: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72803: fi
72804:
72805:
72806: if test "$ext_shared" = "yes"; then
72807: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72808: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72809: else
72810:
72811:
72812:
72813: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72814:
72815: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72816: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72817: eval "LIBPATH$unique=set"
72818:
72819: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72820: LDFLAGS="$LDFLAGS -L$ai_p"
72821: PHP_RPATHS="$PHP_RPATHS $ai_p"
72822:
72823: fi
72824:
72825:
72826: fi
72827:
72828: fi
72829:
72830: fi
72831: else
72832:
72833:
72834: if test -n "$LDAP_LIBDIR"; then
72835:
72836: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72837:
72838: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72839: ai_p=$LDAP_LIBDIR
72840: else
72841:
72842: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72843:
72844: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72845: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72846: fi
72847:
72848:
72849:
72850:
72851:
72852: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72853:
72854: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72855: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72856: eval "LIBPATH$unique=set"
72857:
72858: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72859: LDFLAGS="$LDFLAGS -L$ai_p"
72860: PHP_RPATHS="$PHP_RPATHS $ai_p"
72861:
72862: fi
72863:
72864:
72865:
72866: fi
72867:
72868: fi
72869:
72870:
72871: case umich_lber in
72872: c|c_r|pthread*) ;;
72873: *)
72874: LIBS="-lumich_lber $LIBS"
72875: ;;
72876: esac
72877:
72878:
72879:
72880:
72881: fi
72882:
72883:
72884:
72885:
72886: if test "$ext_shared" = "yes"; then
72887: LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD"
72888: if test -n "$LDAP_LIBDIR"; then
72889:
72890: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72891:
72892: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72893: ai_p=$LDAP_LIBDIR
72894: else
72895:
72896: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72897:
72898: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72899: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72900: fi
72901:
72902:
72903: if test "$ext_shared" = "yes"; then
72904: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72905: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72906: else
72907:
72908:
72909:
72910: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72911:
72912: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72913: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72914: eval "LIBPATH$unique=set"
72915:
72916: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72917: LDFLAGS="$LDFLAGS -L$ai_p"
72918: PHP_RPATHS="$PHP_RPATHS $ai_p"
72919:
72920: fi
72921:
72922:
72923: fi
72924:
72925: fi
72926:
72927: fi
72928: else
72929:
72930:
72931: if test -n "$LDAP_LIBDIR"; then
72932:
72933: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72934:
72935: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72936: ai_p=$LDAP_LIBDIR
72937: else
72938:
72939: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72940:
72941: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72942: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72943: fi
72944:
72945:
72946:
72947:
72948:
72949: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72950:
72951: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72952: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72953: eval "LIBPATH$unique=set"
72954:
72955: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72956: LDFLAGS="$LDFLAGS -L$ai_p"
72957: PHP_RPATHS="$PHP_RPATHS $ai_p"
72958:
72959: fi
72960:
72961:
72962:
72963: fi
72964:
72965: fi
72966:
72967:
72968: case umich_ldap in
72969: c|c_r|pthread*) ;;
72970: *)
72971: LIBS="-lumich_ldap $LIBS"
72972: ;;
72973: esac
72974:
72975:
72976:
72977:
72978: fi
72979:
72980:
72981:
72982: elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then
72983:
72984:
72985: if test "$ext_shared" = "yes"; then
72986: LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
72987: if test -n "$LDAP_LIBDIR"; then
72988:
72989: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72990:
72991: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72992: ai_p=$LDAP_LIBDIR
72993: else
72994:
72995: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72996:
72997: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72998: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72999: fi
73000:
73001:
73002: if test "$ext_shared" = "yes"; then
73003: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
73004: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
73005: else
73006:
73007:
73008:
73009: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73010:
73011: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73012: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73013: eval "LIBPATH$unique=set"
73014:
73015: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73016: LDFLAGS="$LDFLAGS -L$ai_p"
73017: PHP_RPATHS="$PHP_RPATHS $ai_p"
73018:
73019: fi
73020:
73021:
73022: fi
73023:
73024: fi
73025:
73026: fi
73027: else
73028:
73029:
73030: if test -n "$LDAP_LIBDIR"; then
73031:
73032: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
73033:
73034: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
73035: ai_p=$LDAP_LIBDIR
73036: else
73037:
73038: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73039:
73040: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73041: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
73042: fi
73043:
73044:
73045:
73046:
73047:
73048: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73049:
73050: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73051: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73052: eval "LIBPATH$unique=set"
73053:
73054: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73055: LDFLAGS="$LDFLAGS -L$ai_p"
73056: PHP_RPATHS="$PHP_RPATHS $ai_p"
73057:
73058: fi
73059:
73060:
73061:
73062: fi
73063:
73064: fi
73065:
73066:
73067: case clntsh in
73068: c|c_r|pthread*) ;;
73069: *)
73070: LIBS="-lclntsh $LIBS"
73071: ;;
73072: esac
73073:
73074:
73075:
73076:
73077: fi
73078:
73079:
73080:
1.1.1.3 ! misho 73081: cat >>confdefs.h <<\_ACEOF
! 73082: #define HAVE_ORALDAP 1
! 73083: _ACEOF
1.1 misho 73084:
73085: if test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
73086:
1.1.1.3 ! misho 73087: cat >>confdefs.h <<\_ACEOF
! 73088: #define HAVE_ORALDAP_10 1
! 73089: _ACEOF
1.1 misho 73090:
73091: fi
73092: else
1.1.1.3 ! misho 73093: { { echo "$as_me:$LINENO: error: Cannot find ldap libraries in $LDAP_LIBDIR." >&5
! 73094: echo "$as_me: error: Cannot find ldap libraries in $LDAP_LIBDIR." >&2;}
! 73095: { (exit 1); exit 1; }; }
1.1 misho 73096: fi
73097:
73098:
73099: if test "$LDAP_INCDIR" != "/usr/include"; then
73100:
73101: if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then
73102: ai_p=$LDAP_INCDIR
73103: else
73104:
73105: ep_dir="`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73106:
73107: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73108: ai_p="$ep_realdir/`basename \"$LDAP_INCDIR\"`"
73109: fi
73110:
73111:
73112:
73113: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73114:
73115: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73116: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73117: eval "INCLUDEPATH$unique=set"
73118:
73119: if test ""; then
73120: INCLUDES="-I$ai_p $INCLUDES"
73121: else
73122: INCLUDES="$INCLUDES -I$ai_p"
73123: fi
73124:
73125: fi
73126:
73127: fi
73128:
73129:
73130: PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD"
73131:
73132:
1.1.1.3 ! misho 73133: cat >>confdefs.h <<\_ACEOF
! 73134: #define HAVE_LDAP 1
! 73135: _ACEOF
1.1 misho 73136:
73137:
73138: _SAVE_CPPFLAGS=$CPPFLAGS
73139: _SAVE_LIBS=$LIBS
73140: CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
73141: LIBS="$LIBS $LDAP_SHARED_LIBADD"
73142:
1.1.1.3 ! misho 73143: { echo "$as_me:$LINENO: checking for 3 arg ldap_set_rebind_proc" >&5
! 73144: echo $ECHO_N "checking for 3 arg ldap_set_rebind_proc... $ECHO_C" >&6; }
! 73145: if test "${ac_cv_3arg_setrebindproc+set}" = set; then
! 73146: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 73147: else
1.1.1.3 ! misho 73148: cat >conftest.$ac_ext <<_ACEOF
! 73149: /* confdefs.h. */
! 73150: _ACEOF
! 73151: cat confdefs.h >>conftest.$ac_ext
! 73152: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 73153: /* end confdefs.h. */
73154: #include <ldap.h>
73155: int
73156: main ()
73157: {
73158: ldap_set_rebind_proc(0,0,0)
73159: ;
73160: return 0;
73161: }
73162: _ACEOF
1.1.1.3 ! misho 73163: rm -f conftest.$ac_objext
! 73164: if { (ac_try="$ac_compile"
! 73165: case "(($ac_try" in
! 73166: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 73167: *) ac_try_echo=$ac_try;;
! 73168: esac
! 73169: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 73170: (eval "$ac_compile") 2>conftest.er1
! 73171: ac_status=$?
! 73172: grep -v '^ *+' conftest.er1 >conftest.err
! 73173: rm -f conftest.er1
! 73174: cat conftest.err >&5
! 73175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 73176: (exit $ac_status); } && {
! 73177: test -z "$ac_c_werror_flag" ||
! 73178: test ! -s conftest.err
! 73179: } && test -s conftest.$ac_objext; then
1.1 misho 73180: ac_cv_3arg_setrebindproc=yes
73181: else
1.1.1.3 ! misho 73182: echo "$as_me: failed program was:" >&5
! 73183: sed 's/^/| /' conftest.$ac_ext >&5
! 73184:
! 73185: ac_cv_3arg_setrebindproc=no
1.1 misho 73186: fi
1.1.1.3 ! misho 73187:
1.1 misho 73188: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73189: fi
1.1.1.3 ! misho 73190: { echo "$as_me:$LINENO: result: $ac_cv_3arg_setrebindproc" >&5
! 73191: echo "${ECHO_T}$ac_cv_3arg_setrebindproc" >&6; }
1.1 misho 73192: if test "$ac_cv_3arg_setrebindproc" = yes; then
73193:
1.1.1.3 ! misho 73194: cat >>confdefs.h <<\_ACEOF
! 73195: #define HAVE_3ARG_SETREBINDPROC 1
! 73196: _ACEOF
1.1 misho 73197:
73198: fi
73199:
1.1.1.3 ! misho 73200:
! 73201:
! 73202:
! 73203: for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s
! 73204: do
! 73205: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 73206: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 73207: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 73208: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 73209: echo $ECHO_N "(cached) $ECHO_C" >&6
! 73210: else
! 73211: cat >conftest.$ac_ext <<_ACEOF
! 73212: /* confdefs.h. */
! 73213: _ACEOF
! 73214: cat confdefs.h >>conftest.$ac_ext
! 73215: cat >>conftest.$ac_ext <<_ACEOF
! 73216: /* end confdefs.h. */
! 73217: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 73218: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 73219: #define $ac_func innocuous_$ac_func
! 73220:
! 73221: /* System header to define __stub macros and hopefully few prototypes,
! 73222: which can conflict with char $ac_func (); below.
! 73223: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 73224: <limits.h> exists even on freestanding compilers. */
! 73225:
! 73226: #ifdef __STDC__
! 73227: # include <limits.h>
! 73228: #else
! 73229: # include <assert.h>
! 73230: #endif
! 73231:
! 73232: #undef $ac_func
! 73233:
! 73234: /* Override any GCC internal prototype to avoid an error.
! 73235: Use char because int might match the return type of a GCC
! 73236: builtin and then its argument prototype would still apply. */
! 73237: #ifdef __cplusplus
! 73238: extern "C"
! 73239: #endif
! 73240: char $ac_func ();
! 73241: /* The GNU C library defines this for functions which it implements
! 73242: to always fail with ENOSYS. Some functions are actually named
! 73243: something starting with __ and the normal name is an alias. */
! 73244: #if defined __stub_$ac_func || defined __stub___$ac_func
! 73245: choke me
! 73246: #endif
! 73247:
! 73248: int
! 73249: main ()
! 73250: {
! 73251: return $ac_func ();
! 73252: ;
! 73253: return 0;
! 73254: }
! 73255: _ACEOF
! 73256: rm -f conftest.$ac_objext conftest$ac_exeext
! 73257: if { (ac_try="$ac_link"
! 73258: case "(($ac_try" in
! 73259: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 73260: *) ac_try_echo=$ac_try;;
! 73261: esac
! 73262: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 73263: (eval "$ac_link") 2>conftest.er1
! 73264: ac_status=$?
! 73265: grep -v '^ *+' conftest.er1 >conftest.err
! 73266: rm -f conftest.er1
! 73267: cat conftest.err >&5
! 73268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 73269: (exit $ac_status); } && {
! 73270: test -z "$ac_c_werror_flag" ||
! 73271: test ! -s conftest.err
! 73272: } && test -s conftest$ac_exeext &&
! 73273: $as_test_x conftest$ac_exeext; then
! 73274: eval "$as_ac_var=yes"
! 73275: else
! 73276: echo "$as_me: failed program was:" >&5
! 73277: sed 's/^/| /' conftest.$ac_ext >&5
! 73278:
! 73279: eval "$as_ac_var=no"
! 73280: fi
! 73281:
! 73282: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 73283: conftest$ac_exeext conftest.$ac_ext
! 73284: fi
! 73285: ac_res=`eval echo '${'$as_ac_var'}'`
! 73286: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 73287: echo "${ECHO_T}$ac_res" >&6; }
! 73288: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 73289: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 73290: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 73291: _ACEOF
73292:
73293: fi
73294: done
73295:
73296:
73297: if test "$PHP_LDAP_SASL" != "no"; then
73298:
73299: if test "$PHP_LDAP_SASL" = "yes"; then
73300: SEARCH_DIRS="/usr/local /usr"
73301: else
73302: SEARCH_DIRS=$PHP_LDAP_SASL
73303: fi
73304:
73305: for i in $SEARCH_DIRS; do
73306: if test -f $i/include/sasl/sasl.h; then
73307: LDAP_SASL_DIR=$i
73308:
1.1.1.3 ! misho 73309: cat >>confdefs.h <<\_ACEOF
! 73310: #define HAVE_LDAP_SASL_SASL_H 1
! 73311: _ACEOF
1.1 misho 73312:
73313: break
73314: elif test -f $i/include/sasl.h; then
73315: LDAP_SASL_DIR=$i
73316:
1.1.1.3 ! misho 73317: cat >>confdefs.h <<\_ACEOF
! 73318: #define HAVE_LDAP_SASL_H 1
! 73319: _ACEOF
1.1 misho 73320:
73321: break
73322: fi
73323: done
73324:
73325: if test "$LDAP_SASL_DIR"; then
73326: LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include
73327: LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR
73328: else
1.1.1.3 ! misho 73329: { { echo "$as_me:$LINENO: error: sasl.h not found!" >&5
! 73330: echo "$as_me: error: sasl.h not found!" >&2;}
! 73331: { (exit 1); exit 1; }; }
1.1 misho 73332: fi
73333:
73334: if test "$PHP_LDAP_SASL" = "yes"; then
73335: SASL_LIB="-lsasl2"
73336: else
73337: SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
73338: fi
73339:
73340:
73341: save_old_LDFLAGS=$LDFLAGS
73342: ac_stuff="
73343: $LDAP_SHARED_LIBADD $SASL_LIB
73344: "
73345:
73346: save_ext_shared=$ext_shared
73347: ext_shared=yes
73348:
73349: for ac_i in $ac_stuff; do
73350: case $ac_i in
73351: -pthread)
73352: if test "$ext_shared" = "yes"; then
73353: LDFLAGS="$LDFLAGS -pthread"
73354: else
73355:
73356:
73357: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73358:
73359: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73360: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73361: eval "EXTRA_LDFLAGS$unique=set"
73362: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73363: fi
73364:
73365: fi
73366: ;;
73367: -l*)
73368: ac_ii=`echo $ac_i|cut -c 3-`
73369:
73370:
73371: case $ac_ii in
73372: c|c_r|pthread*) ;;
73373: *)
73374: if test "$ext_shared" = "yes"; then
73375: LDFLAGS="$LDFLAGS -l$ac_ii"
73376: else
73377:
73378:
73379: case $ac_ii in
73380: c|c_r|pthread*) ;;
73381: *)
73382: LIBS="$LIBS -l$ac_ii"
73383: ;;
73384: esac
73385:
73386:
73387: fi
73388: ;;
73389: esac
73390:
73391:
73392: ;;
73393: -L*)
73394: ac_ii=`echo $ac_i|cut -c 3-`
73395:
73396: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
73397:
73398: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
73399: ai_p=$ac_ii
73400: else
73401:
73402: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
73403:
73404: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73405: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
73406: fi
73407:
73408:
73409: if test "$ext_shared" = "yes"; then
73410: LDFLAGS="-L$ai_p $LDFLAGS"
73411: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
73412: else
73413:
73414:
73415:
73416: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73417:
73418: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73419: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73420: eval "LIBPATH$unique=set"
73421:
73422: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73423: LDFLAGS="$LDFLAGS -L$ai_p"
73424: PHP_RPATHS="$PHP_RPATHS $ai_p"
73425:
73426: fi
73427:
73428:
73429: fi
73430:
73431: fi
73432:
73433: ;;
73434: esac
73435: done
73436:
1.1.1.3 ! misho 73437: { echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
! 73438: echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6; }
! 73439: if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
! 73440: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 73441: else
73442: ac_check_lib_save_LIBS=$LIBS
73443: LIBS="-lsasl2 $LIBS"
1.1.1.3 ! misho 73444: cat >conftest.$ac_ext <<_ACEOF
! 73445: /* confdefs.h. */
! 73446: _ACEOF
! 73447: cat confdefs.h >>conftest.$ac_ext
! 73448: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 73449: /* end confdefs.h. */
73450:
73451: /* Override any GCC internal prototype to avoid an error.
73452: Use char because int might match the return type of a GCC
73453: builtin and then its argument prototype would still apply. */
73454: #ifdef __cplusplus
73455: extern "C"
73456: #endif
73457: char sasl_version ();
73458: int
73459: main ()
73460: {
73461: return sasl_version ();
73462: ;
73463: return 0;
73464: }
73465: _ACEOF
1.1.1.3 ! misho 73466: rm -f conftest.$ac_objext conftest$ac_exeext
! 73467: if { (ac_try="$ac_link"
! 73468: case "(($ac_try" in
! 73469: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 73470: *) ac_try_echo=$ac_try;;
! 73471: esac
! 73472: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 73473: (eval "$ac_link") 2>conftest.er1
! 73474: ac_status=$?
! 73475: grep -v '^ *+' conftest.er1 >conftest.err
! 73476: rm -f conftest.er1
! 73477: cat conftest.err >&5
! 73478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 73479: (exit $ac_status); } && {
! 73480: test -z "$ac_c_werror_flag" ||
! 73481: test ! -s conftest.err
! 73482: } && test -s conftest$ac_exeext &&
! 73483: $as_test_x conftest$ac_exeext; then
1.1 misho 73484: ac_cv_lib_sasl2_sasl_version=yes
73485: else
1.1.1.3 ! misho 73486: echo "$as_me: failed program was:" >&5
! 73487: sed 's/^/| /' conftest.$ac_ext >&5
! 73488:
! 73489: ac_cv_lib_sasl2_sasl_version=no
1.1 misho 73490: fi
1.1.1.3 ! misho 73491:
! 73492: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 73493: conftest$ac_exeext conftest.$ac_ext
1.1 misho 73494: LIBS=$ac_check_lib_save_LIBS
73495: fi
1.1.1.3 ! misho 73496: { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
! 73497: echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6; }
! 73498: if test $ac_cv_lib_sasl2_sasl_version = yes; then
1.1 misho 73499:
73500: LDFLAGS=$save_old_LDFLAGS
73501: ext_shared=$save_ext_shared
73502:
73503:
73504: if test "$LDAP_SASL_INCDIR" != "/usr/include"; then
73505:
73506: if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then
73507: ai_p=$LDAP_SASL_INCDIR
73508: else
73509:
73510: ep_dir="`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73511:
73512: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73513: ai_p="$ep_realdir/`basename \"$LDAP_SASL_INCDIR\"`"
73514: fi
73515:
73516:
73517:
73518: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73519:
73520: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73521: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73522: eval "INCLUDEPATH$unique=set"
73523:
73524: if test ""; then
73525: INCLUDES="-I$ai_p $INCLUDES"
73526: else
73527: INCLUDES="$INCLUDES -I$ai_p"
73528: fi
73529:
73530: fi
73531:
73532: fi
73533:
73534:
73535:
73536: if test "$ext_shared" = "yes"; then
73537: LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD"
73538: if test -n "$LDAP_SASL_LIBDIR"; then
73539:
73540: if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
73541:
73542: if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
73543: ai_p=$LDAP_SASL_LIBDIR
73544: else
73545:
73546: ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73547:
73548: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73549: ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
73550: fi
73551:
73552:
73553: if test "$ext_shared" = "yes"; then
73554: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
73555: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
73556: else
73557:
73558:
73559:
73560: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73561:
73562: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73563: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73564: eval "LIBPATH$unique=set"
73565:
73566: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73567: LDFLAGS="$LDFLAGS -L$ai_p"
73568: PHP_RPATHS="$PHP_RPATHS $ai_p"
73569:
73570: fi
73571:
73572:
73573: fi
73574:
73575: fi
73576:
73577: fi
73578: else
73579:
73580:
73581: if test -n "$LDAP_SASL_LIBDIR"; then
73582:
73583: if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
73584:
73585: if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
73586: ai_p=$LDAP_SASL_LIBDIR
73587: else
73588:
73589: ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73590:
73591: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73592: ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
73593: fi
73594:
73595:
73596:
73597:
73598:
73599: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73600:
73601: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73602: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73603: eval "LIBPATH$unique=set"
73604:
73605: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73606: LDFLAGS="$LDFLAGS -L$ai_p"
73607: PHP_RPATHS="$PHP_RPATHS $ai_p"
73608:
73609: fi
73610:
73611:
73612:
73613: fi
73614:
73615: fi
73616:
73617:
73618: case sasl2 in
73619: c|c_r|pthread*) ;;
73620: *)
73621: LIBS="-lsasl2 $LIBS"
73622: ;;
73623: esac
73624:
73625:
73626:
73627:
73628: fi
73629:
73630:
73631:
1.1.1.3 ! misho 73632: cat >>confdefs.h <<\_ACEOF
! 73633: #define HAVE_LDAP_SASL 1
! 73634: _ACEOF
1.1 misho 73635:
73636:
73637:
73638: else
73639:
73640: LDFLAGS=$save_old_LDFLAGS
73641: ext_shared=$save_ext_shared
73642: unset ac_cv_lib_sasl2_sasl_version
73643:
1.1.1.3 ! misho 73644: { { echo "$as_me:$LINENO: error: LDAP SASL check failed. Please check config.log for more information." >&5
! 73645: echo "$as_me: error: LDAP SASL check failed. Please check config.log for more information." >&2;}
! 73646: { (exit 1); exit 1; }; }
1.1 misho 73647:
73648:
73649: fi
73650:
73651:
73652: fi
73653:
1.1.1.3 ! misho 73654: { echo "$as_me:$LINENO: checking for ldap_bind_s" >&5
! 73655: echo $ECHO_N "checking for ldap_bind_s... $ECHO_C" >&6; }
! 73656: if test "${ac_cv_func_ldap_bind_s+set}" = set; then
! 73657: echo $ECHO_N "(cached) $ECHO_C" >&6
! 73658: else
! 73659: cat >conftest.$ac_ext <<_ACEOF
! 73660: /* confdefs.h. */
! 73661: _ACEOF
! 73662: cat confdefs.h >>conftest.$ac_ext
! 73663: cat >>conftest.$ac_ext <<_ACEOF
! 73664: /* end confdefs.h. */
! 73665: /* Define ldap_bind_s to an innocuous variant, in case <limits.h> declares ldap_bind_s.
! 73666: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 73667: #define ldap_bind_s innocuous_ldap_bind_s
! 73668:
! 73669: /* System header to define __stub macros and hopefully few prototypes,
! 73670: which can conflict with char ldap_bind_s (); below.
! 73671: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 73672: <limits.h> exists even on freestanding compilers. */
! 73673:
! 73674: #ifdef __STDC__
! 73675: # include <limits.h>
! 73676: #else
! 73677: # include <assert.h>
! 73678: #endif
! 73679:
! 73680: #undef ldap_bind_s
! 73681:
! 73682: /* Override any GCC internal prototype to avoid an error.
! 73683: Use char because int might match the return type of a GCC
! 73684: builtin and then its argument prototype would still apply. */
! 73685: #ifdef __cplusplus
! 73686: extern "C"
! 73687: #endif
! 73688: char ldap_bind_s ();
! 73689: /* The GNU C library defines this for functions which it implements
! 73690: to always fail with ENOSYS. Some functions are actually named
! 73691: something starting with __ and the normal name is an alias. */
! 73692: #if defined __stub_ldap_bind_s || defined __stub___ldap_bind_s
! 73693: choke me
! 73694: #endif
! 73695:
! 73696: int
! 73697: main ()
! 73698: {
! 73699: return ldap_bind_s ();
! 73700: ;
! 73701: return 0;
! 73702: }
! 73703: _ACEOF
! 73704: rm -f conftest.$ac_objext conftest$ac_exeext
! 73705: if { (ac_try="$ac_link"
! 73706: case "(($ac_try" in
! 73707: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 73708: *) ac_try_echo=$ac_try;;
! 73709: esac
! 73710: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 73711: (eval "$ac_link") 2>conftest.er1
! 73712: ac_status=$?
! 73713: grep -v '^ *+' conftest.er1 >conftest.err
! 73714: rm -f conftest.er1
! 73715: cat conftest.err >&5
! 73716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 73717: (exit $ac_status); } && {
! 73718: test -z "$ac_c_werror_flag" ||
! 73719: test ! -s conftest.err
! 73720: } && test -s conftest$ac_exeext &&
! 73721: $as_test_x conftest$ac_exeext; then
! 73722: ac_cv_func_ldap_bind_s=yes
! 73723: else
! 73724: echo "$as_me: failed program was:" >&5
! 73725: sed 's/^/| /' conftest.$ac_ext >&5
! 73726:
! 73727: ac_cv_func_ldap_bind_s=no
! 73728: fi
1.1 misho 73729:
1.1.1.3 ! misho 73730: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 73731: conftest$ac_exeext conftest.$ac_ext
! 73732: fi
! 73733: { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_bind_s" >&5
! 73734: echo "${ECHO_T}$ac_cv_func_ldap_bind_s" >&6; }
! 73735: if test $ac_cv_func_ldap_bind_s = yes; then
! 73736: :
1.1 misho 73737: else
73738:
1.1.1.3 ! misho 73739: { { echo "$as_me:$LINENO: error: LDAP build check failed. Please check config.log for more information." >&5
! 73740: echo "$as_me: error: LDAP build check failed. Please check config.log for more information." >&2;}
! 73741: { (exit 1); exit 1; }; }
1.1 misho 73742:
73743: fi
73744:
73745:
73746: CPPFLAGS=$_SAVE_CPPFLAGS
73747: LIBS=$_SAVE_LIBS
73748: fi
73749:
73750:
73751:
73752:
73753:
73754:
73755:
73756:
73757:
73758:
73759:
73760:
73761:
73762:
73763:
73764:
73765:
73766:
73767:
73768:
73769:
73770:
73771:
73772:
73773: php_enable_mbstring=no
73774:
1.1.1.3 ! misho 73775: { echo "$as_me:$LINENO: checking whether to enable multibyte string support" >&5
! 73776: echo $ECHO_N "checking whether to enable multibyte string support... $ECHO_C" >&6; }
1.1 misho 73777: # Check whether --enable-mbstring was given.
1.1.1.3 ! misho 73778: if test "${enable_mbstring+set}" = set; then
1.1 misho 73779: enableval=$enable_mbstring; PHP_MBSTRING=$enableval
73780: else
73781:
73782: PHP_MBSTRING=no
73783: test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL
73784:
73785: fi
73786:
73787:
73788:
1.1.1.3 ! misho 73789: ext_output="yes, shared"
! 73790: ext_shared=yes
! 73791: case $PHP_MBSTRING in
! 73792: shared,*)
! 73793: PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'`
! 73794: ;;
! 73795: shared)
! 73796: PHP_MBSTRING=yes
! 73797: ;;
! 73798: no)
! 73799: ext_output=no
! 73800: ext_shared=no
! 73801: ;;
! 73802: *)
! 73803: ext_output=yes
! 73804: ext_shared=no
! 73805: ;;
! 73806: esac
! 73807:
! 73808:
! 73809:
! 73810: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 73811: echo "${ECHO_T}$ext_output" >&6; }
! 73812:
! 73813:
! 73814:
! 73815:
! 73816:
! 73817: php_enable_mbregex=yes
! 73818:
! 73819: { echo "$as_me:$LINENO: checking whether to enable multibyte regex support" >&5
! 73820: echo $ECHO_N "checking whether to enable multibyte regex support... $ECHO_C" >&6; }
! 73821: # Check whether --enable-mbregex was given.
! 73822: if test "${enable_mbregex+set}" = set; then
! 73823: enableval=$enable_mbregex; PHP_MBREGEX=$enableval
! 73824: else
! 73825:
! 73826: PHP_MBREGEX=yes
! 73827:
! 73828:
! 73829: fi
! 73830:
! 73831:
! 73832: ext_output=$PHP_MBREGEX
! 73833: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 73834: echo "${ECHO_T}$ext_output" >&6; }
! 73835:
! 73836:
! 73837:
! 73838:
! 73839:
! 73840: php_enable_mbregex_backtrack=yes
! 73841:
! 73842: { echo "$as_me:$LINENO: checking whether to check multibyte regex backtrack" >&5
! 73843: echo $ECHO_N "checking whether to check multibyte regex backtrack... $ECHO_C" >&6; }
! 73844: # Check whether --enable-mbregex_backtrack was given.
! 73845: if test "${enable_mbregex_backtrack+set}" = set; then
! 73846: enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval
! 73847: else
! 73848:
! 73849: PHP_MBREGEX_BACKTRACK=yes
! 73850:
! 73851:
! 73852: fi
! 73853:
! 73854:
! 73855: ext_output=$PHP_MBREGEX_BACKTRACK
! 73856: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 73857: echo "${ECHO_T}$ext_output" >&6; }
! 73858:
! 73859:
! 73860:
! 73861:
! 73862:
! 73863: php_with_libmbfl=no
! 73864:
! 73865: { echo "$as_me:$LINENO: checking for external libmbfl" >&5
! 73866: echo $ECHO_N "checking for external libmbfl... $ECHO_C" >&6; }
! 73867:
! 73868: # Check whether --with-libmbfl was given.
! 73869: if test "${with_libmbfl+set}" = set; then
! 73870: withval=$with_libmbfl; PHP_LIBMBFL=$withval
! 73871: else
! 73872:
! 73873: PHP_LIBMBFL=no
! 73874:
! 73875:
! 73876: fi
! 73877:
! 73878:
! 73879: ext_output=$PHP_LIBMBFL
! 73880: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 73881: echo "${ECHO_T}$ext_output" >&6; }
! 73882:
! 73883:
! 73884:
! 73885:
! 73886:
! 73887: php_with_onig=no
! 73888:
! 73889: { echo "$as_me:$LINENO: checking for external oniguruma" >&5
! 73890: echo $ECHO_N "checking for external oniguruma... $ECHO_C" >&6; }
! 73891:
! 73892: # Check whether --with-onig was given.
! 73893: if test "${with_onig+set}" = set; then
! 73894: withval=$with_onig; PHP_ONIG=$withval
! 73895: else
! 73896:
! 73897: PHP_ONIG=no
! 73898:
! 73899:
! 73900: fi
! 73901:
! 73902:
! 73903: ext_output=$PHP_ONIG
! 73904: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 73905: echo "${ECHO_T}$ext_output" >&6; }
! 73906:
! 73907:
! 73908:
! 73909:
! 73910: if test "$PHP_MBSTRING" != "no"; then
! 73911:
! 73912: cat >>confdefs.h <<\_ACEOF
! 73913: #define HAVE_MBSTRING 1
! 73914: _ACEOF
! 73915:
! 73916:
! 73917:
! 73918: PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c"
! 73919:
! 73920:
! 73921: if test "$PHP_MBREGEX" != "no"; then
! 73922:
! 73923: if test "$PHP_MBREGEX" = "yes"; then
! 73924: if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then
! 73925: if test "$PHP_MBREGEX_BACKTRACK" != "no"; then
! 73926:
! 73927: cat >>confdefs.h <<\_ACEOF
! 73928: #define USE_COMBINATION_EXPLOSION_CHECK 1
! 73929: _ACEOF
! 73930:
! 73931: fi
! 73932:
! 73933: { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
! 73934: echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
! 73935: if test "${php_cv_mbstring_stdarg+set}" = set; then
! 73936: echo $ECHO_N "(cached) $ECHO_C" >&6
! 73937: else
! 73938:
! 73939: if test "$cross_compiling" = yes; then
! 73940:
! 73941: case $host_alias in
! 73942: *netware*)
! 73943: php_cv_mbstring_stdarg=yes
! 73944: ;;
! 73945: *)
! 73946: php_cv_mbstring_stdarg=no
! 73947: ;;
! 73948: esac
! 73949:
! 73950: else
! 73951: cat >conftest.$ac_ext <<_ACEOF
! 73952: /* confdefs.h. */
! 73953: _ACEOF
! 73954: cat confdefs.h >>conftest.$ac_ext
! 73955: cat >>conftest.$ac_ext <<_ACEOF
! 73956: /* end confdefs.h. */
! 73957:
! 73958: #include <stdarg.h>
! 73959: int foo(int x, ...) {
! 73960: va_list va;
! 73961: va_start(va, x);
! 73962: va_arg(va, int);
! 73963: va_arg(va, char *);
! 73964: va_arg(va, double);
! 73965: return 0;
! 73966: }
! 73967: int main() { return foo(10, "", 3.14); }
! 73968:
! 73969: _ACEOF
! 73970: rm -f conftest$ac_exeext
! 73971: if { (ac_try="$ac_link"
! 73972: case "(($ac_try" in
! 73973: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 73974: *) ac_try_echo=$ac_try;;
! 73975: esac
! 73976: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 73977: (eval "$ac_link") 2>&5
! 73978: ac_status=$?
! 73979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 73980: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 73981: { (case "(($ac_try" in
! 73982: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 73983: *) ac_try_echo=$ac_try;;
! 73984: esac
! 73985: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 73986: (eval "$ac_try") 2>&5
! 73987: ac_status=$?
! 73988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 73989: (exit $ac_status); }; }; then
! 73990: php_cv_mbstring_stdarg=yes
! 73991: else
! 73992: echo "$as_me: program exited with status $ac_status" >&5
! 73993: echo "$as_me: failed program was:" >&5
! 73994: sed 's/^/| /' conftest.$ac_ext >&5
! 73995:
! 73996: ( exit $ac_status )
! 73997: php_cv_mbstring_stdarg=no
! 73998: fi
! 73999: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 74000: fi
! 74001:
! 74002:
! 74003:
! 74004: fi
! 74005: { echo "$as_me:$LINENO: result: $php_cv_mbstring_stdarg" >&5
! 74006: echo "${ECHO_T}$php_cv_mbstring_stdarg" >&6; }
! 74007:
! 74008:
! 74009:
1.1 misho 74010:
74011:
74012:
74013:
74014:
1.1.1.3 ! misho 74015: for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h
! 74016: do
! 74017: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 74018: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 74019: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 74020: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 74021: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 74022: echo $ECHO_N "(cached) $ECHO_C" >&6
! 74023: fi
! 74024: ac_res=`eval echo '${'$as_ac_Header'}'`
! 74025: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 74026: echo "${ECHO_T}$ac_res" >&6; }
! 74027: else
! 74028: # Is the header compilable?
! 74029: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 74030: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 74031: cat >conftest.$ac_ext <<_ACEOF
! 74032: /* confdefs.h. */
! 74033: _ACEOF
! 74034: cat confdefs.h >>conftest.$ac_ext
! 74035: cat >>conftest.$ac_ext <<_ACEOF
! 74036: /* end confdefs.h. */
! 74037: $ac_includes_default
! 74038: #include <$ac_header>
! 74039: _ACEOF
! 74040: rm -f conftest.$ac_objext
! 74041: if { (ac_try="$ac_compile"
! 74042: case "(($ac_try" in
! 74043: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74044: *) ac_try_echo=$ac_try;;
! 74045: esac
! 74046: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74047: (eval "$ac_compile") 2>conftest.er1
! 74048: ac_status=$?
! 74049: grep -v '^ *+' conftest.er1 >conftest.err
! 74050: rm -f conftest.er1
! 74051: cat conftest.err >&5
! 74052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74053: (exit $ac_status); } && {
! 74054: test -z "$ac_c_werror_flag" ||
! 74055: test ! -s conftest.err
! 74056: } && test -s conftest.$ac_objext; then
! 74057: ac_header_compiler=yes
! 74058: else
! 74059: echo "$as_me: failed program was:" >&5
! 74060: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74061:
1.1.1.3 ! misho 74062: ac_header_compiler=no
! 74063: fi
1.1 misho 74064:
1.1.1.3 ! misho 74065: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74066: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 74067: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 misho 74068:
1.1.1.3 ! misho 74069: # Is the header present?
! 74070: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 74071: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 74072: cat >conftest.$ac_ext <<_ACEOF
! 74073: /* confdefs.h. */
! 74074: _ACEOF
! 74075: cat confdefs.h >>conftest.$ac_ext
! 74076: cat >>conftest.$ac_ext <<_ACEOF
! 74077: /* end confdefs.h. */
! 74078: #include <$ac_header>
! 74079: _ACEOF
! 74080: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 74081: case "(($ac_try" in
! 74082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74083: *) ac_try_echo=$ac_try;;
! 74084: esac
! 74085: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74086: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 74087: ac_status=$?
! 74088: grep -v '^ *+' conftest.er1 >conftest.err
! 74089: rm -f conftest.er1
! 74090: cat conftest.err >&5
! 74091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74092: (exit $ac_status); } >/dev/null && {
! 74093: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 74094: test ! -s conftest.err
! 74095: }; then
! 74096: ac_header_preproc=yes
1.1 misho 74097: else
1.1.1.3 ! misho 74098: echo "$as_me: failed program was:" >&5
! 74099: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74100:
1.1.1.3 ! misho 74101: ac_header_preproc=no
! 74102: fi
1.1 misho 74103:
1.1.1.3 ! misho 74104: rm -f conftest.err conftest.$ac_ext
! 74105: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 74106: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 misho 74107:
1.1.1.3 ! misho 74108: # So? What about this header?
! 74109: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 74110: yes:no: )
! 74111: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 74112: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 74113: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 74114: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 74115: ac_header_preproc=yes
! 74116: ;;
! 74117: no:yes:* )
! 74118: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 74119: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 74120: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 74121: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 74122: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 74123: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 74124: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 74125: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 74126: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 74127: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 74128: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 74129: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 74130:
1.1.1.3 ! misho 74131: ;;
! 74132: esac
! 74133: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 74134: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 74135: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 74136: echo $ECHO_N "(cached) $ECHO_C" >&6
! 74137: else
! 74138: eval "$as_ac_Header=\$ac_header_preproc"
! 74139: fi
! 74140: ac_res=`eval echo '${'$as_ac_Header'}'`
! 74141: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 74142: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 74143:
1.1.1.3 ! misho 74144: fi
! 74145: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 74146: cat >>confdefs.h <<_ACEOF
! 74147: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 74148: _ACEOF
1.1 misho 74149:
1.1.1.3 ! misho 74150: fi
1.1 misho 74151:
1.1.1.3 ! misho 74152: done
1.1 misho 74153:
1.1.1.3 ! misho 74154: { echo "$as_me:$LINENO: checking for int" >&5
! 74155: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
! 74156: if test "${ac_cv_type_int+set}" = set; then
! 74157: echo $ECHO_N "(cached) $ECHO_C" >&6
! 74158: else
! 74159: cat >conftest.$ac_ext <<_ACEOF
! 74160: /* confdefs.h. */
! 74161: _ACEOF
! 74162: cat confdefs.h >>conftest.$ac_ext
! 74163: cat >>conftest.$ac_ext <<_ACEOF
! 74164: /* end confdefs.h. */
! 74165: $ac_includes_default
! 74166: typedef int ac__type_new_;
! 74167: int
! 74168: main ()
! 74169: {
! 74170: if ((ac__type_new_ *) 0)
! 74171: return 0;
! 74172: if (sizeof (ac__type_new_))
! 74173: return 0;
! 74174: ;
! 74175: return 0;
! 74176: }
! 74177: _ACEOF
! 74178: rm -f conftest.$ac_objext
! 74179: if { (ac_try="$ac_compile"
! 74180: case "(($ac_try" in
! 74181: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74182: *) ac_try_echo=$ac_try;;
! 74183: esac
! 74184: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74185: (eval "$ac_compile") 2>conftest.er1
! 74186: ac_status=$?
! 74187: grep -v '^ *+' conftest.er1 >conftest.err
! 74188: rm -f conftest.er1
! 74189: cat conftest.err >&5
! 74190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74191: (exit $ac_status); } && {
! 74192: test -z "$ac_c_werror_flag" ||
! 74193: test ! -s conftest.err
! 74194: } && test -s conftest.$ac_objext; then
! 74195: ac_cv_type_int=yes
! 74196: else
! 74197: echo "$as_me: failed program was:" >&5
! 74198: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74199:
1.1.1.3 ! misho 74200: ac_cv_type_int=no
! 74201: fi
1.1 misho 74202:
1.1.1.3 ! misho 74203: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74204: fi
! 74205: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 74206: echo "${ECHO_T}$ac_cv_type_int" >&6; }
1.1 misho 74207:
1.1.1.3 ! misho 74208: # The cast to long int works around a bug in the HP C Compiler
! 74209: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 74210: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 74211: # This bug is HP SR number 8606223364.
! 74212: { echo "$as_me:$LINENO: checking size of int" >&5
! 74213: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
! 74214: if test "${ac_cv_sizeof_int+set}" = set; then
! 74215: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 74216: else
1.1.1.3 ! misho 74217: if test "$cross_compiling" = yes; then
! 74218: # Depending upon the size, compute the lo and hi bounds.
! 74219: cat >conftest.$ac_ext <<_ACEOF
! 74220: /* confdefs.h. */
! 74221: _ACEOF
! 74222: cat confdefs.h >>conftest.$ac_ext
! 74223: cat >>conftest.$ac_ext <<_ACEOF
! 74224: /* end confdefs.h. */
! 74225: $ac_includes_default
! 74226: typedef int ac__type_sizeof_;
! 74227: int
! 74228: main ()
! 74229: {
! 74230: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 74231: test_array [0] = 0
1.1 misho 74232:
1.1.1.3 ! misho 74233: ;
! 74234: return 0;
! 74235: }
! 74236: _ACEOF
! 74237: rm -f conftest.$ac_objext
! 74238: if { (ac_try="$ac_compile"
! 74239: case "(($ac_try" in
! 74240: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74241: *) ac_try_echo=$ac_try;;
! 74242: esac
! 74243: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74244: (eval "$ac_compile") 2>conftest.er1
! 74245: ac_status=$?
! 74246: grep -v '^ *+' conftest.er1 >conftest.err
! 74247: rm -f conftest.er1
! 74248: cat conftest.err >&5
! 74249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74250: (exit $ac_status); } && {
! 74251: test -z "$ac_c_werror_flag" ||
! 74252: test ! -s conftest.err
! 74253: } && test -s conftest.$ac_objext; then
! 74254: ac_lo=0 ac_mid=0
! 74255: while :; do
! 74256: cat >conftest.$ac_ext <<_ACEOF
! 74257: /* confdefs.h. */
! 74258: _ACEOF
! 74259: cat confdefs.h >>conftest.$ac_ext
! 74260: cat >>conftest.$ac_ext <<_ACEOF
! 74261: /* end confdefs.h. */
! 74262: $ac_includes_default
! 74263: typedef int ac__type_sizeof_;
! 74264: int
! 74265: main ()
! 74266: {
! 74267: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 74268: test_array [0] = 0
1.1 misho 74269:
1.1.1.3 ! misho 74270: ;
! 74271: return 0;
! 74272: }
! 74273: _ACEOF
! 74274: rm -f conftest.$ac_objext
! 74275: if { (ac_try="$ac_compile"
! 74276: case "(($ac_try" in
! 74277: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74278: *) ac_try_echo=$ac_try;;
! 74279: esac
! 74280: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74281: (eval "$ac_compile") 2>conftest.er1
! 74282: ac_status=$?
! 74283: grep -v '^ *+' conftest.er1 >conftest.err
! 74284: rm -f conftest.er1
! 74285: cat conftest.err >&5
! 74286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74287: (exit $ac_status); } && {
! 74288: test -z "$ac_c_werror_flag" ||
! 74289: test ! -s conftest.err
! 74290: } && test -s conftest.$ac_objext; then
! 74291: ac_hi=$ac_mid; break
! 74292: else
! 74293: echo "$as_me: failed program was:" >&5
! 74294: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74295:
1.1.1.3 ! misho 74296: ac_lo=`expr $ac_mid + 1`
! 74297: if test $ac_lo -le $ac_mid; then
! 74298: ac_lo= ac_hi=
! 74299: break
! 74300: fi
! 74301: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 74302: fi
74303:
1.1.1.3 ! misho 74304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74305: done
! 74306: else
! 74307: echo "$as_me: failed program was:" >&5
! 74308: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74309:
1.1.1.3 ! misho 74310: cat >conftest.$ac_ext <<_ACEOF
! 74311: /* confdefs.h. */
! 74312: _ACEOF
! 74313: cat confdefs.h >>conftest.$ac_ext
! 74314: cat >>conftest.$ac_ext <<_ACEOF
! 74315: /* end confdefs.h. */
! 74316: $ac_includes_default
! 74317: typedef int ac__type_sizeof_;
! 74318: int
! 74319: main ()
! 74320: {
! 74321: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 74322: test_array [0] = 0
1.1 misho 74323:
1.1.1.3 ! misho 74324: ;
! 74325: return 0;
! 74326: }
! 74327: _ACEOF
! 74328: rm -f conftest.$ac_objext
! 74329: if { (ac_try="$ac_compile"
! 74330: case "(($ac_try" in
! 74331: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74332: *) ac_try_echo=$ac_try;;
! 74333: esac
! 74334: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74335: (eval "$ac_compile") 2>conftest.er1
! 74336: ac_status=$?
! 74337: grep -v '^ *+' conftest.er1 >conftest.err
! 74338: rm -f conftest.er1
! 74339: cat conftest.err >&5
! 74340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74341: (exit $ac_status); } && {
! 74342: test -z "$ac_c_werror_flag" ||
! 74343: test ! -s conftest.err
! 74344: } && test -s conftest.$ac_objext; then
! 74345: ac_hi=-1 ac_mid=-1
! 74346: while :; do
! 74347: cat >conftest.$ac_ext <<_ACEOF
! 74348: /* confdefs.h. */
! 74349: _ACEOF
! 74350: cat confdefs.h >>conftest.$ac_ext
! 74351: cat >>conftest.$ac_ext <<_ACEOF
! 74352: /* end confdefs.h. */
! 74353: $ac_includes_default
! 74354: typedef int ac__type_sizeof_;
! 74355: int
! 74356: main ()
! 74357: {
! 74358: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 74359: test_array [0] = 0
1.1 misho 74360:
1.1.1.3 ! misho 74361: ;
! 74362: return 0;
! 74363: }
! 74364: _ACEOF
! 74365: rm -f conftest.$ac_objext
! 74366: if { (ac_try="$ac_compile"
! 74367: case "(($ac_try" in
! 74368: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74369: *) ac_try_echo=$ac_try;;
! 74370: esac
! 74371: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74372: (eval "$ac_compile") 2>conftest.er1
! 74373: ac_status=$?
! 74374: grep -v '^ *+' conftest.er1 >conftest.err
! 74375: rm -f conftest.er1
! 74376: cat conftest.err >&5
! 74377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74378: (exit $ac_status); } && {
! 74379: test -z "$ac_c_werror_flag" ||
! 74380: test ! -s conftest.err
! 74381: } && test -s conftest.$ac_objext; then
! 74382: ac_lo=$ac_mid; break
! 74383: else
! 74384: echo "$as_me: failed program was:" >&5
! 74385: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74386:
1.1.1.3 ! misho 74387: ac_hi=`expr '(' $ac_mid ')' - 1`
! 74388: if test $ac_mid -le $ac_hi; then
! 74389: ac_lo= ac_hi=
! 74390: break
! 74391: fi
! 74392: ac_mid=`expr 2 '*' $ac_mid`
! 74393: fi
1.1 misho 74394:
1.1.1.3 ! misho 74395: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74396: done
! 74397: else
! 74398: echo "$as_me: failed program was:" >&5
! 74399: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74400:
1.1.1.3 ! misho 74401: ac_lo= ac_hi=
! 74402: fi
1.1 misho 74403:
1.1.1.3 ! misho 74404: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74405: fi
1.1 misho 74406:
1.1.1.3 ! misho 74407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74408: # Binary search between lo and hi bounds.
! 74409: while test "x$ac_lo" != "x$ac_hi"; do
! 74410: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 74411: cat >conftest.$ac_ext <<_ACEOF
! 74412: /* confdefs.h. */
! 74413: _ACEOF
! 74414: cat confdefs.h >>conftest.$ac_ext
! 74415: cat >>conftest.$ac_ext <<_ACEOF
! 74416: /* end confdefs.h. */
! 74417: $ac_includes_default
! 74418: typedef int ac__type_sizeof_;
! 74419: int
! 74420: main ()
! 74421: {
! 74422: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 74423: test_array [0] = 0
1.1 misho 74424:
1.1.1.3 ! misho 74425: ;
! 74426: return 0;
! 74427: }
! 74428: _ACEOF
! 74429: rm -f conftest.$ac_objext
! 74430: if { (ac_try="$ac_compile"
! 74431: case "(($ac_try" in
! 74432: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74433: *) ac_try_echo=$ac_try;;
! 74434: esac
! 74435: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74436: (eval "$ac_compile") 2>conftest.er1
! 74437: ac_status=$?
! 74438: grep -v '^ *+' conftest.er1 >conftest.err
! 74439: rm -f conftest.er1
! 74440: cat conftest.err >&5
! 74441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74442: (exit $ac_status); } && {
! 74443: test -z "$ac_c_werror_flag" ||
! 74444: test ! -s conftest.err
! 74445: } && test -s conftest.$ac_objext; then
! 74446: ac_hi=$ac_mid
! 74447: else
! 74448: echo "$as_me: failed program was:" >&5
! 74449: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74450:
1.1.1.3 ! misho 74451: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 74452: fi
74453:
1.1.1.3 ! misho 74454: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74455: done
! 74456: case $ac_lo in
! 74457: ?*) ac_cv_sizeof_int=$ac_lo;;
! 74458: '') if test "$ac_cv_type_int" = yes; then
! 74459: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 74460: See \`config.log' for more details." >&5
! 74461: echo "$as_me: error: cannot compute sizeof (int)
! 74462: See \`config.log' for more details." >&2;}
! 74463: { (exit 77); exit 77; }; }
! 74464: else
! 74465: ac_cv_sizeof_int=0
! 74466: fi ;;
! 74467: esac
! 74468: else
! 74469: cat >conftest.$ac_ext <<_ACEOF
! 74470: /* confdefs.h. */
! 74471: _ACEOF
! 74472: cat confdefs.h >>conftest.$ac_ext
! 74473: cat >>conftest.$ac_ext <<_ACEOF
! 74474: /* end confdefs.h. */
! 74475: $ac_includes_default
! 74476: typedef int ac__type_sizeof_;
! 74477: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 74478: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 74479: #include <stdio.h>
! 74480: #include <stdlib.h>
! 74481: int
! 74482: main ()
! 74483: {
1.1 misho 74484:
1.1.1.3 ! misho 74485: FILE *f = fopen ("conftest.val", "w");
! 74486: if (! f)
! 74487: return 1;
! 74488: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 74489: {
! 74490: long int i = longval ();
! 74491: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 74492: return 1;
! 74493: fprintf (f, "%ld\n", i);
! 74494: }
! 74495: else
! 74496: {
! 74497: unsigned long int i = ulongval ();
! 74498: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 74499: return 1;
! 74500: fprintf (f, "%lu\n", i);
! 74501: }
! 74502: return ferror (f) || fclose (f) != 0;
1.1 misho 74503:
1.1.1.3 ! misho 74504: ;
! 74505: return 0;
! 74506: }
! 74507: _ACEOF
! 74508: rm -f conftest$ac_exeext
! 74509: if { (ac_try="$ac_link"
! 74510: case "(($ac_try" in
! 74511: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74512: *) ac_try_echo=$ac_try;;
! 74513: esac
! 74514: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74515: (eval "$ac_link") 2>&5
! 74516: ac_status=$?
! 74517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74518: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 74519: { (case "(($ac_try" in
! 74520: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74521: *) ac_try_echo=$ac_try;;
! 74522: esac
! 74523: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74524: (eval "$ac_try") 2>&5
! 74525: ac_status=$?
! 74526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74527: (exit $ac_status); }; }; then
! 74528: ac_cv_sizeof_int=`cat conftest.val`
! 74529: else
! 74530: echo "$as_me: program exited with status $ac_status" >&5
! 74531: echo "$as_me: failed program was:" >&5
! 74532: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74533:
1.1.1.3 ! misho 74534: ( exit $ac_status )
! 74535: if test "$ac_cv_type_int" = yes; then
! 74536: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 74537: See \`config.log' for more details." >&5
! 74538: echo "$as_me: error: cannot compute sizeof (int)
! 74539: See \`config.log' for more details." >&2;}
! 74540: { (exit 77); exit 77; }; }
! 74541: else
! 74542: ac_cv_sizeof_int=0
! 74543: fi
! 74544: fi
! 74545: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 74546: fi
! 74547: rm -f conftest.val
! 74548: fi
! 74549: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 74550: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
1.1 misho 74551:
74552:
74553:
1.1.1.3 ! misho 74554: cat >>confdefs.h <<_ACEOF
! 74555: #define SIZEOF_INT $ac_cv_sizeof_int
! 74556: _ACEOF
1.1 misho 74557:
74558:
1.1.1.3 ! misho 74559: { echo "$as_me:$LINENO: checking for short" >&5
! 74560: echo $ECHO_N "checking for short... $ECHO_C" >&6; }
! 74561: if test "${ac_cv_type_short+set}" = set; then
! 74562: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 74563: else
1.1.1.3 ! misho 74564: cat >conftest.$ac_ext <<_ACEOF
! 74565: /* confdefs.h. */
! 74566: _ACEOF
! 74567: cat confdefs.h >>conftest.$ac_ext
! 74568: cat >>conftest.$ac_ext <<_ACEOF
! 74569: /* end confdefs.h. */
! 74570: $ac_includes_default
! 74571: typedef short ac__type_new_;
! 74572: int
! 74573: main ()
! 74574: {
! 74575: if ((ac__type_new_ *) 0)
! 74576: return 0;
! 74577: if (sizeof (ac__type_new_))
! 74578: return 0;
! 74579: ;
! 74580: return 0;
! 74581: }
! 74582: _ACEOF
! 74583: rm -f conftest.$ac_objext
! 74584: if { (ac_try="$ac_compile"
! 74585: case "(($ac_try" in
! 74586: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74587: *) ac_try_echo=$ac_try;;
! 74588: esac
! 74589: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74590: (eval "$ac_compile") 2>conftest.er1
! 74591: ac_status=$?
! 74592: grep -v '^ *+' conftest.er1 >conftest.err
! 74593: rm -f conftest.er1
! 74594: cat conftest.err >&5
! 74595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74596: (exit $ac_status); } && {
! 74597: test -z "$ac_c_werror_flag" ||
! 74598: test ! -s conftest.err
! 74599: } && test -s conftest.$ac_objext; then
! 74600: ac_cv_type_short=yes
! 74601: else
! 74602: echo "$as_me: failed program was:" >&5
! 74603: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74604:
1.1.1.3 ! misho 74605: ac_cv_type_short=no
1.1 misho 74606: fi
74607:
1.1.1.3 ! misho 74608: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74609: fi
! 74610: { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
! 74611: echo "${ECHO_T}$ac_cv_type_short" >&6; }
1.1 misho 74612:
1.1.1.3 ! misho 74613: # The cast to long int works around a bug in the HP C Compiler
! 74614: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 74615: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 74616: # This bug is HP SR number 8606223364.
! 74617: { echo "$as_me:$LINENO: checking size of short" >&5
! 74618: echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
! 74619: if test "${ac_cv_sizeof_short+set}" = set; then
! 74620: echo $ECHO_N "(cached) $ECHO_C" >&6
! 74621: else
! 74622: if test "$cross_compiling" = yes; then
! 74623: # Depending upon the size, compute the lo and hi bounds.
! 74624: cat >conftest.$ac_ext <<_ACEOF
! 74625: /* confdefs.h. */
! 74626: _ACEOF
! 74627: cat confdefs.h >>conftest.$ac_ext
! 74628: cat >>conftest.$ac_ext <<_ACEOF
! 74629: /* end confdefs.h. */
! 74630: $ac_includes_default
! 74631: typedef short ac__type_sizeof_;
! 74632: int
! 74633: main ()
! 74634: {
! 74635: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 74636: test_array [0] = 0
1.1 misho 74637:
1.1.1.3 ! misho 74638: ;
! 74639: return 0;
! 74640: }
! 74641: _ACEOF
! 74642: rm -f conftest.$ac_objext
! 74643: if { (ac_try="$ac_compile"
! 74644: case "(($ac_try" in
! 74645: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74646: *) ac_try_echo=$ac_try;;
! 74647: esac
! 74648: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74649: (eval "$ac_compile") 2>conftest.er1
! 74650: ac_status=$?
! 74651: grep -v '^ *+' conftest.er1 >conftest.err
! 74652: rm -f conftest.er1
! 74653: cat conftest.err >&5
! 74654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74655: (exit $ac_status); } && {
! 74656: test -z "$ac_c_werror_flag" ||
! 74657: test ! -s conftest.err
! 74658: } && test -s conftest.$ac_objext; then
! 74659: ac_lo=0 ac_mid=0
! 74660: while :; do
! 74661: cat >conftest.$ac_ext <<_ACEOF
! 74662: /* confdefs.h. */
! 74663: _ACEOF
! 74664: cat confdefs.h >>conftest.$ac_ext
! 74665: cat >>conftest.$ac_ext <<_ACEOF
! 74666: /* end confdefs.h. */
! 74667: $ac_includes_default
! 74668: typedef short ac__type_sizeof_;
! 74669: int
! 74670: main ()
! 74671: {
! 74672: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 74673: test_array [0] = 0
1.1 misho 74674:
1.1.1.3 ! misho 74675: ;
! 74676: return 0;
! 74677: }
! 74678: _ACEOF
! 74679: rm -f conftest.$ac_objext
! 74680: if { (ac_try="$ac_compile"
! 74681: case "(($ac_try" in
! 74682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74683: *) ac_try_echo=$ac_try;;
! 74684: esac
! 74685: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74686: (eval "$ac_compile") 2>conftest.er1
! 74687: ac_status=$?
! 74688: grep -v '^ *+' conftest.er1 >conftest.err
! 74689: rm -f conftest.er1
! 74690: cat conftest.err >&5
! 74691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74692: (exit $ac_status); } && {
! 74693: test -z "$ac_c_werror_flag" ||
! 74694: test ! -s conftest.err
! 74695: } && test -s conftest.$ac_objext; then
! 74696: ac_hi=$ac_mid; break
! 74697: else
! 74698: echo "$as_me: failed program was:" >&5
! 74699: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74700:
1.1.1.3 ! misho 74701: ac_lo=`expr $ac_mid + 1`
! 74702: if test $ac_lo -le $ac_mid; then
! 74703: ac_lo= ac_hi=
! 74704: break
! 74705: fi
! 74706: ac_mid=`expr 2 '*' $ac_mid + 1`
! 74707: fi
1.1 misho 74708:
1.1.1.3 ! misho 74709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74710: done
! 74711: else
! 74712: echo "$as_me: failed program was:" >&5
! 74713: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74714:
1.1.1.3 ! misho 74715: cat >conftest.$ac_ext <<_ACEOF
! 74716: /* confdefs.h. */
! 74717: _ACEOF
! 74718: cat confdefs.h >>conftest.$ac_ext
! 74719: cat >>conftest.$ac_ext <<_ACEOF
! 74720: /* end confdefs.h. */
! 74721: $ac_includes_default
! 74722: typedef short ac__type_sizeof_;
! 74723: int
! 74724: main ()
! 74725: {
! 74726: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 74727: test_array [0] = 0
1.1 misho 74728:
1.1.1.3 ! misho 74729: ;
! 74730: return 0;
! 74731: }
! 74732: _ACEOF
! 74733: rm -f conftest.$ac_objext
! 74734: if { (ac_try="$ac_compile"
! 74735: case "(($ac_try" in
! 74736: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74737: *) ac_try_echo=$ac_try;;
! 74738: esac
! 74739: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74740: (eval "$ac_compile") 2>conftest.er1
! 74741: ac_status=$?
! 74742: grep -v '^ *+' conftest.er1 >conftest.err
! 74743: rm -f conftest.er1
! 74744: cat conftest.err >&5
! 74745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74746: (exit $ac_status); } && {
! 74747: test -z "$ac_c_werror_flag" ||
! 74748: test ! -s conftest.err
! 74749: } && test -s conftest.$ac_objext; then
! 74750: ac_hi=-1 ac_mid=-1
! 74751: while :; do
! 74752: cat >conftest.$ac_ext <<_ACEOF
! 74753: /* confdefs.h. */
! 74754: _ACEOF
! 74755: cat confdefs.h >>conftest.$ac_ext
! 74756: cat >>conftest.$ac_ext <<_ACEOF
! 74757: /* end confdefs.h. */
! 74758: $ac_includes_default
! 74759: typedef short ac__type_sizeof_;
! 74760: int
! 74761: main ()
! 74762: {
! 74763: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 74764: test_array [0] = 0
1.1 misho 74765:
1.1.1.3 ! misho 74766: ;
! 74767: return 0;
! 74768: }
! 74769: _ACEOF
! 74770: rm -f conftest.$ac_objext
! 74771: if { (ac_try="$ac_compile"
! 74772: case "(($ac_try" in
! 74773: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74774: *) ac_try_echo=$ac_try;;
! 74775: esac
! 74776: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74777: (eval "$ac_compile") 2>conftest.er1
! 74778: ac_status=$?
! 74779: grep -v '^ *+' conftest.er1 >conftest.err
! 74780: rm -f conftest.er1
! 74781: cat conftest.err >&5
! 74782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74783: (exit $ac_status); } && {
! 74784: test -z "$ac_c_werror_flag" ||
! 74785: test ! -s conftest.err
! 74786: } && test -s conftest.$ac_objext; then
! 74787: ac_lo=$ac_mid; break
! 74788: else
! 74789: echo "$as_me: failed program was:" >&5
! 74790: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74791:
1.1.1.3 ! misho 74792: ac_hi=`expr '(' $ac_mid ')' - 1`
! 74793: if test $ac_mid -le $ac_hi; then
! 74794: ac_lo= ac_hi=
! 74795: break
! 74796: fi
! 74797: ac_mid=`expr 2 '*' $ac_mid`
! 74798: fi
1.1 misho 74799:
1.1.1.3 ! misho 74800: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74801: done
! 74802: else
! 74803: echo "$as_me: failed program was:" >&5
! 74804: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74805:
1.1.1.3 ! misho 74806: ac_lo= ac_hi=
! 74807: fi
1.1 misho 74808:
1.1.1.3 ! misho 74809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74810: fi
1.1 misho 74811:
1.1.1.3 ! misho 74812: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74813: # Binary search between lo and hi bounds.
! 74814: while test "x$ac_lo" != "x$ac_hi"; do
! 74815: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 74816: cat >conftest.$ac_ext <<_ACEOF
! 74817: /* confdefs.h. */
! 74818: _ACEOF
! 74819: cat confdefs.h >>conftest.$ac_ext
! 74820: cat >>conftest.$ac_ext <<_ACEOF
! 74821: /* end confdefs.h. */
! 74822: $ac_includes_default
! 74823: typedef short ac__type_sizeof_;
! 74824: int
! 74825: main ()
! 74826: {
! 74827: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 74828: test_array [0] = 0
1.1 misho 74829:
1.1.1.3 ! misho 74830: ;
! 74831: return 0;
! 74832: }
! 74833: _ACEOF
! 74834: rm -f conftest.$ac_objext
! 74835: if { (ac_try="$ac_compile"
! 74836: case "(($ac_try" in
! 74837: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74838: *) ac_try_echo=$ac_try;;
! 74839: esac
! 74840: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74841: (eval "$ac_compile") 2>conftest.er1
! 74842: ac_status=$?
! 74843: grep -v '^ *+' conftest.er1 >conftest.err
! 74844: rm -f conftest.er1
! 74845: cat conftest.err >&5
! 74846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74847: (exit $ac_status); } && {
! 74848: test -z "$ac_c_werror_flag" ||
! 74849: test ! -s conftest.err
! 74850: } && test -s conftest.$ac_objext; then
! 74851: ac_hi=$ac_mid
1.1 misho 74852: else
1.1.1.3 ! misho 74853: echo "$as_me: failed program was:" >&5
! 74854: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 74855:
1.1.1.3 ! misho 74856: ac_lo=`expr '(' $ac_mid ')' + 1`
! 74857: fi
1.1 misho 74858:
1.1.1.3 ! misho 74859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 74860: done
! 74861: case $ac_lo in
! 74862: ?*) ac_cv_sizeof_short=$ac_lo;;
! 74863: '') if test "$ac_cv_type_short" = yes; then
! 74864: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
! 74865: See \`config.log' for more details." >&5
! 74866: echo "$as_me: error: cannot compute sizeof (short)
! 74867: See \`config.log' for more details." >&2;}
! 74868: { (exit 77); exit 77; }; }
! 74869: else
! 74870: ac_cv_sizeof_short=0
! 74871: fi ;;
! 74872: esac
1.1 misho 74873: else
1.1.1.3 ! misho 74874: cat >conftest.$ac_ext <<_ACEOF
! 74875: /* confdefs.h. */
! 74876: _ACEOF
! 74877: cat confdefs.h >>conftest.$ac_ext
! 74878: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 74879: /* end confdefs.h. */
1.1.1.3 ! misho 74880: $ac_includes_default
! 74881: typedef short ac__type_sizeof_;
! 74882: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 74883: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 74884: #include <stdio.h>
! 74885: #include <stdlib.h>
! 74886: int
! 74887: main ()
! 74888: {
1.1 misho 74889:
1.1.1.3 ! misho 74890: FILE *f = fopen ("conftest.val", "w");
! 74891: if (! f)
! 74892: return 1;
! 74893: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 74894: {
! 74895: long int i = longval ();
! 74896: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 74897: return 1;
! 74898: fprintf (f, "%ld\n", i);
! 74899: }
! 74900: else
! 74901: {
! 74902: unsigned long int i = ulongval ();
! 74903: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 74904: return 1;
! 74905: fprintf (f, "%lu\n", i);
! 74906: }
! 74907: return ferror (f) || fclose (f) != 0;
1.1 misho 74908:
1.1.1.3 ! misho 74909: ;
! 74910: return 0;
! 74911: }
1.1 misho 74912: _ACEOF
1.1.1.3 ! misho 74913: rm -f conftest$ac_exeext
! 74914: if { (ac_try="$ac_link"
! 74915: case "(($ac_try" in
! 74916: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74917: *) ac_try_echo=$ac_try;;
! 74918: esac
! 74919: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74920: (eval "$ac_link") 2>&5
! 74921: ac_status=$?
! 74922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74923: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 74924: { (case "(($ac_try" in
! 74925: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74926: *) ac_try_echo=$ac_try;;
! 74927: esac
! 74928: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74929: (eval "$ac_try") 2>&5
! 74930: ac_status=$?
! 74931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 74932: (exit $ac_status); }; }; then
! 74933: ac_cv_sizeof_short=`cat conftest.val`
1.1 misho 74934: else
1.1.1.3 ! misho 74935: echo "$as_me: program exited with status $ac_status" >&5
! 74936: echo "$as_me: failed program was:" >&5
! 74937: sed 's/^/| /' conftest.$ac_ext >&5
! 74938:
! 74939: ( exit $ac_status )
! 74940: if test "$ac_cv_type_short" = yes; then
! 74941: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
! 74942: See \`config.log' for more details." >&5
! 74943: echo "$as_me: error: cannot compute sizeof (short)
! 74944: See \`config.log' for more details." >&2;}
! 74945: { (exit 77); exit 77; }; }
! 74946: else
! 74947: ac_cv_sizeof_short=0
! 74948: fi
! 74949: fi
! 74950: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 74951: fi
1.1.1.3 ! misho 74952: rm -f conftest.val
1.1 misho 74953: fi
1.1.1.3 ! misho 74954: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
! 74955: echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
1.1 misho 74956:
74957:
74958:
1.1.1.3 ! misho 74959: cat >>confdefs.h <<_ACEOF
! 74960: #define SIZEOF_SHORT $ac_cv_sizeof_short
! 74961: _ACEOF
! 74962:
! 74963:
! 74964: { echo "$as_me:$LINENO: checking for long" >&5
! 74965: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
! 74966: if test "${ac_cv_type_long+set}" = set; then
! 74967: echo $ECHO_N "(cached) $ECHO_C" >&6
! 74968: else
! 74969: cat >conftest.$ac_ext <<_ACEOF
! 74970: /* confdefs.h. */
! 74971: _ACEOF
! 74972: cat confdefs.h >>conftest.$ac_ext
! 74973: cat >>conftest.$ac_ext <<_ACEOF
! 74974: /* end confdefs.h. */
! 74975: $ac_includes_default
! 74976: typedef long ac__type_new_;
! 74977: int
! 74978: main ()
! 74979: {
! 74980: if ((ac__type_new_ *) 0)
! 74981: return 0;
! 74982: if (sizeof (ac__type_new_))
! 74983: return 0;
! 74984: ;
! 74985: return 0;
! 74986: }
1.1 misho 74987: _ACEOF
1.1.1.3 ! misho 74988: rm -f conftest.$ac_objext
! 74989: if { (ac_try="$ac_compile"
! 74990: case "(($ac_try" in
! 74991: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 74992: *) ac_try_echo=$ac_try;;
! 74993: esac
! 74994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 74995: (eval "$ac_compile") 2>conftest.er1
! 74996: ac_status=$?
! 74997: grep -v '^ *+' conftest.er1 >conftest.err
! 74998: rm -f conftest.er1
! 74999: cat conftest.err >&5
! 75000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75001: (exit $ac_status); } && {
! 75002: test -z "$ac_c_werror_flag" ||
! 75003: test ! -s conftest.err
! 75004: } && test -s conftest.$ac_objext; then
! 75005: ac_cv_type_long=yes
! 75006: else
! 75007: echo "$as_me: failed program was:" >&5
! 75008: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 75009:
1.1.1.3 ! misho 75010: ac_cv_type_long=no
1.1 misho 75011: fi
75012:
1.1.1.3 ! misho 75013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 75014: fi
! 75015: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 75016: echo "${ECHO_T}$ac_cv_type_long" >&6; }
1.1 misho 75017:
1.1.1.3 ! misho 75018: # The cast to long int works around a bug in the HP C Compiler
1.1 misho 75019: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
75020: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
75021: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 75022: { echo "$as_me:$LINENO: checking size of long" >&5
! 75023: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
! 75024: if test "${ac_cv_sizeof_long+set}" = set; then
! 75025: echo $ECHO_N "(cached) $ECHO_C" >&6
! 75026: else
! 75027: if test "$cross_compiling" = yes; then
! 75028: # Depending upon the size, compute the lo and hi bounds.
! 75029: cat >conftest.$ac_ext <<_ACEOF
! 75030: /* confdefs.h. */
! 75031: _ACEOF
! 75032: cat confdefs.h >>conftest.$ac_ext
! 75033: cat >>conftest.$ac_ext <<_ACEOF
! 75034: /* end confdefs.h. */
! 75035: $ac_includes_default
! 75036: typedef long ac__type_sizeof_;
! 75037: int
! 75038: main ()
! 75039: {
! 75040: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 75041: test_array [0] = 0
! 75042:
! 75043: ;
! 75044: return 0;
! 75045: }
! 75046: _ACEOF
! 75047: rm -f conftest.$ac_objext
! 75048: if { (ac_try="$ac_compile"
! 75049: case "(($ac_try" in
! 75050: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75051: *) ac_try_echo=$ac_try;;
! 75052: esac
! 75053: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75054: (eval "$ac_compile") 2>conftest.er1
! 75055: ac_status=$?
! 75056: grep -v '^ *+' conftest.er1 >conftest.err
! 75057: rm -f conftest.er1
! 75058: cat conftest.err >&5
! 75059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75060: (exit $ac_status); } && {
! 75061: test -z "$ac_c_werror_flag" ||
! 75062: test ! -s conftest.err
! 75063: } && test -s conftest.$ac_objext; then
! 75064: ac_lo=0 ac_mid=0
! 75065: while :; do
! 75066: cat >conftest.$ac_ext <<_ACEOF
! 75067: /* confdefs.h. */
! 75068: _ACEOF
! 75069: cat confdefs.h >>conftest.$ac_ext
! 75070: cat >>conftest.$ac_ext <<_ACEOF
! 75071: /* end confdefs.h. */
! 75072: $ac_includes_default
! 75073: typedef long ac__type_sizeof_;
! 75074: int
! 75075: main ()
! 75076: {
! 75077: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 75078: test_array [0] = 0
1.1 misho 75079:
1.1.1.3 ! misho 75080: ;
! 75081: return 0;
! 75082: }
! 75083: _ACEOF
! 75084: rm -f conftest.$ac_objext
! 75085: if { (ac_try="$ac_compile"
! 75086: case "(($ac_try" in
! 75087: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75088: *) ac_try_echo=$ac_try;;
! 75089: esac
! 75090: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75091: (eval "$ac_compile") 2>conftest.er1
! 75092: ac_status=$?
! 75093: grep -v '^ *+' conftest.er1 >conftest.err
! 75094: rm -f conftest.er1
! 75095: cat conftest.err >&5
! 75096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75097: (exit $ac_status); } && {
! 75098: test -z "$ac_c_werror_flag" ||
! 75099: test ! -s conftest.err
! 75100: } && test -s conftest.$ac_objext; then
! 75101: ac_hi=$ac_mid; break
1.1 misho 75102: else
1.1.1.3 ! misho 75103: echo "$as_me: failed program was:" >&5
! 75104: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 75105:
1.1.1.3 ! misho 75106: ac_lo=`expr $ac_mid + 1`
! 75107: if test $ac_lo -le $ac_mid; then
! 75108: ac_lo= ac_hi=
! 75109: break
! 75110: fi
! 75111: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 75112: fi
75113:
1.1.1.3 ! misho 75114: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 75115: done
! 75116: else
! 75117: echo "$as_me: failed program was:" >&5
! 75118: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 75119:
1.1.1.3 ! misho 75120: cat >conftest.$ac_ext <<_ACEOF
! 75121: /* confdefs.h. */
! 75122: _ACEOF
! 75123: cat confdefs.h >>conftest.$ac_ext
! 75124: cat >>conftest.$ac_ext <<_ACEOF
! 75125: /* end confdefs.h. */
! 75126: $ac_includes_default
! 75127: typedef long ac__type_sizeof_;
! 75128: int
! 75129: main ()
! 75130: {
! 75131: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 75132: test_array [0] = 0
1.1 misho 75133:
1.1.1.3 ! misho 75134: ;
! 75135: return 0;
! 75136: }
! 75137: _ACEOF
! 75138: rm -f conftest.$ac_objext
! 75139: if { (ac_try="$ac_compile"
! 75140: case "(($ac_try" in
! 75141: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75142: *) ac_try_echo=$ac_try;;
! 75143: esac
! 75144: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75145: (eval "$ac_compile") 2>conftest.er1
! 75146: ac_status=$?
! 75147: grep -v '^ *+' conftest.er1 >conftest.err
! 75148: rm -f conftest.er1
! 75149: cat conftest.err >&5
! 75150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75151: (exit $ac_status); } && {
! 75152: test -z "$ac_c_werror_flag" ||
! 75153: test ! -s conftest.err
! 75154: } && test -s conftest.$ac_objext; then
! 75155: ac_hi=-1 ac_mid=-1
! 75156: while :; do
! 75157: cat >conftest.$ac_ext <<_ACEOF
! 75158: /* confdefs.h. */
1.1 misho 75159: _ACEOF
1.1.1.3 ! misho 75160: cat confdefs.h >>conftest.$ac_ext
! 75161: cat >>conftest.$ac_ext <<_ACEOF
! 75162: /* end confdefs.h. */
! 75163: $ac_includes_default
! 75164: typedef long ac__type_sizeof_;
! 75165: int
! 75166: main ()
! 75167: {
! 75168: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 75169: test_array [0] = 0
1.1 misho 75170:
1.1.1.3 ! misho 75171: ;
! 75172: return 0;
! 75173: }
! 75174: _ACEOF
! 75175: rm -f conftest.$ac_objext
! 75176: if { (ac_try="$ac_compile"
! 75177: case "(($ac_try" in
! 75178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75179: *) ac_try_echo=$ac_try;;
! 75180: esac
! 75181: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75182: (eval "$ac_compile") 2>conftest.er1
! 75183: ac_status=$?
! 75184: grep -v '^ *+' conftest.er1 >conftest.err
! 75185: rm -f conftest.er1
! 75186: cat conftest.err >&5
! 75187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75188: (exit $ac_status); } && {
! 75189: test -z "$ac_c_werror_flag" ||
! 75190: test ! -s conftest.err
! 75191: } && test -s conftest.$ac_objext; then
! 75192: ac_lo=$ac_mid; break
! 75193: else
! 75194: echo "$as_me: failed program was:" >&5
! 75195: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 75196:
1.1.1.3 ! misho 75197: ac_hi=`expr '(' $ac_mid ')' - 1`
! 75198: if test $ac_mid -le $ac_hi; then
! 75199: ac_lo= ac_hi=
! 75200: break
! 75201: fi
! 75202: ac_mid=`expr 2 '*' $ac_mid`
! 75203: fi
1.1 misho 75204:
1.1.1.3 ! misho 75205: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 75206: done
1.1 misho 75207: else
1.1.1.3 ! misho 75208: echo "$as_me: failed program was:" >&5
! 75209: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 75210:
1.1.1.3 ! misho 75211: ac_lo= ac_hi=
1.1 misho 75212: fi
75213:
1.1.1.3 ! misho 75214: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 75215: fi
1.1 misho 75216:
1.1.1.3 ! misho 75217: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 75218: # Binary search between lo and hi bounds.
! 75219: while test "x$ac_lo" != "x$ac_hi"; do
! 75220: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 75221: cat >conftest.$ac_ext <<_ACEOF
! 75222: /* confdefs.h. */
! 75223: _ACEOF
! 75224: cat confdefs.h >>conftest.$ac_ext
! 75225: cat >>conftest.$ac_ext <<_ACEOF
! 75226: /* end confdefs.h. */
! 75227: $ac_includes_default
! 75228: typedef long ac__type_sizeof_;
! 75229: int
! 75230: main ()
! 75231: {
! 75232: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 75233: test_array [0] = 0
1.1 misho 75234:
1.1.1.3 ! misho 75235: ;
! 75236: return 0;
! 75237: }
1.1 misho 75238: _ACEOF
1.1.1.3 ! misho 75239: rm -f conftest.$ac_objext
! 75240: if { (ac_try="$ac_compile"
! 75241: case "(($ac_try" in
! 75242: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75243: *) ac_try_echo=$ac_try;;
! 75244: esac
! 75245: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75246: (eval "$ac_compile") 2>conftest.er1
! 75247: ac_status=$?
! 75248: grep -v '^ *+' conftest.er1 >conftest.err
! 75249: rm -f conftest.er1
! 75250: cat conftest.err >&5
! 75251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75252: (exit $ac_status); } && {
! 75253: test -z "$ac_c_werror_flag" ||
! 75254: test ! -s conftest.err
! 75255: } && test -s conftest.$ac_objext; then
! 75256: ac_hi=$ac_mid
! 75257: else
! 75258: echo "$as_me: failed program was:" >&5
! 75259: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 75260:
1.1.1.3 ! misho 75261: ac_lo=`expr '(' $ac_mid ')' + 1`
! 75262: fi
1.1 misho 75263:
1.1.1.3 ! misho 75264: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 75265: done
! 75266: case $ac_lo in
! 75267: ?*) ac_cv_sizeof_long=$ac_lo;;
! 75268: '') if test "$ac_cv_type_long" = yes; then
! 75269: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 75270: See \`config.log' for more details." >&5
! 75271: echo "$as_me: error: cannot compute sizeof (long)
! 75272: See \`config.log' for more details." >&2;}
! 75273: { (exit 77); exit 77; }; }
! 75274: else
! 75275: ac_cv_sizeof_long=0
! 75276: fi ;;
! 75277: esac
! 75278: else
! 75279: cat >conftest.$ac_ext <<_ACEOF
! 75280: /* confdefs.h. */
! 75281: _ACEOF
! 75282: cat confdefs.h >>conftest.$ac_ext
! 75283: cat >>conftest.$ac_ext <<_ACEOF
! 75284: /* end confdefs.h. */
! 75285: $ac_includes_default
! 75286: typedef long ac__type_sizeof_;
! 75287: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 75288: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 75289: #include <stdio.h>
! 75290: #include <stdlib.h>
! 75291: int
! 75292: main ()
! 75293: {
! 75294:
! 75295: FILE *f = fopen ("conftest.val", "w");
! 75296: if (! f)
! 75297: return 1;
! 75298: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 75299: {
! 75300: long int i = longval ();
! 75301: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 75302: return 1;
! 75303: fprintf (f, "%ld\n", i);
! 75304: }
! 75305: else
! 75306: {
! 75307: unsigned long int i = ulongval ();
! 75308: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 75309: return 1;
! 75310: fprintf (f, "%lu\n", i);
! 75311: }
! 75312: return ferror (f) || fclose (f) != 0;
1.1 misho 75313:
1.1.1.3 ! misho 75314: ;
! 75315: return 0;
! 75316: }
! 75317: _ACEOF
! 75318: rm -f conftest$ac_exeext
! 75319: if { (ac_try="$ac_link"
! 75320: case "(($ac_try" in
! 75321: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75322: *) ac_try_echo=$ac_try;;
! 75323: esac
! 75324: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75325: (eval "$ac_link") 2>&5
! 75326: ac_status=$?
! 75327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75328: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 75329: { (case "(($ac_try" in
! 75330: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75331: *) ac_try_echo=$ac_try;;
! 75332: esac
! 75333: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75334: (eval "$ac_try") 2>&5
! 75335: ac_status=$?
! 75336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75337: (exit $ac_status); }; }; then
! 75338: ac_cv_sizeof_long=`cat conftest.val`
1.1 misho 75339: else
1.1.1.3 ! misho 75340: echo "$as_me: program exited with status $ac_status" >&5
! 75341: echo "$as_me: failed program was:" >&5
! 75342: sed 's/^/| /' conftest.$ac_ext >&5
! 75343:
! 75344: ( exit $ac_status )
! 75345: if test "$ac_cv_type_long" = yes; then
! 75346: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 75347: See \`config.log' for more details." >&5
! 75348: echo "$as_me: error: cannot compute sizeof (long)
! 75349: See \`config.log' for more details." >&2;}
! 75350: { (exit 77); exit 77; }; }
1.1 misho 75351: else
75352: ac_cv_sizeof_long=0
75353: fi
75354: fi
1.1.1.3 ! misho 75355: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 75356: fi
! 75357: rm -f conftest.val
1.1 misho 75358: fi
1.1.1.3 ! misho 75359: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 75360: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
1.1 misho 75361:
75362:
75363:
75364: cat >>confdefs.h <<_ACEOF
75365: #define SIZEOF_LONG $ac_cv_sizeof_long
75366: _ACEOF
75367:
75368:
1.1.1.3 ! misho 75369: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 75370: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
! 75371: if test "${ac_cv_c_const+set}" = set; then
! 75372: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75373: else
1.1.1.3 ! misho 75374: cat >conftest.$ac_ext <<_ACEOF
! 75375: /* confdefs.h. */
! 75376: _ACEOF
! 75377: cat confdefs.h >>conftest.$ac_ext
! 75378: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75379: /* end confdefs.h. */
75380:
75381: int
75382: main ()
75383: {
1.1.1.3 ! misho 75384: /* FIXME: Include the comments suggested by Paul. */
1.1 misho 75385: #ifndef __cplusplus
1.1.1.3 ! misho 75386: /* Ultrix mips cc rejects this. */
1.1 misho 75387: typedef int charset[2];
1.1.1.3 ! misho 75388: const charset cs;
1.1 misho 75389: /* SunOS 4.1.1 cc rejects this. */
75390: char const *const *pcpcc;
75391: char **ppc;
75392: /* NEC SVR4.0.2 mips cc rejects this. */
75393: struct point {int x, y;};
75394: static struct point const zero = {0,0};
75395: /* AIX XL C 1.02.0.0 rejects this.
75396: It does not let you subtract one const X* pointer from another in
75397: an arm of an if-expression whose if-part is not a constant
75398: expression */
75399: const char *g = "string";
75400: pcpcc = &g + (g ? g-g : 0);
75401: /* HPUX 7.0 cc rejects these. */
75402: ++pcpcc;
75403: ppc = (char**) pcpcc;
75404: pcpcc = (char const *const *) ppc;
1.1.1.3 ! misho 75405: { /* SCO 3.2v4 cc rejects this. */
! 75406: char *t;
1.1 misho 75407: char const *s = 0 ? (char *) 0 : (char const *) 0;
75408:
75409: *t++ = 0;
75410: if (s) return 0;
75411: }
75412: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
75413: int x[] = {25, 17};
75414: const int *foo = &x[0];
75415: ++foo;
75416: }
75417: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
75418: typedef const int *iptr;
75419: iptr p = 0;
75420: ++p;
75421: }
1.1.1.3 ! misho 75422: { /* AIX XL C 1.02.0.0 rejects this saying
1.1 misho 75423: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.3 ! misho 75424: struct s { int j; const int *ap[3]; };
! 75425: struct s *b; b->j = 5;
1.1 misho 75426: }
75427: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
75428: const int foo = 10;
75429: if (!foo) return 0;
75430: }
75431: return !cs[0] && !zero.x;
75432: #endif
75433:
75434: ;
75435: return 0;
75436: }
75437: _ACEOF
1.1.1.3 ! misho 75438: rm -f conftest.$ac_objext
! 75439: if { (ac_try="$ac_compile"
! 75440: case "(($ac_try" in
! 75441: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75442: *) ac_try_echo=$ac_try;;
! 75443: esac
! 75444: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75445: (eval "$ac_compile") 2>conftest.er1
! 75446: ac_status=$?
! 75447: grep -v '^ *+' conftest.er1 >conftest.err
! 75448: rm -f conftest.er1
! 75449: cat conftest.err >&5
! 75450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75451: (exit $ac_status); } && {
! 75452: test -z "$ac_c_werror_flag" ||
! 75453: test ! -s conftest.err
! 75454: } && test -s conftest.$ac_objext; then
1.1 misho 75455: ac_cv_c_const=yes
75456: else
1.1.1.3 ! misho 75457: echo "$as_me: failed program was:" >&5
! 75458: sed 's/^/| /' conftest.$ac_ext >&5
! 75459:
! 75460: ac_cv_c_const=no
1.1 misho 75461: fi
1.1.1.3 ! misho 75462:
1.1 misho 75463: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75464: fi
1.1.1.3 ! misho 75465: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 75466: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 misho 75467: if test $ac_cv_c_const = no; then
75468:
1.1.1.3 ! misho 75469: cat >>confdefs.h <<\_ACEOF
! 75470: #define const
! 75471: _ACEOF
1.1 misho 75472:
75473: fi
75474:
1.1.1.3 ! misho 75475: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
! 75476: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
! 75477: if test "${ac_cv_header_time+set}" = set; then
! 75478: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75479: else
1.1.1.3 ! misho 75480: cat >conftest.$ac_ext <<_ACEOF
! 75481: /* confdefs.h. */
! 75482: _ACEOF
! 75483: cat confdefs.h >>conftest.$ac_ext
! 75484: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75485: /* end confdefs.h. */
75486: #include <sys/types.h>
75487: #include <sys/time.h>
75488: #include <time.h>
75489:
75490: int
75491: main ()
75492: {
75493: if ((struct tm *) 0)
75494: return 0;
75495: ;
75496: return 0;
75497: }
75498: _ACEOF
1.1.1.3 ! misho 75499: rm -f conftest.$ac_objext
! 75500: if { (ac_try="$ac_compile"
! 75501: case "(($ac_try" in
! 75502: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75503: *) ac_try_echo=$ac_try;;
! 75504: esac
! 75505: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75506: (eval "$ac_compile") 2>conftest.er1
! 75507: ac_status=$?
! 75508: grep -v '^ *+' conftest.er1 >conftest.err
! 75509: rm -f conftest.er1
! 75510: cat conftest.err >&5
! 75511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75512: (exit $ac_status); } && {
! 75513: test -z "$ac_c_werror_flag" ||
! 75514: test ! -s conftest.err
! 75515: } && test -s conftest.$ac_objext; then
1.1 misho 75516: ac_cv_header_time=yes
75517: else
1.1.1.3 ! misho 75518: echo "$as_me: failed program was:" >&5
! 75519: sed 's/^/| /' conftest.$ac_ext >&5
! 75520:
! 75521: ac_cv_header_time=no
1.1 misho 75522: fi
1.1.1.3 ! misho 75523:
1.1 misho 75524: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75525: fi
1.1.1.3 ! misho 75526: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
! 75527: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.1 misho 75528: if test $ac_cv_header_time = yes; then
75529:
1.1.1.3 ! misho 75530: cat >>confdefs.h <<\_ACEOF
! 75531: #define TIME_WITH_SYS_TIME 1
! 75532: _ACEOF
1.1 misho 75533:
75534: fi
75535:
75536: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
75537: # for constant arguments. Useless!
1.1.1.3 ! misho 75538: { echo "$as_me:$LINENO: checking for working alloca.h" >&5
! 75539: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
! 75540: if test "${ac_cv_working_alloca_h+set}" = set; then
! 75541: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75542: else
1.1.1.3 ! misho 75543: cat >conftest.$ac_ext <<_ACEOF
! 75544: /* confdefs.h. */
! 75545: _ACEOF
! 75546: cat confdefs.h >>conftest.$ac_ext
! 75547: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75548: /* end confdefs.h. */
75549: #include <alloca.h>
75550: int
75551: main ()
75552: {
75553: char *p = (char *) alloca (2 * sizeof (int));
75554: if (p) return 0;
75555: ;
75556: return 0;
75557: }
75558: _ACEOF
1.1.1.3 ! misho 75559: rm -f conftest.$ac_objext conftest$ac_exeext
! 75560: if { (ac_try="$ac_link"
! 75561: case "(($ac_try" in
! 75562: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75563: *) ac_try_echo=$ac_try;;
! 75564: esac
! 75565: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75566: (eval "$ac_link") 2>conftest.er1
! 75567: ac_status=$?
! 75568: grep -v '^ *+' conftest.er1 >conftest.err
! 75569: rm -f conftest.er1
! 75570: cat conftest.err >&5
! 75571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75572: (exit $ac_status); } && {
! 75573: test -z "$ac_c_werror_flag" ||
! 75574: test ! -s conftest.err
! 75575: } && test -s conftest$ac_exeext &&
! 75576: $as_test_x conftest$ac_exeext; then
1.1 misho 75577: ac_cv_working_alloca_h=yes
75578: else
1.1.1.3 ! misho 75579: echo "$as_me: failed program was:" >&5
! 75580: sed 's/^/| /' conftest.$ac_ext >&5
! 75581:
! 75582: ac_cv_working_alloca_h=no
1.1 misho 75583: fi
1.1.1.3 ! misho 75584:
! 75585: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 75586: conftest$ac_exeext conftest.$ac_ext
1.1 misho 75587: fi
1.1.1.3 ! misho 75588: { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
! 75589: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
1.1 misho 75590: if test $ac_cv_working_alloca_h = yes; then
75591:
1.1.1.3 ! misho 75592: cat >>confdefs.h <<\_ACEOF
! 75593: #define HAVE_ALLOCA_H 1
! 75594: _ACEOF
1.1 misho 75595:
75596: fi
75597:
1.1.1.3 ! misho 75598: { echo "$as_me:$LINENO: checking for alloca" >&5
! 75599: echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
! 75600: if test "${ac_cv_func_alloca_works+set}" = set; then
! 75601: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75602: else
1.1.1.3 ! misho 75603: cat >conftest.$ac_ext <<_ACEOF
! 75604: /* confdefs.h. */
! 75605: _ACEOF
! 75606: cat confdefs.h >>conftest.$ac_ext
! 75607: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75608: /* end confdefs.h. */
75609: #ifdef __GNUC__
75610: # define alloca __builtin_alloca
75611: #else
75612: # ifdef _MSC_VER
75613: # include <malloc.h>
75614: # define alloca _alloca
75615: # else
75616: # ifdef HAVE_ALLOCA_H
75617: # include <alloca.h>
75618: # else
75619: # ifdef _AIX
75620: #pragma alloca
75621: # else
75622: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1.1.3 ! misho 75623: char *alloca ();
1.1 misho 75624: # endif
75625: # endif
75626: # endif
75627: # endif
75628: #endif
75629:
75630: int
75631: main ()
75632: {
75633: char *p = (char *) alloca (1);
75634: if (p) return 0;
75635: ;
75636: return 0;
75637: }
75638: _ACEOF
1.1.1.3 ! misho 75639: rm -f conftest.$ac_objext conftest$ac_exeext
! 75640: if { (ac_try="$ac_link"
! 75641: case "(($ac_try" in
! 75642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75643: *) ac_try_echo=$ac_try;;
! 75644: esac
! 75645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75646: (eval "$ac_link") 2>conftest.er1
! 75647: ac_status=$?
! 75648: grep -v '^ *+' conftest.er1 >conftest.err
! 75649: rm -f conftest.er1
! 75650: cat conftest.err >&5
! 75651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75652: (exit $ac_status); } && {
! 75653: test -z "$ac_c_werror_flag" ||
! 75654: test ! -s conftest.err
! 75655: } && test -s conftest$ac_exeext &&
! 75656: $as_test_x conftest$ac_exeext; then
1.1 misho 75657: ac_cv_func_alloca_works=yes
75658: else
1.1.1.3 ! misho 75659: echo "$as_me: failed program was:" >&5
! 75660: sed 's/^/| /' conftest.$ac_ext >&5
! 75661:
! 75662: ac_cv_func_alloca_works=no
1.1 misho 75663: fi
1.1.1.3 ! misho 75664:
! 75665: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 75666: conftest$ac_exeext conftest.$ac_ext
1.1 misho 75667: fi
1.1.1.3 ! misho 75668: { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
! 75669: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
1.1 misho 75670:
75671: if test $ac_cv_func_alloca_works = yes; then
75672:
1.1.1.3 ! misho 75673: cat >>confdefs.h <<\_ACEOF
! 75674: #define HAVE_ALLOCA 1
! 75675: _ACEOF
1.1 misho 75676:
75677: else
75678: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
75679: # that cause trouble. Some versions do not even contain alloca or
75680: # contain a buggy version. If you still want to use their alloca,
75681: # use ar to extract alloca.o from them instead of compiling alloca.c.
75682:
75683: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
75684:
1.1.1.3 ! misho 75685: cat >>confdefs.h <<\_ACEOF
! 75686: #define C_ALLOCA 1
! 75687: _ACEOF
1.1 misho 75688:
75689:
1.1.1.3 ! misho 75690: { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
! 75691: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
! 75692: if test "${ac_cv_os_cray+set}" = set; then
! 75693: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75694: else
1.1.1.3 ! misho 75695: cat >conftest.$ac_ext <<_ACEOF
! 75696: /* confdefs.h. */
! 75697: _ACEOF
! 75698: cat confdefs.h >>conftest.$ac_ext
! 75699: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75700: /* end confdefs.h. */
75701: #if defined CRAY && ! defined CRAY2
75702: webecray
75703: #else
75704: wenotbecray
75705: #endif
75706:
75707: _ACEOF
75708: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 75709: $EGREP "webecray" >/dev/null 2>&1; then
1.1 misho 75710: ac_cv_os_cray=yes
75711: else
75712: ac_cv_os_cray=no
75713: fi
1.1.1.3 ! misho 75714: rm -f -r conftest*
1.1 misho 75715:
75716: fi
1.1.1.3 ! misho 75717: { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
! 75718: echo "${ECHO_T}$ac_cv_os_cray" >&6; }
1.1 misho 75719: if test $ac_cv_os_cray = yes; then
75720: for ac_func in _getb67 GETB67 getb67; do
1.1.1.3 ! misho 75721: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 75722: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 75723: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 75724: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 75725: echo $ECHO_N "(cached) $ECHO_C" >&6
! 75726: else
! 75727: cat >conftest.$ac_ext <<_ACEOF
! 75728: /* confdefs.h. */
! 75729: _ACEOF
! 75730: cat confdefs.h >>conftest.$ac_ext
! 75731: cat >>conftest.$ac_ext <<_ACEOF
! 75732: /* end confdefs.h. */
! 75733: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 75734: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 75735: #define $ac_func innocuous_$ac_func
! 75736:
! 75737: /* System header to define __stub macros and hopefully few prototypes,
! 75738: which can conflict with char $ac_func (); below.
! 75739: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 75740: <limits.h> exists even on freestanding compilers. */
! 75741:
! 75742: #ifdef __STDC__
! 75743: # include <limits.h>
! 75744: #else
! 75745: # include <assert.h>
! 75746: #endif
! 75747:
! 75748: #undef $ac_func
! 75749:
! 75750: /* Override any GCC internal prototype to avoid an error.
! 75751: Use char because int might match the return type of a GCC
! 75752: builtin and then its argument prototype would still apply. */
! 75753: #ifdef __cplusplus
! 75754: extern "C"
! 75755: #endif
! 75756: char $ac_func ();
! 75757: /* The GNU C library defines this for functions which it implements
! 75758: to always fail with ENOSYS. Some functions are actually named
! 75759: something starting with __ and the normal name is an alias. */
! 75760: #if defined __stub_$ac_func || defined __stub___$ac_func
! 75761: choke me
! 75762: #endif
! 75763:
! 75764: int
! 75765: main ()
! 75766: {
! 75767: return $ac_func ();
! 75768: ;
! 75769: return 0;
! 75770: }
! 75771: _ACEOF
! 75772: rm -f conftest.$ac_objext conftest$ac_exeext
! 75773: if { (ac_try="$ac_link"
! 75774: case "(($ac_try" in
! 75775: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75776: *) ac_try_echo=$ac_try;;
! 75777: esac
! 75778: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75779: (eval "$ac_link") 2>conftest.er1
! 75780: ac_status=$?
! 75781: grep -v '^ *+' conftest.er1 >conftest.err
! 75782: rm -f conftest.er1
! 75783: cat conftest.err >&5
! 75784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75785: (exit $ac_status); } && {
! 75786: test -z "$ac_c_werror_flag" ||
! 75787: test ! -s conftest.err
! 75788: } && test -s conftest$ac_exeext &&
! 75789: $as_test_x conftest$ac_exeext; then
! 75790: eval "$as_ac_var=yes"
! 75791: else
! 75792: echo "$as_me: failed program was:" >&5
! 75793: sed 's/^/| /' conftest.$ac_ext >&5
! 75794:
! 75795: eval "$as_ac_var=no"
! 75796: fi
! 75797:
! 75798: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 75799: conftest$ac_exeext conftest.$ac_ext
! 75800: fi
! 75801: ac_res=`eval echo '${'$as_ac_var'}'`
! 75802: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 75803: echo "${ECHO_T}$ac_res" >&6; }
! 75804: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 75805:
75806: cat >>confdefs.h <<_ACEOF
75807: #define CRAY_STACKSEG_END $ac_func
75808: _ACEOF
75809:
75810: break
75811: fi
75812:
75813: done
75814: fi
75815:
1.1.1.3 ! misho 75816: { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
! 75817: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
! 75818: if test "${ac_cv_c_stack_direction+set}" = set; then
! 75819: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75820: else
1.1.1.3 ! misho 75821: if test "$cross_compiling" = yes; then
1.1 misho 75822: ac_cv_c_stack_direction=0
75823: else
1.1.1.3 ! misho 75824: cat >conftest.$ac_ext <<_ACEOF
! 75825: /* confdefs.h. */
! 75826: _ACEOF
! 75827: cat confdefs.h >>conftest.$ac_ext
! 75828: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75829: /* end confdefs.h. */
75830: $ac_includes_default
75831: int
1.1.1.3 ! misho 75832: find_stack_direction ()
1.1 misho 75833: {
1.1.1.3 ! misho 75834: static char *addr = 0;
! 75835: auto char dummy;
! 75836: if (addr == 0)
! 75837: {
! 75838: addr = &dummy;
! 75839: return find_stack_direction ();
! 75840: }
! 75841: else
! 75842: return (&dummy > addr) ? 1 : -1;
1.1 misho 75843: }
75844:
75845: int
1.1.1.3 ! misho 75846: main ()
1.1 misho 75847: {
1.1.1.3 ! misho 75848: return find_stack_direction () < 0;
1.1 misho 75849: }
75850: _ACEOF
1.1.1.3 ! misho 75851: rm -f conftest$ac_exeext
! 75852: if { (ac_try="$ac_link"
! 75853: case "(($ac_try" in
! 75854: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75855: *) ac_try_echo=$ac_try;;
! 75856: esac
! 75857: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75858: (eval "$ac_link") 2>&5
! 75859: ac_status=$?
! 75860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75861: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 75862: { (case "(($ac_try" in
! 75863: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75864: *) ac_try_echo=$ac_try;;
! 75865: esac
! 75866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75867: (eval "$ac_try") 2>&5
! 75868: ac_status=$?
! 75869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75870: (exit $ac_status); }; }; then
1.1 misho 75871: ac_cv_c_stack_direction=1
75872: else
1.1.1.3 ! misho 75873: echo "$as_me: program exited with status $ac_status" >&5
! 75874: echo "$as_me: failed program was:" >&5
! 75875: sed 's/^/| /' conftest.$ac_ext >&5
! 75876:
! 75877: ( exit $ac_status )
! 75878: ac_cv_c_stack_direction=-1
1.1 misho 75879: fi
1.1.1.3 ! misho 75880: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 75881: fi
75882:
1.1.1.3 ! misho 75883:
1.1 misho 75884: fi
1.1.1.3 ! misho 75885: { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
! 75886: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
! 75887:
1.1 misho 75888: cat >>confdefs.h <<_ACEOF
75889: #define STACK_DIRECTION $ac_cv_c_stack_direction
75890: _ACEOF
75891:
75892:
75893: fi
75894:
1.1.1.3 ! misho 75895: { echo "$as_me:$LINENO: checking for working memcmp" >&5
! 75896: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
! 75897: if test "${ac_cv_func_memcmp_working+set}" = set; then
! 75898: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 75899: else
1.1.1.3 ! misho 75900: if test "$cross_compiling" = yes; then
1.1 misho 75901: ac_cv_func_memcmp_working=no
75902: else
1.1.1.3 ! misho 75903: cat >conftest.$ac_ext <<_ACEOF
! 75904: /* confdefs.h. */
! 75905: _ACEOF
! 75906: cat confdefs.h >>conftest.$ac_ext
! 75907: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 75908: /* end confdefs.h. */
75909: $ac_includes_default
75910: int
75911: main ()
75912: {
75913:
75914: /* Some versions of memcmp are not 8-bit clean. */
75915: char c0 = '\100', c1 = '\200', c2 = '\201';
75916: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
75917: return 1;
75918:
75919: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
75920: or more and with at least one buffer not starting on a 4-byte boundary.
75921: William Lewis provided this test program. */
75922: {
75923: char foo[21];
75924: char bar[21];
75925: int i;
75926: for (i = 0; i < 4; i++)
75927: {
75928: char *a = foo + i;
75929: char *b = bar + i;
75930: strcpy (a, "--------01111111");
75931: strcpy (b, "--------10000000");
75932: if (memcmp (a, b, 16) >= 0)
75933: return 1;
75934: }
75935: return 0;
75936: }
75937:
75938: ;
75939: return 0;
75940: }
75941: _ACEOF
1.1.1.3 ! misho 75942: rm -f conftest$ac_exeext
! 75943: if { (ac_try="$ac_link"
! 75944: case "(($ac_try" in
! 75945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75946: *) ac_try_echo=$ac_try;;
! 75947: esac
! 75948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75949: (eval "$ac_link") 2>&5
! 75950: ac_status=$?
! 75951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75952: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 75953: { (case "(($ac_try" in
! 75954: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 75955: *) ac_try_echo=$ac_try;;
! 75956: esac
! 75957: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 75958: (eval "$ac_try") 2>&5
! 75959: ac_status=$?
! 75960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 75961: (exit $ac_status); }; }; then
1.1 misho 75962: ac_cv_func_memcmp_working=yes
75963: else
1.1.1.3 ! misho 75964: echo "$as_me: program exited with status $ac_status" >&5
! 75965: echo "$as_me: failed program was:" >&5
! 75966: sed 's/^/| /' conftest.$ac_ext >&5
! 75967:
! 75968: ( exit $ac_status )
! 75969: ac_cv_func_memcmp_working=no
1.1 misho 75970: fi
1.1.1.3 ! misho 75971: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 75972: fi
75973:
1.1.1.3 ! misho 75974:
1.1 misho 75975: fi
1.1.1.3 ! misho 75976: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
! 75977: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
1.1 misho 75978: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
75979: *" memcmp.$ac_objext "* ) ;;
75980: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
75981: ;;
75982: esac
75983:
75984:
1.1.1.3 ! misho 75985: if test "${ac_cv_header_stdarg_h+set}" = set; then
! 75986: { echo "$as_me:$LINENO: checking for stdarg.h" >&5
! 75987: echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
! 75988: if test "${ac_cv_header_stdarg_h+set}" = set; then
! 75989: echo $ECHO_N "(cached) $ECHO_C" >&6
! 75990: fi
! 75991: { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
! 75992: echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
! 75993: else
! 75994: # Is the header compilable?
! 75995: { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
! 75996: echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
! 75997: cat >conftest.$ac_ext <<_ACEOF
! 75998: /* confdefs.h. */
! 75999: _ACEOF
! 76000: cat confdefs.h >>conftest.$ac_ext
! 76001: cat >>conftest.$ac_ext <<_ACEOF
! 76002: /* end confdefs.h. */
! 76003: $ac_includes_default
! 76004: #include <stdarg.h>
! 76005: _ACEOF
! 76006: rm -f conftest.$ac_objext
! 76007: if { (ac_try="$ac_compile"
! 76008: case "(($ac_try" in
! 76009: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 76010: *) ac_try_echo=$ac_try;;
! 76011: esac
! 76012: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 76013: (eval "$ac_compile") 2>conftest.er1
! 76014: ac_status=$?
! 76015: grep -v '^ *+' conftest.er1 >conftest.err
! 76016: rm -f conftest.er1
! 76017: cat conftest.err >&5
! 76018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 76019: (exit $ac_status); } && {
! 76020: test -z "$ac_c_werror_flag" ||
! 76021: test ! -s conftest.err
! 76022: } && test -s conftest.$ac_objext; then
! 76023: ac_header_compiler=yes
! 76024: else
! 76025: echo "$as_me: failed program was:" >&5
! 76026: sed 's/^/| /' conftest.$ac_ext >&5
! 76027:
! 76028: ac_header_compiler=no
! 76029: fi
! 76030:
! 76031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 76032: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 76033: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 76034:
! 76035: # Is the header present?
! 76036: { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
! 76037: echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
! 76038: cat >conftest.$ac_ext <<_ACEOF
! 76039: /* confdefs.h. */
! 76040: _ACEOF
! 76041: cat confdefs.h >>conftest.$ac_ext
! 76042: cat >>conftest.$ac_ext <<_ACEOF
! 76043: /* end confdefs.h. */
! 76044: #include <stdarg.h>
! 76045: _ACEOF
! 76046: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 76047: case "(($ac_try" in
! 76048: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 76049: *) ac_try_echo=$ac_try;;
! 76050: esac
! 76051: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 76052: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 76053: ac_status=$?
! 76054: grep -v '^ *+' conftest.er1 >conftest.err
! 76055: rm -f conftest.er1
! 76056: cat conftest.err >&5
! 76057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 76058: (exit $ac_status); } >/dev/null && {
! 76059: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 76060: test ! -s conftest.err
! 76061: }; then
! 76062: ac_header_preproc=yes
! 76063: else
! 76064: echo "$as_me: failed program was:" >&5
! 76065: sed 's/^/| /' conftest.$ac_ext >&5
! 76066:
! 76067: ac_header_preproc=no
! 76068: fi
! 76069:
! 76070: rm -f conftest.err conftest.$ac_ext
! 76071: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 76072: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 76073:
! 76074: # So? What about this header?
! 76075: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 76076: yes:no: )
! 76077: { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 76078: echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 76079: { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
! 76080: echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
! 76081: ac_header_preproc=yes
! 76082: ;;
! 76083: no:yes:* )
! 76084: { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
! 76085: echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
! 76086: { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
! 76087: echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
! 76088: { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
! 76089: echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
! 76090: { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
! 76091: echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 76092: { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
! 76093: echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
! 76094: { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
! 76095: echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
! 76096:
! 76097: ;;
! 76098: esac
! 76099: { echo "$as_me:$LINENO: checking for stdarg.h" >&5
! 76100: echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
! 76101: if test "${ac_cv_header_stdarg_h+set}" = set; then
! 76102: echo $ECHO_N "(cached) $ECHO_C" >&6
! 76103: else
! 76104: ac_cv_header_stdarg_h=$ac_header_preproc
! 76105: fi
! 76106: { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
! 76107: echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
! 76108:
! 76109: fi
! 76110: if test $ac_cv_header_stdarg_h = yes; then
1.1 misho 76111:
76112:
1.1.1.3 ! misho 76113: cat >>confdefs.h <<\_ACEOF
! 76114: #define HAVE_STDARG_PROTOTYPES 1
! 76115: _ACEOF
1.1 misho 76116:
76117:
76118: fi
76119:
76120:
76121:
1.1.1.3 ! misho 76122: cat >>confdefs.h <<\_ACEOF
! 76123: #define PHP_ONIG_BUNDLED 1
! 76124: _ACEOF
1.1 misho 76125:
76126:
1.1.1.3 ! misho 76127: cat >>confdefs.h <<\_ACEOF
! 76128: #define HAVE_ONIG 1
! 76129: _ACEOF
1.1 misho 76130:
76131:
76132: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY"
76133:
76134:
76135: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma"
76136:
76137:
76138: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc"
76139:
76140:
76141: PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma"
76142:
76143:
76144: PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h"
76145:
76146:
76147: PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
76148: oniguruma/regcomp.c
76149: oniguruma/regerror.c
76150: oniguruma/regexec.c
76151: oniguruma/reggnu.c
76152: oniguruma/regparse.c
76153: oniguruma/regenc.c
76154: oniguruma/regext.c
76155: oniguruma/regsyntax.c
76156: oniguruma/regtrav.c
76157: oniguruma/regversion.c
76158: oniguruma/st.c
76159: oniguruma/enc/unicode.c
76160: oniguruma/enc/ascii.c
76161: oniguruma/enc/utf8.c
76162: oniguruma/enc/euc_jp.c
76163: oniguruma/enc/euc_tw.c
76164: oniguruma/enc/euc_kr.c
76165: oniguruma/enc/sjis.c
76166: oniguruma/enc/iso8859_1.c
76167: oniguruma/enc/iso8859_2.c
76168: oniguruma/enc/iso8859_3.c
76169: oniguruma/enc/iso8859_4.c
76170: oniguruma/enc/iso8859_5.c
76171: oniguruma/enc/iso8859_6.c
76172: oniguruma/enc/iso8859_7.c
76173: oniguruma/enc/iso8859_8.c
76174: oniguruma/enc/iso8859_9.c
76175: oniguruma/enc/iso8859_10.c
76176: oniguruma/enc/iso8859_11.c
76177: oniguruma/enc/iso8859_13.c
76178: oniguruma/enc/iso8859_14.c
76179: oniguruma/enc/iso8859_15.c
76180: oniguruma/enc/iso8859_16.c
76181: oniguruma/enc/koi8.c
76182: oniguruma/enc/koi8_r.c
76183: oniguruma/enc/big5.c
76184: oniguruma/enc/utf16_be.c
76185: oniguruma/enc/utf16_le.c
76186: oniguruma/enc/utf32_be.c
76187: oniguruma/enc/utf32_le.c
76188: "
76189:
76190:
76191: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h"
76192:
76193: else
76194: if test ! -f "$PHP_ONIG/include/oniguruma.h"; then
1.1.1.3 ! misho 76195: { { echo "$as_me:$LINENO: error: oniguruma.h not found in $PHP_ONIG/include" >&5
! 76196: echo "$as_me: error: oniguruma.h not found in $PHP_ONIG/include" >&2;}
! 76197: { (exit 1); exit 1; }; }
1.1 misho 76198: fi
76199:
76200: if test "$PHP_ONIG/include" != "/usr/include"; then
76201:
76202: if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then
76203: ai_p=$PHP_ONIG/include
76204: else
76205:
76206: ep_dir="`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'`"
76207:
76208: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76209: ai_p="$ep_realdir/`basename \"$PHP_ONIG/include\"`"
76210: fi
76211:
76212:
76213:
76214: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76215:
76216: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
76217: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76218: eval "INCLUDEPATH$unique=set"
76219:
76220: if test ""; then
76221: INCLUDES="-I$ai_p $INCLUDES"
76222: else
76223: INCLUDES="$INCLUDES -I$ai_p"
76224: fi
76225:
76226: fi
76227:
76228: fi
76229:
76230:
76231:
76232: save_old_LDFLAGS=$LDFLAGS
76233: ac_stuff="
76234: -L$PHP_ONIG/$PHP_LIBDIR
76235: "
76236:
76237: save_ext_shared=$ext_shared
76238: ext_shared=yes
76239:
76240: for ac_i in $ac_stuff; do
76241: case $ac_i in
76242: -pthread)
76243: if test "$ext_shared" = "yes"; then
76244: LDFLAGS="$LDFLAGS -pthread"
76245: else
76246:
76247:
76248: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76249:
76250: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76251: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76252: eval "EXTRA_LDFLAGS$unique=set"
76253: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76254: fi
76255:
76256: fi
76257: ;;
76258: -l*)
76259: ac_ii=`echo $ac_i|cut -c 3-`
76260:
76261:
76262: case $ac_ii in
76263: c|c_r|pthread*) ;;
76264: *)
76265: if test "$ext_shared" = "yes"; then
76266: LDFLAGS="$LDFLAGS -l$ac_ii"
76267: else
76268:
76269:
76270: case $ac_ii in
76271: c|c_r|pthread*) ;;
76272: *)
76273: LIBS="$LIBS -l$ac_ii"
76274: ;;
76275: esac
76276:
76277:
76278: fi
76279: ;;
76280: esac
76281:
76282:
76283: ;;
76284: -L*)
76285: ac_ii=`echo $ac_i|cut -c 3-`
76286:
76287: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76288:
76289: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76290: ai_p=$ac_ii
76291: else
76292:
76293: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
76294:
76295: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76296: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
76297: fi
76298:
76299:
76300: if test "$ext_shared" = "yes"; then
76301: LDFLAGS="-L$ai_p $LDFLAGS"
76302: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76303: else
76304:
76305:
76306:
76307: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76308:
76309: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76310: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76311: eval "LIBPATH$unique=set"
76312:
76313: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76314: LDFLAGS="$LDFLAGS -L$ai_p"
76315: PHP_RPATHS="$PHP_RPATHS $ai_p"
76316:
76317: fi
76318:
76319:
76320: fi
76321:
76322: fi
76323:
76324: ;;
76325: esac
76326: done
76327:
1.1.1.3 ! misho 76328: { echo "$as_me:$LINENO: checking for onig_init in -lonig" >&5
! 76329: echo $ECHO_N "checking for onig_init in -lonig... $ECHO_C" >&6; }
! 76330: if test "${ac_cv_lib_onig_onig_init+set}" = set; then
! 76331: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 76332: else
76333: ac_check_lib_save_LIBS=$LIBS
76334: LIBS="-lonig $LIBS"
1.1.1.3 ! misho 76335: cat >conftest.$ac_ext <<_ACEOF
! 76336: /* confdefs.h. */
! 76337: _ACEOF
! 76338: cat confdefs.h >>conftest.$ac_ext
! 76339: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 76340: /* end confdefs.h. */
76341:
76342: /* Override any GCC internal prototype to avoid an error.
76343: Use char because int might match the return type of a GCC
76344: builtin and then its argument prototype would still apply. */
76345: #ifdef __cplusplus
76346: extern "C"
76347: #endif
76348: char onig_init ();
76349: int
76350: main ()
76351: {
76352: return onig_init ();
76353: ;
76354: return 0;
76355: }
76356: _ACEOF
1.1.1.3 ! misho 76357: rm -f conftest.$ac_objext conftest$ac_exeext
! 76358: if { (ac_try="$ac_link"
! 76359: case "(($ac_try" in
! 76360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 76361: *) ac_try_echo=$ac_try;;
! 76362: esac
! 76363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 76364: (eval "$ac_link") 2>conftest.er1
! 76365: ac_status=$?
! 76366: grep -v '^ *+' conftest.er1 >conftest.err
! 76367: rm -f conftest.er1
! 76368: cat conftest.err >&5
! 76369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 76370: (exit $ac_status); } && {
! 76371: test -z "$ac_c_werror_flag" ||
! 76372: test ! -s conftest.err
! 76373: } && test -s conftest$ac_exeext &&
! 76374: $as_test_x conftest$ac_exeext; then
1.1 misho 76375: ac_cv_lib_onig_onig_init=yes
76376: else
1.1.1.3 ! misho 76377: echo "$as_me: failed program was:" >&5
! 76378: sed 's/^/| /' conftest.$ac_ext >&5
! 76379:
! 76380: ac_cv_lib_onig_onig_init=no
1.1 misho 76381: fi
1.1.1.3 ! misho 76382:
! 76383: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 76384: conftest$ac_exeext conftest.$ac_ext
1.1 misho 76385: LIBS=$ac_check_lib_save_LIBS
76386: fi
1.1.1.3 ! misho 76387: { echo "$as_me:$LINENO: result: $ac_cv_lib_onig_onig_init" >&5
! 76388: echo "${ECHO_T}$ac_cv_lib_onig_onig_init" >&6; }
! 76389: if test $ac_cv_lib_onig_onig_init = yes; then
1.1 misho 76390:
76391: LDFLAGS=$save_old_LDFLAGS
76392: ext_shared=$save_ext_shared
76393:
76394:
76395:
76396: if test "$ext_shared" = "yes"; then
76397: MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD"
76398: if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
76399:
76400: if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
76401:
76402: if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
76403: ai_p=$PHP_ONIG/$PHP_LIBDIR
76404: else
76405:
76406: ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76407:
76408: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76409: ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
76410: fi
76411:
76412:
76413: if test "$ext_shared" = "yes"; then
76414: MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
76415: test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
76416: else
76417:
76418:
76419:
76420: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76421:
76422: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76423: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76424: eval "LIBPATH$unique=set"
76425:
76426: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76427: LDFLAGS="$LDFLAGS -L$ai_p"
76428: PHP_RPATHS="$PHP_RPATHS $ai_p"
76429:
76430: fi
76431:
76432:
76433: fi
76434:
76435: fi
76436:
76437: fi
76438: else
76439:
76440:
76441: if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
76442:
76443: if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
76444:
76445: if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
76446: ai_p=$PHP_ONIG/$PHP_LIBDIR
76447: else
76448:
76449: ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76450:
76451: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76452: ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
76453: fi
76454:
76455:
76456:
76457:
76458:
76459: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76460:
76461: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76462: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76463: eval "LIBPATH$unique=set"
76464:
76465: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76466: LDFLAGS="$LDFLAGS -L$ai_p"
76467: PHP_RPATHS="$PHP_RPATHS $ai_p"
76468:
76469: fi
76470:
76471:
76472:
76473: fi
76474:
76475: fi
76476:
76477:
76478: case onig in
76479: c|c_r|pthread*) ;;
76480: *)
76481: LIBS="-lonig $LIBS"
76482: ;;
76483: esac
76484:
76485:
76486:
76487:
76488: fi
76489:
76490:
76491:
1.1.1.3 ! misho 76492: cat >>confdefs.h <<\_ACEOF
! 76493: #define HAVE_ONIG 1
! 76494: _ACEOF
1.1 misho 76495:
76496:
76497:
76498: else
76499:
76500: LDFLAGS=$save_old_LDFLAGS
76501: ext_shared=$save_ext_shared
76502: unset ac_cv_lib_onig_onig_init
76503:
1.1.1.3 ! misho 76504: { { echo "$as_me:$LINENO: error: Problem with oniguruma. Please check config.log for more information." >&5
! 76505: echo "$as_me: error: Problem with oniguruma. Please check config.log for more information." >&2;}
! 76506: { (exit 1); exit 1; }; }
1.1 misho 76507:
76508:
76509: fi
76510:
76511:
76512: save_old_LDFLAGS=$LDFLAGS
76513:
76514: for ac_i in $MBSTRING_SHARED_LIBADD; do
76515: case $ac_i in
76516: -pthread)
76517: if test "$ext_shared" = "yes"; then
76518: LDFLAGS="$LDFLAGS -pthread"
76519: else
76520:
76521:
76522: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76523:
76524: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76525: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76526: eval "EXTRA_LDFLAGS$unique=set"
76527: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76528: fi
76529:
76530: fi
76531: ;;
76532: -l*)
76533: ac_ii=`echo $ac_i|cut -c 3-`
76534:
76535:
76536: case $ac_ii in
76537: c|c_r|pthread*) ;;
76538: *)
76539: if test "$ext_shared" = "yes"; then
76540: LDFLAGS="$LDFLAGS -l$ac_ii"
76541: else
76542:
76543:
76544: case $ac_ii in
76545: c|c_r|pthread*) ;;
76546: *)
76547: LIBS="$LIBS -l$ac_ii"
76548: ;;
76549: esac
76550:
76551:
76552: fi
76553: ;;
76554: esac
76555:
76556:
76557: ;;
76558: -L*)
76559: ac_ii=`echo $ac_i|cut -c 3-`
76560:
76561: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76562:
76563: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76564: ai_p=$ac_ii
76565: else
76566:
76567: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
76568:
76569: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76570: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
76571: fi
76572:
76573:
76574: if test "$ext_shared" = "yes"; then
76575: LDFLAGS="-L$ai_p $LDFLAGS"
76576: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76577: else
76578:
76579:
76580:
76581: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76582:
76583: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76584: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76585: eval "LIBPATH$unique=set"
76586:
76587: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76588: LDFLAGS="$LDFLAGS -L$ai_p"
76589: PHP_RPATHS="$PHP_RPATHS $ai_p"
76590:
76591: fi
76592:
76593:
76594: fi
76595:
76596: fi
76597:
76598: ;;
76599: esac
76600: done
76601:
1.1.1.3 ! misho 76602: { echo "$as_me:$LINENO: checking if oniguruma has an invalid entry for KOI8 encoding" >&5
! 76603: echo $ECHO_N "checking if oniguruma has an invalid entry for KOI8 encoding... $ECHO_C" >&6; }
! 76604: cat >conftest.$ac_ext <<_ACEOF
! 76605: /* confdefs.h. */
! 76606: _ACEOF
! 76607: cat confdefs.h >>conftest.$ac_ext
! 76608: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 76609: /* end confdefs.h. */
76610:
76611: #include <oniguruma.h>
76612:
76613: int
76614: main ()
76615: {
76616:
76617: return (int)(ONIG_ENCODING_KOI8 + 1);
76618:
76619: ;
76620: return 0;
76621: }
76622: _ACEOF
1.1.1.3 ! misho 76623: rm -f conftest.$ac_objext conftest$ac_exeext
! 76624: if { (ac_try="$ac_link"
! 76625: case "(($ac_try" in
! 76626: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 76627: *) ac_try_echo=$ac_try;;
! 76628: esac
! 76629: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 76630: (eval "$ac_link") 2>conftest.er1
! 76631: ac_status=$?
! 76632: grep -v '^ *+' conftest.er1 >conftest.err
! 76633: rm -f conftest.er1
! 76634: cat conftest.err >&5
! 76635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 76636: (exit $ac_status); } && {
! 76637: test -z "$ac_c_werror_flag" ||
! 76638: test ! -s conftest.err
! 76639: } && test -s conftest$ac_exeext &&
! 76640: $as_test_x conftest$ac_exeext; then
1.1 misho 76641:
1.1.1.3 ! misho 76642: { echo "$as_me:$LINENO: result: no" >&5
! 76643: echo "${ECHO_T}no" >&6; }
1.1 misho 76644:
76645: else
1.1.1.3 ! misho 76646: echo "$as_me: failed program was:" >&5
! 76647: sed 's/^/| /' conftest.$ac_ext >&5
! 76648:
1.1 misho 76649:
1.1.1.3 ! misho 76650: { echo "$as_me:$LINENO: result: yes" >&5
! 76651: echo "${ECHO_T}yes" >&6; }
1.1 misho 76652:
1.1.1.3 ! misho 76653: cat >>confdefs.h <<\_ACEOF
! 76654: #define PHP_ONIG_BAD_KOI8_ENTRY 1
! 76655: _ACEOF
1.1 misho 76656:
76657:
76658: fi
1.1.1.3 ! misho 76659:
! 76660: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 76661: conftest$ac_exeext conftest.$ac_ext
1.1 misho 76662: LDFLAGS=$save_old_LDFLAGS
76663: fi
76664:
76665:
76666: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1"
76667:
76668:
76669: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar"
76670:
76671:
76672:
1.1.1.3 ! misho 76673: cat >>confdefs.h <<\_ACEOF
! 76674: #define HAVE_MBREGEX 1
! 76675: _ACEOF
1.1 misho 76676:
76677:
76678:
76679: PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c"
76680:
76681:
76682: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h"
76683:
76684: fi
76685:
76686: fi
76687:
76688:
76689: if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then
76690:
76691: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl"
76692:
76693:
76694: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl"
76695:
76696:
76697: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters"
76698:
76699:
76700: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls"
76701:
76702:
76703: PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl"
76704:
76705:
76706: PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl"
76707:
76708:
76709: PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h"
76710:
76711:
76712:
76713: PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
76714: libmbfl/filters/html_entities.c
76715: libmbfl/filters/mbfilter_7bit.c
76716: libmbfl/filters/mbfilter_ascii.c
76717: libmbfl/filters/mbfilter_base64.c
76718: libmbfl/filters/mbfilter_big5.c
76719: libmbfl/filters/mbfilter_byte2.c
76720: libmbfl/filters/mbfilter_byte4.c
76721: libmbfl/filters/mbfilter_cp1251.c
76722: libmbfl/filters/mbfilter_cp1252.c
76723: libmbfl/filters/mbfilter_cp1254.c
76724: libmbfl/filters/mbfilter_cp5022x.c
76725: libmbfl/filters/mbfilter_cp51932.c
76726: libmbfl/filters/mbfilter_cp850.c
76727: libmbfl/filters/mbfilter_cp866.c
76728: libmbfl/filters/mbfilter_cp932.c
76729: libmbfl/filters/mbfilter_cp936.c
1.1.1.2 misho 76730: libmbfl/filters/mbfilter_gb18030.c
1.1 misho 76731: libmbfl/filters/mbfilter_euc_cn.c
76732: libmbfl/filters/mbfilter_euc_jp.c
1.1.1.2 misho 76733: libmbfl/filters/mbfilter_euc_jp_2004.c
1.1 misho 76734: libmbfl/filters/mbfilter_euc_jp_win.c
76735: libmbfl/filters/mbfilter_euc_kr.c
76736: libmbfl/filters/mbfilter_euc_tw.c
76737: libmbfl/filters/mbfilter_htmlent.c
76738: libmbfl/filters/mbfilter_hz.c
76739: libmbfl/filters/mbfilter_iso2022_jp_ms.c
1.1.1.2 misho 76740: libmbfl/filters/mbfilter_iso2022jp_2004.c
76741: libmbfl/filters/mbfilter_iso2022jp_mobile.c
1.1 misho 76742: libmbfl/filters/mbfilter_iso2022_kr.c
76743: libmbfl/filters/mbfilter_iso8859_1.c
76744: libmbfl/filters/mbfilter_iso8859_10.c
76745: libmbfl/filters/mbfilter_iso8859_13.c
76746: libmbfl/filters/mbfilter_iso8859_14.c
76747: libmbfl/filters/mbfilter_iso8859_15.c
76748: libmbfl/filters/mbfilter_iso8859_16.c
76749: libmbfl/filters/mbfilter_iso8859_2.c
76750: libmbfl/filters/mbfilter_iso8859_3.c
76751: libmbfl/filters/mbfilter_iso8859_4.c
76752: libmbfl/filters/mbfilter_iso8859_5.c
76753: libmbfl/filters/mbfilter_iso8859_6.c
76754: libmbfl/filters/mbfilter_iso8859_7.c
76755: libmbfl/filters/mbfilter_iso8859_8.c
76756: libmbfl/filters/mbfilter_iso8859_9.c
76757: libmbfl/filters/mbfilter_jis.c
76758: libmbfl/filters/mbfilter_koi8r.c
76759: libmbfl/filters/mbfilter_armscii8.c
76760: libmbfl/filters/mbfilter_qprint.c
76761: libmbfl/filters/mbfilter_sjis.c
76762: libmbfl/filters/mbfilter_sjis_open.c
1.1.1.2 misho 76763: libmbfl/filters/mbfilter_sjis_mobile.c
76764: libmbfl/filters/mbfilter_sjis_mac.c
76765: libmbfl/filters/mbfilter_sjis_2004.c
1.1 misho 76766: libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c
76767: libmbfl/filters/mbfilter_ucs2.c
76768: libmbfl/filters/mbfilter_ucs4.c
76769: libmbfl/filters/mbfilter_uhc.c
76770: libmbfl/filters/mbfilter_utf16.c
76771: libmbfl/filters/mbfilter_utf32.c
76772: libmbfl/filters/mbfilter_utf7.c
76773: libmbfl/filters/mbfilter_utf7imap.c
76774: libmbfl/filters/mbfilter_utf8.c
1.1.1.2 misho 76775: libmbfl/filters/mbfilter_utf8_mobile.c
1.1 misho 76776: libmbfl/filters/mbfilter_uuencode.c
76777: libmbfl/filters/mbfilter_koi8u.c
76778: libmbfl/mbfl/mbfilter.c
76779: libmbfl/mbfl/mbfilter_8bit.c
76780: libmbfl/mbfl/mbfilter_pass.c
76781: libmbfl/mbfl/mbfilter_wchar.c
76782: libmbfl/mbfl/mbfl_convert.c
76783: libmbfl/mbfl/mbfl_encoding.c
76784: libmbfl/mbfl/mbfl_filter_output.c
76785: libmbfl/mbfl/mbfl_ident.c
76786: libmbfl/mbfl/mbfl_language.c
76787: libmbfl/mbfl/mbfl_memory_device.c
76788: libmbfl/mbfl/mbfl_string.c
76789: libmbfl/mbfl/mbfl_allocators.c
76790: libmbfl/nls/nls_de.c
76791: libmbfl/nls/nls_en.c
76792: libmbfl/nls/nls_ja.c
76793: libmbfl/nls/nls_kr.c
76794: libmbfl/nls/nls_neutral.c
76795: libmbfl/nls/nls_ru.c
76796: libmbfl/nls/nls_uni.c
76797: libmbfl/nls/nls_zh.c
76798: libmbfl/nls/nls_hy.c
76799: libmbfl/nls/nls_tr.c
76800: libmbfl/nls/nls_ua.c
76801: "
76802:
76803:
76804: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H"
76805:
76806:
76807: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h"
76808:
76809: else
76810: for inc in include include/mbfl-1.0 include/mbfl; do
76811: if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then
76812: PHP_LIBMBFL_INCLUDE="$inc"
76813: break
76814: fi
76815: done
76816:
76817: if test -z "$PHP_LIBMBFL_INCLUDE"; then
1.1.1.3 ! misho 76818: { { echo "$as_me:$LINENO: error: mbfilter.h not found. Please reinstall libmbfl library." >&5
! 76819: echo "$as_me: error: mbfilter.h not found. Please reinstall libmbfl library." >&2;}
! 76820: { (exit 1); exit 1; }; }
1.1 misho 76821: else
76822:
76823: if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then
76824:
76825: if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then
76826: ai_p=$PHP_LIBMBFL_INCLUDE
76827: else
76828:
76829: ep_dir="`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
76830:
76831: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76832: ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL_INCLUDE\"`"
76833: fi
76834:
76835:
76836:
76837: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76838:
76839: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
76840: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76841: eval "INCLUDEPATH$unique=set"
76842:
76843: if test ""; then
76844: INCLUDES="-I$ai_p $INCLUDES"
76845: else
76846: INCLUDES="$INCLUDES -I$ai_p"
76847: fi
76848:
76849: fi
76850:
76851: fi
76852:
76853: fi
76854:
76855:
76856: save_old_LDFLAGS=$LDFLAGS
76857: ac_stuff="
76858: -L$PHP_LIBMBFL/$PHP_LIBDIR
76859: "
76860:
76861: save_ext_shared=$ext_shared
76862: ext_shared=yes
76863:
76864: for ac_i in $ac_stuff; do
76865: case $ac_i in
76866: -pthread)
76867: if test "$ext_shared" = "yes"; then
76868: LDFLAGS="$LDFLAGS -pthread"
76869: else
76870:
76871:
76872: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76873:
76874: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76875: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76876: eval "EXTRA_LDFLAGS$unique=set"
76877: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76878: fi
76879:
76880: fi
76881: ;;
76882: -l*)
76883: ac_ii=`echo $ac_i|cut -c 3-`
76884:
76885:
76886: case $ac_ii in
76887: c|c_r|pthread*) ;;
76888: *)
76889: if test "$ext_shared" = "yes"; then
76890: LDFLAGS="$LDFLAGS -l$ac_ii"
76891: else
76892:
76893:
76894: case $ac_ii in
76895: c|c_r|pthread*) ;;
76896: *)
76897: LIBS="$LIBS -l$ac_ii"
76898: ;;
76899: esac
76900:
76901:
76902: fi
76903: ;;
76904: esac
76905:
76906:
76907: ;;
76908: -L*)
76909: ac_ii=`echo $ac_i|cut -c 3-`
76910:
76911: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76912:
76913: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76914: ai_p=$ac_ii
76915: else
76916:
76917: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
76918:
76919: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76920: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
76921: fi
76922:
76923:
76924: if test "$ext_shared" = "yes"; then
76925: LDFLAGS="-L$ai_p $LDFLAGS"
76926: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76927: else
76928:
76929:
76930:
76931: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76932:
76933: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76934: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76935: eval "LIBPATH$unique=set"
76936:
76937: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76938: LDFLAGS="$LDFLAGS -L$ai_p"
76939: PHP_RPATHS="$PHP_RPATHS $ai_p"
76940:
76941: fi
76942:
76943:
76944: fi
76945:
76946: fi
76947:
76948: ;;
76949: esac
76950: done
76951:
1.1.1.3 ! misho 76952: { echo "$as_me:$LINENO: checking for mbfl_buffer_converter_new in -lmbfl" >&5
! 76953: echo $ECHO_N "checking for mbfl_buffer_converter_new in -lmbfl... $ECHO_C" >&6; }
! 76954: if test "${ac_cv_lib_mbfl_mbfl_buffer_converter_new+set}" = set; then
! 76955: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 76956: else
76957: ac_check_lib_save_LIBS=$LIBS
76958: LIBS="-lmbfl $LIBS"
1.1.1.3 ! misho 76959: cat >conftest.$ac_ext <<_ACEOF
! 76960: /* confdefs.h. */
! 76961: _ACEOF
! 76962: cat confdefs.h >>conftest.$ac_ext
! 76963: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 76964: /* end confdefs.h. */
76965:
76966: /* Override any GCC internal prototype to avoid an error.
76967: Use char because int might match the return type of a GCC
76968: builtin and then its argument prototype would still apply. */
76969: #ifdef __cplusplus
76970: extern "C"
76971: #endif
76972: char mbfl_buffer_converter_new ();
76973: int
76974: main ()
76975: {
76976: return mbfl_buffer_converter_new ();
76977: ;
76978: return 0;
76979: }
76980: _ACEOF
1.1.1.3 ! misho 76981: rm -f conftest.$ac_objext conftest$ac_exeext
! 76982: if { (ac_try="$ac_link"
! 76983: case "(($ac_try" in
! 76984: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 76985: *) ac_try_echo=$ac_try;;
! 76986: esac
! 76987: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 76988: (eval "$ac_link") 2>conftest.er1
! 76989: ac_status=$?
! 76990: grep -v '^ *+' conftest.er1 >conftest.err
! 76991: rm -f conftest.er1
! 76992: cat conftest.err >&5
! 76993: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 76994: (exit $ac_status); } && {
! 76995: test -z "$ac_c_werror_flag" ||
! 76996: test ! -s conftest.err
! 76997: } && test -s conftest$ac_exeext &&
! 76998: $as_test_x conftest$ac_exeext; then
1.1 misho 76999: ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes
77000: else
1.1.1.3 ! misho 77001: echo "$as_me: failed program was:" >&5
! 77002: sed 's/^/| /' conftest.$ac_ext >&5
! 77003:
! 77004: ac_cv_lib_mbfl_mbfl_buffer_converter_new=no
1.1 misho 77005: fi
1.1.1.3 ! misho 77006:
! 77007: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 77008: conftest$ac_exeext conftest.$ac_ext
1.1 misho 77009: LIBS=$ac_check_lib_save_LIBS
77010: fi
1.1.1.3 ! misho 77011: { echo "$as_me:$LINENO: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5
! 77012: echo "${ECHO_T}$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; }
! 77013: if test $ac_cv_lib_mbfl_mbfl_buffer_converter_new = yes; then
1.1 misho 77014:
77015: LDFLAGS=$save_old_LDFLAGS
77016: ext_shared=$save_ext_shared
77017:
77018:
77019:
77020: if test "$ext_shared" = "yes"; then
77021: MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD"
77022: if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
77023:
77024: if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
77025:
77026: if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
77027: ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
77028: else
77029:
77030: ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
77031:
77032: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77033: ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
77034: fi
77035:
77036:
77037: if test "$ext_shared" = "yes"; then
77038: MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
77039: test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
77040: else
77041:
77042:
77043:
77044: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77045:
77046: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77047: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77048: eval "LIBPATH$unique=set"
77049:
77050: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77051: LDFLAGS="$LDFLAGS -L$ai_p"
77052: PHP_RPATHS="$PHP_RPATHS $ai_p"
77053:
77054: fi
77055:
77056:
77057: fi
77058:
77059: fi
77060:
77061: fi
77062: else
77063:
77064:
77065: if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
77066:
77067: if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
77068:
77069: if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
77070: ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
77071: else
77072:
77073: ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
77074:
77075: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77076: ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
77077: fi
77078:
77079:
77080:
77081:
77082:
77083: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77084:
77085: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77086: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77087: eval "LIBPATH$unique=set"
77088:
77089: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77090: LDFLAGS="$LDFLAGS -L$ai_p"
77091: PHP_RPATHS="$PHP_RPATHS $ai_p"
77092:
77093: fi
77094:
77095:
77096:
77097: fi
77098:
77099: fi
77100:
77101:
77102: case mbfl in
77103: c|c_r|pthread*) ;;
77104: *)
77105: LIBS="-lmbfl $LIBS"
77106: ;;
77107: esac
77108:
77109:
77110:
77111:
77112: fi
77113:
77114:
77115:
77116:
77117: else
77118:
77119: LDFLAGS=$save_old_LDFLAGS
77120: ext_shared=$save_ext_shared
77121: unset ac_cv_lib_mbfl_mbfl_buffer_converter_new
77122:
1.1.1.3 ! misho 77123: { { echo "$as_me:$LINENO: error: Problem with libmbfl. Please check config.log for more information." >&5
! 77124: echo "$as_me: error: Problem with libmbfl. Please check config.log for more information." >&2;}
! 77125: { (exit 1); exit 1; }; }
1.1 misho 77126:
77127:
77128: fi
77129:
77130: fi
77131:
77132:
77133:
77134: ext_builddir=ext/mbstring
77135: ext_srcdir=$abs_srcdir/ext/mbstring
77136:
77137: ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
77138:
77139: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
77140: PHP_MBSTRING_SHARED=no
77141:
77142:
77143: case ext/mbstring in
77144: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77145: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77146: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77147: esac
77148:
77149:
77150:
77151: b_c_pre=$php_c_pre
77152: b_cxx_pre=$php_cxx_pre
77153: b_c_meta=$php_c_meta
77154: b_cxx_meta=$php_cxx_meta
77155: b_c_post=$php_c_post
77156: b_cxx_post=$php_cxx_post
77157: b_lo=$php_lo
77158:
77159:
77160: old_IFS=$IFS
77161: for ac_src in $PHP_MBSTRING_SOURCES; do
77162:
77163: IFS=.
77164: set $ac_src
77165: ac_obj=$1
77166: IFS=$old_IFS
77167:
77168: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
77169:
77170: case $ac_src in
77171: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77172: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77173: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77174: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77175: esac
77176:
77177: cat >>Makefile.objects<<EOF
77178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77179: $ac_comp
77180: EOF
77181: done
77182:
77183:
77184: EXT_STATIC="$EXT_STATIC mbstring"
77185: if test "$ext_shared" != "nocli"; then
77186: EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
77187: fi
77188: else
77189: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
77190: PHP_MBSTRING_SHARED=yes
77191:
77192: case ext/mbstring in
77193: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77194: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77195: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77196: esac
77197:
77198:
77199:
77200: b_c_pre=$shared_c_pre
77201: b_cxx_pre=$shared_cxx_pre
77202: b_c_meta=$shared_c_meta
77203: b_cxx_meta=$shared_cxx_meta
77204: b_c_post=$shared_c_post
77205: b_cxx_post=$shared_cxx_post
77206: b_lo=$shared_lo
77207:
77208:
77209: old_IFS=$IFS
77210: for ac_src in $PHP_MBSTRING_SOURCES; do
77211:
77212: IFS=.
77213: set $ac_src
77214: ac_obj=$1
77215: IFS=$old_IFS
77216:
77217: shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
77218:
77219: case $ac_src in
77220: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77221: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77222: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77223: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77224: esac
77225:
77226: cat >>Makefile.objects<<EOF
77227: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77228: $ac_comp
77229: EOF
77230: done
77231:
77232: case $host_alias in
77233: *netware*)
77234:
77235: install_modules="install-modules"
77236:
77237: case $host_alias in
77238: *aix*)
77239: suffix=so
77240: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmbstring.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(PHPMBSTRING_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmbstring.so '$ext_builddir'/phpmbstring.so'
77241: ;;
77242: *netware*)
77243: suffix=nlm
77244: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) -L$(top_builddir)/netware -lphp5lib $(MBSTRING_SHARED_LIBADD)'
77245: ;;
77246: *)
77247: suffix=la
77248: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(PHPMBSTRING_SHARED_LIBADD)'
77249: ;;
77250: esac
77251:
77252: if test "x" = "xyes"; then
77253: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmbstring.$suffix"
77254: else
77255: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmbstring.$suffix"
77256: fi
77257:
77258: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
77259:
77260: cat >>Makefile.objects<<EOF
77261: \$(phplibdir)/phpmbstring.$suffix: $ext_builddir/phpmbstring.$suffix
77262: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmbstring.$suffix \$(phplibdir)
77263:
77264: $ext_builddir/phpmbstring.$suffix: \$(shared_objects_mbstring) \$(PHPMBSTRING_SHARED_DEPENDENCIES)
77265: $link_cmd
77266:
77267: EOF
77268:
77269: ;;
77270: *)
77271:
77272: install_modules="install-modules"
77273:
77274: case $host_alias in
77275: *aix*)
77276: suffix=so
77277: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mbstring.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(MBSTRING_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mbstring.so '$ext_builddir'/mbstring.so'
77278: ;;
77279: *netware*)
77280: suffix=nlm
77281: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) -L$(top_builddir)/netware -lphp5lib $(TRING_SHARED_LIBADD)'
77282: ;;
77283: *)
77284: suffix=la
77285: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(MBSTRING_SHARED_LIBADD)'
77286: ;;
77287: esac
77288:
77289: if test "x" = "xyes"; then
77290: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mbstring.$suffix"
77291: else
77292: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mbstring.$suffix"
77293: fi
77294:
77295: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
77296:
77297: cat >>Makefile.objects<<EOF
77298: \$(phplibdir)/mbstring.$suffix: $ext_builddir/mbstring.$suffix
77299: \$(LIBTOOL) --mode=install cp $ext_builddir/mbstring.$suffix \$(phplibdir)
77300:
77301: $ext_builddir/mbstring.$suffix: \$(shared_objects_mbstring) \$(MBSTRING_SHARED_DEPENDENCIES)
77302: $link_cmd
77303:
77304: EOF
77305:
77306: ;;
77307: esac
77308:
77309: cat >>confdefs.h <<_ACEOF
77310: #define COMPILE_DL_MBSTRING 1
77311: _ACEOF
77312:
77313: fi
77314: fi
77315:
77316: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
77317: PHP_MBSTRING_SHARED=no
1.1.1.3 ! misho 77318: case "$PHP_SAPI" in
! 77319: cgi|embed)
1.1 misho 77320:
77321:
77322: case ext/mbstring in
77323: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77324: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77325: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77326: esac
77327:
77328:
77329:
77330: b_c_pre=$php_c_pre
77331: b_cxx_pre=$php_cxx_pre
77332: b_c_meta=$php_c_meta
77333: b_cxx_meta=$php_cxx_meta
77334: b_c_post=$php_c_post
77335: b_cxx_post=$php_cxx_post
77336: b_lo=$php_lo
77337:
77338:
77339: old_IFS=$IFS
77340: for ac_src in $PHP_MBSTRING_SOURCES; do
77341:
77342: IFS=.
77343: set $ac_src
77344: ac_obj=$1
77345: IFS=$old_IFS
77346:
1.1.1.2 misho 77347: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 77348:
77349: case $ac_src in
77350: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77351: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77352: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77353: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77354: esac
77355:
77356: cat >>Makefile.objects<<EOF
77357: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77358: $ac_comp
77359: EOF
77360: done
77361:
77362:
1.1.1.3 ! misho 77363: EXT_STATIC="$EXT_STATIC mbstring"
! 77364: ;;
! 77365: *)
1.1 misho 77366:
77367:
77368: case ext/mbstring in
77369: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77370: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77371: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77372: esac
77373:
77374:
77375:
77376: b_c_pre=$php_c_pre
77377: b_cxx_pre=$php_cxx_pre
77378: b_c_meta=$php_c_meta
77379: b_cxx_meta=$php_cxx_meta
77380: b_c_post=$php_c_post
77381: b_cxx_post=$php_cxx_post
77382: b_lo=$php_lo
77383:
77384:
77385: old_IFS=$IFS
77386: for ac_src in $PHP_MBSTRING_SOURCES; do
77387:
77388: IFS=.
77389: set $ac_src
77390: ac_obj=$1
77391: IFS=$old_IFS
77392:
1.1.1.2 misho 77393: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 77394:
77395: case $ac_src in
77396: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77397: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77398: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77399: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77400: esac
77401:
77402: cat >>Makefile.objects<<EOF
77403: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77404: $ac_comp
77405: EOF
77406: done
77407:
77408:
1.1.1.3 ! misho 77409: ;;
! 77410: esac
1.1 misho 77411: EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
77412: fi
77413:
77414:
77415: BUILD_DIR="$BUILD_DIR $ext_builddir"
77416:
77417:
77418:
77419: if test "$ext_builddir" = "."; then
77420: PHP_PECL_EXTENSION=mbstring
77421:
77422: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
77423:
77424: fi
77425:
77426:
77427: PHP_VAR_SUBST="$PHP_VAR_SUBST MBSTRING_SHARED_LIBADD"
77428:
77429:
77430: for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do
77431:
77432:
77433: $php_shtool mkdir -p $ext_builddir/$dir
77434:
77435:
77436: done
77437:
77438: for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do
77439:
77440: if test "$ext_srcdir/$dir" != "/usr/include"; then
77441:
77442: if test -z "$ext_srcdir/$dir" || echo "$ext_srcdir/$dir" | grep '^/' >/dev/null ; then
77443: ai_p=$ext_srcdir/$dir
77444: else
77445:
77446: ep_dir="`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
77447:
77448: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77449: ai_p="$ep_realdir/`basename \"$ext_srcdir/$dir\"`"
77450: fi
77451:
77452:
77453:
77454: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77455:
77456: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
77457: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77458: eval "INCLUDEPATH$unique=set"
77459:
77460: if test ""; then
77461: INCLUDES="-I$ai_p $INCLUDES"
77462: else
77463: INCLUDES="$INCLUDES -I$ai_p"
77464: fi
77465:
77466: fi
77467:
77468: fi
77469:
77470:
77471: if test "$ext_builddir/$dir" != "/usr/include"; then
77472:
77473: if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then
77474: ai_p=$ext_builddir/$dir
77475: else
77476:
77477: ep_dir="`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
77478:
77479: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77480: ai_p="$ep_realdir/`basename \"$ext_builddir/$dir\"`"
77481: fi
77482:
77483:
77484:
77485: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77486:
77487: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
77488: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77489: eval "INCLUDEPATH$unique=set"
77490:
77491: if test ""; then
77492: INCLUDES="-I$ai_p $INCLUDES"
77493: else
77494: INCLUDES="$INCLUDES -I$ai_p"
77495: fi
77496:
77497: fi
77498:
77499: fi
77500:
77501: done
77502:
77503: if test "$ext_shared" = "no"; then
77504:
77505:
77506: case ext/mbstring in
77507: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77508: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77509: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77510: esac
77511:
77512:
77513:
77514: b_c_pre=$php_c_pre
77515: b_cxx_pre=$php_cxx_pre
77516: b_c_meta=$php_c_meta
77517: b_cxx_meta=$php_cxx_meta
77518: b_c_post=$php_c_post
77519: b_cxx_post=$php_cxx_post
77520: b_lo=$php_lo
77521:
77522:
77523: old_IFS=$IFS
77524: for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
77525:
77526: IFS=.
77527: set $ac_src
77528: ac_obj=$1
77529: IFS=$old_IFS
77530:
77531: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
77532:
77533: case $ac_src in
77534: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77535: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77536: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77537: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77538: esac
77539:
77540: cat >>Makefile.objects<<EOF
77541: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77542: $ac_comp
77543: EOF
77544: done
77545:
77546:
77547: out="php_config.h"
77548: else
77549:
77550: case ext/mbstring in
77551: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77552: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77553: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77554: esac
77555:
77556:
77557:
77558: b_c_pre=$shared_c_pre
77559: b_cxx_pre=$shared_cxx_pre
77560: b_c_meta=$shared_c_meta
77561: b_cxx_meta=$shared_cxx_meta
77562: b_c_post=$shared_c_post
77563: b_cxx_post=$shared_cxx_post
77564: b_lo=$shared_lo
77565:
77566:
77567: old_IFS=$IFS
77568: for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
77569:
77570: IFS=.
77571: set $ac_src
77572: ac_obj=$1
77573: IFS=$old_IFS
77574:
77575: shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
77576:
77577: case $ac_src in
77578: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77579: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77580: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77581: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77582: esac
77583:
77584: cat >>Makefile.objects<<EOF
77585: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77586: $ac_comp
77587: EOF
77588: done
77589:
77590: if test -f "$ext_builddir/config.h.in"; then
77591: out="$abs_builddir/config.h"
77592: else
77593: out="php_config.h"
77594: fi
77595: fi
77596:
77597: for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do
77598: cat > $ext_builddir/$cfg <<EOF
77599: #include "$out"
77600: EOF
77601: done
77602:
77603: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS mbstring.h"
77604:
77605:
77606:
77607: header_path=ext/mbstring
77608: for header_file in $PHP_MBSTRING_INSTALL_HEADERS; do
77609: hp_hf="$header_path/$header_file"
77610:
77611:
77612: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
77613:
77614: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
77615: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77616: eval "INSTALLHEADERS$unique=set"
77617:
77618: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
77619:
77620: fi
77621:
77622: done
77623:
77624:
77625:
77626: fi
77627:
77628: # vim600: sts=2 sw=2 et
77629:
77630:
77631:
77632:
77633:
77634:
77635: php_with_mcrypt=no
77636:
1.1.1.3 ! misho 77637: { echo "$as_me:$LINENO: checking for mcrypt support" >&5
! 77638: echo $ECHO_N "checking for mcrypt support... $ECHO_C" >&6; }
1.1 misho 77639:
77640: # Check whether --with-mcrypt was given.
1.1.1.3 ! misho 77641: if test "${with_mcrypt+set}" = set; then
1.1 misho 77642: withval=$with_mcrypt; PHP_MCRYPT=$withval
77643: else
77644:
77645: PHP_MCRYPT=no
77646: test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL
77647:
77648: fi
77649:
77650:
77651:
77652: ext_output="yes, shared"
77653: ext_shared=yes
77654: case $PHP_MCRYPT in
77655: shared,*)
77656: PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'`
77657: ;;
77658: shared)
77659: PHP_MCRYPT=yes
77660: ;;
77661: no)
77662: ext_output=no
77663: ext_shared=no
77664: ;;
77665: *)
77666: ext_output=yes
77667: ext_shared=no
77668: ;;
77669: esac
77670:
77671:
77672:
1.1.1.3 ! misho 77673: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 77674: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 77675:
77676:
77677:
77678:
77679: if test "$PHP_MCRYPT" != "no"; then
77680: for i in $PHP_MCRYPT /usr/local /usr; do
77681: test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break
77682: done
77683:
77684: if test -z "$MCRYPT_DIR"; then
1.1.1.3 ! misho 77685: { { echo "$as_me:$LINENO: error: mcrypt.h not found. Please reinstall libmcrypt." >&5
! 77686: echo "$as_me: error: mcrypt.h not found. Please reinstall libmcrypt." >&2;}
! 77687: { (exit 1); exit 1; }; }
1.1 misho 77688: fi
77689:
77690:
77691: old_CPPFLAGS=$CPPFLAGS
77692: CPPFLAGS=-I$MCRYPT_DIR/include
1.1.1.3 ! misho 77693: { echo "$as_me:$LINENO: checking for libmcrypt version" >&5
! 77694: echo $ECHO_N "checking for libmcrypt version... $ECHO_C" >&6; }
! 77695: cat >conftest.$ac_ext <<_ACEOF
! 77696: /* confdefs.h. */
! 77697: _ACEOF
! 77698: cat confdefs.h >>conftest.$ac_ext
! 77699: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 77700: /* end confdefs.h. */
77701:
77702: #include <mcrypt.h>
77703: #if MCRYPT_API_VERSION >= 20021217
77704: yes
77705: #endif
77706:
77707: _ACEOF
77708: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 77709: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 77710:
1.1.1.3 ! misho 77711: { echo "$as_me:$LINENO: result: >= 2.5.6" >&5
! 77712: echo "${ECHO_T}>= 2.5.6" >&6; }
1.1 misho 77713:
77714: else
77715:
1.1.1.3 ! misho 77716: { { echo "$as_me:$LINENO: error: libmcrypt version 2.5.6 or greater required." >&5
! 77717: echo "$as_me: error: libmcrypt version 2.5.6 or greater required." >&2;}
! 77718: { (exit 1); exit 1; }; }
1.1 misho 77719:
77720: fi
1.1.1.3 ! misho 77721: rm -f -r conftest*
1.1 misho 77722:
77723: CPPFLAGS=$old_CPPFLAGS
77724:
77725:
77726:
77727: save_old_LDFLAGS=$LDFLAGS
77728: ac_stuff="
77729: -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl
77730: "
77731:
77732: save_ext_shared=$ext_shared
77733: ext_shared=yes
77734:
77735: for ac_i in $ac_stuff; do
77736: case $ac_i in
77737: -pthread)
77738: if test "$ext_shared" = "yes"; then
77739: LDFLAGS="$LDFLAGS -pthread"
77740: else
77741:
77742:
77743: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
77744:
77745: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
77746: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77747: eval "EXTRA_LDFLAGS$unique=set"
77748: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
77749: fi
77750:
77751: fi
77752: ;;
77753: -l*)
77754: ac_ii=`echo $ac_i|cut -c 3-`
77755:
77756:
77757: case $ac_ii in
77758: c|c_r|pthread*) ;;
77759: *)
77760: if test "$ext_shared" = "yes"; then
77761: LDFLAGS="$LDFLAGS -l$ac_ii"
77762: else
77763:
77764:
77765: case $ac_ii in
77766: c|c_r|pthread*) ;;
77767: *)
77768: LIBS="$LIBS -l$ac_ii"
77769: ;;
77770: esac
77771:
77772:
77773: fi
77774: ;;
77775: esac
77776:
77777:
77778: ;;
77779: -L*)
77780: ac_ii=`echo $ac_i|cut -c 3-`
77781:
77782: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
77783:
77784: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
77785: ai_p=$ac_ii
77786: else
77787:
77788: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
77789:
77790: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77791: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
77792: fi
77793:
77794:
77795: if test "$ext_shared" = "yes"; then
77796: LDFLAGS="-L$ai_p $LDFLAGS"
77797: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
77798: else
77799:
77800:
77801:
77802: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77803:
77804: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77805: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77806: eval "LIBPATH$unique=set"
77807:
77808: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77809: LDFLAGS="$LDFLAGS -L$ai_p"
77810: PHP_RPATHS="$PHP_RPATHS $ai_p"
77811:
77812: fi
77813:
77814:
77815: fi
77816:
77817: fi
77818:
77819: ;;
77820: esac
77821: done
77822:
1.1.1.3 ! misho 77823: { echo "$as_me:$LINENO: checking for mcrypt_module_open in -lmcrypt" >&5
! 77824: echo $ECHO_N "checking for mcrypt_module_open in -lmcrypt... $ECHO_C" >&6; }
! 77825: if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then
! 77826: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 77827: else
77828: ac_check_lib_save_LIBS=$LIBS
77829: LIBS="-lmcrypt $LIBS"
1.1.1.3 ! misho 77830: cat >conftest.$ac_ext <<_ACEOF
! 77831: /* confdefs.h. */
! 77832: _ACEOF
! 77833: cat confdefs.h >>conftest.$ac_ext
! 77834: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 77835: /* end confdefs.h. */
77836:
77837: /* Override any GCC internal prototype to avoid an error.
77838: Use char because int might match the return type of a GCC
77839: builtin and then its argument prototype would still apply. */
77840: #ifdef __cplusplus
77841: extern "C"
77842: #endif
77843: char mcrypt_module_open ();
77844: int
77845: main ()
77846: {
77847: return mcrypt_module_open ();
77848: ;
77849: return 0;
77850: }
77851: _ACEOF
1.1.1.3 ! misho 77852: rm -f conftest.$ac_objext conftest$ac_exeext
! 77853: if { (ac_try="$ac_link"
! 77854: case "(($ac_try" in
! 77855: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 77856: *) ac_try_echo=$ac_try;;
! 77857: esac
! 77858: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 77859: (eval "$ac_link") 2>conftest.er1
! 77860: ac_status=$?
! 77861: grep -v '^ *+' conftest.er1 >conftest.err
! 77862: rm -f conftest.er1
! 77863: cat conftest.err >&5
! 77864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 77865: (exit $ac_status); } && {
! 77866: test -z "$ac_c_werror_flag" ||
! 77867: test ! -s conftest.err
! 77868: } && test -s conftest$ac_exeext &&
! 77869: $as_test_x conftest$ac_exeext; then
1.1 misho 77870: ac_cv_lib_mcrypt_mcrypt_module_open=yes
77871: else
1.1.1.3 ! misho 77872: echo "$as_me: failed program was:" >&5
! 77873: sed 's/^/| /' conftest.$ac_ext >&5
! 77874:
! 77875: ac_cv_lib_mcrypt_mcrypt_module_open=no
1.1 misho 77876: fi
1.1.1.3 ! misho 77877:
! 77878: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 77879: conftest$ac_exeext conftest.$ac_ext
1.1 misho 77880: LIBS=$ac_check_lib_save_LIBS
77881: fi
1.1.1.3 ! misho 77882: { echo "$as_me:$LINENO: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
! 77883: echo "${ECHO_T}$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
! 77884: if test $ac_cv_lib_mcrypt_mcrypt_module_open = yes; then
1.1 misho 77885:
77886: LDFLAGS=$save_old_LDFLAGS
77887: ext_shared=$save_ext_shared
77888:
77889:
77890:
77891: case ltdl in
77892: c|c_r|pthread*) ;;
77893: *)
77894: if test "$ext_shared" = "yes"; then
77895: MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD"
77896: else
77897:
77898:
77899: case ltdl in
77900: c|c_r|pthread*) ;;
77901: *)
77902: LIBS="-lltdl $LIBS"
77903: ;;
77904: esac
77905:
77906:
77907: fi
77908: ;;
77909: esac
77910:
77911:
77912:
1.1.1.3 ! misho 77913: cat >>confdefs.h <<\_ACEOF
! 77914: #define HAVE_LIBMCRYPT 1
! 77915: _ACEOF
1.1 misho 77916:
77917:
77918:
77919: else
77920:
77921: LDFLAGS=$save_old_LDFLAGS
77922: ext_shared=$save_ext_shared
77923: unset ac_cv_lib_mcrypt_mcrypt_module_open
77924:
77925:
77926: save_old_LDFLAGS=$LDFLAGS
77927: ac_stuff="
77928: -L$MCRYPT_DIR/$PHP_LIBDIR
77929: "
77930:
77931: save_ext_shared=$ext_shared
77932: ext_shared=yes
77933:
77934: for ac_i in $ac_stuff; do
77935: case $ac_i in
77936: -pthread)
77937: if test "$ext_shared" = "yes"; then
77938: LDFLAGS="$LDFLAGS -pthread"
77939: else
77940:
77941:
77942: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
77943:
77944: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
77945: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77946: eval "EXTRA_LDFLAGS$unique=set"
77947: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
77948: fi
77949:
77950: fi
77951: ;;
77952: -l*)
77953: ac_ii=`echo $ac_i|cut -c 3-`
77954:
77955:
77956: case $ac_ii in
77957: c|c_r|pthread*) ;;
77958: *)
77959: if test "$ext_shared" = "yes"; then
77960: LDFLAGS="$LDFLAGS -l$ac_ii"
77961: else
77962:
77963:
77964: case $ac_ii in
77965: c|c_r|pthread*) ;;
77966: *)
77967: LIBS="$LIBS -l$ac_ii"
77968: ;;
77969: esac
77970:
77971:
77972: fi
77973: ;;
77974: esac
77975:
77976:
77977: ;;
77978: -L*)
77979: ac_ii=`echo $ac_i|cut -c 3-`
77980:
77981: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
77982:
77983: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
77984: ai_p=$ac_ii
77985: else
77986:
77987: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
77988:
77989: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77990: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
77991: fi
77992:
77993:
77994: if test "$ext_shared" = "yes"; then
77995: LDFLAGS="-L$ai_p $LDFLAGS"
77996: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
77997: else
77998:
77999:
78000:
78001: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78002:
78003: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78004: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78005: eval "LIBPATH$unique=set"
78006:
78007: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78008: LDFLAGS="$LDFLAGS -L$ai_p"
78009: PHP_RPATHS="$PHP_RPATHS $ai_p"
78010:
78011: fi
78012:
78013:
78014: fi
78015:
78016: fi
78017:
78018: ;;
78019: esac
78020: done
78021:
1.1.1.3 ! misho 78022: { echo "$as_me:$LINENO: checking for mcrypt_module_open in -lmcrypt" >&5
! 78023: echo $ECHO_N "checking for mcrypt_module_open in -lmcrypt... $ECHO_C" >&6; }
! 78024: if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then
! 78025: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 78026: else
78027: ac_check_lib_save_LIBS=$LIBS
78028: LIBS="-lmcrypt $LIBS"
1.1.1.3 ! misho 78029: cat >conftest.$ac_ext <<_ACEOF
! 78030: /* confdefs.h. */
! 78031: _ACEOF
! 78032: cat confdefs.h >>conftest.$ac_ext
! 78033: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 78034: /* end confdefs.h. */
78035:
78036: /* Override any GCC internal prototype to avoid an error.
78037: Use char because int might match the return type of a GCC
78038: builtin and then its argument prototype would still apply. */
78039: #ifdef __cplusplus
78040: extern "C"
78041: #endif
78042: char mcrypt_module_open ();
78043: int
78044: main ()
78045: {
78046: return mcrypt_module_open ();
78047: ;
78048: return 0;
78049: }
78050: _ACEOF
1.1.1.3 ! misho 78051: rm -f conftest.$ac_objext conftest$ac_exeext
! 78052: if { (ac_try="$ac_link"
! 78053: case "(($ac_try" in
! 78054: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 78055: *) ac_try_echo=$ac_try;;
! 78056: esac
! 78057: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 78058: (eval "$ac_link") 2>conftest.er1
! 78059: ac_status=$?
! 78060: grep -v '^ *+' conftest.er1 >conftest.err
! 78061: rm -f conftest.er1
! 78062: cat conftest.err >&5
! 78063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 78064: (exit $ac_status); } && {
! 78065: test -z "$ac_c_werror_flag" ||
! 78066: test ! -s conftest.err
! 78067: } && test -s conftest$ac_exeext &&
! 78068: $as_test_x conftest$ac_exeext; then
1.1 misho 78069: ac_cv_lib_mcrypt_mcrypt_module_open=yes
78070: else
1.1.1.3 ! misho 78071: echo "$as_me: failed program was:" >&5
! 78072: sed 's/^/| /' conftest.$ac_ext >&5
! 78073:
! 78074: ac_cv_lib_mcrypt_mcrypt_module_open=no
1.1 misho 78075: fi
1.1.1.3 ! misho 78076:
! 78077: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 78078: conftest$ac_exeext conftest.$ac_ext
1.1 misho 78079: LIBS=$ac_check_lib_save_LIBS
78080: fi
1.1.1.3 ! misho 78081: { echo "$as_me:$LINENO: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
! 78082: echo "${ECHO_T}$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
! 78083: if test $ac_cv_lib_mcrypt_mcrypt_module_open = yes; then
1.1 misho 78084:
78085: LDFLAGS=$save_old_LDFLAGS
78086: ext_shared=$save_ext_shared
78087:
78088:
1.1.1.3 ! misho 78089: cat >>confdefs.h <<\_ACEOF
! 78090: #define HAVE_LIBMCRYPT 1
! 78091: _ACEOF
1.1 misho 78092:
78093:
78094:
78095: else
78096:
78097: LDFLAGS=$save_old_LDFLAGS
78098: ext_shared=$save_ext_shared
78099: unset ac_cv_lib_mcrypt_mcrypt_module_open
78100:
1.1.1.3 ! misho 78101: { { echo "$as_me:$LINENO: error: Sorry, I was not able to diagnose which libmcrypt version you have installed." >&5
! 78102: echo "$as_me: error: Sorry, I was not able to diagnose which libmcrypt version you have installed." >&2;}
! 78103: { (exit 1); exit 1; }; }
1.1 misho 78104:
78105:
78106: fi
78107:
78108:
78109:
78110: fi
78111:
78112:
78113:
78114:
78115: if test "$ext_shared" = "yes"; then
78116: MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD"
78117: if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
78118:
78119: if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
78120:
78121: if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
78122: ai_p=$MCRYPT_DIR/$PHP_LIBDIR
78123: else
78124:
78125: ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
78126:
78127: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78128: ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
78129: fi
78130:
78131:
78132: if test "$ext_shared" = "yes"; then
78133: MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD"
78134: test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD"
78135: else
78136:
78137:
78138:
78139: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78140:
78141: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78142: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78143: eval "LIBPATH$unique=set"
78144:
78145: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78146: LDFLAGS="$LDFLAGS -L$ai_p"
78147: PHP_RPATHS="$PHP_RPATHS $ai_p"
78148:
78149: fi
78150:
78151:
78152: fi
78153:
78154: fi
78155:
78156: fi
78157: else
78158:
78159:
78160: if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
78161:
78162: if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
78163:
78164: if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
78165: ai_p=$MCRYPT_DIR/$PHP_LIBDIR
78166: else
78167:
78168: ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
78169:
78170: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78171: ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
78172: fi
78173:
78174:
78175:
78176:
78177:
78178: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78179:
78180: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78181: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78182: eval "LIBPATH$unique=set"
78183:
78184: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78185: LDFLAGS="$LDFLAGS -L$ai_p"
78186: PHP_RPATHS="$PHP_RPATHS $ai_p"
78187:
78188: fi
78189:
78190:
78191:
78192: fi
78193:
78194: fi
78195:
78196:
78197: case mcrypt in
78198: c|c_r|pthread*) ;;
78199: *)
78200: LIBS="-lmcrypt $LIBS"
78201: ;;
78202: esac
78203:
78204:
78205:
78206:
78207: fi
78208:
78209:
78210:
78211: if test "$MCRYPT_DIR/include" != "/usr/include"; then
78212:
78213: if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then
78214: ai_p=$MCRYPT_DIR/include
78215: else
78216:
78217: ep_dir="`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
78218:
78219: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78220: ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/include\"`"
78221: fi
78222:
78223:
78224:
78225: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78226:
78227: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
78228: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78229: eval "INCLUDEPATH$unique=set"
78230:
78231: if test ""; then
78232: INCLUDES="-I$ai_p $INCLUDES"
78233: else
78234: INCLUDES="$INCLUDES -I$ai_p"
78235: fi
78236:
78237: fi
78238:
78239: fi
78240:
78241:
78242:
78243: PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD"
78244:
78245:
78246: ext_builddir=ext/mcrypt
78247: ext_srcdir=$abs_srcdir/ext/mcrypt
78248:
78249: ac_extra=
78250:
78251: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78252: PHP_MCRYPT_SHARED=no
78253:
78254:
78255: case ext/mcrypt in
78256: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78257: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78258: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78259: esac
78260:
78261:
78262:
78263: b_c_pre=$php_c_pre
78264: b_cxx_pre=$php_cxx_pre
78265: b_c_meta=$php_c_meta
78266: b_cxx_meta=$php_cxx_meta
78267: b_c_post=$php_c_post
78268: b_cxx_post=$php_cxx_post
78269: b_lo=$php_lo
78270:
78271:
78272: old_IFS=$IFS
78273: for ac_src in mcrypt.c mcrypt_filter.c; do
78274:
78275: IFS=.
78276: set $ac_src
78277: ac_obj=$1
78278: IFS=$old_IFS
78279:
78280: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78281:
78282: case $ac_src in
78283: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78284: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78285: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78286: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78287: esac
78288:
78289: cat >>Makefile.objects<<EOF
78290: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78291: $ac_comp
78292: EOF
78293: done
78294:
78295:
78296: EXT_STATIC="$EXT_STATIC mcrypt"
78297: if test "$ext_shared" != "nocli"; then
78298: EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
78299: fi
78300: else
78301: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78302: PHP_MCRYPT_SHARED=yes
78303:
78304: case ext/mcrypt in
78305: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78306: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78307: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78308: esac
78309:
78310:
78311:
78312: b_c_pre=$shared_c_pre
78313: b_cxx_pre=$shared_cxx_pre
78314: b_c_meta=$shared_c_meta
78315: b_cxx_meta=$shared_cxx_meta
78316: b_c_post=$shared_c_post
78317: b_cxx_post=$shared_cxx_post
78318: b_lo=$shared_lo
78319:
78320:
78321: old_IFS=$IFS
78322: for ac_src in mcrypt.c mcrypt_filter.c; do
78323:
78324: IFS=.
78325: set $ac_src
78326: ac_obj=$1
78327: IFS=$old_IFS
78328:
78329: shared_objects_mcrypt="$shared_objects_mcrypt $ac_bdir$ac_obj.lo"
78330:
78331: case $ac_src in
78332: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78333: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78334: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78335: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78336: esac
78337:
78338: cat >>Makefile.objects<<EOF
78339: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78340: $ac_comp
78341: EOF
78342: done
78343:
78344: case $host_alias in
78345: *netware*)
78346:
78347: install_modules="install-modules"
78348:
78349: case $host_alias in
78350: *aix*)
78351: suffix=so
78352: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(PHPMCRYPT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmcrypt.so '$ext_builddir'/phpmcrypt.so'
78353: ;;
78354: *netware*)
78355: suffix=nlm
78356: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) -L$(top_builddir)/netware -lphp5lib $(MCRYPT_SHARED_LIBADD)'
78357: ;;
78358: *)
78359: suffix=la
78360: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(PHPMCRYPT_SHARED_LIBADD)'
78361: ;;
78362: esac
78363:
78364: if test "x" = "xyes"; then
78365: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmcrypt.$suffix"
78366: else
78367: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmcrypt.$suffix"
78368: fi
78369:
78370: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
78371:
78372: cat >>Makefile.objects<<EOF
78373: \$(phplibdir)/phpmcrypt.$suffix: $ext_builddir/phpmcrypt.$suffix
78374: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmcrypt.$suffix \$(phplibdir)
78375:
78376: $ext_builddir/phpmcrypt.$suffix: \$(shared_objects_mcrypt) \$(PHPMCRYPT_SHARED_DEPENDENCIES)
78377: $link_cmd
78378:
78379: EOF
78380:
78381: ;;
78382: *)
78383:
78384: install_modules="install-modules"
78385:
78386: case $host_alias in
78387: *aix*)
78388: suffix=so
78389: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(MCRYPT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mcrypt.so '$ext_builddir'/mcrypt.so'
78390: ;;
78391: *netware*)
78392: suffix=nlm
78393: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) -L$(top_builddir)/netware -lphp5lib $(YPT_SHARED_LIBADD)'
78394: ;;
78395: *)
78396: suffix=la
78397: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(MCRYPT_SHARED_LIBADD)'
78398: ;;
78399: esac
78400:
78401: if test "x" = "xyes"; then
78402: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mcrypt.$suffix"
78403: else
78404: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mcrypt.$suffix"
78405: fi
78406:
78407: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
78408:
78409: cat >>Makefile.objects<<EOF
78410: \$(phplibdir)/mcrypt.$suffix: $ext_builddir/mcrypt.$suffix
78411: \$(LIBTOOL) --mode=install cp $ext_builddir/mcrypt.$suffix \$(phplibdir)
78412:
78413: $ext_builddir/mcrypt.$suffix: \$(shared_objects_mcrypt) \$(MCRYPT_SHARED_DEPENDENCIES)
78414: $link_cmd
78415:
78416: EOF
78417:
78418: ;;
78419: esac
78420:
78421: cat >>confdefs.h <<_ACEOF
78422: #define COMPILE_DL_MCRYPT 1
78423: _ACEOF
78424:
78425: fi
78426: fi
78427:
78428: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78429: PHP_MCRYPT_SHARED=no
1.1.1.3 ! misho 78430: case "$PHP_SAPI" in
! 78431: cgi|embed)
1.1 misho 78432:
78433:
78434: case ext/mcrypt in
78435: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78436: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78437: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78438: esac
78439:
78440:
78441:
78442: b_c_pre=$php_c_pre
78443: b_cxx_pre=$php_cxx_pre
78444: b_c_meta=$php_c_meta
78445: b_cxx_meta=$php_cxx_meta
78446: b_c_post=$php_c_post
78447: b_cxx_post=$php_cxx_post
78448: b_lo=$php_lo
78449:
78450:
78451: old_IFS=$IFS
78452: for ac_src in mcrypt.c mcrypt_filter.c; do
78453:
78454: IFS=.
78455: set $ac_src
78456: ac_obj=$1
78457: IFS=$old_IFS
78458:
1.1.1.2 misho 78459: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 78460:
78461: case $ac_src in
78462: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78463: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78464: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78465: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78466: esac
78467:
78468: cat >>Makefile.objects<<EOF
78469: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78470: $ac_comp
78471: EOF
78472: done
78473:
78474:
1.1.1.3 ! misho 78475: EXT_STATIC="$EXT_STATIC mcrypt"
! 78476: ;;
! 78477: *)
1.1 misho 78478:
78479:
78480: case ext/mcrypt in
78481: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78482: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78483: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78484: esac
78485:
78486:
78487:
78488: b_c_pre=$php_c_pre
78489: b_cxx_pre=$php_cxx_pre
78490: b_c_meta=$php_c_meta
78491: b_cxx_meta=$php_cxx_meta
78492: b_c_post=$php_c_post
78493: b_cxx_post=$php_cxx_post
78494: b_lo=$php_lo
78495:
78496:
78497: old_IFS=$IFS
78498: for ac_src in mcrypt.c mcrypt_filter.c; do
78499:
78500: IFS=.
78501: set $ac_src
78502: ac_obj=$1
78503: IFS=$old_IFS
78504:
1.1.1.2 misho 78505: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 78506:
78507: case $ac_src in
78508: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78509: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78510: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78511: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78512: esac
78513:
78514: cat >>Makefile.objects<<EOF
78515: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78516: $ac_comp
78517: EOF
78518: done
78519:
78520:
1.1.1.3 ! misho 78521: ;;
! 78522: esac
1.1 misho 78523: EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
78524: fi
78525:
78526:
78527: BUILD_DIR="$BUILD_DIR $ext_builddir"
78528:
78529:
78530:
78531: if test "$ext_builddir" = "."; then
78532: PHP_PECL_EXTENSION=mcrypt
78533:
78534: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
78535:
78536: fi
78537:
78538: fi
78539:
78540:
78541:
78542: php_with_mssql=no
78543:
1.1.1.3 ! misho 78544: { echo "$as_me:$LINENO: checking for MSSQL support via FreeTDS" >&5
! 78545: echo $ECHO_N "checking for MSSQL support via FreeTDS... $ECHO_C" >&6; }
1.1 misho 78546:
78547: # Check whether --with-mssql was given.
1.1.1.3 ! misho 78548: if test "${with_mssql+set}" = set; then
1.1 misho 78549: withval=$with_mssql; PHP_MSSQL=$withval
78550: else
78551:
78552: PHP_MSSQL=no
78553: test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL
78554:
78555: fi
78556:
78557:
78558:
78559: ext_output="yes, shared"
78560: ext_shared=yes
78561: case $PHP_MSSQL in
78562: shared,*)
78563: PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'`
78564: ;;
78565: shared)
78566: PHP_MSSQL=yes
78567: ;;
78568: no)
78569: ext_output=no
78570: ext_shared=no
78571: ;;
78572: *)
78573: ext_output=yes
78574: ext_shared=no
78575: ;;
78576: esac
78577:
78578:
78579:
1.1.1.3 ! misho 78580: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 78581: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 78582:
78583:
78584:
78585:
78586: if test "$PHP_MSSQL" != "no"; then
78587:
78588: if test "$PHP_MSSQL" = "yes"; then
78589: for i in /usr/local /usr; do
78590: if test -f $i/include/sybdb.h; then
78591: FREETDS_INSTALLATION_DIR=$i
78592: FREETDS_INCLUDE_DIR=$i/include
78593: break
78594: elif test -f $i/include/freetds/sybdb.h; then
78595: FREETDS_INSTALLATION_DIR=$i
78596: FREETDS_INCLUDE_DIR=$i/include/freetds
78597: break
78598: fi
78599: done
78600:
78601: if test -z "$FREETDS_INSTALLATION_DIR"; then
1.1.1.3 ! misho 78602: { { echo "$as_me:$LINENO: error: Cannot find FreeTDS in known installation directories" >&5
! 78603: echo "$as_me: error: Cannot find FreeTDS in known installation directories" >&2;}
! 78604: { (exit 1); exit 1; }; }
1.1 misho 78605: fi
78606:
78607: elif test "$PHP_MSSQL" != "no"; then
78608:
78609: if test -f $PHP_MSSQL/include/sybdb.h; then
78610: FREETDS_INSTALLATION_DIR=$PHP_MSSQL
78611: FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
78612: elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
78613: FREETDS_INSTALLATION_DIR=$PHP_MSSQL
78614: FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
78615: else
1.1.1.3 ! misho 78616: { { echo "$as_me:$LINENO: error: Directory $PHP_MSSQL is not a FreeTDS installation directory" >&5
! 78617: echo "$as_me: error: Directory $PHP_MSSQL is not a FreeTDS installation directory" >&2;}
! 78618: { (exit 1); exit 1; }; }
1.1 misho 78619: fi
78620: fi
78621:
78622: if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
1.1.1.3 ! misho 78623: { { echo "$as_me:$LINENO: error: Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&5
! 78624: echo "$as_me: error: Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&2;}
! 78625: { (exit 1); exit 1; }; }
1.1 misho 78626: fi
78627:
78628:
78629: if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then
78630:
78631: if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
78632: ai_p=$FREETDS_INCLUDE_DIR
78633: else
78634:
78635: ep_dir="`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
78636:
78637: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78638: ai_p="$ep_realdir/`basename \"$FREETDS_INCLUDE_DIR\"`"
78639: fi
78640:
78641:
78642:
78643: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78644:
78645: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
78646: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78647: eval "INCLUDEPATH$unique=set"
78648:
78649: if test ""; then
78650: INCLUDES="-I$ai_p $INCLUDES"
78651: else
78652: INCLUDES="$INCLUDES -I$ai_p"
78653: fi
78654:
78655: fi
78656:
78657: fi
78658:
78659:
78660:
78661: if test "$ext_shared" = "yes"; then
78662: MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD"
78663: if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
78664:
78665: if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
78666:
78667: if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
78668: ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
78669: else
78670:
78671: ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
78672:
78673: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78674: ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
78675: fi
78676:
78677:
78678: if test "$ext_shared" = "yes"; then
78679: MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
78680: test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
78681: else
78682:
78683:
78684:
78685: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78686:
78687: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78688: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78689: eval "LIBPATH$unique=set"
78690:
78691: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78692: LDFLAGS="$LDFLAGS -L$ai_p"
78693: PHP_RPATHS="$PHP_RPATHS $ai_p"
78694:
78695: fi
78696:
78697:
78698: fi
78699:
78700: fi
78701:
78702: fi
78703: else
78704:
78705:
78706: if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
78707:
78708: if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
78709:
78710: if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
78711: ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
78712: else
78713:
78714: ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
78715:
78716: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78717: ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
78718: fi
78719:
78720:
78721:
78722:
78723:
78724: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78725:
78726: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78727: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78728: eval "LIBPATH$unique=set"
78729:
78730: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78731: LDFLAGS="$LDFLAGS -L$ai_p"
78732: PHP_RPATHS="$PHP_RPATHS $ai_p"
78733:
78734: fi
78735:
78736:
78737:
78738: fi
78739:
78740: fi
78741:
78742:
78743: case sybdb in
78744: c|c_r|pthread*) ;;
78745: *)
78746: LIBS="-lsybdb $LIBS"
78747: ;;
78748: esac
78749:
78750:
78751:
78752:
78753: fi
78754:
78755:
78756:
78757:
78758: ext_builddir=ext/mssql
78759: ext_srcdir=$abs_srcdir/ext/mssql
78760:
78761: ac_extra=
78762:
78763: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78764: PHP_MSSQL_SHARED=no
78765:
78766:
78767: case ext/mssql in
78768: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78769: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78770: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78771: esac
78772:
78773:
78774:
78775: b_c_pre=$php_c_pre
78776: b_cxx_pre=$php_cxx_pre
78777: b_c_meta=$php_c_meta
78778: b_cxx_meta=$php_cxx_meta
78779: b_c_post=$php_c_post
78780: b_cxx_post=$php_cxx_post
78781: b_lo=$php_lo
78782:
78783:
78784: old_IFS=$IFS
78785: for ac_src in php_mssql.c; do
78786:
78787: IFS=.
78788: set $ac_src
78789: ac_obj=$1
78790: IFS=$old_IFS
78791:
78792: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78793:
78794: case $ac_src in
78795: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78796: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78797: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78798: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78799: esac
78800:
78801: cat >>Makefile.objects<<EOF
78802: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78803: $ac_comp
78804: EOF
78805: done
78806:
78807:
78808: EXT_STATIC="$EXT_STATIC mssql"
78809: if test "$ext_shared" != "nocli"; then
78810: EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
78811: fi
78812: else
78813: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78814: PHP_MSSQL_SHARED=yes
78815:
78816: case ext/mssql in
78817: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78818: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78819: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78820: esac
78821:
78822:
78823:
78824: b_c_pre=$shared_c_pre
78825: b_cxx_pre=$shared_cxx_pre
78826: b_c_meta=$shared_c_meta
78827: b_cxx_meta=$shared_cxx_meta
78828: b_c_post=$shared_c_post
78829: b_cxx_post=$shared_cxx_post
78830: b_lo=$shared_lo
78831:
78832:
78833: old_IFS=$IFS
78834: for ac_src in php_mssql.c; do
78835:
78836: IFS=.
78837: set $ac_src
78838: ac_obj=$1
78839: IFS=$old_IFS
78840:
78841: shared_objects_mssql="$shared_objects_mssql $ac_bdir$ac_obj.lo"
78842:
78843: case $ac_src in
78844: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78845: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78846: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78847: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78848: esac
78849:
78850: cat >>Makefile.objects<<EOF
78851: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78852: $ac_comp
78853: EOF
78854: done
78855:
78856: case $host_alias in
78857: *netware*)
78858:
78859: install_modules="install-modules"
78860:
78861: case $host_alias in
78862: *aix*)
78863: suffix=so
78864: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmssql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(PHPMSSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmssql.so '$ext_builddir'/phpmssql.so'
78865: ;;
78866: *netware*)
78867: suffix=nlm
78868: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) -L$(top_builddir)/netware -lphp5lib $(MSSQL_SHARED_LIBADD)'
78869: ;;
78870: *)
78871: suffix=la
78872: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(PHPMSSQL_SHARED_LIBADD)'
78873: ;;
78874: esac
78875:
78876: if test "x" = "xyes"; then
78877: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmssql.$suffix"
78878: else
78879: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmssql.$suffix"
78880: fi
78881:
78882: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
78883:
78884: cat >>Makefile.objects<<EOF
78885: \$(phplibdir)/phpmssql.$suffix: $ext_builddir/phpmssql.$suffix
78886: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmssql.$suffix \$(phplibdir)
78887:
78888: $ext_builddir/phpmssql.$suffix: \$(shared_objects_mssql) \$(PHPMSSQL_SHARED_DEPENDENCIES)
78889: $link_cmd
78890:
78891: EOF
78892:
78893: ;;
78894: *)
78895:
78896: install_modules="install-modules"
78897:
78898: case $host_alias in
78899: *aix*)
78900: suffix=so
78901: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mssql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(MSSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mssql.so '$ext_builddir'/mssql.so'
78902: ;;
78903: *netware*)
78904: suffix=nlm
78905: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
78906: ;;
78907: *)
78908: suffix=la
78909: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(MSSQL_SHARED_LIBADD)'
78910: ;;
78911: esac
78912:
78913: if test "x" = "xyes"; then
78914: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mssql.$suffix"
78915: else
78916: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mssql.$suffix"
78917: fi
78918:
78919: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
78920:
78921: cat >>Makefile.objects<<EOF
78922: \$(phplibdir)/mssql.$suffix: $ext_builddir/mssql.$suffix
78923: \$(LIBTOOL) --mode=install cp $ext_builddir/mssql.$suffix \$(phplibdir)
78924:
78925: $ext_builddir/mssql.$suffix: \$(shared_objects_mssql) \$(MSSQL_SHARED_DEPENDENCIES)
78926: $link_cmd
78927:
78928: EOF
78929:
78930: ;;
78931: esac
78932:
78933: cat >>confdefs.h <<_ACEOF
78934: #define COMPILE_DL_MSSQL 1
78935: _ACEOF
78936:
78937: fi
78938: fi
78939:
78940: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78941: PHP_MSSQL_SHARED=no
1.1.1.3 ! misho 78942: case "$PHP_SAPI" in
! 78943: cgi|embed)
1.1 misho 78944:
78945:
78946: case ext/mssql in
78947: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78948: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78949: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78950: esac
78951:
78952:
78953:
78954: b_c_pre=$php_c_pre
78955: b_cxx_pre=$php_cxx_pre
78956: b_c_meta=$php_c_meta
78957: b_cxx_meta=$php_cxx_meta
78958: b_c_post=$php_c_post
78959: b_cxx_post=$php_cxx_post
78960: b_lo=$php_lo
78961:
78962:
78963: old_IFS=$IFS
78964: for ac_src in php_mssql.c; do
78965:
78966: IFS=.
78967: set $ac_src
78968: ac_obj=$1
78969: IFS=$old_IFS
78970:
1.1.1.2 misho 78971: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 78972:
78973: case $ac_src in
78974: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78975: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78976: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78977: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78978: esac
78979:
78980: cat >>Makefile.objects<<EOF
78981: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78982: $ac_comp
78983: EOF
78984: done
78985:
78986:
1.1.1.3 ! misho 78987: EXT_STATIC="$EXT_STATIC mssql"
! 78988: ;;
! 78989: *)
1.1 misho 78990:
78991:
78992: case ext/mssql in
78993: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78994: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78995: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78996: esac
78997:
78998:
78999:
79000: b_c_pre=$php_c_pre
79001: b_cxx_pre=$php_cxx_pre
79002: b_c_meta=$php_c_meta
79003: b_cxx_meta=$php_cxx_meta
79004: b_c_post=$php_c_post
79005: b_cxx_post=$php_cxx_post
79006: b_lo=$php_lo
79007:
79008:
79009: old_IFS=$IFS
79010: for ac_src in php_mssql.c; do
79011:
79012: IFS=.
79013: set $ac_src
79014: ac_obj=$1
79015: IFS=$old_IFS
79016:
1.1.1.2 misho 79017: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 79018:
79019: case $ac_src in
79020: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79021: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79022: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79023: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79024: esac
79025:
79026: cat >>Makefile.objects<<EOF
79027: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79028: $ac_comp
79029: EOF
79030: done
79031:
79032:
1.1.1.3 ! misho 79033: ;;
! 79034: esac
1.1 misho 79035: EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
79036: fi
79037:
79038:
79039: BUILD_DIR="$BUILD_DIR $ext_builddir"
79040:
79041:
79042:
79043: if test "$ext_builddir" = "."; then
79044: PHP_PECL_EXTENSION=mssql
79045:
79046: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
79047:
79048: fi
79049:
1.1.1.3 ! misho 79050: { echo "$as_me:$LINENO: checking for dnet_addr in -ldnet_stub" >&5
! 79051: echo $ECHO_N "checking for dnet_addr in -ldnet_stub... $ECHO_C" >&6; }
! 79052: if test "${ac_cv_lib_dnet_stub_dnet_addr+set}" = set; then
! 79053: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 79054: else
79055: ac_check_lib_save_LIBS=$LIBS
79056: LIBS="-ldnet_stub $LIBS"
1.1.1.3 ! misho 79057: cat >conftest.$ac_ext <<_ACEOF
! 79058: /* confdefs.h. */
! 79059: _ACEOF
! 79060: cat confdefs.h >>conftest.$ac_ext
! 79061: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 79062: /* end confdefs.h. */
79063:
79064: /* Override any GCC internal prototype to avoid an error.
79065: Use char because int might match the return type of a GCC
79066: builtin and then its argument prototype would still apply. */
79067: #ifdef __cplusplus
79068: extern "C"
79069: #endif
79070: char dnet_addr ();
79071: int
79072: main ()
79073: {
79074: return dnet_addr ();
79075: ;
79076: return 0;
79077: }
79078: _ACEOF
1.1.1.3 ! misho 79079: rm -f conftest.$ac_objext conftest$ac_exeext
! 79080: if { (ac_try="$ac_link"
! 79081: case "(($ac_try" in
! 79082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 79083: *) ac_try_echo=$ac_try;;
! 79084: esac
! 79085: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 79086: (eval "$ac_link") 2>conftest.er1
! 79087: ac_status=$?
! 79088: grep -v '^ *+' conftest.er1 >conftest.err
! 79089: rm -f conftest.er1
! 79090: cat conftest.err >&5
! 79091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 79092: (exit $ac_status); } && {
! 79093: test -z "$ac_c_werror_flag" ||
! 79094: test ! -s conftest.err
! 79095: } && test -s conftest$ac_exeext &&
! 79096: $as_test_x conftest$ac_exeext; then
1.1 misho 79097: ac_cv_lib_dnet_stub_dnet_addr=yes
79098: else
1.1.1.3 ! misho 79099: echo "$as_me: failed program was:" >&5
! 79100: sed 's/^/| /' conftest.$ac_ext >&5
! 79101:
! 79102: ac_cv_lib_dnet_stub_dnet_addr=no
1.1 misho 79103: fi
1.1.1.3 ! misho 79104:
! 79105: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 79106: conftest$ac_exeext conftest.$ac_ext
1.1 misho 79107: LIBS=$ac_check_lib_save_LIBS
79108: fi
1.1.1.3 ! misho 79109: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
! 79110: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
! 79111: if test $ac_cv_lib_dnet_stub_dnet_addr = yes; then
1.1 misho 79112:
79113:
79114: if test "$ext_shared" = "yes"; then
79115: MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD"
79116: if test -n ""; then
79117:
79118: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
79119:
79120: if test -z "" || echo "" | grep '^/' >/dev/null ; then
79121: ai_p=
79122: else
79123:
79124: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
79125:
79126: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79127: ai_p="$ep_realdir/`basename \"\"`"
79128: fi
79129:
79130:
79131: if test "$ext_shared" = "yes"; then
79132: MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
79133: test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
79134: else
79135:
79136:
79137:
79138: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79139:
79140: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79141: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79142: eval "LIBPATH$unique=set"
79143:
79144: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79145: LDFLAGS="$LDFLAGS -L$ai_p"
79146: PHP_RPATHS="$PHP_RPATHS $ai_p"
79147:
79148: fi
79149:
79150:
79151: fi
79152:
79153: fi
79154:
79155: fi
79156: else
79157:
79158:
79159: if test -n ""; then
79160:
79161: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
79162:
79163: if test -z "" || echo "" | grep '^/' >/dev/null ; then
79164: ai_p=
79165: else
79166:
79167: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
79168:
79169: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79170: ai_p="$ep_realdir/`basename \"\"`"
79171: fi
79172:
79173:
79174:
79175:
79176:
79177: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79178:
79179: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79180: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79181: eval "LIBPATH$unique=set"
79182:
79183: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79184: LDFLAGS="$LDFLAGS -L$ai_p"
79185: PHP_RPATHS="$PHP_RPATHS $ai_p"
79186:
79187: fi
79188:
79189:
79190:
79191: fi
79192:
79193: fi
79194:
79195:
79196: case dnet_stub in
79197: c|c_r|pthread*) ;;
79198: *)
79199: LIBS="-ldnet_stub $LIBS"
79200: ;;
79201: esac
79202:
79203:
79204:
79205:
79206: fi
79207:
79208:
79209:
1.1.1.3 ! misho 79210: cat >>confdefs.h <<\_ACEOF
! 79211: #define HAVE_LIBDNET_STUB 1
! 79212: _ACEOF
1.1 misho 79213:
79214:
79215: fi
79216:
79217:
1.1.1.3 ! misho 79218: cat >>confdefs.h <<\_ACEOF
! 79219: #define HAVE_MSSQL 1
! 79220: _ACEOF
1.1 misho 79221:
79222:
1.1.1.3 ! misho 79223: cat >>confdefs.h <<\_ACEOF
! 79224: #define HAVE_FREETDS 1
! 79225: _ACEOF
1.1 misho 79226:
79227:
79228: PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD"
79229:
79230: fi
79231:
79232:
79233:
79234:
79235:
79236:
79237:
79238:
79239: php_with_mysql=no
79240:
1.1.1.3 ! misho 79241: { echo "$as_me:$LINENO: checking for MySQL support" >&5
! 79242: echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
1.1 misho 79243:
79244: # Check whether --with-mysql was given.
1.1.1.3 ! misho 79245: if test "${with_mysql+set}" = set; then
1.1 misho 79246: withval=$with_mysql; PHP_MYSQL=$withval
79247: else
79248:
79249: PHP_MYSQL=no
79250: test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL
79251:
79252: fi
79253:
79254:
79255:
79256: ext_output="yes, shared"
79257: ext_shared=yes
79258: case $PHP_MYSQL in
79259: shared,*)
79260: PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'`
79261: ;;
79262: shared)
79263: PHP_MYSQL=yes
79264: ;;
79265: no)
79266: ext_output=no
79267: ext_shared=no
79268: ;;
79269: *)
79270: ext_output=yes
79271: ext_shared=no
79272: ;;
79273: esac
79274:
79275:
79276:
1.1.1.3 ! misho 79277: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 79278: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 79279:
79280:
79281:
79282:
79283:
79284: php_with_mysql_sock=no
79285:
1.1.1.3 ! misho 79286: { echo "$as_me:$LINENO: checking for specified location of the MySQL UNIX socket" >&5
! 79287: echo $ECHO_N "checking for specified location of the MySQL UNIX socket... $ECHO_C" >&6; }
1.1 misho 79288:
79289: # Check whether --with-mysql-sock was given.
1.1.1.3 ! misho 79290: if test "${with_mysql_sock+set}" = set; then
1.1 misho 79291: withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval
79292: else
79293:
79294: PHP_MYSQL_SOCK=no
79295:
79296:
79297: fi
79298:
79299:
79300: ext_output=$PHP_MYSQL_SOCK
1.1.1.3 ! misho 79301: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 79302: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 79303:
79304:
79305:
79306:
79307: if test -z "$PHP_ZLIB_DIR"; then
79308:
79309: php_with_zlib_dir=no
79310:
1.1.1.3 ! misho 79311: { echo "$as_me:$LINENO: checking for the location of libz" >&5
! 79312: echo $ECHO_N "checking for the location of libz... $ECHO_C" >&6; }
1.1 misho 79313:
79314: # Check whether --with-zlib-dir was given.
1.1.1.3 ! misho 79315: if test "${with_zlib_dir+set}" = set; then
1.1 misho 79316: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
79317: else
79318:
79319: PHP_ZLIB_DIR=no
79320:
79321:
79322: fi
79323:
79324:
79325: ext_output=$PHP_ZLIB_DIR
1.1.1.3 ! misho 79326: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 79327: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 79328:
79329:
79330:
79331: fi
79332:
1.1.1.2 misho 79333: if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then
1.1 misho 79334: PHP_MYSQLND_ENABLED=yes
79335:
79336: elif test "$PHP_MYSQL" != "no"; then
79337: MYSQL_DIR=
79338: MYSQL_INC_DIR=
79339:
1.1.1.2 misho 79340: if test -r $PHP_MYSQL/include/mysql/mysql.h; then
79341: MYSQL_DIR=$PHP_MYSQL
79342: MYSQL_INC_DIR=$PHP_MYSQL/include/mysql
79343: break
79344: elif test -r $PHP_MYSQL/include/mysql.h; then
79345: MYSQL_DIR=$PHP_MYSQL
79346: MYSQL_INC_DIR=$PHP_MYSQL/include
79347: break
79348: fi
1.1 misho 79349:
79350: if test -z "$MYSQL_DIR"; then
1.1.1.3 ! misho 79351: { { echo "$as_me:$LINENO: error: Cannot find MySQL header files under $PHP_MYSQL.
! 79352: Note that the MySQL client library is not bundled anymore!" >&5
! 79353: echo "$as_me: error: Cannot find MySQL header files under $PHP_MYSQL.
! 79354: Note that the MySQL client library is not bundled anymore!" >&2;}
! 79355: { (exit 1); exit 1; }; }
1.1 misho 79356: fi
79357:
79358: if test "$enable_maintainer_zts" = "yes"; then
79359: MYSQL_LIBNAME=mysqlclient_r
79360: else
79361: MYSQL_LIBNAME=mysqlclient
79362: fi
79363: case $host_alias in
79364: *netware*)
79365: MYSQL_LIBNAME=mysql
79366: ;;
79367: esac
79368:
79369: if test -z "$PHP_LIBDIR"; then
79370: PHP_LIBDIR=lib
79371: fi
79372:
79373: for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do
79374:
79375: str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*"
79376: for j in `echo $str`; do
79377: if test -r $j; then
79378: MYSQL_LIB_DIR=$MYSQL_DIR/$i
79379: break 2
79380: fi
79381: done
79382:
79383: done
79384:
79385: if test -z "$MYSQL_LIB_DIR"; then
1.1.1.3 ! misho 79386:
! 79387: str="$MYSQL_DIR/lib/x86_64-linux-gnu/lib$MYSQL_LIBNAME.*"
! 79388: for j in `echo $str`; do
! 79389: if test -r $j; then
! 79390: MYSQL_LIB_DIR=$MYSQL_DIR/lib/x86_64-linux-gnu
! 79391: break 2
! 79392: fi
! 79393: done
! 79394:
! 79395: fi
! 79396: if test -z "$MYSQL_LIB_DIR"; then
! 79397:
! 79398: str="$MYSQL_DIR/lib/i386-linux-gnu/lib$MYSQL_LIBNAME.*"
! 79399: for j in `echo $str`; do
! 79400: if test -r $j; then
! 79401: MYSQL_LIB_DIR=$MYSQL_DIR/lib/i386-linux-gnu
! 79402: break 2
! 79403: fi
! 79404: done
! 79405:
! 79406: fi
! 79407:
! 79408: if test -z "$MYSQL_LIB_DIR"; then
! 79409: { { echo "$as_me:$LINENO: error: Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
! 79410: Note that the MySQL client library is not bundled anymore!" >&5
! 79411: echo "$as_me: error: Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
! 79412: Note that the MySQL client library is not bundled anymore!" >&2;}
! 79413: { (exit 1); exit 1; }; }
1.1 misho 79414: fi
79415:
79416:
79417: save_old_LDFLAGS=$LDFLAGS
79418: ac_stuff="
79419: -L$MYSQL_LIB_DIR
79420: "
79421:
79422: save_ext_shared=$ext_shared
79423: ext_shared=yes
79424:
79425: for ac_i in $ac_stuff; do
79426: case $ac_i in
79427: -pthread)
79428: if test "$ext_shared" = "yes"; then
79429: LDFLAGS="$LDFLAGS -pthread"
79430: else
79431:
79432:
79433: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
79434:
79435: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
79436: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79437: eval "EXTRA_LDFLAGS$unique=set"
79438: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
79439: fi
79440:
79441: fi
79442: ;;
79443: -l*)
79444: ac_ii=`echo $ac_i|cut -c 3-`
79445:
79446:
79447: case $ac_ii in
79448: c|c_r|pthread*) ;;
79449: *)
79450: if test "$ext_shared" = "yes"; then
79451: LDFLAGS="$LDFLAGS -l$ac_ii"
79452: else
79453:
79454:
79455: case $ac_ii in
79456: c|c_r|pthread*) ;;
79457: *)
79458: LIBS="$LIBS -l$ac_ii"
79459: ;;
79460: esac
79461:
79462:
79463: fi
79464: ;;
79465: esac
79466:
79467:
79468: ;;
79469: -L*)
79470: ac_ii=`echo $ac_i|cut -c 3-`
79471:
79472: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
79473:
79474: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
79475: ai_p=$ac_ii
79476: else
79477:
79478: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
79479:
79480: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79481: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
79482: fi
79483:
79484:
79485: if test "$ext_shared" = "yes"; then
79486: LDFLAGS="-L$ai_p $LDFLAGS"
79487: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
79488: else
79489:
79490:
79491:
79492: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79493:
79494: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79495: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79496: eval "LIBPATH$unique=set"
79497:
79498: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79499: LDFLAGS="$LDFLAGS -L$ai_p"
79500: PHP_RPATHS="$PHP_RPATHS $ai_p"
79501:
79502: fi
79503:
79504:
79505: fi
79506:
79507: fi
79508:
79509: ;;
79510: esac
79511: done
79512:
1.1.1.3 ! misho 79513: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh`
! 79514: { echo "$as_me:$LINENO: checking for mysql_close in -l$MYSQL_LIBNAME" >&5
! 79515: echo $ECHO_N "checking for mysql_close in -l$MYSQL_LIBNAME... $ECHO_C" >&6; }
! 79516: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 79517: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 79518: else
79519: ac_check_lib_save_LIBS=$LIBS
79520: LIBS="-l$MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 79521: cat >conftest.$ac_ext <<_ACEOF
! 79522: /* confdefs.h. */
! 79523: _ACEOF
! 79524: cat confdefs.h >>conftest.$ac_ext
! 79525: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 79526: /* end confdefs.h. */
79527:
79528: /* Override any GCC internal prototype to avoid an error.
79529: Use char because int might match the return type of a GCC
79530: builtin and then its argument prototype would still apply. */
79531: #ifdef __cplusplus
79532: extern "C"
79533: #endif
79534: char mysql_close ();
79535: int
79536: main ()
79537: {
79538: return mysql_close ();
79539: ;
79540: return 0;
79541: }
79542: _ACEOF
1.1.1.3 ! misho 79543: rm -f conftest.$ac_objext conftest$ac_exeext
! 79544: if { (ac_try="$ac_link"
! 79545: case "(($ac_try" in
! 79546: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 79547: *) ac_try_echo=$ac_try;;
! 79548: esac
! 79549: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 79550: (eval "$ac_link") 2>conftest.er1
! 79551: ac_status=$?
! 79552: grep -v '^ *+' conftest.er1 >conftest.err
! 79553: rm -f conftest.er1
! 79554: cat conftest.err >&5
! 79555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 79556: (exit $ac_status); } && {
! 79557: test -z "$ac_c_werror_flag" ||
! 79558: test ! -s conftest.err
! 79559: } && test -s conftest$ac_exeext &&
! 79560: $as_test_x conftest$ac_exeext; then
1.1 misho 79561: eval "$as_ac_Lib=yes"
79562: else
1.1.1.3 ! misho 79563: echo "$as_me: failed program was:" >&5
! 79564: sed 's/^/| /' conftest.$ac_ext >&5
! 79565:
! 79566: eval "$as_ac_Lib=no"
1.1 misho 79567: fi
1.1.1.3 ! misho 79568:
! 79569: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 79570: conftest$ac_exeext conftest.$ac_ext
1.1 misho 79571: LIBS=$ac_check_lib_save_LIBS
79572: fi
1.1.1.3 ! misho 79573: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 79574: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 79575: echo "${ECHO_T}$ac_res" >&6; }
! 79576: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 79577:
79578: LDFLAGS=$save_old_LDFLAGS
79579: ext_shared=$save_ext_shared
79580:
79581:
79582: else
79583:
79584: LDFLAGS=$save_old_LDFLAGS
79585: ext_shared=$save_ext_shared
79586: unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close
79587:
79588: if test "$PHP_ZLIB_DIR" != "no"; then
79589:
79590:
79591: if test "$ext_shared" = "yes"; then
79592: MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
79593: if test -n "$PHP_ZLIB_DIR"; then
79594:
79595: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
79596:
79597: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
79598: ai_p=$PHP_ZLIB_DIR
79599: else
79600:
79601: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
79602:
79603: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79604: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
79605: fi
79606:
79607:
79608: if test "$ext_shared" = "yes"; then
79609: MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
79610: test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
79611: else
79612:
79613:
79614:
79615: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79616:
79617: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79618: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79619: eval "LIBPATH$unique=set"
79620:
79621: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79622: LDFLAGS="$LDFLAGS -L$ai_p"
79623: PHP_RPATHS="$PHP_RPATHS $ai_p"
79624:
79625: fi
79626:
79627:
79628: fi
79629:
79630: fi
79631:
79632: fi
79633: else
79634:
79635:
79636: if test -n "$PHP_ZLIB_DIR"; then
79637:
79638: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
79639:
79640: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
79641: ai_p=$PHP_ZLIB_DIR
79642: else
79643:
79644: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
79645:
79646: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79647: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
79648: fi
79649:
79650:
79651:
79652:
79653:
79654: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79655:
79656: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79657: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79658: eval "LIBPATH$unique=set"
79659:
79660: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79661: LDFLAGS="$LDFLAGS -L$ai_p"
79662: PHP_RPATHS="$PHP_RPATHS $ai_p"
79663:
79664: fi
79665:
79666:
79667:
79668: fi
79669:
79670: fi
79671:
79672:
79673: case z in
79674: c|c_r|pthread*) ;;
79675: *)
79676: LIBS="-lz $LIBS"
79677: ;;
79678: esac
79679:
79680:
79681:
79682:
79683: fi
79684:
79685:
79686:
79687: save_old_LDFLAGS=$LDFLAGS
79688: ac_stuff="
79689: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR
79690: "
79691:
79692: save_ext_shared=$ext_shared
79693: ext_shared=yes
79694:
79695: for ac_i in $ac_stuff; do
79696: case $ac_i in
79697: -pthread)
79698: if test "$ext_shared" = "yes"; then
79699: LDFLAGS="$LDFLAGS -pthread"
79700: else
79701:
79702:
79703: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
79704:
79705: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
79706: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79707: eval "EXTRA_LDFLAGS$unique=set"
79708: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
79709: fi
79710:
79711: fi
79712: ;;
79713: -l*)
79714: ac_ii=`echo $ac_i|cut -c 3-`
79715:
79716:
79717: case $ac_ii in
79718: c|c_r|pthread*) ;;
79719: *)
79720: if test "$ext_shared" = "yes"; then
79721: LDFLAGS="$LDFLAGS -l$ac_ii"
79722: else
79723:
79724:
79725: case $ac_ii in
79726: c|c_r|pthread*) ;;
79727: *)
79728: LIBS="$LIBS -l$ac_ii"
79729: ;;
79730: esac
79731:
79732:
79733: fi
79734: ;;
79735: esac
79736:
79737:
79738: ;;
79739: -L*)
79740: ac_ii=`echo $ac_i|cut -c 3-`
79741:
79742: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
79743:
79744: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
79745: ai_p=$ac_ii
79746: else
79747:
79748: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
79749:
79750: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79751: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
79752: fi
79753:
79754:
79755: if test "$ext_shared" = "yes"; then
79756: LDFLAGS="-L$ai_p $LDFLAGS"
79757: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
79758: else
79759:
79760:
79761:
79762: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79763:
79764: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79765: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79766: eval "LIBPATH$unique=set"
79767:
79768: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79769: LDFLAGS="$LDFLAGS -L$ai_p"
79770: PHP_RPATHS="$PHP_RPATHS $ai_p"
79771:
79772: fi
79773:
79774:
79775: fi
79776:
79777: fi
79778:
79779: ;;
79780: esac
79781: done
79782:
1.1.1.3 ! misho 79783: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh`
! 79784: { echo "$as_me:$LINENO: checking for mysql_error in -l$MYSQL_LIBNAME" >&5
! 79785: echo $ECHO_N "checking for mysql_error in -l$MYSQL_LIBNAME... $ECHO_C" >&6; }
! 79786: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 79787: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 79788: else
79789: ac_check_lib_save_LIBS=$LIBS
79790: LIBS="-l$MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 79791: cat >conftest.$ac_ext <<_ACEOF
! 79792: /* confdefs.h. */
! 79793: _ACEOF
! 79794: cat confdefs.h >>conftest.$ac_ext
! 79795: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 79796: /* end confdefs.h. */
79797:
79798: /* Override any GCC internal prototype to avoid an error.
79799: Use char because int might match the return type of a GCC
79800: builtin and then its argument prototype would still apply. */
79801: #ifdef __cplusplus
79802: extern "C"
79803: #endif
79804: char mysql_error ();
79805: int
79806: main ()
79807: {
79808: return mysql_error ();
79809: ;
79810: return 0;
79811: }
79812: _ACEOF
1.1.1.3 ! misho 79813: rm -f conftest.$ac_objext conftest$ac_exeext
! 79814: if { (ac_try="$ac_link"
! 79815: case "(($ac_try" in
! 79816: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 79817: *) ac_try_echo=$ac_try;;
! 79818: esac
! 79819: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 79820: (eval "$ac_link") 2>conftest.er1
! 79821: ac_status=$?
! 79822: grep -v '^ *+' conftest.er1 >conftest.err
! 79823: rm -f conftest.er1
! 79824: cat conftest.err >&5
! 79825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 79826: (exit $ac_status); } && {
! 79827: test -z "$ac_c_werror_flag" ||
! 79828: test ! -s conftest.err
! 79829: } && test -s conftest$ac_exeext &&
! 79830: $as_test_x conftest$ac_exeext; then
1.1 misho 79831: eval "$as_ac_Lib=yes"
79832: else
1.1.1.3 ! misho 79833: echo "$as_me: failed program was:" >&5
! 79834: sed 's/^/| /' conftest.$ac_ext >&5
! 79835:
! 79836: eval "$as_ac_Lib=no"
1.1 misho 79837: fi
1.1.1.3 ! misho 79838:
! 79839: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 79840: conftest$ac_exeext conftest.$ac_ext
1.1 misho 79841: LIBS=$ac_check_lib_save_LIBS
79842: fi
1.1.1.3 ! misho 79843: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 79844: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 79845: echo "${ECHO_T}$ac_res" >&6; }
! 79846: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 79847:
79848: LDFLAGS=$save_old_LDFLAGS
79849: ext_shared=$save_ext_shared
79850:
79851:
79852: else
79853:
79854: LDFLAGS=$save_old_LDFLAGS
79855: ext_shared=$save_ext_shared
79856: unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error
79857:
1.1.1.3 ! misho 79858: { { echo "$as_me:$LINENO: error: mysql configure failed. Please check config.log for more information." >&5
! 79859: echo "$as_me: error: mysql configure failed. Please check config.log for more information." >&2;}
! 79860: { (exit 1); exit 1; }; }
1.1 misho 79861:
79862:
79863: fi
79864:
79865: MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
79866: else
79867:
79868:
79869: case z in
79870: c|c_r|pthread*) ;;
79871: *)
79872: if test "$ext_shared" = "yes"; then
79873: MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
79874: else
79875:
79876:
79877: case z in
79878: c|c_r|pthread*) ;;
79879: *)
79880: LIBS="-lz $LIBS"
79881: ;;
79882: esac
79883:
79884:
79885: fi
79886: ;;
79887: esac
79888:
79889:
79890:
79891: save_old_LDFLAGS=$LDFLAGS
79892: ac_stuff="
79893: -L$MYSQL_LIB_DIR
79894: "
79895:
79896: save_ext_shared=$ext_shared
79897: ext_shared=yes
79898:
79899: for ac_i in $ac_stuff; do
79900: case $ac_i in
79901: -pthread)
79902: if test "$ext_shared" = "yes"; then
79903: LDFLAGS="$LDFLAGS -pthread"
79904: else
79905:
79906:
79907: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
79908:
79909: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
79910: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79911: eval "EXTRA_LDFLAGS$unique=set"
79912: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
79913: fi
79914:
79915: fi
79916: ;;
79917: -l*)
79918: ac_ii=`echo $ac_i|cut -c 3-`
79919:
79920:
79921: case $ac_ii in
79922: c|c_r|pthread*) ;;
79923: *)
79924: if test "$ext_shared" = "yes"; then
79925: LDFLAGS="$LDFLAGS -l$ac_ii"
79926: else
79927:
79928:
79929: case $ac_ii in
79930: c|c_r|pthread*) ;;
79931: *)
79932: LIBS="$LIBS -l$ac_ii"
79933: ;;
79934: esac
79935:
79936:
79937: fi
79938: ;;
79939: esac
79940:
79941:
79942: ;;
79943: -L*)
79944: ac_ii=`echo $ac_i|cut -c 3-`
79945:
79946: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
79947:
79948: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
79949: ai_p=$ac_ii
79950: else
79951:
79952: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
79953:
79954: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79955: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
79956: fi
79957:
79958:
79959: if test "$ext_shared" = "yes"; then
79960: LDFLAGS="-L$ai_p $LDFLAGS"
79961: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
79962: else
79963:
79964:
79965:
79966: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79967:
79968: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79969: if test -n "$unique" && test "`eval $cmd`" = "" ; then
79970: eval "LIBPATH$unique=set"
79971:
79972: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79973: LDFLAGS="$LDFLAGS -L$ai_p"
79974: PHP_RPATHS="$PHP_RPATHS $ai_p"
79975:
79976: fi
79977:
79978:
79979: fi
79980:
79981: fi
79982:
79983: ;;
79984: esac
79985: done
79986:
1.1.1.3 ! misho 79987: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh`
! 79988: { echo "$as_me:$LINENO: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5
! 79989: echo $ECHO_N "checking for mysql_errno in -l$MYSQL_LIBNAME... $ECHO_C" >&6; }
! 79990: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 79991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 79992: else
79993: ac_check_lib_save_LIBS=$LIBS
79994: LIBS="-l$MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 79995: cat >conftest.$ac_ext <<_ACEOF
! 79996: /* confdefs.h. */
! 79997: _ACEOF
! 79998: cat confdefs.h >>conftest.$ac_ext
! 79999: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 80000: /* end confdefs.h. */
80001:
80002: /* Override any GCC internal prototype to avoid an error.
80003: Use char because int might match the return type of a GCC
80004: builtin and then its argument prototype would still apply. */
80005: #ifdef __cplusplus
80006: extern "C"
80007: #endif
80008: char mysql_errno ();
80009: int
80010: main ()
80011: {
80012: return mysql_errno ();
80013: ;
80014: return 0;
80015: }
80016: _ACEOF
1.1.1.3 ! misho 80017: rm -f conftest.$ac_objext conftest$ac_exeext
! 80018: if { (ac_try="$ac_link"
! 80019: case "(($ac_try" in
! 80020: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 80021: *) ac_try_echo=$ac_try;;
! 80022: esac
! 80023: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 80024: (eval "$ac_link") 2>conftest.er1
! 80025: ac_status=$?
! 80026: grep -v '^ *+' conftest.er1 >conftest.err
! 80027: rm -f conftest.er1
! 80028: cat conftest.err >&5
! 80029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 80030: (exit $ac_status); } && {
! 80031: test -z "$ac_c_werror_flag" ||
! 80032: test ! -s conftest.err
! 80033: } && test -s conftest$ac_exeext &&
! 80034: $as_test_x conftest$ac_exeext; then
1.1 misho 80035: eval "$as_ac_Lib=yes"
80036: else
1.1.1.3 ! misho 80037: echo "$as_me: failed program was:" >&5
! 80038: sed 's/^/| /' conftest.$ac_ext >&5
! 80039:
! 80040: eval "$as_ac_Lib=no"
1.1 misho 80041: fi
1.1.1.3 ! misho 80042:
! 80043: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 80044: conftest$ac_exeext conftest.$ac_ext
1.1 misho 80045: LIBS=$ac_check_lib_save_LIBS
80046: fi
1.1.1.3 ! misho 80047: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 80048: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 80049: echo "${ECHO_T}$ac_res" >&6; }
! 80050: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 80051:
80052: LDFLAGS=$save_old_LDFLAGS
80053: ext_shared=$save_ext_shared
80054:
80055:
80056: else
80057:
80058: LDFLAGS=$save_old_LDFLAGS
80059: ext_shared=$save_ext_shared
80060: unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno
80061:
1.1.1.3 ! misho 80062: { { echo "$as_me:$LINENO: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&5
! 80063: echo "$as_me: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&2;}
! 80064: { (exit 1); exit 1; }; }
1.1 misho 80065:
80066:
80067: fi
80068:
80069: MYSQL_LIBS="-lz"
80070: fi
80071:
80072:
80073: fi
80074:
80075:
80076:
80077:
80078: if test "$ext_shared" = "yes"; then
80079: MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD"
80080: if test -n "$MYSQL_LIB_DIR"; then
80081:
80082: if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
80083:
80084: if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
80085: ai_p=$MYSQL_LIB_DIR
80086: else
80087:
80088: ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
80089:
80090: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80091: ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
80092: fi
80093:
80094:
80095: if test "$ext_shared" = "yes"; then
80096: MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
80097: test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
80098: else
80099:
80100:
80101:
80102: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80103:
80104: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80105: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80106: eval "LIBPATH$unique=set"
80107:
80108: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80109: LDFLAGS="$LDFLAGS -L$ai_p"
80110: PHP_RPATHS="$PHP_RPATHS $ai_p"
80111:
80112: fi
80113:
80114:
80115: fi
80116:
80117: fi
80118:
80119: fi
80120: else
80121:
80122:
80123: if test -n "$MYSQL_LIB_DIR"; then
80124:
80125: if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
80126:
80127: if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
80128: ai_p=$MYSQL_LIB_DIR
80129: else
80130:
80131: ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
80132:
80133: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80134: ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
80135: fi
80136:
80137:
80138:
80139:
80140:
80141: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80142:
80143: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80144: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80145: eval "LIBPATH$unique=set"
80146:
80147: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80148: LDFLAGS="$LDFLAGS -L$ai_p"
80149: PHP_RPATHS="$PHP_RPATHS $ai_p"
80150:
80151: fi
80152:
80153:
80154:
80155: fi
80156:
80157: fi
80158:
80159:
80160: case $MYSQL_LIBNAME in
80161: c|c_r|pthread*) ;;
80162: *)
80163: LIBS="-l$MYSQL_LIBNAME $LIBS"
80164: ;;
80165: esac
80166:
80167:
80168:
80169:
80170: fi
80171:
80172:
80173:
80174: if test "$MYSQL_INC_DIR" != "/usr/include"; then
80175:
80176: if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
80177: ai_p=$MYSQL_INC_DIR
80178: else
80179:
80180: ep_dir="`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
80181:
80182: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80183: ai_p="$ep_realdir/`basename \"$MYSQL_INC_DIR\"`"
80184: fi
80185:
80186:
80187:
80188: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80189:
80190: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80191: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80192: eval "INCLUDEPATH$unique=set"
80193:
80194: if test ""; then
80195: INCLUDES="-I$ai_p $INCLUDES"
80196: else
80197: INCLUDES="$INCLUDES -I$ai_p"
80198: fi
80199:
80200: fi
80201:
80202: fi
80203:
80204:
80205: MYSQL_MODULE_TYPE=external
80206: MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS"
80207: MYSQL_INCLUDE=-I$MYSQL_INC_DIR
80208:
80209:
80210:
80211: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE"
80212:
80213:
80214:
80215:
80216:
80217: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS"
80218:
80219:
80220:
80221:
80222:
80223: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE"
80224:
80225:
80226:
80227: fi
80228:
80229: if test "$PHP_MYSQL" != "no"; then
1.1.1.3 ! misho 80230: { echo "$as_me:$LINENO: checking for MySQL UNIX socket location" >&5
! 80231: echo $ECHO_N "checking for MySQL UNIX socket location... $ECHO_C" >&6; }
1.1 misho 80232: if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
80233: MYSQL_SOCK=$PHP_MYSQL_SOCK
80234:
80235: cat >>confdefs.h <<_ACEOF
80236: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
80237: _ACEOF
80238:
1.1.1.3 ! misho 80239: { echo "$as_me:$LINENO: result: $MYSQL_SOCK" >&5
! 80240: echo "${ECHO_T}$MYSQL_SOCK" >&6; }
1.1 misho 80241: elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then
80242:
80243: for i in \
80244: /var/run/mysqld/mysqld.sock \
80245: /var/tmp/mysql.sock \
80246: /var/run/mysql/mysql.sock \
80247: /var/lib/mysql/mysql.sock \
80248: /var/mysql/mysql.sock \
80249: /usr/local/mysql/var/mysql.sock \
80250: /Private/tmp/mysql.sock \
80251: /private/tmp/mysql.sock \
80252: /tmp/mysql.sock \
80253: ; do
80254: if test -r $i; then
80255: MYSQL_SOCK=$i
80256: break 2
80257: fi
80258: done
80259:
80260: if test -n "$MYSQL_SOCK"; then
80261:
80262: cat >>confdefs.h <<_ACEOF
80263: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
80264: _ACEOF
80265:
1.1.1.3 ! misho 80266: { echo "$as_me:$LINENO: result: $MYSQL_SOCK" >&5
! 80267: echo "${ECHO_T}$MYSQL_SOCK" >&6; }
1.1 misho 80268: else
1.1.1.3 ! misho 80269: { echo "$as_me:$LINENO: result: no" >&5
! 80270: echo "${ECHO_T}no" >&6; }
1.1 misho 80271: fi
80272:
80273: else
1.1.1.3 ! misho 80274: { echo "$as_me:$LINENO: result: no" >&5
! 80275: echo "${ECHO_T}no" >&6; }
1.1 misho 80276: fi
80277:
80278:
1.1.1.3 ! misho 80279: cat >>confdefs.h <<\_ACEOF
! 80280: #define HAVE_MYSQL 1
! 80281: _ACEOF
1.1 misho 80282:
80283:
80284: ext_builddir=ext/mysql
80285: ext_srcdir=$abs_srcdir/ext/mysql
80286:
80287: ac_extra=
80288:
80289: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
80290: PHP_MYSQL_SHARED=no
80291:
80292:
80293: case ext/mysql in
80294: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80295: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80296: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80297: esac
80298:
80299:
80300:
80301: b_c_pre=$php_c_pre
80302: b_cxx_pre=$php_cxx_pre
80303: b_c_meta=$php_c_meta
80304: b_cxx_meta=$php_cxx_meta
80305: b_c_post=$php_c_post
80306: b_cxx_post=$php_cxx_post
80307: b_lo=$php_lo
80308:
80309:
80310: old_IFS=$IFS
80311: for ac_src in php_mysql.c; do
80312:
80313: IFS=.
80314: set $ac_src
80315: ac_obj=$1
80316: IFS=$old_IFS
80317:
80318: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
80319:
80320: case $ac_src in
80321: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80322: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80323: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80324: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80325: esac
80326:
80327: cat >>Makefile.objects<<EOF
80328: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80329: $ac_comp
80330: EOF
80331: done
80332:
80333:
80334: EXT_STATIC="$EXT_STATIC mysql"
80335: if test "$ext_shared" != "nocli"; then
80336: EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
80337: fi
80338: else
80339: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
80340: PHP_MYSQL_SHARED=yes
80341:
80342: case ext/mysql in
80343: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80344: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80345: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80346: esac
80347:
80348:
80349:
80350: b_c_pre=$shared_c_pre
80351: b_cxx_pre=$shared_cxx_pre
80352: b_c_meta=$shared_c_meta
80353: b_cxx_meta=$shared_cxx_meta
80354: b_c_post=$shared_c_post
80355: b_cxx_post=$shared_cxx_post
80356: b_lo=$shared_lo
80357:
80358:
80359: old_IFS=$IFS
80360: for ac_src in php_mysql.c; do
80361:
80362: IFS=.
80363: set $ac_src
80364: ac_obj=$1
80365: IFS=$old_IFS
80366:
80367: shared_objects_mysql="$shared_objects_mysql $ac_bdir$ac_obj.lo"
80368:
80369: case $ac_src in
80370: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80371: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80372: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80373: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80374: esac
80375:
80376: cat >>Makefile.objects<<EOF
80377: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80378: $ac_comp
80379: EOF
80380: done
80381:
80382: case $host_alias in
80383: *netware*)
80384:
80385: install_modules="install-modules"
80386:
80387: case $host_alias in
80388: *aix*)
80389: suffix=so
80390: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(PHPMYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysql.so '$ext_builddir'/phpmysql.so'
80391: ;;
80392: *netware*)
80393: suffix=nlm
80394: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) -L$(top_builddir)/netware -lphp5lib $(MYSQL_SHARED_LIBADD)'
80395: ;;
80396: *)
80397: suffix=la
80398: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(PHPMYSQL_SHARED_LIBADD)'
80399: ;;
80400: esac
80401:
80402: if test "x" = "xyes"; then
80403: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysql.$suffix"
80404: else
80405: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysql.$suffix"
80406: fi
80407:
80408: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
80409:
80410: cat >>Makefile.objects<<EOF
80411: \$(phplibdir)/phpmysql.$suffix: $ext_builddir/phpmysql.$suffix
80412: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysql.$suffix \$(phplibdir)
80413:
80414: $ext_builddir/phpmysql.$suffix: \$(shared_objects_mysql) \$(PHPMYSQL_SHARED_DEPENDENCIES)
80415: $link_cmd
80416:
80417: EOF
80418:
80419: ;;
80420: *)
80421:
80422: install_modules="install-modules"
80423:
80424: case $host_alias in
80425: *aix*)
80426: suffix=so
80427: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysql.so '$ext_builddir'/mysql.so'
80428: ;;
80429: *netware*)
80430: suffix=nlm
80431: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
80432: ;;
80433: *)
80434: suffix=la
80435: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(MYSQL_SHARED_LIBADD)'
80436: ;;
80437: esac
80438:
80439: if test "x" = "xyes"; then
80440: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysql.$suffix"
80441: else
80442: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysql.$suffix"
80443: fi
80444:
80445: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
80446:
80447: cat >>Makefile.objects<<EOF
80448: \$(phplibdir)/mysql.$suffix: $ext_builddir/mysql.$suffix
80449: \$(LIBTOOL) --mode=install cp $ext_builddir/mysql.$suffix \$(phplibdir)
80450:
80451: $ext_builddir/mysql.$suffix: \$(shared_objects_mysql) \$(MYSQL_SHARED_DEPENDENCIES)
80452: $link_cmd
80453:
80454: EOF
80455:
80456: ;;
80457: esac
80458:
80459: cat >>confdefs.h <<_ACEOF
80460: #define COMPILE_DL_MYSQL 1
80461: _ACEOF
80462:
80463: fi
80464: fi
80465:
80466: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
80467: PHP_MYSQL_SHARED=no
1.1.1.3 ! misho 80468: case "$PHP_SAPI" in
! 80469: cgi|embed)
1.1 misho 80470:
80471:
80472: case ext/mysql in
80473: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80474: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80475: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80476: esac
80477:
80478:
80479:
80480: b_c_pre=$php_c_pre
80481: b_cxx_pre=$php_cxx_pre
80482: b_c_meta=$php_c_meta
80483: b_cxx_meta=$php_cxx_meta
80484: b_c_post=$php_c_post
80485: b_cxx_post=$php_cxx_post
80486: b_lo=$php_lo
80487:
80488:
80489: old_IFS=$IFS
80490: for ac_src in php_mysql.c; do
80491:
80492: IFS=.
80493: set $ac_src
80494: ac_obj=$1
80495: IFS=$old_IFS
80496:
1.1.1.2 misho 80497: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 80498:
80499: case $ac_src in
80500: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80501: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80502: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80503: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80504: esac
80505:
80506: cat >>Makefile.objects<<EOF
80507: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80508: $ac_comp
80509: EOF
80510: done
80511:
80512:
1.1.1.3 ! misho 80513: EXT_STATIC="$EXT_STATIC mysql"
! 80514: ;;
! 80515: *)
1.1 misho 80516:
80517:
80518: case ext/mysql in
80519: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80520: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80521: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80522: esac
80523:
80524:
80525:
80526: b_c_pre=$php_c_pre
80527: b_cxx_pre=$php_cxx_pre
80528: b_c_meta=$php_c_meta
80529: b_cxx_meta=$php_cxx_meta
80530: b_c_post=$php_c_post
80531: b_cxx_post=$php_cxx_post
80532: b_lo=$php_lo
80533:
80534:
80535: old_IFS=$IFS
80536: for ac_src in php_mysql.c; do
80537:
80538: IFS=.
80539: set $ac_src
80540: ac_obj=$1
80541: IFS=$old_IFS
80542:
1.1.1.2 misho 80543: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 80544:
80545: case $ac_src in
80546: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80547: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80548: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80549: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80550: esac
80551:
80552: cat >>Makefile.objects<<EOF
80553: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80554: $ac_comp
80555: EOF
80556: done
80557:
80558:
1.1.1.3 ! misho 80559: ;;
! 80560: esac
1.1 misho 80561: EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
80562: fi
80563:
80564:
80565: BUILD_DIR="$BUILD_DIR $ext_builddir"
80566:
80567:
80568:
80569: if test "$ext_builddir" = "."; then
80570: PHP_PECL_EXTENSION=mysql
80571:
80572: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
80573:
80574: fi
80575:
80576:
80577: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_SHARED_LIBADD"
80578:
80579:
1.1.1.2 misho 80580: if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then
1.1 misho 80581:
80582: am_i_shared=$PHP_MYSQL_SHARED
80583: is_it_shared=$PHP_MYSQLND_SHARED
80584: is_it_enabled=$PHP_MYSQLND
80585: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 80586: { { echo "$as_me:$LINENO: error:
! 80587: You've configured extension mysql to build statically, but it
! 80588: depends on extension mysqlnd, which you've configured to build shared.
! 80589: You either need to build mysql shared or build mysqlnd statically for the
! 80590: build to be successful.
! 80591: " >&5
! 80592: echo "$as_me: error:
1.1 misho 80593: You've configured extension mysql to build statically, but it
80594: depends on extension mysqlnd, which you've configured to build shared.
80595: You either need to build mysql shared or build mysqlnd statically for the
80596: build to be successful.
1.1.1.3 ! misho 80597: " >&2;}
! 80598: { (exit 1); exit 1; }; }
! 80599: fi
! 80600: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 80601: { { echo "$as_me:$LINENO: error:
! 80602: You've configured extension mysql, which depends on extension mysqlnd,
! 80603: but you've either not enabled mysqlnd, or have disabled it.
! 80604: " >&5
! 80605: echo "$as_me: error:
! 80606: You've configured extension mysql, which depends on extension mysqlnd,
! 80607: but you've either not enabled mysqlnd, or have disabled it.
! 80608: " >&2;}
! 80609: { (exit 1); exit 1; }; }
1.1 misho 80610: fi
80611:
80612:
1.1.1.3 ! misho 80613: cat >>confdefs.h <<\_ACEOF
! 80614: #define MYSQL_USE_MYSQLND 1
! 80615: _ACEOF
1.1 misho 80616:
80617: fi
80618: fi
80619:
80620:
80621:
80622: php_with_mysqli=no
80623:
1.1.1.3 ! misho 80624: { echo "$as_me:$LINENO: checking for MySQLi support" >&5
! 80625: echo $ECHO_N "checking for MySQLi support... $ECHO_C" >&6; }
1.1 misho 80626:
80627: # Check whether --with-mysqli was given.
1.1.1.3 ! misho 80628: if test "${with_mysqli+set}" = set; then
1.1 misho 80629: withval=$with_mysqli; PHP_MYSQLI=$withval
80630: else
80631:
80632: PHP_MYSQLI=no
80633: test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL
80634:
80635: fi
80636:
80637:
80638:
80639: ext_output="yes, shared"
80640: ext_shared=yes
80641: case $PHP_MYSQLI in
80642: shared,*)
80643: PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'`
80644: ;;
80645: shared)
80646: PHP_MYSQLI=yes
80647: ;;
80648: no)
80649: ext_output=no
80650: ext_shared=no
80651: ;;
80652: *)
80653: ext_output=yes
80654: ext_shared=no
80655: ;;
80656: esac
80657:
80658:
80659:
1.1.1.3 ! misho 80660: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 80661: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 80662:
80663:
80664:
80665:
80666:
80667: php_enable_embedded_mysqli=no
80668:
1.1.1.3 ! misho 80669: { echo "$as_me:$LINENO: checking whether to enable embedded MySQLi support" >&5
! 80670: echo $ECHO_N "checking whether to enable embedded MySQLi support... $ECHO_C" >&6; }
1.1 misho 80671: # Check whether --enable-embedded_mysqli was given.
1.1.1.3 ! misho 80672: if test "${enable_embedded_mysqli+set}" = set; then
1.1 misho 80673: enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval
80674: else
80675:
80676: PHP_EMBEDDED_MYSQLI=no
80677:
80678:
80679: fi
80680:
80681:
80682: ext_output=$PHP_EMBEDDED_MYSQLI
1.1.1.3 ! misho 80683: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 80684: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 80685:
80686:
80687:
80688:
1.1.1.2 misho 80689: if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
1.1 misho 80690: PHP_MYSQLND_ENABLED=yes
80691:
80692: elif test "$PHP_MYSQLI" != "no"; then
80693:
1.1.1.2 misho 80694: MYSQL_CONFIG=$PHP_MYSQLI
1.1 misho 80695:
80696: MYSQL_LIB_NAME='mysqlclient'
80697: if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then
80698:
1.1.1.3 ! misho 80699: cat >>confdefs.h <<\_ACEOF
! 80700: #define HAVE_EMBEDDED_MYSQLI 1
! 80701: _ACEOF
1.1 misho 80702:
80703: MYSQL_LIB_CFG='--libmysqld-libs'
80704: mysqli_extra_sources="mysqli_embedded.c"
80705: elif test "$enable_maintainer_zts" = "yes"; then
80706: MYSQL_LIB_CFG='--libs_r'
80707: MYSQL_LIB_NAME='mysqlclient_r'
80708: else
80709: MYSQL_LIB_CFG='--libs'
80710: fi
80711:
80712: if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then
80713: MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
80714: MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"`
80715: else
1.1.1.3 ! misho 80716: { echo "$as_me:$LINENO: result: mysql_config not found" >&5
! 80717: echo "${ECHO_T}mysql_config not found" >&6; }
! 80718: { { echo "$as_me:$LINENO: error: Please reinstall the mysql distribution" >&5
! 80719: echo "$as_me: error: Please reinstall the mysql distribution" >&2;}
! 80720: { (exit 1); exit 1; }; }
1.1 misho 80721: fi
80722:
80723:
80724: save_old_LDFLAGS=$LDFLAGS
80725: ac_stuff="
80726: $MYSQLI_LIBLINE
80727: "
80728:
80729: save_ext_shared=$ext_shared
80730: ext_shared=yes
80731:
80732: for ac_i in $ac_stuff; do
80733: case $ac_i in
80734: -pthread)
80735: if test "$ext_shared" = "yes"; then
80736: LDFLAGS="$LDFLAGS -pthread"
80737: else
80738:
80739:
80740: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80741:
80742: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80743: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80744: eval "EXTRA_LDFLAGS$unique=set"
80745: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80746: fi
80747:
80748: fi
80749: ;;
80750: -l*)
80751: ac_ii=`echo $ac_i|cut -c 3-`
80752:
80753:
80754: case $ac_ii in
80755: c|c_r|pthread*) ;;
80756: *)
80757: if test "$ext_shared" = "yes"; then
80758: LDFLAGS="$LDFLAGS -l$ac_ii"
80759: else
80760:
80761:
80762: case $ac_ii in
80763: c|c_r|pthread*) ;;
80764: *)
80765: LIBS="$LIBS -l$ac_ii"
80766: ;;
80767: esac
80768:
80769:
80770: fi
80771: ;;
80772: esac
80773:
80774:
80775: ;;
80776: -L*)
80777: ac_ii=`echo $ac_i|cut -c 3-`
80778:
80779: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80780:
80781: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80782: ai_p=$ac_ii
80783: else
80784:
80785: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80786:
80787: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80788: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80789: fi
80790:
80791:
80792: if test "$ext_shared" = "yes"; then
80793: LDFLAGS="-L$ai_p $LDFLAGS"
80794: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
80795: else
80796:
80797:
80798:
80799: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80800:
80801: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80802: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80803: eval "LIBPATH$unique=set"
80804:
80805: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80806: LDFLAGS="$LDFLAGS -L$ai_p"
80807: PHP_RPATHS="$PHP_RPATHS $ai_p"
80808:
80809: fi
80810:
80811:
80812: fi
80813:
80814: fi
80815:
80816: ;;
80817: esac
80818: done
80819:
1.1.1.3 ! misho 80820: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh`
! 80821: { echo "$as_me:$LINENO: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5
! 80822: echo $ECHO_N "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... $ECHO_C" >&6; }
! 80823: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 80824: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 80825: else
80826: ac_check_lib_save_LIBS=$LIBS
80827: LIBS="-l$MYSQL_LIB_NAME $LIBS"
1.1.1.3 ! misho 80828: cat >conftest.$ac_ext <<_ACEOF
! 80829: /* confdefs.h. */
! 80830: _ACEOF
! 80831: cat confdefs.h >>conftest.$ac_ext
! 80832: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 80833: /* end confdefs.h. */
80834:
80835: /* Override any GCC internal prototype to avoid an error.
80836: Use char because int might match the return type of a GCC
80837: builtin and then its argument prototype would still apply. */
80838: #ifdef __cplusplus
80839: extern "C"
80840: #endif
80841: char mysql_set_server_option ();
80842: int
80843: main ()
80844: {
80845: return mysql_set_server_option ();
80846: ;
80847: return 0;
80848: }
80849: _ACEOF
1.1.1.3 ! misho 80850: rm -f conftest.$ac_objext conftest$ac_exeext
! 80851: if { (ac_try="$ac_link"
! 80852: case "(($ac_try" in
! 80853: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 80854: *) ac_try_echo=$ac_try;;
! 80855: esac
! 80856: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 80857: (eval "$ac_link") 2>conftest.er1
! 80858: ac_status=$?
! 80859: grep -v '^ *+' conftest.er1 >conftest.err
! 80860: rm -f conftest.er1
! 80861: cat conftest.err >&5
! 80862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 80863: (exit $ac_status); } && {
! 80864: test -z "$ac_c_werror_flag" ||
! 80865: test ! -s conftest.err
! 80866: } && test -s conftest$ac_exeext &&
! 80867: $as_test_x conftest$ac_exeext; then
1.1 misho 80868: eval "$as_ac_Lib=yes"
80869: else
1.1.1.3 ! misho 80870: echo "$as_me: failed program was:" >&5
! 80871: sed 's/^/| /' conftest.$ac_ext >&5
! 80872:
! 80873: eval "$as_ac_Lib=no"
1.1 misho 80874: fi
1.1.1.3 ! misho 80875:
! 80876: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 80877: conftest$ac_exeext conftest.$ac_ext
1.1 misho 80878: LIBS=$ac_check_lib_save_LIBS
80879: fi
1.1.1.3 ! misho 80880: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 80881: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 80882: echo "${ECHO_T}$ac_res" >&6; }
! 80883: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 80884:
80885: LDFLAGS=$save_old_LDFLAGS
80886: ext_shared=$save_ext_shared
80887:
80888:
80889: for ac_i in $MYSQLI_INCLINE; do
80890: case $ac_i in
80891: -I*)
80892: ac_ii=`echo $ac_i|cut -c 3-`
80893:
80894: if test "$ac_ii" != "/usr/include"; then
80895:
80896: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80897: ai_p=$ac_ii
80898: else
80899:
80900: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80901:
80902: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80903: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80904: fi
80905:
80906:
80907:
80908: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80909:
80910: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80911: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80912: eval "INCLUDEPATH$unique=set"
80913:
80914: if test ""; then
80915: INCLUDES="-I$ai_p $INCLUDES"
80916: else
80917: INCLUDES="$INCLUDES -I$ai_p"
80918: fi
80919:
80920: fi
80921:
80922: fi
80923:
80924: ;;
80925: esac
80926: done
80927:
80928:
80929: for ac_i in $MYSQLI_LIBLINE; do
80930: case $ac_i in
80931: -pthread)
80932: if test "$ext_shared" = "yes"; then
80933: MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread"
80934: else
80935:
80936:
80937: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80938:
80939: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80940: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80941: eval "EXTRA_LDFLAGS$unique=set"
80942: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80943: fi
80944:
80945: fi
80946: ;;
80947: -l*)
80948: ac_ii=`echo $ac_i|cut -c 3-`
80949:
80950:
80951: case $ac_ii in
80952: c|c_r|pthread*) ;;
80953: *)
80954: if test "$ext_shared" = "yes"; then
80955: MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii"
80956: else
80957:
80958:
80959: case $ac_ii in
80960: c|c_r|pthread*) ;;
80961: *)
80962: LIBS="$LIBS -l$ac_ii"
80963: ;;
80964: esac
80965:
80966:
80967: fi
80968: ;;
80969: esac
80970:
80971:
80972: ;;
80973: -L*)
80974: ac_ii=`echo $ac_i|cut -c 3-`
80975:
80976: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80977:
80978: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80979: ai_p=$ac_ii
80980: else
80981:
80982: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80983:
80984: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80985: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80986: fi
80987:
80988:
80989: if test "$ext_shared" = "yes"; then
80990: MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD"
80991: test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD"
80992: else
80993:
80994:
80995:
80996: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80997:
80998: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80999: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81000: eval "LIBPATH$unique=set"
81001:
81002: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81003: LDFLAGS="$LDFLAGS -L$ai_p"
81004: PHP_RPATHS="$PHP_RPATHS $ai_p"
81005:
81006: fi
81007:
81008:
81009: fi
81010:
81011: fi
81012:
81013: ;;
81014: esac
81015: done
81016:
81017:
1.1.1.3 ! misho 81018: cat >>confdefs.h <<\_ACEOF
! 81019: #define HAVE_MYSQLILIB 1
! 81020: _ACEOF
1.1 misho 81021:
81022:
81023: save_old_LDFLAGS=$LDFLAGS
81024: ac_stuff="$MYSQLI_LIBLINE"
81025:
81026: save_ext_shared=$ext_shared
81027: ext_shared=yes
81028:
81029: for ac_i in $ac_stuff; do
81030: case $ac_i in
81031: -pthread)
81032: if test "$ext_shared" = "yes"; then
81033: LDFLAGS="$LDFLAGS -pthread"
81034: else
81035:
81036:
81037: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81038:
81039: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81040: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81041: eval "EXTRA_LDFLAGS$unique=set"
81042: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81043: fi
81044:
81045: fi
81046: ;;
81047: -l*)
81048: ac_ii=`echo $ac_i|cut -c 3-`
81049:
81050:
81051: case $ac_ii in
81052: c|c_r|pthread*) ;;
81053: *)
81054: if test "$ext_shared" = "yes"; then
81055: LDFLAGS="$LDFLAGS -l$ac_ii"
81056: else
81057:
81058:
81059: case $ac_ii in
81060: c|c_r|pthread*) ;;
81061: *)
81062: LIBS="$LIBS -l$ac_ii"
81063: ;;
81064: esac
81065:
81066:
81067: fi
81068: ;;
81069: esac
81070:
81071:
81072: ;;
81073: -L*)
81074: ac_ii=`echo $ac_i|cut -c 3-`
81075:
81076: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81077:
81078: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81079: ai_p=$ac_ii
81080: else
81081:
81082: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
81083:
81084: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
81085: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
81086: fi
81087:
81088:
81089: if test "$ext_shared" = "yes"; then
81090: LDFLAGS="-L$ai_p $LDFLAGS"
81091: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81092: else
81093:
81094:
81095:
81096: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81097:
81098: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81099: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81100: eval "LIBPATH$unique=set"
81101:
81102: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81103: LDFLAGS="$LDFLAGS -L$ai_p"
81104: PHP_RPATHS="$PHP_RPATHS $ai_p"
81105:
81106: fi
81107:
81108:
81109: fi
81110:
81111: fi
81112:
81113: ;;
81114: esac
81115: done
81116:
1.1.1.3 ! misho 81117: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh`
! 81118: { echo "$as_me:$LINENO: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5
! 81119: echo $ECHO_N "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... $ECHO_C" >&6; }
! 81120: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 81121: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 81122: else
81123: ac_check_lib_save_LIBS=$LIBS
81124: LIBS="-l$MYSQL_LIB_NAME $LIBS"
1.1.1.3 ! misho 81125: cat >conftest.$ac_ext <<_ACEOF
! 81126: /* confdefs.h. */
! 81127: _ACEOF
! 81128: cat confdefs.h >>conftest.$ac_ext
! 81129: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 81130: /* end confdefs.h. */
81131:
81132: /* Override any GCC internal prototype to avoid an error.
81133: Use char because int might match the return type of a GCC
81134: builtin and then its argument prototype would still apply. */
81135: #ifdef __cplusplus
81136: extern "C"
81137: #endif
81138: char mysql_set_character_set ();
81139: int
81140: main ()
81141: {
81142: return mysql_set_character_set ();
81143: ;
81144: return 0;
81145: }
81146: _ACEOF
1.1.1.3 ! misho 81147: rm -f conftest.$ac_objext conftest$ac_exeext
! 81148: if { (ac_try="$ac_link"
! 81149: case "(($ac_try" in
! 81150: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 81151: *) ac_try_echo=$ac_try;;
! 81152: esac
! 81153: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 81154: (eval "$ac_link") 2>conftest.er1
! 81155: ac_status=$?
! 81156: grep -v '^ *+' conftest.er1 >conftest.err
! 81157: rm -f conftest.er1
! 81158: cat conftest.err >&5
! 81159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 81160: (exit $ac_status); } && {
! 81161: test -z "$ac_c_werror_flag" ||
! 81162: test ! -s conftest.err
! 81163: } && test -s conftest$ac_exeext &&
! 81164: $as_test_x conftest$ac_exeext; then
1.1 misho 81165: eval "$as_ac_Lib=yes"
81166: else
1.1.1.3 ! misho 81167: echo "$as_me: failed program was:" >&5
! 81168: sed 's/^/| /' conftest.$ac_ext >&5
! 81169:
! 81170: eval "$as_ac_Lib=no"
1.1 misho 81171: fi
1.1.1.3 ! misho 81172:
! 81173: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 81174: conftest$ac_exeext conftest.$ac_ext
1.1 misho 81175: LIBS=$ac_check_lib_save_LIBS
81176: fi
1.1.1.3 ! misho 81177: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 81178: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 81179: echo "${ECHO_T}$ac_res" >&6; }
! 81180: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 81181:
81182: LDFLAGS=$save_old_LDFLAGS
81183: ext_shared=$save_ext_shared
81184:
81185:
81186: else
81187:
81188: LDFLAGS=$save_old_LDFLAGS
81189: ext_shared=$save_ext_shared
81190: unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set
81191:
1.1.1.3 ! misho 81192: { { echo "$as_me:$LINENO: error: MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." >&5
! 81193: echo "$as_me: error: MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." >&2;}
! 81194: { (exit 1); exit 1; }; }
1.1 misho 81195:
81196:
81197: fi
81198:
81199:
81200:
81201: else
81202:
81203: LDFLAGS=$save_old_LDFLAGS
81204: ext_shared=$save_ext_shared
81205: unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option
81206:
1.1.1.3 ! misho 81207: { { echo "$as_me:$LINENO: error: wrong mysql library version or lib not found. Check config.log for more information." >&5
! 81208: echo "$as_me: error: wrong mysql library version or lib not found. Check config.log for more information." >&2;}
! 81209: { (exit 1); exit 1; }; }
1.1 misho 81210:
81211:
81212: fi
81213:
81214:
81215: save_old_LDFLAGS=$LDFLAGS
81216: ac_stuff="
81217: $MYSQLI_LIBLINE
81218: "
81219:
81220: save_ext_shared=$ext_shared
81221: ext_shared=yes
81222:
81223: for ac_i in $ac_stuff; do
81224: case $ac_i in
81225: -pthread)
81226: if test "$ext_shared" = "yes"; then
81227: LDFLAGS="$LDFLAGS -pthread"
81228: else
81229:
81230:
81231: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81232:
81233: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81234: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81235: eval "EXTRA_LDFLAGS$unique=set"
81236: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81237: fi
81238:
81239: fi
81240: ;;
81241: -l*)
81242: ac_ii=`echo $ac_i|cut -c 3-`
81243:
81244:
81245: case $ac_ii in
81246: c|c_r|pthread*) ;;
81247: *)
81248: if test "$ext_shared" = "yes"; then
81249: LDFLAGS="$LDFLAGS -l$ac_ii"
81250: else
81251:
81252:
81253: case $ac_ii in
81254: c|c_r|pthread*) ;;
81255: *)
81256: LIBS="$LIBS -l$ac_ii"
81257: ;;
81258: esac
81259:
81260:
81261: fi
81262: ;;
81263: esac
81264:
81265:
81266: ;;
81267: -L*)
81268: ac_ii=`echo $ac_i|cut -c 3-`
81269:
81270: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81271:
81272: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81273: ai_p=$ac_ii
81274: else
81275:
81276: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
81277:
81278: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
81279: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
81280: fi
81281:
81282:
81283: if test "$ext_shared" = "yes"; then
81284: LDFLAGS="-L$ai_p $LDFLAGS"
81285: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81286: else
81287:
81288:
81289:
81290: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81291:
81292: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81293: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81294: eval "LIBPATH$unique=set"
81295:
81296: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81297: LDFLAGS="$LDFLAGS -L$ai_p"
81298: PHP_RPATHS="$PHP_RPATHS $ai_p"
81299:
81300: fi
81301:
81302:
81303: fi
81304:
81305: fi
81306:
81307: ;;
81308: esac
81309: done
81310:
1.1.1.3 ! misho 81311: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh`
! 81312: { echo "$as_me:$LINENO: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5
! 81313: echo $ECHO_N "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... $ECHO_C" >&6; }
! 81314: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 81315: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 81316: else
81317: ac_check_lib_save_LIBS=$LIBS
81318: LIBS="-l$MYSQL_LIB_NAME $LIBS"
1.1.1.3 ! misho 81319: cat >conftest.$ac_ext <<_ACEOF
! 81320: /* confdefs.h. */
! 81321: _ACEOF
! 81322: cat confdefs.h >>conftest.$ac_ext
! 81323: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 81324: /* end confdefs.h. */
81325:
81326: /* Override any GCC internal prototype to avoid an error.
81327: Use char because int might match the return type of a GCC
81328: builtin and then its argument prototype would still apply. */
81329: #ifdef __cplusplus
81330: extern "C"
81331: #endif
81332: char mysql_stmt_next_result ();
81333: int
81334: main ()
81335: {
81336: return mysql_stmt_next_result ();
81337: ;
81338: return 0;
81339: }
81340: _ACEOF
1.1.1.3 ! misho 81341: rm -f conftest.$ac_objext conftest$ac_exeext
! 81342: if { (ac_try="$ac_link"
! 81343: case "(($ac_try" in
! 81344: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 81345: *) ac_try_echo=$ac_try;;
! 81346: esac
! 81347: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 81348: (eval "$ac_link") 2>conftest.er1
! 81349: ac_status=$?
! 81350: grep -v '^ *+' conftest.er1 >conftest.err
! 81351: rm -f conftest.er1
! 81352: cat conftest.err >&5
! 81353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 81354: (exit $ac_status); } && {
! 81355: test -z "$ac_c_werror_flag" ||
! 81356: test ! -s conftest.err
! 81357: } && test -s conftest$ac_exeext &&
! 81358: $as_test_x conftest$ac_exeext; then
1.1 misho 81359: eval "$as_ac_Lib=yes"
81360: else
1.1.1.3 ! misho 81361: echo "$as_me: failed program was:" >&5
! 81362: sed 's/^/| /' conftest.$ac_ext >&5
! 81363:
! 81364: eval "$as_ac_Lib=no"
1.1 misho 81365: fi
1.1.1.3 ! misho 81366:
! 81367: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 81368: conftest$ac_exeext conftest.$ac_ext
1.1 misho 81369: LIBS=$ac_check_lib_save_LIBS
81370: fi
1.1.1.3 ! misho 81371: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 81372: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 81373: echo "${ECHO_T}$ac_res" >&6; }
! 81374: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 81375:
81376: LDFLAGS=$save_old_LDFLAGS
81377: ext_shared=$save_ext_shared
81378:
81379:
1.1.1.3 ! misho 81380: cat >>confdefs.h <<\_ACEOF
! 81381: #define HAVE_STMT_NEXT_RESULT 1
! 81382: _ACEOF
1.1 misho 81383:
81384:
81385:
81386: else
81387:
81388: LDFLAGS=$save_old_LDFLAGS
81389: ext_shared=$save_ext_shared
81390: unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result
81391:
81392:
81393:
81394: fi
81395:
81396: fi
81397:
81398: if test "$PHP_MYSQLI" != "no"; then
81399: mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
81400: mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \
1.1.1.2 misho 81401: mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources"
1.1 misho 81402:
81403: ext_builddir=ext/mysqli
81404: ext_srcdir=$abs_srcdir/ext/mysqli
81405:
81406: ac_extra=
81407:
81408: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
81409: PHP_MYSQLI_SHARED=no
81410:
81411:
81412: case ext/mysqli in
81413: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81414: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81415: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81416: esac
81417:
81418:
81419:
81420: b_c_pre=$php_c_pre
81421: b_cxx_pre=$php_cxx_pre
81422: b_c_meta=$php_c_meta
81423: b_cxx_meta=$php_cxx_meta
81424: b_c_post=$php_c_post
81425: b_cxx_post=$php_cxx_post
81426: b_lo=$php_lo
81427:
81428:
81429: old_IFS=$IFS
81430: for ac_src in $mysqli_sources; do
81431:
81432: IFS=.
81433: set $ac_src
81434: ac_obj=$1
81435: IFS=$old_IFS
81436:
81437: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
81438:
81439: case $ac_src in
81440: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81441: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81442: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81443: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81444: esac
81445:
81446: cat >>Makefile.objects<<EOF
81447: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81448: $ac_comp
81449: EOF
81450: done
81451:
81452:
81453: EXT_STATIC="$EXT_STATIC mysqli"
81454: if test "$ext_shared" != "nocli"; then
81455: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
81456: fi
81457: else
81458: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
81459: PHP_MYSQLI_SHARED=yes
81460:
81461: case ext/mysqli in
81462: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81463: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81464: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81465: esac
81466:
81467:
81468:
81469: b_c_pre=$shared_c_pre
81470: b_cxx_pre=$shared_cxx_pre
81471: b_c_meta=$shared_c_meta
81472: b_cxx_meta=$shared_cxx_meta
81473: b_c_post=$shared_c_post
81474: b_cxx_post=$shared_cxx_post
81475: b_lo=$shared_lo
81476:
81477:
81478: old_IFS=$IFS
81479: for ac_src in $mysqli_sources; do
81480:
81481: IFS=.
81482: set $ac_src
81483: ac_obj=$1
81484: IFS=$old_IFS
81485:
81486: shared_objects_mysqli="$shared_objects_mysqli $ac_bdir$ac_obj.lo"
81487:
81488: case $ac_src in
81489: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81490: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81491: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81492: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81493: esac
81494:
81495: cat >>Makefile.objects<<EOF
81496: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81497: $ac_comp
81498: EOF
81499: done
81500:
81501: case $host_alias in
81502: *netware*)
81503:
81504: install_modules="install-modules"
81505:
81506: case $host_alias in
81507: *aix*)
81508: suffix=so
81509: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(PHPMYSQLI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysqli.so '$ext_builddir'/phpmysqli.so'
81510: ;;
81511: *netware*)
81512: suffix=nlm
81513: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) -L$(top_builddir)/netware -lphp5lib $(MYSQLI_SHARED_LIBADD)'
81514: ;;
81515: *)
81516: suffix=la
81517: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(PHPMYSQLI_SHARED_LIBADD)'
81518: ;;
81519: esac
81520:
81521: if test "x" = "xyes"; then
81522: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqli.$suffix"
81523: else
81524: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqli.$suffix"
81525: fi
81526:
81527: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
81528:
81529: cat >>Makefile.objects<<EOF
81530: \$(phplibdir)/phpmysqli.$suffix: $ext_builddir/phpmysqli.$suffix
81531: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqli.$suffix \$(phplibdir)
81532:
81533: $ext_builddir/phpmysqli.$suffix: \$(shared_objects_mysqli) \$(PHPMYSQLI_SHARED_DEPENDENCIES)
81534: $link_cmd
81535:
81536: EOF
81537:
81538: ;;
81539: *)
81540:
81541: install_modules="install-modules"
81542:
81543: case $host_alias in
81544: *aix*)
81545: suffix=so
81546: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(MYSQLI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysqli.so '$ext_builddir'/mysqli.so'
81547: ;;
81548: *netware*)
81549: suffix=nlm
81550: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) -L$(top_builddir)/netware -lphp5lib $(QLI_SHARED_LIBADD)'
81551: ;;
81552: *)
81553: suffix=la
81554: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(MYSQLI_SHARED_LIBADD)'
81555: ;;
81556: esac
81557:
81558: if test "x" = "xyes"; then
81559: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqli.$suffix"
81560: else
81561: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqli.$suffix"
81562: fi
81563:
81564: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
81565:
81566: cat >>Makefile.objects<<EOF
81567: \$(phplibdir)/mysqli.$suffix: $ext_builddir/mysqli.$suffix
81568: \$(LIBTOOL) --mode=install cp $ext_builddir/mysqli.$suffix \$(phplibdir)
81569:
81570: $ext_builddir/mysqli.$suffix: \$(shared_objects_mysqli) \$(MYSQLI_SHARED_DEPENDENCIES)
81571: $link_cmd
81572:
81573: EOF
81574:
81575: ;;
81576: esac
81577:
81578: cat >>confdefs.h <<_ACEOF
81579: #define COMPILE_DL_MYSQLI 1
81580: _ACEOF
81581:
81582: fi
81583: fi
81584:
81585: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
81586: PHP_MYSQLI_SHARED=no
1.1.1.3 ! misho 81587: case "$PHP_SAPI" in
! 81588: cgi|embed)
1.1 misho 81589:
81590:
81591: case ext/mysqli in
81592: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81593: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81594: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81595: esac
81596:
81597:
81598:
81599: b_c_pre=$php_c_pre
81600: b_cxx_pre=$php_cxx_pre
81601: b_c_meta=$php_c_meta
81602: b_cxx_meta=$php_cxx_meta
81603: b_c_post=$php_c_post
81604: b_cxx_post=$php_cxx_post
81605: b_lo=$php_lo
81606:
81607:
81608: old_IFS=$IFS
81609: for ac_src in $mysqli_sources; do
81610:
81611: IFS=.
81612: set $ac_src
81613: ac_obj=$1
81614: IFS=$old_IFS
81615:
1.1.1.2 misho 81616: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 81617:
81618: case $ac_src in
81619: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81620: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81621: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81622: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81623: esac
81624:
81625: cat >>Makefile.objects<<EOF
81626: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81627: $ac_comp
81628: EOF
81629: done
81630:
81631:
1.1.1.3 ! misho 81632: EXT_STATIC="$EXT_STATIC mysqli"
! 81633: ;;
! 81634: *)
1.1 misho 81635:
81636:
81637: case ext/mysqli in
81638: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81639: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81640: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81641: esac
81642:
81643:
81644:
81645: b_c_pre=$php_c_pre
81646: b_cxx_pre=$php_cxx_pre
81647: b_c_meta=$php_c_meta
81648: b_cxx_meta=$php_cxx_meta
81649: b_c_post=$php_c_post
81650: b_cxx_post=$php_cxx_post
81651: b_lo=$php_lo
81652:
81653:
81654: old_IFS=$IFS
81655: for ac_src in $mysqli_sources; do
81656:
81657: IFS=.
81658: set $ac_src
81659: ac_obj=$1
81660: IFS=$old_IFS
81661:
1.1.1.2 misho 81662: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 81663:
81664: case $ac_src in
81665: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81666: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81667: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81668: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81669: esac
81670:
81671: cat >>Makefile.objects<<EOF
81672: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81673: $ac_comp
81674: EOF
81675: done
81676:
81677:
1.1.1.3 ! misho 81678: ;;
! 81679: esac
1.1 misho 81680: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
81681: fi
81682:
81683:
81684: BUILD_DIR="$BUILD_DIR $ext_builddir"
81685:
81686:
81687:
81688: if test "$ext_builddir" = "."; then
81689: PHP_PECL_EXTENSION=mysqli
81690:
81691: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
81692:
81693: fi
81694:
81695:
81696: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQLI_SHARED_LIBADD"
81697:
81698:
81699:
81700: for header_file in ext/mysqli/php_mysqli_structs.h; do
81701:
81702:
81703: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
81704:
81705: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
81706: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81707: eval "INSTALLHEADERS$unique=set"
81708:
81709: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
81710:
81711: fi
81712:
81713: done
81714:
81715:
81716:
1.1.1.2 misho 81717: if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
1.1 misho 81718:
81719: am_i_shared=$PHP_MYSQLI_SHARED
81720: is_it_shared=$PHP_MYSQLND_SHARED
81721: is_it_enabled=$PHP_MYSQLND
81722: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 81723: { { echo "$as_me:$LINENO: error:
! 81724: You've configured extension mysqli to build statically, but it
! 81725: depends on extension mysqlnd, which you've configured to build shared.
! 81726: You either need to build mysqli shared or build mysqlnd statically for the
! 81727: build to be successful.
! 81728: " >&5
! 81729: echo "$as_me: error:
1.1 misho 81730: You've configured extension mysqli to build statically, but it
81731: depends on extension mysqlnd, which you've configured to build shared.
81732: You either need to build mysqli shared or build mysqlnd statically for the
81733: build to be successful.
1.1.1.3 ! misho 81734: " >&2;}
! 81735: { (exit 1); exit 1; }; }
! 81736: fi
! 81737: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 81738: { { echo "$as_me:$LINENO: error:
! 81739: You've configured extension mysqli, which depends on extension mysqlnd,
! 81740: but you've either not enabled mysqlnd, or have disabled it.
! 81741: " >&5
! 81742: echo "$as_me: error:
! 81743: You've configured extension mysqli, which depends on extension mysqlnd,
! 81744: but you've either not enabled mysqlnd, or have disabled it.
! 81745: " >&2;}
! 81746: { (exit 1); exit 1; }; }
! 81747: fi
! 81748:
! 81749:
! 81750: cat >>confdefs.h <<\_ACEOF
! 81751: #define MYSQLI_USE_MYSQLND 1
! 81752: _ACEOF
! 81753:
! 81754:
! 81755:
! 81756: for header_file in ext/mysqli/mysqli_mysqlnd.h; do
! 81757:
! 81758:
! 81759: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
! 81760:
! 81761: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
! 81762: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 81763: eval "INSTALLHEADERS$unique=set"
! 81764:
! 81765: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
! 81766:
! 81767: fi
! 81768:
! 81769: done
! 81770:
! 81771:
! 81772: else
! 81773:
! 81774:
! 81775: for header_file in ext/mysqli/mysqli_libmysql.h; do
! 81776:
! 81777:
! 81778: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
! 81779:
! 81780: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
! 81781: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 81782: eval "INSTALLHEADERS$unique=set"
! 81783:
! 81784: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
! 81785:
1.1 misho 81786: fi
81787:
1.1.1.3 ! misho 81788: done
1.1 misho 81789:
81790:
81791: fi
81792: fi
81793:
81794:
81795: if test -z "$SED"; then
81796: PHP_OCI8_SED="sed";
81797: else
81798: PHP_OCI8_SED="$SED";
81799: fi
81800:
1.1.1.3 ! misho 81801: PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null`
! 81802: if test "$PHP_OCI8_TAIL1" = "a"; then
! 81803: PHP_OCI8_TAIL1="tail -n1"
! 81804: else
! 81805: PHP_OCI8_TAIL1="tail -1"
! 81806: fi
! 81807:
1.1 misho 81808:
81809:
81810:
81811:
81812:
81813:
81814:
81815:
81816:
81817:
81818: php_with_oci8=no
81819:
1.1.1.3 ! misho 81820: { echo "$as_me:$LINENO: checking for Oracle Database OCI8 support" >&5
! 81821: echo $ECHO_N "checking for Oracle Database OCI8 support... $ECHO_C" >&6; }
1.1 misho 81822:
81823: # Check whether --with-oci8 was given.
1.1.1.3 ! misho 81824: if test "${with_oci8+set}" = set; then
1.1 misho 81825: withval=$with_oci8; PHP_OCI8=$withval
81826: else
81827:
81828: PHP_OCI8=no
81829: test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL
81830:
81831: fi
81832:
81833:
81834:
81835: ext_output="yes, shared"
81836: ext_shared=yes
81837: case $PHP_OCI8 in
81838: shared,*)
81839: PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'`
81840: ;;
81841: shared)
81842: PHP_OCI8=yes
81843: ;;
81844: no)
81845: ext_output=no
81846: ext_shared=no
81847: ;;
81848: *)
81849: ext_output=yes
81850: ext_shared=no
81851: ;;
81852: esac
81853:
81854:
81855:
1.1.1.3 ! misho 81856: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 81857: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 81858:
81859:
81860:
81861:
81862: if test "$PHP_OCI8" != "no"; then
81863:
81864: if test -z "$PHP_OCI8"; then
1.1.1.3 ! misho 81865: { { echo "$as_me:$LINENO: error: Empty parameter value passed to --with-oci8" >&5
! 81866: echo "$as_me: error: Empty parameter value passed to --with-oci8" >&2;}
! 81867: { (exit 1); exit 1; }; }
1.1 misho 81868: fi
81869:
81870:
1.1.1.3 ! misho 81871: { echo "$as_me:$LINENO: checking PHP version" >&5
! 81872: echo $ECHO_N "checking PHP version... $ECHO_C" >&6; }
1.1 misho 81873:
81874: tmp_version=$PHP_VERSION
81875: if test -z "$tmp_version"; then
81876: if test -z "$PHP_CONFIG"; then
1.1.1.3 ! misho 81877: { { echo "$as_me:$LINENO: error: php-config not found" >&5
! 81878: echo "$as_me: error: php-config not found" >&2;}
! 81879: { (exit 1); exit 1; }; }
1.1 misho 81880: fi
81881: php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
81882: else
81883: php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
81884: fi
81885:
1.1.1.3 ! misho 81886: if test -z "$php_version"; then
! 81887: { { echo "$as_me:$LINENO: error: failed to detect PHP version, please report" >&5
! 81888: echo "$as_me: error: failed to detect PHP version, please report" >&2;}
! 81889: { (exit 1); exit 1; }; }
! 81890: fi
! 81891:
! 81892: ac_IFS=$IFS
! 81893: IFS="."
! 81894: set $php_version
! 81895: IFS=$ac_IFS
! 81896: oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3`
! 81897:
! 81898: if test "$oci8_php_version" -lt "4003009"; then
! 81899: { { echo "$as_me:$LINENO: error: You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" >&5
! 81900: echo "$as_me: error: You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" >&2;}
! 81901: { (exit 1); exit 1; }; }
! 81902: elif test "$oci8_php_version" -ge "6000000"; then
! 81903: { { echo "$as_me:$LINENO: error: This version of OCI8 is not compatible with PHP 6 or higher" >&5
! 81904: echo "$as_me: error: This version of OCI8 is not compatible with PHP 6 or higher" >&2;}
! 81905: { (exit 1); exit 1; }; }
! 81906: else
! 81907: { echo "$as_me:$LINENO: result: $php_version, ok" >&5
! 81908: echo "${ECHO_T}$php_version, ok" >&6; }
! 81909: fi
! 81910:
! 81911:
! 81912: { echo "$as_me:$LINENO: checking for long int" >&5
! 81913: echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
! 81914: if test "${ac_cv_type_long_int+set}" = set; then
! 81915: echo $ECHO_N "(cached) $ECHO_C" >&6
! 81916: else
! 81917: cat >conftest.$ac_ext <<_ACEOF
! 81918: /* confdefs.h. */
! 81919: _ACEOF
! 81920: cat confdefs.h >>conftest.$ac_ext
! 81921: cat >>conftest.$ac_ext <<_ACEOF
! 81922: /* end confdefs.h. */
! 81923: $ac_includes_default
! 81924: typedef long int ac__type_new_;
! 81925: int
! 81926: main ()
! 81927: {
! 81928: if ((ac__type_new_ *) 0)
! 81929: return 0;
! 81930: if (sizeof (ac__type_new_))
! 81931: return 0;
! 81932: ;
! 81933: return 0;
! 81934: }
! 81935: _ACEOF
! 81936: rm -f conftest.$ac_objext
! 81937: if { (ac_try="$ac_compile"
! 81938: case "(($ac_try" in
! 81939: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 81940: *) ac_try_echo=$ac_try;;
! 81941: esac
! 81942: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 81943: (eval "$ac_compile") 2>conftest.er1
! 81944: ac_status=$?
! 81945: grep -v '^ *+' conftest.er1 >conftest.err
! 81946: rm -f conftest.er1
! 81947: cat conftest.err >&5
! 81948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 81949: (exit $ac_status); } && {
! 81950: test -z "$ac_c_werror_flag" ||
! 81951: test ! -s conftest.err
! 81952: } && test -s conftest.$ac_objext; then
! 81953: ac_cv_type_long_int=yes
! 81954: else
! 81955: echo "$as_me: failed program was:" >&5
! 81956: sed 's/^/| /' conftest.$ac_ext >&5
! 81957:
! 81958: ac_cv_type_long_int=no
! 81959: fi
! 81960:
! 81961: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 81962: fi
! 81963: { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
! 81964: echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
! 81965:
! 81966: # The cast to long int works around a bug in the HP C Compiler
! 81967: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 81968: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 81969: # This bug is HP SR number 8606223364.
! 81970: { echo "$as_me:$LINENO: checking size of long int" >&5
! 81971: echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
! 81972: if test "${ac_cv_sizeof_long_int+set}" = set; then
! 81973: echo $ECHO_N "(cached) $ECHO_C" >&6
! 81974: else
! 81975: if test "$cross_compiling" = yes; then
! 81976: # Depending upon the size, compute the lo and hi bounds.
! 81977: cat >conftest.$ac_ext <<_ACEOF
! 81978: /* confdefs.h. */
! 81979: _ACEOF
! 81980: cat confdefs.h >>conftest.$ac_ext
! 81981: cat >>conftest.$ac_ext <<_ACEOF
! 81982: /* end confdefs.h. */
! 81983: $ac_includes_default
! 81984: typedef long int ac__type_sizeof_;
! 81985: int
! 81986: main ()
! 81987: {
! 81988: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 81989: test_array [0] = 0
! 81990:
! 81991: ;
! 81992: return 0;
! 81993: }
! 81994: _ACEOF
! 81995: rm -f conftest.$ac_objext
! 81996: if { (ac_try="$ac_compile"
! 81997: case "(($ac_try" in
! 81998: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 81999: *) ac_try_echo=$ac_try;;
! 82000: esac
! 82001: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82002: (eval "$ac_compile") 2>conftest.er1
! 82003: ac_status=$?
! 82004: grep -v '^ *+' conftest.er1 >conftest.err
! 82005: rm -f conftest.er1
! 82006: cat conftest.err >&5
! 82007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82008: (exit $ac_status); } && {
! 82009: test -z "$ac_c_werror_flag" ||
! 82010: test ! -s conftest.err
! 82011: } && test -s conftest.$ac_objext; then
! 82012: ac_lo=0 ac_mid=0
! 82013: while :; do
! 82014: cat >conftest.$ac_ext <<_ACEOF
! 82015: /* confdefs.h. */
! 82016: _ACEOF
! 82017: cat confdefs.h >>conftest.$ac_ext
! 82018: cat >>conftest.$ac_ext <<_ACEOF
! 82019: /* end confdefs.h. */
! 82020: $ac_includes_default
! 82021: typedef long int ac__type_sizeof_;
! 82022: int
! 82023: main ()
! 82024: {
! 82025: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 82026: test_array [0] = 0
! 82027:
! 82028: ;
! 82029: return 0;
! 82030: }
! 82031: _ACEOF
! 82032: rm -f conftest.$ac_objext
! 82033: if { (ac_try="$ac_compile"
! 82034: case "(($ac_try" in
! 82035: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82036: *) ac_try_echo=$ac_try;;
! 82037: esac
! 82038: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82039: (eval "$ac_compile") 2>conftest.er1
! 82040: ac_status=$?
! 82041: grep -v '^ *+' conftest.er1 >conftest.err
! 82042: rm -f conftest.er1
! 82043: cat conftest.err >&5
! 82044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82045: (exit $ac_status); } && {
! 82046: test -z "$ac_c_werror_flag" ||
! 82047: test ! -s conftest.err
! 82048: } && test -s conftest.$ac_objext; then
! 82049: ac_hi=$ac_mid; break
! 82050: else
! 82051: echo "$as_me: failed program was:" >&5
! 82052: sed 's/^/| /' conftest.$ac_ext >&5
! 82053:
! 82054: ac_lo=`expr $ac_mid + 1`
! 82055: if test $ac_lo -le $ac_mid; then
! 82056: ac_lo= ac_hi=
! 82057: break
! 82058: fi
! 82059: ac_mid=`expr 2 '*' $ac_mid + 1`
! 82060: fi
! 82061:
! 82062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 82063: done
! 82064: else
! 82065: echo "$as_me: failed program was:" >&5
! 82066: sed 's/^/| /' conftest.$ac_ext >&5
! 82067:
! 82068: cat >conftest.$ac_ext <<_ACEOF
! 82069: /* confdefs.h. */
! 82070: _ACEOF
! 82071: cat confdefs.h >>conftest.$ac_ext
! 82072: cat >>conftest.$ac_ext <<_ACEOF
! 82073: /* end confdefs.h. */
! 82074: $ac_includes_default
! 82075: typedef long int ac__type_sizeof_;
! 82076: int
! 82077: main ()
! 82078: {
! 82079: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 82080: test_array [0] = 0
! 82081:
! 82082: ;
! 82083: return 0;
! 82084: }
! 82085: _ACEOF
! 82086: rm -f conftest.$ac_objext
! 82087: if { (ac_try="$ac_compile"
! 82088: case "(($ac_try" in
! 82089: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82090: *) ac_try_echo=$ac_try;;
! 82091: esac
! 82092: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82093: (eval "$ac_compile") 2>conftest.er1
! 82094: ac_status=$?
! 82095: grep -v '^ *+' conftest.er1 >conftest.err
! 82096: rm -f conftest.er1
! 82097: cat conftest.err >&5
! 82098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82099: (exit $ac_status); } && {
! 82100: test -z "$ac_c_werror_flag" ||
! 82101: test ! -s conftest.err
! 82102: } && test -s conftest.$ac_objext; then
! 82103: ac_hi=-1 ac_mid=-1
! 82104: while :; do
! 82105: cat >conftest.$ac_ext <<_ACEOF
! 82106: /* confdefs.h. */
! 82107: _ACEOF
! 82108: cat confdefs.h >>conftest.$ac_ext
! 82109: cat >>conftest.$ac_ext <<_ACEOF
! 82110: /* end confdefs.h. */
! 82111: $ac_includes_default
! 82112: typedef long int ac__type_sizeof_;
! 82113: int
! 82114: main ()
! 82115: {
! 82116: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 82117: test_array [0] = 0
! 82118:
! 82119: ;
! 82120: return 0;
! 82121: }
! 82122: _ACEOF
! 82123: rm -f conftest.$ac_objext
! 82124: if { (ac_try="$ac_compile"
! 82125: case "(($ac_try" in
! 82126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82127: *) ac_try_echo=$ac_try;;
! 82128: esac
! 82129: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82130: (eval "$ac_compile") 2>conftest.er1
! 82131: ac_status=$?
! 82132: grep -v '^ *+' conftest.er1 >conftest.err
! 82133: rm -f conftest.er1
! 82134: cat conftest.err >&5
! 82135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82136: (exit $ac_status); } && {
! 82137: test -z "$ac_c_werror_flag" ||
! 82138: test ! -s conftest.err
! 82139: } && test -s conftest.$ac_objext; then
! 82140: ac_lo=$ac_mid; break
! 82141: else
! 82142: echo "$as_me: failed program was:" >&5
! 82143: sed 's/^/| /' conftest.$ac_ext >&5
! 82144:
! 82145: ac_hi=`expr '(' $ac_mid ')' - 1`
! 82146: if test $ac_mid -le $ac_hi; then
! 82147: ac_lo= ac_hi=
! 82148: break
! 82149: fi
! 82150: ac_mid=`expr 2 '*' $ac_mid`
! 82151: fi
! 82152:
! 82153: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 82154: done
! 82155: else
! 82156: echo "$as_me: failed program was:" >&5
! 82157: sed 's/^/| /' conftest.$ac_ext >&5
! 82158:
! 82159: ac_lo= ac_hi=
! 82160: fi
1.1 misho 82161:
1.1.1.3 ! misho 82162: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 82163: fi
1.1 misho 82164:
1.1.1.3 ! misho 82165: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 82166: # Binary search between lo and hi bounds.
! 82167: while test "x$ac_lo" != "x$ac_hi"; do
! 82168: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 82169: cat >conftest.$ac_ext <<_ACEOF
! 82170: /* confdefs.h. */
! 82171: _ACEOF
! 82172: cat confdefs.h >>conftest.$ac_ext
! 82173: cat >>conftest.$ac_ext <<_ACEOF
! 82174: /* end confdefs.h. */
! 82175: $ac_includes_default
! 82176: typedef long int ac__type_sizeof_;
! 82177: int
! 82178: main ()
! 82179: {
! 82180: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 82181: test_array [0] = 0
! 82182:
! 82183: ;
! 82184: return 0;
! 82185: }
! 82186: _ACEOF
! 82187: rm -f conftest.$ac_objext
! 82188: if { (ac_try="$ac_compile"
! 82189: case "(($ac_try" in
! 82190: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82191: *) ac_try_echo=$ac_try;;
! 82192: esac
! 82193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82194: (eval "$ac_compile") 2>conftest.er1
! 82195: ac_status=$?
! 82196: grep -v '^ *+' conftest.er1 >conftest.err
! 82197: rm -f conftest.er1
! 82198: cat conftest.err >&5
! 82199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82200: (exit $ac_status); } && {
! 82201: test -z "$ac_c_werror_flag" ||
! 82202: test ! -s conftest.err
! 82203: } && test -s conftest.$ac_objext; then
! 82204: ac_hi=$ac_mid
! 82205: else
! 82206: echo "$as_me: failed program was:" >&5
! 82207: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 82208:
1.1.1.3 ! misho 82209: ac_lo=`expr '(' $ac_mid ')' + 1`
! 82210: fi
1.1 misho 82211:
1.1.1.3 ! misho 82212: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 82213: done
! 82214: case $ac_lo in
! 82215: ?*) ac_cv_sizeof_long_int=$ac_lo;;
! 82216: '') if test "$ac_cv_type_long_int" = yes; then
! 82217: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 82218: See \`config.log' for more details." >&5
! 82219: echo "$as_me: error: cannot compute sizeof (long int)
! 82220: See \`config.log' for more details." >&2;}
! 82221: { (exit 77); exit 77; }; }
! 82222: else
! 82223: ac_cv_sizeof_long_int=0
! 82224: fi ;;
! 82225: esac
! 82226: else
! 82227: cat >conftest.$ac_ext <<_ACEOF
! 82228: /* confdefs.h. */
! 82229: _ACEOF
! 82230: cat confdefs.h >>conftest.$ac_ext
! 82231: cat >>conftest.$ac_ext <<_ACEOF
! 82232: /* end confdefs.h. */
! 82233: $ac_includes_default
! 82234: typedef long int ac__type_sizeof_;
! 82235: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 82236: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 82237: #include <stdio.h>
! 82238: #include <stdlib.h>
! 82239: int
! 82240: main ()
! 82241: {
! 82242:
! 82243: FILE *f = fopen ("conftest.val", "w");
! 82244: if (! f)
! 82245: return 1;
! 82246: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 82247: {
! 82248: long int i = longval ();
! 82249: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 82250: return 1;
! 82251: fprintf (f, "%ld\n", i);
! 82252: }
! 82253: else
! 82254: {
! 82255: unsigned long int i = ulongval ();
! 82256: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 82257: return 1;
! 82258: fprintf (f, "%lu\n", i);
! 82259: }
! 82260: return ferror (f) || fclose (f) != 0;
1.1 misho 82261:
1.1.1.3 ! misho 82262: ;
! 82263: return 0;
! 82264: }
! 82265: _ACEOF
! 82266: rm -f conftest$ac_exeext
! 82267: if { (ac_try="$ac_link"
! 82268: case "(($ac_try" in
! 82269: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82270: *) ac_try_echo=$ac_try;;
! 82271: esac
! 82272: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82273: (eval "$ac_link") 2>&5
! 82274: ac_status=$?
! 82275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82276: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 82277: { (case "(($ac_try" in
! 82278: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82279: *) ac_try_echo=$ac_try;;
! 82280: esac
! 82281: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82282: (eval "$ac_try") 2>&5
! 82283: ac_status=$?
! 82284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82285: (exit $ac_status); }; }; then
! 82286: ac_cv_sizeof_long_int=`cat conftest.val`
1.1 misho 82287: else
1.1.1.3 ! misho 82288: echo "$as_me: program exited with status $ac_status" >&5
! 82289: echo "$as_me: failed program was:" >&5
! 82290: sed 's/^/| /' conftest.$ac_ext >&5
! 82291:
! 82292: ( exit $ac_status )
! 82293: if test "$ac_cv_type_long_int" = yes; then
! 82294: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 82295: See \`config.log' for more details." >&5
! 82296: echo "$as_me: error: cannot compute sizeof (long int)
! 82297: See \`config.log' for more details." >&2;}
! 82298: { (exit 77); exit 77; }; }
1.1 misho 82299: else
82300: ac_cv_sizeof_long_int=0
82301: fi
82302: fi
1.1.1.3 ! misho 82303: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 82304: fi
! 82305: rm -f conftest.val
1.1 misho 82306: fi
1.1.1.3 ! misho 82307: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
! 82308: echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
1.1 misho 82309:
82310:
82311:
82312: cat >>confdefs.h <<_ACEOF
82313: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
82314: _ACEOF
82315:
82316:
1.1.1.3 ! misho 82317: { echo "$as_me:$LINENO: checking checking if we're on a 64-bit platform" >&5
! 82318: echo $ECHO_N "checking checking if we're on a 64-bit platform... $ECHO_C" >&6; }
1.1 misho 82319: if test "$ac_cv_sizeof_long_int" = "4"; then
1.1.1.3 ! misho 82320: { echo "$as_me:$LINENO: result: no" >&5
! 82321: echo "${ECHO_T}no" >&6; }
1.1 misho 82322: PHP_OCI8_OH_LIBDIR=lib32
82323: PHP_OCI8_IC_LIBDIR_SUFFIX=""
82324: else
1.1.1.3 ! misho 82325: { echo "$as_me:$LINENO: result: yes" >&5
! 82326: echo "${ECHO_T}yes" >&6; }
1.1 misho 82327: PHP_OCI8_OH_LIBDIR=lib
82328: PHP_OCI8_IC_LIBDIR_SUFFIX=64
82329: fi
82330:
82331:
82332: PHP_OCI8_INSTANT_CLIENT="no"
82333:
82334: if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then
1.1.1.3 ! misho 82335: { echo "$as_me:$LINENO: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5
! 82336: echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;}
1.1 misho 82337: PHP_OCI8=instantclient
82338: fi
82339:
82340: if test "`echo $PHP_OCI8`" = "instantclient"; then
82341: PHP_OCI8_INSTANT_CLIENT="yes"
82342: elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
82343: PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`"
82344: PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`"
82345: if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
82346: PHP_OCI8_INSTANT_CLIENT="yes"
82347: fi
82348: if test -z "$PHP_OCI8"; then
82349: PHP_OCI8=yes
82350: fi
82351: elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
82352: PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
82353: PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
82354: if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
82355: PHP_OCI8_INSTANT_CLIENT="yes"
82356: fi
82357: if test -z "$PHP_OCI8"; then
82358: PHP_OCI8=yes
82359: fi
82360: fi
82361:
82362: if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
82363:
1.1.1.3 ! misho 82364: { echo "$as_me:$LINENO: checking Oracle ORACLE_HOME install directory" >&5
! 82365: echo $ECHO_N "checking Oracle ORACLE_HOME install directory... $ECHO_C" >&6; }
1.1 misho 82366:
82367: if test "$PHP_OCI8" = "yes"; then
82368: OCI8_DIR=$ORACLE_HOME
82369: else
82370: OCI8_DIR=$PHP_OCI8
82371: fi
1.1.1.3 ! misho 82372: { echo "$as_me:$LINENO: result: $OCI8_DIR" >&5
! 82373: echo "${ECHO_T}$OCI8_DIR" >&6; }
1.1 misho 82374:
82375:
1.1.1.3 ! misho 82376: { echo "$as_me:$LINENO: checking ORACLE_HOME library validity" >&5
! 82377: echo $ECHO_N "checking ORACLE_HOME library validity... $ECHO_C" >&6; }
1.1 misho 82378: if test ! -d "$OCI8_DIR"; then
1.1.1.3 ! misho 82379: { { echo "$as_me:$LINENO: error: ${OCI8_DIR} is not a directory" >&5
! 82380: echo "$as_me: error: ${OCI8_DIR} is not a directory" >&2;}
! 82381: { (exit 1); exit 1; }; }
1.1 misho 82382: fi
82383: if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then
82384: OCI8_LIB_DIR=lib
82385: elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
82386: OCI8_LIB_DIR=lib32
82387: elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
82388: OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
82389: else
82390: if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
1.1.1.3 ! misho 82391: { { echo "$as_me:$LINENO: error: Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" >&5
! 82392: echo "$as_me: error: Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" >&2;}
! 82393: { (exit 1); exit 1; }; }
1.1 misho 82394: else
1.1.1.3 ! misho 82395: { { echo "$as_me:$LINENO: error: Oracle library directory not found in ${OCI8_DIR}" >&5
! 82396: echo "$as_me: error: Oracle library directory not found in ${OCI8_DIR}" >&2;}
! 82397: { (exit 1); exit 1; }; }
1.1 misho 82398: fi
82399: fi
1.1.1.3 ! misho 82400: { echo "$as_me:$LINENO: result: $OCI8_LIB_DIR" >&5
! 82401: echo "${ECHO_T}$OCI8_LIB_DIR" >&6; }
1.1 misho 82402:
82403:
82404: if test -d "$OCI8_DIR/rdbms/public"; then
82405:
82406: if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then
82407:
82408: if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then
82409: ai_p=$OCI8_DIR/rdbms/public
82410: else
82411:
82412: ep_dir="`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
82413:
82414: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82415: ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/public\"`"
82416: fi
82417:
82418:
82419:
82420: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82421:
82422: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82423: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82424: eval "INCLUDEPATH$unique=set"
82425:
82426: if test ""; then
82427: INCLUDES="-I$ai_p $INCLUDES"
82428: else
82429: INCLUDES="$INCLUDES -I$ai_p"
82430: fi
82431:
82432: fi
82433:
82434: fi
82435:
82436: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public"
82437: fi
82438: if test -d "$OCI8_DIR/rdbms/demo"; then
82439:
82440: if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then
82441:
82442: if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
82443: ai_p=$OCI8_DIR/rdbms/demo
82444: else
82445:
82446: ep_dir="`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
82447:
82448: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82449: ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/demo\"`"
82450: fi
82451:
82452:
82453:
82454: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82455:
82456: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82457: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82458: eval "INCLUDEPATH$unique=set"
82459:
82460: if test ""; then
82461: INCLUDES="-I$ai_p $INCLUDES"
82462: else
82463: INCLUDES="$INCLUDES -I$ai_p"
82464: fi
82465:
82466: fi
82467:
82468: fi
82469:
82470: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo"
82471: fi
82472: if test -d "$OCI8_DIR/network/public"; then
82473:
82474: if test "$OCI8_DIR/network/public" != "/usr/include"; then
82475:
82476: if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then
82477: ai_p=$OCI8_DIR/network/public
82478: else
82479:
82480: ep_dir="`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
82481:
82482: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82483: ai_p="$ep_realdir/`basename \"$OCI8_DIR/network/public\"`"
82484: fi
82485:
82486:
82487:
82488: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82489:
82490: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82491: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82492: eval "INCLUDEPATH$unique=set"
82493:
82494: if test ""; then
82495: INCLUDES="-I$ai_p $INCLUDES"
82496: else
82497: INCLUDES="$INCLUDES -I$ai_p"
82498: fi
82499:
82500: fi
82501:
82502: fi
82503:
82504: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public"
82505: fi
82506: if test -d "$OCI8_DIR/plsql/public"; then
82507:
82508: if test "$OCI8_DIR/plsql/public" != "/usr/include"; then
82509:
82510: if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then
82511: ai_p=$OCI8_DIR/plsql/public
82512: else
82513:
82514: ep_dir="`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
82515:
82516: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82517: ai_p="$ep_realdir/`basename \"$OCI8_DIR/plsql/public\"`"
82518: fi
82519:
82520:
82521:
82522: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82523:
82524: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82525: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82526: eval "INCLUDEPATH$unique=set"
82527:
82528: if test ""; then
82529: INCLUDES="-I$ai_p $INCLUDES"
82530: else
82531: INCLUDES="$INCLUDES -I$ai_p"
82532: fi
82533:
82534: fi
82535:
82536: fi
82537:
82538: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public"
82539: fi
82540:
82541: if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then
82542:
82543: for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do
82544: case $ac_i in
82545: -pthread)
82546: if test "$ext_shared" = "yes"; then
82547: OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
82548: else
82549:
82550:
82551: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82552:
82553: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82554: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82555: eval "EXTRA_LDFLAGS$unique=set"
82556: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82557: fi
82558:
82559: fi
82560: ;;
82561: -l*)
82562: ac_ii=`echo $ac_i|cut -c 3-`
82563:
82564:
82565: case $ac_ii in
82566: c|c_r|pthread*) ;;
82567: *)
82568: if test "$ext_shared" = "yes"; then
82569: OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
82570: else
82571:
82572:
82573: case $ac_ii in
82574: c|c_r|pthread*) ;;
82575: *)
82576: LIBS="$LIBS -l$ac_ii"
82577: ;;
82578: esac
82579:
82580:
82581: fi
82582: ;;
82583: esac
82584:
82585:
82586: ;;
82587: -L*)
82588: ac_ii=`echo $ac_i|cut -c 3-`
82589:
82590: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82591:
82592: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82593: ai_p=$ac_ii
82594: else
82595:
82596: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82597:
82598: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82599: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82600: fi
82601:
82602:
82603: if test "$ext_shared" = "yes"; then
82604: OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
82605: test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
82606: else
82607:
82608:
82609:
82610: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82611:
82612: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82613: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82614: eval "LIBPATH$unique=set"
82615:
82616: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82617: LDFLAGS="$LDFLAGS -L$ai_p"
82618: PHP_RPATHS="$PHP_RPATHS $ai_p"
82619:
82620: fi
82621:
82622:
82623: fi
82624:
82625: fi
82626:
82627: ;;
82628: esac
82629: done
82630:
82631: elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then
82632:
82633: for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do
82634: case $ac_i in
82635: -pthread)
82636: if test "$ext_shared" = "yes"; then
82637: OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
82638: else
82639:
82640:
82641: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82642:
82643: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82644: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82645: eval "EXTRA_LDFLAGS$unique=set"
82646: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82647: fi
82648:
82649: fi
82650: ;;
82651: -l*)
82652: ac_ii=`echo $ac_i|cut -c 3-`
82653:
82654:
82655: case $ac_ii in
82656: c|c_r|pthread*) ;;
82657: *)
82658: if test "$ext_shared" = "yes"; then
82659: OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
82660: else
82661:
82662:
82663: case $ac_ii in
82664: c|c_r|pthread*) ;;
82665: *)
82666: LIBS="$LIBS -l$ac_ii"
82667: ;;
82668: esac
82669:
82670:
82671: fi
82672: ;;
82673: esac
82674:
82675:
82676: ;;
82677: -L*)
82678: ac_ii=`echo $ac_i|cut -c 3-`
82679:
82680: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82681:
82682: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82683: ai_p=$ac_ii
82684: else
82685:
82686: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82687:
82688: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82689: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82690: fi
82691:
82692:
82693: if test "$ext_shared" = "yes"; then
82694: OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
82695: test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
82696: else
82697:
82698:
82699:
82700: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82701:
82702: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82703: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82704: eval "LIBPATH$unique=set"
82705:
82706: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82707: LDFLAGS="$LDFLAGS -L$ai_p"
82708: PHP_RPATHS="$PHP_RPATHS $ai_p"
82709:
82710: fi
82711:
82712:
82713: fi
82714:
82715: fi
82716:
82717: ;;
82718: esac
82719: done
82720:
82721: fi
82722:
82723:
1.1.1.3 ! misho 82724: { echo "$as_me:$LINENO: checking Oracle library version compatibility" >&5
! 82725: echo $ECHO_N "checking Oracle library version compatibility... $ECHO_C" >&6; }
1.1 misho 82726: OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
1.1.1.3 ! misho 82727: OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc
1.1 misho 82728: if test -s "$OCI8_DIR/orainst/unix.rgs"; then
82729: OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4`
82730: test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3
82731: elif test -f "$OCI8_LCS"; then
82732: OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
82733: elif test -f $OCI8_LCS_BASE.9.0; then
82734: OCI8_ORACLE_VERSION=9.0
82735: elif test -f $OCI8_LCS_BASE.8.0; then
82736: OCI8_ORACLE_VERSION=8.1
82737: elif test -f $OCI8_LCS_BASE.1.0; then
82738: OCI8_ORACLE_VERSION=8.0
82739: elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
82740: if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
82741: OCI8_ORACLE_VERSION=8.0
82742: else
82743: OCI8_ORACLE_VERSION=8.1
82744: fi
82745: else
1.1.1.3 ! misho 82746: { { echo "$as_me:$LINENO: error: Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" >&5
! 82747: echo "$as_me: error: Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" >&2;}
! 82748: { (exit 1); exit 1; }; }
1.1 misho 82749: fi
1.1.1.3 ! misho 82750: { echo "$as_me:$LINENO: result: $OCI8_ORACLE_VERSION" >&5
! 82751: echo "${ECHO_T}$OCI8_ORACLE_VERSION" >&6; }
1.1 misho 82752:
82753:
82754: case $OCI8_ORACLE_VERSION in
82755: 7.3|8.0|8.1)
1.1.1.3 ! misho 82756: { { echo "$as_me:$LINENO: error: Oracle client libraries < 9.2 are not supported" >&5
! 82757: echo "$as_me: error: Oracle client libraries < 9.2 are not supported" >&2;}
! 82758: { (exit 1); exit 1; }; }
1.1 misho 82759: ;;
82760:
82761: 9.0)
82762:
82763: save_old_LDFLAGS=$LDFLAGS
82764: ac_stuff="
82765: -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD
82766: "
82767:
82768: save_ext_shared=$ext_shared
82769: ext_shared=yes
82770:
82771: for ac_i in $ac_stuff; do
82772: case $ac_i in
82773: -pthread)
82774: if test "$ext_shared" = "yes"; then
82775: LDFLAGS="$LDFLAGS -pthread"
82776: else
82777:
82778:
82779: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82780:
82781: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82782: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82783: eval "EXTRA_LDFLAGS$unique=set"
82784: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82785: fi
82786:
82787: fi
82788: ;;
82789: -l*)
82790: ac_ii=`echo $ac_i|cut -c 3-`
82791:
82792:
82793: case $ac_ii in
82794: c|c_r|pthread*) ;;
82795: *)
82796: if test "$ext_shared" = "yes"; then
82797: LDFLAGS="$LDFLAGS -l$ac_ii"
82798: else
82799:
82800:
82801: case $ac_ii in
82802: c|c_r|pthread*) ;;
82803: *)
82804: LIBS="$LIBS -l$ac_ii"
82805: ;;
82806: esac
82807:
82808:
82809: fi
82810: ;;
82811: esac
82812:
82813:
82814: ;;
82815: -L*)
82816: ac_ii=`echo $ac_i|cut -c 3-`
82817:
82818: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82819:
82820: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82821: ai_p=$ac_ii
82822: else
82823:
82824: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82825:
82826: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82827: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82828: fi
82829:
82830:
82831: if test "$ext_shared" = "yes"; then
82832: LDFLAGS="-L$ai_p $LDFLAGS"
82833: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82834: else
82835:
82836:
82837:
82838: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82839:
82840: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82841: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82842: eval "LIBPATH$unique=set"
82843:
82844: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82845: LDFLAGS="$LDFLAGS -L$ai_p"
82846: PHP_RPATHS="$PHP_RPATHS $ai_p"
82847:
82848: fi
82849:
82850:
82851: fi
82852:
82853: fi
82854:
82855: ;;
82856: esac
82857: done
82858:
1.1.1.3 ! misho 82859: { echo "$as_me:$LINENO: checking for OCIEnvNlsCreate in -lclntsh" >&5
! 82860: echo $ECHO_N "checking for OCIEnvNlsCreate in -lclntsh... $ECHO_C" >&6; }
! 82861: if test "${ac_cv_lib_clntsh_OCIEnvNlsCreate+set}" = set; then
! 82862: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 82863: else
82864: ac_check_lib_save_LIBS=$LIBS
82865: LIBS="-lclntsh $LIBS"
1.1.1.3 ! misho 82866: cat >conftest.$ac_ext <<_ACEOF
! 82867: /* confdefs.h. */
! 82868: _ACEOF
! 82869: cat confdefs.h >>conftest.$ac_ext
! 82870: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 82871: /* end confdefs.h. */
82872:
82873: /* Override any GCC internal prototype to avoid an error.
82874: Use char because int might match the return type of a GCC
82875: builtin and then its argument prototype would still apply. */
82876: #ifdef __cplusplus
82877: extern "C"
82878: #endif
82879: char OCIEnvNlsCreate ();
82880: int
82881: main ()
82882: {
82883: return OCIEnvNlsCreate ();
82884: ;
82885: return 0;
82886: }
82887: _ACEOF
1.1.1.3 ! misho 82888: rm -f conftest.$ac_objext conftest$ac_exeext
! 82889: if { (ac_try="$ac_link"
! 82890: case "(($ac_try" in
! 82891: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 82892: *) ac_try_echo=$ac_try;;
! 82893: esac
! 82894: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 82895: (eval "$ac_link") 2>conftest.er1
! 82896: ac_status=$?
! 82897: grep -v '^ *+' conftest.er1 >conftest.err
! 82898: rm -f conftest.er1
! 82899: cat conftest.err >&5
! 82900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 82901: (exit $ac_status); } && {
! 82902: test -z "$ac_c_werror_flag" ||
! 82903: test ! -s conftest.err
! 82904: } && test -s conftest$ac_exeext &&
! 82905: $as_test_x conftest$ac_exeext; then
1.1 misho 82906: ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
82907: else
1.1.1.3 ! misho 82908: echo "$as_me: failed program was:" >&5
! 82909: sed 's/^/| /' conftest.$ac_ext >&5
! 82910:
! 82911: ac_cv_lib_clntsh_OCIEnvNlsCreate=no
1.1 misho 82912: fi
1.1.1.3 ! misho 82913:
! 82914: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 82915: conftest$ac_exeext conftest.$ac_ext
1.1 misho 82916: LIBS=$ac_check_lib_save_LIBS
82917: fi
1.1.1.3 ! misho 82918: { echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
! 82919: echo "${ECHO_T}$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
! 82920: if test $ac_cv_lib_clntsh_OCIEnvNlsCreate = yes; then
1.1 misho 82921:
82922: LDFLAGS=$save_old_LDFLAGS
82923: ext_shared=$save_ext_shared
82924:
82925: OCI8_ORACLE_VERSION=9.2
82926:
82927:
82928: else
82929:
82930: LDFLAGS=$save_old_LDFLAGS
82931: ext_shared=$save_ext_shared
82932: unset ac_cv_lib_clntsh_OCIEnvNlsCreate
82933:
1.1.1.3 ! misho 82934: { { echo "$as_me:$LINENO: error: Oracle client libraries < 9.2 are not supported" >&5
! 82935: echo "$as_me: error: Oracle client libraries < 9.2 are not supported" >&2;}
! 82936: { (exit 1); exit 1; }; }
1.1 misho 82937:
82938:
82939: fi
82940:
82941: ;;
82942:
82943: *)
82944:
1.1.1.3 ! misho 82945: cat >>confdefs.h <<\_ACEOF
! 82946: #define HAVE_OCI_LOB_READ2 1
! 82947: _ACEOF
1.1 misho 82948:
82949: ;;
82950: esac
82951:
82952:
82953:
82954: case clntsh in
82955: c|c_r|pthread*) ;;
82956: *)
82957: if test "$ext_shared" = "yes"; then
82958: OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
82959: else
82960:
82961:
82962: case clntsh in
82963: c|c_r|pthread*) ;;
82964: *)
82965: LIBS="$LIBS -lclntsh"
82966: ;;
82967: esac
82968:
82969:
82970: fi
82971: ;;
82972: esac
82973:
82974:
82975:
82976: if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then
82977:
82978: if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then
82979: ai_p=$OCI8_DIR/$OCI8_LIB_DIR
82980: else
82981:
82982: ep_dir="`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
82983:
82984: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82985: ai_p="$ep_realdir/`basename \"$OCI8_DIR/$OCI8_LIB_DIR\"`"
82986: fi
82987:
82988:
82989: if test "$ext_shared" = "yes"; then
82990: OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
82991: test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
82992: else
82993:
82994:
82995:
82996: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82997:
82998: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82999: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83000: eval "LIBPATH$unique=set"
83001:
83002: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83003: LDFLAGS="$LDFLAGS -L$ai_p"
83004: PHP_RPATHS="$PHP_RPATHS $ai_p"
83005:
83006: fi
83007:
83008:
83009: fi
83010:
83011: fi
83012:
83013:
83014: ext_builddir=ext/oci8
83015: ext_srcdir=$abs_srcdir/ext/oci8
83016:
83017: ac_extra=
83018:
83019: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
83020: PHP_OCI8_SHARED=no
83021:
83022:
83023: case ext/oci8 in
83024: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83025: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83026: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83027: esac
83028:
83029:
83030:
83031: b_c_pre=$php_c_pre
83032: b_cxx_pre=$php_cxx_pre
83033: b_c_meta=$php_c_meta
83034: b_cxx_meta=$php_cxx_meta
83035: b_c_post=$php_c_post
83036: b_cxx_post=$php_cxx_post
83037: b_lo=$php_lo
83038:
83039:
83040: old_IFS=$IFS
83041: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83042:
83043: IFS=.
83044: set $ac_src
83045: ac_obj=$1
83046: IFS=$old_IFS
83047:
83048: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83049:
83050: case $ac_src in
83051: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83052: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83053: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83054: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83055: esac
83056:
83057: cat >>Makefile.objects<<EOF
83058: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83059: $ac_comp
83060: EOF
83061: done
83062:
83063:
83064: EXT_STATIC="$EXT_STATIC oci8"
83065: if test "$ext_shared" != "nocli"; then
83066: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83067: fi
83068: else
83069: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
83070: PHP_OCI8_SHARED=yes
83071:
83072: case ext/oci8 in
83073: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83074: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83075: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83076: esac
83077:
83078:
83079:
83080: b_c_pre=$shared_c_pre
83081: b_cxx_pre=$shared_cxx_pre
83082: b_c_meta=$shared_c_meta
83083: b_cxx_meta=$shared_cxx_meta
83084: b_c_post=$shared_c_post
83085: b_cxx_post=$shared_cxx_post
83086: b_lo=$shared_lo
83087:
83088:
83089: old_IFS=$IFS
83090: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83091:
83092: IFS=.
83093: set $ac_src
83094: ac_obj=$1
83095: IFS=$old_IFS
83096:
83097: shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
83098:
83099: case $ac_src in
83100: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83101: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83102: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83103: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83104: esac
83105:
83106: cat >>Makefile.objects<<EOF
83107: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83108: $ac_comp
83109: EOF
83110: done
83111:
83112: case $host_alias in
83113: *netware*)
83114:
83115: install_modules="install-modules"
83116:
83117: case $host_alias in
83118: *aix*)
83119: suffix=so
83120: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpoci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpoci8.so '$ext_builddir'/phpoci8.so'
83121: ;;
83122: *netware*)
83123: suffix=nlm
83124: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(OCI8_SHARED_LIBADD)'
83125: ;;
83126: *)
83127: suffix=la
83128: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD)'
83129: ;;
83130: esac
83131:
83132: if test "x" = "xyes"; then
83133: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
83134: else
83135: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
83136: fi
83137:
83138: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
83139:
83140: cat >>Makefile.objects<<EOF
83141: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
83142: \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
83143:
83144: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
83145: $link_cmd
83146:
83147: EOF
83148:
83149: ;;
83150: *)
83151:
83152: install_modules="install-modules"
83153:
83154: case $host_alias in
83155: *aix*)
83156: suffix=so
83157: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/oci8.so '$ext_builddir'/oci8.so'
83158: ;;
83159: *netware*)
83160: suffix=nlm
83161: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(8_SHARED_LIBADD)'
83162: ;;
83163: *)
83164: suffix=la
83165: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD)'
83166: ;;
83167: esac
83168:
83169: if test "x" = "xyes"; then
83170: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
83171: else
83172: PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
83173: fi
83174:
83175: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
83176:
83177: cat >>Makefile.objects<<EOF
83178: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
83179: \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
83180:
83181: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
83182: $link_cmd
83183:
83184: EOF
83185:
83186: ;;
83187: esac
83188:
83189: cat >>confdefs.h <<_ACEOF
83190: #define COMPILE_DL_OCI8 1
83191: _ACEOF
83192:
83193: fi
83194: fi
83195:
83196: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
83197: PHP_OCI8_SHARED=no
1.1.1.3 ! misho 83198: case "$PHP_SAPI" in
! 83199: cgi|embed)
1.1 misho 83200:
83201:
83202: case ext/oci8 in
83203: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83204: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83205: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83206: esac
83207:
83208:
83209:
83210: b_c_pre=$php_c_pre
83211: b_cxx_pre=$php_cxx_pre
83212: b_c_meta=$php_c_meta
83213: b_cxx_meta=$php_cxx_meta
83214: b_c_post=$php_c_post
83215: b_cxx_post=$php_cxx_post
83216: b_lo=$php_lo
83217:
83218:
83219: old_IFS=$IFS
83220: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83221:
83222: IFS=.
83223: set $ac_src
83224: ac_obj=$1
83225: IFS=$old_IFS
83226:
1.1.1.2 misho 83227: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 83228:
83229: case $ac_src in
83230: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83231: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83232: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83233: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83234: esac
83235:
83236: cat >>Makefile.objects<<EOF
83237: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83238: $ac_comp
83239: EOF
83240: done
83241:
83242:
1.1.1.3 ! misho 83243: EXT_STATIC="$EXT_STATIC oci8"
! 83244: ;;
! 83245: *)
1.1 misho 83246:
83247:
83248: case ext/oci8 in
83249: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83250: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83251: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83252: esac
83253:
83254:
83255:
83256: b_c_pre=$php_c_pre
83257: b_cxx_pre=$php_cxx_pre
83258: b_c_meta=$php_c_meta
83259: b_cxx_meta=$php_cxx_meta
83260: b_c_post=$php_c_post
83261: b_cxx_post=$php_cxx_post
83262: b_lo=$php_lo
83263:
83264:
83265: old_IFS=$IFS
83266: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83267:
83268: IFS=.
83269: set $ac_src
83270: ac_obj=$1
83271: IFS=$old_IFS
83272:
1.1.1.2 misho 83273: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 83274:
83275: case $ac_src in
83276: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83277: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83278: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83279: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83280: esac
83281:
83282: cat >>Makefile.objects<<EOF
83283: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83284: $ac_comp
83285: EOF
83286: done
83287:
83288:
1.1.1.3 ! misho 83289: ;;
! 83290: esac
1.1 misho 83291: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83292: fi
83293:
83294:
83295: BUILD_DIR="$BUILD_DIR $ext_builddir"
83296:
83297:
83298:
83299: if test "$ext_builddir" = "."; then
83300: PHP_PECL_EXTENSION=oci8
83301:
83302: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83303:
83304: fi
83305:
83306:
1.1.1.3 ! misho 83307: cat >>confdefs.h <<\_ACEOF
! 83308: #define HAVE_OCI8 1
! 83309: _ACEOF
1.1 misho 83310:
83311:
83312:
83313:
83314: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
83315:
83316:
83317:
83318:
83319:
83320: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
83321:
83322:
83323:
83324:
83325:
83326: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
83327:
83328:
83329:
83330:
83331:
83332: cat >>confdefs.h <<_ACEOF
83333: #define PHP_OCI8_DEF_DIR "$OCI8_DIR"
83334: _ACEOF
83335:
83336:
83337: cat >>confdefs.h <<_ACEOF
83338: #define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD"
83339: _ACEOF
83340:
83341:
83342: else
83343:
1.1.1.3 ! misho 83344: { echo "$as_me:$LINENO: checking Oracle Instant Client directory" >&5
! 83345: echo $ECHO_N "checking Oracle Instant Client directory... $ECHO_C" >&6; }
1.1 misho 83346:
83347: if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
1.1.1.3 ! misho 83348: PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'`
1.1 misho 83349: if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
1.1.1.3 ! misho 83350: { { echo "$as_me:$LINENO: error: Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" >&5
! 83351: echo "$as_me: error: Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" >&2;}
! 83352: { (exit 1); exit 1; }; }
1.1 misho 83353: fi
83354: fi
1.1.1.3 ! misho 83355: { echo "$as_me:$LINENO: result: $PHP_OCI8_INSTANT_CLIENT" >&5
! 83356: echo "${ECHO_T}$PHP_OCI8_INSTANT_CLIENT" >&6; }
1.1 misho 83357:
83358: OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
83359:
1.1.1.3 ! misho 83360: { echo "$as_me:$LINENO: checking Oracle Instant Client SDK header directory" >&5
! 83361: echo $ECHO_N "checking Oracle Instant Client SDK header directory... $ECHO_C" >&6; }
1.1 misho 83362:
83363: OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'`
83364:
83365: OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
83366:
83367: OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'`
83368:
83369: if test -f "$OCISDKRPMINC/oci.h"; then
1.1.1.3 ! misho 83370: { echo "$as_me:$LINENO: result: $OCISDKRPMINC" >&5
! 83371: echo "${ECHO_T}$OCISDKRPMINC" >&6; }
1.1 misho 83372:
83373: if test "$OCISDKRPMINC" != "/usr/include"; then
83374:
83375: if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
83376: ai_p=$OCISDKRPMINC
83377: else
83378:
83379: ep_dir="`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`"
83380:
83381: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83382: ai_p="$ep_realdir/`basename \"$OCISDKRPMINC\"`"
83383: fi
83384:
83385:
83386:
83387: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83388:
83389: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83390: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83391: eval "INCLUDEPATH$unique=set"
83392:
83393: if test ""; then
83394: INCLUDES="-I$ai_p $INCLUDES"
83395: else
83396: INCLUDES="$INCLUDES -I$ai_p"
83397: fi
83398:
83399: fi
83400:
83401: fi
83402:
83403: OCI8INCDIR=$OCISDKRPMINC
83404: elif test -f "$OCISDKZIPINC/oci.h"; then
1.1.1.3 ! misho 83405: { echo "$as_me:$LINENO: result: $OCISDKZIPINC" >&5
! 83406: echo "${ECHO_T}$OCISDKZIPINC" >&6; }
1.1 misho 83407:
83408: if test "$OCISDKZIPINC" != "/usr/include"; then
83409:
83410: if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
83411: ai_p=$OCISDKZIPINC
83412: else
83413:
83414: ep_dir="`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`"
83415:
83416: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83417: ai_p="$ep_realdir/`basename \"$OCISDKZIPINC\"`"
83418: fi
83419:
83420:
83421:
83422: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83423:
83424: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83425: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83426: eval "INCLUDEPATH$unique=set"
83427:
83428: if test ""; then
83429: INCLUDES="-I$ai_p $INCLUDES"
83430: else
83431: INCLUDES="$INCLUDES -I$ai_p"
83432: fi
83433:
83434: fi
83435:
83436: fi
83437:
83438: OCI8INCDIR=$OCISDKZIPINC
83439: elif test -f "$OCISDKMANINC/oci.h"; then
1.1.1.3 ! misho 83440: { echo "$as_me:$LINENO: result: $OCISDKMANINC" >&5
! 83441: echo "${ECHO_T}$OCISDKMANINC" >&6; }
1.1 misho 83442:
83443: if test "$OCISDKMANINC" != "/usr/include"; then
83444:
83445: if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
83446: ai_p=$OCISDKMANINC
83447: else
83448:
83449: ep_dir="`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`"
83450:
83451: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83452: ai_p="$ep_realdir/`basename \"$OCISDKMANINC\"`"
83453: fi
83454:
83455:
83456:
83457: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83458:
83459: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83460: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83461: eval "INCLUDEPATH$unique=set"
83462:
83463: if test ""; then
83464: INCLUDES="-I$ai_p $INCLUDES"
83465: else
83466: INCLUDES="$INCLUDES -I$ai_p"
83467: fi
83468:
83469: fi
83470:
83471: fi
83472:
83473: OCI8INCDIR=$OCISDKMANINC
83474: else
1.1.1.3 ! misho 83475: { { echo "$as_me:$LINENO: error: Oracle Instant Client SDK header files not found" >&5
! 83476: echo "$as_me: error: Oracle Instant Client SDK header files not found" >&2;}
! 83477: { (exit 1); exit 1; }; }
1.1 misho 83478: fi
83479:
83480: OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
83481: if test -f "$OCISYSLIBLIST"; then
83482:
83483: for ac_i in `cat $OCISYSLIBLIST`; do
83484: case $ac_i in
83485: -pthread)
83486: if test "$ext_shared" = "yes"; then
83487: OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
83488: else
83489:
83490:
83491: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
83492:
83493: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
83494: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83495: eval "EXTRA_LDFLAGS$unique=set"
83496: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
83497: fi
83498:
83499: fi
83500: ;;
83501: -l*)
83502: ac_ii=`echo $ac_i|cut -c 3-`
83503:
83504:
83505: case $ac_ii in
83506: c|c_r|pthread*) ;;
83507: *)
83508: if test "$ext_shared" = "yes"; then
83509: OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
83510: else
83511:
83512:
83513: case $ac_ii in
83514: c|c_r|pthread*) ;;
83515: *)
83516: LIBS="$LIBS -l$ac_ii"
83517: ;;
83518: esac
83519:
83520:
83521: fi
83522: ;;
83523: esac
83524:
83525:
83526: ;;
83527: -L*)
83528: ac_ii=`echo $ac_i|cut -c 3-`
83529:
83530: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
83531:
83532: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
83533: ai_p=$ac_ii
83534: else
83535:
83536: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
83537:
83538: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83539: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
83540: fi
83541:
83542:
83543: if test "$ext_shared" = "yes"; then
83544: OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
83545: test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
83546: else
83547:
83548:
83549:
83550: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83551:
83552: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83553: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83554: eval "LIBPATH$unique=set"
83555:
83556: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83557: LDFLAGS="$LDFLAGS -L$ai_p"
83558: PHP_RPATHS="$PHP_RPATHS $ai_p"
83559:
83560: fi
83561:
83562:
83563: fi
83564:
83565: fi
83566:
83567: ;;
83568: esac
83569: done
83570:
83571: fi
83572:
83573:
1.1.1.3 ! misho 83574: { echo "$as_me:$LINENO: checking Oracle Instant Client library version compatibility" >&5
! 83575: echo $ECHO_N "checking Oracle Instant Client library version compatibility... $ECHO_C" >&6; }
1.1 misho 83576: OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME
1.1.1.3 ! misho 83577: OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc
! 83578: OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1`
1.1 misho 83579: if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then
83580: if test ! -f "$OCI8_LCS_BASE"; then
1.1.1.3 ! misho 83581: { { echo "$as_me:$LINENO: error: Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" >&5
! 83582: echo "$as_me: error: Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" >&2;}
! 83583: { (exit 1); exit 1; }; }
1.1 misho 83584: fi
83585: OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
83586: else
1.1.1.3 ! misho 83587: { { echo "$as_me:$LINENO: error: Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" >&5
! 83588: echo "$as_me: error: Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" >&2;}
! 83589: { (exit 1); exit 1; }; }
1.1 misho 83590: fi
1.1.1.3 ! misho 83591: { echo "$as_me:$LINENO: result: $OCI8_ORACLE_VERSION" >&5
! 83592: echo "${ECHO_T}$OCI8_ORACLE_VERSION" >&6; }
1.1 misho 83593:
83594:
83595:
83596: case clntsh in
83597: c|c_r|pthread*) ;;
83598: *)
83599: if test "$ext_shared" = "yes"; then
83600: OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
83601: else
83602:
83603:
83604: case clntsh in
83605: c|c_r|pthread*) ;;
83606: *)
83607: LIBS="$LIBS -lclntsh"
83608: ;;
83609: esac
83610:
83611:
83612: fi
83613: ;;
83614: esac
83615:
83616:
83617:
83618: if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then
83619:
83620: if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then
83621: ai_p=$PHP_OCI8_INSTANT_CLIENT
83622: else
83623:
83624: ep_dir="`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'`"
83625:
83626: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83627: ai_p="$ep_realdir/`basename \"$PHP_OCI8_INSTANT_CLIENT\"`"
83628: fi
83629:
83630:
83631: if test "$ext_shared" = "yes"; then
83632: OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
83633: test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
83634: else
83635:
83636:
83637:
83638: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83639:
83640: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83641: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83642: eval "LIBPATH$unique=set"
83643:
83644: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83645: LDFLAGS="$LDFLAGS -L$ai_p"
83646: PHP_RPATHS="$PHP_RPATHS $ai_p"
83647:
83648: fi
83649:
83650:
83651: fi
83652:
83653: fi
83654:
83655:
83656:
1.1.1.3 ! misho 83657: cat >>confdefs.h <<\_ACEOF
! 83658: #define HAVE_OCI_INSTANT_CLIENT 1
! 83659: _ACEOF
1.1 misho 83660:
83661:
1.1.1.3 ! misho 83662: cat >>confdefs.h <<\_ACEOF
! 83663: #define HAVE_OCI_LOB_READ2 1
! 83664: _ACEOF
1.1 misho 83665:
83666:
83667:
83668: ext_builddir=ext/oci8
83669: ext_srcdir=$abs_srcdir/ext/oci8
83670:
83671: ac_extra=
83672:
83673: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
83674: PHP_OCI8_SHARED=no
83675:
83676:
83677: case ext/oci8 in
83678: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83679: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83680: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83681: esac
83682:
83683:
83684:
83685: b_c_pre=$php_c_pre
83686: b_cxx_pre=$php_cxx_pre
83687: b_c_meta=$php_c_meta
83688: b_cxx_meta=$php_cxx_meta
83689: b_c_post=$php_c_post
83690: b_cxx_post=$php_cxx_post
83691: b_lo=$php_lo
83692:
83693:
83694: old_IFS=$IFS
83695: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83696:
83697: IFS=.
83698: set $ac_src
83699: ac_obj=$1
83700: IFS=$old_IFS
83701:
83702: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83703:
83704: case $ac_src in
83705: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83706: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83707: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83708: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83709: esac
83710:
83711: cat >>Makefile.objects<<EOF
83712: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83713: $ac_comp
83714: EOF
83715: done
83716:
83717:
83718: EXT_STATIC="$EXT_STATIC oci8"
83719: if test "$ext_shared" != "nocli"; then
83720: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83721: fi
83722: else
83723: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
83724: PHP_OCI8_SHARED=yes
83725:
83726: case ext/oci8 in
83727: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83728: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83729: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83730: esac
83731:
83732:
83733:
83734: b_c_pre=$shared_c_pre
83735: b_cxx_pre=$shared_cxx_pre
83736: b_c_meta=$shared_c_meta
83737: b_cxx_meta=$shared_cxx_meta
83738: b_c_post=$shared_c_post
83739: b_cxx_post=$shared_cxx_post
83740: b_lo=$shared_lo
83741:
83742:
83743: old_IFS=$IFS
83744: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83745:
83746: IFS=.
83747: set $ac_src
83748: ac_obj=$1
83749: IFS=$old_IFS
83750:
83751: shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
83752:
83753: case $ac_src in
83754: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83755: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83756: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83757: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83758: esac
83759:
83760: cat >>Makefile.objects<<EOF
83761: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83762: $ac_comp
83763: EOF
83764: done
83765:
83766: case $host_alias in
83767: *netware*)
83768:
83769: install_modules="install-modules"
83770:
83771: case $host_alias in
83772: *aix*)
83773: suffix=so
83774: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpoci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpoci8.so '$ext_builddir'/phpoci8.so'
83775: ;;
83776: *netware*)
83777: suffix=nlm
83778: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(OCI8_SHARED_LIBADD)'
83779: ;;
83780: *)
83781: suffix=la
83782: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD)'
83783: ;;
83784: esac
83785:
83786: if test "x" = "xyes"; then
83787: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
83788: else
83789: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
83790: fi
83791:
83792: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
83793:
83794: cat >>Makefile.objects<<EOF
83795: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
83796: \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
83797:
83798: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
83799: $link_cmd
83800:
83801: EOF
83802:
83803: ;;
83804: *)
83805:
83806: install_modules="install-modules"
83807:
83808: case $host_alias in
83809: *aix*)
83810: suffix=so
83811: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/oci8.so '$ext_builddir'/oci8.so'
83812: ;;
83813: *netware*)
83814: suffix=nlm
83815: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(8_SHARED_LIBADD)'
83816: ;;
83817: *)
83818: suffix=la
83819: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD)'
83820: ;;
83821: esac
83822:
83823: if test "x" = "xyes"; then
83824: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
83825: else
83826: PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
83827: fi
83828:
83829: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
83830:
83831: cat >>Makefile.objects<<EOF
83832: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
83833: \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
83834:
83835: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
83836: $link_cmd
83837:
83838: EOF
83839:
83840: ;;
83841: esac
83842:
83843: cat >>confdefs.h <<_ACEOF
83844: #define COMPILE_DL_OCI8 1
83845: _ACEOF
83846:
83847: fi
83848: fi
83849:
83850: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
83851: PHP_OCI8_SHARED=no
1.1.1.3 ! misho 83852: case "$PHP_SAPI" in
! 83853: cgi|embed)
1.1 misho 83854:
83855:
83856: case ext/oci8 in
83857: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83858: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83859: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83860: esac
83861:
83862:
83863:
83864: b_c_pre=$php_c_pre
83865: b_cxx_pre=$php_cxx_pre
83866: b_c_meta=$php_c_meta
83867: b_cxx_meta=$php_cxx_meta
83868: b_c_post=$php_c_post
83869: b_cxx_post=$php_cxx_post
83870: b_lo=$php_lo
83871:
83872:
83873: old_IFS=$IFS
83874: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83875:
83876: IFS=.
83877: set $ac_src
83878: ac_obj=$1
83879: IFS=$old_IFS
83880:
1.1.1.2 misho 83881: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 83882:
83883: case $ac_src in
83884: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83885: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83886: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83887: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83888: esac
83889:
83890: cat >>Makefile.objects<<EOF
83891: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83892: $ac_comp
83893: EOF
83894: done
83895:
83896:
1.1.1.3 ! misho 83897: EXT_STATIC="$EXT_STATIC oci8"
! 83898: ;;
! 83899: *)
1.1 misho 83900:
83901:
83902: case ext/oci8 in
83903: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83904: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83905: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83906: esac
83907:
83908:
83909:
83910: b_c_pre=$php_c_pre
83911: b_cxx_pre=$php_cxx_pre
83912: b_c_meta=$php_c_meta
83913: b_cxx_meta=$php_cxx_meta
83914: b_c_post=$php_c_post
83915: b_cxx_post=$php_cxx_post
83916: b_lo=$php_lo
83917:
83918:
83919: old_IFS=$IFS
83920: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83921:
83922: IFS=.
83923: set $ac_src
83924: ac_obj=$1
83925: IFS=$old_IFS
83926:
1.1.1.2 misho 83927: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 83928:
83929: case $ac_src in
83930: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83931: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83932: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83933: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83934: esac
83935:
83936: cat >>Makefile.objects<<EOF
83937: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83938: $ac_comp
83939: EOF
83940: done
83941:
83942:
1.1.1.3 ! misho 83943: ;;
! 83944: esac
1.1 misho 83945: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83946: fi
83947:
83948:
83949: BUILD_DIR="$BUILD_DIR $ext_builddir"
83950:
83951:
83952:
83953: if test "$ext_builddir" = "."; then
83954: PHP_PECL_EXTENSION=oci8
83955:
83956: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83957:
83958: fi
83959:
83960:
1.1.1.3 ! misho 83961: cat >>confdefs.h <<\_ACEOF
! 83962: #define HAVE_OCI8 1
! 83963: _ACEOF
1.1 misho 83964:
83965:
83966:
83967:
83968: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
83969:
83970:
83971:
83972:
83973:
83974: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
83975:
83976:
83977:
83978:
83979:
83980: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
83981:
83982:
83983:
83984:
83985: fi
83986: fi
83987:
83988:
83989:
83990:
83991:
83992:
83993:
83994:
83995:
83996:
83997:
83998:
83999: if test -z "$ODBC_TYPE"; then
84000:
84001: php_with_adabas=no
84002:
84003:
84004:
84005: # Check whether --with-adabas was given.
1.1.1.3 ! misho 84006: if test "${with_adabas+set}" = set; then
1.1 misho 84007: withval=$with_adabas; PHP_ADABAS=$withval
84008: else
84009:
84010: PHP_ADABAS=no
84011: test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL
84012:
84013: fi
84014:
84015:
84016:
84017: ext_output="yes, shared"
84018: ext_shared=yes
84019: case $PHP_ADABAS in
84020: shared,*)
84021: PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'`
84022: ;;
84023: shared)
84024: PHP_ADABAS=yes
84025: ;;
84026: no)
84027: ext_output=no
84028: ext_shared=no
84029: ;;
84030: *)
84031: ext_output=yes
84032: ext_shared=no
84033: ;;
84034: esac
84035:
84036:
84037:
84038:
84039:
84040:
84041:
84042:
84043: if test "$PHP_ADABAS" != "no"; then
1.1.1.3 ! misho 84044: { echo "$as_me:$LINENO: checking for Adabas support" >&5
! 84045: echo $ECHO_N "checking for Adabas support... $ECHO_C" >&6; }
1.1 misho 84046: if test "$PHP_ADABAS" = "yes"; then
84047: PHP_ADABAS=/usr/local
84048: fi
84049:
84050: if test "$PHP_ADABAS/incl" != "/usr/include"; then
84051:
84052: if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then
84053: ai_p=$PHP_ADABAS/incl
84054: else
84055:
84056: ep_dir="`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'`"
84057:
84058: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84059: ai_p="$ep_realdir/`basename \"$PHP_ADABAS/incl\"`"
84060: fi
84061:
84062:
84063:
84064: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84065:
84066: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84067: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84068: eval "INCLUDEPATH$unique=set"
84069:
84070: if test ""; then
84071: INCLUDES="-I$ai_p $INCLUDES"
84072: else
84073: INCLUDES="$INCLUDES -I$ai_p"
84074: fi
84075:
84076: fi
84077:
84078: fi
84079:
84080:
84081: if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then
84082:
84083: if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
84084: ai_p=$PHP_ADABAS/$PHP_LIBDIR
84085: else
84086:
84087: ep_dir="`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
84088:
84089: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84090: ai_p="$ep_realdir/`basename \"$PHP_ADABAS/$PHP_LIBDIR\"`"
84091: fi
84092:
84093:
84094:
84095:
84096:
84097: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84098:
84099: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84100: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84101: eval "LIBPATH$unique=set"
84102:
84103: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84104: LDFLAGS="$LDFLAGS -L$ai_p"
84105: PHP_RPATHS="$PHP_RPATHS $ai_p"
84106:
84107: fi
84108:
84109:
84110:
84111: fi
84112:
84113: ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a"
84114: ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
84115: $srcdir/build/shtool mkdir -f -p ext/odbc
84116: rm -f "$ODBC_LIB"
84117: cp "$ODBC_OBJS" "$ODBC_LIB"
84118:
84119:
84120: case sqlptc in
84121: c|c_r|pthread*) ;;
84122: *)
84123: LIBS="-lsqlptc $LIBS"
84124: ;;
84125: esac
84126:
84127:
84128:
84129:
84130: case sqlrte in
84131: c|c_r|pthread*) ;;
84132: *)
84133: LIBS="-lsqlrte $LIBS"
84134: ;;
84135: esac
84136:
84137:
84138:
84139:
84140: if test -n "$abs_builddir/ext/odbc"; then
84141:
84142: if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then
84143:
84144: if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then
84145: ai_p=$abs_builddir/ext/odbc
84146: else
84147:
84148: ep_dir="`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'`"
84149:
84150: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84151: ai_p="$ep_realdir/`basename \"$abs_builddir/ext/odbc\"`"
84152: fi
84153:
84154:
84155:
84156:
84157:
84158: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84159:
84160: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84161: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84162: eval "LIBPATH$unique=set"
84163:
84164: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84165: LDFLAGS="$LDFLAGS -L$ai_p"
84166: PHP_RPATHS="$PHP_RPATHS $ai_p"
84167:
84168: fi
84169:
84170:
84171:
84172: fi
84173:
84174: fi
84175:
84176:
84177: case odbc_adabas in
84178: c|c_r|pthread*) ;;
84179: *)
84180: LIBS="-lodbc_adabas $LIBS"
84181: ;;
84182: esac
84183:
84184:
84185:
84186:
84187: ODBC_TYPE=adabas
84188: ODBC_INCDIR=$PHP_ADABAS/incl
84189:
84190: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
1.1.1.3 ! misho 84191: { { echo "$as_me:$LINENO: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&5
! 84192: echo "$as_me: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&2;}
! 84193: { (exit 1); exit 1; }; }
1.1 misho 84194: fi
84195:
84196:
1.1.1.3 ! misho 84197: cat >>confdefs.h <<\_ACEOF
! 84198: #define HAVE_ADABAS 1
! 84199: _ACEOF
1.1 misho 84200:
1.1.1.3 ! misho 84201: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84202: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84203: fi
84204: fi
84205:
84206: if test -z "$ODBC_TYPE"; then
84207:
84208: php_with_sapdb=no
84209:
84210:
84211:
84212: # Check whether --with-sapdb was given.
1.1.1.3 ! misho 84213: if test "${with_sapdb+set}" = set; then
1.1 misho 84214: withval=$with_sapdb; PHP_SAPDB=$withval
84215: else
84216:
84217: PHP_SAPDB=no
84218: test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL
84219:
84220: fi
84221:
84222:
84223:
84224: ext_output="yes, shared"
84225: ext_shared=yes
84226: case $PHP_SAPDB in
84227: shared,*)
84228: PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'`
84229: ;;
84230: shared)
84231: PHP_SAPDB=yes
84232: ;;
84233: no)
84234: ext_output=no
84235: ext_shared=no
84236: ;;
84237: *)
84238: ext_output=yes
84239: ext_shared=no
84240: ;;
84241: esac
84242:
84243:
84244:
84245:
84246:
84247:
84248:
84249:
84250: if test "$PHP_SAPDB" != "no"; then
1.1.1.3 ! misho 84251: { echo "$as_me:$LINENO: checking for SAP DB support" >&5
! 84252: echo $ECHO_N "checking for SAP DB support... $ECHO_C" >&6; }
1.1 misho 84253: if test "$PHP_SAPDB" = "yes"; then
84254: PHP_SAPDB=/usr/local
84255: fi
84256:
84257: if test "$PHP_SAPDB/incl" != "/usr/include"; then
84258:
84259: if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then
84260: ai_p=$PHP_SAPDB/incl
84261: else
84262:
84263: ep_dir="`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'`"
84264:
84265: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84266: ai_p="$ep_realdir/`basename \"$PHP_SAPDB/incl\"`"
84267: fi
84268:
84269:
84270:
84271: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84272:
84273: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84274: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84275: eval "INCLUDEPATH$unique=set"
84276:
84277: if test ""; then
84278: INCLUDES="-I$ai_p $INCLUDES"
84279: else
84280: INCLUDES="$INCLUDES -I$ai_p"
84281: fi
84282:
84283: fi
84284:
84285: fi
84286:
84287:
84288: if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then
84289:
84290: if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
84291: ai_p=$PHP_SAPDB/$PHP_LIBDIR
84292: else
84293:
84294: ep_dir="`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
84295:
84296: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84297: ai_p="$ep_realdir/`basename \"$PHP_SAPDB/$PHP_LIBDIR\"`"
84298: fi
84299:
84300:
84301:
84302:
84303:
84304: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84305:
84306: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84307: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84308: eval "LIBPATH$unique=set"
84309:
84310: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84311: LDFLAGS="$LDFLAGS -L$ai_p"
84312: PHP_RPATHS="$PHP_RPATHS $ai_p"
84313:
84314: fi
84315:
84316:
84317:
84318: fi
84319:
84320:
84321:
84322: case sqlod in
84323: c|c_r|pthread*) ;;
84324: *)
84325: LIBS="-lsqlod $LIBS"
84326: ;;
84327: esac
84328:
84329:
84330: ODBC_TYPE=sapdb
84331:
1.1.1.3 ! misho 84332: cat >>confdefs.h <<\_ACEOF
! 84333: #define HAVE_SAPDB 1
! 84334: _ACEOF
1.1 misho 84335:
1.1.1.3 ! misho 84336: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84337: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84338: fi
84339: fi
84340:
84341: if test -z "$ODBC_TYPE"; then
84342:
84343: php_with_solid=no
84344:
84345:
84346:
84347: # Check whether --with-solid was given.
1.1.1.3 ! misho 84348: if test "${with_solid+set}" = set; then
1.1 misho 84349: withval=$with_solid; PHP_SOLID=$withval
84350: else
84351:
84352: PHP_SOLID=no
84353: test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL
84354:
84355: fi
84356:
84357:
84358:
84359: ext_output="yes, shared"
84360: ext_shared=yes
84361: case $PHP_SOLID in
84362: shared,*)
84363: PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'`
84364: ;;
84365: shared)
84366: PHP_SOLID=yes
84367: ;;
84368: no)
84369: ext_output=no
84370: ext_shared=no
84371: ;;
84372: *)
84373: ext_output=yes
84374: ext_shared=no
84375: ;;
84376: esac
84377:
84378:
84379:
84380:
84381:
84382:
84383:
84384:
84385: if test "$PHP_SOLID" != "no"; then
1.1.1.3 ! misho 84386: { echo "$as_me:$LINENO: checking for Solid support" >&5
! 84387: echo $ECHO_N "checking for Solid support... $ECHO_C" >&6; }
1.1 misho 84388: if test "$PHP_SOLID" = "yes"; then
84389: PHP_SOLID=/usr/local/solid
84390: fi
84391: ODBC_INCDIR=$PHP_SOLID/include
84392: ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR
84393: ODBC_INCLUDE=-I$ODBC_INCDIR
84394: ODBC_TYPE=solid
84395: if test -f $ODBC_LIBDIR/soc*35.a; then
84396:
1.1.1.3 ! misho 84397: cat >>confdefs.h <<\_ACEOF
! 84398: #define HAVE_SOLID_35 1
! 84399: _ACEOF
1.1 misho 84400:
84401: elif test -f $ODBC_LIBDIR/scl*30.a; then
84402:
1.1.1.3 ! misho 84403: cat >>confdefs.h <<\_ACEOF
! 84404: #define HAVE_SOLID_30 1
! 84405: _ACEOF
1.1 misho 84406:
84407: elif test -f $ODBC_LIBDIR/scl*23.a; then
84408:
1.1.1.3 ! misho 84409: cat >>confdefs.h <<\_ACEOF
! 84410: #define HAVE_SOLID 1
! 84411: _ACEOF
1.1 misho 84412:
84413: fi
1.1.1.3 ! misho 84414: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84415: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84416:
1.1.1.3 ! misho 84417: { echo "$as_me:$LINENO: checking Solid library file" >&5
! 84418: echo $ECHO_N "checking Solid library file... $ECHO_C" >&6; }
1.1 misho 84419: ac_solid_uname_r=`uname -r 2>/dev/null`
84420: ac_solid_uname_s=`uname -s 2>/dev/null`
84421: case $ac_solid_uname_s in
84422: AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only
84423: HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10
84424: IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only
84425: Linux)
84426: if ldd -v /bin/sh | grep GLIBC > /dev/null; then
84427:
1.1.1.3 ! misho 84428: cat >>confdefs.h <<\_ACEOF
! 84429: #define SS_LINUX 1
! 84430: _ACEOF
1.1 misho 84431:
84432: ac_solid_os=l2x
84433: else
84434:
1.1.1.3 ! misho 84435: cat >>confdefs.h <<\_ACEOF
! 84436: #define SS_LINUX 1
! 84437: _ACEOF
1.1 misho 84438:
84439: ac_solid_os=lux
84440: fi;;
84441: SunOS)
84442: ac_solid_os=ssx;; # should we deal with SunOS 4?
84443: FreeBSD)
84444: if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then
84445:
1.1.1.3 ! misho 84446: cat >>confdefs.h <<\_ACEOF
! 84447: #define SS_FBX 1
! 84448: _ACEOF
1.1 misho 84449:
84450: ac_solid_os=fex
84451: else
84452:
1.1.1.3 ! misho 84453: cat >>confdefs.h <<\_ACEOF
! 84454: #define SS_FBX 1
! 84455: _ACEOF
1.1 misho 84456:
84457: ac_solid_os=fbx
84458: fi;;
84459: esac
84460:
84461: if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then
84462: ac_solid_version=35
84463: ac_solid_prefix=soc
84464: elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then
84465: ac_solid_version=30
84466: ac_solid_prefix=scl
84467: elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then
84468: ac_solid_version=23
84469: ac_solid_prefix=scl
84470: fi
84471:
84472: #
84473: # Check for the library files, and setup the ODBC_LIBS path...
84474: #
84475: if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \
84476: ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then
84477: #
84478: # we have an error and should bail out, as we can't find the libs!
84479: #
84480: echo ""
84481: echo "*********************************************************************"
84482: echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
84483: echo "* Please correct this by creating the following links and reconfiguring:"
84484: echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
84485: echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so"
84486: echo "*********************************************************************"
84487: else
84488: ODBC_LFLAGS=-L$ODBC_LIBDIR
84489: ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
84490: fi
84491:
1.1.1.3 ! misho 84492: { echo "$as_me:$LINENO: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
! 84493: echo "${ECHO_T}\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
1.1 misho 84494:
84495: fi
84496: fi
84497:
84498: if test -z "$ODBC_TYPE"; then
84499:
84500: php_with_ibm_db2=no
84501:
84502:
84503:
84504: # Check whether --with-ibm-db2 was given.
1.1.1.3 ! misho 84505: if test "${with_ibm_db2+set}" = set; then
1.1 misho 84506: withval=$with_ibm_db2; PHP_IBM_DB2=$withval
84507: else
84508:
84509: PHP_IBM_DB2=no
84510: test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL
84511:
84512: fi
84513:
84514:
84515:
84516: ext_output="yes, shared"
84517: ext_shared=yes
84518: case $PHP_IBM_DB2 in
84519: shared,*)
84520: PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'`
84521: ;;
84522: shared)
84523: PHP_IBM_DB2=yes
84524: ;;
84525: no)
84526: ext_output=no
84527: ext_shared=no
84528: ;;
84529: *)
84530: ext_output=yes
84531: ext_shared=no
84532: ;;
84533: esac
84534:
84535:
84536:
84537:
84538:
84539:
84540:
84541:
84542: if test "$PHP_IBM_DB2" != "no"; then
1.1.1.3 ! misho 84543: { echo "$as_me:$LINENO: checking for IBM DB2 support" >&5
! 84544: echo $ECHO_N "checking for IBM DB2 support... $ECHO_C" >&6; }
1.1 misho 84545: if test "$PHP_IBM_DB2" = "yes"; then
84546: ODBC_INCDIR=/home/db2inst1/sqllib/include
84547: ODBC_LIBDIR=/home/db2inst1/sqllib/lib
84548: else
84549: ODBC_INCDIR=$PHP_IBM_DB2/include
84550: ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR
84551: fi
84552:
84553:
84554: if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
1.1.1.3 ! misho 84555: { { echo "$as_me:$LINENO: error: ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" >&5
! 84556: echo "$as_me: error: ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" >&2;}
! 84557: { (exit 1); exit 1; }; }
1.1 misho 84558: fi
84559:
84560:
84561: ODBC_INCLUDE=-I$ODBC_INCDIR
84562: ODBC_LFLAGS=-L$ODBC_LIBDIR
84563: ODBC_TYPE=ibm-db2
84564: ODBC_LIBS=-ldb2
84565:
84566:
84567: old_LIBS=$LIBS
84568: LIBS="
84569: $ODBC_LFLAGS $ODBC_LIBS
84570: $LIBS"
1.1.1.3 ! misho 84571: if test "$cross_compiling" = yes; then
1.1 misho 84572:
84573: LIBS=$old_LIBS
84574:
84575: else
1.1.1.3 ! misho 84576: cat >conftest.$ac_ext <<_ACEOF
! 84577: /* confdefs.h. */
! 84578: _ACEOF
! 84579: cat confdefs.h >>conftest.$ac_ext
! 84580: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 84581: /* end confdefs.h. */
84582:
84583:
84584: char SQLExecute();
84585: int main() {
84586: SQLExecute();
84587: return 0;
84588: }
84589:
84590: _ACEOF
1.1.1.3 ! misho 84591: rm -f conftest$ac_exeext
! 84592: if { (ac_try="$ac_link"
! 84593: case "(($ac_try" in
! 84594: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 84595: *) ac_try_echo=$ac_try;;
! 84596: esac
! 84597: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 84598: (eval "$ac_link") 2>&5
! 84599: ac_status=$?
! 84600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 84601: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 84602: { (case "(($ac_try" in
! 84603: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 84604: *) ac_try_echo=$ac_try;;
! 84605: esac
! 84606: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 84607: (eval "$ac_try") 2>&5
! 84608: ac_status=$?
! 84609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 84610: (exit $ac_status); }; }; then
1.1 misho 84611:
84612: LIBS=$old_LIBS
84613:
84614:
1.1.1.3 ! misho 84615: cat >>confdefs.h <<\_ACEOF
! 84616: #define HAVE_IBMDB2 1
! 84617: _ACEOF
1.1 misho 84618:
1.1.1.3 ! misho 84619: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84620: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84621:
84622:
84623: else
1.1.1.3 ! misho 84624: echo "$as_me: program exited with status $ac_status" >&5
! 84625: echo "$as_me: failed program was:" >&5
! 84626: sed 's/^/| /' conftest.$ac_ext >&5
! 84627:
! 84628: ( exit $ac_status )
1.1 misho 84629:
84630: LIBS=$old_LIBS
84631:
1.1.1.3 ! misho 84632: { echo "$as_me:$LINENO: result: no" >&5
! 84633: echo "${ECHO_T}no" >&6; }
! 84634: { { echo "$as_me:$LINENO: error:
! 84635: build test failed. Please check the config.log for details.
! 84636: You need to source your DB2 environment before running PHP configure:
! 84637: # . \$IBM_DB2/db2profile
! 84638: " >&5
! 84639: echo "$as_me: error:
1.1 misho 84640: build test failed. Please check the config.log for details.
84641: You need to source your DB2 environment before running PHP configure:
84642: # . \$IBM_DB2/db2profile
1.1.1.3 ! misho 84643: " >&2;}
! 84644: { (exit 1); exit 1; }; }
1.1 misho 84645:
84646:
84647: fi
1.1.1.3 ! misho 84648: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 84649: fi
84650:
84651:
1.1.1.3 ! misho 84652:
1.1 misho 84653: fi
84654: fi
84655:
84656: if test -z "$ODBC_TYPE"; then
84657:
84658: php_with_odbcrouter=no
84659:
84660:
84661:
84662: # Check whether --with-ODBCRouter was given.
1.1.1.3 ! misho 84663: if test "${with_ODBCRouter+set}" = set; then
1.1 misho 84664: withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval
84665: else
84666:
84667: PHP_ODBCROUTER=no
84668: test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL
84669:
84670: fi
84671:
84672:
84673:
84674: ext_output="yes, shared"
84675: ext_shared=yes
84676: case $PHP_ODBCROUTER in
84677: shared,*)
84678: PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'`
84679: ;;
84680: shared)
84681: PHP_ODBCROUTER=yes
84682: ;;
84683: no)
84684: ext_output=no
84685: ext_shared=no
84686: ;;
84687: *)
84688: ext_output=yes
84689: ext_shared=no
84690: ;;
84691: esac
84692:
84693:
84694:
84695:
84696:
84697:
84698:
84699:
84700: if test "$PHP_ODBCROUTER" != "no"; then
1.1.1.3 ! misho 84701: { echo "$as_me:$LINENO: checking for ODBCRouter.com support" >&5
! 84702: echo $ECHO_N "checking for ODBCRouter.com support... $ECHO_C" >&6; }
1.1 misho 84703: if test "$PHP_ODBCROUTER" = "yes"; then
84704: PHP_ODBCROUTER=/usr
84705: fi
84706: ODBC_INCDIR=$PHP_ODBCROUTER/include
84707: ODBC_LIBDIR=$PHP_ODBCROUTER/lib
84708: ODBC_LFLAGS=-L$ODBC_LIBDIR
84709: ODBC_INCLUDE=-I$ODBC_INCDIR
84710: ODBC_LIBS=-lodbcsdk
84711: ODBC_TYPE=ODBCRouter
84712:
1.1.1.3 ! misho 84713: cat >>confdefs.h <<\_ACEOF
! 84714: #define HAVE_ODBC_ROUTER 1
! 84715: _ACEOF
1.1 misho 84716:
1.1.1.3 ! misho 84717: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84718: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84719: fi
84720: fi
84721:
84722: if test -z "$ODBC_TYPE"; then
84723:
84724: php_with_empress=no
84725:
84726:
84727:
84728: # Check whether --with-empress was given.
1.1.1.3 ! misho 84729: if test "${with_empress+set}" = set; then
1.1 misho 84730: withval=$with_empress; PHP_EMPRESS=$withval
84731: else
84732:
84733: PHP_EMPRESS=no
84734: test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL
84735:
84736: fi
84737:
84738:
84739:
84740: ext_output="yes, shared"
84741: ext_shared=yes
84742: case $PHP_EMPRESS in
84743: shared,*)
84744: PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'`
84745: ;;
84746: shared)
84747: PHP_EMPRESS=yes
84748: ;;
84749: no)
84750: ext_output=no
84751: ext_shared=no
84752: ;;
84753: *)
84754: ext_output=yes
84755: ext_shared=no
84756: ;;
84757: esac
84758:
84759:
84760:
84761:
84762:
84763:
84764:
84765:
84766: if test "$PHP_EMPRESS" != "no"; then
1.1.1.3 ! misho 84767: { echo "$as_me:$LINENO: checking for Empress support" >&5
! 84768: echo $ECHO_N "checking for Empress support... $ECHO_C" >&6; }
1.1 misho 84769: if test "$PHP_EMPRESS" = "yes"; then
84770: ODBC_INCDIR=$EMPRESSPATH/include/odbc
84771: ODBC_LIBDIR=$EMPRESSPATH/shlib
84772: else
84773: ODBC_INCDIR=$PHP_EMPRESS/include/odbc
84774: ODBC_LIBDIR=$PHP_EMPRESS/shlib
84775: fi
84776: ODBC_INCLUDE=-I$ODBC_INCDIR
84777: ODBC_LFLAGS=-L$ODBC_LIBDIR
84778: ODBC_TYPE=empress
84779:
1.1.1.3 ! misho 84780: cat >>confdefs.h <<\_ACEOF
! 84781: #define HAVE_EMPRESS 1
! 84782: _ACEOF
1.1 misho 84783:
1.1.1.3 ! misho 84784: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84785: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84786:
1.1.1.3 ! misho 84787: { echo "$as_me:$LINENO: checking Empress library file" >&5
! 84788: echo $ECHO_N "checking Empress library file... $ECHO_C" >&6; }
1.1 misho 84789: ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
84790: if test ! -f $ODBC_LIBS; then
84791: ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
84792: fi
1.1.1.3 ! misho 84793: { echo "$as_me:$LINENO: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
! 84794: echo "${ECHO_T}\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
1.1 misho 84795:
84796: fi
84797: fi
84798:
84799: if test -z "$ODBC_TYPE"; then
84800:
84801: php_with_empress_bcs=no
84802:
84803:
84804:
84805: # Check whether --with-empress-bcs was given.
1.1.1.3 ! misho 84806: if test "${with_empress_bcs+set}" = set; then
1.1 misho 84807: withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval
84808: else
84809:
84810: PHP_EMPRESS_BCS=no
84811: test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL
84812:
84813: fi
84814:
84815:
84816:
84817: ext_output="yes, shared"
84818: ext_shared=yes
84819: case $PHP_EMPRESS_BCS in
84820: shared,*)
84821: PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'`
84822: ;;
84823: shared)
84824: PHP_EMPRESS_BCS=yes
84825: ;;
84826: no)
84827: ext_output=no
84828: ext_shared=no
84829: ;;
84830: *)
84831: ext_output=yes
84832: ext_shared=no
84833: ;;
84834: esac
84835:
84836:
84837:
84838:
84839:
84840:
84841:
84842:
84843: if test "$PHP_EMPRESS_BCS" != "no"; then
1.1.1.3 ! misho 84844: { echo "$as_me:$LINENO: checking for Empress local access support" >&5
! 84845: echo $ECHO_N "checking for Empress local access support... $ECHO_C" >&6; }
1.1 misho 84846: if test "$PHP_EMPRESS_BCS" = "yes"; then
84847: ODBC_INCDIR=$EMPRESSPATH/include/odbc
84848: ODBC_LIBDIR=$EMPRESSPATH/shlib
84849: else
84850: ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc
84851: ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib
84852: fi
84853: CC="empocc -bcs";export CC;
84854: LD="empocc -bcs";export LD;
84855: ODBC_INCLUDE=-I$ODBC_INCDIR
84856: ODBC_LFLAGS=-L$ODBC_LIBDIR
84857: LIST=`empocc -listlines -bcs -o a a.c`
84858:
84859: NEWLIST=
84860: for I in $LIST
84861: do
84862: case $I in
84863: $EMPRESSPATH/odbccl/lib/* | \
84864: $EMPRESSPATH/rdbms/lib/* | \
84865: $EMPRESSPATH/common/lib/*)
84866: NEWLIST="$NEWLIST $I"
84867: ;;
84868: esac
84869: done
84870: ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt"
84871: ODBC_TYPE=empress-bcs
84872:
1.1.1.3 ! misho 84873: cat >>confdefs.h <<\_ACEOF
! 84874: #define HAVE_EMPRESS 1
! 84875: _ACEOF
1.1 misho 84876:
1.1.1.3 ! misho 84877: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 84878: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 84879:
1.1.1.3 ! misho 84880: { echo "$as_me:$LINENO: checking Empress local access library file" >&5
! 84881: echo $ECHO_N "checking Empress local access library file... $ECHO_C" >&6; }
1.1 misho 84882: ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
84883: if test ! -f $ODBCBCS_LIBS; then
84884: ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
84885: fi
1.1.1.3 ! misho 84886: { echo "$as_me:$LINENO: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5
! 84887: echo "${ECHO_T}\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; }
1.1 misho 84888:
84889: fi
84890: fi
84891:
84892: if test -z "$ODBC_TYPE"; then
84893:
84894: php_with_birdstep=no
84895:
84896:
84897:
84898: # Check whether --with-birdstep was given.
1.1.1.3 ! misho 84899: if test "${with_birdstep+set}" = set; then
1.1 misho 84900: withval=$with_birdstep; PHP_BIRDSTEP=$withval
84901: else
84902:
84903: PHP_BIRDSTEP=no
84904: test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL
84905:
84906: fi
84907:
84908:
84909:
84910: ext_output="yes, shared"
84911: ext_shared=yes
84912: case $PHP_BIRDSTEP in
84913: shared,*)
84914: PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'`
84915: ;;
84916: shared)
84917: PHP_BIRDSTEP=yes
84918: ;;
84919: no)
84920: ext_output=no
84921: ext_shared=no
84922: ;;
84923: *)
84924: ext_output=yes
84925: ext_shared=no
84926: ;;
84927: esac
84928:
84929:
84930:
84931:
84932:
84933:
84934:
84935:
84936: if test "$PHP_BIRDSTEP" != "no"; then
1.1.1.3 ! misho 84937: { echo "$as_me:$LINENO: checking for Birdstep support" >&5
! 84938: echo $ECHO_N "checking for Birdstep support... $ECHO_C" >&6; }
1.1 misho 84939: if test "$PHP_BIRDSTEP" = "yes"; then
84940: ODBC_INCDIR=/usr/local/birdstep/include
84941: ODBC_LIBDIR=/usr/local/birdstep/lib
84942: else
84943: ODBC_INCDIR=$PHP_BIRDSTEP/include
84944: ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR
84945: fi
84946:
84947: case $host_alias in
84948: *aix*)
84949:
1.1.1.3 ! misho 84950: cat >>confdefs.h <<\_ACEOF
! 84951: #define AIX 1
! 84952: _ACEOF
1.1 misho 84953: ;;
84954: *hpux*)
84955:
1.1.1.3 ! misho 84956: cat >>confdefs.h <<\_ACEOF
! 84957: #define HPUX 1
! 84958: _ACEOF
1.1 misho 84959: ;;
84960: *linux*)
84961:
1.1.1.3 ! misho 84962: cat >>confdefs.h <<\_ACEOF
! 84963: #define LINUX 1
! 84964: _ACEOF
1.1 misho 84965: ;;
84966: *qnx*)
84967:
1.1.1.3 ! misho 84968: cat >>confdefs.h <<\_ACEOF
! 84969: #define NEUTRINO 1
! 84970: _ACEOF
1.1 misho 84971: ;;
84972: i?86-*-solaris*)
84973:
1.1.1.3 ! misho 84974: cat >>confdefs.h <<\_ACEOF
! 84975: #define ISOLARIS 1
! 84976: _ACEOF
1.1 misho 84977: ;;
84978: sparc-*-solaris*)
84979:
1.1.1.3 ! misho 84980: cat >>confdefs.h <<\_ACEOF
! 84981: #define SOLARIS 1
! 84982: _ACEOF
1.1 misho 84983: ;;
84984: *unixware*)
84985:
1.1.1.3 ! misho 84986: cat >>confdefs.h <<\_ACEOF
! 84987: #define UNIXWARE 1
! 84988: _ACEOF
1.1 misho 84989: ;;
84990: esac
84991:
84992: ODBC_INCLUDE=-I$ODBC_INCDIR
84993: ODBC_TYPE=birdstep
84994: ODBC_LFLAGS=-L$ODBC_LIBDIR
84995: ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil"
84996:
84997: if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then
84998: ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil"
84999: elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then
85000: ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil"
85001: fi
85002:
85003:
1.1.1.3 ! misho 85004: cat >>confdefs.h <<\_ACEOF
! 85005: #define HAVE_BIRDSTEP 1
! 85006: _ACEOF
1.1 misho 85007:
1.1.1.3 ! misho 85008: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 85009: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 85010: fi
85011: fi
85012:
85013: if test -z "$ODBC_TYPE"; then
85014:
85015: php_with_custom_odbc=no
85016:
85017:
85018:
85019: # Check whether --with-custom-odbc was given.
1.1.1.3 ! misho 85020: if test "${with_custom_odbc+set}" = set; then
1.1 misho 85021: withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval
85022: else
85023:
85024: PHP_CUSTOM_ODBC=no
85025: test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL
85026:
85027: fi
85028:
85029:
85030:
85031: ext_output="yes, shared"
85032: ext_shared=yes
85033: case $PHP_CUSTOM_ODBC in
85034: shared,*)
85035: PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'`
85036: ;;
85037: shared)
85038: PHP_CUSTOM_ODBC=yes
85039: ;;
85040: no)
85041: ext_output=no
85042: ext_shared=no
85043: ;;
85044: *)
85045: ext_output=yes
85046: ext_shared=no
85047: ;;
85048: esac
85049:
85050:
85051:
85052:
85053:
85054:
85055:
85056:
85057: if test "$PHP_CUSTOM_ODBC" != "no"; then
1.1.1.3 ! misho 85058: { echo "$as_me:$LINENO: checking for a custom ODBC support" >&5
! 85059: echo $ECHO_N "checking for a custom ODBC support... $ECHO_C" >&6; }
1.1 misho 85060: if test "$PHP_CUSTOM_ODBC" = "yes"; then
85061: PHP_CUSTOM_ODBC=/usr/local
85062: fi
85063: ODBC_INCDIR=$PHP_CUSTOM_ODBC/include
85064: ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR
85065: ODBC_LFLAGS=-L$ODBC_LIBDIR
85066: ODBC_INCLUDE=-I$ODBC_INCDIR
85067: ODBC_LIBS=$CUSTOM_ODBC_LIBS
85068: ODBC_TYPE=custom-odbc
85069:
1.1.1.3 ! misho 85070: cat >>confdefs.h <<\_ACEOF
! 85071: #define HAVE_CODBC 1
! 85072: _ACEOF
1.1 misho 85073:
1.1.1.3 ! misho 85074: { echo "$as_me:$LINENO: result: $ext_ouput" >&5
! 85075: echo "${ECHO_T}$ext_ouput" >&6; }
1.1 misho 85076: fi
85077: fi
85078:
85079: if test -z "$ODBC_TYPE"; then
85080:
85081: php_with_iodbc=no
85082:
85083:
85084:
85085: # Check whether --with-iodbc was given.
1.1.1.3 ! misho 85086: if test "${with_iodbc+set}" = set; then
1.1 misho 85087: withval=$with_iodbc; PHP_IODBC=$withval
85088: else
85089:
85090: PHP_IODBC=no
85091: test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL
85092:
85093: fi
85094:
85095:
85096:
85097: ext_output="yes, shared"
85098: ext_shared=yes
85099: case $PHP_IODBC in
85100: shared,*)
85101: PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'`
85102: ;;
85103: shared)
85104: PHP_IODBC=yes
85105: ;;
85106: no)
85107: ext_output=no
85108: ext_shared=no
85109: ;;
85110: *)
85111: ext_output=yes
85112: ext_shared=no
85113: ;;
85114: esac
85115:
85116:
85117:
85118:
85119:
85120:
85121:
85122:
85123: if test "$PHP_IODBC" != "no"; then
1.1.1.3 ! misho 85124: { echo "$as_me:$LINENO: checking for iODBC support" >&5
! 85125: echo $ECHO_N "checking for iODBC support... $ECHO_C" >&6; }
1.1 misho 85126: if test "$PHP_IODBC" = "yes"; then
85127: PHP_IODBC=/usr/local
85128: fi
85129:
85130:
85131: if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
85132:
85133: if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
85134:
85135: if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
85136: ai_p=$PHP_IODBC/$PHP_LIBDIR
85137: else
85138:
85139: ep_dir="`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85140:
85141: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85142: ai_p="$ep_realdir/`basename \"$PHP_IODBC/$PHP_LIBDIR\"`"
85143: fi
85144:
85145:
85146:
85147:
85148:
85149: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85150:
85151: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85152: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85153: eval "LIBPATH$unique=set"
85154:
85155: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85156: LDFLAGS="$LDFLAGS -L$ai_p"
85157: PHP_RPATHS="$PHP_RPATHS $ai_p"
85158:
85159: fi
85160:
85161:
85162:
85163: fi
85164:
85165: fi
85166:
85167:
85168: case iodbc in
85169: c|c_r|pthread*) ;;
85170: *)
85171: LIBS="-liodbc $LIBS"
85172: ;;
85173: esac
85174:
85175:
85176:
85177:
85178:
85179: if test "$PHP_IODBC/include" != "/usr/include"; then
85180:
85181: if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then
85182: ai_p=$PHP_IODBC/include
85183: else
85184:
85185: ep_dir="`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'`"
85186:
85187: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85188: ai_p="$ep_realdir/`basename \"$PHP_IODBC/include\"`"
85189: fi
85190:
85191:
85192:
85193: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85194:
85195: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
85196: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85197: eval "INCLUDEPATH$unique=set"
85198:
85199: if test "1"; then
85200: INCLUDES="-I$ai_p $INCLUDES"
85201: else
85202: INCLUDES="$INCLUDES -I$ai_p"
85203: fi
85204:
85205: fi
85206:
85207: fi
85208:
85209: ODBC_TYPE=iodbc
85210: ODBC_INCLUDE=-I$PHP_IODBC/include
85211: ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR
85212: ODBC_LIBS=-liodbc
85213:
1.1.1.3 ! misho 85214: cat >>confdefs.h <<\_ACEOF
! 85215: #define HAVE_IODBC 1
! 85216: _ACEOF
1.1 misho 85217:
85218:
1.1.1.3 ! misho 85219: cat >>confdefs.h <<\_ACEOF
! 85220: #define HAVE_ODBC2 1
! 85221: _ACEOF
1.1 misho 85222:
1.1.1.3 ! misho 85223: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 85224: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 85225: fi
85226: fi
85227:
85228: if test -z "$ODBC_TYPE"; then
85229:
85230: php_with_esoob=no
85231:
85232:
85233:
85234: # Check whether --with-esoob was given.
1.1.1.3 ! misho 85235: if test "${with_esoob+set}" = set; then
1.1 misho 85236: withval=$with_esoob; PHP_ESOOB=$withval
85237: else
85238:
85239: PHP_ESOOB=no
85240: test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL
85241:
85242: fi
85243:
85244:
85245:
85246: ext_output="yes, shared"
85247: ext_shared=yes
85248: case $PHP_ESOOB in
85249: shared,*)
85250: PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'`
85251: ;;
85252: shared)
85253: PHP_ESOOB=yes
85254: ;;
85255: no)
85256: ext_output=no
85257: ext_shared=no
85258: ;;
85259: *)
85260: ext_output=yes
85261: ext_shared=no
85262: ;;
85263: esac
85264:
85265:
85266:
85267:
85268:
85269:
85270:
85271:
85272: if test "$PHP_ESOOB" != "no"; then
1.1.1.3 ! misho 85273: { echo "$as_me:$LINENO: checking for Easysoft ODBC-ODBC Bridge support" >&5
! 85274: echo $ECHO_N "checking for Easysoft ODBC-ODBC Bridge support... $ECHO_C" >&6; }
1.1 misho 85275: if test "$PHP_ESOOB" = "yes"; then
85276: PHP_ESOOB=/usr/local/easysoft/oob/client
85277: fi
85278: ODBC_INCDIR=$PHP_ESOOB/include
85279: ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR
85280: ODBC_LFLAGS=-L$ODBC_LIBDIR
85281: ODBC_INCLUDE=-I$ODBC_INCDIR
85282: ODBC_LIBS=-lesoobclient
85283: ODBC_TYPE=esoob
85284:
1.1.1.3 ! misho 85285: cat >>confdefs.h <<\_ACEOF
! 85286: #define HAVE_ESOOB 1
! 85287: _ACEOF
1.1 misho 85288:
1.1.1.3 ! misho 85289: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 85290: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 85291: fi
85292: fi
85293:
85294: if test -z "$ODBC_TYPE"; then
85295:
85296: php_with_unixodbc=no
85297:
85298:
85299:
85300: # Check whether --with-unixODBC was given.
1.1.1.3 ! misho 85301: if test "${with_unixODBC+set}" = set; then
1.1 misho 85302: withval=$with_unixODBC; PHP_UNIXODBC=$withval
85303: else
85304:
85305: PHP_UNIXODBC=no
85306: test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL
85307:
85308: fi
85309:
85310:
85311:
85312: ext_output="yes, shared"
85313: ext_shared=yes
85314: case $PHP_UNIXODBC in
85315: shared,*)
85316: PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'`
85317: ;;
85318: shared)
85319: PHP_UNIXODBC=yes
85320: ;;
85321: no)
85322: ext_output=no
85323: ext_shared=no
85324: ;;
85325: *)
85326: ext_output=yes
85327: ext_shared=no
85328: ;;
85329: esac
85330:
85331:
85332:
85333:
85334:
85335:
85336:
85337:
85338: if test "$PHP_UNIXODBC" != "no"; then
1.1.1.3 ! misho 85339: { echo "$as_me:$LINENO: checking for unixODBC support" >&5
! 85340: echo $ECHO_N "checking for unixODBC support... $ECHO_C" >&6; }
1.1 misho 85341: if test "$PHP_UNIXODBC" = "yes"; then
85342: PHP_UNIXODBC=/usr/local
85343: fi
85344: ODBC_INCDIR=$PHP_UNIXODBC/include
85345: ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR
85346: ODBC_LFLAGS=-L$ODBC_LIBDIR
85347: ODBC_INCLUDE=-I$ODBC_INCDIR
85348: ODBC_LIBS=-lodbc
85349: ODBC_TYPE=unixODBC
85350:
85351: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
1.1.1.3 ! misho 85352: { { echo "$as_me:$LINENO: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&5
! 85353: echo "$as_me: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&2;}
! 85354: { (exit 1); exit 1; }; }
1.1 misho 85355: fi
85356:
85357:
1.1.1.3 ! misho 85358: cat >>confdefs.h <<\_ACEOF
! 85359: #define HAVE_UNIXODBC 1
! 85360: _ACEOF
1.1 misho 85361:
1.1.1.3 ! misho 85362: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 85363: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 85364: fi
85365: fi
85366:
85367: if test -z "$ODBC_TYPE"; then
85368:
85369: php_with_dbmaker=no
85370:
85371:
85372:
85373: # Check whether --with-dbmaker was given.
1.1.1.3 ! misho 85374: if test "${with_dbmaker+set}" = set; then
1.1 misho 85375: withval=$with_dbmaker; PHP_DBMAKER=$withval
85376: else
85377:
85378: PHP_DBMAKER=no
85379: test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL
85380:
85381: fi
85382:
85383:
85384:
85385: ext_output="yes, shared"
85386: ext_shared=yes
85387: case $PHP_DBMAKER in
85388: shared,*)
85389: PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'`
85390: ;;
85391: shared)
85392: PHP_DBMAKER=yes
85393: ;;
85394: no)
85395: ext_output=no
85396: ext_shared=no
85397: ;;
85398: *)
85399: ext_output=yes
85400: ext_shared=no
85401: ;;
85402: esac
85403:
85404:
85405:
85406:
85407:
85408:
85409:
85410:
85411: if test "$PHP_DBMAKER" != "no"; then
1.1.1.3 ! misho 85412: { echo "$as_me:$LINENO: checking for DBMaker support" >&5
! 85413: echo $ECHO_N "checking for DBMaker support... $ECHO_C" >&6; }
1.1 misho 85414: if test "$PHP_DBMAKER" = "yes"; then
85415: # find dbmaker's home directory
85416: DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'`
85417:
85418: # check DBMaker version (from 5.0 to 2.0)
85419: DBMAKER_VERSION=5.0
85420:
85421: while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do
85422: DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'`
85423: MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'`
85424: MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'`
85425: DBMAKER_VERSION=$MAJOR_V.$MINOR_V
85426: done
85427:
85428: if test "$DBMAKER_VERSION" = "2.9"; then
85429: PHP_DBMAKER=$DBMAKER_HOME
85430: else
85431: PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION
85432: fi
85433: fi
85434:
85435: ODBC_INCDIR=$PHP_DBMAKER/include
85436: ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR
85437: ODBC_INCLUDE=-I$ODBC_INCDIR
85438: ODBC_LFLAGS=-L$ODBC_LIBDIR
85439: ODBC_INCLUDE=-I$ODBC_INCDIR
85440: ODBC_LIBS="-ldmapic -lc"
85441: ODBC_TYPE=dbmaker
85442:
85443:
1.1.1.3 ! misho 85444: cat >>confdefs.h <<\_ACEOF
! 85445: #define HAVE_DBMAKER 1
! 85446: _ACEOF
1.1 misho 85447:
85448:
85449: if test "$ext_shared" = "yes"; then
1.1.1.3 ! misho 85450: { echo "$as_me:$LINENO: result: yes (shared)" >&5
! 85451: echo "${ECHO_T}yes (shared)" >&6; }
1.1 misho 85452: ODBC_LIBS="-ldmapic -lc -lm"
85453: ODBC_SHARED="odbc.la"
85454: else
1.1.1.3 ! misho 85455: { echo "$as_me:$LINENO: result: yes (static)" >&5
! 85456: echo "${ECHO_T}yes (static)" >&6; }
1.1 misho 85457:
85458:
85459: if test -n "$ODBC_LIBDIR"; then
85460:
85461: if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then
85462:
85463: if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then
85464: ai_p=$ODBC_LIBDIR
85465: else
85466:
85467: ep_dir="`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85468:
85469: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85470: ai_p="$ep_realdir/`basename \"$ODBC_LIBDIR\"`"
85471: fi
85472:
85473:
85474:
85475:
85476:
85477: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85478:
85479: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85480: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85481: eval "LIBPATH$unique=set"
85482:
85483: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85484: LDFLAGS="$LDFLAGS -L$ai_p"
85485: PHP_RPATHS="$PHP_RPATHS $ai_p"
85486:
85487: fi
85488:
85489:
85490:
85491: fi
85492:
85493: fi
85494:
85495:
85496: case dmapic in
85497: c|c_r|pthread*) ;;
85498: *)
85499: LIBS="-ldmapic $LIBS"
85500: ;;
85501: esac
85502:
85503:
85504:
85505:
85506:
85507: if test "$ODBC_INCDIR" != "/usr/include"; then
85508:
85509: if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then
85510: ai_p=$ODBC_INCDIR
85511: else
85512:
85513: ep_dir="`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85514:
85515: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85516: ai_p="$ep_realdir/`basename \"$ODBC_INCDIR\"`"
85517: fi
85518:
85519:
85520:
85521: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85522:
85523: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
85524: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85525: eval "INCLUDEPATH$unique=set"
85526:
85527: if test ""; then
85528: INCLUDES="-I$ai_p $INCLUDES"
85529: else
85530: INCLUDES="$INCLUDES -I$ai_p"
85531: fi
85532:
85533: fi
85534:
85535: fi
85536:
85537: ODBC_STATIC="libphpext_odbc.la"
85538: fi
85539: fi
85540: fi
85541:
85542: if test -n "$ODBC_TYPE"; then
85543: if test "$ODBC_TYPE" != "dbmaker"; then
85544:
85545: for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do
85546: case $ac_i in
85547: -pthread)
85548: if test "$ext_shared" = "yes"; then
85549: ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread"
85550: else
85551:
85552:
85553: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
85554:
85555: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
85556: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85557: eval "EXTRA_LDFLAGS$unique=set"
85558: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
85559: fi
85560:
85561: fi
85562: ;;
85563: -l*)
85564: ac_ii=`echo $ac_i|cut -c 3-`
85565:
85566:
85567: case $ac_ii in
85568: c|c_r|pthread*) ;;
85569: *)
85570: if test "$ext_shared" = "yes"; then
85571: ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii"
85572: else
85573:
85574:
85575: case $ac_ii in
85576: c|c_r|pthread*) ;;
85577: *)
85578: LIBS="$LIBS -l$ac_ii"
85579: ;;
85580: esac
85581:
85582:
85583: fi
85584: ;;
85585: esac
85586:
85587:
85588: ;;
85589: -L*)
85590: ac_ii=`echo $ac_i|cut -c 3-`
85591:
85592: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
85593:
85594: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
85595: ai_p=$ac_ii
85596: else
85597:
85598: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
85599:
85600: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85601: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
85602: fi
85603:
85604:
85605: if test "$ext_shared" = "yes"; then
85606: ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD"
85607: test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD"
85608: else
85609:
85610:
85611:
85612: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85613:
85614: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85615: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85616: eval "LIBPATH$unique=set"
85617:
85618: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85619: LDFLAGS="$LDFLAGS -L$ai_p"
85620: PHP_RPATHS="$PHP_RPATHS $ai_p"
85621:
85622: fi
85623:
85624:
85625: fi
85626:
85627: fi
85628:
85629: ;;
85630: esac
85631: done
85632:
85633: if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then
85634:
1.1.1.3 ! misho 85635: cat >>confdefs.h <<\_ACEOF
! 85636: #define HAVE_SQLDATASOURCES 1
! 85637: _ACEOF
1.1 misho 85638:
85639: fi
85640: fi
85641:
85642:
1.1.1.3 ! misho 85643: cat >>confdefs.h <<\_ACEOF
! 85644: #define HAVE_UODBC 1
! 85645: _ACEOF
1.1 misho 85646:
85647:
85648: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD"
85649:
85650:
85651: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR"
85652:
85653:
85654: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR"
85655:
85656:
85657:
85658: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE"
85659:
85660:
85661:
85662:
85663:
85664: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS"
85665:
85666:
85667:
85668:
85669:
85670: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS"
85671:
85672:
85673:
85674:
85675:
85676: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE"
85677:
85678:
85679:
85680:
85681:
85682: ext_builddir=ext/odbc
85683: ext_srcdir=$abs_srcdir/ext/odbc
85684:
85685: ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
85686:
85687: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
85688: PHP_ODBC_SHARED=no
85689:
85690:
85691: case ext/odbc in
85692: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85693: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85694: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85695: esac
85696:
85697:
85698:
85699: b_c_pre=$php_c_pre
85700: b_cxx_pre=$php_cxx_pre
85701: b_c_meta=$php_c_meta
85702: b_cxx_meta=$php_cxx_meta
85703: b_c_post=$php_c_post
85704: b_cxx_post=$php_cxx_post
85705: b_lo=$php_lo
85706:
85707:
85708: old_IFS=$IFS
85709: for ac_src in php_odbc.c; do
85710:
85711: IFS=.
85712: set $ac_src
85713: ac_obj=$1
85714: IFS=$old_IFS
85715:
85716: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85717:
85718: case $ac_src in
85719: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85720: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85721: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85722: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85723: esac
85724:
85725: cat >>Makefile.objects<<EOF
85726: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85727: $ac_comp
85728: EOF
85729: done
85730:
85731:
85732: EXT_STATIC="$EXT_STATIC odbc"
85733: if test "$ext_shared" != "nocli"; then
85734: EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
85735: fi
85736: else
85737: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
85738: PHP_ODBC_SHARED=yes
85739:
85740: case ext/odbc in
85741: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85742: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85743: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85744: esac
85745:
85746:
85747:
85748: b_c_pre=$shared_c_pre
85749: b_cxx_pre=$shared_cxx_pre
85750: b_c_meta=$shared_c_meta
85751: b_cxx_meta=$shared_cxx_meta
85752: b_c_post=$shared_c_post
85753: b_cxx_post=$shared_cxx_post
85754: b_lo=$shared_lo
85755:
85756:
85757: old_IFS=$IFS
85758: for ac_src in php_odbc.c; do
85759:
85760: IFS=.
85761: set $ac_src
85762: ac_obj=$1
85763: IFS=$old_IFS
85764:
85765: shared_objects_odbc="$shared_objects_odbc $ac_bdir$ac_obj.lo"
85766:
85767: case $ac_src in
85768: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85769: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85770: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85771: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85772: esac
85773:
85774: cat >>Makefile.objects<<EOF
85775: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85776: $ac_comp
85777: EOF
85778: done
85779:
85780: case $host_alias in
85781: *netware*)
85782:
85783: install_modules="install-modules"
85784:
85785: case $host_alias in
85786: *aix*)
85787: suffix=so
85788: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpodbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(PHPODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpodbc.so '$ext_builddir'/phpodbc.so'
85789: ;;
85790: *netware*)
85791: suffix=nlm
85792: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) -L$(top_builddir)/netware -lphp5lib $(ODBC_SHARED_LIBADD)'
85793: ;;
85794: *)
85795: suffix=la
85796: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(PHPODBC_SHARED_LIBADD)'
85797: ;;
85798: esac
85799:
85800: if test "x" = "xyes"; then
85801: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpodbc.$suffix"
85802: else
85803: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpodbc.$suffix"
85804: fi
85805:
85806: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
85807:
85808: cat >>Makefile.objects<<EOF
85809: \$(phplibdir)/phpodbc.$suffix: $ext_builddir/phpodbc.$suffix
85810: \$(LIBTOOL) --mode=install cp $ext_builddir/phpodbc.$suffix \$(phplibdir)
85811:
85812: $ext_builddir/phpodbc.$suffix: \$(shared_objects_odbc) \$(PHPODBC_SHARED_DEPENDENCIES)
85813: $link_cmd
85814:
85815: EOF
85816:
85817: ;;
85818: *)
85819:
85820: install_modules="install-modules"
85821:
85822: case $host_alias in
85823: *aix*)
85824: suffix=so
85825: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/odbc.so '$ext_builddir'/odbc.so'
85826: ;;
85827: *netware*)
85828: suffix=nlm
85829: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) -L$(top_builddir)/netware -lphp5lib $(C_SHARED_LIBADD)'
85830: ;;
85831: *)
85832: suffix=la
85833: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(ODBC_SHARED_LIBADD)'
85834: ;;
85835: esac
85836:
85837: if test "x" = "xyes"; then
85838: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/odbc.$suffix"
85839: else
85840: PHP_MODULES="$PHP_MODULES \$(phplibdir)/odbc.$suffix"
85841: fi
85842:
85843: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
85844:
85845: cat >>Makefile.objects<<EOF
85846: \$(phplibdir)/odbc.$suffix: $ext_builddir/odbc.$suffix
85847: \$(LIBTOOL) --mode=install cp $ext_builddir/odbc.$suffix \$(phplibdir)
85848:
85849: $ext_builddir/odbc.$suffix: \$(shared_objects_odbc) \$(ODBC_SHARED_DEPENDENCIES)
85850: $link_cmd
85851:
85852: EOF
85853:
85854: ;;
85855: esac
85856:
85857: cat >>confdefs.h <<_ACEOF
85858: #define COMPILE_DL_ODBC 1
85859: _ACEOF
85860:
85861: fi
85862: fi
85863:
85864: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
85865: PHP_ODBC_SHARED=no
1.1.1.3 ! misho 85866: case "$PHP_SAPI" in
! 85867: cgi|embed)
1.1 misho 85868:
85869:
85870: case ext/odbc in
85871: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85872: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85873: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85874: esac
85875:
85876:
85877:
85878: b_c_pre=$php_c_pre
85879: b_cxx_pre=$php_cxx_pre
85880: b_c_meta=$php_c_meta
85881: b_cxx_meta=$php_cxx_meta
85882: b_c_post=$php_c_post
85883: b_cxx_post=$php_cxx_post
85884: b_lo=$php_lo
85885:
85886:
85887: old_IFS=$IFS
85888: for ac_src in php_odbc.c; do
85889:
85890: IFS=.
85891: set $ac_src
85892: ac_obj=$1
85893: IFS=$old_IFS
85894:
1.1.1.2 misho 85895: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 85896:
85897: case $ac_src in
85898: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85899: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85900: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85901: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85902: esac
85903:
85904: cat >>Makefile.objects<<EOF
85905: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85906: $ac_comp
85907: EOF
85908: done
85909:
85910:
1.1.1.3 ! misho 85911: EXT_STATIC="$EXT_STATIC odbc"
! 85912: ;;
! 85913: *)
1.1 misho 85914:
85915:
85916: case ext/odbc in
85917: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85918: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85919: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85920: esac
85921:
85922:
85923:
85924: b_c_pre=$php_c_pre
85925: b_cxx_pre=$php_cxx_pre
85926: b_c_meta=$php_c_meta
85927: b_cxx_meta=$php_cxx_meta
85928: b_c_post=$php_c_post
85929: b_cxx_post=$php_cxx_post
85930: b_lo=$php_lo
85931:
85932:
85933: old_IFS=$IFS
85934: for ac_src in php_odbc.c; do
85935:
85936: IFS=.
85937: set $ac_src
85938: ac_obj=$1
85939: IFS=$old_IFS
85940:
1.1.1.2 misho 85941: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 85942:
85943: case $ac_src in
85944: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85945: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85946: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85947: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85948: esac
85949:
85950: cat >>Makefile.objects<<EOF
85951: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85952: $ac_comp
85953: EOF
85954: done
85955:
85956:
1.1.1.3 ! misho 85957: ;;
! 85958: esac
1.1 misho 85959: EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
85960: fi
85961:
85962:
85963: BUILD_DIR="$BUILD_DIR $ext_builddir"
85964:
85965:
85966:
85967: if test "$ext_builddir" = "."; then
85968: PHP_PECL_EXTENSION=odbc
85969:
85970: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
85971:
85972: fi
85973:
85974: fi
85975:
85976:
85977:
85978: php_enable_pcntl=no
85979:
1.1.1.3 ! misho 85980: { echo "$as_me:$LINENO: checking whether to enable pcntl support" >&5
! 85981: echo $ECHO_N "checking whether to enable pcntl support... $ECHO_C" >&6; }
1.1 misho 85982: # Check whether --enable-pcntl was given.
1.1.1.3 ! misho 85983: if test "${enable_pcntl+set}" = set; then
1.1 misho 85984: enableval=$enable_pcntl; PHP_PCNTL=$enableval
85985: else
85986:
85987: PHP_PCNTL=no
85988: test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL
85989:
85990: fi
85991:
85992:
85993:
85994: ext_output="yes, shared"
85995: ext_shared=yes
85996: case $PHP_PCNTL in
85997: shared,*)
85998: PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'`
85999: ;;
86000: shared)
86001: PHP_PCNTL=yes
86002: ;;
86003: no)
86004: ext_output=no
86005: ext_shared=no
86006: ;;
86007: *)
86008: ext_output=yes
86009: ext_shared=no
86010: ;;
86011: esac
86012:
86013:
86014:
1.1.1.3 ! misho 86015: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 86016: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 86017:
86018:
86019:
86020:
86021: if test "$PHP_PCNTL" != "no"; then
1.1.1.3 ! misho 86022:
! 86023: for ac_func in fork
! 86024: do
! 86025: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 86026: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 86027: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 86028: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 86029: echo $ECHO_N "(cached) $ECHO_C" >&6
! 86030: else
! 86031: cat >conftest.$ac_ext <<_ACEOF
! 86032: /* confdefs.h. */
! 86033: _ACEOF
! 86034: cat confdefs.h >>conftest.$ac_ext
! 86035: cat >>conftest.$ac_ext <<_ACEOF
! 86036: /* end confdefs.h. */
! 86037: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 86038: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 86039: #define $ac_func innocuous_$ac_func
! 86040:
! 86041: /* System header to define __stub macros and hopefully few prototypes,
! 86042: which can conflict with char $ac_func (); below.
! 86043: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 86044: <limits.h> exists even on freestanding compilers. */
! 86045:
! 86046: #ifdef __STDC__
! 86047: # include <limits.h>
! 86048: #else
! 86049: # include <assert.h>
! 86050: #endif
! 86051:
! 86052: #undef $ac_func
! 86053:
! 86054: /* Override any GCC internal prototype to avoid an error.
! 86055: Use char because int might match the return type of a GCC
! 86056: builtin and then its argument prototype would still apply. */
! 86057: #ifdef __cplusplus
! 86058: extern "C"
! 86059: #endif
! 86060: char $ac_func ();
! 86061: /* The GNU C library defines this for functions which it implements
! 86062: to always fail with ENOSYS. Some functions are actually named
! 86063: something starting with __ and the normal name is an alias. */
! 86064: #if defined __stub_$ac_func || defined __stub___$ac_func
! 86065: choke me
! 86066: #endif
! 86067:
! 86068: int
! 86069: main ()
! 86070: {
! 86071: return $ac_func ();
! 86072: ;
! 86073: return 0;
! 86074: }
! 86075: _ACEOF
! 86076: rm -f conftest.$ac_objext conftest$ac_exeext
! 86077: if { (ac_try="$ac_link"
! 86078: case "(($ac_try" in
! 86079: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 86080: *) ac_try_echo=$ac_try;;
! 86081: esac
! 86082: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 86083: (eval "$ac_link") 2>conftest.er1
! 86084: ac_status=$?
! 86085: grep -v '^ *+' conftest.er1 >conftest.err
! 86086: rm -f conftest.er1
! 86087: cat conftest.err >&5
! 86088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 86089: (exit $ac_status); } && {
! 86090: test -z "$ac_c_werror_flag" ||
! 86091: test ! -s conftest.err
! 86092: } && test -s conftest$ac_exeext &&
! 86093: $as_test_x conftest$ac_exeext; then
! 86094: eval "$as_ac_var=yes"
! 86095: else
! 86096: echo "$as_me: failed program was:" >&5
! 86097: sed 's/^/| /' conftest.$ac_ext >&5
! 86098:
! 86099: eval "$as_ac_var=no"
! 86100: fi
! 86101:
! 86102: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 86103: conftest$ac_exeext conftest.$ac_ext
! 86104: fi
! 86105: ac_res=`eval echo '${'$as_ac_var'}'`
! 86106: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 86107: echo "${ECHO_T}$ac_res" >&6; }
! 86108: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 86109: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 86110: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 86111: _ACEOF
86112:
1.1.1.3 ! misho 86113: cat >>confdefs.h <<\_ACEOF
! 86114: #define HAVE_FORK 1
! 86115: _ACEOF
1.1 misho 86116:
86117: else
1.1.1.3 ! misho 86118: { { echo "$as_me:$LINENO: error: pcntl: fork() not supported by this platform" >&5
! 86119: echo "$as_me: error: pcntl: fork() not supported by this platform" >&2;}
! 86120: { (exit 1); exit 1; }; }
1.1 misho 86121: fi
86122: done
86123:
1.1.1.3 ! misho 86124:
! 86125: for ac_func in waitpid
! 86126: do
! 86127: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 86128: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 86129: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 86130: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 86131: echo $ECHO_N "(cached) $ECHO_C" >&6
! 86132: else
! 86133: cat >conftest.$ac_ext <<_ACEOF
! 86134: /* confdefs.h. */
! 86135: _ACEOF
! 86136: cat confdefs.h >>conftest.$ac_ext
! 86137: cat >>conftest.$ac_ext <<_ACEOF
! 86138: /* end confdefs.h. */
! 86139: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 86140: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 86141: #define $ac_func innocuous_$ac_func
! 86142:
! 86143: /* System header to define __stub macros and hopefully few prototypes,
! 86144: which can conflict with char $ac_func (); below.
! 86145: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 86146: <limits.h> exists even on freestanding compilers. */
! 86147:
! 86148: #ifdef __STDC__
! 86149: # include <limits.h>
! 86150: #else
! 86151: # include <assert.h>
! 86152: #endif
! 86153:
! 86154: #undef $ac_func
! 86155:
! 86156: /* Override any GCC internal prototype to avoid an error.
! 86157: Use char because int might match the return type of a GCC
! 86158: builtin and then its argument prototype would still apply. */
! 86159: #ifdef __cplusplus
! 86160: extern "C"
! 86161: #endif
! 86162: char $ac_func ();
! 86163: /* The GNU C library defines this for functions which it implements
! 86164: to always fail with ENOSYS. Some functions are actually named
! 86165: something starting with __ and the normal name is an alias. */
! 86166: #if defined __stub_$ac_func || defined __stub___$ac_func
! 86167: choke me
! 86168: #endif
! 86169:
! 86170: int
! 86171: main ()
! 86172: {
! 86173: return $ac_func ();
! 86174: ;
! 86175: return 0;
! 86176: }
! 86177: _ACEOF
! 86178: rm -f conftest.$ac_objext conftest$ac_exeext
! 86179: if { (ac_try="$ac_link"
! 86180: case "(($ac_try" in
! 86181: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 86182: *) ac_try_echo=$ac_try;;
! 86183: esac
! 86184: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 86185: (eval "$ac_link") 2>conftest.er1
! 86186: ac_status=$?
! 86187: grep -v '^ *+' conftest.er1 >conftest.err
! 86188: rm -f conftest.er1
! 86189: cat conftest.err >&5
! 86190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 86191: (exit $ac_status); } && {
! 86192: test -z "$ac_c_werror_flag" ||
! 86193: test ! -s conftest.err
! 86194: } && test -s conftest$ac_exeext &&
! 86195: $as_test_x conftest$ac_exeext; then
! 86196: eval "$as_ac_var=yes"
! 86197: else
! 86198: echo "$as_me: failed program was:" >&5
! 86199: sed 's/^/| /' conftest.$ac_ext >&5
! 86200:
! 86201: eval "$as_ac_var=no"
! 86202: fi
! 86203:
! 86204: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 86205: conftest$ac_exeext conftest.$ac_ext
! 86206: fi
! 86207: ac_res=`eval echo '${'$as_ac_var'}'`
! 86208: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 86209: echo "${ECHO_T}$ac_res" >&6; }
! 86210: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 86211: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 86212: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 86213: _ACEOF
! 86214:
! 86215: cat >>confdefs.h <<\_ACEOF
1.1 misho 86216: #define HAVE_WAITPID 1
86217: _ACEOF
86218:
1.1.1.3 ! misho 86219: else
! 86220: { { echo "$as_me:$LINENO: error: pcntl: waitpid() not supported by this platform" >&5
! 86221: echo "$as_me: error: pcntl: waitpid() not supported by this platform" >&2;}
! 86222: { (exit 1); exit 1; }; }
! 86223: fi
! 86224: done
! 86225:
! 86226:
! 86227: for ac_func in sigaction
! 86228: do
! 86229: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 86230: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 86231: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 86232: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 86233: echo $ECHO_N "(cached) $ECHO_C" >&6
! 86234: else
! 86235: cat >conftest.$ac_ext <<_ACEOF
! 86236: /* confdefs.h. */
! 86237: _ACEOF
! 86238: cat confdefs.h >>conftest.$ac_ext
! 86239: cat >>conftest.$ac_ext <<_ACEOF
! 86240: /* end confdefs.h. */
! 86241: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 86242: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 86243: #define $ac_func innocuous_$ac_func
! 86244:
! 86245: /* System header to define __stub macros and hopefully few prototypes,
! 86246: which can conflict with char $ac_func (); below.
! 86247: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 86248: <limits.h> exists even on freestanding compilers. */
! 86249:
! 86250: #ifdef __STDC__
! 86251: # include <limits.h>
! 86252: #else
! 86253: # include <assert.h>
! 86254: #endif
! 86255:
! 86256: #undef $ac_func
! 86257:
! 86258: /* Override any GCC internal prototype to avoid an error.
! 86259: Use char because int might match the return type of a GCC
! 86260: builtin and then its argument prototype would still apply. */
! 86261: #ifdef __cplusplus
! 86262: extern "C"
! 86263: #endif
! 86264: char $ac_func ();
! 86265: /* The GNU C library defines this for functions which it implements
! 86266: to always fail with ENOSYS. Some functions are actually named
! 86267: something starting with __ and the normal name is an alias. */
! 86268: #if defined __stub_$ac_func || defined __stub___$ac_func
! 86269: choke me
! 86270: #endif
! 86271:
! 86272: int
! 86273: main ()
! 86274: {
! 86275: return $ac_func ();
! 86276: ;
! 86277: return 0;
! 86278: }
! 86279: _ACEOF
! 86280: rm -f conftest.$ac_objext conftest$ac_exeext
! 86281: if { (ac_try="$ac_link"
! 86282: case "(($ac_try" in
! 86283: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 86284: *) ac_try_echo=$ac_try;;
! 86285: esac
! 86286: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 86287: (eval "$ac_link") 2>conftest.er1
! 86288: ac_status=$?
! 86289: grep -v '^ *+' conftest.er1 >conftest.err
! 86290: rm -f conftest.er1
! 86291: cat conftest.err >&5
! 86292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 86293: (exit $ac_status); } && {
! 86294: test -z "$ac_c_werror_flag" ||
! 86295: test ! -s conftest.err
! 86296: } && test -s conftest$ac_exeext &&
! 86297: $as_test_x conftest$ac_exeext; then
! 86298: eval "$as_ac_var=yes"
! 86299: else
! 86300: echo "$as_me: failed program was:" >&5
! 86301: sed 's/^/| /' conftest.$ac_ext >&5
! 86302:
! 86303: eval "$as_ac_var=no"
! 86304: fi
! 86305:
! 86306: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 86307: conftest$ac_exeext conftest.$ac_ext
! 86308: fi
! 86309: ac_res=`eval echo '${'$as_ac_var'}'`
! 86310: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 86311: echo "${ECHO_T}$ac_res" >&6; }
! 86312: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 86313: cat >>confdefs.h <<_ACEOF
! 86314: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 86315: _ACEOF
! 86316:
! 86317: cat >>confdefs.h <<\_ACEOF
! 86318: #define HAVE_SIGACTION 1
! 86319: _ACEOF
! 86320:
! 86321: else
! 86322: { { echo "$as_me:$LINENO: error: pcntl: sigaction() not supported by this platform" >&5
! 86323: echo "$as_me: error: pcntl: sigaction() not supported by this platform" >&2;}
! 86324: { (exit 1); exit 1; }; }
! 86325: fi
! 86326: done
! 86327:
! 86328:
! 86329:
! 86330:
! 86331:
! 86332:
! 86333:
! 86334: for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait
! 86335: do
! 86336: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 86337: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 86338: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 86339: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 86340: echo $ECHO_N "(cached) $ECHO_C" >&6
! 86341: else
! 86342: cat >conftest.$ac_ext <<_ACEOF
! 86343: /* confdefs.h. */
! 86344: _ACEOF
! 86345: cat confdefs.h >>conftest.$ac_ext
! 86346: cat >>conftest.$ac_ext <<_ACEOF
! 86347: /* end confdefs.h. */
! 86348: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 86349: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 86350: #define $ac_func innocuous_$ac_func
! 86351:
! 86352: /* System header to define __stub macros and hopefully few prototypes,
! 86353: which can conflict with char $ac_func (); below.
! 86354: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 86355: <limits.h> exists even on freestanding compilers. */
! 86356:
! 86357: #ifdef __STDC__
! 86358: # include <limits.h>
! 86359: #else
! 86360: # include <assert.h>
! 86361: #endif
! 86362:
! 86363: #undef $ac_func
! 86364:
! 86365: /* Override any GCC internal prototype to avoid an error.
! 86366: Use char because int might match the return type of a GCC
! 86367: builtin and then its argument prototype would still apply. */
! 86368: #ifdef __cplusplus
! 86369: extern "C"
! 86370: #endif
! 86371: char $ac_func ();
! 86372: /* The GNU C library defines this for functions which it implements
! 86373: to always fail with ENOSYS. Some functions are actually named
! 86374: something starting with __ and the normal name is an alias. */
! 86375: #if defined __stub_$ac_func || defined __stub___$ac_func
! 86376: choke me
! 86377: #endif
1.1 misho 86378:
1.1.1.3 ! misho 86379: int
! 86380: main ()
! 86381: {
! 86382: return $ac_func ();
! 86383: ;
! 86384: return 0;
! 86385: }
! 86386: _ACEOF
! 86387: rm -f conftest.$ac_objext conftest$ac_exeext
! 86388: if { (ac_try="$ac_link"
! 86389: case "(($ac_try" in
! 86390: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 86391: *) ac_try_echo=$ac_try;;
! 86392: esac
! 86393: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 86394: (eval "$ac_link") 2>conftest.er1
! 86395: ac_status=$?
! 86396: grep -v '^ *+' conftest.er1 >conftest.err
! 86397: rm -f conftest.er1
! 86398: cat conftest.err >&5
! 86399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 86400: (exit $ac_status); } && {
! 86401: test -z "$ac_c_werror_flag" ||
! 86402: test ! -s conftest.err
! 86403: } && test -s conftest$ac_exeext &&
! 86404: $as_test_x conftest$ac_exeext; then
! 86405: eval "$as_ac_var=yes"
1.1 misho 86406: else
1.1.1.3 ! misho 86407: echo "$as_me: failed program was:" >&5
! 86408: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 86409:
1.1.1.3 ! misho 86410: eval "$as_ac_var=no"
1.1 misho 86411: fi
86412:
1.1.1.3 ! misho 86413: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 86414: conftest$ac_exeext conftest.$ac_ext
! 86415: fi
! 86416: ac_res=`eval echo '${'$as_ac_var'}'`
! 86417: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 86418: echo "${ECHO_T}$ac_res" >&6; }
! 86419: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 86420: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 86421: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 86422: _ACEOF
86423:
86424: fi
86425: done
86426:
86427:
86428: ext_builddir=ext/pcntl
86429: ext_srcdir=$abs_srcdir/ext/pcntl
86430:
86431: ac_extra=
86432:
86433: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
86434: PHP_PCNTL_SHARED=no
86435:
86436:
86437: case ext/pcntl in
86438: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86439: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86440: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86441: esac
86442:
86443:
86444:
86445: b_c_pre=$php_c_pre
86446: b_cxx_pre=$php_cxx_pre
86447: b_c_meta=$php_c_meta
86448: b_cxx_meta=$php_cxx_meta
86449: b_c_post=$php_c_post
86450: b_cxx_post=$php_cxx_post
86451: b_lo=$php_lo
86452:
86453:
86454: old_IFS=$IFS
86455: for ac_src in pcntl.c php_signal.c; do
86456:
86457: IFS=.
86458: set $ac_src
86459: ac_obj=$1
86460: IFS=$old_IFS
86461:
86462: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86463:
86464: case $ac_src in
86465: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86466: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86467: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86468: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86469: esac
86470:
86471: cat >>Makefile.objects<<EOF
86472: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86473: $ac_comp
86474: EOF
86475: done
86476:
86477:
86478: EXT_STATIC="$EXT_STATIC pcntl"
86479: if test "$ext_shared" != "nocli"; then
86480: EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
86481: fi
86482: else
86483: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
86484: PHP_PCNTL_SHARED=yes
86485:
86486: case ext/pcntl in
86487: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86488: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86489: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86490: esac
86491:
86492:
86493:
86494: b_c_pre=$shared_c_pre
86495: b_cxx_pre=$shared_cxx_pre
86496: b_c_meta=$shared_c_meta
86497: b_cxx_meta=$shared_cxx_meta
86498: b_c_post=$shared_c_post
86499: b_cxx_post=$shared_cxx_post
86500: b_lo=$shared_lo
86501:
86502:
86503: old_IFS=$IFS
86504: for ac_src in pcntl.c php_signal.c; do
86505:
86506: IFS=.
86507: set $ac_src
86508: ac_obj=$1
86509: IFS=$old_IFS
86510:
86511: shared_objects_pcntl="$shared_objects_pcntl $ac_bdir$ac_obj.lo"
86512:
86513: case $ac_src in
86514: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86515: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86516: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86517: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86518: esac
86519:
86520: cat >>Makefile.objects<<EOF
86521: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86522: $ac_comp
86523: EOF
86524: done
86525:
86526: case $host_alias in
86527: *netware*)
86528:
86529: install_modules="install-modules"
86530:
86531: case $host_alias in
86532: *aix*)
86533: suffix=so
86534: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PHPPCNTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcntl.so '$ext_builddir'/phppcntl.so'
86535: ;;
86536: *netware*)
86537: suffix=nlm
86538: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) -L$(top_builddir)/netware -lphp5lib $(PCNTL_SHARED_LIBADD)'
86539: ;;
86540: *)
86541: suffix=la
86542: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PHPPCNTL_SHARED_LIBADD)'
86543: ;;
86544: esac
86545:
86546: if test "x" = "xyes"; then
86547: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcntl.$suffix"
86548: else
86549: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcntl.$suffix"
86550: fi
86551:
86552: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
86553:
86554: cat >>Makefile.objects<<EOF
86555: \$(phplibdir)/phppcntl.$suffix: $ext_builddir/phppcntl.$suffix
86556: \$(LIBTOOL) --mode=install cp $ext_builddir/phppcntl.$suffix \$(phplibdir)
86557:
86558: $ext_builddir/phppcntl.$suffix: \$(shared_objects_pcntl) \$(PHPPCNTL_SHARED_DEPENDENCIES)
86559: $link_cmd
86560:
86561: EOF
86562:
86563: ;;
86564: *)
86565:
86566: install_modules="install-modules"
86567:
86568: case $host_alias in
86569: *aix*)
86570: suffix=so
86571: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PCNTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcntl.so '$ext_builddir'/pcntl.so'
86572: ;;
86573: *netware*)
86574: suffix=nlm
86575: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) -L$(top_builddir)/netware -lphp5lib $(TL_SHARED_LIBADD)'
86576: ;;
86577: *)
86578: suffix=la
86579: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PCNTL_SHARED_LIBADD)'
86580: ;;
86581: esac
86582:
86583: if test "x" = "xyes"; then
86584: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcntl.$suffix"
86585: else
86586: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcntl.$suffix"
86587: fi
86588:
86589: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
86590:
86591: cat >>Makefile.objects<<EOF
86592: \$(phplibdir)/pcntl.$suffix: $ext_builddir/pcntl.$suffix
86593: \$(LIBTOOL) --mode=install cp $ext_builddir/pcntl.$suffix \$(phplibdir)
86594:
86595: $ext_builddir/pcntl.$suffix: \$(shared_objects_pcntl) \$(PCNTL_SHARED_DEPENDENCIES)
86596: $link_cmd
86597:
86598: EOF
86599:
86600: ;;
86601: esac
86602:
86603: cat >>confdefs.h <<_ACEOF
86604: #define COMPILE_DL_PCNTL 1
86605: _ACEOF
86606:
86607: fi
86608: fi
86609:
86610: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
86611: PHP_PCNTL_SHARED=no
1.1.1.3 ! misho 86612: case "$PHP_SAPI" in
! 86613: cgi|embed)
1.1 misho 86614:
86615:
86616: case ext/pcntl in
86617: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86618: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86619: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86620: esac
86621:
86622:
86623:
86624: b_c_pre=$php_c_pre
86625: b_cxx_pre=$php_cxx_pre
86626: b_c_meta=$php_c_meta
86627: b_cxx_meta=$php_cxx_meta
86628: b_c_post=$php_c_post
86629: b_cxx_post=$php_cxx_post
86630: b_lo=$php_lo
86631:
86632:
86633: old_IFS=$IFS
86634: for ac_src in pcntl.c php_signal.c; do
86635:
86636: IFS=.
86637: set $ac_src
86638: ac_obj=$1
86639: IFS=$old_IFS
86640:
1.1.1.2 misho 86641: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 86642:
86643: case $ac_src in
86644: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86645: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86646: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86647: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86648: esac
86649:
86650: cat >>Makefile.objects<<EOF
86651: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86652: $ac_comp
86653: EOF
86654: done
86655:
86656:
1.1.1.3 ! misho 86657: EXT_STATIC="$EXT_STATIC pcntl"
! 86658: ;;
! 86659: *)
1.1 misho 86660:
86661:
86662: case ext/pcntl in
86663: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86664: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86665: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86666: esac
86667:
86668:
86669:
86670: b_c_pre=$php_c_pre
86671: b_cxx_pre=$php_cxx_pre
86672: b_c_meta=$php_c_meta
86673: b_cxx_meta=$php_cxx_meta
86674: b_c_post=$php_c_post
86675: b_cxx_post=$php_cxx_post
86676: b_lo=$php_lo
86677:
86678:
86679: old_IFS=$IFS
86680: for ac_src in pcntl.c php_signal.c; do
86681:
86682: IFS=.
86683: set $ac_src
86684: ac_obj=$1
86685: IFS=$old_IFS
86686:
1.1.1.2 misho 86687: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 86688:
86689: case $ac_src in
86690: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86691: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86692: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86693: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86694: esac
86695:
86696: cat >>Makefile.objects<<EOF
86697: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86698: $ac_comp
86699: EOF
86700: done
86701:
86702:
1.1.1.3 ! misho 86703: ;;
! 86704: esac
1.1 misho 86705: EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
86706: fi
86707:
86708:
86709: BUILD_DIR="$BUILD_DIR $ext_builddir"
86710:
86711:
86712:
86713: if test "$ext_builddir" = "."; then
86714: PHP_PECL_EXTENSION=pcntl
86715:
86716: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86717:
86718: fi
86719:
86720: fi
86721:
86722:
86723:
86724:
86725:
86726: php_enable_pdo=yes
86727:
1.1.1.3 ! misho 86728: { echo "$as_me:$LINENO: checking whether to enable PDO support" >&5
! 86729: echo $ECHO_N "checking whether to enable PDO support... $ECHO_C" >&6; }
1.1 misho 86730: # Check whether --enable-pdo was given.
1.1.1.3 ! misho 86731: if test "${enable_pdo+set}" = set; then
1.1 misho 86732: enableval=$enable_pdo; PHP_PDO=$enableval
86733: else
86734:
86735: PHP_PDO=yes
86736: test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL
86737:
86738: fi
86739:
86740:
86741:
86742: ext_output="yes, shared"
86743: ext_shared=yes
86744: case $PHP_PDO in
86745: shared,*)
86746: PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'`
86747: ;;
86748: shared)
86749: PHP_PDO=yes
86750: ;;
86751: no)
86752: ext_output=no
86753: ext_shared=no
86754: ;;
86755: *)
86756: ext_output=yes
86757: ext_shared=no
86758: ;;
86759: esac
86760:
86761:
86762:
1.1.1.3 ! misho 86763: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 86764: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 86765:
86766:
86767:
86768:
86769: if test "$PHP_PDO" != "no"; then
86770:
86771: PHP_PDO=yes
86772:
86773:
86774: pdo_running_under_pear=0
86775: case `pwd` in
86776: /var/tmp/pear-build-*)
86777: pdo_running_under_pear=1
86778: ;;
86779: esac
86780:
86781: if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
86782: # we're running in an environment that smells like pear,
86783: # and the PHP_PEAR_VERSION env var is not set. That implies
86784: # that we're running under a slightly broken pear installer
1.1.1.3 ! misho 86785: { { echo "$as_me:$LINENO: error:
! 86786: PDO requires that you upgrade your PEAR installer tools. Please
! 86787: do so now by running:
! 86788:
! 86789: % sudo pear upgrade pear
! 86790:
! 86791: or by manually downloading and installing PEAR version 1.3.5 or higher.
! 86792:
! 86793: Once you've upgraded, please re-try your PDO install.
! 86794: " >&5
! 86795: echo "$as_me: error:
1.1 misho 86796: PDO requires that you upgrade your PEAR installer tools. Please
86797: do so now by running:
86798:
86799: % sudo pear upgrade pear
86800:
86801: or by manually downloading and installing PEAR version 1.3.5 or higher.
86802:
86803: Once you've upgraded, please re-try your PDO install.
1.1.1.3 ! misho 86804: " >&2;}
! 86805: { (exit 1); exit 1; }; }
1.1 misho 86806: fi
86807:
86808:
86809: if test "$ext_shared" = "yes" ; then
86810: case $host_alias in
86811: *darwin*)
1.1.1.3 ! misho 86812: { { echo "$as_me:$LINENO: error:
! 86813: Due to the way that loadable modules work on OSX/Darwin, you need to
! 86814: compile the PDO package statically into the PHP core.
! 86815:
! 86816: Please follow the instructions at: http://netevil.org/node.php?nid=202
! 86817: for more detail on this issue.
! 86818: " >&5
! 86819: echo "$as_me: error:
1.1 misho 86820: Due to the way that loadable modules work on OSX/Darwin, you need to
86821: compile the PDO package statically into the PHP core.
86822:
86823: Please follow the instructions at: http://netevil.org/node.php?nid=202
86824: for more detail on this issue.
1.1.1.3 ! misho 86825: " >&2;}
! 86826: { (exit 1); exit 1; }; }
1.1 misho 86827: ext_shared=no
86828: ;;
86829: esac
86830: fi
86831:
86832: ext_builddir=ext/pdo
86833: ext_srcdir=$abs_srcdir/ext/pdo
86834:
86835: ac_extra=
86836:
86837: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
86838: PHP_PDO_SHARED=no
86839:
86840:
86841: case ext/pdo in
86842: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86843: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86844: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86845: esac
86846:
86847:
86848:
86849: b_c_pre=$php_c_pre
86850: b_cxx_pre=$php_cxx_pre
86851: b_c_meta=$php_c_meta
86852: b_cxx_meta=$php_cxx_meta
86853: b_c_post=$php_c_post
86854: b_cxx_post=$php_cxx_post
86855: b_lo=$php_lo
86856:
86857:
86858: old_IFS=$IFS
86859: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
86860:
86861: IFS=.
86862: set $ac_src
86863: ac_obj=$1
86864: IFS=$old_IFS
86865:
86866: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86867:
86868: case $ac_src in
86869: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86870: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86871: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86872: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86873: esac
86874:
86875: cat >>Makefile.objects<<EOF
86876: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86877: $ac_comp
86878: EOF
86879: done
86880:
86881:
86882: EXT_STATIC="$EXT_STATIC pdo"
86883: if test "$ext_shared" != "nocli"; then
86884: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
86885: fi
86886: else
86887: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
86888: PHP_PDO_SHARED=yes
86889:
86890: case ext/pdo in
86891: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86892: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86893: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86894: esac
86895:
86896:
86897:
86898: b_c_pre=$shared_c_pre
86899: b_cxx_pre=$shared_cxx_pre
86900: b_c_meta=$shared_c_meta
86901: b_cxx_meta=$shared_cxx_meta
86902: b_c_post=$shared_c_post
86903: b_cxx_post=$shared_cxx_post
86904: b_lo=$shared_lo
86905:
86906:
86907: old_IFS=$IFS
86908: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
86909:
86910: IFS=.
86911: set $ac_src
86912: ac_obj=$1
86913: IFS=$old_IFS
86914:
86915: shared_objects_pdo="$shared_objects_pdo $ac_bdir$ac_obj.lo"
86916:
86917: case $ac_src in
86918: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86919: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86920: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86921: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86922: esac
86923:
86924: cat >>Makefile.objects<<EOF
86925: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86926: $ac_comp
86927: EOF
86928: done
86929:
86930: case $host_alias in
86931: *netware*)
86932:
86933: install_modules="install-modules"
86934:
86935: case $host_alias in
86936: *aix*)
86937: suffix=so
86938: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PHPPDO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo.so '$ext_builddir'/phppdo.so'
86939: ;;
86940: *netware*)
86941: suffix=nlm
86942: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) -L$(top_builddir)/netware -lphp5lib $(PDO_SHARED_LIBADD)'
86943: ;;
86944: *)
86945: suffix=la
86946: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PHPPDO_SHARED_LIBADD)'
86947: ;;
86948: esac
86949:
86950: if test "x" = "xyes"; then
86951: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo.$suffix"
86952: else
86953: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo.$suffix"
86954: fi
86955:
86956: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
86957:
86958: cat >>Makefile.objects<<EOF
86959: \$(phplibdir)/phppdo.$suffix: $ext_builddir/phppdo.$suffix
86960: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo.$suffix \$(phplibdir)
86961:
86962: $ext_builddir/phppdo.$suffix: \$(shared_objects_pdo) \$(PHPPDO_SHARED_DEPENDENCIES)
86963: $link_cmd
86964:
86965: EOF
86966:
86967: ;;
86968: *)
86969:
86970: install_modules="install-modules"
86971:
86972: case $host_alias in
86973: *aix*)
86974: suffix=so
86975: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PDO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo.so '$ext_builddir'/pdo.so'
86976: ;;
86977: *netware*)
86978: suffix=nlm
86979: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
86980: ;;
86981: *)
86982: suffix=la
86983: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PDO_SHARED_LIBADD)'
86984: ;;
86985: esac
86986:
86987: if test "x" = "xyes"; then
86988: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo.$suffix"
86989: else
86990: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo.$suffix"
86991: fi
86992:
86993: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
86994:
86995: cat >>Makefile.objects<<EOF
86996: \$(phplibdir)/pdo.$suffix: $ext_builddir/pdo.$suffix
86997: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo.$suffix \$(phplibdir)
86998:
86999: $ext_builddir/pdo.$suffix: \$(shared_objects_pdo) \$(PDO_SHARED_DEPENDENCIES)
87000: $link_cmd
87001:
87002: EOF
87003:
87004: ;;
87005: esac
87006:
87007: cat >>confdefs.h <<_ACEOF
87008: #define COMPILE_DL_PDO 1
87009: _ACEOF
87010:
87011: fi
87012: fi
87013:
87014: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
87015: PHP_PDO_SHARED=no
1.1.1.3 ! misho 87016: case "$PHP_SAPI" in
! 87017: cgi|embed)
1.1 misho 87018:
87019:
87020: case ext/pdo in
87021: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87022: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87023: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87024: esac
87025:
87026:
87027:
87028: b_c_pre=$php_c_pre
87029: b_cxx_pre=$php_cxx_pre
87030: b_c_meta=$php_c_meta
87031: b_cxx_meta=$php_cxx_meta
87032: b_c_post=$php_c_post
87033: b_cxx_post=$php_cxx_post
87034: b_lo=$php_lo
87035:
87036:
87037: old_IFS=$IFS
87038: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
87039:
87040: IFS=.
87041: set $ac_src
87042: ac_obj=$1
87043: IFS=$old_IFS
87044:
1.1.1.2 misho 87045: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 87046:
87047: case $ac_src in
87048: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87049: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87050: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87051: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87052: esac
87053:
87054: cat >>Makefile.objects<<EOF
87055: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87056: $ac_comp
87057: EOF
87058: done
87059:
87060:
1.1.1.3 ! misho 87061: EXT_STATIC="$EXT_STATIC pdo"
! 87062: ;;
! 87063: *)
1.1 misho 87064:
87065:
87066: case ext/pdo in
87067: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87068: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87069: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87070: esac
87071:
87072:
87073:
87074: b_c_pre=$php_c_pre
87075: b_cxx_pre=$php_cxx_pre
87076: b_c_meta=$php_c_meta
87077: b_cxx_meta=$php_cxx_meta
87078: b_c_post=$php_c_post
87079: b_cxx_post=$php_cxx_post
87080: b_lo=$php_lo
87081:
87082:
87083: old_IFS=$IFS
87084: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
87085:
87086: IFS=.
87087: set $ac_src
87088: ac_obj=$1
87089: IFS=$old_IFS
87090:
1.1.1.2 misho 87091: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 87092:
87093: case $ac_src in
87094: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87095: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87096: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87097: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87098: esac
87099:
87100: cat >>Makefile.objects<<EOF
87101: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87102: $ac_comp
87103: EOF
87104: done
87105:
87106:
1.1.1.3 ! misho 87107: ;;
! 87108: esac
1.1 misho 87109: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
87110: fi
87111:
87112:
87113: BUILD_DIR="$BUILD_DIR $ext_builddir"
87114:
87115:
87116:
87117: if test "$ext_builddir" = "."; then
87118: PHP_PECL_EXTENSION=pdo
87119:
87120: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
87121:
87122: fi
87123:
87124:
87125:
87126: am_i_shared=$PHP_PDO_SHARED
87127: is_it_shared=$PHP_SPL_SHARED
87128: is_it_enabled=$PHP_SPL
87129: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 87130: { { echo "$as_me:$LINENO: error:
! 87131: You've configured extension pdo to build statically, but it
! 87132: depends on extension spl, which you've configured to build shared.
! 87133: You either need to build pdo shared or build spl statically for the
! 87134: build to be successful.
! 87135: " >&5
! 87136: echo "$as_me: error:
1.1 misho 87137: You've configured extension pdo to build statically, but it
87138: depends on extension spl, which you've configured to build shared.
87139: You either need to build pdo shared or build spl statically for the
87140: build to be successful.
1.1.1.3 ! misho 87141: " >&2;}
! 87142: { (exit 1); exit 1; }; }
! 87143: fi
! 87144: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 87145: { { echo "$as_me:$LINENO: error:
! 87146: You've configured extension pdo, which depends on extension spl,
! 87147: but you've either not enabled spl, or have disabled it.
! 87148: " >&5
! 87149: echo "$as_me: error:
! 87150: You've configured extension pdo, which depends on extension spl,
! 87151: but you've either not enabled spl, or have disabled it.
! 87152: " >&2;}
! 87153: { (exit 1); exit 1; }; }
1.1 misho 87154: fi
87155:
87156:
87157:
87158:
87159:
87160:
87161: header_path=ext/pdo
87162: for header_file in php_pdo.h php_pdo_driver.h; do
87163: hp_hf="$header_path/$header_file"
87164:
87165:
87166: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
87167:
87168: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
87169: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87170: eval "INSTALLHEADERS$unique=set"
87171:
87172: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
87173:
87174: fi
87175:
87176: done
87177:
87178:
87179:
87180:
87181:
87182: src=$ext_srcdir/Makefile.frag
87183: ac_srcdir=$ext_srcdir
87184: ac_builddir=$ext_builddir
87185: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
87186:
87187: fi
87188:
87189:
87190:
87191:
87192: php_with_pdo_dblib=no
87193:
1.1.1.3 ! misho 87194: { echo "$as_me:$LINENO: checking for PDO_DBLIB support via FreeTDS" >&5
! 87195: echo $ECHO_N "checking for PDO_DBLIB support via FreeTDS... $ECHO_C" >&6; }
1.1 misho 87196:
87197: # Check whether --with-pdo-dblib was given.
1.1.1.3 ! misho 87198: if test "${with_pdo_dblib+set}" = set; then
1.1 misho 87199: withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval
87200: else
87201:
87202: PHP_PDO_DBLIB=no
87203: test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL
87204:
87205: fi
87206:
87207:
87208:
87209: ext_output="yes, shared"
87210: ext_shared=yes
87211: case $PHP_PDO_DBLIB in
87212: shared,*)
87213: PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'`
87214: ;;
87215: shared)
87216: PHP_PDO_DBLIB=yes
87217: ;;
87218: no)
87219: ext_output=no
87220: ext_shared=no
87221: ;;
87222: *)
87223: ext_output=yes
87224: ext_shared=no
87225: ;;
87226: esac
87227:
87228:
87229:
1.1.1.3 ! misho 87230: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 87231: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 87232:
87233:
87234:
87235:
87236: if test "$PHP_PDO_DBLIB" != "no"; then
87237:
87238: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 87239: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 87240: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 87241: { (exit 1); exit 1; }; }
1.1 misho 87242: fi
87243:
87244: if test "$PHP_PDO_DBLIB" = "yes"; then
87245:
87246: for i in /usr/local /usr; do
87247: if test -f $i/include/sybdb.h; then
87248: PDO_FREETDS_INSTALLATION_DIR=$i
87249: PDO_FREETDS_INCLUDE_DIR=$i/include
87250: break
87251: elif test -f $i/include/freetds/sybdb.h; then
87252: PDO_FREETDS_INSTALLATION_DIR=$i
87253: PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
87254: break;
87255: fi
87256: done
87257:
87258: if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then
1.1.1.3 ! misho 87259: { { echo "$as_me:$LINENO: error: Cannot find FreeTDS in known installation directories" >&5
! 87260: echo "$as_me: error: Cannot find FreeTDS in known installation directories" >&2;}
! 87261: { (exit 1); exit 1; }; }
1.1 misho 87262: fi
87263:
87264: elif test "$PHP_PDO_DBLIB" != "no"; then
87265:
87266: if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
87267: PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
87268: PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
87269: elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
87270: PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
87271: PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
87272: else
1.1.1.3 ! misho 87273: { { echo "$as_me:$LINENO: error: Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" >&5
! 87274: echo "$as_me: error: Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" >&2;}
! 87275: { (exit 1); exit 1; }; }
1.1 misho 87276: fi
87277: fi
87278:
87279: if test "x$PHP_LIBDIR" = "x" ; then
87280: PHP_LIBDIR=lib
87281: fi
87282:
87283: if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
1.1.1.3 ! misho 87284: { { echo "$as_me:$LINENO: error: Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&5
! 87285: echo "$as_me: error: Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&2;}
! 87286: { (exit 1); exit 1; }; }
1.1 misho 87287: fi
87288:
87289:
87290: if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then
87291:
87292: if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
87293: ai_p=$PDO_FREETDS_INCLUDE_DIR
87294: else
87295:
87296: ep_dir="`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
87297:
87298: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87299: ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INCLUDE_DIR\"`"
87300: fi
87301:
87302:
87303:
87304: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87305:
87306: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
87307: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87308: eval "INCLUDEPATH$unique=set"
87309:
87310: if test ""; then
87311: INCLUDES="-I$ai_p $INCLUDES"
87312: else
87313: INCLUDES="$INCLUDES -I$ai_p"
87314: fi
87315:
87316: fi
87317:
87318: fi
87319:
87320:
87321:
87322: if test "$ext_shared" = "yes"; then
87323: PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD"
87324: if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
87325:
87326: if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
87327:
87328: if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
87329: ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
87330: else
87331:
87332: ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
87333:
87334: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87335: ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
87336: fi
87337:
87338:
87339: if test "$ext_shared" = "yes"; then
87340: PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
87341: test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
87342: else
87343:
87344:
87345:
87346: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87347:
87348: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87349: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87350: eval "LIBPATH$unique=set"
87351:
87352: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87353: LDFLAGS="$LDFLAGS -L$ai_p"
87354: PHP_RPATHS="$PHP_RPATHS $ai_p"
87355:
87356: fi
87357:
87358:
87359: fi
87360:
87361: fi
87362:
87363: fi
87364: else
87365:
87366:
87367: if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
87368:
87369: if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
87370:
87371: if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
87372: ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
87373: else
87374:
87375: ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
87376:
87377: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87378: ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
87379: fi
87380:
87381:
87382:
87383:
87384:
87385: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87386:
87387: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87388: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87389: eval "LIBPATH$unique=set"
87390:
87391: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87392: LDFLAGS="$LDFLAGS -L$ai_p"
87393: PHP_RPATHS="$PHP_RPATHS $ai_p"
87394:
87395: fi
87396:
87397:
87398:
87399: fi
87400:
87401: fi
87402:
87403:
87404: case sybdb in
87405: c|c_r|pthread*) ;;
87406: *)
87407: LIBS="-lsybdb $LIBS"
87408: ;;
87409: esac
87410:
87411:
87412:
87413:
87414: fi
87415:
87416:
87417:
87418:
87419:
1.1.1.3 ! misho 87420: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 87421: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 87422: if test "${pdo_cv_inc_path+set}" = set; then
! 87423: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 87424: else
87425:
1.1.1.3 ! misho 87426: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 87427: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 87428: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 87429: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 87430: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 87431: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 87432: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 87433: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 87434: fi
87435:
87436: fi
1.1.1.3 ! misho 87437: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 87438: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 87439: if test -n "$pdo_cv_inc_path"; then
1.1 misho 87440: :
87441: else
1.1.1.3 ! misho 87442: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 87443: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 87444: { (exit 1); exit 1; }; }
1.1 misho 87445: fi
87446:
87447:
87448:
87449: PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
87450:
87451: ext_builddir=ext/pdo_dblib
87452: ext_srcdir=$abs_srcdir/ext/pdo_dblib
87453:
1.1.1.2 misho 87454: ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 87455:
87456: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
87457: PHP_PDO_DBLIB_SHARED=no
87458:
87459:
87460: case ext/pdo_dblib in
87461: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87462: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87463: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87464: esac
87465:
87466:
87467:
87468: b_c_pre=$php_c_pre
87469: b_cxx_pre=$php_cxx_pre
87470: b_c_meta=$php_c_meta
87471: b_cxx_meta=$php_cxx_meta
87472: b_c_post=$php_c_post
87473: b_cxx_post=$php_cxx_post
87474: b_lo=$php_lo
87475:
87476:
87477: old_IFS=$IFS
87478: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87479:
87480: IFS=.
87481: set $ac_src
87482: ac_obj=$1
87483: IFS=$old_IFS
87484:
87485: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87486:
87487: case $ac_src in
87488: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87489: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87490: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87491: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87492: esac
87493:
87494: cat >>Makefile.objects<<EOF
87495: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87496: $ac_comp
87497: EOF
87498: done
87499:
87500:
87501: EXT_STATIC="$EXT_STATIC pdo_dblib"
87502: if test "$ext_shared" != "nocli"; then
87503: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
87504: fi
87505: else
87506: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
87507: PHP_PDO_DBLIB_SHARED=yes
87508:
87509: case ext/pdo_dblib in
87510: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87511: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87512: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87513: esac
87514:
87515:
87516:
87517: b_c_pre=$shared_c_pre
87518: b_cxx_pre=$shared_cxx_pre
87519: b_c_meta=$shared_c_meta
87520: b_cxx_meta=$shared_cxx_meta
87521: b_c_post=$shared_c_post
87522: b_cxx_post=$shared_cxx_post
87523: b_lo=$shared_lo
87524:
87525:
87526: old_IFS=$IFS
87527: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87528:
87529: IFS=.
87530: set $ac_src
87531: ac_obj=$1
87532: IFS=$old_IFS
87533:
87534: shared_objects_pdo_dblib="$shared_objects_pdo_dblib $ac_bdir$ac_obj.lo"
87535:
87536: case $ac_src in
87537: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87538: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87539: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87540: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87541: esac
87542:
87543: cat >>Makefile.objects<<EOF
87544: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87545: $ac_comp
87546: EOF
87547: done
87548:
87549: case $host_alias in
87550: *netware*)
87551:
87552: install_modules="install-modules"
87553:
87554: case $host_alias in
87555: *aix*)
87556: suffix=so
87557: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_dblib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PHPPDO_DBLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_dblib.so '$ext_builddir'/phppdo_dblib.so'
87558: ;;
87559: *netware*)
87560: suffix=nlm
87561: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) -L$(top_builddir)/netware -lphp5lib $(PDO_DBLIB_SHARED_LIBADD)'
87562: ;;
87563: *)
87564: suffix=la
87565: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PHPPDO_DBLIB_SHARED_LIBADD)'
87566: ;;
87567: esac
87568:
87569: if test "x" = "xyes"; then
87570: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_dblib.$suffix"
87571: else
87572: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_dblib.$suffix"
87573: fi
87574:
87575: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
87576:
87577: cat >>Makefile.objects<<EOF
87578: \$(phplibdir)/phppdo_dblib.$suffix: $ext_builddir/phppdo_dblib.$suffix
87579: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_dblib.$suffix \$(phplibdir)
87580:
87581: $ext_builddir/phppdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PHPPDO_DBLIB_SHARED_DEPENDENCIES)
87582: $link_cmd
87583:
87584: EOF
87585:
87586: ;;
87587: *)
87588:
87589: install_modules="install-modules"
87590:
87591: case $host_alias in
87592: *aix*)
87593: suffix=so
87594: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_dblib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PDO_DBLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_dblib.so '$ext_builddir'/pdo_dblib.so'
87595: ;;
87596: *netware*)
87597: suffix=nlm
87598: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) -L$(top_builddir)/netware -lphp5lib $(_DBLIB_SHARED_LIBADD)'
87599: ;;
87600: *)
87601: suffix=la
87602: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PDO_DBLIB_SHARED_LIBADD)'
87603: ;;
87604: esac
87605:
87606: if test "x" = "xyes"; then
87607: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_dblib.$suffix"
87608: else
87609: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_dblib.$suffix"
87610: fi
87611:
87612: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
87613:
87614: cat >>Makefile.objects<<EOF
87615: \$(phplibdir)/pdo_dblib.$suffix: $ext_builddir/pdo_dblib.$suffix
87616: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_dblib.$suffix \$(phplibdir)
87617:
87618: $ext_builddir/pdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_DEPENDENCIES)
87619: $link_cmd
87620:
87621: EOF
87622:
87623: ;;
87624: esac
87625:
87626: cat >>confdefs.h <<_ACEOF
87627: #define COMPILE_DL_PDO_DBLIB 1
87628: _ACEOF
87629:
87630: fi
87631: fi
87632:
87633: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
87634: PHP_PDO_DBLIB_SHARED=no
1.1.1.3 ! misho 87635: case "$PHP_SAPI" in
! 87636: cgi|embed)
1.1 misho 87637:
87638:
87639: case ext/pdo_dblib in
87640: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87641: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87642: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87643: esac
87644:
87645:
87646:
87647: b_c_pre=$php_c_pre
87648: b_cxx_pre=$php_cxx_pre
87649: b_c_meta=$php_c_meta
87650: b_cxx_meta=$php_cxx_meta
87651: b_c_post=$php_c_post
87652: b_cxx_post=$php_cxx_post
87653: b_lo=$php_lo
87654:
87655:
87656: old_IFS=$IFS
87657: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87658:
87659: IFS=.
87660: set $ac_src
87661: ac_obj=$1
87662: IFS=$old_IFS
87663:
1.1.1.2 misho 87664: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 87665:
87666: case $ac_src in
87667: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87668: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87669: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87670: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87671: esac
87672:
87673: cat >>Makefile.objects<<EOF
87674: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87675: $ac_comp
87676: EOF
87677: done
87678:
87679:
1.1.1.3 ! misho 87680: EXT_STATIC="$EXT_STATIC pdo_dblib"
! 87681: ;;
! 87682: *)
1.1 misho 87683:
87684:
87685: case ext/pdo_dblib in
87686: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87687: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87688: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87689: esac
87690:
87691:
87692:
87693: b_c_pre=$php_c_pre
87694: b_cxx_pre=$php_cxx_pre
87695: b_c_meta=$php_c_meta
87696: b_cxx_meta=$php_cxx_meta
87697: b_c_post=$php_c_post
87698: b_cxx_post=$php_cxx_post
87699: b_lo=$php_lo
87700:
87701:
87702: old_IFS=$IFS
87703: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87704:
87705: IFS=.
87706: set $ac_src
87707: ac_obj=$1
87708: IFS=$old_IFS
87709:
1.1.1.2 misho 87710: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 87711:
87712: case $ac_src in
87713: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87714: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87715: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87716: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87717: esac
87718:
87719: cat >>Makefile.objects<<EOF
87720: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87721: $ac_comp
87722: EOF
87723: done
87724:
87725:
1.1.1.3 ! misho 87726: ;;
! 87727: esac
1.1 misho 87728: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
87729: fi
87730:
87731:
87732: BUILD_DIR="$BUILD_DIR $ext_builddir"
87733:
87734:
87735:
87736: if test "$ext_builddir" = "."; then
87737: PHP_PECL_EXTENSION=pdo_dblib
87738:
87739: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
87740:
87741: fi
87742:
1.1.1.3 ! misho 87743: { echo "$as_me:$LINENO: checking for dnet_addr in -ldnet_stub" >&5
! 87744: echo $ECHO_N "checking for dnet_addr in -ldnet_stub... $ECHO_C" >&6; }
! 87745: if test "${ac_cv_lib_dnet_stub_dnet_addr+set}" = set; then
! 87746: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 87747: else
87748: ac_check_lib_save_LIBS=$LIBS
87749: LIBS="-ldnet_stub $LIBS"
1.1.1.3 ! misho 87750: cat >conftest.$ac_ext <<_ACEOF
! 87751: /* confdefs.h. */
! 87752: _ACEOF
! 87753: cat confdefs.h >>conftest.$ac_ext
! 87754: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 87755: /* end confdefs.h. */
87756:
87757: /* Override any GCC internal prototype to avoid an error.
87758: Use char because int might match the return type of a GCC
87759: builtin and then its argument prototype would still apply. */
87760: #ifdef __cplusplus
87761: extern "C"
87762: #endif
87763: char dnet_addr ();
87764: int
87765: main ()
87766: {
87767: return dnet_addr ();
87768: ;
87769: return 0;
87770: }
87771: _ACEOF
1.1.1.3 ! misho 87772: rm -f conftest.$ac_objext conftest$ac_exeext
! 87773: if { (ac_try="$ac_link"
! 87774: case "(($ac_try" in
! 87775: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 87776: *) ac_try_echo=$ac_try;;
! 87777: esac
! 87778: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 87779: (eval "$ac_link") 2>conftest.er1
! 87780: ac_status=$?
! 87781: grep -v '^ *+' conftest.er1 >conftest.err
! 87782: rm -f conftest.er1
! 87783: cat conftest.err >&5
! 87784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 87785: (exit $ac_status); } && {
! 87786: test -z "$ac_c_werror_flag" ||
! 87787: test ! -s conftest.err
! 87788: } && test -s conftest$ac_exeext &&
! 87789: $as_test_x conftest$ac_exeext; then
1.1 misho 87790: ac_cv_lib_dnet_stub_dnet_addr=yes
87791: else
1.1.1.3 ! misho 87792: echo "$as_me: failed program was:" >&5
! 87793: sed 's/^/| /' conftest.$ac_ext >&5
! 87794:
! 87795: ac_cv_lib_dnet_stub_dnet_addr=no
1.1 misho 87796: fi
1.1.1.3 ! misho 87797:
! 87798: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 87799: conftest$ac_exeext conftest.$ac_ext
1.1 misho 87800: LIBS=$ac_check_lib_save_LIBS
87801: fi
1.1.1.3 ! misho 87802: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
! 87803: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
! 87804: if test $ac_cv_lib_dnet_stub_dnet_addr = yes; then
1.1 misho 87805:
87806:
87807: if test "$ext_shared" = "yes"; then
87808: PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD"
87809: if test -n ""; then
87810:
87811: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
87812:
87813: if test -z "" || echo "" | grep '^/' >/dev/null ; then
87814: ai_p=
87815: else
87816:
87817: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
87818:
87819: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87820: ai_p="$ep_realdir/`basename \"\"`"
87821: fi
87822:
87823:
87824: if test "$ext_shared" = "yes"; then
87825: PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
87826: test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
87827: else
87828:
87829:
87830:
87831: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87832:
87833: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87834: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87835: eval "LIBPATH$unique=set"
87836:
87837: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87838: LDFLAGS="$LDFLAGS -L$ai_p"
87839: PHP_RPATHS="$PHP_RPATHS $ai_p"
87840:
87841: fi
87842:
87843:
87844: fi
87845:
87846: fi
87847:
87848: fi
87849: else
87850:
87851:
87852: if test -n ""; then
87853:
87854: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
87855:
87856: if test -z "" || echo "" | grep '^/' >/dev/null ; then
87857: ai_p=
87858: else
87859:
87860: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
87861:
87862: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87863: ai_p="$ep_realdir/`basename \"\"`"
87864: fi
87865:
87866:
87867:
87868:
87869:
87870: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87871:
87872: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87873: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87874: eval "LIBPATH$unique=set"
87875:
87876: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87877: LDFLAGS="$LDFLAGS -L$ai_p"
87878: PHP_RPATHS="$PHP_RPATHS $ai_p"
87879:
87880: fi
87881:
87882:
87883:
87884: fi
87885:
87886: fi
87887:
87888:
87889: case dnet_stub in
87890: c|c_r|pthread*) ;;
87891: *)
87892: LIBS="-ldnet_stub $LIBS"
87893: ;;
87894: esac
87895:
87896:
87897:
87898:
87899: fi
87900:
87901:
87902:
1.1.1.3 ! misho 87903: cat >>confdefs.h <<\_ACEOF
! 87904: #define HAVE_LIBDNET_STUB 1
! 87905: _ACEOF
1.1 misho 87906:
87907:
87908: fi
87909:
87910:
1.1.1.3 ! misho 87911: cat >>confdefs.h <<\_ACEOF
! 87912: #define HAVE_PDO_DBLIB 1
! 87913: _ACEOF
1.1 misho 87914:
87915:
1.1.1.3 ! misho 87916: cat >>confdefs.h <<\_ACEOF
! 87917: #define HAVE_FREETDS 1
! 87918: _ACEOF
1.1 misho 87919:
87920:
87921: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD"
87922:
87923:
87924:
87925:
87926: am_i_shared=$PHP_PDO_DBLIB_SHARED
87927: is_it_shared=$PHP_PDO_SHARED
87928: is_it_enabled=$PHP_PDO
87929: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 87930: { { echo "$as_me:$LINENO: error:
! 87931: You've configured extension pdo_dblib to build statically, but it
! 87932: depends on extension pdo, which you've configured to build shared.
! 87933: You either need to build pdo_dblib shared or build pdo statically for the
! 87934: build to be successful.
! 87935: " >&5
! 87936: echo "$as_me: error:
1.1 misho 87937: You've configured extension pdo_dblib to build statically, but it
87938: depends on extension pdo, which you've configured to build shared.
87939: You either need to build pdo_dblib shared or build pdo statically for the
87940: build to be successful.
1.1.1.3 ! misho 87941: " >&2;}
! 87942: { (exit 1); exit 1; }; }
! 87943: fi
! 87944: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 87945: { { echo "$as_me:$LINENO: error:
! 87946: You've configured extension pdo_dblib, which depends on extension pdo,
! 87947: but you've either not enabled pdo, or have disabled it.
! 87948: " >&5
! 87949: echo "$as_me: error:
! 87950: You've configured extension pdo_dblib, which depends on extension pdo,
! 87951: but you've either not enabled pdo, or have disabled it.
! 87952: " >&2;}
! 87953: { (exit 1); exit 1; }; }
1.1 misho 87954: fi
87955:
87956:
87957: fi
87958:
87959:
87960:
87961: php_with_pdo_firebird=no
87962:
1.1.1.3 ! misho 87963: { echo "$as_me:$LINENO: checking for Firebird support for PDO" >&5
! 87964: echo $ECHO_N "checking for Firebird support for PDO... $ECHO_C" >&6; }
1.1 misho 87965:
87966: # Check whether --with-pdo-firebird was given.
1.1.1.3 ! misho 87967: if test "${with_pdo_firebird+set}" = set; then
1.1 misho 87968: withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval
87969: else
87970:
87971: PHP_PDO_FIREBIRD=no
87972: test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL
87973:
87974: fi
87975:
87976:
87977:
87978: ext_output="yes, shared"
87979: ext_shared=yes
87980: case $PHP_PDO_FIREBIRD in
87981: shared,*)
87982: PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'`
87983: ;;
87984: shared)
87985: PHP_PDO_FIREBIRD=yes
87986: ;;
87987: no)
87988: ext_output=no
87989: ext_shared=no
87990: ;;
87991: *)
87992: ext_output=yes
87993: ext_shared=no
87994: ;;
87995: esac
87996:
87997:
87998:
1.1.1.3 ! misho 87999: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 88000: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 88001:
88002:
88003:
88004:
88005: if test "$PHP_PDO_FIREBIRD" != "no"; then
88006:
88007: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 88008: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 88009: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 88010: { (exit 1); exit 1; }; }
1.1 misho 88011: fi
88012:
88013: if test "$PHP_PDO_FIREBIRD" = "yes"; then
88014: FIREBIRD_INCDIR=
88015: FIREBIRD_LIBDIR=
88016: FIREBIRD_LIBDIR_FLAG=
88017: else
88018: FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include
88019: FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR
88020: FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR
88021: fi
88022:
88023:
88024: save_old_LDFLAGS=$LDFLAGS
88025: ac_stuff="
88026: $FIREBIRD_LIBDIR_FLAG
88027: "
88028:
88029: save_ext_shared=$ext_shared
88030: ext_shared=yes
88031:
88032: for ac_i in $ac_stuff; do
88033: case $ac_i in
88034: -pthread)
88035: if test "$ext_shared" = "yes"; then
88036: LDFLAGS="$LDFLAGS -pthread"
88037: else
88038:
88039:
88040: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88041:
88042: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88043: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88044: eval "EXTRA_LDFLAGS$unique=set"
88045: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88046: fi
88047:
88048: fi
88049: ;;
88050: -l*)
88051: ac_ii=`echo $ac_i|cut -c 3-`
88052:
88053:
88054: case $ac_ii in
88055: c|c_r|pthread*) ;;
88056: *)
88057: if test "$ext_shared" = "yes"; then
88058: LDFLAGS="$LDFLAGS -l$ac_ii"
88059: else
88060:
88061:
88062: case $ac_ii in
88063: c|c_r|pthread*) ;;
88064: *)
88065: LIBS="$LIBS -l$ac_ii"
88066: ;;
88067: esac
88068:
88069:
88070: fi
88071: ;;
88072: esac
88073:
88074:
88075: ;;
88076: -L*)
88077: ac_ii=`echo $ac_i|cut -c 3-`
88078:
88079: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88080:
88081: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88082: ai_p=$ac_ii
88083: else
88084:
88085: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88086:
88087: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88088: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88089: fi
88090:
88091:
88092: if test "$ext_shared" = "yes"; then
88093: LDFLAGS="-L$ai_p $LDFLAGS"
88094: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88095: else
88096:
88097:
88098:
88099: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88100:
88101: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88102: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88103: eval "LIBPATH$unique=set"
88104:
88105: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88106: LDFLAGS="$LDFLAGS -L$ai_p"
88107: PHP_RPATHS="$PHP_RPATHS $ai_p"
88108:
88109: fi
88110:
88111:
88112: fi
88113:
88114: fi
88115:
88116: ;;
88117: esac
88118: done
88119:
1.1.1.3 ! misho 88120: { echo "$as_me:$LINENO: checking for isc_detach_database in -lfbclient" >&5
! 88121: echo $ECHO_N "checking for isc_detach_database in -lfbclient... $ECHO_C" >&6; }
! 88122: if test "${ac_cv_lib_fbclient_isc_detach_database+set}" = set; then
! 88123: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 88124: else
88125: ac_check_lib_save_LIBS=$LIBS
88126: LIBS="-lfbclient $LIBS"
1.1.1.3 ! misho 88127: cat >conftest.$ac_ext <<_ACEOF
! 88128: /* confdefs.h. */
! 88129: _ACEOF
! 88130: cat confdefs.h >>conftest.$ac_ext
! 88131: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 88132: /* end confdefs.h. */
88133:
88134: /* Override any GCC internal prototype to avoid an error.
88135: Use char because int might match the return type of a GCC
88136: builtin and then its argument prototype would still apply. */
88137: #ifdef __cplusplus
88138: extern "C"
88139: #endif
88140: char isc_detach_database ();
88141: int
88142: main ()
88143: {
88144: return isc_detach_database ();
88145: ;
88146: return 0;
88147: }
88148: _ACEOF
1.1.1.3 ! misho 88149: rm -f conftest.$ac_objext conftest$ac_exeext
! 88150: if { (ac_try="$ac_link"
! 88151: case "(($ac_try" in
! 88152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 88153: *) ac_try_echo=$ac_try;;
! 88154: esac
! 88155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 88156: (eval "$ac_link") 2>conftest.er1
! 88157: ac_status=$?
! 88158: grep -v '^ *+' conftest.er1 >conftest.err
! 88159: rm -f conftest.er1
! 88160: cat conftest.err >&5
! 88161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 88162: (exit $ac_status); } && {
! 88163: test -z "$ac_c_werror_flag" ||
! 88164: test ! -s conftest.err
! 88165: } && test -s conftest$ac_exeext &&
! 88166: $as_test_x conftest$ac_exeext; then
1.1 misho 88167: ac_cv_lib_fbclient_isc_detach_database=yes
88168: else
1.1.1.3 ! misho 88169: echo "$as_me: failed program was:" >&5
! 88170: sed 's/^/| /' conftest.$ac_ext >&5
! 88171:
! 88172: ac_cv_lib_fbclient_isc_detach_database=no
1.1 misho 88173: fi
1.1.1.3 ! misho 88174:
! 88175: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 88176: conftest$ac_exeext conftest.$ac_ext
1.1 misho 88177: LIBS=$ac_check_lib_save_LIBS
88178: fi
1.1.1.3 ! misho 88179: { echo "$as_me:$LINENO: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
! 88180: echo "${ECHO_T}$ac_cv_lib_fbclient_isc_detach_database" >&6; }
! 88181: if test $ac_cv_lib_fbclient_isc_detach_database = yes; then
1.1 misho 88182:
88183: LDFLAGS=$save_old_LDFLAGS
88184: ext_shared=$save_ext_shared
88185:
88186: FIREBIRD_LIBNAME=fbclient
88187:
88188:
88189: else
88190:
88191: LDFLAGS=$save_old_LDFLAGS
88192: ext_shared=$save_ext_shared
88193: unset ac_cv_lib_fbclient_isc_detach_database
88194:
88195:
88196: save_old_LDFLAGS=$LDFLAGS
88197: ac_stuff="
88198: $FIREBIRD_LIBDIR_FLAG
88199: "
88200:
88201: save_ext_shared=$ext_shared
88202: ext_shared=yes
88203:
88204: for ac_i in $ac_stuff; do
88205: case $ac_i in
88206: -pthread)
88207: if test "$ext_shared" = "yes"; then
88208: LDFLAGS="$LDFLAGS -pthread"
88209: else
88210:
88211:
88212: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88213:
88214: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88215: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88216: eval "EXTRA_LDFLAGS$unique=set"
88217: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88218: fi
88219:
88220: fi
88221: ;;
88222: -l*)
88223: ac_ii=`echo $ac_i|cut -c 3-`
88224:
88225:
88226: case $ac_ii in
88227: c|c_r|pthread*) ;;
88228: *)
88229: if test "$ext_shared" = "yes"; then
88230: LDFLAGS="$LDFLAGS -l$ac_ii"
88231: else
88232:
88233:
88234: case $ac_ii in
88235: c|c_r|pthread*) ;;
88236: *)
88237: LIBS="$LIBS -l$ac_ii"
88238: ;;
88239: esac
88240:
88241:
88242: fi
88243: ;;
88244: esac
88245:
88246:
88247: ;;
88248: -L*)
88249: ac_ii=`echo $ac_i|cut -c 3-`
88250:
88251: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88252:
88253: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88254: ai_p=$ac_ii
88255: else
88256:
88257: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88258:
88259: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88260: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88261: fi
88262:
88263:
88264: if test "$ext_shared" = "yes"; then
88265: LDFLAGS="-L$ai_p $LDFLAGS"
88266: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88267: else
88268:
88269:
88270:
88271: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88272:
88273: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88274: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88275: eval "LIBPATH$unique=set"
88276:
88277: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88278: LDFLAGS="$LDFLAGS -L$ai_p"
88279: PHP_RPATHS="$PHP_RPATHS $ai_p"
88280:
88281: fi
88282:
88283:
88284: fi
88285:
88286: fi
88287:
88288: ;;
88289: esac
88290: done
88291:
1.1.1.3 ! misho 88292: { echo "$as_me:$LINENO: checking for isc_detach_database in -lgds" >&5
! 88293: echo $ECHO_N "checking for isc_detach_database in -lgds... $ECHO_C" >&6; }
! 88294: if test "${ac_cv_lib_gds_isc_detach_database+set}" = set; then
! 88295: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 88296: else
88297: ac_check_lib_save_LIBS=$LIBS
88298: LIBS="-lgds $LIBS"
1.1.1.3 ! misho 88299: cat >conftest.$ac_ext <<_ACEOF
! 88300: /* confdefs.h. */
! 88301: _ACEOF
! 88302: cat confdefs.h >>conftest.$ac_ext
! 88303: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 88304: /* end confdefs.h. */
88305:
88306: /* Override any GCC internal prototype to avoid an error.
88307: Use char because int might match the return type of a GCC
88308: builtin and then its argument prototype would still apply. */
88309: #ifdef __cplusplus
88310: extern "C"
88311: #endif
88312: char isc_detach_database ();
88313: int
88314: main ()
88315: {
88316: return isc_detach_database ();
88317: ;
88318: return 0;
88319: }
88320: _ACEOF
1.1.1.3 ! misho 88321: rm -f conftest.$ac_objext conftest$ac_exeext
! 88322: if { (ac_try="$ac_link"
! 88323: case "(($ac_try" in
! 88324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 88325: *) ac_try_echo=$ac_try;;
! 88326: esac
! 88327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 88328: (eval "$ac_link") 2>conftest.er1
! 88329: ac_status=$?
! 88330: grep -v '^ *+' conftest.er1 >conftest.err
! 88331: rm -f conftest.er1
! 88332: cat conftest.err >&5
! 88333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 88334: (exit $ac_status); } && {
! 88335: test -z "$ac_c_werror_flag" ||
! 88336: test ! -s conftest.err
! 88337: } && test -s conftest$ac_exeext &&
! 88338: $as_test_x conftest$ac_exeext; then
1.1 misho 88339: ac_cv_lib_gds_isc_detach_database=yes
88340: else
1.1.1.3 ! misho 88341: echo "$as_me: failed program was:" >&5
! 88342: sed 's/^/| /' conftest.$ac_ext >&5
! 88343:
! 88344: ac_cv_lib_gds_isc_detach_database=no
1.1 misho 88345: fi
1.1.1.3 ! misho 88346:
! 88347: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 88348: conftest$ac_exeext conftest.$ac_ext
1.1 misho 88349: LIBS=$ac_check_lib_save_LIBS
88350: fi
1.1.1.3 ! misho 88351: { echo "$as_me:$LINENO: result: $ac_cv_lib_gds_isc_detach_database" >&5
! 88352: echo "${ECHO_T}$ac_cv_lib_gds_isc_detach_database" >&6; }
! 88353: if test $ac_cv_lib_gds_isc_detach_database = yes; then
1.1 misho 88354:
88355: LDFLAGS=$save_old_LDFLAGS
88356: ext_shared=$save_ext_shared
88357:
88358: FIREBIRD_LIBNAME=gds
88359:
88360:
88361: else
88362:
88363: LDFLAGS=$save_old_LDFLAGS
88364: ext_shared=$save_ext_shared
88365: unset ac_cv_lib_gds_isc_detach_database
88366:
88367:
88368: save_old_LDFLAGS=$LDFLAGS
88369: ac_stuff="
88370: $FIREBIRD_LIBDIR_FLAG
88371: "
88372:
88373: save_ext_shared=$ext_shared
88374: ext_shared=yes
88375:
88376: for ac_i in $ac_stuff; do
88377: case $ac_i in
88378: -pthread)
88379: if test "$ext_shared" = "yes"; then
88380: LDFLAGS="$LDFLAGS -pthread"
88381: else
88382:
88383:
88384: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88385:
88386: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88387: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88388: eval "EXTRA_LDFLAGS$unique=set"
88389: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88390: fi
88391:
88392: fi
88393: ;;
88394: -l*)
88395: ac_ii=`echo $ac_i|cut -c 3-`
88396:
88397:
88398: case $ac_ii in
88399: c|c_r|pthread*) ;;
88400: *)
88401: if test "$ext_shared" = "yes"; then
88402: LDFLAGS="$LDFLAGS -l$ac_ii"
88403: else
88404:
88405:
88406: case $ac_ii in
88407: c|c_r|pthread*) ;;
88408: *)
88409: LIBS="$LIBS -l$ac_ii"
88410: ;;
88411: esac
88412:
88413:
88414: fi
88415: ;;
88416: esac
88417:
88418:
88419: ;;
88420: -L*)
88421: ac_ii=`echo $ac_i|cut -c 3-`
88422:
88423: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88424:
88425: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88426: ai_p=$ac_ii
88427: else
88428:
88429: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88430:
88431: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88432: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88433: fi
88434:
88435:
88436: if test "$ext_shared" = "yes"; then
88437: LDFLAGS="-L$ai_p $LDFLAGS"
88438: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88439: else
88440:
88441:
88442:
88443: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88444:
88445: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88446: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88447: eval "LIBPATH$unique=set"
88448:
88449: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88450: LDFLAGS="$LDFLAGS -L$ai_p"
88451: PHP_RPATHS="$PHP_RPATHS $ai_p"
88452:
88453: fi
88454:
88455:
88456: fi
88457:
88458: fi
88459:
88460: ;;
88461: esac
88462: done
88463:
1.1.1.3 ! misho 88464: { echo "$as_me:$LINENO: checking for isc_detach_database in -lib_util" >&5
! 88465: echo $ECHO_N "checking for isc_detach_database in -lib_util... $ECHO_C" >&6; }
! 88466: if test "${ac_cv_lib_ib_util_isc_detach_database+set}" = set; then
! 88467: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 88468: else
88469: ac_check_lib_save_LIBS=$LIBS
88470: LIBS="-lib_util $LIBS"
1.1.1.3 ! misho 88471: cat >conftest.$ac_ext <<_ACEOF
! 88472: /* confdefs.h. */
! 88473: _ACEOF
! 88474: cat confdefs.h >>conftest.$ac_ext
! 88475: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 88476: /* end confdefs.h. */
88477:
88478: /* Override any GCC internal prototype to avoid an error.
88479: Use char because int might match the return type of a GCC
88480: builtin and then its argument prototype would still apply. */
88481: #ifdef __cplusplus
88482: extern "C"
88483: #endif
88484: char isc_detach_database ();
88485: int
88486: main ()
88487: {
88488: return isc_detach_database ();
88489: ;
88490: return 0;
88491: }
88492: _ACEOF
1.1.1.3 ! misho 88493: rm -f conftest.$ac_objext conftest$ac_exeext
! 88494: if { (ac_try="$ac_link"
! 88495: case "(($ac_try" in
! 88496: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 88497: *) ac_try_echo=$ac_try;;
! 88498: esac
! 88499: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 88500: (eval "$ac_link") 2>conftest.er1
! 88501: ac_status=$?
! 88502: grep -v '^ *+' conftest.er1 >conftest.err
! 88503: rm -f conftest.er1
! 88504: cat conftest.err >&5
! 88505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 88506: (exit $ac_status); } && {
! 88507: test -z "$ac_c_werror_flag" ||
! 88508: test ! -s conftest.err
! 88509: } && test -s conftest$ac_exeext &&
! 88510: $as_test_x conftest$ac_exeext; then
1.1 misho 88511: ac_cv_lib_ib_util_isc_detach_database=yes
88512: else
1.1.1.3 ! misho 88513: echo "$as_me: failed program was:" >&5
! 88514: sed 's/^/| /' conftest.$ac_ext >&5
! 88515:
! 88516: ac_cv_lib_ib_util_isc_detach_database=no
1.1 misho 88517: fi
1.1.1.3 ! misho 88518:
! 88519: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 88520: conftest$ac_exeext conftest.$ac_ext
1.1 misho 88521: LIBS=$ac_check_lib_save_LIBS
88522: fi
1.1.1.3 ! misho 88523: { echo "$as_me:$LINENO: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
! 88524: echo "${ECHO_T}$ac_cv_lib_ib_util_isc_detach_database" >&6; }
! 88525: if test $ac_cv_lib_ib_util_isc_detach_database = yes; then
1.1 misho 88526:
88527: LDFLAGS=$save_old_LDFLAGS
88528: ext_shared=$save_ext_shared
88529:
88530: FIREBIRD_LIBNAME=ib_util
88531:
88532:
88533: else
88534:
88535: LDFLAGS=$save_old_LDFLAGS
88536: ext_shared=$save_ext_shared
88537: unset ac_cv_lib_ib_util_isc_detach_database
88538:
1.1.1.3 ! misho 88539: { { echo "$as_me:$LINENO: error: libfbclient, libgds or libib_util not found! Check config.log for more information." >&5
! 88540: echo "$as_me: error: libfbclient, libgds or libib_util not found! Check config.log for more information." >&2;}
! 88541: { (exit 1); exit 1; }; }
1.1 misho 88542:
88543:
88544: fi
88545:
88546:
88547:
88548: fi
88549:
88550:
88551:
88552: fi
88553:
88554:
88555:
1.1.1.3 ! misho 88556: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 88557: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 88558: if test "${pdo_cv_inc_path+set}" = set; then
! 88559: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 88560: else
88561:
1.1.1.3 ! misho 88562: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 88563: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 88564: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 88565: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 88566: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 88567: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 88568: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 88569: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 88570: fi
88571:
88572: fi
1.1.1.3 ! misho 88573: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 88574: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 88575: if test -n "$pdo_cv_inc_path"; then
1.1 misho 88576: :
88577: else
1.1.1.3 ! misho 88578: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 88579: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 88580: { (exit 1); exit 1; }; }
1.1 misho 88581: fi
88582:
88583:
88584:
88585:
88586: if test "$ext_shared" = "yes"; then
88587: PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD"
88588: if test -n "$FIREBIRD_LIBDIR"; then
88589:
88590: if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
88591:
88592: if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
88593: ai_p=$FIREBIRD_LIBDIR
88594: else
88595:
88596: ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88597:
88598: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88599: ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
88600: fi
88601:
88602:
88603: if test "$ext_shared" = "yes"; then
88604: PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
88605: test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
88606: else
88607:
88608:
88609:
88610: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88611:
88612: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88613: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88614: eval "LIBPATH$unique=set"
88615:
88616: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88617: LDFLAGS="$LDFLAGS -L$ai_p"
88618: PHP_RPATHS="$PHP_RPATHS $ai_p"
88619:
88620: fi
88621:
88622:
88623: fi
88624:
88625: fi
88626:
88627: fi
88628: else
88629:
88630:
88631: if test -n "$FIREBIRD_LIBDIR"; then
88632:
88633: if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
88634:
88635: if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
88636: ai_p=$FIREBIRD_LIBDIR
88637: else
88638:
88639: ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88640:
88641: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88642: ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
88643: fi
88644:
88645:
88646:
88647:
88648:
88649: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88650:
88651: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88652: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88653: eval "LIBPATH$unique=set"
88654:
88655: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88656: LDFLAGS="$LDFLAGS -L$ai_p"
88657: PHP_RPATHS="$PHP_RPATHS $ai_p"
88658:
88659: fi
88660:
88661:
88662:
88663: fi
88664:
88665: fi
88666:
88667:
88668: case $FIREBIRD_LIBNAME in
88669: c|c_r|pthread*) ;;
88670: *)
88671: LIBS="-l$FIREBIRD_LIBNAME $LIBS"
88672: ;;
88673: esac
88674:
88675:
88676:
88677:
88678: fi
88679:
88680:
88681:
88682: if test "$FIREBIRD_INCDIR" != "/usr/include"; then
88683:
88684: if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then
88685: ai_p=$FIREBIRD_INCDIR
88686: else
88687:
88688: ep_dir="`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88689:
88690: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88691: ai_p="$ep_realdir/`basename \"$FIREBIRD_INCDIR\"`"
88692: fi
88693:
88694:
88695:
88696: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88697:
88698: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
88699: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88700: eval "INCLUDEPATH$unique=set"
88701:
88702: if test ""; then
88703: INCLUDES="-I$ai_p $INCLUDES"
88704: else
88705: INCLUDES="$INCLUDES -I$ai_p"
88706: fi
88707:
88708: fi
88709:
88710: fi
88711:
88712:
1.1.1.3 ! misho 88713: cat >>confdefs.h <<\_ACEOF
! 88714: #define HAVE_PDO_FIREBIRD 1
! 88715: _ACEOF
1.1 misho 88716:
88717:
88718: ext_builddir=ext/pdo_firebird
88719: ext_srcdir=$abs_srcdir/ext/pdo_firebird
88720:
1.1.1.2 misho 88721: ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 88722:
88723: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
88724: PHP_PDO_FIREBIRD_SHARED=no
88725:
88726:
88727: case ext/pdo_firebird in
88728: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88729: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88730: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88731: esac
88732:
88733:
88734:
88735: b_c_pre=$php_c_pre
88736: b_cxx_pre=$php_cxx_pre
88737: b_c_meta=$php_c_meta
88738: b_cxx_meta=$php_cxx_meta
88739: b_c_post=$php_c_post
88740: b_cxx_post=$php_cxx_post
88741: b_lo=$php_lo
88742:
88743:
88744: old_IFS=$IFS
88745: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88746:
88747: IFS=.
88748: set $ac_src
88749: ac_obj=$1
88750: IFS=$old_IFS
88751:
88752: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
88753:
88754: case $ac_src in
88755: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88756: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88757: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88758: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88759: esac
88760:
88761: cat >>Makefile.objects<<EOF
88762: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88763: $ac_comp
88764: EOF
88765: done
88766:
88767:
88768: EXT_STATIC="$EXT_STATIC pdo_firebird"
88769: if test "$ext_shared" != "nocli"; then
88770: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
88771: fi
88772: else
88773: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
88774: PHP_PDO_FIREBIRD_SHARED=yes
88775:
88776: case ext/pdo_firebird in
88777: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88778: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88779: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88780: esac
88781:
88782:
88783:
88784: b_c_pre=$shared_c_pre
88785: b_cxx_pre=$shared_cxx_pre
88786: b_c_meta=$shared_c_meta
88787: b_cxx_meta=$shared_cxx_meta
88788: b_c_post=$shared_c_post
88789: b_cxx_post=$shared_cxx_post
88790: b_lo=$shared_lo
88791:
88792:
88793: old_IFS=$IFS
88794: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88795:
88796: IFS=.
88797: set $ac_src
88798: ac_obj=$1
88799: IFS=$old_IFS
88800:
88801: shared_objects_pdo_firebird="$shared_objects_pdo_firebird $ac_bdir$ac_obj.lo"
88802:
88803: case $ac_src in
88804: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88805: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88806: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88807: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88808: esac
88809:
88810: cat >>Makefile.objects<<EOF
88811: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88812: $ac_comp
88813: EOF
88814: done
88815:
88816: case $host_alias in
88817: *netware*)
88818:
88819: install_modules="install-modules"
88820:
88821: case $host_alias in
88822: *aix*)
88823: suffix=so
88824: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_firebird.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PHPPDO_FIREBIRD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_firebird.so '$ext_builddir'/phppdo_firebird.so'
88825: ;;
88826: *netware*)
88827: suffix=nlm
88828: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) -L$(top_builddir)/netware -lphp5lib $(PDO_FIREBIRD_SHARED_LIBADD)'
88829: ;;
88830: *)
88831: suffix=la
88832: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PHPPDO_FIREBIRD_SHARED_LIBADD)'
88833: ;;
88834: esac
88835:
88836: if test "x" = "xyes"; then
88837: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_firebird.$suffix"
88838: else
88839: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_firebird.$suffix"
88840: fi
88841:
88842: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
88843:
88844: cat >>Makefile.objects<<EOF
88845: \$(phplibdir)/phppdo_firebird.$suffix: $ext_builddir/phppdo_firebird.$suffix
88846: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_firebird.$suffix \$(phplibdir)
88847:
88848: $ext_builddir/phppdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PHPPDO_FIREBIRD_SHARED_DEPENDENCIES)
88849: $link_cmd
88850:
88851: EOF
88852:
88853: ;;
88854: *)
88855:
88856: install_modules="install-modules"
88857:
88858: case $host_alias in
88859: *aix*)
88860: suffix=so
88861: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_firebird.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PDO_FIREBIRD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_firebird.so '$ext_builddir'/pdo_firebird.so'
88862: ;;
88863: *netware*)
88864: suffix=nlm
88865: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) -L$(top_builddir)/netware -lphp5lib $(_FIREBIRD_SHARED_LIBADD)'
88866: ;;
88867: *)
88868: suffix=la
88869: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PDO_FIREBIRD_SHARED_LIBADD)'
88870: ;;
88871: esac
88872:
88873: if test "x" = "xyes"; then
88874: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_firebird.$suffix"
88875: else
88876: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_firebird.$suffix"
88877: fi
88878:
88879: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
88880:
88881: cat >>Makefile.objects<<EOF
88882: \$(phplibdir)/pdo_firebird.$suffix: $ext_builddir/pdo_firebird.$suffix
88883: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_firebird.$suffix \$(phplibdir)
88884:
88885: $ext_builddir/pdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_DEPENDENCIES)
88886: $link_cmd
88887:
88888: EOF
88889:
88890: ;;
88891: esac
88892:
88893: cat >>confdefs.h <<_ACEOF
88894: #define COMPILE_DL_PDO_FIREBIRD 1
88895: _ACEOF
88896:
88897: fi
88898: fi
88899:
88900: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
88901: PHP_PDO_FIREBIRD_SHARED=no
1.1.1.3 ! misho 88902: case "$PHP_SAPI" in
! 88903: cgi|embed)
1.1 misho 88904:
88905:
88906: case ext/pdo_firebird in
88907: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88908: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88909: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88910: esac
88911:
88912:
88913:
88914: b_c_pre=$php_c_pre
88915: b_cxx_pre=$php_cxx_pre
88916: b_c_meta=$php_c_meta
88917: b_cxx_meta=$php_cxx_meta
88918: b_c_post=$php_c_post
88919: b_cxx_post=$php_cxx_post
88920: b_lo=$php_lo
88921:
88922:
88923: old_IFS=$IFS
88924: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88925:
88926: IFS=.
88927: set $ac_src
88928: ac_obj=$1
88929: IFS=$old_IFS
88930:
1.1.1.2 misho 88931: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 88932:
88933: case $ac_src in
88934: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88935: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88936: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88937: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88938: esac
88939:
88940: cat >>Makefile.objects<<EOF
88941: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88942: $ac_comp
88943: EOF
88944: done
88945:
88946:
1.1.1.3 ! misho 88947: EXT_STATIC="$EXT_STATIC pdo_firebird"
! 88948: ;;
! 88949: *)
1.1 misho 88950:
88951:
88952: case ext/pdo_firebird in
88953: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88954: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88955: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88956: esac
88957:
88958:
88959:
88960: b_c_pre=$php_c_pre
88961: b_cxx_pre=$php_cxx_pre
88962: b_c_meta=$php_c_meta
88963: b_cxx_meta=$php_cxx_meta
88964: b_c_post=$php_c_post
88965: b_cxx_post=$php_cxx_post
88966: b_lo=$php_lo
88967:
88968:
88969: old_IFS=$IFS
88970: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88971:
88972: IFS=.
88973: set $ac_src
88974: ac_obj=$1
88975: IFS=$old_IFS
88976:
1.1.1.2 misho 88977: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 88978:
88979: case $ac_src in
88980: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88981: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88982: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88983: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88984: esac
88985:
88986: cat >>Makefile.objects<<EOF
88987: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88988: $ac_comp
88989: EOF
88990: done
88991:
88992:
1.1.1.3 ! misho 88993: ;;
! 88994: esac
1.1 misho 88995: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
88996: fi
88997:
88998:
88999: BUILD_DIR="$BUILD_DIR $ext_builddir"
89000:
89001:
89002:
89003: if test "$ext_builddir" = "."; then
89004: PHP_PECL_EXTENSION=pdo_firebird
89005:
89006: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
89007:
89008: fi
89009:
89010:
89011: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_FIREBIRD_SHARED_LIBADD"
89012:
89013:
89014: am_i_shared=$PHP_PDO_FIREBIRD_SHARED
89015: is_it_shared=$PHP_PDO_SHARED
89016: is_it_enabled=$PHP_PDO
89017: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 89018: { { echo "$as_me:$LINENO: error:
! 89019: You've configured extension pdo_firebird to build statically, but it
! 89020: depends on extension pdo, which you've configured to build shared.
! 89021: You either need to build pdo_firebird shared or build pdo statically for the
! 89022: build to be successful.
! 89023: " >&5
! 89024: echo "$as_me: error:
1.1 misho 89025: You've configured extension pdo_firebird to build statically, but it
89026: depends on extension pdo, which you've configured to build shared.
89027: You either need to build pdo_firebird shared or build pdo statically for the
89028: build to be successful.
1.1.1.3 ! misho 89029: " >&2;}
! 89030: { (exit 1); exit 1; }; }
! 89031: fi
! 89032: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 89033: { { echo "$as_me:$LINENO: error:
! 89034: You've configured extension pdo_firebird, which depends on extension pdo,
! 89035: but you've either not enabled pdo, or have disabled it.
! 89036: " >&5
! 89037: echo "$as_me: error:
! 89038: You've configured extension pdo_firebird, which depends on extension pdo,
! 89039: but you've either not enabled pdo, or have disabled it.
! 89040: " >&2;}
! 89041: { (exit 1); exit 1; }; }
1.1 misho 89042: fi
89043:
89044: fi
89045:
89046:
89047:
89048: php_with_pdo_mysql=no
89049:
1.1.1.3 ! misho 89050: { echo "$as_me:$LINENO: checking for MySQL support for PDO" >&5
! 89051: echo $ECHO_N "checking for MySQL support for PDO... $ECHO_C" >&6; }
1.1 misho 89052:
89053: # Check whether --with-pdo-mysql was given.
1.1.1.3 ! misho 89054: if test "${with_pdo_mysql+set}" = set; then
1.1 misho 89055: withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval
89056: else
89057:
89058: PHP_PDO_MYSQL=no
89059: test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL
89060:
89061: fi
89062:
89063:
89064:
89065: ext_output="yes, shared"
89066: ext_shared=yes
89067: case $PHP_PDO_MYSQL in
89068: shared,*)
89069: PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'`
89070: ;;
89071: shared)
89072: PHP_PDO_MYSQL=yes
89073: ;;
89074: no)
89075: ext_output=no
89076: ext_shared=no
89077: ;;
89078: *)
89079: ext_output=yes
89080: ext_shared=no
89081: ;;
89082: esac
89083:
89084:
89085:
1.1.1.3 ! misho 89086: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 89087: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 89088:
89089:
89090:
89091:
89092: if test -z "$PHP_ZLIB_DIR"; then
89093:
89094: php_with_zlib_dir=no
89095:
1.1.1.3 ! misho 89096: { echo "$as_me:$LINENO: checking for the location of libz" >&5
! 89097: echo $ECHO_N "checking for the location of libz... $ECHO_C" >&6; }
1.1 misho 89098:
89099: # Check whether --with-zlib-dir was given.
1.1.1.3 ! misho 89100: if test "${with_zlib_dir+set}" = set; then
1.1 misho 89101: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
89102: else
89103:
89104: PHP_ZLIB_DIR=no
89105:
89106:
89107: fi
89108:
89109:
89110: ext_output=$PHP_ZLIB_DIR
1.1.1.3 ! misho 89111: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 89112: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 89113:
89114:
89115:
89116: fi
89117:
89118: if test "$PHP_PDO_MYSQL" != "no"; then
89119:
89120: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 89121: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 89122: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 89123: { (exit 1); exit 1; }; }
1.1 misho 89124: fi
89125:
89126:
89127:
1.1.1.2 misho 89128: if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then
89129: if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then
89130: PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL
89131: else
89132: if test -d "$PHP_PDO_MYSQL" ; then
89133: if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then
89134: PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config"
89135: else
89136: PDO_MYSQL_DIR="$PHP_PDO_MYSQL"
89137: fi
1.1 misho 89138: fi
89139: fi
89140: fi
89141:
1.1.1.2 misho 89142: if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then
1.1 misho 89143: PHP_MYSQLND_ENABLED=yes
89144:
1.1.1.3 ! misho 89145: cat >>confdefs.h <<\_ACEOF
! 89146: #define PDO_USE_MYSQLND 1
! 89147: _ACEOF
1.1 misho 89148:
89149: else
89150:
1.1.1.3 ! misho 89151: cat >>confdefs.h <<\_ACEOF
! 89152: #define HAVE_MYSQL 1
! 89153: _ACEOF
1.1 misho 89154:
89155:
1.1.1.3 ! misho 89156: { echo "$as_me:$LINENO: checking for mysql_config" >&5
! 89157: echo $ECHO_N "checking for mysql_config... $ECHO_C" >&6; }
1.1 misho 89158: if test -n "$PDO_MYSQL_CONFIG"; then
1.1.1.3 ! misho 89159: { echo "$as_me:$LINENO: result: $PDO_MYSQL_CONFIG" >&5
! 89160: echo "${ECHO_T}$PDO_MYSQL_CONFIG" >&6; }
1.1 misho 89161: if test "x$SED" = "x"; then
89162: # Extract the first word of "sed", so it can be a program name with args.
89163: set dummy sed; ac_word=$2
1.1.1.3 ! misho 89164: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 89165: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 89166: if test "${ac_cv_path_SED+set}" = set; then
! 89167: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 89168: else
89169: case $SED in
89170: [\\/]* | ?:[\\/]*)
89171: ac_cv_path_SED="$SED" # Let the user override the test with a path.
89172: ;;
89173: *)
89174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89175: for as_dir in $PATH
89176: do
89177: IFS=$as_save_IFS
89178: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 89179: for ac_exec_ext in '' $ac_executable_extensions; do
! 89180: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 89181: ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 89182: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 89183: break 2
89184: fi
89185: done
1.1.1.3 ! misho 89186: done
1.1 misho 89187: IFS=$as_save_IFS
89188:
89189: ;;
89190: esac
89191: fi
89192: SED=$ac_cv_path_SED
89193: if test -n "$SED"; then
1.1.1.3 ! misho 89194: { echo "$as_me:$LINENO: result: $SED" >&5
! 89195: echo "${ECHO_T}$SED" >&6; }
1.1 misho 89196: else
1.1.1.3 ! misho 89197: { echo "$as_me:$LINENO: result: no" >&5
! 89198: echo "${ECHO_T}no" >&6; }
1.1 misho 89199: fi
89200:
89201:
89202: fi
89203: if test "$enable_maintainer_zts" = "yes"; then
89204: PDO_MYSQL_LIBNAME=mysqlclient_r
89205: PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"`
89206: else
89207: PDO_MYSQL_LIBNAME=mysqlclient
89208: PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
89209: fi
89210: PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
89211: elif test -n "$PDO_MYSQL_DIR"; then
1.1.1.3 ! misho 89212: { echo "$as_me:$LINENO: result: not found" >&5
! 89213: echo "${ECHO_T}not found" >&6; }
! 89214: { echo "$as_me:$LINENO: checking for mysql install under $PDO_MYSQL_DIR" >&5
! 89215: echo $ECHO_N "checking for mysql install under $PDO_MYSQL_DIR... $ECHO_C" >&6; }
1.1 misho 89216: if test -r $PDO_MYSQL_DIR/include/mysql; then
89217: PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql
89218: else
89219: PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include
89220: fi
89221: if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then
89222: PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql
89223: else
89224: PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR
89225: fi
89226:
89227: if test -r "$PDO_MYSQL_LIB_DIR"; then
1.1.1.3 ! misho 89228: { echo "$as_me:$LINENO: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5
! 89229: echo "${ECHO_T}libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; }
1.1 misho 89230: else
1.1.1.3 ! misho 89231: { echo "$as_me:$LINENO: result: can not find it" >&5
! 89232: echo "${ECHO_T}can not find it" >&6; }
! 89233: { { echo "$as_me:$LINENO: error: Unable to find your mysql installation" >&5
! 89234: echo "$as_me: error: Unable to find your mysql installation" >&2;}
! 89235: { (exit 1); exit 1; }; }
1.1 misho 89236: fi
89237:
89238:
89239: if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then
89240:
89241: if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
89242: ai_p=$PDO_MYSQL_INC_DIR
89243: else
89244:
89245: ep_dir="`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
89246:
89247: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89248: ai_p="$ep_realdir/`basename \"$PDO_MYSQL_INC_DIR\"`"
89249: fi
89250:
89251:
89252:
89253: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89254:
89255: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
89256: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89257: eval "INCLUDEPATH$unique=set"
89258:
89259: if test ""; then
89260: INCLUDES="-I$ai_p $INCLUDES"
89261: else
89262: INCLUDES="$INCLUDES -I$ai_p"
89263: fi
89264:
89265: fi
89266:
89267: fi
89268:
89269: PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR
89270: else
1.1.1.3 ! misho 89271: { echo "$as_me:$LINENO: result: not found" >&5
! 89272: echo "${ECHO_T}not found" >&6; }
! 89273: { { echo "$as_me:$LINENO: error: Unable to find your mysql installation" >&5
! 89274: echo "$as_me: error: Unable to find your mysql installation" >&2;}
! 89275: { (exit 1); exit 1; }; }
1.1 misho 89276: fi
89277:
89278:
89279: save_old_LDFLAGS=$LDFLAGS
89280: ac_stuff="
89281: $PDO_MYSQL_LIBS
89282: "
89283:
89284: save_ext_shared=$ext_shared
89285: ext_shared=yes
89286:
89287: for ac_i in $ac_stuff; do
89288: case $ac_i in
89289: -pthread)
89290: if test "$ext_shared" = "yes"; then
89291: LDFLAGS="$LDFLAGS -pthread"
89292: else
89293:
89294:
89295: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89296:
89297: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89298: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89299: eval "EXTRA_LDFLAGS$unique=set"
89300: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89301: fi
89302:
89303: fi
89304: ;;
89305: -l*)
89306: ac_ii=`echo $ac_i|cut -c 3-`
89307:
89308:
89309: case $ac_ii in
89310: c|c_r|pthread*) ;;
89311: *)
89312: if test "$ext_shared" = "yes"; then
89313: LDFLAGS="$LDFLAGS -l$ac_ii"
89314: else
89315:
89316:
89317: case $ac_ii in
89318: c|c_r|pthread*) ;;
89319: *)
89320: LIBS="$LIBS -l$ac_ii"
89321: ;;
89322: esac
89323:
89324:
89325: fi
89326: ;;
89327: esac
89328:
89329:
89330: ;;
89331: -L*)
89332: ac_ii=`echo $ac_i|cut -c 3-`
89333:
89334: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89335:
89336: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89337: ai_p=$ac_ii
89338: else
89339:
89340: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89341:
89342: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89343: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89344: fi
89345:
89346:
89347: if test "$ext_shared" = "yes"; then
89348: LDFLAGS="-L$ai_p $LDFLAGS"
89349: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
89350: else
89351:
89352:
89353:
89354: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89355:
89356: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89357: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89358: eval "LIBPATH$unique=set"
89359:
89360: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89361: LDFLAGS="$LDFLAGS -L$ai_p"
89362: PHP_RPATHS="$PHP_RPATHS $ai_p"
89363:
89364: fi
89365:
89366:
89367: fi
89368:
89369: fi
89370:
89371: ;;
89372: esac
89373: done
89374:
1.1.1.3 ! misho 89375: as_ac_Lib=`echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
! 89376: { echo "$as_me:$LINENO: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
! 89377: echo $ECHO_N "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... $ECHO_C" >&6; }
! 89378: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 89379: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 89380: else
89381: ac_check_lib_save_LIBS=$LIBS
89382: LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 89383: cat >conftest.$ac_ext <<_ACEOF
! 89384: /* confdefs.h. */
! 89385: _ACEOF
! 89386: cat confdefs.h >>conftest.$ac_ext
! 89387: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 89388: /* end confdefs.h. */
89389:
89390: /* Override any GCC internal prototype to avoid an error.
89391: Use char because int might match the return type of a GCC
89392: builtin and then its argument prototype would still apply. */
89393: #ifdef __cplusplus
89394: extern "C"
89395: #endif
1.1.1.2 misho 89396: char mysql_commit ();
1.1 misho 89397: int
89398: main ()
89399: {
1.1.1.2 misho 89400: return mysql_commit ();
1.1 misho 89401: ;
89402: return 0;
89403: }
89404: _ACEOF
1.1.1.3 ! misho 89405: rm -f conftest.$ac_objext conftest$ac_exeext
! 89406: if { (ac_try="$ac_link"
! 89407: case "(($ac_try" in
! 89408: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 89409: *) ac_try_echo=$ac_try;;
! 89410: esac
! 89411: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 89412: (eval "$ac_link") 2>conftest.er1
! 89413: ac_status=$?
! 89414: grep -v '^ *+' conftest.er1 >conftest.err
! 89415: rm -f conftest.er1
! 89416: cat conftest.err >&5
! 89417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 89418: (exit $ac_status); } && {
! 89419: test -z "$ac_c_werror_flag" ||
! 89420: test ! -s conftest.err
! 89421: } && test -s conftest$ac_exeext &&
! 89422: $as_test_x conftest$ac_exeext; then
1.1 misho 89423: eval "$as_ac_Lib=yes"
89424: else
1.1.1.3 ! misho 89425: echo "$as_me: failed program was:" >&5
! 89426: sed 's/^/| /' conftest.$ac_ext >&5
! 89427:
! 89428: eval "$as_ac_Lib=no"
1.1 misho 89429: fi
1.1.1.3 ! misho 89430:
! 89431: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 89432: conftest$ac_exeext conftest.$ac_ext
1.1 misho 89433: LIBS=$ac_check_lib_save_LIBS
89434: fi
1.1.1.3 ! misho 89435: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 89436: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 89437: echo "${ECHO_T}$ac_res" >&6; }
! 89438: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 89439:
89440: LDFLAGS=$save_old_LDFLAGS
89441: ext_shared=$save_ext_shared
89442:
89443:
89444: for ac_i in $PDO_MYSQL_INCLUDE; do
89445: case $ac_i in
89446: -I*)
89447: ac_ii=`echo $ac_i|cut -c 3-`
89448:
89449: if test "$ac_ii" != "/usr/include"; then
89450:
89451: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89452: ai_p=$ac_ii
89453: else
89454:
89455: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89456:
89457: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89458: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89459: fi
89460:
89461:
89462:
89463: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89464:
89465: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
89466: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89467: eval "INCLUDEPATH$unique=set"
89468:
89469: if test ""; then
89470: INCLUDES="-I$ai_p $INCLUDES"
89471: else
89472: INCLUDES="$INCLUDES -I$ai_p"
89473: fi
89474:
89475: fi
89476:
89477: fi
89478:
89479: ;;
89480: esac
89481: done
89482:
89483:
89484: for ac_i in $PDO_MYSQL_LIBS; do
89485: case $ac_i in
89486: -pthread)
89487: if test "$ext_shared" = "yes"; then
89488: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
89489: else
89490:
89491:
89492: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89493:
89494: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89495: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89496: eval "EXTRA_LDFLAGS$unique=set"
89497: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89498: fi
89499:
89500: fi
89501: ;;
89502: -l*)
89503: ac_ii=`echo $ac_i|cut -c 3-`
89504:
89505:
89506: case $ac_ii in
89507: c|c_r|pthread*) ;;
89508: *)
89509: if test "$ext_shared" = "yes"; then
89510: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
89511: else
89512:
89513:
89514: case $ac_ii in
89515: c|c_r|pthread*) ;;
89516: *)
89517: LIBS="$LIBS -l$ac_ii"
89518: ;;
89519: esac
89520:
89521:
89522: fi
89523: ;;
89524: esac
89525:
89526:
89527: ;;
89528: -L*)
89529: ac_ii=`echo $ac_i|cut -c 3-`
89530:
89531: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89532:
89533: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89534: ai_p=$ac_ii
89535: else
89536:
89537: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89538:
89539: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89540: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89541: fi
89542:
89543:
89544: if test "$ext_shared" = "yes"; then
89545: PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
89546: test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
89547: else
89548:
89549:
89550:
89551: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89552:
89553: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89554: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89555: eval "LIBPATH$unique=set"
89556:
89557: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89558: LDFLAGS="$LDFLAGS -L$ai_p"
89559: PHP_RPATHS="$PHP_RPATHS $ai_p"
89560:
89561: fi
89562:
89563:
89564: fi
89565:
89566: fi
89567:
89568: ;;
89569: esac
89570: done
89571:
89572:
89573:
89574: else
89575:
89576: LDFLAGS=$save_old_LDFLAGS
89577: ext_shared=$save_ext_shared
1.1.1.2 misho 89578: unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
1.1 misho 89579:
89580: if test "$PHP_ZLIB_DIR" != "no"; then
89581:
89582:
89583: if test "$ext_shared" = "yes"; then
89584: PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
89585: if test -n "$PHP_ZLIB_DIR"; then
89586:
89587: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
89588:
89589: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
89590: ai_p=$PHP_ZLIB_DIR
89591: else
89592:
89593: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
89594:
89595: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89596: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
89597: fi
89598:
89599:
89600: if test "$ext_shared" = "yes"; then
89601: PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
89602: test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
89603: else
89604:
89605:
89606:
89607: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89608:
89609: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89610: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89611: eval "LIBPATH$unique=set"
89612:
89613: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89614: LDFLAGS="$LDFLAGS -L$ai_p"
89615: PHP_RPATHS="$PHP_RPATHS $ai_p"
89616:
89617: fi
89618:
89619:
89620: fi
89621:
89622: fi
89623:
89624: fi
89625: else
89626:
89627:
89628: if test -n "$PHP_ZLIB_DIR"; then
89629:
89630: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
89631:
89632: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
89633: ai_p=$PHP_ZLIB_DIR
89634: else
89635:
89636: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
89637:
89638: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89639: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
89640: fi
89641:
89642:
89643:
89644:
89645:
89646: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89647:
89648: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89649: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89650: eval "LIBPATH$unique=set"
89651:
89652: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89653: LDFLAGS="$LDFLAGS -L$ai_p"
89654: PHP_RPATHS="$PHP_RPATHS $ai_p"
89655:
89656: fi
89657:
89658:
89659:
89660: fi
89661:
89662: fi
89663:
89664:
89665: case z in
89666: c|c_r|pthread*) ;;
89667: *)
89668: LIBS="-lz $LIBS"
89669: ;;
89670: esac
89671:
89672:
89673:
89674:
89675: fi
89676:
89677:
89678:
89679: save_old_LDFLAGS=$LDFLAGS
89680: ac_stuff="
89681: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR
89682: "
89683:
89684: save_ext_shared=$ext_shared
89685: ext_shared=yes
89686:
89687: for ac_i in $ac_stuff; do
89688: case $ac_i in
89689: -pthread)
89690: if test "$ext_shared" = "yes"; then
89691: LDFLAGS="$LDFLAGS -pthread"
89692: else
89693:
89694:
89695: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89696:
89697: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89698: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89699: eval "EXTRA_LDFLAGS$unique=set"
89700: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89701: fi
89702:
89703: fi
89704: ;;
89705: -l*)
89706: ac_ii=`echo $ac_i|cut -c 3-`
89707:
89708:
89709: case $ac_ii in
89710: c|c_r|pthread*) ;;
89711: *)
89712: if test "$ext_shared" = "yes"; then
89713: LDFLAGS="$LDFLAGS -l$ac_ii"
89714: else
89715:
89716:
89717: case $ac_ii in
89718: c|c_r|pthread*) ;;
89719: *)
89720: LIBS="$LIBS -l$ac_ii"
89721: ;;
89722: esac
89723:
89724:
89725: fi
89726: ;;
89727: esac
89728:
89729:
89730: ;;
89731: -L*)
89732: ac_ii=`echo $ac_i|cut -c 3-`
89733:
89734: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89735:
89736: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89737: ai_p=$ac_ii
89738: else
89739:
89740: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89741:
89742: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89743: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89744: fi
89745:
89746:
89747: if test "$ext_shared" = "yes"; then
89748: LDFLAGS="-L$ai_p $LDFLAGS"
89749: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
89750: else
89751:
89752:
89753:
89754: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89755:
89756: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89757: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89758: eval "LIBPATH$unique=set"
89759:
89760: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89761: LDFLAGS="$LDFLAGS -L$ai_p"
89762: PHP_RPATHS="$PHP_RPATHS $ai_p"
89763:
89764: fi
89765:
89766:
89767: fi
89768:
89769: fi
89770:
89771: ;;
89772: esac
89773: done
89774:
1.1.1.3 ! misho 89775: as_ac_Lib=`echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
! 89776: { echo "$as_me:$LINENO: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
! 89777: echo $ECHO_N "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... $ECHO_C" >&6; }
! 89778: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 89779: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 89780: else
89781: ac_check_lib_save_LIBS=$LIBS
89782: LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 89783: cat >conftest.$ac_ext <<_ACEOF
! 89784: /* confdefs.h. */
! 89785: _ACEOF
! 89786: cat confdefs.h >>conftest.$ac_ext
! 89787: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 89788: /* end confdefs.h. */
89789:
89790: /* Override any GCC internal prototype to avoid an error.
89791: Use char because int might match the return type of a GCC
89792: builtin and then its argument prototype would still apply. */
89793: #ifdef __cplusplus
89794: extern "C"
89795: #endif
1.1.1.2 misho 89796: char mysql_commit ();
1.1 misho 89797: int
89798: main ()
89799: {
1.1.1.2 misho 89800: return mysql_commit ();
1.1 misho 89801: ;
89802: return 0;
89803: }
89804: _ACEOF
1.1.1.3 ! misho 89805: rm -f conftest.$ac_objext conftest$ac_exeext
! 89806: if { (ac_try="$ac_link"
! 89807: case "(($ac_try" in
! 89808: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 89809: *) ac_try_echo=$ac_try;;
! 89810: esac
! 89811: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 89812: (eval "$ac_link") 2>conftest.er1
! 89813: ac_status=$?
! 89814: grep -v '^ *+' conftest.er1 >conftest.err
! 89815: rm -f conftest.er1
! 89816: cat conftest.err >&5
! 89817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 89818: (exit $ac_status); } && {
! 89819: test -z "$ac_c_werror_flag" ||
! 89820: test ! -s conftest.err
! 89821: } && test -s conftest$ac_exeext &&
! 89822: $as_test_x conftest$ac_exeext; then
1.1 misho 89823: eval "$as_ac_Lib=yes"
89824: else
1.1.1.3 ! misho 89825: echo "$as_me: failed program was:" >&5
! 89826: sed 's/^/| /' conftest.$ac_ext >&5
! 89827:
! 89828: eval "$as_ac_Lib=no"
1.1 misho 89829: fi
1.1.1.3 ! misho 89830:
! 89831: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 89832: conftest$ac_exeext conftest.$ac_ext
1.1 misho 89833: LIBS=$ac_check_lib_save_LIBS
89834: fi
1.1.1.3 ! misho 89835: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 89836: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 89837: echo "${ECHO_T}$ac_res" >&6; }
! 89838: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 89839:
89840: LDFLAGS=$save_old_LDFLAGS
89841: ext_shared=$save_ext_shared
89842:
89843:
89844: else
89845:
89846: LDFLAGS=$save_old_LDFLAGS
89847: ext_shared=$save_ext_shared
1.1.1.2 misho 89848: unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
1.1 misho 89849:
1.1.1.3 ! misho 89850: { { echo "$as_me:$LINENO: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." >&5
! 89851: echo "$as_me: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." >&2;}
! 89852: { (exit 1); exit 1; }; }
1.1 misho 89853:
89854:
89855: fi
89856:
89857: PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
89858: else
89859:
89860:
89861: case z in
89862: c|c_r|pthread*) ;;
89863: *)
89864: if test "$ext_shared" = "yes"; then
89865: PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
89866: else
89867:
89868:
89869: case z in
89870: c|c_r|pthread*) ;;
89871: *)
89872: LIBS="-lz $LIBS"
89873: ;;
89874: esac
89875:
89876:
89877: fi
89878: ;;
89879: esac
89880:
89881:
89882:
89883: save_old_LDFLAGS=$LDFLAGS
89884: ac_stuff="
89885: -L$PDO_MYSQL_LIB_DIR
89886: "
89887:
89888: save_ext_shared=$ext_shared
89889: ext_shared=yes
89890:
89891: for ac_i in $ac_stuff; do
89892: case $ac_i in
89893: -pthread)
89894: if test "$ext_shared" = "yes"; then
89895: LDFLAGS="$LDFLAGS -pthread"
89896: else
89897:
89898:
89899: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89900:
89901: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89902: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89903: eval "EXTRA_LDFLAGS$unique=set"
89904: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89905: fi
89906:
89907: fi
89908: ;;
89909: -l*)
89910: ac_ii=`echo $ac_i|cut -c 3-`
89911:
89912:
89913: case $ac_ii in
89914: c|c_r|pthread*) ;;
89915: *)
89916: if test "$ext_shared" = "yes"; then
89917: LDFLAGS="$LDFLAGS -l$ac_ii"
89918: else
89919:
89920:
89921: case $ac_ii in
89922: c|c_r|pthread*) ;;
89923: *)
89924: LIBS="$LIBS -l$ac_ii"
89925: ;;
89926: esac
89927:
89928:
89929: fi
89930: ;;
89931: esac
89932:
89933:
89934: ;;
89935: -L*)
89936: ac_ii=`echo $ac_i|cut -c 3-`
89937:
89938: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89939:
89940: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89941: ai_p=$ac_ii
89942: else
89943:
89944: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89945:
89946: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89947: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89948: fi
89949:
89950:
89951: if test "$ext_shared" = "yes"; then
89952: LDFLAGS="-L$ai_p $LDFLAGS"
89953: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
89954: else
89955:
89956:
89957:
89958: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89959:
89960: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89961: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89962: eval "LIBPATH$unique=set"
89963:
89964: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89965: LDFLAGS="$LDFLAGS -L$ai_p"
89966: PHP_RPATHS="$PHP_RPATHS $ai_p"
89967:
89968: fi
89969:
89970:
89971: fi
89972:
89973: fi
89974:
89975: ;;
89976: esac
89977: done
89978:
1.1.1.3 ! misho 89979: as_ac_Lib=`echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
! 89980: { echo "$as_me:$LINENO: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
! 89981: echo $ECHO_N "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... $ECHO_C" >&6; }
! 89982: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 89983: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 89984: else
89985: ac_check_lib_save_LIBS=$LIBS
89986: LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 89987: cat >conftest.$ac_ext <<_ACEOF
! 89988: /* confdefs.h. */
! 89989: _ACEOF
! 89990: cat confdefs.h >>conftest.$ac_ext
! 89991: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 89992: /* end confdefs.h. */
89993:
89994: /* Override any GCC internal prototype to avoid an error.
89995: Use char because int might match the return type of a GCC
89996: builtin and then its argument prototype would still apply. */
89997: #ifdef __cplusplus
89998: extern "C"
89999: #endif
90000: char mysql_query ();
90001: int
90002: main ()
90003: {
90004: return mysql_query ();
90005: ;
90006: return 0;
90007: }
90008: _ACEOF
1.1.1.3 ! misho 90009: rm -f conftest.$ac_objext conftest$ac_exeext
! 90010: if { (ac_try="$ac_link"
! 90011: case "(($ac_try" in
! 90012: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90013: *) ac_try_echo=$ac_try;;
! 90014: esac
! 90015: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90016: (eval "$ac_link") 2>conftest.er1
! 90017: ac_status=$?
! 90018: grep -v '^ *+' conftest.er1 >conftest.err
! 90019: rm -f conftest.er1
! 90020: cat conftest.err >&5
! 90021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90022: (exit $ac_status); } && {
! 90023: test -z "$ac_c_werror_flag" ||
! 90024: test ! -s conftest.err
! 90025: } && test -s conftest$ac_exeext &&
! 90026: $as_test_x conftest$ac_exeext; then
1.1 misho 90027: eval "$as_ac_Lib=yes"
90028: else
1.1.1.3 ! misho 90029: echo "$as_me: failed program was:" >&5
! 90030: sed 's/^/| /' conftest.$ac_ext >&5
! 90031:
! 90032: eval "$as_ac_Lib=no"
1.1 misho 90033: fi
1.1.1.3 ! misho 90034:
! 90035: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 90036: conftest$ac_exeext conftest.$ac_ext
1.1 misho 90037: LIBS=$ac_check_lib_save_LIBS
90038: fi
1.1.1.3 ! misho 90039: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 90040: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 90041: echo "${ECHO_T}$ac_res" >&6; }
! 90042: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 90043:
90044: LDFLAGS=$save_old_LDFLAGS
90045: ext_shared=$save_ext_shared
90046:
90047:
90048: else
90049:
90050: LDFLAGS=$save_old_LDFLAGS
90051: ext_shared=$save_ext_shared
90052: unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
90053:
1.1.1.3 ! misho 90054: { { echo "$as_me:$LINENO: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&5
! 90055: echo "$as_me: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&2;}
! 90056: { (exit 1); exit 1; }; }
1.1 misho 90057:
90058:
90059: fi
90060:
90061: PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz"
90062: fi
90063:
90064:
90065: for ac_i in $PDO_MYSQL_INCLUDE; do
90066: case $ac_i in
90067: -I*)
90068: ac_ii=`echo $ac_i|cut -c 3-`
90069:
90070: if test "$ac_ii" != "/usr/include"; then
90071:
90072: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
90073: ai_p=$ac_ii
90074: else
90075:
90076: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
90077:
90078: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90079: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
90080: fi
90081:
90082:
90083:
90084: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90085:
90086: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
90087: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90088: eval "INCLUDEPATH$unique=set"
90089:
90090: if test ""; then
90091: INCLUDES="-I$ai_p $INCLUDES"
90092: else
90093: INCLUDES="$INCLUDES -I$ai_p"
90094: fi
90095:
90096: fi
90097:
90098: fi
90099:
90100: ;;
90101: esac
90102: done
90103:
90104:
90105: for ac_i in $PDO_MYSQL_LIBS; do
90106: case $ac_i in
90107: -pthread)
90108: if test "$ext_shared" = "yes"; then
90109: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
90110: else
90111:
90112:
90113: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
90114:
90115: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
90116: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90117: eval "EXTRA_LDFLAGS$unique=set"
90118: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
90119: fi
90120:
90121: fi
90122: ;;
90123: -l*)
90124: ac_ii=`echo $ac_i|cut -c 3-`
90125:
90126:
90127: case $ac_ii in
90128: c|c_r|pthread*) ;;
90129: *)
90130: if test "$ext_shared" = "yes"; then
90131: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
90132: else
90133:
90134:
90135: case $ac_ii in
90136: c|c_r|pthread*) ;;
90137: *)
90138: LIBS="$LIBS -l$ac_ii"
90139: ;;
90140: esac
90141:
90142:
90143: fi
90144: ;;
90145: esac
90146:
90147:
90148: ;;
90149: -L*)
90150: ac_ii=`echo $ac_i|cut -c 3-`
90151:
90152: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
90153:
90154: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
90155: ai_p=$ac_ii
90156: else
90157:
90158: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
90159:
90160: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90161: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
90162: fi
90163:
90164:
90165: if test "$ext_shared" = "yes"; then
90166: PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
90167: test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
90168: else
90169:
90170:
90171:
90172: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90173:
90174: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
90175: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90176: eval "LIBPATH$unique=set"
90177:
90178: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
90179: LDFLAGS="$LDFLAGS -L$ai_p"
90180: PHP_RPATHS="$PHP_RPATHS $ai_p"
90181:
90182: fi
90183:
90184:
90185: fi
90186:
90187: fi
90188:
90189: ;;
90190: esac
90191: done
90192:
90193:
90194:
90195: fi
90196:
90197: fi
90198:
90199:
90200:
1.1.1.3 ! misho 90201: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 90202: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 90203: if test "${pdo_cv_inc_path+set}" = set; then
! 90204: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 90205: else
90206:
1.1.1.3 ! misho 90207: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 90208: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 90209: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 90210: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 90211: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 90212: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 90213: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 90214: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 90215: fi
90216:
90217: fi
1.1.1.3 ! misho 90218: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 90219: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 90220: if test -n "$pdo_cv_inc_path"; then
1.1 misho 90221: :
90222: else
1.1.1.3 ! misho 90223: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 90224: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 90225: { (exit 1); exit 1; }; }
1.1 misho 90226: fi
90227:
90228:
90229:
90230: if test -n "$PDO_MYSQL_CONFIG"; then
90231: PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket`
90232:
90233: cat >>confdefs.h <<_ACEOF
90234: #define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET"
90235: _ACEOF
90236:
90237: fi
90238:
90239:
90240: ext_builddir=ext/pdo_mysql
90241: ext_srcdir=$abs_srcdir/ext/pdo_mysql
90242:
1.1.1.2 misho 90243: ac_extra=`echo "-I$pdo_cv_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 90244:
90245: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
90246: PHP_PDO_MYSQL_SHARED=no
90247:
90248:
90249: case ext/pdo_mysql in
90250: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90251: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90252: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90253: esac
90254:
90255:
90256:
90257: b_c_pre=$php_c_pre
90258: b_cxx_pre=$php_cxx_pre
90259: b_c_meta=$php_c_meta
90260: b_cxx_meta=$php_cxx_meta
90261: b_c_post=$php_c_post
90262: b_cxx_post=$php_cxx_post
90263: b_lo=$php_lo
90264:
90265:
90266: old_IFS=$IFS
90267: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90268:
90269: IFS=.
90270: set $ac_src
90271: ac_obj=$1
90272: IFS=$old_IFS
90273:
90274: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
90275:
90276: case $ac_src in
90277: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90278: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90279: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90280: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90281: esac
90282:
90283: cat >>Makefile.objects<<EOF
90284: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90285: $ac_comp
90286: EOF
90287: done
90288:
90289:
90290: EXT_STATIC="$EXT_STATIC pdo_mysql"
90291: if test "$ext_shared" != "nocli"; then
90292: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
90293: fi
90294: else
90295: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
90296: PHP_PDO_MYSQL_SHARED=yes
90297:
90298: case ext/pdo_mysql in
90299: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90300: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90301: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90302: esac
90303:
90304:
90305:
90306: b_c_pre=$shared_c_pre
90307: b_cxx_pre=$shared_cxx_pre
90308: b_c_meta=$shared_c_meta
90309: b_cxx_meta=$shared_cxx_meta
90310: b_c_post=$shared_c_post
90311: b_cxx_post=$shared_cxx_post
90312: b_lo=$shared_lo
90313:
90314:
90315: old_IFS=$IFS
90316: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90317:
90318: IFS=.
90319: set $ac_src
90320: ac_obj=$1
90321: IFS=$old_IFS
90322:
90323: shared_objects_pdo_mysql="$shared_objects_pdo_mysql $ac_bdir$ac_obj.lo"
90324:
90325: case $ac_src in
90326: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90327: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90328: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90329: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90330: esac
90331:
90332: cat >>Makefile.objects<<EOF
90333: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90334: $ac_comp
90335: EOF
90336: done
90337:
90338: case $host_alias in
90339: *netware*)
90340:
90341: install_modules="install-modules"
90342:
90343: case $host_alias in
90344: *aix*)
90345: suffix=so
90346: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PHPPDO_MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_mysql.so '$ext_builddir'/phppdo_mysql.so'
90347: ;;
90348: *netware*)
90349: suffix=nlm
90350: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) -L$(top_builddir)/netware -lphp5lib $(PDO_MYSQL_SHARED_LIBADD)'
90351: ;;
90352: *)
90353: suffix=la
90354: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PHPPDO_MYSQL_SHARED_LIBADD)'
90355: ;;
90356: esac
90357:
90358: if test "x" = "xyes"; then
90359: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_mysql.$suffix"
90360: else
90361: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_mysql.$suffix"
90362: fi
90363:
90364: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
90365:
90366: cat >>Makefile.objects<<EOF
90367: \$(phplibdir)/phppdo_mysql.$suffix: $ext_builddir/phppdo_mysql.$suffix
90368: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_mysql.$suffix \$(phplibdir)
90369:
90370: $ext_builddir/phppdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PHPPDO_MYSQL_SHARED_DEPENDENCIES)
90371: $link_cmd
90372:
90373: EOF
90374:
90375: ;;
90376: *)
90377:
90378: install_modules="install-modules"
90379:
90380: case $host_alias in
90381: *aix*)
90382: suffix=so
90383: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PDO_MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_mysql.so '$ext_builddir'/pdo_mysql.so'
90384: ;;
90385: *netware*)
90386: suffix=nlm
90387: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) -L$(top_builddir)/netware -lphp5lib $(_MYSQL_SHARED_LIBADD)'
90388: ;;
90389: *)
90390: suffix=la
90391: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PDO_MYSQL_SHARED_LIBADD)'
90392: ;;
90393: esac
90394:
90395: if test "x" = "xyes"; then
90396: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_mysql.$suffix"
90397: else
90398: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_mysql.$suffix"
90399: fi
90400:
90401: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
90402:
90403: cat >>Makefile.objects<<EOF
90404: \$(phplibdir)/pdo_mysql.$suffix: $ext_builddir/pdo_mysql.$suffix
90405: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_mysql.$suffix \$(phplibdir)
90406:
90407: $ext_builddir/pdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_DEPENDENCIES)
90408: $link_cmd
90409:
90410: EOF
90411:
90412: ;;
90413: esac
90414:
90415: cat >>confdefs.h <<_ACEOF
90416: #define COMPILE_DL_PDO_MYSQL 1
90417: _ACEOF
90418:
90419: fi
90420: fi
90421:
90422: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
90423: PHP_PDO_MYSQL_SHARED=no
1.1.1.3 ! misho 90424: case "$PHP_SAPI" in
! 90425: cgi|embed)
1.1 misho 90426:
90427:
90428: case ext/pdo_mysql in
90429: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90430: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90431: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90432: esac
90433:
90434:
90435:
90436: b_c_pre=$php_c_pre
90437: b_cxx_pre=$php_cxx_pre
90438: b_c_meta=$php_c_meta
90439: b_cxx_meta=$php_cxx_meta
90440: b_c_post=$php_c_post
90441: b_cxx_post=$php_cxx_post
90442: b_lo=$php_lo
90443:
90444:
90445: old_IFS=$IFS
90446: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90447:
90448: IFS=.
90449: set $ac_src
90450: ac_obj=$1
90451: IFS=$old_IFS
90452:
1.1.1.2 misho 90453: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 90454:
90455: case $ac_src in
90456: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90457: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90458: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90459: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90460: esac
90461:
90462: cat >>Makefile.objects<<EOF
90463: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90464: $ac_comp
90465: EOF
90466: done
90467:
90468:
1.1.1.3 ! misho 90469: EXT_STATIC="$EXT_STATIC pdo_mysql"
! 90470: ;;
! 90471: *)
1.1 misho 90472:
90473:
90474: case ext/pdo_mysql in
90475: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90476: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90477: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90478: esac
90479:
90480:
90481:
90482: b_c_pre=$php_c_pre
90483: b_cxx_pre=$php_cxx_pre
90484: b_c_meta=$php_c_meta
90485: b_cxx_meta=$php_cxx_meta
90486: b_c_post=$php_c_post
90487: b_cxx_post=$php_cxx_post
90488: b_lo=$php_lo
90489:
90490:
90491: old_IFS=$IFS
90492: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90493:
90494: IFS=.
90495: set $ac_src
90496: ac_obj=$1
90497: IFS=$old_IFS
90498:
1.1.1.2 misho 90499: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 90500:
90501: case $ac_src in
90502: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90503: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90504: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90505: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90506: esac
90507:
90508: cat >>Makefile.objects<<EOF
90509: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90510: $ac_comp
90511: EOF
90512: done
90513:
90514:
1.1.1.3 ! misho 90515: ;;
! 90516: esac
1.1 misho 90517: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
90518: fi
90519:
90520:
90521: BUILD_DIR="$BUILD_DIR $ext_builddir"
90522:
90523:
90524:
90525: if test "$ext_builddir" = "."; then
90526: PHP_PECL_EXTENSION=pdo_mysql
90527:
90528: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
90529:
90530: fi
90531:
90532:
90533:
90534: am_i_shared=$PHP_PDO_MYSQL_SHARED
90535: is_it_shared=$PHP_PDO_SHARED
90536: is_it_enabled=$PHP_PDO
90537: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 90538: { { echo "$as_me:$LINENO: error:
! 90539: You've configured extension pdo_mysql to build statically, but it
! 90540: depends on extension pdo, which you've configured to build shared.
! 90541: You either need to build pdo_mysql shared or build pdo statically for the
! 90542: build to be successful.
! 90543: " >&5
! 90544: echo "$as_me: error:
1.1 misho 90545: You've configured extension pdo_mysql to build statically, but it
90546: depends on extension pdo, which you've configured to build shared.
90547: You either need to build pdo_mysql shared or build pdo statically for the
90548: build to be successful.
1.1.1.3 ! misho 90549: " >&2;}
! 90550: { (exit 1); exit 1; }; }
! 90551: fi
! 90552: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 90553: { { echo "$as_me:$LINENO: error:
! 90554: You've configured extension pdo_mysql, which depends on extension pdo,
! 90555: but you've either not enabled pdo, or have disabled it.
! 90556: " >&5
! 90557: echo "$as_me: error:
! 90558: You've configured extension pdo_mysql, which depends on extension pdo,
! 90559: but you've either not enabled pdo, or have disabled it.
! 90560: " >&2;}
! 90561: { (exit 1); exit 1; }; }
1.1 misho 90562: fi
90563:
90564: if test "$PHP_MYSQL" = "mysqlnd"; then
90565:
90566: am_i_shared=$PHP_PDO_MYSQL_SHARED
90567: is_it_shared=$PHP_MYSQLND_SHARED
90568: is_it_enabled=$PHP_MYSQLND
90569: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 90570: { { echo "$as_me:$LINENO: error:
! 90571: You've configured extension pdo_mysql to build statically, but it
! 90572: depends on extension mysqlnd, which you've configured to build shared.
! 90573: You either need to build pdo_mysql shared or build mysqlnd statically for the
! 90574: build to be successful.
! 90575: " >&5
! 90576: echo "$as_me: error:
1.1 misho 90577: You've configured extension pdo_mysql to build statically, but it
90578: depends on extension mysqlnd, which you've configured to build shared.
90579: You either need to build pdo_mysql shared or build mysqlnd statically for the
90580: build to be successful.
1.1.1.3 ! misho 90581: " >&2;}
! 90582: { (exit 1); exit 1; }; }
! 90583: fi
! 90584: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 90585: { { echo "$as_me:$LINENO: error:
! 90586: You've configured extension pdo_mysql, which depends on extension mysqlnd,
! 90587: but you've either not enabled mysqlnd, or have disabled it.
! 90588: " >&5
! 90589: echo "$as_me: error:
! 90590: You've configured extension pdo_mysql, which depends on extension mysqlnd,
! 90591: but you've either not enabled mysqlnd, or have disabled it.
! 90592: " >&2;}
! 90593: { (exit 1); exit 1; }; }
1.1 misho 90594: fi
90595:
90596: fi
90597:
90598: PDO_MYSQL_MODULE_TYPE=external
90599:
90600:
90601: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_SHARED_LIBADD"
90602:
90603:
90604:
90605: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_MODULE_TYPE"
90606:
90607:
90608:
90609: fi
90610:
90611:
1.1.1.3 ! misho 90612: SUPPORTED_LIB_VERS="9.0 10.1 11.1" # This caters for all Oracle 9.x, 10.x and 11.1 installs
! 90613:
! 90614:
! 90615:
! 90616:
! 90617:
! 90618: php_with_pdo_oci=no
! 90619:
! 90620: { echo "$as_me:$LINENO: checking Oracle OCI support for PDO" >&5
! 90621: echo $ECHO_N "checking Oracle OCI support for PDO... $ECHO_C" >&6; }
! 90622:
! 90623: # Check whether --with-pdo-oci was given.
! 90624: if test "${with_pdo_oci+set}" = set; then
! 90625: withval=$with_pdo_oci; PHP_PDO_OCI=$withval
! 90626: else
! 90627:
! 90628: PHP_PDO_OCI=no
! 90629: test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL
! 90630:
! 90631: fi
! 90632:
! 90633:
! 90634:
! 90635: ext_output="yes, shared"
! 90636: ext_shared=yes
! 90637: case $PHP_PDO_OCI in
! 90638: shared,*)
! 90639: PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'`
! 90640: ;;
! 90641: shared)
! 90642: PHP_PDO_OCI=yes
! 90643: ;;
! 90644: no)
! 90645: ext_output=no
! 90646: ext_shared=no
! 90647: ;;
! 90648: *)
! 90649: ext_output=yes
! 90650: ext_shared=no
! 90651: ;;
! 90652: esac
! 90653:
! 90654:
! 90655:
! 90656: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 90657: echo "${ECHO_T}$ext_output" >&6; }
! 90658:
! 90659:
! 90660:
! 90661:
! 90662: if test "$PHP_PDO_OCI" != "no"; then
! 90663:
! 90664: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
! 90665: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 90666: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 90667: { (exit 1); exit 1; }; }
! 90668: fi
! 90669:
! 90670: { echo "$as_me:$LINENO: checking Oracle Install-Dir" >&5
! 90671: echo $ECHO_N "checking Oracle Install-Dir... $ECHO_C" >&6; }
! 90672: if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
! 90673: PDO_OCI_DIR=$ORACLE_HOME
! 90674: else
! 90675: PDO_OCI_DIR=$PHP_PDO_OCI
! 90676: fi
! 90677: { echo "$as_me:$LINENO: result: $PHP_PDO_OCI" >&5
! 90678: echo "${ECHO_T}$PHP_PDO_OCI" >&6; }
! 90679:
! 90680: { echo "$as_me:$LINENO: checking if that is sane" >&5
! 90681: echo $ECHO_N "checking if that is sane... $ECHO_C" >&6; }
! 90682: if test -z "$PDO_OCI_DIR"; then
! 90683: { { echo "$as_me:$LINENO: error:
! 90684: You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
! 90685: " >&5
! 90686: echo "$as_me: error:
! 90687: You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
! 90688: " >&2;}
! 90689: { (exit 1); exit 1; }; }
! 90690: else
! 90691: { echo "$as_me:$LINENO: result: yes" >&5
! 90692: echo "${ECHO_T}yes" >&6; }
! 90693: fi
! 90694:
! 90695: if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then
! 90696: { echo "$as_me:$LINENO: checking for long int" >&5
! 90697: echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
! 90698: if test "${ac_cv_type_long_int+set}" = set; then
! 90699: echo $ECHO_N "(cached) $ECHO_C" >&6
! 90700: else
! 90701: cat >conftest.$ac_ext <<_ACEOF
! 90702: /* confdefs.h. */
! 90703: _ACEOF
! 90704: cat confdefs.h >>conftest.$ac_ext
! 90705: cat >>conftest.$ac_ext <<_ACEOF
! 90706: /* end confdefs.h. */
! 90707: $ac_includes_default
! 90708: typedef long int ac__type_new_;
! 90709: int
! 90710: main ()
! 90711: {
! 90712: if ((ac__type_new_ *) 0)
! 90713: return 0;
! 90714: if (sizeof (ac__type_new_))
! 90715: return 0;
! 90716: ;
! 90717: return 0;
! 90718: }
! 90719: _ACEOF
! 90720: rm -f conftest.$ac_objext
! 90721: if { (ac_try="$ac_compile"
! 90722: case "(($ac_try" in
! 90723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90724: *) ac_try_echo=$ac_try;;
! 90725: esac
! 90726: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90727: (eval "$ac_compile") 2>conftest.er1
! 90728: ac_status=$?
! 90729: grep -v '^ *+' conftest.er1 >conftest.err
! 90730: rm -f conftest.er1
! 90731: cat conftest.err >&5
! 90732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90733: (exit $ac_status); } && {
! 90734: test -z "$ac_c_werror_flag" ||
! 90735: test ! -s conftest.err
! 90736: } && test -s conftest.$ac_objext; then
! 90737: ac_cv_type_long_int=yes
! 90738: else
! 90739: echo "$as_me: failed program was:" >&5
! 90740: sed 's/^/| /' conftest.$ac_ext >&5
! 90741:
! 90742: ac_cv_type_long_int=no
! 90743: fi
! 90744:
! 90745: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 90746: fi
! 90747: { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
! 90748: echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
! 90749:
! 90750: # The cast to long int works around a bug in the HP C Compiler
! 90751: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 90752: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 90753: # This bug is HP SR number 8606223364.
! 90754: { echo "$as_me:$LINENO: checking size of long int" >&5
! 90755: echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
! 90756: if test "${ac_cv_sizeof_long_int+set}" = set; then
! 90757: echo $ECHO_N "(cached) $ECHO_C" >&6
! 90758: else
! 90759: if test "$cross_compiling" = yes; then
! 90760: # Depending upon the size, compute the lo and hi bounds.
! 90761: cat >conftest.$ac_ext <<_ACEOF
! 90762: /* confdefs.h. */
! 90763: _ACEOF
! 90764: cat confdefs.h >>conftest.$ac_ext
! 90765: cat >>conftest.$ac_ext <<_ACEOF
! 90766: /* end confdefs.h. */
! 90767: $ac_includes_default
! 90768: typedef long int ac__type_sizeof_;
! 90769: int
! 90770: main ()
! 90771: {
! 90772: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 90773: test_array [0] = 0
! 90774:
! 90775: ;
! 90776: return 0;
! 90777: }
! 90778: _ACEOF
! 90779: rm -f conftest.$ac_objext
! 90780: if { (ac_try="$ac_compile"
! 90781: case "(($ac_try" in
! 90782: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90783: *) ac_try_echo=$ac_try;;
! 90784: esac
! 90785: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90786: (eval "$ac_compile") 2>conftest.er1
! 90787: ac_status=$?
! 90788: grep -v '^ *+' conftest.er1 >conftest.err
! 90789: rm -f conftest.er1
! 90790: cat conftest.err >&5
! 90791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90792: (exit $ac_status); } && {
! 90793: test -z "$ac_c_werror_flag" ||
! 90794: test ! -s conftest.err
! 90795: } && test -s conftest.$ac_objext; then
! 90796: ac_lo=0 ac_mid=0
! 90797: while :; do
! 90798: cat >conftest.$ac_ext <<_ACEOF
! 90799: /* confdefs.h. */
! 90800: _ACEOF
! 90801: cat confdefs.h >>conftest.$ac_ext
! 90802: cat >>conftest.$ac_ext <<_ACEOF
! 90803: /* end confdefs.h. */
! 90804: $ac_includes_default
! 90805: typedef long int ac__type_sizeof_;
! 90806: int
! 90807: main ()
! 90808: {
! 90809: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 90810: test_array [0] = 0
! 90811:
! 90812: ;
! 90813: return 0;
! 90814: }
! 90815: _ACEOF
! 90816: rm -f conftest.$ac_objext
! 90817: if { (ac_try="$ac_compile"
! 90818: case "(($ac_try" in
! 90819: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90820: *) ac_try_echo=$ac_try;;
! 90821: esac
! 90822: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90823: (eval "$ac_compile") 2>conftest.er1
! 90824: ac_status=$?
! 90825: grep -v '^ *+' conftest.er1 >conftest.err
! 90826: rm -f conftest.er1
! 90827: cat conftest.err >&5
! 90828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90829: (exit $ac_status); } && {
! 90830: test -z "$ac_c_werror_flag" ||
! 90831: test ! -s conftest.err
! 90832: } && test -s conftest.$ac_objext; then
! 90833: ac_hi=$ac_mid; break
! 90834: else
! 90835: echo "$as_me: failed program was:" >&5
! 90836: sed 's/^/| /' conftest.$ac_ext >&5
! 90837:
! 90838: ac_lo=`expr $ac_mid + 1`
! 90839: if test $ac_lo -le $ac_mid; then
! 90840: ac_lo= ac_hi=
! 90841: break
! 90842: fi
! 90843: ac_mid=`expr 2 '*' $ac_mid + 1`
! 90844: fi
! 90845:
! 90846: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 90847: done
! 90848: else
! 90849: echo "$as_me: failed program was:" >&5
! 90850: sed 's/^/| /' conftest.$ac_ext >&5
! 90851:
! 90852: cat >conftest.$ac_ext <<_ACEOF
! 90853: /* confdefs.h. */
! 90854: _ACEOF
! 90855: cat confdefs.h >>conftest.$ac_ext
! 90856: cat >>conftest.$ac_ext <<_ACEOF
! 90857: /* end confdefs.h. */
! 90858: $ac_includes_default
! 90859: typedef long int ac__type_sizeof_;
! 90860: int
! 90861: main ()
! 90862: {
! 90863: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 90864: test_array [0] = 0
1.1 misho 90865:
1.1.1.3 ! misho 90866: ;
! 90867: return 0;
! 90868: }
! 90869: _ACEOF
! 90870: rm -f conftest.$ac_objext
! 90871: if { (ac_try="$ac_compile"
! 90872: case "(($ac_try" in
! 90873: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90874: *) ac_try_echo=$ac_try;;
! 90875: esac
! 90876: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90877: (eval "$ac_compile") 2>conftest.er1
! 90878: ac_status=$?
! 90879: grep -v '^ *+' conftest.er1 >conftest.err
! 90880: rm -f conftest.er1
! 90881: cat conftest.err >&5
! 90882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90883: (exit $ac_status); } && {
! 90884: test -z "$ac_c_werror_flag" ||
! 90885: test ! -s conftest.err
! 90886: } && test -s conftest.$ac_objext; then
! 90887: ac_hi=-1 ac_mid=-1
! 90888: while :; do
! 90889: cat >conftest.$ac_ext <<_ACEOF
! 90890: /* confdefs.h. */
! 90891: _ACEOF
! 90892: cat confdefs.h >>conftest.$ac_ext
! 90893: cat >>conftest.$ac_ext <<_ACEOF
! 90894: /* end confdefs.h. */
! 90895: $ac_includes_default
! 90896: typedef long int ac__type_sizeof_;
! 90897: int
! 90898: main ()
! 90899: {
! 90900: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 90901: test_array [0] = 0
1.1 misho 90902:
1.1.1.3 ! misho 90903: ;
! 90904: return 0;
! 90905: }
! 90906: _ACEOF
! 90907: rm -f conftest.$ac_objext
! 90908: if { (ac_try="$ac_compile"
! 90909: case "(($ac_try" in
! 90910: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90911: *) ac_try_echo=$ac_try;;
! 90912: esac
! 90913: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90914: (eval "$ac_compile") 2>conftest.er1
! 90915: ac_status=$?
! 90916: grep -v '^ *+' conftest.er1 >conftest.err
! 90917: rm -f conftest.er1
! 90918: cat conftest.err >&5
! 90919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90920: (exit $ac_status); } && {
! 90921: test -z "$ac_c_werror_flag" ||
! 90922: test ! -s conftest.err
! 90923: } && test -s conftest.$ac_objext; then
! 90924: ac_lo=$ac_mid; break
! 90925: else
! 90926: echo "$as_me: failed program was:" >&5
! 90927: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 90928:
1.1.1.3 ! misho 90929: ac_hi=`expr '(' $ac_mid ')' - 1`
! 90930: if test $ac_mid -le $ac_hi; then
! 90931: ac_lo= ac_hi=
! 90932: break
! 90933: fi
! 90934: ac_mid=`expr 2 '*' $ac_mid`
! 90935: fi
1.1 misho 90936:
1.1.1.3 ! misho 90937: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 90938: done
1.1 misho 90939: else
1.1.1.3 ! misho 90940: echo "$as_me: failed program was:" >&5
! 90941: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 90942:
1.1.1.3 ! misho 90943: ac_lo= ac_hi=
1.1 misho 90944: fi
90945:
1.1.1.3 ! misho 90946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 90947: fi
1.1 misho 90948:
1.1.1.3 ! misho 90949: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 90950: # Binary search between lo and hi bounds.
! 90951: while test "x$ac_lo" != "x$ac_hi"; do
! 90952: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 90953: cat >conftest.$ac_ext <<_ACEOF
! 90954: /* confdefs.h. */
! 90955: _ACEOF
! 90956: cat confdefs.h >>conftest.$ac_ext
! 90957: cat >>conftest.$ac_ext <<_ACEOF
! 90958: /* end confdefs.h. */
! 90959: $ac_includes_default
! 90960: typedef long int ac__type_sizeof_;
! 90961: int
! 90962: main ()
! 90963: {
! 90964: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 90965: test_array [0] = 0
1.1 misho 90966:
1.1.1.3 ! misho 90967: ;
! 90968: return 0;
! 90969: }
! 90970: _ACEOF
! 90971: rm -f conftest.$ac_objext
! 90972: if { (ac_try="$ac_compile"
! 90973: case "(($ac_try" in
! 90974: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 90975: *) ac_try_echo=$ac_try;;
1.1 misho 90976: esac
1.1.1.3 ! misho 90977: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 90978: (eval "$ac_compile") 2>conftest.er1
! 90979: ac_status=$?
! 90980: grep -v '^ *+' conftest.er1 >conftest.err
! 90981: rm -f conftest.er1
! 90982: cat conftest.err >&5
! 90983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 90984: (exit $ac_status); } && {
! 90985: test -z "$ac_c_werror_flag" ||
! 90986: test ! -s conftest.err
! 90987: } && test -s conftest.$ac_objext; then
! 90988: ac_hi=$ac_mid
! 90989: else
! 90990: echo "$as_me: failed program was:" >&5
! 90991: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 90992:
1.1.1.3 ! misho 90993: ac_lo=`expr '(' $ac_mid ')' + 1`
! 90994: fi
1.1 misho 90995:
1.1.1.3 ! misho 90996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 90997: done
! 90998: case $ac_lo in
! 90999: ?*) ac_cv_sizeof_long_int=$ac_lo;;
! 91000: '') if test "$ac_cv_type_long_int" = yes; then
! 91001: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 91002: See \`config.log' for more details." >&5
! 91003: echo "$as_me: error: cannot compute sizeof (long int)
! 91004: See \`config.log' for more details." >&2;}
! 91005: { (exit 77); exit 77; }; }
! 91006: else
! 91007: ac_cv_sizeof_long_int=0
! 91008: fi ;;
! 91009: esac
! 91010: else
! 91011: cat >conftest.$ac_ext <<_ACEOF
! 91012: /* confdefs.h. */
! 91013: _ACEOF
! 91014: cat confdefs.h >>conftest.$ac_ext
! 91015: cat >>conftest.$ac_ext <<_ACEOF
! 91016: /* end confdefs.h. */
! 91017: $ac_includes_default
! 91018: typedef long int ac__type_sizeof_;
! 91019: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 91020: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 91021: #include <stdio.h>
! 91022: #include <stdlib.h>
! 91023: int
! 91024: main ()
! 91025: {
1.1 misho 91026:
1.1.1.3 ! misho 91027: FILE *f = fopen ("conftest.val", "w");
! 91028: if (! f)
! 91029: return 1;
! 91030: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 91031: {
! 91032: long int i = longval ();
! 91033: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 91034: return 1;
! 91035: fprintf (f, "%ld\n", i);
! 91036: }
1.1 misho 91037: else
1.1.1.3 ! misho 91038: {
! 91039: unsigned long int i = ulongval ();
! 91040: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 91041: return 1;
! 91042: fprintf (f, "%lu\n", i);
! 91043: }
! 91044: return ferror (f) || fclose (f) != 0;
1.1 misho 91045:
1.1.1.3 ! misho 91046: ;
! 91047: return 0;
! 91048: }
! 91049: _ACEOF
! 91050: rm -f conftest$ac_exeext
! 91051: if { (ac_try="$ac_link"
! 91052: case "(($ac_try" in
! 91053: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91054: *) ac_try_echo=$ac_try;;
! 91055: esac
! 91056: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91057: (eval "$ac_link") 2>&5
! 91058: ac_status=$?
! 91059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91060: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 91061: { (case "(($ac_try" in
! 91062: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91063: *) ac_try_echo=$ac_try;;
! 91064: esac
! 91065: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91066: (eval "$ac_try") 2>&5
! 91067: ac_status=$?
! 91068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91069: (exit $ac_status); }; }; then
! 91070: ac_cv_sizeof_long_int=`cat conftest.val`
1.1 misho 91071: else
1.1.1.3 ! misho 91072: echo "$as_me: program exited with status $ac_status" >&5
! 91073: echo "$as_me: failed program was:" >&5
! 91074: sed 's/^/| /' conftest.$ac_ext >&5
! 91075:
! 91076: ( exit $ac_status )
! 91077: if test "$ac_cv_type_long_int" = yes; then
! 91078: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 91079: See \`config.log' for more details." >&5
! 91080: echo "$as_me: error: cannot compute sizeof (long int)
! 91081: See \`config.log' for more details." >&2;}
! 91082: { (exit 77); exit 77; }; }
1.1 misho 91083: else
91084: ac_cv_sizeof_long_int=0
91085: fi
91086: fi
1.1.1.3 ! misho 91087: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 91088: fi
! 91089: rm -f conftest.val
1.1 misho 91090: fi
1.1.1.3 ! misho 91091: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
! 91092: echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
1.1 misho 91093:
91094:
91095:
91096: cat >>confdefs.h <<_ACEOF
91097: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
91098: _ACEOF
91099:
91100:
91101: if test "$ac_cv_sizeof_long_int" = "4" ; then
91102: PDO_OCI_CLIENT_DIR="client"
91103: else
91104: PDO_OCI_CLIENT_DIR="client64"
91105: fi
91106: PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
91107: PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"
91108: if test -n "$PDO_OCI_IC_VERS"; then
91109: PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`"
91110: if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then
91111: # From 11.1.0.7 the RPM path only has an X.Y component
91112: PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
91113: fi
91114: fi
1.1.1.3 ! misho 91115: { echo "$as_me:$LINENO: checking for oci.h" >&5
! 91116: echo $ECHO_N "checking for oci.h... $ECHO_C" >&6; }
1.1 misho 91117: if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then
91118:
91119: if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then
91120:
91121: if test -z "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" || echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" | grep '^/' >/dev/null ; then
91122: ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR
91123: else
91124:
91125: ep_dir="`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
91126:
91127: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91128: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR\"`"
91129: fi
91130:
91131:
91132:
91133: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91134:
91135: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91136: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91137: eval "INCLUDEPATH$unique=set"
91138:
91139: if test ""; then
91140: INCLUDES="-I$ai_p $INCLUDES"
91141: else
91142: INCLUDES="$INCLUDES -I$ai_p"
91143: fi
91144:
91145: fi
91146:
91147: fi
91148:
1.1.1.3 ! misho 91149: { echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5
! 91150: echo "${ECHO_T}$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; }
1.1 misho 91151: elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
91152:
91153: if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
91154:
91155: if test -z "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then
91156: ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include
91157: else
91158:
91159: ep_dir="`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
91160:
91161: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91162: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include\"`"
91163: fi
91164:
91165:
91166:
91167: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91168:
91169: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91170: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91171: eval "INCLUDEPATH$unique=set"
91172:
91173: if test ""; then
91174: INCLUDES="-I$ai_p $INCLUDES"
91175: else
91176: INCLUDES="$INCLUDES -I$ai_p"
91177: fi
91178:
91179: fi
91180:
91181: fi
91182:
1.1.1.3 ! misho 91183: { echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5
! 91184: echo "${ECHO_T}$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; }
1.1 misho 91185: elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then
91186:
91187: if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then
91188:
91189: if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then
91190: ai_p=$PDO_OCI_IC_PREFIX/sdk/include
91191: else
91192:
91193: ep_dir="`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'`"
91194:
91195: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91196: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/sdk/include\"`"
91197: fi
91198:
91199:
91200:
91201: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91202:
91203: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91204: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91205: eval "INCLUDEPATH$unique=set"
91206:
91207: if test ""; then
91208: INCLUDES="-I$ai_p $INCLUDES"
91209: else
91210: INCLUDES="$INCLUDES -I$ai_p"
91211: fi
91212:
91213: fi
91214:
91215: fi
91216:
1.1.1.3 ! misho 91217: { echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5
! 91218: echo "${ECHO_T}$PDO_OCI_IC_PREFIX/sdk/include" >&6; }
1.1 misho 91219: elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
91220:
91221: if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
91222:
91223: if test -z "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then
91224: ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include
91225: else
91226:
91227: ep_dir="`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
91228:
91229: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91230: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include\"`"
91231: fi
91232:
91233:
91234:
91235: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91236:
91237: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91238: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91239: eval "INCLUDEPATH$unique=set"
91240:
91241: if test ""; then
91242: INCLUDES="-I$ai_p $INCLUDES"
91243: else
91244: INCLUDES="$INCLUDES -I$ai_p"
91245: fi
91246:
91247: fi
91248:
91249: fi
91250:
1.1.1.3 ! misho 91251: { echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5
! 91252: echo "${ECHO_T}$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; }
1.1 misho 91253: else
1.1.1.3 ! misho 91254: { { echo "$as_me:$LINENO: error: I'm too dumb to figure out where the include dir is in your Instant Client install" >&5
! 91255: echo "$as_me: error: I'm too dumb to figure out where the include dir is in your Instant Client install" >&2;}
! 91256: { (exit 1); exit 1; }; }
1.1 misho 91257: fi
91258: if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
91259: PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib"
91260: elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
91261: PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib"
91262: elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
91263: PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
91264: else
1.1.1.3 ! misho 91265: { { echo "$as_me:$LINENO: error: I'm too dumb to figure out where the libraries are in your Instant Client install" >&5
! 91266: echo "$as_me: error: I'm too dumb to figure out where the libraries are in your Instant Client install" >&2;}
! 91267: { (exit 1); exit 1; }; }
1.1 misho 91268: fi
91269: PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
91270: else
91271:
1.1.1.3 ! misho 91272: { echo "$as_me:$LINENO: checking for long int" >&5
! 91273: echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
! 91274: if test "${ac_cv_type_long_int+set}" = set; then
! 91275: echo $ECHO_N "(cached) $ECHO_C" >&6
! 91276: else
! 91277: cat >conftest.$ac_ext <<_ACEOF
! 91278: /* confdefs.h. */
! 91279: _ACEOF
! 91280: cat confdefs.h >>conftest.$ac_ext
! 91281: cat >>conftest.$ac_ext <<_ACEOF
! 91282: /* end confdefs.h. */
! 91283: $ac_includes_default
! 91284: typedef long int ac__type_new_;
! 91285: int
! 91286: main ()
! 91287: {
! 91288: if ((ac__type_new_ *) 0)
! 91289: return 0;
! 91290: if (sizeof (ac__type_new_))
! 91291: return 0;
! 91292: ;
! 91293: return 0;
! 91294: }
! 91295: _ACEOF
! 91296: rm -f conftest.$ac_objext
! 91297: if { (ac_try="$ac_compile"
! 91298: case "(($ac_try" in
! 91299: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91300: *) ac_try_echo=$ac_try;;
! 91301: esac
! 91302: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91303: (eval "$ac_compile") 2>conftest.er1
! 91304: ac_status=$?
! 91305: grep -v '^ *+' conftest.er1 >conftest.err
! 91306: rm -f conftest.er1
! 91307: cat conftest.err >&5
! 91308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91309: (exit $ac_status); } && {
! 91310: test -z "$ac_c_werror_flag" ||
! 91311: test ! -s conftest.err
! 91312: } && test -s conftest.$ac_objext; then
! 91313: ac_cv_type_long_int=yes
! 91314: else
! 91315: echo "$as_me: failed program was:" >&5
! 91316: sed 's/^/| /' conftest.$ac_ext >&5
! 91317:
! 91318: ac_cv_type_long_int=no
! 91319: fi
! 91320:
! 91321: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 91322: fi
! 91323: { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
! 91324: echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
! 91325:
! 91326: # The cast to long int works around a bug in the HP C Compiler
1.1 misho 91327: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
91328: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
91329: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 91330: { echo "$as_me:$LINENO: checking size of long int" >&5
! 91331: echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
! 91332: if test "${ac_cv_sizeof_long_int+set}" = set; then
! 91333: echo $ECHO_N "(cached) $ECHO_C" >&6
! 91334: else
! 91335: if test "$cross_compiling" = yes; then
! 91336: # Depending upon the size, compute the lo and hi bounds.
! 91337: cat >conftest.$ac_ext <<_ACEOF
! 91338: /* confdefs.h. */
! 91339: _ACEOF
! 91340: cat confdefs.h >>conftest.$ac_ext
! 91341: cat >>conftest.$ac_ext <<_ACEOF
! 91342: /* end confdefs.h. */
! 91343: $ac_includes_default
! 91344: typedef long int ac__type_sizeof_;
! 91345: int
! 91346: main ()
! 91347: {
! 91348: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 91349: test_array [0] = 0
! 91350:
! 91351: ;
! 91352: return 0;
! 91353: }
! 91354: _ACEOF
! 91355: rm -f conftest.$ac_objext
! 91356: if { (ac_try="$ac_compile"
! 91357: case "(($ac_try" in
! 91358: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91359: *) ac_try_echo=$ac_try;;
! 91360: esac
! 91361: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91362: (eval "$ac_compile") 2>conftest.er1
! 91363: ac_status=$?
! 91364: grep -v '^ *+' conftest.er1 >conftest.err
! 91365: rm -f conftest.er1
! 91366: cat conftest.err >&5
! 91367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91368: (exit $ac_status); } && {
! 91369: test -z "$ac_c_werror_flag" ||
! 91370: test ! -s conftest.err
! 91371: } && test -s conftest.$ac_objext; then
! 91372: ac_lo=0 ac_mid=0
! 91373: while :; do
! 91374: cat >conftest.$ac_ext <<_ACEOF
! 91375: /* confdefs.h. */
! 91376: _ACEOF
! 91377: cat confdefs.h >>conftest.$ac_ext
! 91378: cat >>conftest.$ac_ext <<_ACEOF
! 91379: /* end confdefs.h. */
! 91380: $ac_includes_default
! 91381: typedef long int ac__type_sizeof_;
! 91382: int
! 91383: main ()
! 91384: {
! 91385: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 91386: test_array [0] = 0
! 91387:
! 91388: ;
! 91389: return 0;
! 91390: }
! 91391: _ACEOF
! 91392: rm -f conftest.$ac_objext
! 91393: if { (ac_try="$ac_compile"
! 91394: case "(($ac_try" in
! 91395: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91396: *) ac_try_echo=$ac_try;;
! 91397: esac
! 91398: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91399: (eval "$ac_compile") 2>conftest.er1
! 91400: ac_status=$?
! 91401: grep -v '^ *+' conftest.er1 >conftest.err
! 91402: rm -f conftest.er1
! 91403: cat conftest.err >&5
! 91404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91405: (exit $ac_status); } && {
! 91406: test -z "$ac_c_werror_flag" ||
! 91407: test ! -s conftest.err
! 91408: } && test -s conftest.$ac_objext; then
! 91409: ac_hi=$ac_mid; break
! 91410: else
! 91411: echo "$as_me: failed program was:" >&5
! 91412: sed 's/^/| /' conftest.$ac_ext >&5
! 91413:
! 91414: ac_lo=`expr $ac_mid + 1`
! 91415: if test $ac_lo -le $ac_mid; then
! 91416: ac_lo= ac_hi=
! 91417: break
! 91418: fi
! 91419: ac_mid=`expr 2 '*' $ac_mid + 1`
! 91420: fi
! 91421:
! 91422: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 91423: done
! 91424: else
! 91425: echo "$as_me: failed program was:" >&5
! 91426: sed 's/^/| /' conftest.$ac_ext >&5
! 91427:
! 91428: cat >conftest.$ac_ext <<_ACEOF
! 91429: /* confdefs.h. */
! 91430: _ACEOF
! 91431: cat confdefs.h >>conftest.$ac_ext
! 91432: cat >>conftest.$ac_ext <<_ACEOF
! 91433: /* end confdefs.h. */
! 91434: $ac_includes_default
! 91435: typedef long int ac__type_sizeof_;
! 91436: int
! 91437: main ()
! 91438: {
! 91439: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 91440: test_array [0] = 0
! 91441:
! 91442: ;
! 91443: return 0;
! 91444: }
! 91445: _ACEOF
! 91446: rm -f conftest.$ac_objext
! 91447: if { (ac_try="$ac_compile"
! 91448: case "(($ac_try" in
! 91449: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91450: *) ac_try_echo=$ac_try;;
! 91451: esac
! 91452: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91453: (eval "$ac_compile") 2>conftest.er1
! 91454: ac_status=$?
! 91455: grep -v '^ *+' conftest.er1 >conftest.err
! 91456: rm -f conftest.er1
! 91457: cat conftest.err >&5
! 91458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91459: (exit $ac_status); } && {
! 91460: test -z "$ac_c_werror_flag" ||
! 91461: test ! -s conftest.err
! 91462: } && test -s conftest.$ac_objext; then
! 91463: ac_hi=-1 ac_mid=-1
! 91464: while :; do
! 91465: cat >conftest.$ac_ext <<_ACEOF
! 91466: /* confdefs.h. */
! 91467: _ACEOF
! 91468: cat confdefs.h >>conftest.$ac_ext
! 91469: cat >>conftest.$ac_ext <<_ACEOF
! 91470: /* end confdefs.h. */
! 91471: $ac_includes_default
! 91472: typedef long int ac__type_sizeof_;
! 91473: int
! 91474: main ()
! 91475: {
! 91476: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 91477: test_array [0] = 0
! 91478:
! 91479: ;
! 91480: return 0;
! 91481: }
! 91482: _ACEOF
! 91483: rm -f conftest.$ac_objext
! 91484: if { (ac_try="$ac_compile"
! 91485: case "(($ac_try" in
! 91486: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91487: *) ac_try_echo=$ac_try;;
! 91488: esac
! 91489: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91490: (eval "$ac_compile") 2>conftest.er1
! 91491: ac_status=$?
! 91492: grep -v '^ *+' conftest.er1 >conftest.err
! 91493: rm -f conftest.er1
! 91494: cat conftest.err >&5
! 91495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91496: (exit $ac_status); } && {
! 91497: test -z "$ac_c_werror_flag" ||
! 91498: test ! -s conftest.err
! 91499: } && test -s conftest.$ac_objext; then
! 91500: ac_lo=$ac_mid; break
! 91501: else
! 91502: echo "$as_me: failed program was:" >&5
! 91503: sed 's/^/| /' conftest.$ac_ext >&5
! 91504:
! 91505: ac_hi=`expr '(' $ac_mid ')' - 1`
! 91506: if test $ac_mid -le $ac_hi; then
! 91507: ac_lo= ac_hi=
! 91508: break
! 91509: fi
! 91510: ac_mid=`expr 2 '*' $ac_mid`
! 91511: fi
! 91512:
! 91513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 91514: done
! 91515: else
! 91516: echo "$as_me: failed program was:" >&5
! 91517: sed 's/^/| /' conftest.$ac_ext >&5
! 91518:
! 91519: ac_lo= ac_hi=
! 91520: fi
! 91521:
! 91522: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 91523: fi
! 91524:
! 91525: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 91526: # Binary search between lo and hi bounds.
! 91527: while test "x$ac_lo" != "x$ac_hi"; do
! 91528: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 91529: cat >conftest.$ac_ext <<_ACEOF
! 91530: /* confdefs.h. */
! 91531: _ACEOF
! 91532: cat confdefs.h >>conftest.$ac_ext
! 91533: cat >>conftest.$ac_ext <<_ACEOF
! 91534: /* end confdefs.h. */
! 91535: $ac_includes_default
! 91536: typedef long int ac__type_sizeof_;
! 91537: int
! 91538: main ()
! 91539: {
! 91540: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 91541: test_array [0] = 0
! 91542:
! 91543: ;
! 91544: return 0;
! 91545: }
! 91546: _ACEOF
! 91547: rm -f conftest.$ac_objext
! 91548: if { (ac_try="$ac_compile"
! 91549: case "(($ac_try" in
! 91550: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91551: *) ac_try_echo=$ac_try;;
! 91552: esac
! 91553: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91554: (eval "$ac_compile") 2>conftest.er1
! 91555: ac_status=$?
! 91556: grep -v '^ *+' conftest.er1 >conftest.err
! 91557: rm -f conftest.er1
! 91558: cat conftest.err >&5
! 91559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91560: (exit $ac_status); } && {
! 91561: test -z "$ac_c_werror_flag" ||
! 91562: test ! -s conftest.err
! 91563: } && test -s conftest.$ac_objext; then
! 91564: ac_hi=$ac_mid
! 91565: else
! 91566: echo "$as_me: failed program was:" >&5
! 91567: sed 's/^/| /' conftest.$ac_ext >&5
! 91568:
! 91569: ac_lo=`expr '(' $ac_mid ')' + 1`
! 91570: fi
! 91571:
! 91572: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 91573: done
! 91574: case $ac_lo in
! 91575: ?*) ac_cv_sizeof_long_int=$ac_lo;;
! 91576: '') if test "$ac_cv_type_long_int" = yes; then
! 91577: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 91578: See \`config.log' for more details." >&5
! 91579: echo "$as_me: error: cannot compute sizeof (long int)
! 91580: See \`config.log' for more details." >&2;}
! 91581: { (exit 77); exit 77; }; }
! 91582: else
! 91583: ac_cv_sizeof_long_int=0
! 91584: fi ;;
! 91585: esac
! 91586: else
! 91587: cat >conftest.$ac_ext <<_ACEOF
! 91588: /* confdefs.h. */
! 91589: _ACEOF
! 91590: cat confdefs.h >>conftest.$ac_ext
! 91591: cat >>conftest.$ac_ext <<_ACEOF
! 91592: /* end confdefs.h. */
! 91593: $ac_includes_default
! 91594: typedef long int ac__type_sizeof_;
! 91595: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 91596: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 91597: #include <stdio.h>
! 91598: #include <stdlib.h>
! 91599: int
! 91600: main ()
! 91601: {
! 91602:
! 91603: FILE *f = fopen ("conftest.val", "w");
! 91604: if (! f)
! 91605: return 1;
! 91606: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 91607: {
! 91608: long int i = longval ();
! 91609: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 91610: return 1;
! 91611: fprintf (f, "%ld\n", i);
! 91612: }
! 91613: else
! 91614: {
! 91615: unsigned long int i = ulongval ();
! 91616: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 91617: return 1;
! 91618: fprintf (f, "%lu\n", i);
! 91619: }
! 91620: return ferror (f) || fclose (f) != 0;
1.1 misho 91621:
1.1.1.3 ! misho 91622: ;
! 91623: return 0;
! 91624: }
! 91625: _ACEOF
! 91626: rm -f conftest$ac_exeext
! 91627: if { (ac_try="$ac_link"
! 91628: case "(($ac_try" in
! 91629: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91630: *) ac_try_echo=$ac_try;;
! 91631: esac
! 91632: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91633: (eval "$ac_link") 2>&5
! 91634: ac_status=$?
! 91635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91636: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 91637: { (case "(($ac_try" in
! 91638: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 91639: *) ac_try_echo=$ac_try;;
! 91640: esac
! 91641: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 91642: (eval "$ac_try") 2>&5
! 91643: ac_status=$?
! 91644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 91645: (exit $ac_status); }; }; then
! 91646: ac_cv_sizeof_long_int=`cat conftest.val`
1.1 misho 91647: else
1.1.1.3 ! misho 91648: echo "$as_me: program exited with status $ac_status" >&5
! 91649: echo "$as_me: failed program was:" >&5
! 91650: sed 's/^/| /' conftest.$ac_ext >&5
! 91651:
! 91652: ( exit $ac_status )
! 91653: if test "$ac_cv_type_long_int" = yes; then
! 91654: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 91655: See \`config.log' for more details." >&5
! 91656: echo "$as_me: error: cannot compute sizeof (long int)
! 91657: See \`config.log' for more details." >&2;}
! 91658: { (exit 77); exit 77; }; }
1.1 misho 91659: else
91660: ac_cv_sizeof_long_int=0
91661: fi
91662: fi
1.1.1.3 ! misho 91663: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 91664: fi
1.1.1.3 ! misho 91665: rm -f conftest.val
! 91666: fi
! 91667: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
! 91668: echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
1.1 misho 91669:
91670:
91671:
91672: cat >>confdefs.h <<_ACEOF
91673: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
91674: _ACEOF
91675:
91676:
1.1.1.3 ! misho 91677: { echo "$as_me:$LINENO: checking if we're on a 64-bit platform" >&5
! 91678: echo $ECHO_N "checking if we're on a 64-bit platform... $ECHO_C" >&6; }
1.1 misho 91679: if test "$ac_cv_sizeof_long_int" = "4" ; then
1.1.1.3 ! misho 91680: { echo "$as_me:$LINENO: result: no" >&5
! 91681: echo "${ECHO_T}no" >&6; }
1.1 misho 91682: TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
91683: else
1.1.1.3 ! misho 91684: { echo "$as_me:$LINENO: result: yes" >&5
! 91685: echo "${ECHO_T}yes" >&6; }
1.1 misho 91686: TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
91687: fi
91688:
1.1.1.3 ! misho 91689: { echo "$as_me:$LINENO: checking OCI8 libraries dir" >&5
! 91690: echo $ECHO_N "checking OCI8 libraries dir... $ECHO_C" >&6; }
1.1 misho 91691: if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then
91692: PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
91693: elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
91694: PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
91695: elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
91696: PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR
91697: else
1.1.1.3 ! misho 91698: { { echo "$as_me:$LINENO: error: Oracle required OCI8 libraries not found" >&5
! 91699: echo "$as_me: error: Oracle required OCI8 libraries not found" >&2;}
! 91700: { (exit 1); exit 1; }; }
1.1 misho 91701: fi
1.1.1.3 ! misho 91702: { echo "$as_me:$LINENO: result: $PDO_OCI_LIB_DIR" >&5
! 91703: echo "${ECHO_T}$PDO_OCI_LIB_DIR" >&6; }
1.1 misho 91704:
91705:
91706: if test -d "$PDO_OCI_DIR/rdbms/public"; then
91707:
91708: if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then
91709:
91710: if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then
91711: ai_p=$PDO_OCI_DIR/rdbms/public
91712: else
91713:
91714: ep_dir="`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
91715:
91716: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91717: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/public\"`"
91718: fi
91719:
91720:
91721:
91722: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91723:
91724: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91725: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91726: eval "INCLUDEPATH$unique=set"
91727:
91728: if test ""; then
91729: INCLUDES="-I$ai_p $INCLUDES"
91730: else
91731: INCLUDES="$INCLUDES -I$ai_p"
91732: fi
91733:
91734: fi
91735:
91736: fi
91737:
91738: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public"
91739: fi
91740: if test -d "$PDO_OCI_DIR/rdbms/demo"; then
91741:
91742: if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then
91743:
91744: if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
91745: ai_p=$PDO_OCI_DIR/rdbms/demo
91746: else
91747:
91748: ep_dir="`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
91749:
91750: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91751: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/demo\"`"
91752: fi
91753:
91754:
91755:
91756: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91757:
91758: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91759: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91760: eval "INCLUDEPATH$unique=set"
91761:
91762: if test ""; then
91763: INCLUDES="-I$ai_p $INCLUDES"
91764: else
91765: INCLUDES="$INCLUDES -I$ai_p"
91766: fi
91767:
91768: fi
91769:
91770: fi
91771:
91772: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo"
91773: fi
91774: if test -d "$PDO_OCI_DIR/network/public"; then
91775:
91776: if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then
91777:
91778: if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then
91779: ai_p=$PDO_OCI_DIR/network/public
91780: else
91781:
91782: ep_dir="`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
91783:
91784: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91785: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/network/public\"`"
91786: fi
91787:
91788:
91789:
91790: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91791:
91792: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91793: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91794: eval "INCLUDEPATH$unique=set"
91795:
91796: if test ""; then
91797: INCLUDES="-I$ai_p $INCLUDES"
91798: else
91799: INCLUDES="$INCLUDES -I$ai_p"
91800: fi
91801:
91802: fi
91803:
91804: fi
91805:
91806: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public"
91807: fi
91808: if test -d "$PDO_OCI_DIR/plsql/public"; then
91809:
91810: if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then
91811:
91812: if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then
91813: ai_p=$PDO_OCI_DIR/plsql/public
91814: else
91815:
91816: ep_dir="`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
91817:
91818: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91819: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/plsql/public\"`"
91820: fi
91821:
91822:
91823:
91824: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91825:
91826: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91827: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91828: eval "INCLUDEPATH$unique=set"
91829:
91830: if test ""; then
91831: INCLUDES="-I$ai_p $INCLUDES"
91832: else
91833: INCLUDES="$INCLUDES -I$ai_p"
91834: fi
91835:
91836: fi
91837:
91838: fi
91839:
91840: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public"
91841: fi
91842: if test -d "$PDO_OCI_DIR/include"; then
91843:
91844: if test "$PDO_OCI_DIR/include" != "/usr/include"; then
91845:
91846: if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then
91847: ai_p=$PDO_OCI_DIR/include
91848: else
91849:
91850: ep_dir="`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
91851:
91852: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91853: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/include\"`"
91854: fi
91855:
91856:
91857:
91858: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91859:
91860: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91861: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91862: eval "INCLUDEPATH$unique=set"
91863:
91864: if test ""; then
91865: INCLUDES="-I$ai_p $INCLUDES"
91866: else
91867: INCLUDES="$INCLUDES -I$ai_p"
91868: fi
91869:
91870: fi
91871:
91872: fi
91873:
91874: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include"
91875: fi
91876:
91877: if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then
91878:
91879: for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do
91880: case $ac_i in
91881: -pthread)
91882: if test "$ext_shared" = "yes"; then
91883: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
91884: else
91885:
91886:
91887: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
91888:
91889: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
91890: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91891: eval "EXTRA_LDFLAGS$unique=set"
91892: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
91893: fi
91894:
91895: fi
91896: ;;
91897: -l*)
91898: ac_ii=`echo $ac_i|cut -c 3-`
91899:
91900:
91901: case $ac_ii in
91902: c|c_r|pthread*) ;;
91903: *)
91904: if test "$ext_shared" = "yes"; then
91905: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
91906: else
91907:
91908:
91909: case $ac_ii in
91910: c|c_r|pthread*) ;;
91911: *)
91912: LIBS="$LIBS -l$ac_ii"
91913: ;;
91914: esac
91915:
91916:
91917: fi
91918: ;;
91919: esac
91920:
91921:
91922: ;;
91923: -L*)
91924: ac_ii=`echo $ac_i|cut -c 3-`
91925:
91926: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
91927:
91928: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
91929: ai_p=$ac_ii
91930: else
91931:
91932: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
91933:
91934: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91935: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
91936: fi
91937:
91938:
91939: if test "$ext_shared" = "yes"; then
91940: PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
91941: test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
91942: else
91943:
91944:
91945:
91946: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91947:
91948: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
91949: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91950: eval "LIBPATH$unique=set"
91951:
91952: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
91953: LDFLAGS="$LDFLAGS -L$ai_p"
91954: PHP_RPATHS="$PHP_RPATHS $ai_p"
91955:
91956: fi
91957:
91958:
91959: fi
91960:
91961: fi
91962:
91963: ;;
91964: esac
91965: done
91966:
91967: elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then
91968:
91969: for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do
91970: case $ac_i in
91971: -pthread)
91972: if test "$ext_shared" = "yes"; then
91973: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
91974: else
91975:
91976:
91977: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
91978:
91979: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
91980: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91981: eval "EXTRA_LDFLAGS$unique=set"
91982: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
91983: fi
91984:
91985: fi
91986: ;;
91987: -l*)
91988: ac_ii=`echo $ac_i|cut -c 3-`
91989:
91990:
91991: case $ac_ii in
91992: c|c_r|pthread*) ;;
91993: *)
91994: if test "$ext_shared" = "yes"; then
91995: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
91996: else
91997:
91998:
91999: case $ac_ii in
92000: c|c_r|pthread*) ;;
92001: *)
92002: LIBS="$LIBS -l$ac_ii"
92003: ;;
92004: esac
92005:
92006:
92007: fi
92008: ;;
92009: esac
92010:
92011:
92012: ;;
92013: -L*)
92014: ac_ii=`echo $ac_i|cut -c 3-`
92015:
92016: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92017:
92018: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92019: ai_p=$ac_ii
92020: else
92021:
92022: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92023:
92024: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92025: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92026: fi
92027:
92028:
92029: if test "$ext_shared" = "yes"; then
92030: PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
92031: test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
92032: else
92033:
92034:
92035:
92036: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92037:
92038: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92039: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92040: eval "LIBPATH$unique=set"
92041:
92042: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92043: LDFLAGS="$LDFLAGS -L$ai_p"
92044: PHP_RPATHS="$PHP_RPATHS $ai_p"
92045:
92046: fi
92047:
92048:
92049: fi
92050:
92051: fi
92052:
92053: ;;
92054: esac
92055: done
92056:
92057: fi
92058:
1.1.1.3 ! misho 92059: { echo "$as_me:$LINENO: checking Oracle version" >&5
! 92060: echo $ECHO_N "checking Oracle version... $ECHO_C" >&6; }
1.1 misho 92061: for OCI_VER in $SUPPORTED_LIB_VERS; do
92062: if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then
92063: PDO_OCI_VERSION="$OCI_VER"
92064: fi
92065: done
92066: if test -z "$PDO_OCI_VERSION"; then
1.1.1.3 ! misho 92067: { { echo "$as_me:$LINENO: error: Oracle required OCI8 libraries not found under $PDO_OCI_DIR" >&5
! 92068: echo "$as_me: error: Oracle required OCI8 libraries not found under $PDO_OCI_DIR" >&2;}
! 92069: { (exit 1); exit 1; }; }
1.1 misho 92070: fi
1.1.1.3 ! misho 92071: { echo "$as_me:$LINENO: result: $PDO_OCI_VERSION" >&5
! 92072: echo "${ECHO_T}$PDO_OCI_VERSION" >&6; }
1.1 misho 92073:
92074: fi
92075:
92076: case $PDO_OCI_VERSION in
92077: 9.0|10.1|10.2|11.1|11.2)
92078:
92079:
92080: case clntsh in
92081: c|c_r|pthread*) ;;
92082: *)
92083: if test "$ext_shared" = "yes"; then
92084: PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh"
92085: else
92086:
92087:
92088: case clntsh in
92089: c|c_r|pthread*) ;;
92090: *)
92091: LIBS="$LIBS -lclntsh"
92092: ;;
92093: esac
92094:
92095:
92096: fi
92097: ;;
92098: esac
92099:
92100:
92101: ;;
92102:
92103: *)
1.1.1.3 ! misho 92104: { { echo "$as_me:$LINENO: error: Unsupported Oracle version $PDO_OCI_VERSION" >&5
! 92105: echo "$as_me: error: Unsupported Oracle version $PDO_OCI_VERSION" >&2;}
! 92106: { (exit 1); exit 1; }; }
1.1 misho 92107: ;;
92108: esac
92109:
92110:
92111: if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then
92112:
92113: if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then
92114: ai_p=$PDO_OCI_LIB_DIR
92115: else
92116:
92117: ep_dir="`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
92118:
92119: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92120: ai_p="$ep_realdir/`basename \"$PDO_OCI_LIB_DIR\"`"
92121: fi
92122:
92123:
92124: if test "$ext_shared" = "yes"; then
92125: PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD"
92126: test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD"
92127: else
92128:
92129:
92130:
92131: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92132:
92133: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92134: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92135: eval "LIBPATH$unique=set"
92136:
92137: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92138: LDFLAGS="$LDFLAGS -L$ai_p"
92139: PHP_RPATHS="$PHP_RPATHS $ai_p"
92140:
92141: fi
92142:
92143:
92144: fi
92145:
92146: fi
92147:
92148:
92149:
92150: save_old_LDFLAGS=$LDFLAGS
92151: ac_stuff="
92152: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92153: "
92154:
92155: save_ext_shared=$ext_shared
92156: ext_shared=yes
92157:
92158: for ac_i in $ac_stuff; do
92159: case $ac_i in
92160: -pthread)
92161: if test "$ext_shared" = "yes"; then
92162: LDFLAGS="$LDFLAGS -pthread"
92163: else
92164:
92165:
92166: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92167:
92168: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92169: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92170: eval "EXTRA_LDFLAGS$unique=set"
92171: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92172: fi
92173:
92174: fi
92175: ;;
92176: -l*)
92177: ac_ii=`echo $ac_i|cut -c 3-`
92178:
92179:
92180: case $ac_ii in
92181: c|c_r|pthread*) ;;
92182: *)
92183: if test "$ext_shared" = "yes"; then
92184: LDFLAGS="$LDFLAGS -l$ac_ii"
92185: else
92186:
92187:
92188: case $ac_ii in
92189: c|c_r|pthread*) ;;
92190: *)
92191: LIBS="$LIBS -l$ac_ii"
92192: ;;
92193: esac
92194:
92195:
92196: fi
92197: ;;
92198: esac
92199:
92200:
92201: ;;
92202: -L*)
92203: ac_ii=`echo $ac_i|cut -c 3-`
92204:
92205: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92206:
92207: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92208: ai_p=$ac_ii
92209: else
92210:
92211: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92212:
92213: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92214: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92215: fi
92216:
92217:
92218: if test "$ext_shared" = "yes"; then
92219: LDFLAGS="-L$ai_p $LDFLAGS"
92220: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92221: else
92222:
92223:
92224:
92225: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92226:
92227: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92228: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92229: eval "LIBPATH$unique=set"
92230:
92231: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92232: LDFLAGS="$LDFLAGS -L$ai_p"
92233: PHP_RPATHS="$PHP_RPATHS $ai_p"
92234:
92235: fi
92236:
92237:
92238: fi
92239:
92240: fi
92241:
92242: ;;
92243: esac
92244: done
92245:
1.1.1.3 ! misho 92246: { echo "$as_me:$LINENO: checking for OCIEnvCreate in -lclntsh" >&5
! 92247: echo $ECHO_N "checking for OCIEnvCreate in -lclntsh... $ECHO_C" >&6; }
! 92248: if test "${ac_cv_lib_clntsh_OCIEnvCreate+set}" = set; then
! 92249: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 92250: else
92251: ac_check_lib_save_LIBS=$LIBS
92252: LIBS="-lclntsh $LIBS"
1.1.1.3 ! misho 92253: cat >conftest.$ac_ext <<_ACEOF
! 92254: /* confdefs.h. */
! 92255: _ACEOF
! 92256: cat confdefs.h >>conftest.$ac_ext
! 92257: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 92258: /* end confdefs.h. */
92259:
92260: /* Override any GCC internal prototype to avoid an error.
92261: Use char because int might match the return type of a GCC
92262: builtin and then its argument prototype would still apply. */
92263: #ifdef __cplusplus
92264: extern "C"
92265: #endif
92266: char OCIEnvCreate ();
92267: int
92268: main ()
92269: {
92270: return OCIEnvCreate ();
92271: ;
92272: return 0;
92273: }
92274: _ACEOF
1.1.1.3 ! misho 92275: rm -f conftest.$ac_objext conftest$ac_exeext
! 92276: if { (ac_try="$ac_link"
! 92277: case "(($ac_try" in
! 92278: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 92279: *) ac_try_echo=$ac_try;;
! 92280: esac
! 92281: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 92282: (eval "$ac_link") 2>conftest.er1
! 92283: ac_status=$?
! 92284: grep -v '^ *+' conftest.er1 >conftest.err
! 92285: rm -f conftest.er1
! 92286: cat conftest.err >&5
! 92287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 92288: (exit $ac_status); } && {
! 92289: test -z "$ac_c_werror_flag" ||
! 92290: test ! -s conftest.err
! 92291: } && test -s conftest$ac_exeext &&
! 92292: $as_test_x conftest$ac_exeext; then
1.1 misho 92293: ac_cv_lib_clntsh_OCIEnvCreate=yes
92294: else
1.1.1.3 ! misho 92295: echo "$as_me: failed program was:" >&5
! 92296: sed 's/^/| /' conftest.$ac_ext >&5
! 92297:
! 92298: ac_cv_lib_clntsh_OCIEnvCreate=no
1.1 misho 92299: fi
1.1.1.3 ! misho 92300:
! 92301: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 92302: conftest$ac_exeext conftest.$ac_ext
1.1 misho 92303: LIBS=$ac_check_lib_save_LIBS
92304: fi
1.1.1.3 ! misho 92305: { echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
! 92306: echo "${ECHO_T}$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
! 92307: if test $ac_cv_lib_clntsh_OCIEnvCreate = yes; then
1.1 misho 92308:
92309: LDFLAGS=$save_old_LDFLAGS
92310: ext_shared=$save_ext_shared
92311:
92312:
1.1.1.3 ! misho 92313: cat >>confdefs.h <<\_ACEOF
! 92314: #define HAVE_OCIENVCREATE 1
! 92315: _ACEOF
1.1 misho 92316:
92317:
92318:
92319: else
92320:
92321: LDFLAGS=$save_old_LDFLAGS
92322: ext_shared=$save_ext_shared
92323: unset ac_cv_lib_clntsh_OCIEnvCreate
92324:
92325:
92326: fi
92327:
92328:
92329:
92330: save_old_LDFLAGS=$LDFLAGS
92331: ac_stuff="
92332: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92333: "
92334:
92335: save_ext_shared=$ext_shared
92336: ext_shared=yes
92337:
92338: for ac_i in $ac_stuff; do
92339: case $ac_i in
92340: -pthread)
92341: if test "$ext_shared" = "yes"; then
92342: LDFLAGS="$LDFLAGS -pthread"
92343: else
92344:
92345:
92346: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92347:
92348: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92349: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92350: eval "EXTRA_LDFLAGS$unique=set"
92351: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92352: fi
92353:
92354: fi
92355: ;;
92356: -l*)
92357: ac_ii=`echo $ac_i|cut -c 3-`
92358:
92359:
92360: case $ac_ii in
92361: c|c_r|pthread*) ;;
92362: *)
92363: if test "$ext_shared" = "yes"; then
92364: LDFLAGS="$LDFLAGS -l$ac_ii"
92365: else
92366:
92367:
92368: case $ac_ii in
92369: c|c_r|pthread*) ;;
92370: *)
92371: LIBS="$LIBS -l$ac_ii"
92372: ;;
92373: esac
92374:
92375:
92376: fi
92377: ;;
92378: esac
92379:
92380:
92381: ;;
92382: -L*)
92383: ac_ii=`echo $ac_i|cut -c 3-`
92384:
92385: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92386:
92387: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92388: ai_p=$ac_ii
92389: else
92390:
92391: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92392:
92393: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92394: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92395: fi
92396:
92397:
92398: if test "$ext_shared" = "yes"; then
92399: LDFLAGS="-L$ai_p $LDFLAGS"
92400: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92401: else
92402:
92403:
92404:
92405: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92406:
92407: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92408: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92409: eval "LIBPATH$unique=set"
92410:
92411: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92412: LDFLAGS="$LDFLAGS -L$ai_p"
92413: PHP_RPATHS="$PHP_RPATHS $ai_p"
92414:
92415: fi
92416:
92417:
92418: fi
92419:
92420: fi
92421:
92422: ;;
92423: esac
92424: done
92425:
1.1.1.3 ! misho 92426: { echo "$as_me:$LINENO: checking for OCIEnvNlsCreate in -lclntsh" >&5
! 92427: echo $ECHO_N "checking for OCIEnvNlsCreate in -lclntsh... $ECHO_C" >&6; }
! 92428: if test "${ac_cv_lib_clntsh_OCIEnvNlsCreate+set}" = set; then
! 92429: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 92430: else
92431: ac_check_lib_save_LIBS=$LIBS
92432: LIBS="-lclntsh $LIBS"
1.1.1.3 ! misho 92433: cat >conftest.$ac_ext <<_ACEOF
! 92434: /* confdefs.h. */
! 92435: _ACEOF
! 92436: cat confdefs.h >>conftest.$ac_ext
! 92437: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 92438: /* end confdefs.h. */
92439:
92440: /* Override any GCC internal prototype to avoid an error.
92441: Use char because int might match the return type of a GCC
92442: builtin and then its argument prototype would still apply. */
92443: #ifdef __cplusplus
92444: extern "C"
92445: #endif
92446: char OCIEnvNlsCreate ();
92447: int
92448: main ()
92449: {
92450: return OCIEnvNlsCreate ();
92451: ;
92452: return 0;
92453: }
92454: _ACEOF
1.1.1.3 ! misho 92455: rm -f conftest.$ac_objext conftest$ac_exeext
! 92456: if { (ac_try="$ac_link"
! 92457: case "(($ac_try" in
! 92458: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 92459: *) ac_try_echo=$ac_try;;
! 92460: esac
! 92461: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 92462: (eval "$ac_link") 2>conftest.er1
! 92463: ac_status=$?
! 92464: grep -v '^ *+' conftest.er1 >conftest.err
! 92465: rm -f conftest.er1
! 92466: cat conftest.err >&5
! 92467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 92468: (exit $ac_status); } && {
! 92469: test -z "$ac_c_werror_flag" ||
! 92470: test ! -s conftest.err
! 92471: } && test -s conftest$ac_exeext &&
! 92472: $as_test_x conftest$ac_exeext; then
1.1 misho 92473: ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
92474: else
1.1.1.3 ! misho 92475: echo "$as_me: failed program was:" >&5
! 92476: sed 's/^/| /' conftest.$ac_ext >&5
! 92477:
! 92478: ac_cv_lib_clntsh_OCIEnvNlsCreate=no
1.1 misho 92479: fi
1.1.1.3 ! misho 92480:
! 92481: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 92482: conftest$ac_exeext conftest.$ac_ext
1.1 misho 92483: LIBS=$ac_check_lib_save_LIBS
92484: fi
1.1.1.3 ! misho 92485: { echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
! 92486: echo "${ECHO_T}$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
! 92487: if test $ac_cv_lib_clntsh_OCIEnvNlsCreate = yes; then
1.1 misho 92488:
92489: LDFLAGS=$save_old_LDFLAGS
92490: ext_shared=$save_ext_shared
92491:
92492:
1.1.1.3 ! misho 92493: cat >>confdefs.h <<\_ACEOF
! 92494: #define HAVE_OCIENVNLSCREATE 1
! 92495: _ACEOF
1.1 misho 92496:
92497:
92498:
92499: else
92500:
92501: LDFLAGS=$save_old_LDFLAGS
92502: ext_shared=$save_ext_shared
92503: unset ac_cv_lib_clntsh_OCIEnvNlsCreate
92504:
92505:
92506: fi
92507:
92508:
92509:
92510: save_old_LDFLAGS=$LDFLAGS
92511: ac_stuff="
92512: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92513: "
92514:
92515: save_ext_shared=$ext_shared
92516: ext_shared=yes
92517:
92518: for ac_i in $ac_stuff; do
92519: case $ac_i in
92520: -pthread)
92521: if test "$ext_shared" = "yes"; then
92522: LDFLAGS="$LDFLAGS -pthread"
92523: else
92524:
92525:
92526: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92527:
92528: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92529: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92530: eval "EXTRA_LDFLAGS$unique=set"
92531: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92532: fi
92533:
92534: fi
92535: ;;
92536: -l*)
92537: ac_ii=`echo $ac_i|cut -c 3-`
92538:
92539:
92540: case $ac_ii in
92541: c|c_r|pthread*) ;;
92542: *)
92543: if test "$ext_shared" = "yes"; then
92544: LDFLAGS="$LDFLAGS -l$ac_ii"
92545: else
92546:
92547:
92548: case $ac_ii in
92549: c|c_r|pthread*) ;;
92550: *)
92551: LIBS="$LIBS -l$ac_ii"
92552: ;;
92553: esac
92554:
92555:
92556: fi
92557: ;;
92558: esac
92559:
92560:
92561: ;;
92562: -L*)
92563: ac_ii=`echo $ac_i|cut -c 3-`
92564:
92565: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92566:
92567: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92568: ai_p=$ac_ii
92569: else
92570:
92571: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92572:
92573: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92574: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92575: fi
92576:
92577:
92578: if test "$ext_shared" = "yes"; then
92579: LDFLAGS="-L$ai_p $LDFLAGS"
92580: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92581: else
92582:
92583:
92584:
92585: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92586:
92587: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92588: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92589: eval "LIBPATH$unique=set"
92590:
92591: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92592: LDFLAGS="$LDFLAGS -L$ai_p"
92593: PHP_RPATHS="$PHP_RPATHS $ai_p"
92594:
92595: fi
92596:
92597:
92598: fi
92599:
92600: fi
92601:
92602: ;;
92603: esac
92604: done
92605:
1.1.1.3 ! misho 92606: { echo "$as_me:$LINENO: checking for OCILobIsTemporary in -lclntsh" >&5
! 92607: echo $ECHO_N "checking for OCILobIsTemporary in -lclntsh... $ECHO_C" >&6; }
! 92608: if test "${ac_cv_lib_clntsh_OCILobIsTemporary+set}" = set; then
! 92609: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 92610: else
92611: ac_check_lib_save_LIBS=$LIBS
92612: LIBS="-lclntsh $LIBS"
1.1.1.3 ! misho 92613: cat >conftest.$ac_ext <<_ACEOF
! 92614: /* confdefs.h. */
! 92615: _ACEOF
! 92616: cat confdefs.h >>conftest.$ac_ext
! 92617: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 92618: /* end confdefs.h. */
92619:
92620: /* Override any GCC internal prototype to avoid an error.
92621: Use char because int might match the return type of a GCC
92622: builtin and then its argument prototype would still apply. */
92623: #ifdef __cplusplus
92624: extern "C"
92625: #endif
92626: char OCILobIsTemporary ();
92627: int
92628: main ()
92629: {
92630: return OCILobIsTemporary ();
92631: ;
92632: return 0;
92633: }
92634: _ACEOF
1.1.1.3 ! misho 92635: rm -f conftest.$ac_objext conftest$ac_exeext
! 92636: if { (ac_try="$ac_link"
! 92637: case "(($ac_try" in
! 92638: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 92639: *) ac_try_echo=$ac_try;;
! 92640: esac
! 92641: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 92642: (eval "$ac_link") 2>conftest.er1
! 92643: ac_status=$?
! 92644: grep -v '^ *+' conftest.er1 >conftest.err
! 92645: rm -f conftest.er1
! 92646: cat conftest.err >&5
! 92647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 92648: (exit $ac_status); } && {
! 92649: test -z "$ac_c_werror_flag" ||
! 92650: test ! -s conftest.err
! 92651: } && test -s conftest$ac_exeext &&
! 92652: $as_test_x conftest$ac_exeext; then
1.1 misho 92653: ac_cv_lib_clntsh_OCILobIsTemporary=yes
92654: else
1.1.1.3 ! misho 92655: echo "$as_me: failed program was:" >&5
! 92656: sed 's/^/| /' conftest.$ac_ext >&5
! 92657:
! 92658: ac_cv_lib_clntsh_OCILobIsTemporary=no
1.1 misho 92659: fi
1.1.1.3 ! misho 92660:
! 92661: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 92662: conftest$ac_exeext conftest.$ac_ext
1.1 misho 92663: LIBS=$ac_check_lib_save_LIBS
92664: fi
1.1.1.3 ! misho 92665: { echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5
! 92666: echo "${ECHO_T}$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; }
! 92667: if test $ac_cv_lib_clntsh_OCILobIsTemporary = yes; then
1.1 misho 92668:
92669: LDFLAGS=$save_old_LDFLAGS
92670: ext_shared=$save_ext_shared
92671:
92672:
1.1.1.3 ! misho 92673: cat >>confdefs.h <<\_ACEOF
! 92674: #define HAVE_OCILOBISTEMPORARY 1
! 92675: _ACEOF
1.1 misho 92676:
92677:
92678:
92679: else
92680:
92681: LDFLAGS=$save_old_LDFLAGS
92682: ext_shared=$save_ext_shared
92683: unset ac_cv_lib_clntsh_OCILobIsTemporary
92684:
92685:
92686: save_old_LDFLAGS=$LDFLAGS
92687: ac_stuff="
92688: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92689: "
92690:
92691: save_ext_shared=$ext_shared
92692: ext_shared=yes
92693:
92694: for ac_i in $ac_stuff; do
92695: case $ac_i in
92696: -pthread)
92697: if test "$ext_shared" = "yes"; then
92698: LDFLAGS="$LDFLAGS -pthread"
92699: else
92700:
92701:
92702: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92703:
92704: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92705: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92706: eval "EXTRA_LDFLAGS$unique=set"
92707: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92708: fi
92709:
92710: fi
92711: ;;
92712: -l*)
92713: ac_ii=`echo $ac_i|cut -c 3-`
92714:
92715:
92716: case $ac_ii in
92717: c|c_r|pthread*) ;;
92718: *)
92719: if test "$ext_shared" = "yes"; then
92720: LDFLAGS="$LDFLAGS -l$ac_ii"
92721: else
92722:
92723:
92724: case $ac_ii in
92725: c|c_r|pthread*) ;;
92726: *)
92727: LIBS="$LIBS -l$ac_ii"
92728: ;;
92729: esac
92730:
92731:
92732: fi
92733: ;;
92734: esac
92735:
92736:
92737: ;;
92738: -L*)
92739: ac_ii=`echo $ac_i|cut -c 3-`
92740:
92741: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92742:
92743: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92744: ai_p=$ac_ii
92745: else
92746:
92747: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92748:
92749: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92750: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92751: fi
92752:
92753:
92754: if test "$ext_shared" = "yes"; then
92755: LDFLAGS="-L$ai_p $LDFLAGS"
92756: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92757: else
92758:
92759:
92760:
92761: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92762:
92763: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92764: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92765: eval "LIBPATH$unique=set"
92766:
92767: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92768: LDFLAGS="$LDFLAGS -L$ai_p"
92769: PHP_RPATHS="$PHP_RPATHS $ai_p"
92770:
92771: fi
92772:
92773:
92774: fi
92775:
92776: fi
92777:
92778: ;;
92779: esac
92780: done
92781:
1.1.1.3 ! misho 92782: { echo "$as_me:$LINENO: checking for OCILobIsTemporary in -locijdbc8" >&5
! 92783: echo $ECHO_N "checking for OCILobIsTemporary in -locijdbc8... $ECHO_C" >&6; }
! 92784: if test "${ac_cv_lib_ocijdbc8_OCILobIsTemporary+set}" = set; then
! 92785: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 92786: else
92787: ac_check_lib_save_LIBS=$LIBS
92788: LIBS="-locijdbc8 $LIBS"
1.1.1.3 ! misho 92789: cat >conftest.$ac_ext <<_ACEOF
! 92790: /* confdefs.h. */
! 92791: _ACEOF
! 92792: cat confdefs.h >>conftest.$ac_ext
! 92793: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 92794: /* end confdefs.h. */
92795:
92796: /* Override any GCC internal prototype to avoid an error.
92797: Use char because int might match the return type of a GCC
92798: builtin and then its argument prototype would still apply. */
92799: #ifdef __cplusplus
92800: extern "C"
92801: #endif
92802: char OCILobIsTemporary ();
92803: int
92804: main ()
92805: {
92806: return OCILobIsTemporary ();
92807: ;
92808: return 0;
92809: }
92810: _ACEOF
1.1.1.3 ! misho 92811: rm -f conftest.$ac_objext conftest$ac_exeext
! 92812: if { (ac_try="$ac_link"
! 92813: case "(($ac_try" in
! 92814: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 92815: *) ac_try_echo=$ac_try;;
! 92816: esac
! 92817: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 92818: (eval "$ac_link") 2>conftest.er1
! 92819: ac_status=$?
! 92820: grep -v '^ *+' conftest.er1 >conftest.err
! 92821: rm -f conftest.er1
! 92822: cat conftest.err >&5
! 92823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 92824: (exit $ac_status); } && {
! 92825: test -z "$ac_c_werror_flag" ||
! 92826: test ! -s conftest.err
! 92827: } && test -s conftest$ac_exeext &&
! 92828: $as_test_x conftest$ac_exeext; then
1.1 misho 92829: ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes
92830: else
1.1.1.3 ! misho 92831: echo "$as_me: failed program was:" >&5
! 92832: sed 's/^/| /' conftest.$ac_ext >&5
! 92833:
! 92834: ac_cv_lib_ocijdbc8_OCILobIsTemporary=no
1.1 misho 92835: fi
1.1.1.3 ! misho 92836:
! 92837: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 92838: conftest$ac_exeext conftest.$ac_ext
1.1 misho 92839: LIBS=$ac_check_lib_save_LIBS
92840: fi
1.1.1.3 ! misho 92841: { echo "$as_me:$LINENO: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5
! 92842: echo "${ECHO_T}$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; }
! 92843: if test $ac_cv_lib_ocijdbc8_OCILobIsTemporary = yes; then
1.1 misho 92844:
92845: LDFLAGS=$save_old_LDFLAGS
92846: ext_shared=$save_ext_shared
92847:
92848:
92849:
92850: case ocijdbc8 in
92851: c|c_r|pthread*) ;;
92852: *)
92853: if test "$ext_shared" = "yes"; then
92854: PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8"
92855: else
92856:
92857:
92858: case ocijdbc8 in
92859: c|c_r|pthread*) ;;
92860: *)
92861: LIBS="$LIBS -locijdbc8"
92862: ;;
92863: esac
92864:
92865:
92866: fi
92867: ;;
92868: esac
92869:
92870:
92871:
1.1.1.3 ! misho 92872: cat >>confdefs.h <<\_ACEOF
! 92873: #define HAVE_OCILOBISTEMPORARY 1
! 92874: _ACEOF
1.1 misho 92875:
92876:
92877:
92878: else
92879:
92880: LDFLAGS=$save_old_LDFLAGS
92881: ext_shared=$save_ext_shared
92882: unset ac_cv_lib_ocijdbc8_OCILobIsTemporary
92883:
92884:
92885: fi
92886:
92887:
92888:
92889: fi
92890:
92891:
92892:
92893: save_old_LDFLAGS=$LDFLAGS
92894: ac_stuff="
92895: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92896: "
92897:
92898: save_ext_shared=$ext_shared
92899: ext_shared=yes
92900:
92901: for ac_i in $ac_stuff; do
92902: case $ac_i in
92903: -pthread)
92904: if test "$ext_shared" = "yes"; then
92905: LDFLAGS="$LDFLAGS -pthread"
92906: else
92907:
92908:
92909: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92910:
92911: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92912: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92913: eval "EXTRA_LDFLAGS$unique=set"
92914: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92915: fi
92916:
92917: fi
92918: ;;
92919: -l*)
92920: ac_ii=`echo $ac_i|cut -c 3-`
92921:
92922:
92923: case $ac_ii in
92924: c|c_r|pthread*) ;;
92925: *)
92926: if test "$ext_shared" = "yes"; then
92927: LDFLAGS="$LDFLAGS -l$ac_ii"
92928: else
92929:
92930:
92931: case $ac_ii in
92932: c|c_r|pthread*) ;;
92933: *)
92934: LIBS="$LIBS -l$ac_ii"
92935: ;;
92936: esac
92937:
92938:
92939: fi
92940: ;;
92941: esac
92942:
92943:
92944: ;;
92945: -L*)
92946: ac_ii=`echo $ac_i|cut -c 3-`
92947:
92948: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92949:
92950: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92951: ai_p=$ac_ii
92952: else
92953:
92954: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92955:
92956: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92957: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92958: fi
92959:
92960:
92961: if test "$ext_shared" = "yes"; then
92962: LDFLAGS="-L$ai_p $LDFLAGS"
92963: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92964: else
92965:
92966:
92967:
92968: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92969:
92970: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92971: if test -n "$unique" && test "`eval $cmd`" = "" ; then
92972: eval "LIBPATH$unique=set"
92973:
92974: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92975: LDFLAGS="$LDFLAGS -L$ai_p"
92976: PHP_RPATHS="$PHP_RPATHS $ai_p"
92977:
92978: fi
92979:
92980:
92981: fi
92982:
92983: fi
92984:
92985: ;;
92986: esac
92987: done
92988:
1.1.1.3 ! misho 92989: { echo "$as_me:$LINENO: checking for OCICollAssign in -lclntsh" >&5
! 92990: echo $ECHO_N "checking for OCICollAssign in -lclntsh... $ECHO_C" >&6; }
! 92991: if test "${ac_cv_lib_clntsh_OCICollAssign+set}" = set; then
! 92992: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 92993: else
92994: ac_check_lib_save_LIBS=$LIBS
92995: LIBS="-lclntsh $LIBS"
1.1.1.3 ! misho 92996: cat >conftest.$ac_ext <<_ACEOF
! 92997: /* confdefs.h. */
! 92998: _ACEOF
! 92999: cat confdefs.h >>conftest.$ac_ext
! 93000: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 93001: /* end confdefs.h. */
93002:
93003: /* Override any GCC internal prototype to avoid an error.
93004: Use char because int might match the return type of a GCC
93005: builtin and then its argument prototype would still apply. */
93006: #ifdef __cplusplus
93007: extern "C"
93008: #endif
93009: char OCICollAssign ();
93010: int
93011: main ()
93012: {
93013: return OCICollAssign ();
93014: ;
93015: return 0;
93016: }
93017: _ACEOF
1.1.1.3 ! misho 93018: rm -f conftest.$ac_objext conftest$ac_exeext
! 93019: if { (ac_try="$ac_link"
! 93020: case "(($ac_try" in
! 93021: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 93022: *) ac_try_echo=$ac_try;;
! 93023: esac
! 93024: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 93025: (eval "$ac_link") 2>conftest.er1
! 93026: ac_status=$?
! 93027: grep -v '^ *+' conftest.er1 >conftest.err
! 93028: rm -f conftest.er1
! 93029: cat conftest.err >&5
! 93030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 93031: (exit $ac_status); } && {
! 93032: test -z "$ac_c_werror_flag" ||
! 93033: test ! -s conftest.err
! 93034: } && test -s conftest$ac_exeext &&
! 93035: $as_test_x conftest$ac_exeext; then
1.1 misho 93036: ac_cv_lib_clntsh_OCICollAssign=yes
93037: else
1.1.1.3 ! misho 93038: echo "$as_me: failed program was:" >&5
! 93039: sed 's/^/| /' conftest.$ac_ext >&5
! 93040:
! 93041: ac_cv_lib_clntsh_OCICollAssign=no
1.1 misho 93042: fi
1.1.1.3 ! misho 93043:
! 93044: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 93045: conftest$ac_exeext conftest.$ac_ext
1.1 misho 93046: LIBS=$ac_check_lib_save_LIBS
93047: fi
1.1.1.3 ! misho 93048: { echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCICollAssign" >&5
! 93049: echo "${ECHO_T}$ac_cv_lib_clntsh_OCICollAssign" >&6; }
! 93050: if test $ac_cv_lib_clntsh_OCICollAssign = yes; then
1.1 misho 93051:
93052: LDFLAGS=$save_old_LDFLAGS
93053: ext_shared=$save_ext_shared
93054:
93055:
1.1.1.3 ! misho 93056: cat >>confdefs.h <<\_ACEOF
! 93057: #define HAVE_OCICOLLASSIGN 1
! 93058: _ACEOF
1.1 misho 93059:
93060:
93061:
93062: else
93063:
93064: LDFLAGS=$save_old_LDFLAGS
93065: ext_shared=$save_ext_shared
93066: unset ac_cv_lib_clntsh_OCICollAssign
93067:
93068:
93069: fi
93070:
93071:
93072:
93073: save_old_LDFLAGS=$LDFLAGS
93074: ac_stuff="
93075: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
93076: "
93077:
93078: save_ext_shared=$ext_shared
93079: ext_shared=yes
93080:
93081: for ac_i in $ac_stuff; do
93082: case $ac_i in
93083: -pthread)
93084: if test "$ext_shared" = "yes"; then
93085: LDFLAGS="$LDFLAGS -pthread"
93086: else
93087:
93088:
93089: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
93090:
93091: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
93092: if test -n "$unique" && test "`eval $cmd`" = "" ; then
93093: eval "EXTRA_LDFLAGS$unique=set"
93094: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
93095: fi
93096:
93097: fi
93098: ;;
93099: -l*)
93100: ac_ii=`echo $ac_i|cut -c 3-`
93101:
93102:
93103: case $ac_ii in
93104: c|c_r|pthread*) ;;
93105: *)
93106: if test "$ext_shared" = "yes"; then
93107: LDFLAGS="$LDFLAGS -l$ac_ii"
93108: else
93109:
93110:
93111: case $ac_ii in
93112: c|c_r|pthread*) ;;
93113: *)
93114: LIBS="$LIBS -l$ac_ii"
93115: ;;
93116: esac
93117:
93118:
93119: fi
93120: ;;
93121: esac
93122:
93123:
93124: ;;
93125: -L*)
93126: ac_ii=`echo $ac_i|cut -c 3-`
93127:
93128: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
93129:
93130: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
93131: ai_p=$ac_ii
93132: else
93133:
93134: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
93135:
93136: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
93137: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
93138: fi
93139:
93140:
93141: if test "$ext_shared" = "yes"; then
93142: LDFLAGS="-L$ai_p $LDFLAGS"
93143: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
93144: else
93145:
93146:
93147:
93148: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
93149:
93150: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
93151: if test -n "$unique" && test "`eval $cmd`" = "" ; then
93152: eval "LIBPATH$unique=set"
93153:
93154: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
93155: LDFLAGS="$LDFLAGS -L$ai_p"
93156: PHP_RPATHS="$PHP_RPATHS $ai_p"
93157:
93158: fi
93159:
93160:
93161: fi
93162:
93163: fi
93164:
93165: ;;
93166: esac
93167: done
93168:
1.1.1.3 ! misho 93169: { echo "$as_me:$LINENO: checking for OCIStmtFetch2 in -lclntsh" >&5
! 93170: echo $ECHO_N "checking for OCIStmtFetch2 in -lclntsh... $ECHO_C" >&6; }
! 93171: if test "${ac_cv_lib_clntsh_OCIStmtFetch2+set}" = set; then
! 93172: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 93173: else
93174: ac_check_lib_save_LIBS=$LIBS
93175: LIBS="-lclntsh $LIBS"
1.1.1.3 ! misho 93176: cat >conftest.$ac_ext <<_ACEOF
! 93177: /* confdefs.h. */
! 93178: _ACEOF
! 93179: cat confdefs.h >>conftest.$ac_ext
! 93180: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 93181: /* end confdefs.h. */
93182:
93183: /* Override any GCC internal prototype to avoid an error.
93184: Use char because int might match the return type of a GCC
93185: builtin and then its argument prototype would still apply. */
93186: #ifdef __cplusplus
93187: extern "C"
93188: #endif
93189: char OCIStmtFetch2 ();
93190: int
93191: main ()
93192: {
93193: return OCIStmtFetch2 ();
93194: ;
93195: return 0;
93196: }
93197: _ACEOF
1.1.1.3 ! misho 93198: rm -f conftest.$ac_objext conftest$ac_exeext
! 93199: if { (ac_try="$ac_link"
! 93200: case "(($ac_try" in
! 93201: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 93202: *) ac_try_echo=$ac_try;;
! 93203: esac
! 93204: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 93205: (eval "$ac_link") 2>conftest.er1
! 93206: ac_status=$?
! 93207: grep -v '^ *+' conftest.er1 >conftest.err
! 93208: rm -f conftest.er1
! 93209: cat conftest.err >&5
! 93210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 93211: (exit $ac_status); } && {
! 93212: test -z "$ac_c_werror_flag" ||
! 93213: test ! -s conftest.err
! 93214: } && test -s conftest$ac_exeext &&
! 93215: $as_test_x conftest$ac_exeext; then
1.1 misho 93216: ac_cv_lib_clntsh_OCIStmtFetch2=yes
93217: else
1.1.1.3 ! misho 93218: echo "$as_me: failed program was:" >&5
! 93219: sed 's/^/| /' conftest.$ac_ext >&5
! 93220:
! 93221: ac_cv_lib_clntsh_OCIStmtFetch2=no
1.1 misho 93222: fi
1.1.1.3 ! misho 93223:
! 93224: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 93225: conftest$ac_exeext conftest.$ac_ext
1.1 misho 93226: LIBS=$ac_check_lib_save_LIBS
93227: fi
1.1.1.3 ! misho 93228: { echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5
! 93229: echo "${ECHO_T}$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; }
! 93230: if test $ac_cv_lib_clntsh_OCIStmtFetch2 = yes; then
1.1 misho 93231:
93232: LDFLAGS=$save_old_LDFLAGS
93233: ext_shared=$save_ext_shared
93234:
93235:
1.1.1.3 ! misho 93236: cat >>confdefs.h <<\_ACEOF
! 93237: #define HAVE_OCISTMTFETCH2 1
! 93238: _ACEOF
1.1 misho 93239:
93240:
93241:
93242: else
93243:
93244: LDFLAGS=$save_old_LDFLAGS
93245: ext_shared=$save_ext_shared
93246: unset ac_cv_lib_clntsh_OCIStmtFetch2
93247:
93248:
93249: fi
93250:
93251:
93252:
93253:
1.1.1.3 ! misho 93254: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 93255: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 93256: if test "${pdo_cv_inc_path+set}" = set; then
! 93257: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 93258: else
93259:
1.1.1.3 ! misho 93260: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 93261: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 93262: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 93263: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 93264: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 93265: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 93266: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 93267: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 93268: fi
93269:
93270: fi
1.1.1.3 ! misho 93271: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 93272: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 93273: if test -n "$pdo_cv_inc_path"; then
1.1 misho 93274: :
93275: else
1.1.1.3 ! misho 93276: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 93277: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 93278: { (exit 1); exit 1; }; }
1.1 misho 93279: fi
93280:
93281:
93282:
93283:
93284: ext_builddir=ext/pdo_oci
93285: ext_srcdir=$abs_srcdir/ext/pdo_oci
93286:
1.1.1.2 misho 93287: ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 93288:
93289: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
93290: PHP_PDO_OCI_SHARED=no
93291:
93292:
93293: case ext/pdo_oci in
93294: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93295: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93296: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93297: esac
93298:
93299:
93300:
93301: b_c_pre=$php_c_pre
93302: b_cxx_pre=$php_cxx_pre
93303: b_c_meta=$php_c_meta
93304: b_cxx_meta=$php_cxx_meta
93305: b_c_post=$php_c_post
93306: b_cxx_post=$php_cxx_post
93307: b_lo=$php_lo
93308:
93309:
93310: old_IFS=$IFS
93311: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93312:
93313: IFS=.
93314: set $ac_src
93315: ac_obj=$1
93316: IFS=$old_IFS
93317:
93318: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
93319:
93320: case $ac_src in
93321: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93322: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93323: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93324: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93325: esac
93326:
93327: cat >>Makefile.objects<<EOF
93328: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93329: $ac_comp
93330: EOF
93331: done
93332:
93333:
93334: EXT_STATIC="$EXT_STATIC pdo_oci"
93335: if test "$ext_shared" != "nocli"; then
93336: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
93337: fi
93338: else
93339: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
93340: PHP_PDO_OCI_SHARED=yes
93341:
93342: case ext/pdo_oci in
93343: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93344: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93345: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93346: esac
93347:
93348:
93349:
93350: b_c_pre=$shared_c_pre
93351: b_cxx_pre=$shared_cxx_pre
93352: b_c_meta=$shared_c_meta
93353: b_cxx_meta=$shared_cxx_meta
93354: b_c_post=$shared_c_post
93355: b_cxx_post=$shared_cxx_post
93356: b_lo=$shared_lo
93357:
93358:
93359: old_IFS=$IFS
93360: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93361:
93362: IFS=.
93363: set $ac_src
93364: ac_obj=$1
93365: IFS=$old_IFS
93366:
93367: shared_objects_pdo_oci="$shared_objects_pdo_oci $ac_bdir$ac_obj.lo"
93368:
93369: case $ac_src in
93370: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93371: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93372: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93373: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93374: esac
93375:
93376: cat >>Makefile.objects<<EOF
93377: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93378: $ac_comp
93379: EOF
93380: done
93381:
93382: case $host_alias in
93383: *netware*)
93384:
93385: install_modules="install-modules"
93386:
93387: case $host_alias in
93388: *aix*)
93389: suffix=so
93390: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_oci.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PHPPDO_OCI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_oci.so '$ext_builddir'/phppdo_oci.so'
93391: ;;
93392: *netware*)
93393: suffix=nlm
93394: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) -L$(top_builddir)/netware -lphp5lib $(PDO_OCI_SHARED_LIBADD)'
93395: ;;
93396: *)
93397: suffix=la
93398: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PHPPDO_OCI_SHARED_LIBADD)'
93399: ;;
93400: esac
93401:
93402: if test "x" = "xyes"; then
93403: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_oci.$suffix"
93404: else
93405: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_oci.$suffix"
93406: fi
93407:
93408: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
93409:
93410: cat >>Makefile.objects<<EOF
93411: \$(phplibdir)/phppdo_oci.$suffix: $ext_builddir/phppdo_oci.$suffix
93412: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_oci.$suffix \$(phplibdir)
93413:
93414: $ext_builddir/phppdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PHPPDO_OCI_SHARED_DEPENDENCIES)
93415: $link_cmd
93416:
93417: EOF
93418:
93419: ;;
93420: *)
93421:
93422: install_modules="install-modules"
93423:
93424: case $host_alias in
93425: *aix*)
93426: suffix=so
93427: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_oci.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PDO_OCI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_oci.so '$ext_builddir'/pdo_oci.so'
93428: ;;
93429: *netware*)
93430: suffix=nlm
93431: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) -L$(top_builddir)/netware -lphp5lib $(_OCI_SHARED_LIBADD)'
93432: ;;
93433: *)
93434: suffix=la
93435: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PDO_OCI_SHARED_LIBADD)'
93436: ;;
93437: esac
93438:
93439: if test "x" = "xyes"; then
93440: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_oci.$suffix"
93441: else
93442: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_oci.$suffix"
93443: fi
93444:
93445: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
93446:
93447: cat >>Makefile.objects<<EOF
93448: \$(phplibdir)/pdo_oci.$suffix: $ext_builddir/pdo_oci.$suffix
93449: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_oci.$suffix \$(phplibdir)
93450:
93451: $ext_builddir/pdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_DEPENDENCIES)
93452: $link_cmd
93453:
93454: EOF
93455:
93456: ;;
93457: esac
93458:
93459: cat >>confdefs.h <<_ACEOF
93460: #define COMPILE_DL_PDO_OCI 1
93461: _ACEOF
93462:
93463: fi
93464: fi
93465:
93466: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
93467: PHP_PDO_OCI_SHARED=no
1.1.1.3 ! misho 93468: case "$PHP_SAPI" in
! 93469: cgi|embed)
1.1 misho 93470:
93471:
93472: case ext/pdo_oci in
93473: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93474: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93475: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93476: esac
93477:
93478:
93479:
93480: b_c_pre=$php_c_pre
93481: b_cxx_pre=$php_cxx_pre
93482: b_c_meta=$php_c_meta
93483: b_cxx_meta=$php_cxx_meta
93484: b_c_post=$php_c_post
93485: b_cxx_post=$php_cxx_post
93486: b_lo=$php_lo
93487:
93488:
93489: old_IFS=$IFS
93490: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93491:
93492: IFS=.
93493: set $ac_src
93494: ac_obj=$1
93495: IFS=$old_IFS
93496:
1.1.1.2 misho 93497: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 93498:
93499: case $ac_src in
93500: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93501: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93502: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93503: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93504: esac
93505:
93506: cat >>Makefile.objects<<EOF
93507: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93508: $ac_comp
93509: EOF
93510: done
93511:
93512:
1.1.1.3 ! misho 93513: EXT_STATIC="$EXT_STATIC pdo_oci"
! 93514: ;;
! 93515: *)
1.1 misho 93516:
93517:
93518: case ext/pdo_oci in
93519: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93520: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93521: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93522: esac
93523:
93524:
93525:
93526: b_c_pre=$php_c_pre
93527: b_cxx_pre=$php_cxx_pre
93528: b_c_meta=$php_c_meta
93529: b_cxx_meta=$php_cxx_meta
93530: b_c_post=$php_c_post
93531: b_cxx_post=$php_cxx_post
93532: b_lo=$php_lo
93533:
93534:
93535: old_IFS=$IFS
93536: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93537:
93538: IFS=.
93539: set $ac_src
93540: ac_obj=$1
93541: IFS=$old_IFS
93542:
1.1.1.2 misho 93543: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 93544:
93545: case $ac_src in
93546: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93547: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93548: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93549: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93550: esac
93551:
93552: cat >>Makefile.objects<<EOF
93553: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93554: $ac_comp
93555: EOF
93556: done
93557:
93558:
1.1.1.3 ! misho 93559: ;;
! 93560: esac
1.1 misho 93561: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
93562: fi
93563:
93564:
93565: BUILD_DIR="$BUILD_DIR $ext_builddir"
93566:
93567:
93568:
93569: if test "$ext_builddir" = "."; then
93570: PHP_PECL_EXTENSION=pdo_oci
93571:
93572: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
93573:
93574: fi
93575:
93576:
93577:
93578:
93579: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_SHARED_LIBADD"
93580:
93581:
93582:
93583:
93584:
93585: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_DIR"
93586:
93587:
93588:
93589:
93590:
93591: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_VERSION"
93592:
93593:
93594:
93595:
93596:
93597:
93598: am_i_shared=$PHP_PDO_OCI_SHARED
93599: is_it_shared=$PHP_PDO_SHARED
93600: is_it_enabled=$PHP_PDO
93601: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 93602: { { echo "$as_me:$LINENO: error:
! 93603: You've configured extension pdo_oci to build statically, but it
! 93604: depends on extension pdo, which you've configured to build shared.
! 93605: You either need to build pdo_oci shared or build pdo statically for the
! 93606: build to be successful.
! 93607: " >&5
! 93608: echo "$as_me: error:
1.1 misho 93609: You've configured extension pdo_oci to build statically, but it
93610: depends on extension pdo, which you've configured to build shared.
93611: You either need to build pdo_oci shared or build pdo statically for the
93612: build to be successful.
1.1.1.3 ! misho 93613: " >&2;}
! 93614: { (exit 1); exit 1; }; }
! 93615: fi
! 93616: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 93617: { { echo "$as_me:$LINENO: error:
! 93618: You've configured extension pdo_oci, which depends on extension pdo,
! 93619: but you've either not enabled pdo, or have disabled it.
! 93620: " >&5
! 93621: echo "$as_me: error:
! 93622: You've configured extension pdo_oci, which depends on extension pdo,
! 93623: but you've either not enabled pdo, or have disabled it.
! 93624: " >&2;}
! 93625: { (exit 1); exit 1; }; }
1.1 misho 93626: fi
93627:
93628:
93629:
93630:
93631: cat >>confdefs.h <<_ACEOF
93632: #define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION"
93633: _ACEOF
93634:
93635: fi
93636:
93637:
93638:
93639:
93640:
93641:
93642: php_with_pdo_odbc=no
93643:
1.1.1.3 ! misho 93644: { echo "$as_me:$LINENO: checking for ODBC v3 support for PDO" >&5
! 93645: echo $ECHO_N "checking for ODBC v3 support for PDO... $ECHO_C" >&6; }
1.1 misho 93646:
93647: # Check whether --with-pdo-odbc was given.
1.1.1.3 ! misho 93648: if test "${with_pdo_odbc+set}" = set; then
1.1 misho 93649: withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval
93650: else
93651:
93652: PHP_PDO_ODBC=no
93653: test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL
93654:
93655: fi
93656:
93657:
93658:
93659: ext_output="yes, shared"
93660: ext_shared=yes
93661: case $PHP_PDO_ODBC in
93662: shared,*)
93663: PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'`
93664: ;;
93665: shared)
93666: PHP_PDO_ODBC=yes
93667: ;;
93668: no)
93669: ext_output=no
93670: ext_shared=no
93671: ;;
93672: *)
93673: ext_output=yes
93674: ext_shared=no
93675: ;;
93676: esac
93677:
93678:
93679:
1.1.1.3 ! misho 93680: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 93681: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 93682:
93683:
93684:
93685:
93686:
93687:
93688:
93689: if test "$PHP_PDO_ODBC" != "no"; then
93690:
93691: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 93692: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 93693: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 93694: { (exit 1); exit 1; }; }
1.1 misho 93695: fi
93696:
93697:
93698:
1.1.1.3 ! misho 93699: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 93700: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 93701: if test "${pdo_cv_inc_path+set}" = set; then
! 93702: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 93703: else
93704:
1.1.1.3 ! misho 93705: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 93706: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 93707: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 93708: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 93709: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 93710: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 93711: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 93712: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 93713: fi
93714:
93715: fi
1.1.1.3 ! misho 93716: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 93717: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 93718: if test -n "$pdo_cv_inc_path"; then
1.1 misho 93719: :
93720: else
1.1.1.3 ! misho 93721: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 93722: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 93723: { (exit 1); exit 1; }; }
1.1 misho 93724: fi
93725:
93726:
93727:
1.1.1.3 ! misho 93728: { echo "$as_me:$LINENO: checking for selected PDO ODBC flavour" >&5
! 93729: echo $ECHO_N "checking for selected PDO ODBC flavour... $ECHO_C" >&6; }
1.1 misho 93730:
93731: pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`"
93732: pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`"
93733:
93734: if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then
93735: pdo_odbc_dir=
93736: fi
93737:
93738: case $pdo_odbc_flavour in
93739: ibm-db2)
93740: pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib
93741: pdo_odbc_def_incdir=/home/db2inst1/sqllib/include
93742: pdo_odbc_def_lib=db2
93743: ;;
93744:
93745: iODBC|iodbc)
93746: pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
93747: pdo_odbc_def_incdir=/usr/local/include
93748: pdo_odbc_def_lib=iodbc
93749: ;;
93750:
93751: unixODBC|unixodbc)
93752: pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
93753: pdo_odbc_def_incdir=/usr/local/include
93754: pdo_odbc_def_lib=odbc
93755: ;;
93756:
93757: ODBCRouter|odbcrouter)
93758: pdo_odbc_def_libdir=/usr/$PHP_LIBDIR
93759: pdo_odbc_def_incdir=/usr/include
93760: pdo_odbc_def_lib=odbcsdk
93761: ;;
93762:
93763: generic)
93764: pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`"
93765: pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`"
93766: pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`"
93767: pdo_odbc_flavour="generic-$pdo_odbc_def_lib"
93768: ;;
93769:
93770: *)
1.1.1.3 ! misho 93771: { { echo "$as_me:$LINENO: error: Unknown ODBC flavour $pdo_odbc_flavour
! 93772: include and lib dirs are looked for under 'dir'.
! 93773:
! 93774: 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
! 93775: If ',dir' part is omitted, default for the flavour
! 93776: you have selected will used. e.g.:
! 93777:
! 93778: --with-pdo-odbc=unixODBC
! 93779:
! 93780: will check for unixODBC under /usr/local. You may attempt
! 93781: to use an otherwise unsupported driver using the \"generic\"
! 93782: flavour. The syntax for generic ODBC support is:
! 93783:
! 93784: --with-pdo-odbc=generic,dir,libname,ldflags,cflags
! 93785:
! 93786: When build as shared the extension filename is always pdo_odbc.so" >&5
! 93787: echo "$as_me: error: Unknown ODBC flavour $pdo_odbc_flavour
1.1 misho 93788: include and lib dirs are looked for under 'dir'.
93789:
93790: 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
93791: If ',dir' part is omitted, default for the flavour
93792: you have selected will used. e.g.:
93793:
93794: --with-pdo-odbc=unixODBC
93795:
93796: will check for unixODBC under /usr/local. You may attempt
93797: to use an otherwise unsupported driver using the \"generic\"
93798: flavour. The syntax for generic ODBC support is:
93799:
93800: --with-pdo-odbc=generic,dir,libname,ldflags,cflags
93801:
1.1.1.3 ! misho 93802: When build as shared the extension filename is always pdo_odbc.so" >&2;}
! 93803: { (exit 1); exit 1; }; }
1.1 misho 93804: ;;
93805: esac
93806:
93807: if test -n "$pdo_odbc_dir"; then
93808: PDO_ODBC_INCDIR="$pdo_odbc_dir/include"
93809: PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR"
93810: else
93811: PDO_ODBC_INCDIR="$pdo_odbc_def_incdir"
93812: PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir"
93813: fi
93814:
1.1.1.3 ! misho 93815: { echo "$as_me:$LINENO: result: $pdo_odbc_flavour
1.1 misho 93816: libs $PDO_ODBC_LIBDIR,
93817: headers $PDO_ODBC_INCDIR" >&5
1.1.1.3 ! misho 93818: echo "${ECHO_T}$pdo_odbc_flavour
1.1 misho 93819: libs $PDO_ODBC_LIBDIR,
93820: headers $PDO_ODBC_INCDIR" >&6; }
93821:
93822: if test ! -d "$PDO_ODBC_LIBDIR" ; then
1.1.1.3 ! misho 93823: { echo "$as_me:$LINENO: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5
! 93824: echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;}
1.1 misho 93825: fi
93826:
93827:
1.1.1.3 ! misho 93828: { echo "$as_me:$LINENO: checking for odbc.h in $PDO_ODBC_INCDIR" >&5
! 93829: echo $ECHO_N "checking for odbc.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93830: if test -f "$PDO_ODBC_INCDIR/odbc.h"; then
93831: php_pdo_have_header=yes
93832:
1.1.1.3 ! misho 93833: cat >>confdefs.h <<\_ACEOF
! 93834: #define HAVE_ODBC_H 1
! 93835: _ACEOF
1.1 misho 93836:
1.1.1.3 ! misho 93837: { echo "$as_me:$LINENO: result: yes" >&5
! 93838: echo "${ECHO_T}yes" >&6; }
1.1 misho 93839: else
1.1.1.3 ! misho 93840: { echo "$as_me:$LINENO: result: no" >&5
! 93841: echo "${ECHO_T}no" >&6; }
1.1 misho 93842: fi
93843:
93844:
1.1.1.3 ! misho 93845: { echo "$as_me:$LINENO: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5
! 93846: echo $ECHO_N "checking for odbcsdk.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93847: if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then
93848: php_pdo_have_header=yes
93849:
1.1.1.3 ! misho 93850: cat >>confdefs.h <<\_ACEOF
! 93851: #define HAVE_ODBCSDK_H 1
! 93852: _ACEOF
1.1 misho 93853:
1.1.1.3 ! misho 93854: { echo "$as_me:$LINENO: result: yes" >&5
! 93855: echo "${ECHO_T}yes" >&6; }
1.1 misho 93856: else
1.1.1.3 ! misho 93857: { echo "$as_me:$LINENO: result: no" >&5
! 93858: echo "${ECHO_T}no" >&6; }
1.1 misho 93859: fi
93860:
93861:
1.1.1.3 ! misho 93862: { echo "$as_me:$LINENO: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5
! 93863: echo $ECHO_N "checking for iodbc.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93864: if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then
93865: php_pdo_have_header=yes
93866:
1.1.1.3 ! misho 93867: cat >>confdefs.h <<\_ACEOF
! 93868: #define HAVE_IODBC_H 1
! 93869: _ACEOF
1.1 misho 93870:
1.1.1.3 ! misho 93871: { echo "$as_me:$LINENO: result: yes" >&5
! 93872: echo "${ECHO_T}yes" >&6; }
1.1 misho 93873: else
1.1.1.3 ! misho 93874: { echo "$as_me:$LINENO: result: no" >&5
! 93875: echo "${ECHO_T}no" >&6; }
1.1 misho 93876: fi
93877:
93878:
1.1.1.3 ! misho 93879: { echo "$as_me:$LINENO: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5
! 93880: echo $ECHO_N "checking for sqlunix.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93881: if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then
93882: php_pdo_have_header=yes
93883:
1.1.1.3 ! misho 93884: cat >>confdefs.h <<\_ACEOF
! 93885: #define HAVE_SQLUNIX_H 1
! 93886: _ACEOF
1.1 misho 93887:
1.1.1.3 ! misho 93888: { echo "$as_me:$LINENO: result: yes" >&5
! 93889: echo "${ECHO_T}yes" >&6; }
1.1 misho 93890: else
1.1.1.3 ! misho 93891: { echo "$as_me:$LINENO: result: no" >&5
! 93892: echo "${ECHO_T}no" >&6; }
1.1 misho 93893: fi
93894:
93895:
1.1.1.3 ! misho 93896: { echo "$as_me:$LINENO: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5
! 93897: echo $ECHO_N "checking for sqltypes.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93898: if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then
93899: php_pdo_have_header=yes
93900:
1.1.1.3 ! misho 93901: cat >>confdefs.h <<\_ACEOF
! 93902: #define HAVE_SQLTYPES_H 1
! 93903: _ACEOF
1.1 misho 93904:
1.1.1.3 ! misho 93905: { echo "$as_me:$LINENO: result: yes" >&5
! 93906: echo "${ECHO_T}yes" >&6; }
1.1 misho 93907: else
1.1.1.3 ! misho 93908: { echo "$as_me:$LINENO: result: no" >&5
! 93909: echo "${ECHO_T}no" >&6; }
1.1 misho 93910: fi
93911:
93912:
1.1.1.3 ! misho 93913: { echo "$as_me:$LINENO: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5
! 93914: echo $ECHO_N "checking for sqlucode.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93915: if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then
93916: php_pdo_have_header=yes
93917:
1.1.1.3 ! misho 93918: cat >>confdefs.h <<\_ACEOF
! 93919: #define HAVE_SQLUCODE_H 1
! 93920: _ACEOF
1.1 misho 93921:
1.1.1.3 ! misho 93922: { echo "$as_me:$LINENO: result: yes" >&5
! 93923: echo "${ECHO_T}yes" >&6; }
1.1 misho 93924: else
1.1.1.3 ! misho 93925: { echo "$as_me:$LINENO: result: no" >&5
! 93926: echo "${ECHO_T}no" >&6; }
1.1 misho 93927: fi
93928:
93929:
1.1.1.3 ! misho 93930: { echo "$as_me:$LINENO: checking for sql.h in $PDO_ODBC_INCDIR" >&5
! 93931: echo $ECHO_N "checking for sql.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93932: if test -f "$PDO_ODBC_INCDIR/sql.h"; then
93933: php_pdo_have_header=yes
93934:
1.1.1.3 ! misho 93935: cat >>confdefs.h <<\_ACEOF
! 93936: #define HAVE_SQL_H 1
! 93937: _ACEOF
1.1 misho 93938:
1.1.1.3 ! misho 93939: { echo "$as_me:$LINENO: result: yes" >&5
! 93940: echo "${ECHO_T}yes" >&6; }
1.1 misho 93941: else
1.1.1.3 ! misho 93942: { echo "$as_me:$LINENO: result: no" >&5
! 93943: echo "${ECHO_T}no" >&6; }
1.1 misho 93944: fi
93945:
93946:
1.1.1.3 ! misho 93947: { echo "$as_me:$LINENO: checking for isql.h in $PDO_ODBC_INCDIR" >&5
! 93948: echo $ECHO_N "checking for isql.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93949: if test -f "$PDO_ODBC_INCDIR/isql.h"; then
93950: php_pdo_have_header=yes
93951:
1.1.1.3 ! misho 93952: cat >>confdefs.h <<\_ACEOF
! 93953: #define HAVE_ISQL_H 1
! 93954: _ACEOF
1.1 misho 93955:
1.1.1.3 ! misho 93956: { echo "$as_me:$LINENO: result: yes" >&5
! 93957: echo "${ECHO_T}yes" >&6; }
1.1 misho 93958: else
1.1.1.3 ! misho 93959: { echo "$as_me:$LINENO: result: no" >&5
! 93960: echo "${ECHO_T}no" >&6; }
1.1 misho 93961: fi
93962:
93963:
1.1.1.3 ! misho 93964: { echo "$as_me:$LINENO: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5
! 93965: echo $ECHO_N "checking for sqlext.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93966: if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then
93967: php_pdo_have_header=yes
93968:
1.1.1.3 ! misho 93969: cat >>confdefs.h <<\_ACEOF
! 93970: #define HAVE_SQLEXT_H 1
! 93971: _ACEOF
1.1 misho 93972:
1.1.1.3 ! misho 93973: { echo "$as_me:$LINENO: result: yes" >&5
! 93974: echo "${ECHO_T}yes" >&6; }
1.1 misho 93975: else
1.1.1.3 ! misho 93976: { echo "$as_me:$LINENO: result: no" >&5
! 93977: echo "${ECHO_T}no" >&6; }
1.1 misho 93978: fi
93979:
93980:
1.1.1.3 ! misho 93981: { echo "$as_me:$LINENO: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5
! 93982: echo $ECHO_N "checking for isqlext.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 93983: if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then
93984: php_pdo_have_header=yes
93985:
1.1.1.3 ! misho 93986: cat >>confdefs.h <<\_ACEOF
! 93987: #define HAVE_ISQLEXT_H 1
! 93988: _ACEOF
1.1 misho 93989:
1.1.1.3 ! misho 93990: { echo "$as_me:$LINENO: result: yes" >&5
! 93991: echo "${ECHO_T}yes" >&6; }
1.1 misho 93992: else
1.1.1.3 ! misho 93993: { echo "$as_me:$LINENO: result: no" >&5
! 93994: echo "${ECHO_T}no" >&6; }
1.1 misho 93995: fi
93996:
93997:
1.1.1.3 ! misho 93998: { echo "$as_me:$LINENO: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5
! 93999: echo $ECHO_N "checking for udbcext.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94000: if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then
94001: php_pdo_have_header=yes
94002:
1.1.1.3 ! misho 94003: cat >>confdefs.h <<\_ACEOF
! 94004: #define HAVE_UDBCEXT_H 1
! 94005: _ACEOF
1.1 misho 94006:
1.1.1.3 ! misho 94007: { echo "$as_me:$LINENO: result: yes" >&5
! 94008: echo "${ECHO_T}yes" >&6; }
1.1 misho 94009: else
1.1.1.3 ! misho 94010: { echo "$as_me:$LINENO: result: no" >&5
! 94011: echo "${ECHO_T}no" >&6; }
1.1 misho 94012: fi
94013:
94014:
1.1.1.3 ! misho 94015: { echo "$as_me:$LINENO: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5
! 94016: echo $ECHO_N "checking for sqlcli1.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94017: if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then
94018: php_pdo_have_header=yes
94019:
1.1.1.3 ! misho 94020: cat >>confdefs.h <<\_ACEOF
! 94021: #define HAVE_SQLCLI1_H 1
! 94022: _ACEOF
1.1 misho 94023:
1.1.1.3 ! misho 94024: { echo "$as_me:$LINENO: result: yes" >&5
! 94025: echo "${ECHO_T}yes" >&6; }
1.1 misho 94026: else
1.1.1.3 ! misho 94027: { echo "$as_me:$LINENO: result: no" >&5
! 94028: echo "${ECHO_T}no" >&6; }
1.1 misho 94029: fi
94030:
94031:
1.1.1.3 ! misho 94032: { echo "$as_me:$LINENO: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5
! 94033: echo $ECHO_N "checking for LibraryManager.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94034: if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then
94035: php_pdo_have_header=yes
94036:
1.1.1.3 ! misho 94037: cat >>confdefs.h <<\_ACEOF
! 94038: #define HAVE_LIBRARYMANAGER_H 1
! 94039: _ACEOF
1.1 misho 94040:
1.1.1.3 ! misho 94041: { echo "$as_me:$LINENO: result: yes" >&5
! 94042: echo "${ECHO_T}yes" >&6; }
1.1 misho 94043: else
1.1.1.3 ! misho 94044: { echo "$as_me:$LINENO: result: no" >&5
! 94045: echo "${ECHO_T}no" >&6; }
1.1 misho 94046: fi
94047:
94048:
1.1.1.3 ! misho 94049: { echo "$as_me:$LINENO: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5
! 94050: echo $ECHO_N "checking for cli0core.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94051: if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then
94052: php_pdo_have_header=yes
94053:
1.1.1.3 ! misho 94054: cat >>confdefs.h <<\_ACEOF
! 94055: #define HAVE_CLI0CORE_H 1
! 94056: _ACEOF
1.1 misho 94057:
1.1.1.3 ! misho 94058: { echo "$as_me:$LINENO: result: yes" >&5
! 94059: echo "${ECHO_T}yes" >&6; }
1.1 misho 94060: else
1.1.1.3 ! misho 94061: { echo "$as_me:$LINENO: result: no" >&5
! 94062: echo "${ECHO_T}no" >&6; }
1.1 misho 94063: fi
94064:
94065:
1.1.1.3 ! misho 94066: { echo "$as_me:$LINENO: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5
! 94067: echo $ECHO_N "checking for cli0ext.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94068: if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then
94069: php_pdo_have_header=yes
94070:
1.1.1.3 ! misho 94071: cat >>confdefs.h <<\_ACEOF
! 94072: #define HAVE_CLI0EXT_H 1
! 94073: _ACEOF
1.1 misho 94074:
1.1.1.3 ! misho 94075: { echo "$as_me:$LINENO: result: yes" >&5
! 94076: echo "${ECHO_T}yes" >&6; }
1.1 misho 94077: else
1.1.1.3 ! misho 94078: { echo "$as_me:$LINENO: result: no" >&5
! 94079: echo "${ECHO_T}no" >&6; }
1.1 misho 94080: fi
94081:
94082:
1.1.1.3 ! misho 94083: { echo "$as_me:$LINENO: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5
! 94084: echo $ECHO_N "checking for cli0cli.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94085: if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then
94086: php_pdo_have_header=yes
94087:
1.1.1.3 ! misho 94088: cat >>confdefs.h <<\_ACEOF
! 94089: #define HAVE_CLI0CLI_H 1
! 94090: _ACEOF
1.1 misho 94091:
1.1.1.3 ! misho 94092: { echo "$as_me:$LINENO: result: yes" >&5
! 94093: echo "${ECHO_T}yes" >&6; }
1.1 misho 94094: else
1.1.1.3 ! misho 94095: { echo "$as_me:$LINENO: result: no" >&5
! 94096: echo "${ECHO_T}no" >&6; }
1.1 misho 94097: fi
94098:
94099:
1.1.1.3 ! misho 94100: { echo "$as_me:$LINENO: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5
! 94101: echo $ECHO_N "checking for cli0defs.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94102: if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then
94103: php_pdo_have_header=yes
94104:
1.1.1.3 ! misho 94105: cat >>confdefs.h <<\_ACEOF
! 94106: #define HAVE_CLI0DEFS_H 1
! 94107: _ACEOF
1.1 misho 94108:
1.1.1.3 ! misho 94109: { echo "$as_me:$LINENO: result: yes" >&5
! 94110: echo "${ECHO_T}yes" >&6; }
1.1 misho 94111: else
1.1.1.3 ! misho 94112: { echo "$as_me:$LINENO: result: no" >&5
! 94113: echo "${ECHO_T}no" >&6; }
1.1 misho 94114: fi
94115:
94116:
1.1.1.3 ! misho 94117: { echo "$as_me:$LINENO: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5
! 94118: echo $ECHO_N "checking for cli0env.h in $PDO_ODBC_INCDIR... $ECHO_C" >&6; }
1.1 misho 94119: if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then
94120: php_pdo_have_header=yes
94121:
1.1.1.3 ! misho 94122: cat >>confdefs.h <<\_ACEOF
! 94123: #define HAVE_CLI0ENV_H 1
! 94124: _ACEOF
1.1 misho 94125:
1.1.1.3 ! misho 94126: { echo "$as_me:$LINENO: result: yes" >&5
! 94127: echo "${ECHO_T}yes" >&6; }
1.1 misho 94128: else
1.1.1.3 ! misho 94129: { echo "$as_me:$LINENO: result: no" >&5
! 94130: echo "${ECHO_T}no" >&6; }
1.1 misho 94131: fi
94132:
94133:
94134: if test "$php_pdo_have_header" != "yes"; then
1.1.1.3 ! misho 94135: { { echo "$as_me:$LINENO: error: Cannot find header file(s) for pdo_odbc" >&5
! 94136: echo "$as_me: error: Cannot find header file(s) for pdo_odbc" >&2;}
! 94137: { (exit 1); exit 1; }; }
1.1 misho 94138: fi
94139:
94140: PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\""
94141: PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib"
94142:
94143:
94144: for ac_i in $PDO_ODBC_LDFLAGS; do
94145: case $ac_i in
94146: -pthread)
94147: if test "$ext_shared" = "yes"; then
94148: PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread"
94149: else
94150:
94151:
94152: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
94153:
94154: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
94155: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94156: eval "EXTRA_LDFLAGS$unique=set"
94157: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
94158: fi
94159:
94160: fi
94161: ;;
94162: -l*)
94163: ac_ii=`echo $ac_i|cut -c 3-`
94164:
94165:
94166: case $ac_ii in
94167: c|c_r|pthread*) ;;
94168: *)
94169: if test "$ext_shared" = "yes"; then
94170: PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii"
94171: else
94172:
94173:
94174: case $ac_ii in
94175: c|c_r|pthread*) ;;
94176: *)
94177: LIBS="$LIBS -l$ac_ii"
94178: ;;
94179: esac
94180:
94181:
94182: fi
94183: ;;
94184: esac
94185:
94186:
94187: ;;
94188: -L*)
94189: ac_ii=`echo $ac_i|cut -c 3-`
94190:
94191: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
94192:
94193: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
94194: ai_p=$ac_ii
94195: else
94196:
94197: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
94198:
94199: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94200: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
94201: fi
94202:
94203:
94204: if test "$ext_shared" = "yes"; then
94205: PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD"
94206: test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD"
94207: else
94208:
94209:
94210:
94211: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94212:
94213: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94214: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94215: eval "LIBPATH$unique=set"
94216:
94217: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94218: LDFLAGS="$LDFLAGS -L$ai_p"
94219: PHP_RPATHS="$PHP_RPATHS $ai_p"
94220:
94221: fi
94222:
94223:
94224: fi
94225:
94226: fi
94227:
94228: ;;
94229: esac
94230: done
94231:
94232:
94233:
94234: save_old_LDFLAGS=$LDFLAGS
94235: ac_stuff="$PDO_ODBC_LDFLAGS"
94236:
94237: save_ext_shared=$ext_shared
94238: ext_shared=yes
94239:
94240: for ac_i in $ac_stuff; do
94241: case $ac_i in
94242: -pthread)
94243: if test "$ext_shared" = "yes"; then
94244: LDFLAGS="$LDFLAGS -pthread"
94245: else
94246:
94247:
94248: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
94249:
94250: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
94251: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94252: eval "EXTRA_LDFLAGS$unique=set"
94253: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
94254: fi
94255:
94256: fi
94257: ;;
94258: -l*)
94259: ac_ii=`echo $ac_i|cut -c 3-`
94260:
94261:
94262: case $ac_ii in
94263: c|c_r|pthread*) ;;
94264: *)
94265: if test "$ext_shared" = "yes"; then
94266: LDFLAGS="$LDFLAGS -l$ac_ii"
94267: else
94268:
94269:
94270: case $ac_ii in
94271: c|c_r|pthread*) ;;
94272: *)
94273: LIBS="$LIBS -l$ac_ii"
94274: ;;
94275: esac
94276:
94277:
94278: fi
94279: ;;
94280: esac
94281:
94282:
94283: ;;
94284: -L*)
94285: ac_ii=`echo $ac_i|cut -c 3-`
94286:
94287: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
94288:
94289: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
94290: ai_p=$ac_ii
94291: else
94292:
94293: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
94294:
94295: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94296: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
94297: fi
94298:
94299:
94300: if test "$ext_shared" = "yes"; then
94301: LDFLAGS="-L$ai_p $LDFLAGS"
94302: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
94303: else
94304:
94305:
94306:
94307: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94308:
94309: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94310: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94311: eval "LIBPATH$unique=set"
94312:
94313: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94314: LDFLAGS="$LDFLAGS -L$ai_p"
94315: PHP_RPATHS="$PHP_RPATHS $ai_p"
94316:
94317: fi
94318:
94319:
94320: fi
94321:
94322: fi
94323:
94324: ;;
94325: esac
94326: done
94327:
1.1.1.3 ! misho 94328: as_ac_Lib=`echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh`
! 94329: { echo "$as_me:$LINENO: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5
! 94330: echo $ECHO_N "checking for SQLBindCol in -l$pdo_odbc_def_lib... $ECHO_C" >&6; }
! 94331: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 94332: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 94333: else
94334: ac_check_lib_save_LIBS=$LIBS
94335: LIBS="-l$pdo_odbc_def_lib $LIBS"
1.1.1.3 ! misho 94336: cat >conftest.$ac_ext <<_ACEOF
! 94337: /* confdefs.h. */
! 94338: _ACEOF
! 94339: cat confdefs.h >>conftest.$ac_ext
! 94340: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 94341: /* end confdefs.h. */
94342:
94343: /* Override any GCC internal prototype to avoid an error.
94344: Use char because int might match the return type of a GCC
94345: builtin and then its argument prototype would still apply. */
94346: #ifdef __cplusplus
94347: extern "C"
94348: #endif
94349: char SQLBindCol ();
94350: int
94351: main ()
94352: {
94353: return SQLBindCol ();
94354: ;
94355: return 0;
94356: }
94357: _ACEOF
1.1.1.3 ! misho 94358: rm -f conftest.$ac_objext conftest$ac_exeext
! 94359: if { (ac_try="$ac_link"
! 94360: case "(($ac_try" in
! 94361: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 94362: *) ac_try_echo=$ac_try;;
! 94363: esac
! 94364: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 94365: (eval "$ac_link") 2>conftest.er1
! 94366: ac_status=$?
! 94367: grep -v '^ *+' conftest.er1 >conftest.err
! 94368: rm -f conftest.er1
! 94369: cat conftest.err >&5
! 94370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 94371: (exit $ac_status); } && {
! 94372: test -z "$ac_c_werror_flag" ||
! 94373: test ! -s conftest.err
! 94374: } && test -s conftest$ac_exeext &&
! 94375: $as_test_x conftest$ac_exeext; then
1.1 misho 94376: eval "$as_ac_Lib=yes"
94377: else
1.1.1.3 ! misho 94378: echo "$as_me: failed program was:" >&5
! 94379: sed 's/^/| /' conftest.$ac_ext >&5
! 94380:
! 94381: eval "$as_ac_Lib=no"
1.1 misho 94382: fi
1.1.1.3 ! misho 94383:
! 94384: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 94385: conftest$ac_exeext conftest.$ac_ext
1.1 misho 94386: LIBS=$ac_check_lib_save_LIBS
94387: fi
1.1.1.3 ! misho 94388: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 94389: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 94390: echo "${ECHO_T}$ac_res" >&6; }
! 94391: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 94392:
94393: LDFLAGS=$save_old_LDFLAGS
94394: ext_shared=$save_ext_shared
94395:
94396:
94397: save_old_LDFLAGS=$LDFLAGS
94398: ac_stuff="$PDO_ODBC_LDFLAGS"
94399:
94400: save_ext_shared=$ext_shared
94401: ext_shared=yes
94402:
94403: for ac_i in $ac_stuff; do
94404: case $ac_i in
94405: -pthread)
94406: if test "$ext_shared" = "yes"; then
94407: LDFLAGS="$LDFLAGS -pthread"
94408: else
94409:
94410:
94411: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
94412:
94413: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
94414: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94415: eval "EXTRA_LDFLAGS$unique=set"
94416: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
94417: fi
94418:
94419: fi
94420: ;;
94421: -l*)
94422: ac_ii=`echo $ac_i|cut -c 3-`
94423:
94424:
94425: case $ac_ii in
94426: c|c_r|pthread*) ;;
94427: *)
94428: if test "$ext_shared" = "yes"; then
94429: LDFLAGS="$LDFLAGS -l$ac_ii"
94430: else
94431:
94432:
94433: case $ac_ii in
94434: c|c_r|pthread*) ;;
94435: *)
94436: LIBS="$LIBS -l$ac_ii"
94437: ;;
94438: esac
94439:
94440:
94441: fi
94442: ;;
94443: esac
94444:
94445:
94446: ;;
94447: -L*)
94448: ac_ii=`echo $ac_i|cut -c 3-`
94449:
94450: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
94451:
94452: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
94453: ai_p=$ac_ii
94454: else
94455:
94456: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
94457:
94458: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94459: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
94460: fi
94461:
94462:
94463: if test "$ext_shared" = "yes"; then
94464: LDFLAGS="-L$ai_p $LDFLAGS"
94465: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
94466: else
94467:
94468:
94469:
94470: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94471:
94472: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94473: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94474: eval "LIBPATH$unique=set"
94475:
94476: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94477: LDFLAGS="$LDFLAGS -L$ai_p"
94478: PHP_RPATHS="$PHP_RPATHS $ai_p"
94479:
94480: fi
94481:
94482:
94483: fi
94484:
94485: fi
94486:
94487: ;;
94488: esac
94489: done
94490:
1.1.1.3 ! misho 94491: as_ac_Lib=`echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh`
! 94492: { echo "$as_me:$LINENO: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5
! 94493: echo $ECHO_N "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... $ECHO_C" >&6; }
! 94494: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 94495: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 94496: else
94497: ac_check_lib_save_LIBS=$LIBS
94498: LIBS="-l$pdo_odbc_def_lib $LIBS"
1.1.1.3 ! misho 94499: cat >conftest.$ac_ext <<_ACEOF
! 94500: /* confdefs.h. */
! 94501: _ACEOF
! 94502: cat confdefs.h >>conftest.$ac_ext
! 94503: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 94504: /* end confdefs.h. */
94505:
94506: /* Override any GCC internal prototype to avoid an error.
94507: Use char because int might match the return type of a GCC
94508: builtin and then its argument prototype would still apply. */
94509: #ifdef __cplusplus
94510: extern "C"
94511: #endif
94512: char SQLAllocHandle ();
94513: int
94514: main ()
94515: {
94516: return SQLAllocHandle ();
94517: ;
94518: return 0;
94519: }
94520: _ACEOF
1.1.1.3 ! misho 94521: rm -f conftest.$ac_objext conftest$ac_exeext
! 94522: if { (ac_try="$ac_link"
! 94523: case "(($ac_try" in
! 94524: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 94525: *) ac_try_echo=$ac_try;;
! 94526: esac
! 94527: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 94528: (eval "$ac_link") 2>conftest.er1
! 94529: ac_status=$?
! 94530: grep -v '^ *+' conftest.er1 >conftest.err
! 94531: rm -f conftest.er1
! 94532: cat conftest.err >&5
! 94533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 94534: (exit $ac_status); } && {
! 94535: test -z "$ac_c_werror_flag" ||
! 94536: test ! -s conftest.err
! 94537: } && test -s conftest$ac_exeext &&
! 94538: $as_test_x conftest$ac_exeext; then
1.1 misho 94539: eval "$as_ac_Lib=yes"
94540: else
1.1.1.3 ! misho 94541: echo "$as_me: failed program was:" >&5
! 94542: sed 's/^/| /' conftest.$ac_ext >&5
! 94543:
! 94544: eval "$as_ac_Lib=no"
1.1 misho 94545: fi
1.1.1.3 ! misho 94546:
! 94547: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 94548: conftest$ac_exeext conftest.$ac_ext
1.1 misho 94549: LIBS=$ac_check_lib_save_LIBS
94550: fi
1.1.1.3 ! misho 94551: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 94552: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 94553: echo "${ECHO_T}$ac_res" >&6; }
! 94554: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 94555:
94556: LDFLAGS=$save_old_LDFLAGS
94557: ext_shared=$save_ext_shared
94558:
94559:
94560: else
94561:
94562: LDFLAGS=$save_old_LDFLAGS
94563: ext_shared=$save_ext_shared
94564: unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle
94565:
1.1.1.3 ! misho 94566: { { echo "$as_me:$LINENO: error:
! 94567: Your ODBC library does not appear to be ODBC 3 compatible.
! 94568: You should consider using iODBC or unixODBC instead, and loading your
! 94569: libraries as a driver in that environment; it will emulate the
! 94570: functions required for PDO support.
! 94571: " >&5
! 94572: echo "$as_me: error:
1.1 misho 94573: Your ODBC library does not appear to be ODBC 3 compatible.
94574: You should consider using iODBC or unixODBC instead, and loading your
94575: libraries as a driver in that environment; it will emulate the
94576: functions required for PDO support.
1.1.1.3 ! misho 94577: " >&2;}
! 94578: { (exit 1); exit 1; }; }
1.1 misho 94579:
94580: fi
94581:
94582:
94583:
94584: else
94585:
94586: LDFLAGS=$save_old_LDFLAGS
94587: ext_shared=$save_ext_shared
94588: unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol
94589:
1.1.1.3 ! misho 94590: { { echo "$as_me:$LINENO: error: Your ODBC library does not exist or there was an error. Check config.log for more information" >&5
! 94591: echo "$as_me: error: Your ODBC library does not exist or there was an error. Check config.log for more information" >&2;}
! 94592: { (exit 1); exit 1; }; }
1.1 misho 94593:
94594:
94595: fi
94596:
94597:
94598:
94599: ext_builddir=ext/pdo_odbc
94600: ext_srcdir=$abs_srcdir/ext/pdo_odbc
94601:
1.1.1.2 misho 94602: ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 94603:
94604: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
94605: PHP_PDO_ODBC_SHARED=no
94606:
94607:
94608: case ext/pdo_odbc in
94609: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94610: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94611: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94612: esac
94613:
94614:
94615:
94616: b_c_pre=$php_c_pre
94617: b_cxx_pre=$php_cxx_pre
94618: b_c_meta=$php_c_meta
94619: b_cxx_meta=$php_cxx_meta
94620: b_c_post=$php_c_post
94621: b_cxx_post=$php_cxx_post
94622: b_lo=$php_lo
94623:
94624:
94625: old_IFS=$IFS
94626: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94627:
94628: IFS=.
94629: set $ac_src
94630: ac_obj=$1
94631: IFS=$old_IFS
94632:
94633: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94634:
94635: case $ac_src in
94636: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94637: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94638: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94639: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94640: esac
94641:
94642: cat >>Makefile.objects<<EOF
94643: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94644: $ac_comp
94645: EOF
94646: done
94647:
94648:
94649: EXT_STATIC="$EXT_STATIC pdo_odbc"
94650: if test "$ext_shared" != "nocli"; then
94651: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
94652: fi
94653: else
94654: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
94655: PHP_PDO_ODBC_SHARED=yes
94656:
94657: case ext/pdo_odbc in
94658: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94659: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94660: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94661: esac
94662:
94663:
94664:
94665: b_c_pre=$shared_c_pre
94666: b_cxx_pre=$shared_cxx_pre
94667: b_c_meta=$shared_c_meta
94668: b_cxx_meta=$shared_cxx_meta
94669: b_c_post=$shared_c_post
94670: b_cxx_post=$shared_cxx_post
94671: b_lo=$shared_lo
94672:
94673:
94674: old_IFS=$IFS
94675: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94676:
94677: IFS=.
94678: set $ac_src
94679: ac_obj=$1
94680: IFS=$old_IFS
94681:
94682: shared_objects_pdo_odbc="$shared_objects_pdo_odbc $ac_bdir$ac_obj.lo"
94683:
94684: case $ac_src in
94685: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94686: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94687: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94688: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94689: esac
94690:
94691: cat >>Makefile.objects<<EOF
94692: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94693: $ac_comp
94694: EOF
94695: done
94696:
94697: case $host_alias in
94698: *netware*)
94699:
94700: install_modules="install-modules"
94701:
94702: case $host_alias in
94703: *aix*)
94704: suffix=so
94705: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PHPPDO_ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_odbc.so '$ext_builddir'/phppdo_odbc.so'
94706: ;;
94707: *netware*)
94708: suffix=nlm
94709: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) -L$(top_builddir)/netware -lphp5lib $(PDO_ODBC_SHARED_LIBADD)'
94710: ;;
94711: *)
94712: suffix=la
94713: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PHPPDO_ODBC_SHARED_LIBADD)'
94714: ;;
94715: esac
94716:
94717: if test "x" = "xyes"; then
94718: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_odbc.$suffix"
94719: else
94720: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_odbc.$suffix"
94721: fi
94722:
94723: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
94724:
94725: cat >>Makefile.objects<<EOF
94726: \$(phplibdir)/phppdo_odbc.$suffix: $ext_builddir/phppdo_odbc.$suffix
94727: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_odbc.$suffix \$(phplibdir)
94728:
94729: $ext_builddir/phppdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PHPPDO_ODBC_SHARED_DEPENDENCIES)
94730: $link_cmd
94731:
94732: EOF
94733:
94734: ;;
94735: *)
94736:
94737: install_modules="install-modules"
94738:
94739: case $host_alias in
94740: *aix*)
94741: suffix=so
94742: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PDO_ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_odbc.so '$ext_builddir'/pdo_odbc.so'
94743: ;;
94744: *netware*)
94745: suffix=nlm
94746: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) -L$(top_builddir)/netware -lphp5lib $(_ODBC_SHARED_LIBADD)'
94747: ;;
94748: *)
94749: suffix=la
94750: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PDO_ODBC_SHARED_LIBADD)'
94751: ;;
94752: esac
94753:
94754: if test "x" = "xyes"; then
94755: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_odbc.$suffix"
94756: else
94757: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_odbc.$suffix"
94758: fi
94759:
94760: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
94761:
94762: cat >>Makefile.objects<<EOF
94763: \$(phplibdir)/pdo_odbc.$suffix: $ext_builddir/pdo_odbc.$suffix
94764: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_odbc.$suffix \$(phplibdir)
94765:
94766: $ext_builddir/pdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_DEPENDENCIES)
94767: $link_cmd
94768:
94769: EOF
94770:
94771: ;;
94772: esac
94773:
94774: cat >>confdefs.h <<_ACEOF
94775: #define COMPILE_DL_PDO_ODBC 1
94776: _ACEOF
94777:
94778: fi
94779: fi
94780:
94781: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
94782: PHP_PDO_ODBC_SHARED=no
1.1.1.3 ! misho 94783: case "$PHP_SAPI" in
! 94784: cgi|embed)
1.1 misho 94785:
94786:
94787: case ext/pdo_odbc in
94788: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94789: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94790: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94791: esac
94792:
94793:
94794:
94795: b_c_pre=$php_c_pre
94796: b_cxx_pre=$php_cxx_pre
94797: b_c_meta=$php_c_meta
94798: b_cxx_meta=$php_cxx_meta
94799: b_c_post=$php_c_post
94800: b_cxx_post=$php_cxx_post
94801: b_lo=$php_lo
94802:
94803:
94804: old_IFS=$IFS
94805: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94806:
94807: IFS=.
94808: set $ac_src
94809: ac_obj=$1
94810: IFS=$old_IFS
94811:
1.1.1.2 misho 94812: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 94813:
94814: case $ac_src in
94815: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94816: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94817: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94818: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94819: esac
94820:
94821: cat >>Makefile.objects<<EOF
94822: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94823: $ac_comp
94824: EOF
94825: done
94826:
94827:
1.1.1.3 ! misho 94828: EXT_STATIC="$EXT_STATIC pdo_odbc"
! 94829: ;;
! 94830: *)
1.1 misho 94831:
94832:
94833: case ext/pdo_odbc in
94834: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94835: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94836: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94837: esac
94838:
94839:
94840:
94841: b_c_pre=$php_c_pre
94842: b_cxx_pre=$php_cxx_pre
94843: b_c_meta=$php_c_meta
94844: b_cxx_meta=$php_cxx_meta
94845: b_c_post=$php_c_post
94846: b_cxx_post=$php_cxx_post
94847: b_lo=$php_lo
94848:
94849:
94850: old_IFS=$IFS
94851: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94852:
94853: IFS=.
94854: set $ac_src
94855: ac_obj=$1
94856: IFS=$old_IFS
94857:
1.1.1.2 misho 94858: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 94859:
94860: case $ac_src in
94861: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94862: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94863: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94864: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94865: esac
94866:
94867: cat >>Makefile.objects<<EOF
94868: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94869: $ac_comp
94870: EOF
94871: done
94872:
94873:
1.1.1.3 ! misho 94874: ;;
! 94875: esac
1.1 misho 94876: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
94877: fi
94878:
94879:
94880: BUILD_DIR="$BUILD_DIR $ext_builddir"
94881:
94882:
94883:
94884: if test "$ext_builddir" = "."; then
94885: PHP_PECL_EXTENSION=pdo_odbc
94886:
94887: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94888:
94889: fi
94890:
94891:
94892: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_ODBC_SHARED_LIBADD"
94893:
94894:
94895:
94896: am_i_shared=$PHP_PDO_ODBC_SHARED
94897: is_it_shared=$PHP_PDO_SHARED
94898: is_it_enabled=$PHP_PDO
94899: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 94900: { { echo "$as_me:$LINENO: error:
! 94901: You've configured extension pdo_odbc to build statically, but it
! 94902: depends on extension pdo, which you've configured to build shared.
! 94903: You either need to build pdo_odbc shared or build pdo statically for the
! 94904: build to be successful.
! 94905: " >&5
! 94906: echo "$as_me: error:
1.1 misho 94907: You've configured extension pdo_odbc to build statically, but it
94908: depends on extension pdo, which you've configured to build shared.
94909: You either need to build pdo_odbc shared or build pdo statically for the
94910: build to be successful.
1.1.1.3 ! misho 94911: " >&2;}
! 94912: { (exit 1); exit 1; }; }
! 94913: fi
! 94914: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 94915: { { echo "$as_me:$LINENO: error:
! 94916: You've configured extension pdo_odbc, which depends on extension pdo,
! 94917: but you've either not enabled pdo, or have disabled it.
! 94918: " >&5
! 94919: echo "$as_me: error:
! 94920: You've configured extension pdo_odbc, which depends on extension pdo,
! 94921: but you've either not enabled pdo, or have disabled it.
! 94922: " >&2;}
! 94923: { (exit 1); exit 1; }; }
1.1 misho 94924: fi
94925:
94926:
94927: fi
94928:
94929:
94930:
94931: php_with_pdo_pgsql=no
94932:
1.1.1.3 ! misho 94933: { echo "$as_me:$LINENO: checking for PostgreSQL support for PDO" >&5
! 94934: echo $ECHO_N "checking for PostgreSQL support for PDO... $ECHO_C" >&6; }
1.1 misho 94935:
94936: # Check whether --with-pdo-pgsql was given.
1.1.1.3 ! misho 94937: if test "${with_pdo_pgsql+set}" = set; then
1.1 misho 94938: withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval
94939: else
94940:
94941: PHP_PDO_PGSQL=no
94942: test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL
94943:
94944: fi
94945:
94946:
94947:
94948: ext_output="yes, shared"
94949: ext_shared=yes
94950: case $PHP_PDO_PGSQL in
94951: shared,*)
94952: PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'`
94953: ;;
94954: shared)
94955: PHP_PDO_PGSQL=yes
94956: ;;
94957: no)
94958: ext_output=no
94959: ext_shared=no
94960: ;;
94961: *)
94962: ext_output=yes
94963: ext_shared=no
94964: ;;
94965: esac
94966:
94967:
94968:
1.1.1.3 ! misho 94969: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 94970: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 94971:
94972:
94973:
94974:
94975: if test "$PHP_PDO_PGSQL" != "no"; then
94976:
94977: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 94978: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 94979: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 94980: { (exit 1); exit 1; }; }
1.1 misho 94981: fi
94982:
94983:
94984: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
94985: PGSQL_INCLUDE=$PGSQL_INCLUDE
94986: else
94987:
94988: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
94989:
94990: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94991: PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
94992: fi
94993:
94994:
1.1.1.3 ! misho 94995: { echo "$as_me:$LINENO: checking for pg_config" >&5
! 94996: echo $ECHO_N "checking for pg_config... $ECHO_C" >&6; }
1.1 misho 94997: for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
94998: if test -x $i/pg_config; then
94999: PG_CONFIG="$i/pg_config"
95000: break;
95001: fi
95002: done
95003:
95004: if test -n "$PG_CONFIG"; then
1.1.1.3 ! misho 95005: { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
! 95006: echo "${ECHO_T}$PG_CONFIG" >&6; }
1.1 misho 95007: PGSQL_INCLUDE=`$PG_CONFIG --includedir`
95008: PGSQL_LIBDIR=`$PG_CONFIG --libdir`
95009:
1.1.1.3 ! misho 95010: cat >>confdefs.h <<\_ACEOF
! 95011: #define HAVE_PG_CONFIG_H 1
! 95012: _ACEOF
1.1 misho 95013:
95014: else
1.1.1.3 ! misho 95015: { echo "$as_me:$LINENO: result: not found" >&5
! 95016: echo "${ECHO_T}not found" >&6; }
1.1 misho 95017: if test "$PHP_PDO_PGSQL" = "yes"; then
95018: PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
95019: else
95020: PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL
95021: fi
95022:
95023: for i in $PGSQL_SEARCH_PATHS; do
95024: for j in include include/pgsql include/postgres include/postgresql ""; do
95025: if test -r "$i/$j/libpq-fe.h"; then
95026: PGSQL_INC_BASE=$i
95027: PGSQL_INCLUDE=$i/$j
95028: if test -r "$i/$j/pg_config.h"; then
95029:
1.1.1.3 ! misho 95030: cat >>confdefs.h <<\_ACEOF
! 95031: #define HAVE_PG_CONFIG_H 1
! 95032: _ACEOF
1.1 misho 95033:
95034: fi
95035: fi
95036: done
95037:
95038: for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
95039: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
95040: PGSQL_LIBDIR=$i/$j
95041: fi
95042: done
95043: done
95044: fi
95045:
95046: if test -z "$PGSQL_INCLUDE"; then
1.1.1.3 ! misho 95047: { { echo "$as_me:$LINENO: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&5
! 95048: echo "$as_me: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&2;}
! 95049: { (exit 1); exit 1; }; }
1.1 misho 95050: fi
95051:
95052: if test -z "$PGSQL_LIBDIR"; then
1.1.1.3 ! misho 95053: { { echo "$as_me:$LINENO: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&5
! 95054: echo "$as_me: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&2;}
! 95055: { (exit 1); exit 1; }; }
1.1 misho 95056: fi
95057:
95058: if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
1.1.1.3 ! misho 95059: { { echo "$as_me:$LINENO: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&5
! 95060: echo "$as_me: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&2;}
! 95061: { (exit 1); exit 1; }; }
1.1 misho 95062: fi
95063:
95064:
1.1.1.3 ! misho 95065: cat >>confdefs.h <<\_ACEOF
! 95066: #define HAVE_PDO_PGSQL 1
! 95067: _ACEOF
1.1 misho 95068:
95069:
1.1.1.3 ! misho 95070: { echo "$as_me:$LINENO: checking for openssl dependencies" >&5
! 95071: echo $ECHO_N "checking for openssl dependencies... $ECHO_C" >&6; }
1.1 misho 95072: grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
95073: if test $? -eq 0 ; then
1.1.1.3 ! misho 95074: { echo "$as_me:$LINENO: result: yes" >&5
! 95075: echo "${ECHO_T}yes" >&6; }
1.1 misho 95076: # Extract the first word of "pkg-config", so it can be a program name with args.
95077: set dummy pkg-config; ac_word=$2
1.1.1.3 ! misho 95078: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 95079: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 95080: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
! 95081: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95082: else
95083: case $PKG_CONFIG in
95084: [\\/]* | ?:[\\/]*)
95085: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
95086: ;;
95087: *)
95088: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95089: for as_dir in $PATH
95090: do
95091: IFS=$as_save_IFS
95092: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 95093: for ac_exec_ext in '' $ac_executable_extensions; do
! 95094: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 95095: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 95096: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 95097: break 2
95098: fi
95099: done
1.1.1.3 ! misho 95100: done
1.1 misho 95101: IFS=$as_save_IFS
95102:
95103: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
95104: ;;
95105: esac
95106: fi
95107: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
95108: if test -n "$PKG_CONFIG"; then
1.1.1.3 ! misho 95109: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 95110: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1 misho 95111: else
1.1.1.3 ! misho 95112: { echo "$as_me:$LINENO: result: no" >&5
! 95113: echo "${ECHO_T}no" >&6; }
1.1 misho 95114: fi
95115:
95116:
95117: if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
95118: PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
95119: fi
95120: else
1.1.1.3 ! misho 95121: { echo "$as_me:$LINENO: result: no" >&5
! 95122: echo "${ECHO_T}no" >&6; }
1.1 misho 95123: fi
95124:
95125: old_LIBS=$LIBS
95126: old_LDFLAGS=$LDFLAGS
95127: LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
1.1.1.3 ! misho 95128: { echo "$as_me:$LINENO: checking for PQparameterStatus in -lpq" >&5
! 95129: echo $ECHO_N "checking for PQparameterStatus in -lpq... $ECHO_C" >&6; }
! 95130: if test "${ac_cv_lib_pq_PQparameterStatus+set}" = set; then
! 95131: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95132: else
95133: ac_check_lib_save_LIBS=$LIBS
95134: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 95135: cat >conftest.$ac_ext <<_ACEOF
! 95136: /* confdefs.h. */
! 95137: _ACEOF
! 95138: cat confdefs.h >>conftest.$ac_ext
! 95139: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 95140: /* end confdefs.h. */
95141:
95142: /* Override any GCC internal prototype to avoid an error.
95143: Use char because int might match the return type of a GCC
95144: builtin and then its argument prototype would still apply. */
95145: #ifdef __cplusplus
95146: extern "C"
95147: #endif
95148: char PQparameterStatus ();
95149: int
95150: main ()
95151: {
95152: return PQparameterStatus ();
95153: ;
95154: return 0;
95155: }
95156: _ACEOF
1.1.1.3 ! misho 95157: rm -f conftest.$ac_objext conftest$ac_exeext
! 95158: if { (ac_try="$ac_link"
! 95159: case "(($ac_try" in
! 95160: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 95161: *) ac_try_echo=$ac_try;;
! 95162: esac
! 95163: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 95164: (eval "$ac_link") 2>conftest.er1
! 95165: ac_status=$?
! 95166: grep -v '^ *+' conftest.er1 >conftest.err
! 95167: rm -f conftest.er1
! 95168: cat conftest.err >&5
! 95169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 95170: (exit $ac_status); } && {
! 95171: test -z "$ac_c_werror_flag" ||
! 95172: test ! -s conftest.err
! 95173: } && test -s conftest$ac_exeext &&
! 95174: $as_test_x conftest$ac_exeext; then
1.1 misho 95175: ac_cv_lib_pq_PQparameterStatus=yes
95176: else
1.1.1.3 ! misho 95177: echo "$as_me: failed program was:" >&5
! 95178: sed 's/^/| /' conftest.$ac_ext >&5
! 95179:
! 95180: ac_cv_lib_pq_PQparameterStatus=no
1.1 misho 95181: fi
1.1.1.3 ! misho 95182:
! 95183: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 95184: conftest$ac_exeext conftest.$ac_ext
1.1 misho 95185: LIBS=$ac_check_lib_save_LIBS
95186: fi
1.1.1.3 ! misho 95187: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQparameterStatus" >&5
! 95188: echo "${ECHO_T}$ac_cv_lib_pq_PQparameterStatus" >&6; }
! 95189: if test $ac_cv_lib_pq_PQparameterStatus = yes; then
1.1 misho 95190:
1.1.1.3 ! misho 95191: cat >>confdefs.h <<\_ACEOF
! 95192: #define HAVE_PQPARAMETERSTATUS 1
! 95193: _ACEOF
1.1 misho 95194:
95195: else
95196:
95197: echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required"
95198: exit 1
95199:
95200: fi
95201:
95202:
1.1.1.3 ! misho 95203: { echo "$as_me:$LINENO: checking for PQprepare in -lpq" >&5
! 95204: echo $ECHO_N "checking for PQprepare in -lpq... $ECHO_C" >&6; }
! 95205: if test "${ac_cv_lib_pq_PQprepare+set}" = set; then
! 95206: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95207: else
95208: ac_check_lib_save_LIBS=$LIBS
95209: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 95210: cat >conftest.$ac_ext <<_ACEOF
! 95211: /* confdefs.h. */
! 95212: _ACEOF
! 95213: cat confdefs.h >>conftest.$ac_ext
! 95214: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 95215: /* end confdefs.h. */
95216:
95217: /* Override any GCC internal prototype to avoid an error.
95218: Use char because int might match the return type of a GCC
95219: builtin and then its argument prototype would still apply. */
95220: #ifdef __cplusplus
95221: extern "C"
95222: #endif
95223: char PQprepare ();
95224: int
95225: main ()
95226: {
95227: return PQprepare ();
95228: ;
95229: return 0;
95230: }
95231: _ACEOF
1.1.1.3 ! misho 95232: rm -f conftest.$ac_objext conftest$ac_exeext
! 95233: if { (ac_try="$ac_link"
! 95234: case "(($ac_try" in
! 95235: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 95236: *) ac_try_echo=$ac_try;;
! 95237: esac
! 95238: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 95239: (eval "$ac_link") 2>conftest.er1
! 95240: ac_status=$?
! 95241: grep -v '^ *+' conftest.er1 >conftest.err
! 95242: rm -f conftest.er1
! 95243: cat conftest.err >&5
! 95244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 95245: (exit $ac_status); } && {
! 95246: test -z "$ac_c_werror_flag" ||
! 95247: test ! -s conftest.err
! 95248: } && test -s conftest$ac_exeext &&
! 95249: $as_test_x conftest$ac_exeext; then
1.1 misho 95250: ac_cv_lib_pq_PQprepare=yes
95251: else
1.1.1.3 ! misho 95252: echo "$as_me: failed program was:" >&5
! 95253: sed 's/^/| /' conftest.$ac_ext >&5
! 95254:
! 95255: ac_cv_lib_pq_PQprepare=no
1.1 misho 95256: fi
1.1.1.3 ! misho 95257:
! 95258: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 95259: conftest$ac_exeext conftest.$ac_ext
1.1 misho 95260: LIBS=$ac_check_lib_save_LIBS
95261: fi
1.1.1.3 ! misho 95262: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQprepare" >&5
! 95263: echo "${ECHO_T}$ac_cv_lib_pq_PQprepare" >&6; }
! 95264: if test $ac_cv_lib_pq_PQprepare = yes; then
1.1 misho 95265:
1.1.1.3 ! misho 95266: cat >>confdefs.h <<\_ACEOF
! 95267: #define HAVE_PQPREPARE 1
! 95268: _ACEOF
1.1 misho 95269:
95270: fi
95271:
1.1.1.3 ! misho 95272: { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
! 95273: echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
! 95274: if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
! 95275: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95276: else
95277: ac_check_lib_save_LIBS=$LIBS
95278: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 95279: cat >conftest.$ac_ext <<_ACEOF
! 95280: /* confdefs.h. */
! 95281: _ACEOF
! 95282: cat confdefs.h >>conftest.$ac_ext
! 95283: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 95284: /* end confdefs.h. */
95285:
95286: /* Override any GCC internal prototype to avoid an error.
95287: Use char because int might match the return type of a GCC
95288: builtin and then its argument prototype would still apply. */
95289: #ifdef __cplusplus
95290: extern "C"
95291: #endif
95292: char PQescapeStringConn ();
95293: int
95294: main ()
95295: {
95296: return PQescapeStringConn ();
95297: ;
95298: return 0;
95299: }
95300: _ACEOF
1.1.1.3 ! misho 95301: rm -f conftest.$ac_objext conftest$ac_exeext
! 95302: if { (ac_try="$ac_link"
! 95303: case "(($ac_try" in
! 95304: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 95305: *) ac_try_echo=$ac_try;;
! 95306: esac
! 95307: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 95308: (eval "$ac_link") 2>conftest.er1
! 95309: ac_status=$?
! 95310: grep -v '^ *+' conftest.er1 >conftest.err
! 95311: rm -f conftest.er1
! 95312: cat conftest.err >&5
! 95313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 95314: (exit $ac_status); } && {
! 95315: test -z "$ac_c_werror_flag" ||
! 95316: test ! -s conftest.err
! 95317: } && test -s conftest$ac_exeext &&
! 95318: $as_test_x conftest$ac_exeext; then
1.1 misho 95319: ac_cv_lib_pq_PQescapeStringConn=yes
95320: else
1.1.1.3 ! misho 95321: echo "$as_me: failed program was:" >&5
! 95322: sed 's/^/| /' conftest.$ac_ext >&5
! 95323:
! 95324: ac_cv_lib_pq_PQescapeStringConn=no
1.1 misho 95325: fi
1.1.1.3 ! misho 95326:
! 95327: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 95328: conftest$ac_exeext conftest.$ac_ext
1.1 misho 95329: LIBS=$ac_check_lib_save_LIBS
95330: fi
1.1.1.3 ! misho 95331: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
! 95332: echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
! 95333: if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
1.1 misho 95334:
1.1.1.3 ! misho 95335: cat >>confdefs.h <<\_ACEOF
! 95336: #define HAVE_PQESCAPE_CONN 1
! 95337: _ACEOF
1.1 misho 95338:
95339: fi
95340:
1.1.1.3 ! misho 95341: { echo "$as_me:$LINENO: checking for PQescapeByteaConn in -lpq" >&5
! 95342: echo $ECHO_N "checking for PQescapeByteaConn in -lpq... $ECHO_C" >&6; }
! 95343: if test "${ac_cv_lib_pq_PQescapeByteaConn+set}" = set; then
! 95344: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95345: else
95346: ac_check_lib_save_LIBS=$LIBS
95347: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 95348: cat >conftest.$ac_ext <<_ACEOF
! 95349: /* confdefs.h. */
! 95350: _ACEOF
! 95351: cat confdefs.h >>conftest.$ac_ext
! 95352: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 95353: /* end confdefs.h. */
95354:
95355: /* Override any GCC internal prototype to avoid an error.
95356: Use char because int might match the return type of a GCC
95357: builtin and then its argument prototype would still apply. */
95358: #ifdef __cplusplus
95359: extern "C"
95360: #endif
95361: char PQescapeByteaConn ();
95362: int
95363: main ()
95364: {
95365: return PQescapeByteaConn ();
95366: ;
95367: return 0;
95368: }
95369: _ACEOF
1.1.1.3 ! misho 95370: rm -f conftest.$ac_objext conftest$ac_exeext
! 95371: if { (ac_try="$ac_link"
! 95372: case "(($ac_try" in
! 95373: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 95374: *) ac_try_echo=$ac_try;;
! 95375: esac
! 95376: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 95377: (eval "$ac_link") 2>conftest.er1
! 95378: ac_status=$?
! 95379: grep -v '^ *+' conftest.er1 >conftest.err
! 95380: rm -f conftest.er1
! 95381: cat conftest.err >&5
! 95382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 95383: (exit $ac_status); } && {
! 95384: test -z "$ac_c_werror_flag" ||
! 95385: test ! -s conftest.err
! 95386: } && test -s conftest$ac_exeext &&
! 95387: $as_test_x conftest$ac_exeext; then
1.1 misho 95388: ac_cv_lib_pq_PQescapeByteaConn=yes
95389: else
1.1.1.3 ! misho 95390: echo "$as_me: failed program was:" >&5
! 95391: sed 's/^/| /' conftest.$ac_ext >&5
! 95392:
! 95393: ac_cv_lib_pq_PQescapeByteaConn=no
1.1 misho 95394: fi
1.1.1.3 ! misho 95395:
! 95396: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 95397: conftest$ac_exeext conftest.$ac_ext
1.1 misho 95398: LIBS=$ac_check_lib_save_LIBS
95399: fi
1.1.1.3 ! misho 95400: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
! 95401: echo "${ECHO_T}$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
! 95402: if test $ac_cv_lib_pq_PQescapeByteaConn = yes; then
1.1 misho 95403:
1.1.1.3 ! misho 95404: cat >>confdefs.h <<\_ACEOF
! 95405: #define HAVE_PQESCAPE_BYTEA_CONN 1
! 95406: _ACEOF
1.1 misho 95407:
95408: fi
95409:
95410:
1.1.1.3 ! misho 95411: { echo "$as_me:$LINENO: checking for pg_encoding_to_char in -lpq" >&5
! 95412: echo $ECHO_N "checking for pg_encoding_to_char in -lpq... $ECHO_C" >&6; }
! 95413: if test "${ac_cv_lib_pq_pg_encoding_to_char+set}" = set; then
! 95414: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95415: else
95416: ac_check_lib_save_LIBS=$LIBS
95417: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 95418: cat >conftest.$ac_ext <<_ACEOF
! 95419: /* confdefs.h. */
! 95420: _ACEOF
! 95421: cat confdefs.h >>conftest.$ac_ext
! 95422: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 95423: /* end confdefs.h. */
95424:
95425: /* Override any GCC internal prototype to avoid an error.
95426: Use char because int might match the return type of a GCC
95427: builtin and then its argument prototype would still apply. */
95428: #ifdef __cplusplus
95429: extern "C"
95430: #endif
95431: char pg_encoding_to_char ();
95432: int
95433: main ()
95434: {
95435: return pg_encoding_to_char ();
95436: ;
95437: return 0;
95438: }
95439: _ACEOF
1.1.1.3 ! misho 95440: rm -f conftest.$ac_objext conftest$ac_exeext
! 95441: if { (ac_try="$ac_link"
! 95442: case "(($ac_try" in
! 95443: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 95444: *) ac_try_echo=$ac_try;;
! 95445: esac
! 95446: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 95447: (eval "$ac_link") 2>conftest.er1
! 95448: ac_status=$?
! 95449: grep -v '^ *+' conftest.er1 >conftest.err
! 95450: rm -f conftest.er1
! 95451: cat conftest.err >&5
! 95452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 95453: (exit $ac_status); } && {
! 95454: test -z "$ac_c_werror_flag" ||
! 95455: test ! -s conftest.err
! 95456: } && test -s conftest$ac_exeext &&
! 95457: $as_test_x conftest$ac_exeext; then
1.1 misho 95458: ac_cv_lib_pq_pg_encoding_to_char=yes
95459: else
1.1.1.3 ! misho 95460: echo "$as_me: failed program was:" >&5
! 95461: sed 's/^/| /' conftest.$ac_ext >&5
! 95462:
! 95463: ac_cv_lib_pq_pg_encoding_to_char=no
1.1 misho 95464: fi
1.1.1.3 ! misho 95465:
! 95466: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 95467: conftest$ac_exeext conftest.$ac_ext
1.1 misho 95468: LIBS=$ac_check_lib_save_LIBS
95469: fi
1.1.1.3 ! misho 95470: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
! 95471: echo "${ECHO_T}$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
! 95472: if test $ac_cv_lib_pq_pg_encoding_to_char = yes; then
1.1 misho 95473:
1.1.1.3 ! misho 95474: cat >>confdefs.h <<\_ACEOF
! 95475: #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
! 95476: _ACEOF
1.1 misho 95477:
95478: fi
95479:
95480:
95481:
95482: LIBS=$old_LIBS
95483: LDFLAGS=$old_LDFLAGS
95484:
95485:
95486:
95487: if test "$ext_shared" = "yes"; then
95488: PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD"
95489: if test -n "$PGSQL_LIBDIR"; then
95490:
95491: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
95492:
95493: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
95494: ai_p=$PGSQL_LIBDIR
95495: else
95496:
95497: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
95498:
95499: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95500: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
95501: fi
95502:
95503:
95504: if test "$ext_shared" = "yes"; then
95505: PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD"
95506: test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD"
95507: else
95508:
95509:
95510:
95511: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95512:
95513: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95514: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95515: eval "LIBPATH$unique=set"
95516:
95517: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95518: LDFLAGS="$LDFLAGS -L$ai_p"
95519: PHP_RPATHS="$PHP_RPATHS $ai_p"
95520:
95521: fi
95522:
95523:
95524: fi
95525:
95526: fi
95527:
95528: fi
95529: else
95530:
95531:
95532: if test -n "$PGSQL_LIBDIR"; then
95533:
95534: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
95535:
95536: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
95537: ai_p=$PGSQL_LIBDIR
95538: else
95539:
95540: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
95541:
95542: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95543: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
95544: fi
95545:
95546:
95547:
95548:
95549:
95550: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95551:
95552: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95553: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95554: eval "LIBPATH$unique=set"
95555:
95556: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95557: LDFLAGS="$LDFLAGS -L$ai_p"
95558: PHP_RPATHS="$PHP_RPATHS $ai_p"
95559:
95560: fi
95561:
95562:
95563:
95564: fi
95565:
95566: fi
95567:
95568:
95569: case pq in
95570: c|c_r|pthread*) ;;
95571: *)
95572: LIBS="-lpq $LIBS"
95573: ;;
95574: esac
95575:
95576:
95577:
95578:
95579: fi
95580:
95581:
95582:
95583: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD"
95584:
95585:
95586:
95587: if test "$PGSQL_INCLUDE" != "/usr/include"; then
95588:
95589: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
95590: ai_p=$PGSQL_INCLUDE
95591: else
95592:
95593: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
95594:
95595: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95596: ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
95597: fi
95598:
95599:
95600:
95601: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95602:
95603: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
95604: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95605: eval "INCLUDEPATH$unique=set"
95606:
95607: if test ""; then
95608: INCLUDES="-I$ai_p $INCLUDES"
95609: else
95610: INCLUDES="$INCLUDES -I$ai_p"
95611: fi
95612:
95613: fi
95614:
95615: fi
95616:
95617:
95618:
95619:
1.1.1.3 ! misho 95620: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 95621: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 95622: if test "${pdo_cv_inc_path+set}" = set; then
! 95623: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 95624: else
95625:
1.1.1.3 ! misho 95626: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 95627: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 95628: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 95629: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 95630: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 95631: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 95632: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 95633: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 95634: fi
95635:
95636: fi
1.1.1.3 ! misho 95637: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 95638: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 95639: if test -n "$pdo_cv_inc_path"; then
1.1 misho 95640: :
95641: else
1.1.1.3 ! misho 95642: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 95643: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 95644: { (exit 1); exit 1; }; }
1.1 misho 95645: fi
95646:
95647:
95648:
95649:
95650: ext_builddir=ext/pdo_pgsql
95651: ext_srcdir=$abs_srcdir/ext/pdo_pgsql
95652:
1.1.1.2 misho 95653: ac_extra=`echo "-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 95654:
95655: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
95656: PHP_PDO_PGSQL_SHARED=no
95657:
95658:
95659: case ext/pdo_pgsql in
95660: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95661: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95662: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95663: esac
95664:
95665:
95666:
95667: b_c_pre=$php_c_pre
95668: b_cxx_pre=$php_cxx_pre
95669: b_c_meta=$php_c_meta
95670: b_cxx_meta=$php_cxx_meta
95671: b_c_post=$php_c_post
95672: b_cxx_post=$php_cxx_post
95673: b_lo=$php_lo
95674:
95675:
95676: old_IFS=$IFS
95677: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95678:
95679: IFS=.
95680: set $ac_src
95681: ac_obj=$1
95682: IFS=$old_IFS
95683:
95684: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95685:
95686: case $ac_src in
95687: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95688: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95689: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95690: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95691: esac
95692:
95693: cat >>Makefile.objects<<EOF
95694: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95695: $ac_comp
95696: EOF
95697: done
95698:
95699:
95700: EXT_STATIC="$EXT_STATIC pdo_pgsql"
95701: if test "$ext_shared" != "nocli"; then
95702: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
95703: fi
95704: else
95705: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
95706: PHP_PDO_PGSQL_SHARED=yes
95707:
95708: case ext/pdo_pgsql in
95709: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95710: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95711: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95712: esac
95713:
95714:
95715:
95716: b_c_pre=$shared_c_pre
95717: b_cxx_pre=$shared_cxx_pre
95718: b_c_meta=$shared_c_meta
95719: b_cxx_meta=$shared_cxx_meta
95720: b_c_post=$shared_c_post
95721: b_cxx_post=$shared_cxx_post
95722: b_lo=$shared_lo
95723:
95724:
95725: old_IFS=$IFS
95726: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95727:
95728: IFS=.
95729: set $ac_src
95730: ac_obj=$1
95731: IFS=$old_IFS
95732:
95733: shared_objects_pdo_pgsql="$shared_objects_pdo_pgsql $ac_bdir$ac_obj.lo"
95734:
95735: case $ac_src in
95736: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95737: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95738: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95739: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95740: esac
95741:
95742: cat >>Makefile.objects<<EOF
95743: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95744: $ac_comp
95745: EOF
95746: done
95747:
95748: case $host_alias in
95749: *netware*)
95750:
95751: install_modules="install-modules"
95752:
95753: case $host_alias in
95754: *aix*)
95755: suffix=so
95756: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PHPPDO_PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_pgsql.so '$ext_builddir'/phppdo_pgsql.so'
95757: ;;
95758: *netware*)
95759: suffix=nlm
95760: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) -L$(top_builddir)/netware -lphp5lib $(PDO_PGSQL_SHARED_LIBADD)'
95761: ;;
95762: *)
95763: suffix=la
95764: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PHPPDO_PGSQL_SHARED_LIBADD)'
95765: ;;
95766: esac
95767:
95768: if test "x" = "xyes"; then
95769: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_pgsql.$suffix"
95770: else
95771: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_pgsql.$suffix"
95772: fi
95773:
95774: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
95775:
95776: cat >>Makefile.objects<<EOF
95777: \$(phplibdir)/phppdo_pgsql.$suffix: $ext_builddir/phppdo_pgsql.$suffix
95778: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_pgsql.$suffix \$(phplibdir)
95779:
95780: $ext_builddir/phppdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PHPPDO_PGSQL_SHARED_DEPENDENCIES)
95781: $link_cmd
95782:
95783: EOF
95784:
95785: ;;
95786: *)
95787:
95788: install_modules="install-modules"
95789:
95790: case $host_alias in
95791: *aix*)
95792: suffix=so
95793: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PDO_PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_pgsql.so '$ext_builddir'/pdo_pgsql.so'
95794: ;;
95795: *netware*)
95796: suffix=nlm
95797: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) -L$(top_builddir)/netware -lphp5lib $(_PGSQL_SHARED_LIBADD)'
95798: ;;
95799: *)
95800: suffix=la
95801: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PDO_PGSQL_SHARED_LIBADD)'
95802: ;;
95803: esac
95804:
95805: if test "x" = "xyes"; then
95806: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_pgsql.$suffix"
95807: else
95808: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_pgsql.$suffix"
95809: fi
95810:
95811: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
95812:
95813: cat >>Makefile.objects<<EOF
95814: \$(phplibdir)/pdo_pgsql.$suffix: $ext_builddir/pdo_pgsql.$suffix
95815: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_pgsql.$suffix \$(phplibdir)
95816:
95817: $ext_builddir/pdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_DEPENDENCIES)
95818: $link_cmd
95819:
95820: EOF
95821:
95822: ;;
95823: esac
95824:
95825: cat >>confdefs.h <<_ACEOF
95826: #define COMPILE_DL_PDO_PGSQL 1
95827: _ACEOF
95828:
95829: fi
95830: fi
95831:
95832: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
95833: PHP_PDO_PGSQL_SHARED=no
1.1.1.3 ! misho 95834: case "$PHP_SAPI" in
! 95835: cgi|embed)
1.1 misho 95836:
95837:
95838: case ext/pdo_pgsql in
95839: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95840: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95841: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95842: esac
95843:
95844:
95845:
95846: b_c_pre=$php_c_pre
95847: b_cxx_pre=$php_cxx_pre
95848: b_c_meta=$php_c_meta
95849: b_cxx_meta=$php_cxx_meta
95850: b_c_post=$php_c_post
95851: b_cxx_post=$php_cxx_post
95852: b_lo=$php_lo
95853:
95854:
95855: old_IFS=$IFS
95856: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95857:
95858: IFS=.
95859: set $ac_src
95860: ac_obj=$1
95861: IFS=$old_IFS
95862:
1.1.1.2 misho 95863: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 95864:
95865: case $ac_src in
95866: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95867: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95868: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95869: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95870: esac
95871:
95872: cat >>Makefile.objects<<EOF
95873: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95874: $ac_comp
95875: EOF
95876: done
95877:
95878:
1.1.1.3 ! misho 95879: EXT_STATIC="$EXT_STATIC pdo_pgsql"
! 95880: ;;
! 95881: *)
1.1 misho 95882:
95883:
95884: case ext/pdo_pgsql in
95885: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95886: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95887: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95888: esac
95889:
95890:
95891:
95892: b_c_pre=$php_c_pre
95893: b_cxx_pre=$php_cxx_pre
95894: b_c_meta=$php_c_meta
95895: b_cxx_meta=$php_cxx_meta
95896: b_c_post=$php_c_post
95897: b_cxx_post=$php_cxx_post
95898: b_lo=$php_lo
95899:
95900:
95901: old_IFS=$IFS
95902: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95903:
95904: IFS=.
95905: set $ac_src
95906: ac_obj=$1
95907: IFS=$old_IFS
95908:
1.1.1.2 misho 95909: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 95910:
95911: case $ac_src in
95912: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95913: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95914: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95915: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95916: esac
95917:
95918: cat >>Makefile.objects<<EOF
95919: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95920: $ac_comp
95921: EOF
95922: done
95923:
95924:
1.1.1.3 ! misho 95925: ;;
! 95926: esac
1.1 misho 95927: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
95928: fi
95929:
95930:
95931: BUILD_DIR="$BUILD_DIR $ext_builddir"
95932:
95933:
95934:
95935: if test "$ext_builddir" = "."; then
95936: PHP_PECL_EXTENSION=pdo_pgsql
95937:
95938: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
95939:
95940: fi
95941:
95942:
95943:
95944: am_i_shared=$PHP_PDO_PGSQL_SHARED
95945: is_it_shared=$PHP_PDO_SHARED
95946: is_it_enabled=$PHP_PDO
95947: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 95948: { { echo "$as_me:$LINENO: error:
! 95949: You've configured extension pdo_pgsql to build statically, but it
! 95950: depends on extension pdo, which you've configured to build shared.
! 95951: You either need to build pdo_pgsql shared or build pdo statically for the
! 95952: build to be successful.
! 95953: " >&5
! 95954: echo "$as_me: error:
1.1 misho 95955: You've configured extension pdo_pgsql to build statically, but it
95956: depends on extension pdo, which you've configured to build shared.
95957: You either need to build pdo_pgsql shared or build pdo statically for the
95958: build to be successful.
1.1.1.3 ! misho 95959: " >&2;}
! 95960: { (exit 1); exit 1; }; }
! 95961: fi
! 95962: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 95963: { { echo "$as_me:$LINENO: error:
! 95964: You've configured extension pdo_pgsql, which depends on extension pdo,
! 95965: but you've either not enabled pdo, or have disabled it.
! 95966: " >&5
! 95967: echo "$as_me: error:
! 95968: You've configured extension pdo_pgsql, which depends on extension pdo,
! 95969: but you've either not enabled pdo, or have disabled it.
! 95970: " >&2;}
! 95971: { (exit 1); exit 1; }; }
1.1 misho 95972: fi
95973:
95974:
95975: fi
95976:
95977:
95978:
95979: php_with_pdo_sqlite=$PHP_PDO
95980:
1.1.1.3 ! misho 95981: { echo "$as_me:$LINENO: checking for sqlite 3 support for PDO" >&5
! 95982: echo $ECHO_N "checking for sqlite 3 support for PDO... $ECHO_C" >&6; }
1.1 misho 95983:
95984: # Check whether --with-pdo-sqlite was given.
1.1.1.3 ! misho 95985: if test "${with_pdo_sqlite+set}" = set; then
1.1 misho 95986: withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval
95987: else
95988:
95989: PHP_PDO_SQLITE=$PHP_PDO
95990: test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL
95991:
95992: fi
95993:
95994:
95995:
95996: ext_output="yes, shared"
95997: ext_shared=yes
95998: case $PHP_PDO_SQLITE in
95999: shared,*)
96000: PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'`
96001: ;;
96002: shared)
96003: PHP_PDO_SQLITE=yes
96004: ;;
96005: no)
96006: ext_output=no
96007: ext_shared=no
96008: ;;
96009: *)
96010: ext_output=yes
96011: ext_shared=no
96012: ;;
96013: esac
96014:
96015:
96016:
1.1.1.3 ! misho 96017: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 96018: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 96019:
96020:
96021:
96022:
96023: if test "$PHP_PDO_SQLITE" != "no"; then
96024:
96025: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 96026: { { echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
! 96027: echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
! 96028: { (exit 1); exit 1; }; }
1.1 misho 96029: fi
96030:
96031:
96032:
1.1.1.3 ! misho 96033: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 96034: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
! 96035: if test "${pdo_cv_inc_path+set}" = set; then
! 96036: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 96037: else
96038:
1.1.1.3 ! misho 96039: { echo "$as_me:$LINENO: checking for PDO includes" >&5
! 96040: echo $ECHO_N "checking for PDO includes... $ECHO_C" >&6; }
1.1 misho 96041: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 96042: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 96043: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 96044: pdo_cv_inc_path=$abs_srcdir/ext
1.1 misho 96045: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 misho 96046: pdo_cv_inc_path=$prefix/include/php/ext
1.1 misho 96047: fi
96048:
96049: fi
1.1.1.3 ! misho 96050: { echo "$as_me:$LINENO: result: $pdo_cv_inc_path" >&5
! 96051: echo "${ECHO_T}$pdo_cv_inc_path" >&6; }
1.1.1.2 misho 96052: if test -n "$pdo_cv_inc_path"; then
1.1 misho 96053: :
96054: else
1.1.1.3 ! misho 96055: { { echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
! 96056: echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
! 96057: { (exit 1); exit 1; }; }
1.1 misho 96058: fi
96059:
96060:
96061:
96062: php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
96063:
96064: if test "$PHP_PDO_SQLITE" != "yes"; then
96065: SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this
96066: SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this
96067: if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
96068: PDO_SQLITE_DIR=$PHP_PDO_SQLITE
96069: else # search default path list
1.1.1.3 ! misho 96070: { echo "$as_me:$LINENO: checking for sqlite3 files in default path" >&5
! 96071: echo $ECHO_N "checking for sqlite3 files in default path... $ECHO_C" >&6; }
1.1 misho 96072: for i in $SEARCH_PATH ; do
96073: if test -r $i/$SEARCH_FOR; then
96074: PDO_SQLITE_DIR=$i
1.1.1.3 ! misho 96075: { echo "$as_me:$LINENO: result: found in $i" >&5
! 96076: echo "${ECHO_T}found in $i" >&6; }
1.1 misho 96077: fi
96078: done
96079: fi
96080: if test -z "$PDO_SQLITE_DIR"; then
1.1.1.3 ! misho 96081: { echo "$as_me:$LINENO: result: not found" >&5
! 96082: echo "${ECHO_T}not found" >&6; }
! 96083: { { echo "$as_me:$LINENO: error: Please reinstall the sqlite3 distribution" >&5
! 96084: echo "$as_me: error: Please reinstall the sqlite3 distribution" >&2;}
! 96085: { (exit 1); exit 1; }; }
1.1 misho 96086: fi
96087:
96088:
96089: if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then
96090:
96091: if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then
96092: ai_p=$PDO_SQLITE_DIR/include
96093: else
96094:
96095: ep_dir="`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
96096:
96097: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96098: ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/include\"`"
96099: fi
96100:
96101:
96102:
96103: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96104:
96105: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
96106: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96107: eval "INCLUDEPATH$unique=set"
96108:
96109: if test ""; then
96110: INCLUDES="-I$ai_p $INCLUDES"
96111: else
96112: INCLUDES="$INCLUDES -I$ai_p"
96113: fi
96114:
96115: fi
96116:
96117: fi
96118:
96119:
96120: LIBNAME=sqlite3
96121: LIBSYMBOL=sqlite3_open
96122:
96123:
96124: save_old_LDFLAGS=$LDFLAGS
96125: ac_stuff="
96126: -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm
96127: "
96128:
96129: save_ext_shared=$ext_shared
96130: ext_shared=yes
96131:
96132: for ac_i in $ac_stuff; do
96133: case $ac_i in
96134: -pthread)
96135: if test "$ext_shared" = "yes"; then
96136: LDFLAGS="$LDFLAGS -pthread"
96137: else
96138:
96139:
96140: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96141:
96142: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96143: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96144: eval "EXTRA_LDFLAGS$unique=set"
96145: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96146: fi
96147:
96148: fi
96149: ;;
96150: -l*)
96151: ac_ii=`echo $ac_i|cut -c 3-`
96152:
96153:
96154: case $ac_ii in
96155: c|c_r|pthread*) ;;
96156: *)
96157: if test "$ext_shared" = "yes"; then
96158: LDFLAGS="$LDFLAGS -l$ac_ii"
96159: else
96160:
96161:
96162: case $ac_ii in
96163: c|c_r|pthread*) ;;
96164: *)
96165: LIBS="$LIBS -l$ac_ii"
96166: ;;
96167: esac
96168:
96169:
96170: fi
96171: ;;
96172: esac
96173:
96174:
96175: ;;
96176: -L*)
96177: ac_ii=`echo $ac_i|cut -c 3-`
96178:
96179: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96180:
96181: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96182: ai_p=$ac_ii
96183: else
96184:
96185: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96186:
96187: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96188: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96189: fi
96190:
96191:
96192: if test "$ext_shared" = "yes"; then
96193: LDFLAGS="-L$ai_p $LDFLAGS"
96194: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96195: else
96196:
96197:
96198:
96199: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96200:
96201: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96202: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96203: eval "LIBPATH$unique=set"
96204:
96205: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96206: LDFLAGS="$LDFLAGS -L$ai_p"
96207: PHP_RPATHS="$PHP_RPATHS $ai_p"
96208:
96209: fi
96210:
96211:
96212: fi
96213:
96214: fi
96215:
96216: ;;
96217: esac
96218: done
96219:
1.1.1.3 ! misho 96220: as_ac_Lib=`echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
! 96221: { echo "$as_me:$LINENO: checking for $LIBSYMBOL in -l$LIBNAME" >&5
! 96222: echo $ECHO_N "checking for $LIBSYMBOL in -l$LIBNAME... $ECHO_C" >&6; }
! 96223: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 96224: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 96225: else
96226: ac_check_lib_save_LIBS=$LIBS
96227: LIBS="-l$LIBNAME $LIBS"
1.1.1.3 ! misho 96228: cat >conftest.$ac_ext <<_ACEOF
! 96229: /* confdefs.h. */
! 96230: _ACEOF
! 96231: cat confdefs.h >>conftest.$ac_ext
! 96232: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 96233: /* end confdefs.h. */
96234:
96235: /* Override any GCC internal prototype to avoid an error.
96236: Use char because int might match the return type of a GCC
96237: builtin and then its argument prototype would still apply. */
96238: #ifdef __cplusplus
96239: extern "C"
96240: #endif
96241: char $LIBSYMBOL ();
96242: int
96243: main ()
96244: {
96245: return $LIBSYMBOL ();
96246: ;
96247: return 0;
96248: }
96249: _ACEOF
1.1.1.3 ! misho 96250: rm -f conftest.$ac_objext conftest$ac_exeext
! 96251: if { (ac_try="$ac_link"
! 96252: case "(($ac_try" in
! 96253: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 96254: *) ac_try_echo=$ac_try;;
! 96255: esac
! 96256: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 96257: (eval "$ac_link") 2>conftest.er1
! 96258: ac_status=$?
! 96259: grep -v '^ *+' conftest.er1 >conftest.err
! 96260: rm -f conftest.er1
! 96261: cat conftest.err >&5
! 96262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 96263: (exit $ac_status); } && {
! 96264: test -z "$ac_c_werror_flag" ||
! 96265: test ! -s conftest.err
! 96266: } && test -s conftest$ac_exeext &&
! 96267: $as_test_x conftest$ac_exeext; then
1.1 misho 96268: eval "$as_ac_Lib=yes"
96269: else
1.1.1.3 ! misho 96270: echo "$as_me: failed program was:" >&5
! 96271: sed 's/^/| /' conftest.$ac_ext >&5
! 96272:
! 96273: eval "$as_ac_Lib=no"
1.1 misho 96274: fi
1.1.1.3 ! misho 96275:
! 96276: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 96277: conftest$ac_exeext conftest.$ac_ext
1.1 misho 96278: LIBS=$ac_check_lib_save_LIBS
96279: fi
1.1.1.3 ! misho 96280: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 96281: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 96282: echo "${ECHO_T}$ac_res" >&6; }
! 96283: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 96284:
96285: LDFLAGS=$save_old_LDFLAGS
96286: ext_shared=$save_ext_shared
96287:
96288:
96289:
96290: if test "$ext_shared" = "yes"; then
96291: PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD"
96292: if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
96293:
96294: if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
96295:
96296: if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
96297: ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
96298: else
96299:
96300: ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
96301:
96302: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96303: ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
96304: fi
96305:
96306:
96307: if test "$ext_shared" = "yes"; then
96308: PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD"
96309: test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD"
96310: else
96311:
96312:
96313:
96314: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96315:
96316: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96317: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96318: eval "LIBPATH$unique=set"
96319:
96320: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96321: LDFLAGS="$LDFLAGS -L$ai_p"
96322: PHP_RPATHS="$PHP_RPATHS $ai_p"
96323:
96324: fi
96325:
96326:
96327: fi
96328:
96329: fi
96330:
96331: fi
96332: else
96333:
96334:
96335: if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
96336:
96337: if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
96338:
96339: if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
96340: ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
96341: else
96342:
96343: ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
96344:
96345: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96346: ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
96347: fi
96348:
96349:
96350:
96351:
96352:
96353: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96354:
96355: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96356: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96357: eval "LIBPATH$unique=set"
96358:
96359: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96360: LDFLAGS="$LDFLAGS -L$ai_p"
96361: PHP_RPATHS="$PHP_RPATHS $ai_p"
96362:
96363: fi
96364:
96365:
96366:
96367: fi
96368:
96369: fi
96370:
96371:
96372: case $LIBNAME in
96373: c|c_r|pthread*) ;;
96374: *)
96375: LIBS="-l$LIBNAME $LIBS"
96376: ;;
96377: esac
96378:
96379:
96380:
96381:
96382: fi
96383:
96384:
96385:
1.1.1.3 ! misho 96386: cat >>confdefs.h <<\_ACEOF
! 96387: #define HAVE_PDO_SQLITELIB 1
! 96388: _ACEOF
1.1 misho 96389:
96390:
96391:
96392: else
96393:
96394: LDFLAGS=$save_old_LDFLAGS
96395: ext_shared=$save_ext_shared
96396: unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
96397:
1.1.1.3 ! misho 96398: { { echo "$as_me:$LINENO: error: wrong sqlite lib version or lib not found" >&5
! 96399: echo "$as_me: error: wrong sqlite lib version or lib not found" >&2;}
! 96400: { (exit 1); exit 1; }; }
1.1 misho 96401:
96402:
96403: fi
96404:
96405:
96406: save_old_LDFLAGS=$LDFLAGS
96407: ac_stuff=""
96408:
96409: save_ext_shared=$ext_shared
96410: ext_shared=yes
96411:
96412: for ac_i in $ac_stuff; do
96413: case $ac_i in
96414: -pthread)
96415: if test "$ext_shared" = "yes"; then
96416: LDFLAGS="$LDFLAGS -pthread"
96417: else
96418:
96419:
96420: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96421:
96422: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96423: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96424: eval "EXTRA_LDFLAGS$unique=set"
96425: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96426: fi
96427:
96428: fi
96429: ;;
96430: -l*)
96431: ac_ii=`echo $ac_i|cut -c 3-`
96432:
96433:
96434: case $ac_ii in
96435: c|c_r|pthread*) ;;
96436: *)
96437: if test "$ext_shared" = "yes"; then
96438: LDFLAGS="$LDFLAGS -l$ac_ii"
96439: else
96440:
96441:
96442: case $ac_ii in
96443: c|c_r|pthread*) ;;
96444: *)
96445: LIBS="$LIBS -l$ac_ii"
96446: ;;
96447: esac
96448:
96449:
96450: fi
96451: ;;
96452: esac
96453:
96454:
96455: ;;
96456: -L*)
96457: ac_ii=`echo $ac_i|cut -c 3-`
96458:
96459: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96460:
96461: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96462: ai_p=$ac_ii
96463: else
96464:
96465: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96466:
96467: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96468: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96469: fi
96470:
96471:
96472: if test "$ext_shared" = "yes"; then
96473: LDFLAGS="-L$ai_p $LDFLAGS"
96474: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96475: else
96476:
96477:
96478:
96479: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96480:
96481: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96482: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96483: eval "LIBPATH$unique=set"
96484:
96485: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96486: LDFLAGS="$LDFLAGS -L$ai_p"
96487: PHP_RPATHS="$PHP_RPATHS $ai_p"
96488:
96489: fi
96490:
96491:
96492: fi
96493:
96494: fi
96495:
96496: ;;
96497: esac
96498: done
96499:
1.1.1.3 ! misho 96500: { echo "$as_me:$LINENO: checking for sqlite3_key in -lsqlite3" >&5
! 96501: echo $ECHO_N "checking for sqlite3_key in -lsqlite3... $ECHO_C" >&6; }
! 96502: if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then
! 96503: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 96504: else
96505: ac_check_lib_save_LIBS=$LIBS
96506: LIBS="-lsqlite3 $LIBS"
1.1.1.3 ! misho 96507: cat >conftest.$ac_ext <<_ACEOF
! 96508: /* confdefs.h. */
! 96509: _ACEOF
! 96510: cat confdefs.h >>conftest.$ac_ext
! 96511: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 96512: /* end confdefs.h. */
96513:
96514: /* Override any GCC internal prototype to avoid an error.
96515: Use char because int might match the return type of a GCC
96516: builtin and then its argument prototype would still apply. */
96517: #ifdef __cplusplus
96518: extern "C"
96519: #endif
96520: char sqlite3_key ();
96521: int
96522: main ()
96523: {
96524: return sqlite3_key ();
96525: ;
96526: return 0;
96527: }
96528: _ACEOF
1.1.1.3 ! misho 96529: rm -f conftest.$ac_objext conftest$ac_exeext
! 96530: if { (ac_try="$ac_link"
! 96531: case "(($ac_try" in
! 96532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 96533: *) ac_try_echo=$ac_try;;
! 96534: esac
! 96535: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 96536: (eval "$ac_link") 2>conftest.er1
! 96537: ac_status=$?
! 96538: grep -v '^ *+' conftest.er1 >conftest.err
! 96539: rm -f conftest.er1
! 96540: cat conftest.err >&5
! 96541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 96542: (exit $ac_status); } && {
! 96543: test -z "$ac_c_werror_flag" ||
! 96544: test ! -s conftest.err
! 96545: } && test -s conftest$ac_exeext &&
! 96546: $as_test_x conftest$ac_exeext; then
1.1 misho 96547: ac_cv_lib_sqlite3_sqlite3_key=yes
96548: else
1.1.1.3 ! misho 96549: echo "$as_me: failed program was:" >&5
! 96550: sed 's/^/| /' conftest.$ac_ext >&5
! 96551:
! 96552: ac_cv_lib_sqlite3_sqlite3_key=no
1.1 misho 96553: fi
1.1.1.3 ! misho 96554:
! 96555: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 96556: conftest$ac_exeext conftest.$ac_ext
1.1 misho 96557: LIBS=$ac_check_lib_save_LIBS
96558: fi
1.1.1.3 ! misho 96559: { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
! 96560: echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
! 96561: if test $ac_cv_lib_sqlite3_sqlite3_key = yes; then
1.1 misho 96562:
96563: LDFLAGS=$save_old_LDFLAGS
96564: ext_shared=$save_ext_shared
96565:
96566:
1.1.1.3 ! misho 96567: cat >>confdefs.h <<\_ACEOF
! 96568: #define HAVE_SQLITE3_KEY 1
! 96569: _ACEOF
1.1 misho 96570:
96571:
96572:
96573: else
96574:
96575: LDFLAGS=$save_old_LDFLAGS
96576: ext_shared=$save_ext_shared
96577: unset ac_cv_lib_sqlite3_sqlite3_key
96578:
96579:
96580: fi
96581:
96582:
96583:
96584: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
96585:
96586:
96587: ext_builddir=ext/pdo_sqlite
96588: ext_srcdir=$abs_srcdir/ext/pdo_sqlite
96589:
1.1.1.2 misho 96590: ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 96591:
96592: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
96593: PHP_PDO_SQLITE_SHARED=no
96594:
96595:
96596: case ext/pdo_sqlite in
96597: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96598: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96599: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96600: esac
96601:
96602:
96603:
96604: b_c_pre=$php_c_pre
96605: b_cxx_pre=$php_cxx_pre
96606: b_c_meta=$php_c_meta
96607: b_cxx_meta=$php_cxx_meta
96608: b_c_post=$php_c_post
96609: b_cxx_post=$php_cxx_post
96610: b_lo=$php_lo
96611:
96612:
96613: old_IFS=$IFS
96614: for ac_src in $php_pdo_sqlite_sources_core; do
96615:
96616: IFS=.
96617: set $ac_src
96618: ac_obj=$1
96619: IFS=$old_IFS
96620:
96621: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96622:
96623: case $ac_src in
96624: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96625: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96626: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96627: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96628: esac
96629:
96630: cat >>Makefile.objects<<EOF
96631: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96632: $ac_comp
96633: EOF
96634: done
96635:
96636:
96637: EXT_STATIC="$EXT_STATIC pdo_sqlite"
96638: if test "$ext_shared" != "nocli"; then
96639: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
96640: fi
96641: else
96642: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
96643: PHP_PDO_SQLITE_SHARED=yes
96644:
96645: case ext/pdo_sqlite in
96646: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96647: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96648: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96649: esac
96650:
96651:
96652:
96653: b_c_pre=$shared_c_pre
96654: b_cxx_pre=$shared_cxx_pre
96655: b_c_meta=$shared_c_meta
96656: b_cxx_meta=$shared_cxx_meta
96657: b_c_post=$shared_c_post
96658: b_cxx_post=$shared_cxx_post
96659: b_lo=$shared_lo
96660:
96661:
96662: old_IFS=$IFS
96663: for ac_src in $php_pdo_sqlite_sources_core; do
96664:
96665: IFS=.
96666: set $ac_src
96667: ac_obj=$1
96668: IFS=$old_IFS
96669:
96670: shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
96671:
96672: case $ac_src in
96673: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96674: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96675: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96676: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96677: esac
96678:
96679: cat >>Makefile.objects<<EOF
96680: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96681: $ac_comp
96682: EOF
96683: done
96684:
96685: case $host_alias in
96686: *netware*)
96687:
96688: install_modules="install-modules"
96689:
96690: case $host_alias in
96691: *aix*)
96692: suffix=so
96693: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_sqlite.so '$ext_builddir'/phppdo_sqlite.so'
96694: ;;
96695: *netware*)
96696: suffix=nlm
96697: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(PDO_SQLITE_SHARED_LIBADD)'
96698: ;;
96699: *)
96700: suffix=la
96701: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD)'
96702: ;;
96703: esac
96704:
96705: if test "x" = "xyes"; then
96706: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
96707: else
96708: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
96709: fi
96710:
96711: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
96712:
96713: cat >>Makefile.objects<<EOF
96714: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
96715: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
96716:
96717: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
96718: $link_cmd
96719:
96720: EOF
96721:
96722: ;;
96723: *)
96724:
96725: install_modules="install-modules"
96726:
96727: case $host_alias in
96728: *aix*)
96729: suffix=so
96730: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_sqlite.so '$ext_builddir'/pdo_sqlite.so'
96731: ;;
96732: *netware*)
96733: suffix=nlm
96734: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(_SQLITE_SHARED_LIBADD)'
96735: ;;
96736: *)
96737: suffix=la
96738: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD)'
96739: ;;
96740: esac
96741:
96742: if test "x" = "xyes"; then
96743: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
96744: else
96745: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
96746: fi
96747:
96748: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
96749:
96750: cat >>Makefile.objects<<EOF
96751: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
96752: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
96753:
96754: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
96755: $link_cmd
96756:
96757: EOF
96758:
96759: ;;
96760: esac
96761:
96762: cat >>confdefs.h <<_ACEOF
96763: #define COMPILE_DL_PDO_SQLITE 1
96764: _ACEOF
96765:
96766: fi
96767: fi
96768:
96769: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
96770: PHP_PDO_SQLITE_SHARED=no
1.1.1.3 ! misho 96771: case "$PHP_SAPI" in
! 96772: cgi|embed)
1.1 misho 96773:
96774:
96775: case ext/pdo_sqlite in
96776: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96777: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96778: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96779: esac
96780:
96781:
96782:
96783: b_c_pre=$php_c_pre
96784: b_cxx_pre=$php_cxx_pre
96785: b_c_meta=$php_c_meta
96786: b_cxx_meta=$php_cxx_meta
96787: b_c_post=$php_c_post
96788: b_cxx_post=$php_cxx_post
96789: b_lo=$php_lo
96790:
96791:
96792: old_IFS=$IFS
96793: for ac_src in $php_pdo_sqlite_sources_core; do
96794:
96795: IFS=.
96796: set $ac_src
96797: ac_obj=$1
96798: IFS=$old_IFS
96799:
1.1.1.2 misho 96800: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 96801:
96802: case $ac_src in
96803: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96804: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96805: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96806: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96807: esac
96808:
96809: cat >>Makefile.objects<<EOF
96810: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96811: $ac_comp
96812: EOF
96813: done
96814:
96815:
1.1.1.3 ! misho 96816: EXT_STATIC="$EXT_STATIC pdo_sqlite"
! 96817: ;;
! 96818: *)
1.1 misho 96819:
96820:
96821: case ext/pdo_sqlite in
96822: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96823: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96824: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96825: esac
96826:
96827:
96828:
96829: b_c_pre=$php_c_pre
96830: b_cxx_pre=$php_cxx_pre
96831: b_c_meta=$php_c_meta
96832: b_cxx_meta=$php_cxx_meta
96833: b_c_post=$php_c_post
96834: b_cxx_post=$php_cxx_post
96835: b_lo=$php_lo
96836:
96837:
96838: old_IFS=$IFS
96839: for ac_src in $php_pdo_sqlite_sources_core; do
96840:
96841: IFS=.
96842: set $ac_src
96843: ac_obj=$1
96844: IFS=$old_IFS
96845:
1.1.1.2 misho 96846: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 96847:
96848: case $ac_src in
96849: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96850: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96851: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96852: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96853: esac
96854:
96855: cat >>Makefile.objects<<EOF
96856: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96857: $ac_comp
96858: EOF
96859: done
96860:
96861:
1.1.1.3 ! misho 96862: ;;
! 96863: esac
1.1 misho 96864: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
96865: fi
96866:
96867:
96868: BUILD_DIR="$BUILD_DIR $ext_builddir"
96869:
96870:
96871:
96872: if test "$ext_builddir" = "."; then
96873: PHP_PECL_EXTENSION=pdo_sqlite
96874:
96875: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
96876:
96877: fi
96878:
96879: else
96880: # use bundled libs
96881: if test "$enable_maintainer_zts" = "yes"; then
96882: threadsafe_flags="-DSQLITE_THREADSAFE=1"
96883: else
96884: threadsafe_flags="-DSQLITE_THREADSAFE=0"
96885: fi
96886:
96887: other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
96888:
96889: if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
96890: other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
96891: fi
96892:
96893: if test "$PHP_SQLITE3" != "yes"; then
96894:
96895:
96896: case ext/sqlite3 in
96897: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96898: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96899: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96900: esac
96901:
96902:
96903:
96904: b_c_pre=$php_c_pre
96905: b_cxx_pre=$php_cxx_pre
96906: b_c_meta=$php_c_meta
96907: b_cxx_meta=$php_cxx_meta
96908: b_c_post=$php_c_post
96909: b_cxx_post=$php_cxx_post
96910: b_lo=$php_lo
96911:
96912:
96913: old_IFS=$IFS
96914: for ac_src in libsqlite/sqlite3.c; do
96915:
96916: IFS=.
96917: set $ac_src
96918: ac_obj=$1
96919: IFS=$old_IFS
96920:
96921: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96922:
96923: case $ac_src in
96924: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96925: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96926: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96927: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96928: esac
96929:
96930: cat >>Makefile.objects<<EOF
96931: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96932: $ac_comp
96933: EOF
96934: done
96935:
96936:
96937: fi
96938:
96939:
96940: ext_builddir=ext/pdo_sqlite
96941: ext_srcdir=$abs_srcdir/ext/pdo_sqlite
96942:
1.1.1.2 misho 96943: ac_extra=`echo "-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1 misho 96944:
96945: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
96946: PHP_PDO_SQLITE_SHARED=no
96947:
96948:
96949: case ext/pdo_sqlite in
96950: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96951: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96952: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96953: esac
96954:
96955:
96956:
96957: b_c_pre=$php_c_pre
96958: b_cxx_pre=$php_cxx_pre
96959: b_c_meta=$php_c_meta
96960: b_cxx_meta=$php_cxx_meta
96961: b_c_post=$php_c_post
96962: b_cxx_post=$php_cxx_post
96963: b_lo=$php_lo
96964:
96965:
96966: old_IFS=$IFS
96967: for ac_src in $php_pdo_sqlite_sources_core; do
96968:
96969: IFS=.
96970: set $ac_src
96971: ac_obj=$1
96972: IFS=$old_IFS
96973:
96974: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96975:
96976: case $ac_src in
96977: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96978: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96979: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96980: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96981: esac
96982:
96983: cat >>Makefile.objects<<EOF
96984: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96985: $ac_comp
96986: EOF
96987: done
96988:
96989:
96990: EXT_STATIC="$EXT_STATIC pdo_sqlite"
96991: if test "$ext_shared" != "nocli"; then
96992: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
96993: fi
96994: else
96995: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
96996: PHP_PDO_SQLITE_SHARED=yes
96997:
96998: case ext/pdo_sqlite in
96999: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97000: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97001: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97002: esac
97003:
97004:
97005:
97006: b_c_pre=$shared_c_pre
97007: b_cxx_pre=$shared_cxx_pre
97008: b_c_meta=$shared_c_meta
97009: b_cxx_meta=$shared_cxx_meta
97010: b_c_post=$shared_c_post
97011: b_cxx_post=$shared_cxx_post
97012: b_lo=$shared_lo
97013:
97014:
97015: old_IFS=$IFS
97016: for ac_src in $php_pdo_sqlite_sources_core; do
97017:
97018: IFS=.
97019: set $ac_src
97020: ac_obj=$1
97021: IFS=$old_IFS
97022:
97023: shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
97024:
97025: case $ac_src in
97026: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97027: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97028: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97029: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97030: esac
97031:
97032: cat >>Makefile.objects<<EOF
97033: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97034: $ac_comp
97035: EOF
97036: done
97037:
97038: case $host_alias in
97039: *netware*)
97040:
97041: install_modules="install-modules"
97042:
97043: case $host_alias in
97044: *aix*)
97045: suffix=so
97046: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_sqlite.so '$ext_builddir'/phppdo_sqlite.so'
97047: ;;
97048: *netware*)
97049: suffix=nlm
97050: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(PDO_SQLITE_SHARED_LIBADD)'
97051: ;;
97052: *)
97053: suffix=la
97054: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD)'
97055: ;;
97056: esac
97057:
97058: if test "x" = "xyes"; then
97059: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
97060: else
97061: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
97062: fi
97063:
97064: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
97065:
97066: cat >>Makefile.objects<<EOF
97067: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
97068: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
97069:
97070: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
97071: $link_cmd
97072:
97073: EOF
97074:
97075: ;;
97076: *)
97077:
97078: install_modules="install-modules"
97079:
97080: case $host_alias in
97081: *aix*)
97082: suffix=so
97083: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_sqlite.so '$ext_builddir'/pdo_sqlite.so'
97084: ;;
97085: *netware*)
97086: suffix=nlm
97087: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(_SQLITE_SHARED_LIBADD)'
97088: ;;
97089: *)
97090: suffix=la
97091: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD)'
97092: ;;
97093: esac
97094:
97095: if test "x" = "xyes"; then
97096: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
97097: else
97098: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
97099: fi
97100:
97101: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
97102:
97103: cat >>Makefile.objects<<EOF
97104: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
97105: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
97106:
97107: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
97108: $link_cmd
97109:
97110: EOF
97111:
97112: ;;
97113: esac
97114:
97115: cat >>confdefs.h <<_ACEOF
97116: #define COMPILE_DL_PDO_SQLITE 1
97117: _ACEOF
97118:
97119: fi
97120: fi
97121:
97122: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97123: PHP_PDO_SQLITE_SHARED=no
1.1.1.3 ! misho 97124: case "$PHP_SAPI" in
! 97125: cgi|embed)
1.1 misho 97126:
97127:
97128: case ext/pdo_sqlite in
97129: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97130: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97131: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97132: esac
97133:
97134:
97135:
97136: b_c_pre=$php_c_pre
97137: b_cxx_pre=$php_cxx_pre
97138: b_c_meta=$php_c_meta
97139: b_cxx_meta=$php_cxx_meta
97140: b_c_post=$php_c_post
97141: b_cxx_post=$php_cxx_post
97142: b_lo=$php_lo
97143:
97144:
97145: old_IFS=$IFS
97146: for ac_src in $php_pdo_sqlite_sources_core; do
97147:
97148: IFS=.
97149: set $ac_src
97150: ac_obj=$1
97151: IFS=$old_IFS
97152:
1.1.1.2 misho 97153: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 97154:
97155: case $ac_src in
97156: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97157: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97158: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97159: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97160: esac
97161:
97162: cat >>Makefile.objects<<EOF
97163: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97164: $ac_comp
97165: EOF
97166: done
97167:
97168:
1.1.1.3 ! misho 97169: EXT_STATIC="$EXT_STATIC pdo_sqlite"
! 97170: ;;
! 97171: *)
1.1 misho 97172:
97173:
97174: case ext/pdo_sqlite in
97175: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97176: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97177: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97178: esac
97179:
97180:
97181:
97182: b_c_pre=$php_c_pre
97183: b_cxx_pre=$php_cxx_pre
97184: b_c_meta=$php_c_meta
97185: b_cxx_meta=$php_cxx_meta
97186: b_c_post=$php_c_post
97187: b_cxx_post=$php_cxx_post
97188: b_lo=$php_lo
97189:
97190:
97191: old_IFS=$IFS
97192: for ac_src in $php_pdo_sqlite_sources_core; do
97193:
97194: IFS=.
97195: set $ac_src
97196: ac_obj=$1
97197: IFS=$old_IFS
97198:
1.1.1.2 misho 97199: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 97200:
97201: case $ac_src in
97202: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97203: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97204: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97205: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97206: esac
97207:
97208: cat >>Makefile.objects<<EOF
97209: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97210: $ac_comp
97211: EOF
97212: done
97213:
97214:
1.1.1.3 ! misho 97215: ;;
! 97216: esac
1.1 misho 97217: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
97218: fi
97219:
97220:
97221: BUILD_DIR="$BUILD_DIR $ext_builddir"
97222:
97223:
97224:
97225: if test "$ext_builddir" = "."; then
97226: PHP_PECL_EXTENSION=pdo_sqlite
97227:
97228: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
97229:
97230: fi
97231:
97232:
97233:
97234: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
97235:
97236:
97237: am_i_shared=$PHP_PDO_SQLITE_SHARED
97238: is_it_shared=$PHP_SQLITE3_SHARED
97239: is_it_enabled=$PHP_SQLITE3
97240: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 97241: { { echo "$as_me:$LINENO: error:
1.1 misho 97242: You've configured extension pdo_sqlite to build statically, but it
97243: depends on extension sqlite3, which you've configured to build shared.
97244: You either need to build pdo_sqlite shared or build sqlite3 statically for the
97245: build to be successful.
1.1.1.3 ! misho 97246: " >&5
! 97247: echo "$as_me: error:
! 97248: You've configured extension pdo_sqlite to build statically, but it
! 97249: depends on extension sqlite3, which you've configured to build shared.
! 97250: You either need to build pdo_sqlite shared or build sqlite3 statically for the
! 97251: build to be successful.
! 97252: " >&2;}
! 97253: { (exit 1); exit 1; }; }
! 97254: fi
! 97255: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 97256: { { echo "$as_me:$LINENO: error:
! 97257: You've configured extension pdo_sqlite, which depends on extension sqlite3,
! 97258: but you've either not enabled sqlite3, or have disabled it.
! 97259: " >&5
! 97260: echo "$as_me: error:
! 97261: You've configured extension pdo_sqlite, which depends on extension sqlite3,
! 97262: but you've either not enabled sqlite3, or have disabled it.
! 97263: " >&2;}
! 97264: { (exit 1); exit 1; }; }
1.1 misho 97265: fi
97266:
97267:
97268: if test "$abs_srcdir/ext/sqlite3/libsqlite" != "/usr/include"; then
97269:
97270: if test -z "$abs_srcdir/ext/sqlite3/libsqlite" || echo "$abs_srcdir/ext/sqlite3/libsqlite" | grep '^/' >/dev/null ; then
97271: ai_p=$abs_srcdir/ext/sqlite3/libsqlite
97272: else
97273:
97274: ep_dir="`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'`"
97275:
97276: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
97277: ai_p="$ep_realdir/`basename \"$abs_srcdir/ext/sqlite3/libsqlite\"`"
97278: fi
97279:
97280:
97281:
97282: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97283:
97284: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
97285: if test -n "$unique" && test "`eval $cmd`" = "" ; then
97286: eval "INCLUDEPATH$unique=set"
97287:
97288: if test ""; then
97289: INCLUDES="-I$ai_p $INCLUDES"
97290: else
97291: INCLUDES="$INCLUDES -I$ai_p"
97292: fi
97293:
97294: fi
97295:
97296: fi
97297:
97298:
1.1.1.3 ! misho 97299:
! 97300:
! 97301: for ac_func in usleep nanosleep
! 97302: do
! 97303: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 97304: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 97305: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 97306: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 97307: echo $ECHO_N "(cached) $ECHO_C" >&6
! 97308: else
! 97309: cat >conftest.$ac_ext <<_ACEOF
! 97310: /* confdefs.h. */
! 97311: _ACEOF
! 97312: cat confdefs.h >>conftest.$ac_ext
! 97313: cat >>conftest.$ac_ext <<_ACEOF
! 97314: /* end confdefs.h. */
! 97315: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 97316: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 97317: #define $ac_func innocuous_$ac_func
! 97318:
! 97319: /* System header to define __stub macros and hopefully few prototypes,
! 97320: which can conflict with char $ac_func (); below.
! 97321: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 97322: <limits.h> exists even on freestanding compilers. */
! 97323:
! 97324: #ifdef __STDC__
! 97325: # include <limits.h>
! 97326: #else
! 97327: # include <assert.h>
! 97328: #endif
! 97329:
! 97330: #undef $ac_func
! 97331:
! 97332: /* Override any GCC internal prototype to avoid an error.
! 97333: Use char because int might match the return type of a GCC
! 97334: builtin and then its argument prototype would still apply. */
! 97335: #ifdef __cplusplus
! 97336: extern "C"
! 97337: #endif
! 97338: char $ac_func ();
! 97339: /* The GNU C library defines this for functions which it implements
! 97340: to always fail with ENOSYS. Some functions are actually named
! 97341: something starting with __ and the normal name is an alias. */
! 97342: #if defined __stub_$ac_func || defined __stub___$ac_func
! 97343: choke me
! 97344: #endif
! 97345:
! 97346: int
! 97347: main ()
! 97348: {
! 97349: return $ac_func ();
! 97350: ;
! 97351: return 0;
! 97352: }
! 97353: _ACEOF
! 97354: rm -f conftest.$ac_objext conftest$ac_exeext
! 97355: if { (ac_try="$ac_link"
! 97356: case "(($ac_try" in
! 97357: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 97358: *) ac_try_echo=$ac_try;;
! 97359: esac
! 97360: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 97361: (eval "$ac_link") 2>conftest.er1
! 97362: ac_status=$?
! 97363: grep -v '^ *+' conftest.er1 >conftest.err
! 97364: rm -f conftest.er1
! 97365: cat conftest.err >&5
! 97366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 97367: (exit $ac_status); } && {
! 97368: test -z "$ac_c_werror_flag" ||
! 97369: test ! -s conftest.err
! 97370: } && test -s conftest$ac_exeext &&
! 97371: $as_test_x conftest$ac_exeext; then
! 97372: eval "$as_ac_var=yes"
! 97373: else
! 97374: echo "$as_me: failed program was:" >&5
! 97375: sed 's/^/| /' conftest.$ac_ext >&5
! 97376:
! 97377: eval "$as_ac_var=no"
! 97378: fi
! 97379:
! 97380: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 97381: conftest$ac_exeext conftest.$ac_ext
! 97382: fi
! 97383: ac_res=`eval echo '${'$as_ac_var'}'`
! 97384: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 97385: echo "${ECHO_T}$ac_res" >&6; }
! 97386: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 97387: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 97388: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 97389: _ACEOF
97390:
97391: fi
97392: done
97393:
1.1.1.3 ! misho 97394:
! 97395: for ac_header in time.h
! 97396: do
! 97397: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 97398: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 97399: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 97400: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 97401: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 97402: echo $ECHO_N "(cached) $ECHO_C" >&6
! 97403: fi
! 97404: ac_res=`eval echo '${'$as_ac_Header'}'`
! 97405: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 97406: echo "${ECHO_T}$ac_res" >&6; }
! 97407: else
! 97408: # Is the header compilable?
! 97409: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 97410: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 97411: cat >conftest.$ac_ext <<_ACEOF
! 97412: /* confdefs.h. */
! 97413: _ACEOF
! 97414: cat confdefs.h >>conftest.$ac_ext
! 97415: cat >>conftest.$ac_ext <<_ACEOF
! 97416: /* end confdefs.h. */
! 97417: $ac_includes_default
! 97418: #include <$ac_header>
! 97419: _ACEOF
! 97420: rm -f conftest.$ac_objext
! 97421: if { (ac_try="$ac_compile"
! 97422: case "(($ac_try" in
! 97423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 97424: *) ac_try_echo=$ac_try;;
! 97425: esac
! 97426: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 97427: (eval "$ac_compile") 2>conftest.er1
! 97428: ac_status=$?
! 97429: grep -v '^ *+' conftest.er1 >conftest.err
! 97430: rm -f conftest.er1
! 97431: cat conftest.err >&5
! 97432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 97433: (exit $ac_status); } && {
! 97434: test -z "$ac_c_werror_flag" ||
! 97435: test ! -s conftest.err
! 97436: } && test -s conftest.$ac_objext; then
! 97437: ac_header_compiler=yes
! 97438: else
! 97439: echo "$as_me: failed program was:" >&5
! 97440: sed 's/^/| /' conftest.$ac_ext >&5
! 97441:
! 97442: ac_header_compiler=no
! 97443: fi
! 97444:
! 97445: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 97446: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 97447: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 97448:
! 97449: # Is the header present?
! 97450: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 97451: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 97452: cat >conftest.$ac_ext <<_ACEOF
! 97453: /* confdefs.h. */
! 97454: _ACEOF
! 97455: cat confdefs.h >>conftest.$ac_ext
! 97456: cat >>conftest.$ac_ext <<_ACEOF
! 97457: /* end confdefs.h. */
! 97458: #include <$ac_header>
! 97459: _ACEOF
! 97460: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 97461: case "(($ac_try" in
! 97462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 97463: *) ac_try_echo=$ac_try;;
! 97464: esac
! 97465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 97466: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 97467: ac_status=$?
! 97468: grep -v '^ *+' conftest.er1 >conftest.err
! 97469: rm -f conftest.er1
! 97470: cat conftest.err >&5
! 97471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 97472: (exit $ac_status); } >/dev/null && {
! 97473: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 97474: test ! -s conftest.err
! 97475: }; then
! 97476: ac_header_preproc=yes
! 97477: else
! 97478: echo "$as_me: failed program was:" >&5
! 97479: sed 's/^/| /' conftest.$ac_ext >&5
! 97480:
! 97481: ac_header_preproc=no
! 97482: fi
! 97483:
! 97484: rm -f conftest.err conftest.$ac_ext
! 97485: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 97486: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 97487:
! 97488: # So? What about this header?
! 97489: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 97490: yes:no: )
! 97491: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 97492: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 97493: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 97494: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 97495: ac_header_preproc=yes
! 97496: ;;
! 97497: no:yes:* )
! 97498: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 97499: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 97500: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 97501: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 97502: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 97503: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 97504: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 97505: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 97506: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 97507: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 97508: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 97509: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 97510:
! 97511: ;;
! 97512: esac
! 97513: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 97514: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 97515: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 97516: echo $ECHO_N "(cached) $ECHO_C" >&6
! 97517: else
! 97518: eval "$as_ac_Header=\$ac_header_preproc"
! 97519: fi
! 97520: ac_res=`eval echo '${'$as_ac_Header'}'`
! 97521: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 97522: echo "${ECHO_T}$ac_res" >&6; }
! 97523:
! 97524: fi
! 97525: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 97526: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 97527: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 97528: _ACEOF
97529:
97530: fi
97531:
97532: done
97533:
97534: fi
97535:
97536:
97537: save_old_LDFLAGS=$LDFLAGS
97538: ac_stuff=""
97539:
97540: save_ext_shared=$ext_shared
97541: ext_shared=yes
97542:
97543: for ac_i in $ac_stuff; do
97544: case $ac_i in
97545: -pthread)
97546: if test "$ext_shared" = "yes"; then
97547: LDFLAGS="$LDFLAGS -pthread"
97548: else
97549:
97550:
97551: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
97552:
97553: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
97554: if test -n "$unique" && test "`eval $cmd`" = "" ; then
97555: eval "EXTRA_LDFLAGS$unique=set"
97556: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
97557: fi
97558:
97559: fi
97560: ;;
97561: -l*)
97562: ac_ii=`echo $ac_i|cut -c 3-`
97563:
97564:
97565: case $ac_ii in
97566: c|c_r|pthread*) ;;
97567: *)
97568: if test "$ext_shared" = "yes"; then
97569: LDFLAGS="$LDFLAGS -l$ac_ii"
97570: else
97571:
97572:
97573: case $ac_ii in
97574: c|c_r|pthread*) ;;
97575: *)
97576: LIBS="$LIBS -l$ac_ii"
97577: ;;
97578: esac
97579:
97580:
97581: fi
97582: ;;
97583: esac
97584:
97585:
97586: ;;
97587: -L*)
97588: ac_ii=`echo $ac_i|cut -c 3-`
97589:
97590: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
97591:
97592: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
97593: ai_p=$ac_ii
97594: else
97595:
97596: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
97597:
97598: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
97599: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
97600: fi
97601:
97602:
97603: if test "$ext_shared" = "yes"; then
97604: LDFLAGS="-L$ai_p $LDFLAGS"
97605: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
97606: else
97607:
97608:
97609:
97610: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97611:
97612: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
97613: if test -n "$unique" && test "`eval $cmd`" = "" ; then
97614: eval "LIBPATH$unique=set"
97615:
97616: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
97617: LDFLAGS="$LDFLAGS -L$ai_p"
97618: PHP_RPATHS="$PHP_RPATHS $ai_p"
97619:
97620: fi
97621:
97622:
97623: fi
97624:
97625: fi
97626:
97627: ;;
97628: esac
97629: done
97630:
1.1.1.3 ! misho 97631: { echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
! 97632: echo $ECHO_N "checking for fdatasync in -lrt... $ECHO_C" >&6; }
! 97633: if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
! 97634: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 97635: else
97636: ac_check_lib_save_LIBS=$LIBS
97637: LIBS="-lrt $LIBS"
1.1.1.3 ! misho 97638: cat >conftest.$ac_ext <<_ACEOF
! 97639: /* confdefs.h. */
! 97640: _ACEOF
! 97641: cat confdefs.h >>conftest.$ac_ext
! 97642: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 97643: /* end confdefs.h. */
97644:
97645: /* Override any GCC internal prototype to avoid an error.
97646: Use char because int might match the return type of a GCC
97647: builtin and then its argument prototype would still apply. */
97648: #ifdef __cplusplus
97649: extern "C"
97650: #endif
97651: char fdatasync ();
97652: int
97653: main ()
97654: {
97655: return fdatasync ();
97656: ;
97657: return 0;
97658: }
97659: _ACEOF
1.1.1.3 ! misho 97660: rm -f conftest.$ac_objext conftest$ac_exeext
! 97661: if { (ac_try="$ac_link"
! 97662: case "(($ac_try" in
! 97663: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 97664: *) ac_try_echo=$ac_try;;
! 97665: esac
! 97666: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 97667: (eval "$ac_link") 2>conftest.er1
! 97668: ac_status=$?
! 97669: grep -v '^ *+' conftest.er1 >conftest.err
! 97670: rm -f conftest.er1
! 97671: cat conftest.err >&5
! 97672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 97673: (exit $ac_status); } && {
! 97674: test -z "$ac_c_werror_flag" ||
! 97675: test ! -s conftest.err
! 97676: } && test -s conftest$ac_exeext &&
! 97677: $as_test_x conftest$ac_exeext; then
1.1 misho 97678: ac_cv_lib_rt_fdatasync=yes
97679: else
1.1.1.3 ! misho 97680: echo "$as_me: failed program was:" >&5
! 97681: sed 's/^/| /' conftest.$ac_ext >&5
! 97682:
! 97683: ac_cv_lib_rt_fdatasync=no
1.1 misho 97684: fi
1.1.1.3 ! misho 97685:
! 97686: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 97687: conftest$ac_exeext conftest.$ac_ext
1.1 misho 97688: LIBS=$ac_check_lib_save_LIBS
97689: fi
1.1.1.3 ! misho 97690: { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
! 97691: echo "${ECHO_T}$ac_cv_lib_rt_fdatasync" >&6; }
! 97692: if test $ac_cv_lib_rt_fdatasync = yes; then
1.1 misho 97693:
97694: LDFLAGS=$save_old_LDFLAGS
97695: ext_shared=$save_ext_shared
97696:
97697:
97698: case rt in
97699: c|c_r|pthread*) ;;
97700: *)
97701: if test "$ext_shared" = "yes"; then
97702: PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD"
97703: else
97704:
97705:
97706: case rt in
97707: c|c_r|pthread*) ;;
97708: *)
97709: LIBS="-lrt $LIBS"
97710: ;;
97711: esac
97712:
97713:
97714: fi
97715: ;;
97716: esac
97717:
97718:
97719:
97720: else
97721:
97722: LDFLAGS=$save_old_LDFLAGS
97723: ext_shared=$save_ext_shared
97724: unset ac_cv_lib_rt_fdatasync
97725:
97726:
97727: fi
97728:
97729:
97730:
97731:
97732: am_i_shared=$PHP_PDO_SQLITE_SHARED
97733: is_it_shared=$PHP_PDO_SHARED
97734: is_it_enabled=$PHP_PDO
97735: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 97736: { { echo "$as_me:$LINENO: error:
! 97737: You've configured extension pdo_sqlite to build statically, but it
! 97738: depends on extension pdo, which you've configured to build shared.
! 97739: You either need to build pdo_sqlite shared or build pdo statically for the
! 97740: build to be successful.
! 97741: " >&5
! 97742: echo "$as_me: error:
1.1 misho 97743: You've configured extension pdo_sqlite to build statically, but it
97744: depends on extension pdo, which you've configured to build shared.
97745: You either need to build pdo_sqlite shared or build pdo statically for the
97746: build to be successful.
1.1.1.3 ! misho 97747: " >&2;}
! 97748: { (exit 1); exit 1; }; }
! 97749: fi
! 97750: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 97751: { { echo "$as_me:$LINENO: error:
! 97752: You've configured extension pdo_sqlite, which depends on extension pdo,
! 97753: but you've either not enabled pdo, or have disabled it.
! 97754: " >&5
! 97755: echo "$as_me: error:
! 97756: You've configured extension pdo_sqlite, which depends on extension pdo,
! 97757: but you've either not enabled pdo, or have disabled it.
! 97758: " >&2;}
! 97759: { (exit 1); exit 1; }; }
1.1 misho 97760: fi
97761:
97762:
97763: fi
97764:
97765:
97766:
97767: php_with_pgsql=no
97768:
1.1.1.3 ! misho 97769: { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
! 97770: echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
1.1 misho 97771:
97772: # Check whether --with-pgsql was given.
1.1.1.3 ! misho 97773: if test "${with_pgsql+set}" = set; then
1.1 misho 97774: withval=$with_pgsql; PHP_PGSQL=$withval
97775: else
97776:
97777: PHP_PGSQL=no
97778: test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL
97779:
97780: fi
97781:
97782:
97783:
97784: ext_output="yes, shared"
97785: ext_shared=yes
97786: case $PHP_PGSQL in
97787: shared,*)
97788: PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'`
97789: ;;
97790: shared)
97791: PHP_PGSQL=yes
97792: ;;
97793: no)
97794: ext_output=no
97795: ext_shared=no
97796: ;;
97797: *)
97798: ext_output=yes
97799: ext_shared=no
97800: ;;
97801: esac
97802:
97803:
97804:
1.1.1.3 ! misho 97805: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 97806: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 97807:
97808:
97809:
97810:
97811: if test "$PHP_PGSQL" != "no"; then
97812:
97813: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
97814: PGSQL_INCLUDE=$PGSQL_INCLUDE
97815: else
97816:
97817: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
97818:
97819: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
97820: PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
97821: fi
97822:
97823:
1.1.1.3 ! misho 97824: { echo "$as_me:$LINENO: checking for pg_config" >&5
! 97825: echo $ECHO_N "checking for pg_config... $ECHO_C" >&6; }
1.1 misho 97826: for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
97827: if test -x $i/pg_config; then
97828: PG_CONFIG="$i/pg_config"
97829: break;
97830: fi
97831: done
97832:
97833: if test -n "$PG_CONFIG"; then
1.1.1.3 ! misho 97834: { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
! 97835: echo "${ECHO_T}$PG_CONFIG" >&6; }
1.1 misho 97836: PGSQL_INCLUDE=`$PG_CONFIG --includedir`
97837: PGSQL_LIBDIR=`$PG_CONFIG --libdir`
97838: if test -r "$PGSQL_INCLUDE/pg_config.h"; then
97839:
1.1.1.3 ! misho 97840: cat >>confdefs.h <<\_ACEOF
! 97841: #define HAVE_PG_CONFIG_H 1
! 97842: _ACEOF
1.1 misho 97843:
97844: fi
97845: else
1.1.1.3 ! misho 97846: { echo "$as_me:$LINENO: result: not found" >&5
! 97847: echo "${ECHO_T}not found" >&6; }
1.1 misho 97848: if test "$PHP_PGSQL" = "yes"; then
97849: PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
97850: else
97851: PGSQL_SEARCH_PATHS=$PHP_PGSQL
97852: fi
97853:
97854: for i in $PGSQL_SEARCH_PATHS; do
97855: for j in include include/pgsql include/postgres include/postgresql ""; do
97856: if test -r "$i/$j/libpq-fe.h"; then
97857: PGSQL_INC_BASE=$i
97858: PGSQL_INCLUDE=$i/$j
97859: if test -r "$i/$j/pg_config.h"; then
97860:
1.1.1.3 ! misho 97861: cat >>confdefs.h <<\_ACEOF
! 97862: #define HAVE_PG_CONFIG_H 1
! 97863: _ACEOF
1.1 misho 97864:
97865: fi
97866: fi
97867: done
97868:
97869: for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
97870: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
97871: PGSQL_LIBDIR=$i/$j
97872: fi
97873: done
97874: done
97875: fi
97876:
97877: if test -z "$PGSQL_INCLUDE"; then
1.1.1.3 ! misho 97878: { { echo "$as_me:$LINENO: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&5
! 97879: echo "$as_me: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&2;}
! 97880: { (exit 1); exit 1; }; }
1.1 misho 97881: fi
97882:
97883: if test -z "$PGSQL_LIBDIR"; then
1.1.1.3 ! misho 97884: { { echo "$as_me:$LINENO: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&5
! 97885: echo "$as_me: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&2;}
! 97886: { (exit 1); exit 1; }; }
1.1 misho 97887: fi
97888:
97889: if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
1.1.1.3 ! misho 97890: { { echo "$as_me:$LINENO: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&5
! 97891: echo "$as_me: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&2;}
! 97892: { (exit 1); exit 1; }; }
1.1 misho 97893: fi
97894:
97895:
1.1.1.3 ! misho 97896: cat >>confdefs.h <<\_ACEOF
! 97897: #define HAVE_PGSQL 1
! 97898: _ACEOF
1.1 misho 97899:
97900: old_LIBS=$LIBS
97901: old_LDFLAGS=$LDFLAGS
97902: LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
1.1.1.3 ! misho 97903: { echo "$as_me:$LINENO: checking for PQescapeString in -lpq" >&5
! 97904: echo $ECHO_N "checking for PQescapeString in -lpq... $ECHO_C" >&6; }
! 97905: if test "${ac_cv_lib_pq_PQescapeString+set}" = set; then
! 97906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 97907: else
97908: ac_check_lib_save_LIBS=$LIBS
97909: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 97910: cat >conftest.$ac_ext <<_ACEOF
! 97911: /* confdefs.h. */
! 97912: _ACEOF
! 97913: cat confdefs.h >>conftest.$ac_ext
! 97914: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 97915: /* end confdefs.h. */
97916:
97917: /* Override any GCC internal prototype to avoid an error.
97918: Use char because int might match the return type of a GCC
97919: builtin and then its argument prototype would still apply. */
97920: #ifdef __cplusplus
97921: extern "C"
97922: #endif
97923: char PQescapeString ();
97924: int
97925: main ()
97926: {
97927: return PQescapeString ();
97928: ;
97929: return 0;
97930: }
97931: _ACEOF
1.1.1.3 ! misho 97932: rm -f conftest.$ac_objext conftest$ac_exeext
! 97933: if { (ac_try="$ac_link"
! 97934: case "(($ac_try" in
! 97935: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 97936: *) ac_try_echo=$ac_try;;
! 97937: esac
! 97938: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 97939: (eval "$ac_link") 2>conftest.er1
! 97940: ac_status=$?
! 97941: grep -v '^ *+' conftest.er1 >conftest.err
! 97942: rm -f conftest.er1
! 97943: cat conftest.err >&5
! 97944: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 97945: (exit $ac_status); } && {
! 97946: test -z "$ac_c_werror_flag" ||
! 97947: test ! -s conftest.err
! 97948: } && test -s conftest$ac_exeext &&
! 97949: $as_test_x conftest$ac_exeext; then
1.1 misho 97950: ac_cv_lib_pq_PQescapeString=yes
97951: else
1.1.1.3 ! misho 97952: echo "$as_me: failed program was:" >&5
! 97953: sed 's/^/| /' conftest.$ac_ext >&5
! 97954:
! 97955: ac_cv_lib_pq_PQescapeString=no
1.1 misho 97956: fi
1.1.1.3 ! misho 97957:
! 97958: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 97959: conftest$ac_exeext conftest.$ac_ext
1.1 misho 97960: LIBS=$ac_check_lib_save_LIBS
97961: fi
1.1.1.3 ! misho 97962: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeString" >&5
! 97963: echo "${ECHO_T}$ac_cv_lib_pq_PQescapeString" >&6; }
! 97964: if test $ac_cv_lib_pq_PQescapeString = yes; then
1.1 misho 97965:
1.1.1.3 ! misho 97966: cat >>confdefs.h <<\_ACEOF
! 97967: #define HAVE_PQESCAPE 1
! 97968: _ACEOF
1.1 misho 97969:
97970: fi
97971:
1.1.1.3 ! misho 97972: { echo "$as_me:$LINENO: checking for PQunescapeBytea in -lpq" >&5
! 97973: echo $ECHO_N "checking for PQunescapeBytea in -lpq... $ECHO_C" >&6; }
! 97974: if test "${ac_cv_lib_pq_PQunescapeBytea+set}" = set; then
! 97975: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 97976: else
97977: ac_check_lib_save_LIBS=$LIBS
97978: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 97979: cat >conftest.$ac_ext <<_ACEOF
! 97980: /* confdefs.h. */
! 97981: _ACEOF
! 97982: cat confdefs.h >>conftest.$ac_ext
! 97983: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 97984: /* end confdefs.h. */
97985:
97986: /* Override any GCC internal prototype to avoid an error.
97987: Use char because int might match the return type of a GCC
97988: builtin and then its argument prototype would still apply. */
97989: #ifdef __cplusplus
97990: extern "C"
97991: #endif
97992: char PQunescapeBytea ();
97993: int
97994: main ()
97995: {
97996: return PQunescapeBytea ();
97997: ;
97998: return 0;
97999: }
98000: _ACEOF
1.1.1.3 ! misho 98001: rm -f conftest.$ac_objext conftest$ac_exeext
! 98002: if { (ac_try="$ac_link"
! 98003: case "(($ac_try" in
! 98004: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98005: *) ac_try_echo=$ac_try;;
! 98006: esac
! 98007: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98008: (eval "$ac_link") 2>conftest.er1
! 98009: ac_status=$?
! 98010: grep -v '^ *+' conftest.er1 >conftest.err
! 98011: rm -f conftest.er1
! 98012: cat conftest.err >&5
! 98013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98014: (exit $ac_status); } && {
! 98015: test -z "$ac_c_werror_flag" ||
! 98016: test ! -s conftest.err
! 98017: } && test -s conftest$ac_exeext &&
! 98018: $as_test_x conftest$ac_exeext; then
1.1 misho 98019: ac_cv_lib_pq_PQunescapeBytea=yes
98020: else
1.1.1.3 ! misho 98021: echo "$as_me: failed program was:" >&5
! 98022: sed 's/^/| /' conftest.$ac_ext >&5
! 98023:
! 98024: ac_cv_lib_pq_PQunescapeBytea=no
1.1 misho 98025: fi
1.1.1.3 ! misho 98026:
! 98027: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98028: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98029: LIBS=$ac_check_lib_save_LIBS
98030: fi
1.1.1.3 ! misho 98031: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQunescapeBytea" >&5
! 98032: echo "${ECHO_T}$ac_cv_lib_pq_PQunescapeBytea" >&6; }
! 98033: if test $ac_cv_lib_pq_PQunescapeBytea = yes; then
1.1 misho 98034:
1.1.1.3 ! misho 98035: cat >>confdefs.h <<\_ACEOF
! 98036: #define HAVE_PQUNESCAPEBYTEA 1
! 98037: _ACEOF
1.1 misho 98038:
98039: fi
98040:
1.1.1.3 ! misho 98041: { echo "$as_me:$LINENO: checking for PQsetnonblocking in -lpq" >&5
! 98042: echo $ECHO_N "checking for PQsetnonblocking in -lpq... $ECHO_C" >&6; }
! 98043: if test "${ac_cv_lib_pq_PQsetnonblocking+set}" = set; then
! 98044: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98045: else
98046: ac_check_lib_save_LIBS=$LIBS
98047: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98048: cat >conftest.$ac_ext <<_ACEOF
! 98049: /* confdefs.h. */
! 98050: _ACEOF
! 98051: cat confdefs.h >>conftest.$ac_ext
! 98052: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98053: /* end confdefs.h. */
98054:
98055: /* Override any GCC internal prototype to avoid an error.
98056: Use char because int might match the return type of a GCC
98057: builtin and then its argument prototype would still apply. */
98058: #ifdef __cplusplus
98059: extern "C"
98060: #endif
98061: char PQsetnonblocking ();
98062: int
98063: main ()
98064: {
98065: return PQsetnonblocking ();
98066: ;
98067: return 0;
98068: }
98069: _ACEOF
1.1.1.3 ! misho 98070: rm -f conftest.$ac_objext conftest$ac_exeext
! 98071: if { (ac_try="$ac_link"
! 98072: case "(($ac_try" in
! 98073: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98074: *) ac_try_echo=$ac_try;;
! 98075: esac
! 98076: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98077: (eval "$ac_link") 2>conftest.er1
! 98078: ac_status=$?
! 98079: grep -v '^ *+' conftest.er1 >conftest.err
! 98080: rm -f conftest.er1
! 98081: cat conftest.err >&5
! 98082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98083: (exit $ac_status); } && {
! 98084: test -z "$ac_c_werror_flag" ||
! 98085: test ! -s conftest.err
! 98086: } && test -s conftest$ac_exeext &&
! 98087: $as_test_x conftest$ac_exeext; then
1.1 misho 98088: ac_cv_lib_pq_PQsetnonblocking=yes
98089: else
1.1.1.3 ! misho 98090: echo "$as_me: failed program was:" >&5
! 98091: sed 's/^/| /' conftest.$ac_ext >&5
! 98092:
! 98093: ac_cv_lib_pq_PQsetnonblocking=no
1.1 misho 98094: fi
1.1.1.3 ! misho 98095:
! 98096: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98097: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98098: LIBS=$ac_check_lib_save_LIBS
98099: fi
1.1.1.3 ! misho 98100: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetnonblocking" >&5
! 98101: echo "${ECHO_T}$ac_cv_lib_pq_PQsetnonblocking" >&6; }
! 98102: if test $ac_cv_lib_pq_PQsetnonblocking = yes; then
1.1 misho 98103:
1.1.1.3 ! misho 98104: cat >>confdefs.h <<\_ACEOF
! 98105: #define HAVE_PQSETNONBLOCKING 1
! 98106: _ACEOF
1.1 misho 98107:
98108: fi
98109:
1.1.1.3 ! misho 98110: { echo "$as_me:$LINENO: checking for PQcmdTuples in -lpq" >&5
! 98111: echo $ECHO_N "checking for PQcmdTuples in -lpq... $ECHO_C" >&6; }
! 98112: if test "${ac_cv_lib_pq_PQcmdTuples+set}" = set; then
! 98113: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98114: else
98115: ac_check_lib_save_LIBS=$LIBS
98116: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98117: cat >conftest.$ac_ext <<_ACEOF
! 98118: /* confdefs.h. */
! 98119: _ACEOF
! 98120: cat confdefs.h >>conftest.$ac_ext
! 98121: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98122: /* end confdefs.h. */
98123:
98124: /* Override any GCC internal prototype to avoid an error.
98125: Use char because int might match the return type of a GCC
98126: builtin and then its argument prototype would still apply. */
98127: #ifdef __cplusplus
98128: extern "C"
98129: #endif
98130: char PQcmdTuples ();
98131: int
98132: main ()
98133: {
98134: return PQcmdTuples ();
98135: ;
98136: return 0;
98137: }
98138: _ACEOF
1.1.1.3 ! misho 98139: rm -f conftest.$ac_objext conftest$ac_exeext
! 98140: if { (ac_try="$ac_link"
! 98141: case "(($ac_try" in
! 98142: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98143: *) ac_try_echo=$ac_try;;
! 98144: esac
! 98145: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98146: (eval "$ac_link") 2>conftest.er1
! 98147: ac_status=$?
! 98148: grep -v '^ *+' conftest.er1 >conftest.err
! 98149: rm -f conftest.er1
! 98150: cat conftest.err >&5
! 98151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98152: (exit $ac_status); } && {
! 98153: test -z "$ac_c_werror_flag" ||
! 98154: test ! -s conftest.err
! 98155: } && test -s conftest$ac_exeext &&
! 98156: $as_test_x conftest$ac_exeext; then
1.1 misho 98157: ac_cv_lib_pq_PQcmdTuples=yes
98158: else
1.1.1.3 ! misho 98159: echo "$as_me: failed program was:" >&5
! 98160: sed 's/^/| /' conftest.$ac_ext >&5
! 98161:
! 98162: ac_cv_lib_pq_PQcmdTuples=no
1.1 misho 98163: fi
1.1.1.3 ! misho 98164:
! 98165: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98166: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98167: LIBS=$ac_check_lib_save_LIBS
98168: fi
1.1.1.3 ! misho 98169: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQcmdTuples" >&5
! 98170: echo "${ECHO_T}$ac_cv_lib_pq_PQcmdTuples" >&6; }
! 98171: if test $ac_cv_lib_pq_PQcmdTuples = yes; then
1.1 misho 98172:
1.1.1.3 ! misho 98173: cat >>confdefs.h <<\_ACEOF
! 98174: #define HAVE_PQCMDTUPLES 1
! 98175: _ACEOF
1.1 misho 98176:
98177: fi
98178:
1.1.1.3 ! misho 98179: { echo "$as_me:$LINENO: checking for PQoidValue in -lpq" >&5
! 98180: echo $ECHO_N "checking for PQoidValue in -lpq... $ECHO_C" >&6; }
! 98181: if test "${ac_cv_lib_pq_PQoidValue+set}" = set; then
! 98182: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98183: else
98184: ac_check_lib_save_LIBS=$LIBS
98185: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98186: cat >conftest.$ac_ext <<_ACEOF
! 98187: /* confdefs.h. */
! 98188: _ACEOF
! 98189: cat confdefs.h >>conftest.$ac_ext
! 98190: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98191: /* end confdefs.h. */
98192:
98193: /* Override any GCC internal prototype to avoid an error.
98194: Use char because int might match the return type of a GCC
98195: builtin and then its argument prototype would still apply. */
98196: #ifdef __cplusplus
98197: extern "C"
98198: #endif
98199: char PQoidValue ();
98200: int
98201: main ()
98202: {
98203: return PQoidValue ();
98204: ;
98205: return 0;
98206: }
98207: _ACEOF
1.1.1.3 ! misho 98208: rm -f conftest.$ac_objext conftest$ac_exeext
! 98209: if { (ac_try="$ac_link"
! 98210: case "(($ac_try" in
! 98211: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98212: *) ac_try_echo=$ac_try;;
! 98213: esac
! 98214: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98215: (eval "$ac_link") 2>conftest.er1
! 98216: ac_status=$?
! 98217: grep -v '^ *+' conftest.er1 >conftest.err
! 98218: rm -f conftest.er1
! 98219: cat conftest.err >&5
! 98220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98221: (exit $ac_status); } && {
! 98222: test -z "$ac_c_werror_flag" ||
! 98223: test ! -s conftest.err
! 98224: } && test -s conftest$ac_exeext &&
! 98225: $as_test_x conftest$ac_exeext; then
1.1 misho 98226: ac_cv_lib_pq_PQoidValue=yes
98227: else
1.1.1.3 ! misho 98228: echo "$as_me: failed program was:" >&5
! 98229: sed 's/^/| /' conftest.$ac_ext >&5
! 98230:
! 98231: ac_cv_lib_pq_PQoidValue=no
1.1 misho 98232: fi
1.1.1.3 ! misho 98233:
! 98234: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98235: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98236: LIBS=$ac_check_lib_save_LIBS
98237: fi
1.1.1.3 ! misho 98238: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQoidValue" >&5
! 98239: echo "${ECHO_T}$ac_cv_lib_pq_PQoidValue" >&6; }
! 98240: if test $ac_cv_lib_pq_PQoidValue = yes; then
1.1 misho 98241:
1.1.1.3 ! misho 98242: cat >>confdefs.h <<\_ACEOF
! 98243: #define HAVE_PQOIDVALUE 1
! 98244: _ACEOF
1.1 misho 98245:
98246: fi
98247:
1.1.1.3 ! misho 98248: { echo "$as_me:$LINENO: checking for PQclientEncoding in -lpq" >&5
! 98249: echo $ECHO_N "checking for PQclientEncoding in -lpq... $ECHO_C" >&6; }
! 98250: if test "${ac_cv_lib_pq_PQclientEncoding+set}" = set; then
! 98251: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98252: else
98253: ac_check_lib_save_LIBS=$LIBS
98254: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98255: cat >conftest.$ac_ext <<_ACEOF
! 98256: /* confdefs.h. */
! 98257: _ACEOF
! 98258: cat confdefs.h >>conftest.$ac_ext
! 98259: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98260: /* end confdefs.h. */
98261:
98262: /* Override any GCC internal prototype to avoid an error.
98263: Use char because int might match the return type of a GCC
98264: builtin and then its argument prototype would still apply. */
98265: #ifdef __cplusplus
98266: extern "C"
98267: #endif
98268: char PQclientEncoding ();
98269: int
98270: main ()
98271: {
98272: return PQclientEncoding ();
98273: ;
98274: return 0;
98275: }
98276: _ACEOF
1.1.1.3 ! misho 98277: rm -f conftest.$ac_objext conftest$ac_exeext
! 98278: if { (ac_try="$ac_link"
! 98279: case "(($ac_try" in
! 98280: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98281: *) ac_try_echo=$ac_try;;
! 98282: esac
! 98283: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98284: (eval "$ac_link") 2>conftest.er1
! 98285: ac_status=$?
! 98286: grep -v '^ *+' conftest.er1 >conftest.err
! 98287: rm -f conftest.er1
! 98288: cat conftest.err >&5
! 98289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98290: (exit $ac_status); } && {
! 98291: test -z "$ac_c_werror_flag" ||
! 98292: test ! -s conftest.err
! 98293: } && test -s conftest$ac_exeext &&
! 98294: $as_test_x conftest$ac_exeext; then
1.1 misho 98295: ac_cv_lib_pq_PQclientEncoding=yes
98296: else
1.1.1.3 ! misho 98297: echo "$as_me: failed program was:" >&5
! 98298: sed 's/^/| /' conftest.$ac_ext >&5
! 98299:
! 98300: ac_cv_lib_pq_PQclientEncoding=no
1.1 misho 98301: fi
1.1.1.3 ! misho 98302:
! 98303: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98304: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98305: LIBS=$ac_check_lib_save_LIBS
98306: fi
1.1.1.3 ! misho 98307: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQclientEncoding" >&5
! 98308: echo "${ECHO_T}$ac_cv_lib_pq_PQclientEncoding" >&6; }
! 98309: if test $ac_cv_lib_pq_PQclientEncoding = yes; then
1.1 misho 98310:
1.1.1.3 ! misho 98311: cat >>confdefs.h <<\_ACEOF
! 98312: #define HAVE_PQCLIENTENCODING 1
! 98313: _ACEOF
1.1 misho 98314:
98315: fi
98316:
1.1.1.3 ! misho 98317: { echo "$as_me:$LINENO: checking for PQparameterStatus in -lpq" >&5
! 98318: echo $ECHO_N "checking for PQparameterStatus in -lpq... $ECHO_C" >&6; }
! 98319: if test "${ac_cv_lib_pq_PQparameterStatus+set}" = set; then
! 98320: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98321: else
98322: ac_check_lib_save_LIBS=$LIBS
98323: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98324: cat >conftest.$ac_ext <<_ACEOF
! 98325: /* confdefs.h. */
! 98326: _ACEOF
! 98327: cat confdefs.h >>conftest.$ac_ext
! 98328: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98329: /* end confdefs.h. */
98330:
98331: /* Override any GCC internal prototype to avoid an error.
98332: Use char because int might match the return type of a GCC
98333: builtin and then its argument prototype would still apply. */
98334: #ifdef __cplusplus
98335: extern "C"
98336: #endif
98337: char PQparameterStatus ();
98338: int
98339: main ()
98340: {
98341: return PQparameterStatus ();
98342: ;
98343: return 0;
98344: }
98345: _ACEOF
1.1.1.3 ! misho 98346: rm -f conftest.$ac_objext conftest$ac_exeext
! 98347: if { (ac_try="$ac_link"
! 98348: case "(($ac_try" in
! 98349: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98350: *) ac_try_echo=$ac_try;;
! 98351: esac
! 98352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98353: (eval "$ac_link") 2>conftest.er1
! 98354: ac_status=$?
! 98355: grep -v '^ *+' conftest.er1 >conftest.err
! 98356: rm -f conftest.er1
! 98357: cat conftest.err >&5
! 98358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98359: (exit $ac_status); } && {
! 98360: test -z "$ac_c_werror_flag" ||
! 98361: test ! -s conftest.err
! 98362: } && test -s conftest$ac_exeext &&
! 98363: $as_test_x conftest$ac_exeext; then
1.1 misho 98364: ac_cv_lib_pq_PQparameterStatus=yes
98365: else
1.1.1.3 ! misho 98366: echo "$as_me: failed program was:" >&5
! 98367: sed 's/^/| /' conftest.$ac_ext >&5
! 98368:
! 98369: ac_cv_lib_pq_PQparameterStatus=no
1.1 misho 98370: fi
1.1.1.3 ! misho 98371:
! 98372: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98373: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98374: LIBS=$ac_check_lib_save_LIBS
98375: fi
1.1.1.3 ! misho 98376: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQparameterStatus" >&5
! 98377: echo "${ECHO_T}$ac_cv_lib_pq_PQparameterStatus" >&6; }
! 98378: if test $ac_cv_lib_pq_PQparameterStatus = yes; then
1.1 misho 98379:
1.1.1.3 ! misho 98380: cat >>confdefs.h <<\_ACEOF
! 98381: #define HAVE_PQPARAMETERSTATUS 1
! 98382: _ACEOF
1.1 misho 98383:
98384: fi
98385:
1.1.1.3 ! misho 98386: { echo "$as_me:$LINENO: checking for PQprotocolVersion in -lpq" >&5
! 98387: echo $ECHO_N "checking for PQprotocolVersion in -lpq... $ECHO_C" >&6; }
! 98388: if test "${ac_cv_lib_pq_PQprotocolVersion+set}" = set; then
! 98389: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98390: else
98391: ac_check_lib_save_LIBS=$LIBS
98392: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98393: cat >conftest.$ac_ext <<_ACEOF
! 98394: /* confdefs.h. */
! 98395: _ACEOF
! 98396: cat confdefs.h >>conftest.$ac_ext
! 98397: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98398: /* end confdefs.h. */
98399:
98400: /* Override any GCC internal prototype to avoid an error.
98401: Use char because int might match the return type of a GCC
98402: builtin and then its argument prototype would still apply. */
98403: #ifdef __cplusplus
98404: extern "C"
98405: #endif
98406: char PQprotocolVersion ();
98407: int
98408: main ()
98409: {
98410: return PQprotocolVersion ();
98411: ;
98412: return 0;
98413: }
98414: _ACEOF
1.1.1.3 ! misho 98415: rm -f conftest.$ac_objext conftest$ac_exeext
! 98416: if { (ac_try="$ac_link"
! 98417: case "(($ac_try" in
! 98418: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98419: *) ac_try_echo=$ac_try;;
! 98420: esac
! 98421: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98422: (eval "$ac_link") 2>conftest.er1
! 98423: ac_status=$?
! 98424: grep -v '^ *+' conftest.er1 >conftest.err
! 98425: rm -f conftest.er1
! 98426: cat conftest.err >&5
! 98427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98428: (exit $ac_status); } && {
! 98429: test -z "$ac_c_werror_flag" ||
! 98430: test ! -s conftest.err
! 98431: } && test -s conftest$ac_exeext &&
! 98432: $as_test_x conftest$ac_exeext; then
1.1 misho 98433: ac_cv_lib_pq_PQprotocolVersion=yes
98434: else
1.1.1.3 ! misho 98435: echo "$as_me: failed program was:" >&5
! 98436: sed 's/^/| /' conftest.$ac_ext >&5
! 98437:
! 98438: ac_cv_lib_pq_PQprotocolVersion=no
1.1 misho 98439: fi
1.1.1.3 ! misho 98440:
! 98441: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98442: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98443: LIBS=$ac_check_lib_save_LIBS
98444: fi
1.1.1.3 ! misho 98445: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQprotocolVersion" >&5
! 98446: echo "${ECHO_T}$ac_cv_lib_pq_PQprotocolVersion" >&6; }
! 98447: if test $ac_cv_lib_pq_PQprotocolVersion = yes; then
1.1 misho 98448:
1.1.1.3 ! misho 98449: cat >>confdefs.h <<\_ACEOF
! 98450: #define HAVE_PQPROTOCOLVERSION 1
! 98451: _ACEOF
1.1 misho 98452:
98453: fi
98454:
1.1.1.3 ! misho 98455: { echo "$as_me:$LINENO: checking for PQtransactionStatus in -lpq" >&5
! 98456: echo $ECHO_N "checking for PQtransactionStatus in -lpq... $ECHO_C" >&6; }
! 98457: if test "${ac_cv_lib_pq_PQtransactionStatus+set}" = set; then
! 98458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98459: else
98460: ac_check_lib_save_LIBS=$LIBS
98461: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98462: cat >conftest.$ac_ext <<_ACEOF
! 98463: /* confdefs.h. */
! 98464: _ACEOF
! 98465: cat confdefs.h >>conftest.$ac_ext
! 98466: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98467: /* end confdefs.h. */
98468:
98469: /* Override any GCC internal prototype to avoid an error.
98470: Use char because int might match the return type of a GCC
98471: builtin and then its argument prototype would still apply. */
98472: #ifdef __cplusplus
98473: extern "C"
98474: #endif
98475: char PQtransactionStatus ();
98476: int
98477: main ()
98478: {
98479: return PQtransactionStatus ();
98480: ;
98481: return 0;
98482: }
98483: _ACEOF
1.1.1.3 ! misho 98484: rm -f conftest.$ac_objext conftest$ac_exeext
! 98485: if { (ac_try="$ac_link"
! 98486: case "(($ac_try" in
! 98487: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98488: *) ac_try_echo=$ac_try;;
! 98489: esac
! 98490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98491: (eval "$ac_link") 2>conftest.er1
! 98492: ac_status=$?
! 98493: grep -v '^ *+' conftest.er1 >conftest.err
! 98494: rm -f conftest.er1
! 98495: cat conftest.err >&5
! 98496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98497: (exit $ac_status); } && {
! 98498: test -z "$ac_c_werror_flag" ||
! 98499: test ! -s conftest.err
! 98500: } && test -s conftest$ac_exeext &&
! 98501: $as_test_x conftest$ac_exeext; then
1.1 misho 98502: ac_cv_lib_pq_PQtransactionStatus=yes
98503: else
1.1.1.3 ! misho 98504: echo "$as_me: failed program was:" >&5
! 98505: sed 's/^/| /' conftest.$ac_ext >&5
! 98506:
! 98507: ac_cv_lib_pq_PQtransactionStatus=no
1.1 misho 98508: fi
1.1.1.3 ! misho 98509:
! 98510: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98511: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98512: LIBS=$ac_check_lib_save_LIBS
98513: fi
1.1.1.3 ! misho 98514: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQtransactionStatus" >&5
! 98515: echo "${ECHO_T}$ac_cv_lib_pq_PQtransactionStatus" >&6; }
! 98516: if test $ac_cv_lib_pq_PQtransactionStatus = yes; then
1.1 misho 98517:
1.1.1.3 ! misho 98518: cat >>confdefs.h <<\_ACEOF
! 98519: #define HAVE_PGTRANSACTIONSTATUS 1
! 98520: _ACEOF
1.1 misho 98521:
98522: fi
98523:
1.1.1.3 ! misho 98524: { echo "$as_me:$LINENO: checking for PQexecParams in -lpq" >&5
! 98525: echo $ECHO_N "checking for PQexecParams in -lpq... $ECHO_C" >&6; }
! 98526: if test "${ac_cv_lib_pq_PQexecParams+set}" = set; then
! 98527: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98528: else
98529: ac_check_lib_save_LIBS=$LIBS
98530: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98531: cat >conftest.$ac_ext <<_ACEOF
! 98532: /* confdefs.h. */
! 98533: _ACEOF
! 98534: cat confdefs.h >>conftest.$ac_ext
! 98535: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98536: /* end confdefs.h. */
98537:
98538: /* Override any GCC internal prototype to avoid an error.
98539: Use char because int might match the return type of a GCC
98540: builtin and then its argument prototype would still apply. */
98541: #ifdef __cplusplus
98542: extern "C"
98543: #endif
98544: char PQexecParams ();
98545: int
98546: main ()
98547: {
98548: return PQexecParams ();
98549: ;
98550: return 0;
98551: }
98552: _ACEOF
1.1.1.3 ! misho 98553: rm -f conftest.$ac_objext conftest$ac_exeext
! 98554: if { (ac_try="$ac_link"
! 98555: case "(($ac_try" in
! 98556: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98557: *) ac_try_echo=$ac_try;;
! 98558: esac
! 98559: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98560: (eval "$ac_link") 2>conftest.er1
! 98561: ac_status=$?
! 98562: grep -v '^ *+' conftest.er1 >conftest.err
! 98563: rm -f conftest.er1
! 98564: cat conftest.err >&5
! 98565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98566: (exit $ac_status); } && {
! 98567: test -z "$ac_c_werror_flag" ||
! 98568: test ! -s conftest.err
! 98569: } && test -s conftest$ac_exeext &&
! 98570: $as_test_x conftest$ac_exeext; then
1.1 misho 98571: ac_cv_lib_pq_PQexecParams=yes
98572: else
1.1.1.3 ! misho 98573: echo "$as_me: failed program was:" >&5
! 98574: sed 's/^/| /' conftest.$ac_ext >&5
! 98575:
! 98576: ac_cv_lib_pq_PQexecParams=no
1.1 misho 98577: fi
1.1.1.3 ! misho 98578:
! 98579: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98580: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98581: LIBS=$ac_check_lib_save_LIBS
98582: fi
1.1.1.3 ! misho 98583: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexecParams" >&5
! 98584: echo "${ECHO_T}$ac_cv_lib_pq_PQexecParams" >&6; }
! 98585: if test $ac_cv_lib_pq_PQexecParams = yes; then
1.1 misho 98586:
1.1.1.3 ! misho 98587: cat >>confdefs.h <<\_ACEOF
! 98588: #define HAVE_PQEXECPARAMS 1
! 98589: _ACEOF
1.1 misho 98590:
98591: fi
98592:
1.1.1.3 ! misho 98593: { echo "$as_me:$LINENO: checking for PQprepare in -lpq" >&5
! 98594: echo $ECHO_N "checking for PQprepare in -lpq... $ECHO_C" >&6; }
! 98595: if test "${ac_cv_lib_pq_PQprepare+set}" = set; then
! 98596: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98597: else
98598: ac_check_lib_save_LIBS=$LIBS
98599: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98600: cat >conftest.$ac_ext <<_ACEOF
! 98601: /* confdefs.h. */
! 98602: _ACEOF
! 98603: cat confdefs.h >>conftest.$ac_ext
! 98604: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98605: /* end confdefs.h. */
98606:
98607: /* Override any GCC internal prototype to avoid an error.
98608: Use char because int might match the return type of a GCC
98609: builtin and then its argument prototype would still apply. */
98610: #ifdef __cplusplus
98611: extern "C"
98612: #endif
98613: char PQprepare ();
98614: int
98615: main ()
98616: {
98617: return PQprepare ();
98618: ;
98619: return 0;
98620: }
98621: _ACEOF
1.1.1.3 ! misho 98622: rm -f conftest.$ac_objext conftest$ac_exeext
! 98623: if { (ac_try="$ac_link"
! 98624: case "(($ac_try" in
! 98625: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98626: *) ac_try_echo=$ac_try;;
! 98627: esac
! 98628: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98629: (eval "$ac_link") 2>conftest.er1
! 98630: ac_status=$?
! 98631: grep -v '^ *+' conftest.er1 >conftest.err
! 98632: rm -f conftest.er1
! 98633: cat conftest.err >&5
! 98634: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98635: (exit $ac_status); } && {
! 98636: test -z "$ac_c_werror_flag" ||
! 98637: test ! -s conftest.err
! 98638: } && test -s conftest$ac_exeext &&
! 98639: $as_test_x conftest$ac_exeext; then
1.1 misho 98640: ac_cv_lib_pq_PQprepare=yes
98641: else
1.1.1.3 ! misho 98642: echo "$as_me: failed program was:" >&5
! 98643: sed 's/^/| /' conftest.$ac_ext >&5
! 98644:
! 98645: ac_cv_lib_pq_PQprepare=no
1.1 misho 98646: fi
1.1.1.3 ! misho 98647:
! 98648: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98649: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98650: LIBS=$ac_check_lib_save_LIBS
98651: fi
1.1.1.3 ! misho 98652: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQprepare" >&5
! 98653: echo "${ECHO_T}$ac_cv_lib_pq_PQprepare" >&6; }
! 98654: if test $ac_cv_lib_pq_PQprepare = yes; then
1.1 misho 98655:
1.1.1.3 ! misho 98656: cat >>confdefs.h <<\_ACEOF
! 98657: #define HAVE_PQPREPARE 1
! 98658: _ACEOF
1.1 misho 98659:
98660: fi
98661:
1.1.1.3 ! misho 98662: { echo "$as_me:$LINENO: checking for PQexecPrepared in -lpq" >&5
! 98663: echo $ECHO_N "checking for PQexecPrepared in -lpq... $ECHO_C" >&6; }
! 98664: if test "${ac_cv_lib_pq_PQexecPrepared+set}" = set; then
! 98665: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98666: else
98667: ac_check_lib_save_LIBS=$LIBS
98668: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98669: cat >conftest.$ac_ext <<_ACEOF
! 98670: /* confdefs.h. */
! 98671: _ACEOF
! 98672: cat confdefs.h >>conftest.$ac_ext
! 98673: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98674: /* end confdefs.h. */
98675:
98676: /* Override any GCC internal prototype to avoid an error.
98677: Use char because int might match the return type of a GCC
98678: builtin and then its argument prototype would still apply. */
98679: #ifdef __cplusplus
98680: extern "C"
98681: #endif
98682: char PQexecPrepared ();
98683: int
98684: main ()
98685: {
98686: return PQexecPrepared ();
98687: ;
98688: return 0;
98689: }
98690: _ACEOF
1.1.1.3 ! misho 98691: rm -f conftest.$ac_objext conftest$ac_exeext
! 98692: if { (ac_try="$ac_link"
! 98693: case "(($ac_try" in
! 98694: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98695: *) ac_try_echo=$ac_try;;
! 98696: esac
! 98697: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98698: (eval "$ac_link") 2>conftest.er1
! 98699: ac_status=$?
! 98700: grep -v '^ *+' conftest.er1 >conftest.err
! 98701: rm -f conftest.er1
! 98702: cat conftest.err >&5
! 98703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98704: (exit $ac_status); } && {
! 98705: test -z "$ac_c_werror_flag" ||
! 98706: test ! -s conftest.err
! 98707: } && test -s conftest$ac_exeext &&
! 98708: $as_test_x conftest$ac_exeext; then
1.1 misho 98709: ac_cv_lib_pq_PQexecPrepared=yes
98710: else
1.1.1.3 ! misho 98711: echo "$as_me: failed program was:" >&5
! 98712: sed 's/^/| /' conftest.$ac_ext >&5
! 98713:
! 98714: ac_cv_lib_pq_PQexecPrepared=no
1.1 misho 98715: fi
1.1.1.3 ! misho 98716:
! 98717: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98718: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98719: LIBS=$ac_check_lib_save_LIBS
98720: fi
1.1.1.3 ! misho 98721: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexecPrepared" >&5
! 98722: echo "${ECHO_T}$ac_cv_lib_pq_PQexecPrepared" >&6; }
! 98723: if test $ac_cv_lib_pq_PQexecPrepared = yes; then
1.1 misho 98724:
1.1.1.3 ! misho 98725: cat >>confdefs.h <<\_ACEOF
! 98726: #define HAVE_PQEXECPREPARED 1
! 98727: _ACEOF
1.1 misho 98728:
98729: fi
98730:
1.1.1.3 ! misho 98731: { echo "$as_me:$LINENO: checking for PQresultErrorField in -lpq" >&5
! 98732: echo $ECHO_N "checking for PQresultErrorField in -lpq... $ECHO_C" >&6; }
! 98733: if test "${ac_cv_lib_pq_PQresultErrorField+set}" = set; then
! 98734: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98735: else
98736: ac_check_lib_save_LIBS=$LIBS
98737: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98738: cat >conftest.$ac_ext <<_ACEOF
! 98739: /* confdefs.h. */
! 98740: _ACEOF
! 98741: cat confdefs.h >>conftest.$ac_ext
! 98742: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98743: /* end confdefs.h. */
98744:
98745: /* Override any GCC internal prototype to avoid an error.
98746: Use char because int might match the return type of a GCC
98747: builtin and then its argument prototype would still apply. */
98748: #ifdef __cplusplus
98749: extern "C"
98750: #endif
98751: char PQresultErrorField ();
98752: int
98753: main ()
98754: {
98755: return PQresultErrorField ();
98756: ;
98757: return 0;
98758: }
98759: _ACEOF
1.1.1.3 ! misho 98760: rm -f conftest.$ac_objext conftest$ac_exeext
! 98761: if { (ac_try="$ac_link"
! 98762: case "(($ac_try" in
! 98763: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98764: *) ac_try_echo=$ac_try;;
! 98765: esac
! 98766: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98767: (eval "$ac_link") 2>conftest.er1
! 98768: ac_status=$?
! 98769: grep -v '^ *+' conftest.er1 >conftest.err
! 98770: rm -f conftest.er1
! 98771: cat conftest.err >&5
! 98772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98773: (exit $ac_status); } && {
! 98774: test -z "$ac_c_werror_flag" ||
! 98775: test ! -s conftest.err
! 98776: } && test -s conftest$ac_exeext &&
! 98777: $as_test_x conftest$ac_exeext; then
1.1 misho 98778: ac_cv_lib_pq_PQresultErrorField=yes
98779: else
1.1.1.3 ! misho 98780: echo "$as_me: failed program was:" >&5
! 98781: sed 's/^/| /' conftest.$ac_ext >&5
! 98782:
! 98783: ac_cv_lib_pq_PQresultErrorField=no
1.1 misho 98784: fi
1.1.1.3 ! misho 98785:
! 98786: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98787: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98788: LIBS=$ac_check_lib_save_LIBS
98789: fi
1.1.1.3 ! misho 98790: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQresultErrorField" >&5
! 98791: echo "${ECHO_T}$ac_cv_lib_pq_PQresultErrorField" >&6; }
! 98792: if test $ac_cv_lib_pq_PQresultErrorField = yes; then
1.1 misho 98793:
1.1.1.3 ! misho 98794: cat >>confdefs.h <<\_ACEOF
! 98795: #define HAVE_PQRESULTERRORFIELD 1
! 98796: _ACEOF
1.1 misho 98797:
98798: fi
98799:
1.1.1.3 ! misho 98800: { echo "$as_me:$LINENO: checking for PQsendQueryParams in -lpq" >&5
! 98801: echo $ECHO_N "checking for PQsendQueryParams in -lpq... $ECHO_C" >&6; }
! 98802: if test "${ac_cv_lib_pq_PQsendQueryParams+set}" = set; then
! 98803: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98804: else
98805: ac_check_lib_save_LIBS=$LIBS
98806: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98807: cat >conftest.$ac_ext <<_ACEOF
! 98808: /* confdefs.h. */
! 98809: _ACEOF
! 98810: cat confdefs.h >>conftest.$ac_ext
! 98811: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98812: /* end confdefs.h. */
98813:
98814: /* Override any GCC internal prototype to avoid an error.
98815: Use char because int might match the return type of a GCC
98816: builtin and then its argument prototype would still apply. */
98817: #ifdef __cplusplus
98818: extern "C"
98819: #endif
98820: char PQsendQueryParams ();
98821: int
98822: main ()
98823: {
98824: return PQsendQueryParams ();
98825: ;
98826: return 0;
98827: }
98828: _ACEOF
1.1.1.3 ! misho 98829: rm -f conftest.$ac_objext conftest$ac_exeext
! 98830: if { (ac_try="$ac_link"
! 98831: case "(($ac_try" in
! 98832: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98833: *) ac_try_echo=$ac_try;;
! 98834: esac
! 98835: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98836: (eval "$ac_link") 2>conftest.er1
! 98837: ac_status=$?
! 98838: grep -v '^ *+' conftest.er1 >conftest.err
! 98839: rm -f conftest.er1
! 98840: cat conftest.err >&5
! 98841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98842: (exit $ac_status); } && {
! 98843: test -z "$ac_c_werror_flag" ||
! 98844: test ! -s conftest.err
! 98845: } && test -s conftest$ac_exeext &&
! 98846: $as_test_x conftest$ac_exeext; then
1.1 misho 98847: ac_cv_lib_pq_PQsendQueryParams=yes
98848: else
1.1.1.3 ! misho 98849: echo "$as_me: failed program was:" >&5
! 98850: sed 's/^/| /' conftest.$ac_ext >&5
! 98851:
! 98852: ac_cv_lib_pq_PQsendQueryParams=no
1.1 misho 98853: fi
1.1.1.3 ! misho 98854:
! 98855: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98856: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98857: LIBS=$ac_check_lib_save_LIBS
98858: fi
1.1.1.3 ! misho 98859: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryParams" >&5
! 98860: echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryParams" >&6; }
! 98861: if test $ac_cv_lib_pq_PQsendQueryParams = yes; then
1.1 misho 98862:
1.1.1.3 ! misho 98863: cat >>confdefs.h <<\_ACEOF
! 98864: #define HAVE_PQSENDQUERYPARAMS 1
! 98865: _ACEOF
1.1 misho 98866:
98867: fi
98868:
1.1.1.3 ! misho 98869: { echo "$as_me:$LINENO: checking for PQsendPrepare in -lpq" >&5
! 98870: echo $ECHO_N "checking for PQsendPrepare in -lpq... $ECHO_C" >&6; }
! 98871: if test "${ac_cv_lib_pq_PQsendPrepare+set}" = set; then
! 98872: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98873: else
98874: ac_check_lib_save_LIBS=$LIBS
98875: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98876: cat >conftest.$ac_ext <<_ACEOF
! 98877: /* confdefs.h. */
! 98878: _ACEOF
! 98879: cat confdefs.h >>conftest.$ac_ext
! 98880: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98881: /* end confdefs.h. */
98882:
98883: /* Override any GCC internal prototype to avoid an error.
98884: Use char because int might match the return type of a GCC
98885: builtin and then its argument prototype would still apply. */
98886: #ifdef __cplusplus
98887: extern "C"
98888: #endif
98889: char PQsendPrepare ();
98890: int
98891: main ()
98892: {
98893: return PQsendPrepare ();
98894: ;
98895: return 0;
98896: }
98897: _ACEOF
1.1.1.3 ! misho 98898: rm -f conftest.$ac_objext conftest$ac_exeext
! 98899: if { (ac_try="$ac_link"
! 98900: case "(($ac_try" in
! 98901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98902: *) ac_try_echo=$ac_try;;
! 98903: esac
! 98904: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98905: (eval "$ac_link") 2>conftest.er1
! 98906: ac_status=$?
! 98907: grep -v '^ *+' conftest.er1 >conftest.err
! 98908: rm -f conftest.er1
! 98909: cat conftest.err >&5
! 98910: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98911: (exit $ac_status); } && {
! 98912: test -z "$ac_c_werror_flag" ||
! 98913: test ! -s conftest.err
! 98914: } && test -s conftest$ac_exeext &&
! 98915: $as_test_x conftest$ac_exeext; then
1.1 misho 98916: ac_cv_lib_pq_PQsendPrepare=yes
98917: else
1.1.1.3 ! misho 98918: echo "$as_me: failed program was:" >&5
! 98919: sed 's/^/| /' conftest.$ac_ext >&5
! 98920:
! 98921: ac_cv_lib_pq_PQsendPrepare=no
1.1 misho 98922: fi
1.1.1.3 ! misho 98923:
! 98924: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98925: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98926: LIBS=$ac_check_lib_save_LIBS
98927: fi
1.1.1.3 ! misho 98928: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendPrepare" >&5
! 98929: echo "${ECHO_T}$ac_cv_lib_pq_PQsendPrepare" >&6; }
! 98930: if test $ac_cv_lib_pq_PQsendPrepare = yes; then
1.1 misho 98931:
1.1.1.3 ! misho 98932: cat >>confdefs.h <<\_ACEOF
! 98933: #define HAVE_PQSENDPREPARE 1
! 98934: _ACEOF
1.1 misho 98935:
98936: fi
98937:
1.1.1.3 ! misho 98938: { echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
! 98939: echo $ECHO_N "checking for PQsendQueryPrepared in -lpq... $ECHO_C" >&6; }
! 98940: if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
! 98941: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 98942: else
98943: ac_check_lib_save_LIBS=$LIBS
98944: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 98945: cat >conftest.$ac_ext <<_ACEOF
! 98946: /* confdefs.h. */
! 98947: _ACEOF
! 98948: cat confdefs.h >>conftest.$ac_ext
! 98949: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 98950: /* end confdefs.h. */
98951:
98952: /* Override any GCC internal prototype to avoid an error.
98953: Use char because int might match the return type of a GCC
98954: builtin and then its argument prototype would still apply. */
98955: #ifdef __cplusplus
98956: extern "C"
98957: #endif
98958: char PQsendQueryPrepared ();
98959: int
98960: main ()
98961: {
98962: return PQsendQueryPrepared ();
98963: ;
98964: return 0;
98965: }
98966: _ACEOF
1.1.1.3 ! misho 98967: rm -f conftest.$ac_objext conftest$ac_exeext
! 98968: if { (ac_try="$ac_link"
! 98969: case "(($ac_try" in
! 98970: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 98971: *) ac_try_echo=$ac_try;;
! 98972: esac
! 98973: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 98974: (eval "$ac_link") 2>conftest.er1
! 98975: ac_status=$?
! 98976: grep -v '^ *+' conftest.er1 >conftest.err
! 98977: rm -f conftest.er1
! 98978: cat conftest.err >&5
! 98979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 98980: (exit $ac_status); } && {
! 98981: test -z "$ac_c_werror_flag" ||
! 98982: test ! -s conftest.err
! 98983: } && test -s conftest$ac_exeext &&
! 98984: $as_test_x conftest$ac_exeext; then
1.1 misho 98985: ac_cv_lib_pq_PQsendQueryPrepared=yes
98986: else
1.1.1.3 ! misho 98987: echo "$as_me: failed program was:" >&5
! 98988: sed 's/^/| /' conftest.$ac_ext >&5
! 98989:
! 98990: ac_cv_lib_pq_PQsendQueryPrepared=no
1.1 misho 98991: fi
1.1.1.3 ! misho 98992:
! 98993: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 98994: conftest$ac_exeext conftest.$ac_ext
1.1 misho 98995: LIBS=$ac_check_lib_save_LIBS
98996: fi
1.1.1.3 ! misho 98997: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
! 98998: echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
! 98999: if test $ac_cv_lib_pq_PQsendQueryPrepared = yes; then
1.1 misho 99000:
1.1.1.3 ! misho 99001: cat >>confdefs.h <<\_ACEOF
! 99002: #define HAVE_PQSENDQUERYPREPARED 1
! 99003: _ACEOF
1.1 misho 99004:
99005: fi
99006:
1.1.1.3 ! misho 99007: { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
! 99008: echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
! 99009: if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
! 99010: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99011: else
99012: ac_check_lib_save_LIBS=$LIBS
99013: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99014: cat >conftest.$ac_ext <<_ACEOF
! 99015: /* confdefs.h. */
! 99016: _ACEOF
! 99017: cat confdefs.h >>conftest.$ac_ext
! 99018: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99019: /* end confdefs.h. */
99020:
99021: /* Override any GCC internal prototype to avoid an error.
99022: Use char because int might match the return type of a GCC
99023: builtin and then its argument prototype would still apply. */
99024: #ifdef __cplusplus
99025: extern "C"
99026: #endif
99027: char PQputCopyData ();
99028: int
99029: main ()
99030: {
99031: return PQputCopyData ();
99032: ;
99033: return 0;
99034: }
99035: _ACEOF
1.1.1.3 ! misho 99036: rm -f conftest.$ac_objext conftest$ac_exeext
! 99037: if { (ac_try="$ac_link"
! 99038: case "(($ac_try" in
! 99039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99040: *) ac_try_echo=$ac_try;;
! 99041: esac
! 99042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99043: (eval "$ac_link") 2>conftest.er1
! 99044: ac_status=$?
! 99045: grep -v '^ *+' conftest.er1 >conftest.err
! 99046: rm -f conftest.er1
! 99047: cat conftest.err >&5
! 99048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99049: (exit $ac_status); } && {
! 99050: test -z "$ac_c_werror_flag" ||
! 99051: test ! -s conftest.err
! 99052: } && test -s conftest$ac_exeext &&
! 99053: $as_test_x conftest$ac_exeext; then
1.1 misho 99054: ac_cv_lib_pq_PQputCopyData=yes
99055: else
1.1.1.3 ! misho 99056: echo "$as_me: failed program was:" >&5
! 99057: sed 's/^/| /' conftest.$ac_ext >&5
! 99058:
! 99059: ac_cv_lib_pq_PQputCopyData=no
1.1 misho 99060: fi
1.1.1.3 ! misho 99061:
! 99062: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99063: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99064: LIBS=$ac_check_lib_save_LIBS
99065: fi
1.1.1.3 ! misho 99066: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
! 99067: echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
! 99068: if test $ac_cv_lib_pq_PQputCopyData = yes; then
1.1 misho 99069:
1.1.1.3 ! misho 99070: cat >>confdefs.h <<\_ACEOF
! 99071: #define HAVE_PQPUTCOPYDATA 1
! 99072: _ACEOF
1.1 misho 99073:
99074: fi
99075:
1.1.1.3 ! misho 99076: { echo "$as_me:$LINENO: checking for PQputCopyEnd in -lpq" >&5
! 99077: echo $ECHO_N "checking for PQputCopyEnd in -lpq... $ECHO_C" >&6; }
! 99078: if test "${ac_cv_lib_pq_PQputCopyEnd+set}" = set; then
! 99079: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99080: else
99081: ac_check_lib_save_LIBS=$LIBS
99082: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99083: cat >conftest.$ac_ext <<_ACEOF
! 99084: /* confdefs.h. */
! 99085: _ACEOF
! 99086: cat confdefs.h >>conftest.$ac_ext
! 99087: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99088: /* end confdefs.h. */
99089:
99090: /* Override any GCC internal prototype to avoid an error.
99091: Use char because int might match the return type of a GCC
99092: builtin and then its argument prototype would still apply. */
99093: #ifdef __cplusplus
99094: extern "C"
99095: #endif
99096: char PQputCopyEnd ();
99097: int
99098: main ()
99099: {
99100: return PQputCopyEnd ();
99101: ;
99102: return 0;
99103: }
99104: _ACEOF
1.1.1.3 ! misho 99105: rm -f conftest.$ac_objext conftest$ac_exeext
! 99106: if { (ac_try="$ac_link"
! 99107: case "(($ac_try" in
! 99108: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99109: *) ac_try_echo=$ac_try;;
! 99110: esac
! 99111: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99112: (eval "$ac_link") 2>conftest.er1
! 99113: ac_status=$?
! 99114: grep -v '^ *+' conftest.er1 >conftest.err
! 99115: rm -f conftest.er1
! 99116: cat conftest.err >&5
! 99117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99118: (exit $ac_status); } && {
! 99119: test -z "$ac_c_werror_flag" ||
! 99120: test ! -s conftest.err
! 99121: } && test -s conftest$ac_exeext &&
! 99122: $as_test_x conftest$ac_exeext; then
1.1 misho 99123: ac_cv_lib_pq_PQputCopyEnd=yes
99124: else
1.1.1.3 ! misho 99125: echo "$as_me: failed program was:" >&5
! 99126: sed 's/^/| /' conftest.$ac_ext >&5
! 99127:
! 99128: ac_cv_lib_pq_PQputCopyEnd=no
1.1 misho 99129: fi
1.1.1.3 ! misho 99130:
! 99131: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99132: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99133: LIBS=$ac_check_lib_save_LIBS
99134: fi
1.1.1.3 ! misho 99135: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyEnd" >&5
! 99136: echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyEnd" >&6; }
! 99137: if test $ac_cv_lib_pq_PQputCopyEnd = yes; then
1.1 misho 99138:
1.1.1.3 ! misho 99139: cat >>confdefs.h <<\_ACEOF
! 99140: #define HAVE_PQPUTCOPYEND 1
! 99141: _ACEOF
1.1 misho 99142:
99143: fi
99144:
1.1.1.3 ! misho 99145: { echo "$as_me:$LINENO: checking for PQgetCopyData in -lpq" >&5
! 99146: echo $ECHO_N "checking for PQgetCopyData in -lpq... $ECHO_C" >&6; }
! 99147: if test "${ac_cv_lib_pq_PQgetCopyData+set}" = set; then
! 99148: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99149: else
99150: ac_check_lib_save_LIBS=$LIBS
99151: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99152: cat >conftest.$ac_ext <<_ACEOF
! 99153: /* confdefs.h. */
! 99154: _ACEOF
! 99155: cat confdefs.h >>conftest.$ac_ext
! 99156: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99157: /* end confdefs.h. */
99158:
99159: /* Override any GCC internal prototype to avoid an error.
99160: Use char because int might match the return type of a GCC
99161: builtin and then its argument prototype would still apply. */
99162: #ifdef __cplusplus
99163: extern "C"
99164: #endif
99165: char PQgetCopyData ();
99166: int
99167: main ()
99168: {
99169: return PQgetCopyData ();
99170: ;
99171: return 0;
99172: }
99173: _ACEOF
1.1.1.3 ! misho 99174: rm -f conftest.$ac_objext conftest$ac_exeext
! 99175: if { (ac_try="$ac_link"
! 99176: case "(($ac_try" in
! 99177: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99178: *) ac_try_echo=$ac_try;;
! 99179: esac
! 99180: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99181: (eval "$ac_link") 2>conftest.er1
! 99182: ac_status=$?
! 99183: grep -v '^ *+' conftest.er1 >conftest.err
! 99184: rm -f conftest.er1
! 99185: cat conftest.err >&5
! 99186: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99187: (exit $ac_status); } && {
! 99188: test -z "$ac_c_werror_flag" ||
! 99189: test ! -s conftest.err
! 99190: } && test -s conftest$ac_exeext &&
! 99191: $as_test_x conftest$ac_exeext; then
1.1 misho 99192: ac_cv_lib_pq_PQgetCopyData=yes
99193: else
1.1.1.3 ! misho 99194: echo "$as_me: failed program was:" >&5
! 99195: sed 's/^/| /' conftest.$ac_ext >&5
! 99196:
! 99197: ac_cv_lib_pq_PQgetCopyData=no
1.1 misho 99198: fi
1.1.1.3 ! misho 99199:
! 99200: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99201: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99202: LIBS=$ac_check_lib_save_LIBS
99203: fi
1.1.1.3 ! misho 99204: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQgetCopyData" >&5
! 99205: echo "${ECHO_T}$ac_cv_lib_pq_PQgetCopyData" >&6; }
! 99206: if test $ac_cv_lib_pq_PQgetCopyData = yes; then
1.1 misho 99207:
1.1.1.3 ! misho 99208: cat >>confdefs.h <<\_ACEOF
! 99209: #define HAVE_PQGETCOPYDATA 1
! 99210: _ACEOF
1.1 misho 99211:
99212: fi
99213:
1.1.1.3 ! misho 99214: { echo "$as_me:$LINENO: checking for PQfreemem in -lpq" >&5
! 99215: echo $ECHO_N "checking for PQfreemem in -lpq... $ECHO_C" >&6; }
! 99216: if test "${ac_cv_lib_pq_PQfreemem+set}" = set; then
! 99217: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99218: else
99219: ac_check_lib_save_LIBS=$LIBS
99220: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99221: cat >conftest.$ac_ext <<_ACEOF
! 99222: /* confdefs.h. */
! 99223: _ACEOF
! 99224: cat confdefs.h >>conftest.$ac_ext
! 99225: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99226: /* end confdefs.h. */
99227:
99228: /* Override any GCC internal prototype to avoid an error.
99229: Use char because int might match the return type of a GCC
99230: builtin and then its argument prototype would still apply. */
99231: #ifdef __cplusplus
99232: extern "C"
99233: #endif
99234: char PQfreemem ();
99235: int
99236: main ()
99237: {
99238: return PQfreemem ();
99239: ;
99240: return 0;
99241: }
99242: _ACEOF
1.1.1.3 ! misho 99243: rm -f conftest.$ac_objext conftest$ac_exeext
! 99244: if { (ac_try="$ac_link"
! 99245: case "(($ac_try" in
! 99246: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99247: *) ac_try_echo=$ac_try;;
! 99248: esac
! 99249: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99250: (eval "$ac_link") 2>conftest.er1
! 99251: ac_status=$?
! 99252: grep -v '^ *+' conftest.er1 >conftest.err
! 99253: rm -f conftest.er1
! 99254: cat conftest.err >&5
! 99255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99256: (exit $ac_status); } && {
! 99257: test -z "$ac_c_werror_flag" ||
! 99258: test ! -s conftest.err
! 99259: } && test -s conftest$ac_exeext &&
! 99260: $as_test_x conftest$ac_exeext; then
1.1 misho 99261: ac_cv_lib_pq_PQfreemem=yes
99262: else
1.1.1.3 ! misho 99263: echo "$as_me: failed program was:" >&5
! 99264: sed 's/^/| /' conftest.$ac_ext >&5
! 99265:
! 99266: ac_cv_lib_pq_PQfreemem=no
1.1 misho 99267: fi
1.1.1.3 ! misho 99268:
! 99269: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99270: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99271: LIBS=$ac_check_lib_save_LIBS
99272: fi
1.1.1.3 ! misho 99273: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQfreemem" >&5
! 99274: echo "${ECHO_T}$ac_cv_lib_pq_PQfreemem" >&6; }
! 99275: if test $ac_cv_lib_pq_PQfreemem = yes; then
1.1 misho 99276:
1.1.1.3 ! misho 99277: cat >>confdefs.h <<\_ACEOF
! 99278: #define HAVE_PQFREEMEM 1
! 99279: _ACEOF
1.1 misho 99280:
99281: fi
99282:
1.1.1.3 ! misho 99283: { echo "$as_me:$LINENO: checking for PQsetErrorVerbosity in -lpq" >&5
! 99284: echo $ECHO_N "checking for PQsetErrorVerbosity in -lpq... $ECHO_C" >&6; }
! 99285: if test "${ac_cv_lib_pq_PQsetErrorVerbosity+set}" = set; then
! 99286: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99287: else
99288: ac_check_lib_save_LIBS=$LIBS
99289: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99290: cat >conftest.$ac_ext <<_ACEOF
! 99291: /* confdefs.h. */
! 99292: _ACEOF
! 99293: cat confdefs.h >>conftest.$ac_ext
! 99294: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99295: /* end confdefs.h. */
99296:
99297: /* Override any GCC internal prototype to avoid an error.
99298: Use char because int might match the return type of a GCC
99299: builtin and then its argument prototype would still apply. */
99300: #ifdef __cplusplus
99301: extern "C"
99302: #endif
99303: char PQsetErrorVerbosity ();
99304: int
99305: main ()
99306: {
99307: return PQsetErrorVerbosity ();
99308: ;
99309: return 0;
99310: }
99311: _ACEOF
1.1.1.3 ! misho 99312: rm -f conftest.$ac_objext conftest$ac_exeext
! 99313: if { (ac_try="$ac_link"
! 99314: case "(($ac_try" in
! 99315: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99316: *) ac_try_echo=$ac_try;;
! 99317: esac
! 99318: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99319: (eval "$ac_link") 2>conftest.er1
! 99320: ac_status=$?
! 99321: grep -v '^ *+' conftest.er1 >conftest.err
! 99322: rm -f conftest.er1
! 99323: cat conftest.err >&5
! 99324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99325: (exit $ac_status); } && {
! 99326: test -z "$ac_c_werror_flag" ||
! 99327: test ! -s conftest.err
! 99328: } && test -s conftest$ac_exeext &&
! 99329: $as_test_x conftest$ac_exeext; then
1.1 misho 99330: ac_cv_lib_pq_PQsetErrorVerbosity=yes
99331: else
1.1.1.3 ! misho 99332: echo "$as_me: failed program was:" >&5
! 99333: sed 's/^/| /' conftest.$ac_ext >&5
! 99334:
! 99335: ac_cv_lib_pq_PQsetErrorVerbosity=no
1.1 misho 99336: fi
1.1.1.3 ! misho 99337:
! 99338: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99339: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99340: LIBS=$ac_check_lib_save_LIBS
99341: fi
1.1.1.3 ! misho 99342: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5
! 99343: echo "${ECHO_T}$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; }
! 99344: if test $ac_cv_lib_pq_PQsetErrorVerbosity = yes; then
1.1 misho 99345:
1.1.1.3 ! misho 99346: cat >>confdefs.h <<\_ACEOF
! 99347: #define HAVE_PQSETERRORVERBOSITY 1
! 99348: _ACEOF
1.1 misho 99349:
99350: fi
99351:
1.1.1.3 ! misho 99352: { echo "$as_me:$LINENO: checking for PQftable in -lpq" >&5
! 99353: echo $ECHO_N "checking for PQftable in -lpq... $ECHO_C" >&6; }
! 99354: if test "${ac_cv_lib_pq_PQftable+set}" = set; then
! 99355: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99356: else
99357: ac_check_lib_save_LIBS=$LIBS
99358: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99359: cat >conftest.$ac_ext <<_ACEOF
! 99360: /* confdefs.h. */
! 99361: _ACEOF
! 99362: cat confdefs.h >>conftest.$ac_ext
! 99363: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99364: /* end confdefs.h. */
99365:
99366: /* Override any GCC internal prototype to avoid an error.
99367: Use char because int might match the return type of a GCC
99368: builtin and then its argument prototype would still apply. */
99369: #ifdef __cplusplus
99370: extern "C"
99371: #endif
99372: char PQftable ();
99373: int
99374: main ()
99375: {
99376: return PQftable ();
99377: ;
99378: return 0;
99379: }
99380: _ACEOF
1.1.1.3 ! misho 99381: rm -f conftest.$ac_objext conftest$ac_exeext
! 99382: if { (ac_try="$ac_link"
! 99383: case "(($ac_try" in
! 99384: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99385: *) ac_try_echo=$ac_try;;
! 99386: esac
! 99387: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99388: (eval "$ac_link") 2>conftest.er1
! 99389: ac_status=$?
! 99390: grep -v '^ *+' conftest.er1 >conftest.err
! 99391: rm -f conftest.er1
! 99392: cat conftest.err >&5
! 99393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99394: (exit $ac_status); } && {
! 99395: test -z "$ac_c_werror_flag" ||
! 99396: test ! -s conftest.err
! 99397: } && test -s conftest$ac_exeext &&
! 99398: $as_test_x conftest$ac_exeext; then
1.1 misho 99399: ac_cv_lib_pq_PQftable=yes
99400: else
1.1.1.3 ! misho 99401: echo "$as_me: failed program was:" >&5
! 99402: sed 's/^/| /' conftest.$ac_ext >&5
! 99403:
! 99404: ac_cv_lib_pq_PQftable=no
1.1 misho 99405: fi
1.1.1.3 ! misho 99406:
! 99407: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99408: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99409: LIBS=$ac_check_lib_save_LIBS
99410: fi
1.1.1.3 ! misho 99411: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQftable" >&5
! 99412: echo "${ECHO_T}$ac_cv_lib_pq_PQftable" >&6; }
! 99413: if test $ac_cv_lib_pq_PQftable = yes; then
1.1 misho 99414:
1.1.1.3 ! misho 99415: cat >>confdefs.h <<\_ACEOF
! 99416: #define HAVE_PQFTABLE 1
! 99417: _ACEOF
1.1 misho 99418:
99419: fi
99420:
1.1.1.3 ! misho 99421: { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
! 99422: echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
! 99423: if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
! 99424: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99425: else
99426: ac_check_lib_save_LIBS=$LIBS
99427: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99428: cat >conftest.$ac_ext <<_ACEOF
! 99429: /* confdefs.h. */
! 99430: _ACEOF
! 99431: cat confdefs.h >>conftest.$ac_ext
! 99432: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99433: /* end confdefs.h. */
99434:
99435: /* Override any GCC internal prototype to avoid an error.
99436: Use char because int might match the return type of a GCC
99437: builtin and then its argument prototype would still apply. */
99438: #ifdef __cplusplus
99439: extern "C"
99440: #endif
99441: char PQescapeStringConn ();
99442: int
99443: main ()
99444: {
99445: return PQescapeStringConn ();
99446: ;
99447: return 0;
99448: }
99449: _ACEOF
1.1.1.3 ! misho 99450: rm -f conftest.$ac_objext conftest$ac_exeext
! 99451: if { (ac_try="$ac_link"
! 99452: case "(($ac_try" in
! 99453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99454: *) ac_try_echo=$ac_try;;
! 99455: esac
! 99456: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99457: (eval "$ac_link") 2>conftest.er1
! 99458: ac_status=$?
! 99459: grep -v '^ *+' conftest.er1 >conftest.err
! 99460: rm -f conftest.er1
! 99461: cat conftest.err >&5
! 99462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99463: (exit $ac_status); } && {
! 99464: test -z "$ac_c_werror_flag" ||
! 99465: test ! -s conftest.err
! 99466: } && test -s conftest$ac_exeext &&
! 99467: $as_test_x conftest$ac_exeext; then
1.1 misho 99468: ac_cv_lib_pq_PQescapeStringConn=yes
99469: else
1.1.1.3 ! misho 99470: echo "$as_me: failed program was:" >&5
! 99471: sed 's/^/| /' conftest.$ac_ext >&5
! 99472:
! 99473: ac_cv_lib_pq_PQescapeStringConn=no
1.1 misho 99474: fi
1.1.1.3 ! misho 99475:
! 99476: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99477: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99478: LIBS=$ac_check_lib_save_LIBS
99479: fi
1.1.1.3 ! misho 99480: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
! 99481: echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
! 99482: if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
1.1 misho 99483:
1.1.1.3 ! misho 99484: cat >>confdefs.h <<\_ACEOF
! 99485: #define HAVE_PQESCAPE_CONN 1
! 99486: _ACEOF
1.1 misho 99487:
99488: fi
99489:
1.1.1.3 ! misho 99490: { echo "$as_me:$LINENO: checking for PQescapeByteaConn in -lpq" >&5
! 99491: echo $ECHO_N "checking for PQescapeByteaConn in -lpq... $ECHO_C" >&6; }
! 99492: if test "${ac_cv_lib_pq_PQescapeByteaConn+set}" = set; then
! 99493: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99494: else
99495: ac_check_lib_save_LIBS=$LIBS
99496: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99497: cat >conftest.$ac_ext <<_ACEOF
! 99498: /* confdefs.h. */
! 99499: _ACEOF
! 99500: cat confdefs.h >>conftest.$ac_ext
! 99501: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99502: /* end confdefs.h. */
99503:
99504: /* Override any GCC internal prototype to avoid an error.
99505: Use char because int might match the return type of a GCC
99506: builtin and then its argument prototype would still apply. */
99507: #ifdef __cplusplus
99508: extern "C"
99509: #endif
99510: char PQescapeByteaConn ();
99511: int
99512: main ()
99513: {
99514: return PQescapeByteaConn ();
99515: ;
99516: return 0;
99517: }
99518: _ACEOF
1.1.1.3 ! misho 99519: rm -f conftest.$ac_objext conftest$ac_exeext
! 99520: if { (ac_try="$ac_link"
! 99521: case "(($ac_try" in
! 99522: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99523: *) ac_try_echo=$ac_try;;
! 99524: esac
! 99525: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99526: (eval "$ac_link") 2>conftest.er1
! 99527: ac_status=$?
! 99528: grep -v '^ *+' conftest.er1 >conftest.err
! 99529: rm -f conftest.er1
! 99530: cat conftest.err >&5
! 99531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99532: (exit $ac_status); } && {
! 99533: test -z "$ac_c_werror_flag" ||
! 99534: test ! -s conftest.err
! 99535: } && test -s conftest$ac_exeext &&
! 99536: $as_test_x conftest$ac_exeext; then
1.1 misho 99537: ac_cv_lib_pq_PQescapeByteaConn=yes
99538: else
1.1.1.3 ! misho 99539: echo "$as_me: failed program was:" >&5
! 99540: sed 's/^/| /' conftest.$ac_ext >&5
! 99541:
! 99542: ac_cv_lib_pq_PQescapeByteaConn=no
1.1 misho 99543: fi
1.1.1.3 ! misho 99544:
! 99545: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99546: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99547: LIBS=$ac_check_lib_save_LIBS
99548: fi
1.1.1.3 ! misho 99549: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
! 99550: echo "${ECHO_T}$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
! 99551: if test $ac_cv_lib_pq_PQescapeByteaConn = yes; then
1.1 misho 99552:
1.1.1.3 ! misho 99553: cat >>confdefs.h <<\_ACEOF
! 99554: #define HAVE_PQESCAPE_BYTEA_CONN 1
! 99555: _ACEOF
1.1 misho 99556:
99557: fi
99558:
1.1.1.3 ! misho 99559: { echo "$as_me:$LINENO: checking for pg_encoding_to_char in -lpq" >&5
! 99560: echo $ECHO_N "checking for pg_encoding_to_char in -lpq... $ECHO_C" >&6; }
! 99561: if test "${ac_cv_lib_pq_pg_encoding_to_char+set}" = set; then
! 99562: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99563: else
99564: ac_check_lib_save_LIBS=$LIBS
99565: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99566: cat >conftest.$ac_ext <<_ACEOF
! 99567: /* confdefs.h. */
! 99568: _ACEOF
! 99569: cat confdefs.h >>conftest.$ac_ext
! 99570: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99571: /* end confdefs.h. */
99572:
99573: /* Override any GCC internal prototype to avoid an error.
99574: Use char because int might match the return type of a GCC
99575: builtin and then its argument prototype would still apply. */
99576: #ifdef __cplusplus
99577: extern "C"
99578: #endif
99579: char pg_encoding_to_char ();
99580: int
99581: main ()
99582: {
99583: return pg_encoding_to_char ();
99584: ;
99585: return 0;
99586: }
99587: _ACEOF
1.1.1.3 ! misho 99588: rm -f conftest.$ac_objext conftest$ac_exeext
! 99589: if { (ac_try="$ac_link"
! 99590: case "(($ac_try" in
! 99591: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99592: *) ac_try_echo=$ac_try;;
! 99593: esac
! 99594: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99595: (eval "$ac_link") 2>conftest.er1
! 99596: ac_status=$?
! 99597: grep -v '^ *+' conftest.er1 >conftest.err
! 99598: rm -f conftest.er1
! 99599: cat conftest.err >&5
! 99600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99601: (exit $ac_status); } && {
! 99602: test -z "$ac_c_werror_flag" ||
! 99603: test ! -s conftest.err
! 99604: } && test -s conftest$ac_exeext &&
! 99605: $as_test_x conftest$ac_exeext; then
1.1 misho 99606: ac_cv_lib_pq_pg_encoding_to_char=yes
99607: else
1.1.1.3 ! misho 99608: echo "$as_me: failed program was:" >&5
! 99609: sed 's/^/| /' conftest.$ac_ext >&5
! 99610:
! 99611: ac_cv_lib_pq_pg_encoding_to_char=no
1.1 misho 99612: fi
1.1.1.3 ! misho 99613:
! 99614: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99615: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99616: LIBS=$ac_check_lib_save_LIBS
99617: fi
1.1.1.3 ! misho 99618: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
! 99619: echo "${ECHO_T}$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
! 99620: if test $ac_cv_lib_pq_pg_encoding_to_char = yes; then
1.1 misho 99621:
1.1.1.3 ! misho 99622: cat >>confdefs.h <<\_ACEOF
! 99623: #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
! 99624: _ACEOF
1.1 misho 99625:
99626: fi
99627:
1.1.1.3 ! misho 99628: { echo "$as_me:$LINENO: checking for lo_create in -lpq" >&5
! 99629: echo $ECHO_N "checking for lo_create in -lpq... $ECHO_C" >&6; }
! 99630: if test "${ac_cv_lib_pq_lo_create+set}" = set; then
! 99631: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99632: else
99633: ac_check_lib_save_LIBS=$LIBS
99634: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99635: cat >conftest.$ac_ext <<_ACEOF
! 99636: /* confdefs.h. */
! 99637: _ACEOF
! 99638: cat confdefs.h >>conftest.$ac_ext
! 99639: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99640: /* end confdefs.h. */
99641:
99642: /* Override any GCC internal prototype to avoid an error.
99643: Use char because int might match the return type of a GCC
99644: builtin and then its argument prototype would still apply. */
99645: #ifdef __cplusplus
99646: extern "C"
99647: #endif
99648: char lo_create ();
99649: int
99650: main ()
99651: {
99652: return lo_create ();
99653: ;
99654: return 0;
99655: }
99656: _ACEOF
1.1.1.3 ! misho 99657: rm -f conftest.$ac_objext conftest$ac_exeext
! 99658: if { (ac_try="$ac_link"
! 99659: case "(($ac_try" in
! 99660: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99661: *) ac_try_echo=$ac_try;;
! 99662: esac
! 99663: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99664: (eval "$ac_link") 2>conftest.er1
! 99665: ac_status=$?
! 99666: grep -v '^ *+' conftest.er1 >conftest.err
! 99667: rm -f conftest.er1
! 99668: cat conftest.err >&5
! 99669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99670: (exit $ac_status); } && {
! 99671: test -z "$ac_c_werror_flag" ||
! 99672: test ! -s conftest.err
! 99673: } && test -s conftest$ac_exeext &&
! 99674: $as_test_x conftest$ac_exeext; then
1.1 misho 99675: ac_cv_lib_pq_lo_create=yes
99676: else
1.1.1.3 ! misho 99677: echo "$as_me: failed program was:" >&5
! 99678: sed 's/^/| /' conftest.$ac_ext >&5
! 99679:
! 99680: ac_cv_lib_pq_lo_create=no
1.1 misho 99681: fi
1.1.1.3 ! misho 99682:
! 99683: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99684: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99685: LIBS=$ac_check_lib_save_LIBS
99686: fi
1.1.1.3 ! misho 99687: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_lo_create" >&5
! 99688: echo "${ECHO_T}$ac_cv_lib_pq_lo_create" >&6; }
! 99689: if test $ac_cv_lib_pq_lo_create = yes; then
1.1 misho 99690:
1.1.1.3 ! misho 99691: cat >>confdefs.h <<\_ACEOF
! 99692: #define HAVE_PG_LO_CREATE 1
! 99693: _ACEOF
1.1 misho 99694:
99695: fi
99696:
1.1.1.3 ! misho 99697: { echo "$as_me:$LINENO: checking for lo_import_with_oid in -lpq" >&5
! 99698: echo $ECHO_N "checking for lo_import_with_oid in -lpq... $ECHO_C" >&6; }
! 99699: if test "${ac_cv_lib_pq_lo_import_with_oid+set}" = set; then
! 99700: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 99701: else
99702: ac_check_lib_save_LIBS=$LIBS
99703: LIBS="-lpq $LIBS"
1.1.1.3 ! misho 99704: cat >conftest.$ac_ext <<_ACEOF
! 99705: /* confdefs.h. */
! 99706: _ACEOF
! 99707: cat confdefs.h >>conftest.$ac_ext
! 99708: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 99709: /* end confdefs.h. */
99710:
99711: /* Override any GCC internal prototype to avoid an error.
99712: Use char because int might match the return type of a GCC
99713: builtin and then its argument prototype would still apply. */
99714: #ifdef __cplusplus
99715: extern "C"
99716: #endif
99717: char lo_import_with_oid ();
99718: int
99719: main ()
99720: {
99721: return lo_import_with_oid ();
99722: ;
99723: return 0;
99724: }
99725: _ACEOF
1.1.1.3 ! misho 99726: rm -f conftest.$ac_objext conftest$ac_exeext
! 99727: if { (ac_try="$ac_link"
! 99728: case "(($ac_try" in
! 99729: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99730: *) ac_try_echo=$ac_try;;
! 99731: esac
! 99732: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99733: (eval "$ac_link") 2>conftest.er1
! 99734: ac_status=$?
! 99735: grep -v '^ *+' conftest.er1 >conftest.err
! 99736: rm -f conftest.er1
! 99737: cat conftest.err >&5
! 99738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99739: (exit $ac_status); } && {
! 99740: test -z "$ac_c_werror_flag" ||
! 99741: test ! -s conftest.err
! 99742: } && test -s conftest$ac_exeext &&
! 99743: $as_test_x conftest$ac_exeext; then
1.1 misho 99744: ac_cv_lib_pq_lo_import_with_oid=yes
99745: else
1.1.1.3 ! misho 99746: echo "$as_me: failed program was:" >&5
! 99747: sed 's/^/| /' conftest.$ac_ext >&5
! 99748:
! 99749: ac_cv_lib_pq_lo_import_with_oid=no
! 99750: fi
! 99751:
! 99752: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99753: conftest$ac_exeext conftest.$ac_ext
! 99754: LIBS=$ac_check_lib_save_LIBS
! 99755: fi
! 99756: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_lo_import_with_oid" >&5
! 99757: echo "${ECHO_T}$ac_cv_lib_pq_lo_import_with_oid" >&6; }
! 99758: if test $ac_cv_lib_pq_lo_import_with_oid = yes; then
! 99759:
! 99760: cat >>confdefs.h <<\_ACEOF
! 99761: #define HAVE_PG_LO_IMPORT_WITH_OID 1
! 99762: _ACEOF
! 99763:
! 99764: fi
! 99765:
! 99766: { echo "$as_me:$LINENO: checking for PQescapeLiteral in -lpq" >&5
! 99767: echo $ECHO_N "checking for PQescapeLiteral in -lpq... $ECHO_C" >&6; }
! 99768: if test "${ac_cv_lib_pq_PQescapeLiteral+set}" = set; then
! 99769: echo $ECHO_N "(cached) $ECHO_C" >&6
! 99770: else
! 99771: ac_check_lib_save_LIBS=$LIBS
! 99772: LIBS="-lpq $LIBS"
! 99773: cat >conftest.$ac_ext <<_ACEOF
! 99774: /* confdefs.h. */
! 99775: _ACEOF
! 99776: cat confdefs.h >>conftest.$ac_ext
! 99777: cat >>conftest.$ac_ext <<_ACEOF
! 99778: /* end confdefs.h. */
! 99779:
! 99780: /* Override any GCC internal prototype to avoid an error.
! 99781: Use char because int might match the return type of a GCC
! 99782: builtin and then its argument prototype would still apply. */
! 99783: #ifdef __cplusplus
! 99784: extern "C"
! 99785: #endif
! 99786: char PQescapeLiteral ();
! 99787: int
! 99788: main ()
! 99789: {
! 99790: return PQescapeLiteral ();
! 99791: ;
! 99792: return 0;
! 99793: }
! 99794: _ACEOF
! 99795: rm -f conftest.$ac_objext conftest$ac_exeext
! 99796: if { (ac_try="$ac_link"
! 99797: case "(($ac_try" in
! 99798: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 99799: *) ac_try_echo=$ac_try;;
! 99800: esac
! 99801: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 99802: (eval "$ac_link") 2>conftest.er1
! 99803: ac_status=$?
! 99804: grep -v '^ *+' conftest.er1 >conftest.err
! 99805: rm -f conftest.er1
! 99806: cat conftest.err >&5
! 99807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 99808: (exit $ac_status); } && {
! 99809: test -z "$ac_c_werror_flag" ||
! 99810: test ! -s conftest.err
! 99811: } && test -s conftest$ac_exeext &&
! 99812: $as_test_x conftest$ac_exeext; then
! 99813: ac_cv_lib_pq_PQescapeLiteral=yes
! 99814: else
! 99815: echo "$as_me: failed program was:" >&5
! 99816: sed 's/^/| /' conftest.$ac_ext >&5
! 99817:
! 99818: ac_cv_lib_pq_PQescapeLiteral=no
1.1 misho 99819: fi
1.1.1.3 ! misho 99820:
! 99821: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 99822: conftest$ac_exeext conftest.$ac_ext
1.1 misho 99823: LIBS=$ac_check_lib_save_LIBS
99824: fi
1.1.1.3 ! misho 99825: { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeLiteral" >&5
! 99826: echo "${ECHO_T}$ac_cv_lib_pq_PQescapeLiteral" >&6; }
! 99827: if test $ac_cv_lib_pq_PQescapeLiteral = yes; then
1.1 misho 99828:
1.1.1.3 ! misho 99829: cat >>confdefs.h <<\_ACEOF
! 99830: #define HAVE_PQESCAPELITERAL 1
! 99831: _ACEOF
1.1 misho 99832:
99833: fi
99834:
99835: LIBS=$old_LIBS
99836: LDFLAGS=$old_LDFLAGS
99837:
99838:
99839:
99840: if test "$ext_shared" = "yes"; then
99841: PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD"
99842: if test -n "$PGSQL_LIBDIR"; then
99843:
99844: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
99845:
99846: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
99847: ai_p=$PGSQL_LIBDIR
99848: else
99849:
99850: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
99851:
99852: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99853: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
99854: fi
99855:
99856:
99857: if test "$ext_shared" = "yes"; then
99858: PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD"
99859: test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD"
99860: else
99861:
99862:
99863:
99864: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99865:
99866: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99867: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99868: eval "LIBPATH$unique=set"
99869:
99870: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99871: LDFLAGS="$LDFLAGS -L$ai_p"
99872: PHP_RPATHS="$PHP_RPATHS $ai_p"
99873:
99874: fi
99875:
99876:
99877: fi
99878:
99879: fi
99880:
99881: fi
99882: else
99883:
99884:
99885: if test -n "$PGSQL_LIBDIR"; then
99886:
99887: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
99888:
99889: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
99890: ai_p=$PGSQL_LIBDIR
99891: else
99892:
99893: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
99894:
99895: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99896: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
99897: fi
99898:
99899:
99900:
99901:
99902:
99903: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99904:
99905: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99906: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99907: eval "LIBPATH$unique=set"
99908:
99909: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99910: LDFLAGS="$LDFLAGS -L$ai_p"
99911: PHP_RPATHS="$PHP_RPATHS $ai_p"
99912:
99913: fi
99914:
99915:
99916:
99917: fi
99918:
99919: fi
99920:
99921:
99922: case pq in
99923: c|c_r|pthread*) ;;
99924: *)
99925: LIBS="-lpq $LIBS"
99926: ;;
99927: esac
99928:
99929:
99930:
99931:
99932: fi
99933:
99934:
99935:
99936: PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD"
99937:
99938:
99939:
99940: if test "$PGSQL_INCLUDE" != "/usr/include"; then
99941:
99942: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
99943: ai_p=$PGSQL_INCLUDE
99944: else
99945:
99946: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
99947:
99948: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99949: ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
99950: fi
99951:
99952:
99953:
99954: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99955:
99956: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
99957: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99958: eval "INCLUDEPATH$unique=set"
99959:
99960: if test ""; then
99961: INCLUDES="-I$ai_p $INCLUDES"
99962: else
99963: INCLUDES="$INCLUDES -I$ai_p"
99964: fi
99965:
99966: fi
99967:
99968: fi
99969:
99970:
99971:
99972: ext_builddir=ext/pgsql
99973: ext_srcdir=$abs_srcdir/ext/pgsql
99974:
99975: ac_extra=
99976:
99977: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
99978: PHP_PGSQL_SHARED=no
99979:
99980:
99981: case ext/pgsql in
99982: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99983: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99984: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99985: esac
99986:
99987:
99988:
99989: b_c_pre=$php_c_pre
99990: b_cxx_pre=$php_cxx_pre
99991: b_c_meta=$php_c_meta
99992: b_cxx_meta=$php_cxx_meta
99993: b_c_post=$php_c_post
99994: b_cxx_post=$php_cxx_post
99995: b_lo=$php_lo
99996:
99997:
99998: old_IFS=$IFS
99999: for ac_src in pgsql.c; do
100000:
100001: IFS=.
100002: set $ac_src
100003: ac_obj=$1
100004: IFS=$old_IFS
100005:
100006: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100007:
100008: case $ac_src in
100009: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100010: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100011: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100012: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100013: esac
100014:
100015: cat >>Makefile.objects<<EOF
100016: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100017: $ac_comp
100018: EOF
100019: done
100020:
100021:
100022: EXT_STATIC="$EXT_STATIC pgsql"
100023: if test "$ext_shared" != "nocli"; then
100024: EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
100025: fi
100026: else
100027: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100028: PHP_PGSQL_SHARED=yes
100029:
100030: case ext/pgsql in
100031: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100032: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100033: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100034: esac
100035:
100036:
100037:
100038: b_c_pre=$shared_c_pre
100039: b_cxx_pre=$shared_cxx_pre
100040: b_c_meta=$shared_c_meta
100041: b_cxx_meta=$shared_cxx_meta
100042: b_c_post=$shared_c_post
100043: b_cxx_post=$shared_cxx_post
100044: b_lo=$shared_lo
100045:
100046:
100047: old_IFS=$IFS
100048: for ac_src in pgsql.c; do
100049:
100050: IFS=.
100051: set $ac_src
100052: ac_obj=$1
100053: IFS=$old_IFS
100054:
100055: shared_objects_pgsql="$shared_objects_pgsql $ac_bdir$ac_obj.lo"
100056:
100057: case $ac_src in
100058: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100059: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100060: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100061: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100062: esac
100063:
100064: cat >>Makefile.objects<<EOF
100065: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100066: $ac_comp
100067: EOF
100068: done
100069:
100070: case $host_alias in
100071: *netware*)
100072:
100073: install_modules="install-modules"
100074:
100075: case $host_alias in
100076: *aix*)
100077: suffix=so
100078: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PHPPGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppgsql.so '$ext_builddir'/phppgsql.so'
100079: ;;
100080: *netware*)
100081: suffix=nlm
100082: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) -L$(top_builddir)/netware -lphp5lib $(PGSQL_SHARED_LIBADD)'
100083: ;;
100084: *)
100085: suffix=la
100086: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PHPPGSQL_SHARED_LIBADD)'
100087: ;;
100088: esac
100089:
100090: if test "x" = "xyes"; then
100091: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppgsql.$suffix"
100092: else
100093: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppgsql.$suffix"
100094: fi
100095:
100096: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
100097:
100098: cat >>Makefile.objects<<EOF
100099: \$(phplibdir)/phppgsql.$suffix: $ext_builddir/phppgsql.$suffix
100100: \$(LIBTOOL) --mode=install cp $ext_builddir/phppgsql.$suffix \$(phplibdir)
100101:
100102: $ext_builddir/phppgsql.$suffix: \$(shared_objects_pgsql) \$(PHPPGSQL_SHARED_DEPENDENCIES)
100103: $link_cmd
100104:
100105: EOF
100106:
100107: ;;
100108: *)
100109:
100110: install_modules="install-modules"
100111:
100112: case $host_alias in
100113: *aix*)
100114: suffix=so
100115: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pgsql.so '$ext_builddir'/pgsql.so'
100116: ;;
100117: *netware*)
100118: suffix=nlm
100119: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
100120: ;;
100121: *)
100122: suffix=la
100123: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PGSQL_SHARED_LIBADD)'
100124: ;;
100125: esac
100126:
100127: if test "x" = "xyes"; then
100128: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pgsql.$suffix"
100129: else
100130: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pgsql.$suffix"
100131: fi
100132:
100133: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
100134:
100135: cat >>Makefile.objects<<EOF
100136: \$(phplibdir)/pgsql.$suffix: $ext_builddir/pgsql.$suffix
100137: \$(LIBTOOL) --mode=install cp $ext_builddir/pgsql.$suffix \$(phplibdir)
100138:
100139: $ext_builddir/pgsql.$suffix: \$(shared_objects_pgsql) \$(PGSQL_SHARED_DEPENDENCIES)
100140: $link_cmd
100141:
100142: EOF
100143:
100144: ;;
100145: esac
100146:
100147: cat >>confdefs.h <<_ACEOF
100148: #define COMPILE_DL_PGSQL 1
100149: _ACEOF
100150:
100151: fi
100152: fi
100153:
100154: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100155: PHP_PGSQL_SHARED=no
1.1.1.3 ! misho 100156: case "$PHP_SAPI" in
! 100157: cgi|embed)
1.1 misho 100158:
100159:
100160: case ext/pgsql in
100161: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100162: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100163: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100164: esac
100165:
100166:
100167:
100168: b_c_pre=$php_c_pre
100169: b_cxx_pre=$php_cxx_pre
100170: b_c_meta=$php_c_meta
100171: b_cxx_meta=$php_cxx_meta
100172: b_c_post=$php_c_post
100173: b_cxx_post=$php_cxx_post
100174: b_lo=$php_lo
100175:
100176:
100177: old_IFS=$IFS
100178: for ac_src in pgsql.c; do
100179:
100180: IFS=.
100181: set $ac_src
100182: ac_obj=$1
100183: IFS=$old_IFS
100184:
1.1.1.2 misho 100185: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 100186:
100187: case $ac_src in
100188: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100189: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100190: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100191: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100192: esac
100193:
100194: cat >>Makefile.objects<<EOF
100195: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100196: $ac_comp
100197: EOF
100198: done
100199:
100200:
1.1.1.3 ! misho 100201: EXT_STATIC="$EXT_STATIC pgsql"
! 100202: ;;
! 100203: *)
1.1 misho 100204:
100205:
100206: case ext/pgsql in
100207: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100208: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100209: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100210: esac
100211:
100212:
100213:
100214: b_c_pre=$php_c_pre
100215: b_cxx_pre=$php_cxx_pre
100216: b_c_meta=$php_c_meta
100217: b_cxx_meta=$php_cxx_meta
100218: b_c_post=$php_c_post
100219: b_cxx_post=$php_cxx_post
100220: b_lo=$php_lo
100221:
100222:
100223: old_IFS=$IFS
100224: for ac_src in pgsql.c; do
100225:
100226: IFS=.
100227: set $ac_src
100228: ac_obj=$1
100229: IFS=$old_IFS
100230:
1.1.1.2 misho 100231: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 100232:
100233: case $ac_src in
100234: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100235: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100236: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100237: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100238: esac
100239:
100240: cat >>Makefile.objects<<EOF
100241: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100242: $ac_comp
100243: EOF
100244: done
100245:
100246:
1.1.1.3 ! misho 100247: ;;
! 100248: esac
1.1 misho 100249: EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
100250: fi
100251:
100252:
100253: BUILD_DIR="$BUILD_DIR $ext_builddir"
100254:
100255:
100256:
100257: if test "$ext_builddir" = "."; then
100258: PHP_PECL_EXTENSION=pgsql
100259:
100260: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100261:
100262: fi
100263:
100264: fi
100265:
100266:
100267:
100268:
100269:
100270: php_enable_phar=yes
100271:
1.1.1.3 ! misho 100272: { echo "$as_me:$LINENO: checking for phar archive support" >&5
! 100273: echo $ECHO_N "checking for phar archive support... $ECHO_C" >&6; }
1.1 misho 100274: # Check whether --enable-phar was given.
1.1.1.3 ! misho 100275: if test "${enable_phar+set}" = set; then
1.1 misho 100276: enableval=$enable_phar; PHP_PHAR=$enableval
100277: else
100278:
100279: PHP_PHAR=yes
100280: test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL
100281:
100282: fi
100283:
100284:
100285:
100286: ext_output="yes, shared"
100287: ext_shared=yes
100288: case $PHP_PHAR in
100289: shared,*)
100290: PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'`
100291: ;;
100292: shared)
100293: PHP_PHAR=yes
100294: ;;
100295: no)
100296: ext_output=no
100297: ext_shared=no
100298: ;;
100299: *)
100300: ext_output=yes
100301: ext_shared=no
100302: ;;
100303: esac
100304:
100305:
100306:
1.1.1.3 ! misho 100307: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 100308: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 100309:
100310:
100311:
100312:
100313: if test "$PHP_PHAR" != "no"; then
100314:
100315: ext_builddir=ext/phar
100316: ext_srcdir=$abs_srcdir/ext/phar
100317:
100318: ac_extra=
100319:
100320: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100321: PHP_PHAR_SHARED=no
100322:
100323:
100324: case ext/phar in
100325: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100326: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100327: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100328: esac
100329:
100330:
100331:
100332: b_c_pre=$php_c_pre
100333: b_cxx_pre=$php_cxx_pre
100334: b_c_meta=$php_c_meta
100335: b_cxx_meta=$php_cxx_meta
100336: b_c_post=$php_c_post
100337: b_cxx_post=$php_cxx_post
100338: b_lo=$php_lo
100339:
100340:
100341: old_IFS=$IFS
100342: for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100343:
100344: IFS=.
100345: set $ac_src
100346: ac_obj=$1
100347: IFS=$old_IFS
100348:
100349: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100350:
100351: case $ac_src in
100352: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100353: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100354: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100355: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100356: esac
100357:
100358: cat >>Makefile.objects<<EOF
100359: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100360: $ac_comp
100361: EOF
100362: done
100363:
100364:
100365: EXT_STATIC="$EXT_STATIC phar"
100366: if test "$ext_shared" != "nocli"; then
100367: EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
100368: fi
100369: else
100370: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100371: PHP_PHAR_SHARED=yes
100372:
100373: case ext/phar in
100374: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100375: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100376: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100377: esac
100378:
100379:
100380:
100381: b_c_pre=$shared_c_pre
100382: b_cxx_pre=$shared_cxx_pre
100383: b_c_meta=$shared_c_meta
100384: b_cxx_meta=$shared_cxx_meta
100385: b_c_post=$shared_c_post
100386: b_cxx_post=$shared_cxx_post
100387: b_lo=$shared_lo
100388:
100389:
100390: old_IFS=$IFS
100391: for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100392:
100393: IFS=.
100394: set $ac_src
100395: ac_obj=$1
100396: IFS=$old_IFS
100397:
100398: shared_objects_phar="$shared_objects_phar $ac_bdir$ac_obj.lo"
100399:
100400: case $ac_src in
100401: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100402: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100403: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100404: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100405: esac
100406:
100407: cat >>Makefile.objects<<EOF
100408: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100409: $ac_comp
100410: EOF
100411: done
100412:
100413: case $host_alias in
100414: *netware*)
100415:
100416: install_modules="install-modules"
100417:
100418: case $host_alias in
100419: *aix*)
100420: suffix=so
100421: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpphar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHPPHAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpphar.so '$ext_builddir'/phpphar.so'
100422: ;;
100423: *netware*)
100424: suffix=nlm
100425: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) -L$(top_builddir)/netware -lphp5lib $(PHAR_SHARED_LIBADD)'
100426: ;;
100427: *)
100428: suffix=la
100429: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHPPHAR_SHARED_LIBADD)'
100430: ;;
100431: esac
100432:
100433: if test "x" = "xyes"; then
100434: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpphar.$suffix"
100435: else
100436: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpphar.$suffix"
100437: fi
100438:
100439: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
100440:
100441: cat >>Makefile.objects<<EOF
100442: \$(phplibdir)/phpphar.$suffix: $ext_builddir/phpphar.$suffix
100443: \$(LIBTOOL) --mode=install cp $ext_builddir/phpphar.$suffix \$(phplibdir)
100444:
100445: $ext_builddir/phpphar.$suffix: \$(shared_objects_phar) \$(PHPPHAR_SHARED_DEPENDENCIES)
100446: $link_cmd
100447:
100448: EOF
100449:
100450: ;;
100451: *)
100452:
100453: install_modules="install-modules"
100454:
100455: case $host_alias in
100456: *aix*)
100457: suffix=so
100458: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phar.so '$ext_builddir'/phar.so'
100459: ;;
100460: *netware*)
100461: suffix=nlm
100462: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) -L$(top_builddir)/netware -lphp5lib $(R_SHARED_LIBADD)'
100463: ;;
100464: *)
100465: suffix=la
100466: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHAR_SHARED_LIBADD)'
100467: ;;
100468: esac
100469:
100470: if test "x" = "xyes"; then
100471: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phar.$suffix"
100472: else
100473: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phar.$suffix"
100474: fi
100475:
100476: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
100477:
100478: cat >>Makefile.objects<<EOF
100479: \$(phplibdir)/phar.$suffix: $ext_builddir/phar.$suffix
100480: \$(LIBTOOL) --mode=install cp $ext_builddir/phar.$suffix \$(phplibdir)
100481:
100482: $ext_builddir/phar.$suffix: \$(shared_objects_phar) \$(PHAR_SHARED_DEPENDENCIES)
100483: $link_cmd
100484:
100485: EOF
100486:
100487: ;;
100488: esac
100489:
100490: cat >>confdefs.h <<_ACEOF
100491: #define COMPILE_DL_PHAR 1
100492: _ACEOF
100493:
100494: fi
100495: fi
100496:
100497: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100498: PHP_PHAR_SHARED=no
1.1.1.3 ! misho 100499: case "$PHP_SAPI" in
! 100500: cgi|embed)
1.1 misho 100501:
100502:
100503: case ext/phar in
100504: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100505: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100506: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100507: esac
100508:
100509:
100510:
100511: b_c_pre=$php_c_pre
100512: b_cxx_pre=$php_cxx_pre
100513: b_c_meta=$php_c_meta
100514: b_cxx_meta=$php_cxx_meta
100515: b_c_post=$php_c_post
100516: b_cxx_post=$php_cxx_post
100517: b_lo=$php_lo
100518:
100519:
100520: old_IFS=$IFS
100521: for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100522:
100523: IFS=.
100524: set $ac_src
100525: ac_obj=$1
100526: IFS=$old_IFS
100527:
1.1.1.2 misho 100528: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 100529:
100530: case $ac_src in
100531: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100532: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100533: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100534: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100535: esac
100536:
100537: cat >>Makefile.objects<<EOF
100538: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100539: $ac_comp
100540: EOF
100541: done
100542:
100543:
1.1.1.3 ! misho 100544: EXT_STATIC="$EXT_STATIC phar"
! 100545: ;;
! 100546: *)
1.1 misho 100547:
100548:
100549: case ext/phar in
100550: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100551: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100552: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100553: esac
100554:
100555:
100556:
100557: b_c_pre=$php_c_pre
100558: b_cxx_pre=$php_cxx_pre
100559: b_c_meta=$php_c_meta
100560: b_cxx_meta=$php_cxx_meta
100561: b_c_post=$php_c_post
100562: b_cxx_post=$php_cxx_post
100563: b_lo=$php_lo
100564:
100565:
100566: old_IFS=$IFS
100567: for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100568:
100569: IFS=.
100570: set $ac_src
100571: ac_obj=$1
100572: IFS=$old_IFS
100573:
1.1.1.2 misho 100574: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 100575:
100576: case $ac_src in
100577: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100578: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100579: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100580: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100581: esac
100582:
100583: cat >>Makefile.objects<<EOF
100584: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100585: $ac_comp
100586: EOF
100587: done
100588:
100589:
1.1.1.3 ! misho 100590: ;;
! 100591: esac
1.1 misho 100592: EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
100593: fi
100594:
100595:
100596: BUILD_DIR="$BUILD_DIR $ext_builddir"
100597:
100598:
100599:
100600: if test "$ext_builddir" = "."; then
100601: PHP_PECL_EXTENSION=phar
100602:
100603: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100604:
100605: fi
100606:
1.1.1.3 ! misho 100607: { echo "$as_me:$LINENO: checking for phar openssl support" >&5
! 100608: echo $ECHO_N "checking for phar openssl support... $ECHO_C" >&6; }
1.1 misho 100609: if test "$PHP_HASH_SHARED" != "yes"; then
100610: if test "$PHP_HASH" != "no"; then
100611:
1.1.1.3 ! misho 100612: cat >>confdefs.h <<\_ACEOF
! 100613: #define PHAR_HASH_OK 1
! 100614: _ACEOF
1.1 misho 100615:
100616: fi
100617: else
1.1.1.3 ! misho 100618: { echo "$as_me:$LINENO: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5
! 100619: echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;}
1.1 misho 100620: fi
100621: if test "$PHP_OPENSSL_SHARED" = "yes"; then
1.1.1.3 ! misho 100622: { echo "$as_me:$LINENO: result: no (shared openssl)" >&5
! 100623: echo "${ECHO_T}no (shared openssl)" >&6; }
1.1 misho 100624: else
100625: if test "$PHP_OPENSSL" = "yes"; then
1.1.1.3 ! misho 100626: { echo "$as_me:$LINENO: result: yes" >&5
! 100627: echo "${ECHO_T}yes" >&6; }
1.1 misho 100628:
1.1.1.3 ! misho 100629: cat >>confdefs.h <<\_ACEOF
! 100630: #define PHAR_HAVE_OPENSSL 1
! 100631: _ACEOF
1.1 misho 100632:
100633: else
1.1.1.3 ! misho 100634: { echo "$as_me:$LINENO: result: no" >&5
! 100635: echo "${ECHO_T}no" >&6; }
1.1 misho 100636: fi
100637: fi
100638:
100639: am_i_shared=$PHP_PHAR_SHARED
100640: is_it_shared=$PHP_HASH_SHARED
100641: is_it_enabled=$PHP_HASH
100642: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 100643: { { echo "$as_me:$LINENO: error:
1.1 misho 100644: You've configured extension phar to build statically, but it
100645: depends on extension hash, which you've configured to build shared.
100646: You either need to build phar shared or build hash statically for the
100647: build to be successful.
1.1.1.3 ! misho 100648: " >&5
! 100649: echo "$as_me: error:
! 100650: You've configured extension phar to build statically, but it
! 100651: depends on extension hash, which you've configured to build shared.
! 100652: You either need to build phar shared or build hash statically for the
! 100653: build to be successful.
! 100654: " >&2;}
! 100655: { (exit 1); exit 1; }; }
! 100656: fi
! 100657: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 100658: { { echo "$as_me:$LINENO: error:
! 100659: You've configured extension phar, which depends on extension hash,
! 100660: but you've either not enabled hash, or have disabled it.
! 100661: " >&5
! 100662: echo "$as_me: error:
! 100663: You've configured extension phar, which depends on extension hash,
! 100664: but you've either not enabled hash, or have disabled it.
! 100665: " >&2;}
! 100666: { (exit 1); exit 1; }; }
1.1 misho 100667: fi
100668:
100669:
100670: am_i_shared=$PHP_PHAR_SHARED
100671: is_it_shared=$PHP_SPL_SHARED
100672: is_it_enabled=$PHP_SPL
100673: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 100674: { { echo "$as_me:$LINENO: error:
! 100675: You've configured extension phar to build statically, but it
! 100676: depends on extension spl, which you've configured to build shared.
! 100677: You either need to build phar shared or build spl statically for the
! 100678: build to be successful.
! 100679: " >&5
! 100680: echo "$as_me: error:
1.1 misho 100681: You've configured extension phar to build statically, but it
100682: depends on extension spl, which you've configured to build shared.
100683: You either need to build phar shared or build spl statically for the
100684: build to be successful.
1.1.1.3 ! misho 100685: " >&2;}
! 100686: { (exit 1); exit 1; }; }
! 100687: fi
! 100688: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 100689: { { echo "$as_me:$LINENO: error:
! 100690: You've configured extension phar, which depends on extension spl,
! 100691: but you've either not enabled spl, or have disabled it.
! 100692: " >&5
! 100693: echo "$as_me: error:
! 100694: You've configured extension phar, which depends on extension spl,
! 100695: but you've either not enabled spl, or have disabled it.
! 100696: " >&2;}
! 100697: { (exit 1); exit 1; }; }
1.1 misho 100698: fi
100699:
100700:
100701: src=$ext_srcdir/Makefile.frag
100702: ac_srcdir=$ext_srcdir
100703: ac_builddir=$ext_builddir
100704: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
100705:
100706: fi
100707:
100708:
100709:
100710: php_enable_posix=yes
100711:
1.1.1.3 ! misho 100712: { echo "$as_me:$LINENO: checking whether to enable POSIX-like functions" >&5
! 100713: echo $ECHO_N "checking whether to enable POSIX-like functions... $ECHO_C" >&6; }
1.1 misho 100714: # Check whether --enable-posix was given.
1.1.1.3 ! misho 100715: if test "${enable_posix+set}" = set; then
1.1 misho 100716: enableval=$enable_posix; PHP_POSIX=$enableval
100717: else
100718:
100719: PHP_POSIX=yes
100720: test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL
100721:
100722: fi
100723:
100724:
100725:
100726: ext_output="yes, shared"
100727: ext_shared=yes
100728: case $PHP_POSIX in
100729: shared,*)
100730: PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'`
100731: ;;
100732: shared)
100733: PHP_POSIX=yes
100734: ;;
100735: no)
100736: ext_output=no
100737: ext_shared=no
100738: ;;
100739: *)
100740: ext_output=yes
100741: ext_shared=no
100742: ;;
100743: esac
100744:
100745:
100746:
1.1.1.3 ! misho 100747: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 100748: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 100749:
100750:
100751:
100752:
100753: if test "$PHP_POSIX" = "yes"; then
100754:
1.1.1.3 ! misho 100755: cat >>confdefs.h <<\_ACEOF
! 100756: #define HAVE_POSIX 1
! 100757: _ACEOF
1.1 misho 100758:
100759:
100760: ext_builddir=ext/posix
100761: ext_srcdir=$abs_srcdir/ext/posix
100762:
100763: ac_extra=
100764:
100765: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100766: PHP_POSIX_SHARED=no
100767:
100768:
100769: case ext/posix in
100770: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100771: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100772: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100773: esac
100774:
100775:
100776:
100777: b_c_pre=$php_c_pre
100778: b_cxx_pre=$php_cxx_pre
100779: b_c_meta=$php_c_meta
100780: b_cxx_meta=$php_cxx_meta
100781: b_c_post=$php_c_post
100782: b_cxx_post=$php_cxx_post
100783: b_lo=$php_lo
100784:
100785:
100786: old_IFS=$IFS
100787: for ac_src in posix.c; do
100788:
100789: IFS=.
100790: set $ac_src
100791: ac_obj=$1
100792: IFS=$old_IFS
100793:
100794: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100795:
100796: case $ac_src in
100797: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100798: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100799: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100800: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100801: esac
100802:
100803: cat >>Makefile.objects<<EOF
100804: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100805: $ac_comp
100806: EOF
100807: done
100808:
100809:
100810: EXT_STATIC="$EXT_STATIC posix"
100811: if test "$ext_shared" != "nocli"; then
100812: EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
100813: fi
100814: else
100815: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100816: PHP_POSIX_SHARED=yes
100817:
100818: case ext/posix in
100819: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100820: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100821: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100822: esac
100823:
100824:
100825:
100826: b_c_pre=$shared_c_pre
100827: b_cxx_pre=$shared_cxx_pre
100828: b_c_meta=$shared_c_meta
100829: b_cxx_meta=$shared_cxx_meta
100830: b_c_post=$shared_c_post
100831: b_cxx_post=$shared_cxx_post
100832: b_lo=$shared_lo
100833:
100834:
100835: old_IFS=$IFS
100836: for ac_src in posix.c; do
100837:
100838: IFS=.
100839: set $ac_src
100840: ac_obj=$1
100841: IFS=$old_IFS
100842:
100843: shared_objects_posix="$shared_objects_posix $ac_bdir$ac_obj.lo"
100844:
100845: case $ac_src in
100846: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100847: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100848: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100849: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100850: esac
100851:
100852: cat >>Makefile.objects<<EOF
100853: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100854: $ac_comp
100855: EOF
100856: done
100857:
100858: case $host_alias in
100859: *netware*)
100860:
100861: install_modules="install-modules"
100862:
100863: case $host_alias in
100864: *aix*)
100865: suffix=so
100866: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpposix.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(PHPPOSIX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpposix.so '$ext_builddir'/phpposix.so'
100867: ;;
100868: *netware*)
100869: suffix=nlm
100870: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) -L$(top_builddir)/netware -lphp5lib $(POSIX_SHARED_LIBADD)'
100871: ;;
100872: *)
100873: suffix=la
100874: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(PHPPOSIX_SHARED_LIBADD)'
100875: ;;
100876: esac
100877:
100878: if test "x" = "xyes"; then
100879: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpposix.$suffix"
100880: else
100881: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpposix.$suffix"
100882: fi
100883:
100884: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
100885:
100886: cat >>Makefile.objects<<EOF
100887: \$(phplibdir)/phpposix.$suffix: $ext_builddir/phpposix.$suffix
100888: \$(LIBTOOL) --mode=install cp $ext_builddir/phpposix.$suffix \$(phplibdir)
100889:
100890: $ext_builddir/phpposix.$suffix: \$(shared_objects_posix) \$(PHPPOSIX_SHARED_DEPENDENCIES)
100891: $link_cmd
100892:
100893: EOF
100894:
100895: ;;
100896: *)
100897:
100898: install_modules="install-modules"
100899:
100900: case $host_alias in
100901: *aix*)
100902: suffix=so
100903: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/posix.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(POSIX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/posix.so '$ext_builddir'/posix.so'
100904: ;;
100905: *netware*)
100906: suffix=nlm
100907: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) -L$(top_builddir)/netware -lphp5lib $(IX_SHARED_LIBADD)'
100908: ;;
100909: *)
100910: suffix=la
100911: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(POSIX_SHARED_LIBADD)'
100912: ;;
100913: esac
100914:
100915: if test "x" = "xyes"; then
100916: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/posix.$suffix"
100917: else
100918: PHP_MODULES="$PHP_MODULES \$(phplibdir)/posix.$suffix"
100919: fi
100920:
100921: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
100922:
100923: cat >>Makefile.objects<<EOF
100924: \$(phplibdir)/posix.$suffix: $ext_builddir/posix.$suffix
100925: \$(LIBTOOL) --mode=install cp $ext_builddir/posix.$suffix \$(phplibdir)
100926:
100927: $ext_builddir/posix.$suffix: \$(shared_objects_posix) \$(POSIX_SHARED_DEPENDENCIES)
100928: $link_cmd
100929:
100930: EOF
100931:
100932: ;;
100933: esac
100934:
100935: cat >>confdefs.h <<_ACEOF
100936: #define COMPILE_DL_POSIX 1
100937: _ACEOF
100938:
100939: fi
100940: fi
100941:
100942: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100943: PHP_POSIX_SHARED=no
1.1.1.3 ! misho 100944: case "$PHP_SAPI" in
! 100945: cgi|embed)
1.1 misho 100946:
100947:
100948: case ext/posix in
100949: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100950: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100951: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100952: esac
100953:
100954:
100955:
100956: b_c_pre=$php_c_pre
100957: b_cxx_pre=$php_cxx_pre
100958: b_c_meta=$php_c_meta
100959: b_cxx_meta=$php_cxx_meta
100960: b_c_post=$php_c_post
100961: b_cxx_post=$php_cxx_post
100962: b_lo=$php_lo
100963:
100964:
100965: old_IFS=$IFS
100966: for ac_src in posix.c; do
100967:
100968: IFS=.
100969: set $ac_src
100970: ac_obj=$1
100971: IFS=$old_IFS
100972:
1.1.1.2 misho 100973: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 100974:
100975: case $ac_src in
100976: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100977: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100978: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100979: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100980: esac
100981:
100982: cat >>Makefile.objects<<EOF
100983: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100984: $ac_comp
100985: EOF
100986: done
100987:
100988:
1.1.1.3 ! misho 100989: EXT_STATIC="$EXT_STATIC posix"
! 100990: ;;
! 100991: *)
1.1 misho 100992:
100993:
100994: case ext/posix in
100995: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100996: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100997: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100998: esac
100999:
101000:
101001:
101002: b_c_pre=$php_c_pre
101003: b_cxx_pre=$php_cxx_pre
101004: b_c_meta=$php_c_meta
101005: b_cxx_meta=$php_cxx_meta
101006: b_c_post=$php_c_post
101007: b_cxx_post=$php_cxx_post
101008: b_lo=$php_lo
101009:
101010:
101011: old_IFS=$IFS
101012: for ac_src in posix.c; do
101013:
101014: IFS=.
101015: set $ac_src
101016: ac_obj=$1
101017: IFS=$old_IFS
101018:
1.1.1.2 misho 101019: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 101020:
101021: case $ac_src in
101022: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101023: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101024: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101025: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101026: esac
101027:
101028: cat >>Makefile.objects<<EOF
101029: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101030: $ac_comp
101031: EOF
101032: done
101033:
101034:
1.1.1.3 ! misho 101035: ;;
! 101036: esac
! 101037: EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
! 101038: fi
! 101039:
! 101040:
! 101041: BUILD_DIR="$BUILD_DIR $ext_builddir"
! 101042:
! 101043:
! 101044:
! 101045: if test "$ext_builddir" = "."; then
! 101046: PHP_PECL_EXTENSION=posix
! 101047:
! 101048: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
! 101049:
! 101050: fi
! 101051:
! 101052:
! 101053:
! 101054: for ac_header in sys/mkdev.h
! 101055: do
! 101056: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 101057: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 101058: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 101059: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 101060: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 101061: echo $ECHO_N "(cached) $ECHO_C" >&6
! 101062: fi
! 101063: ac_res=`eval echo '${'$as_ac_Header'}'`
! 101064: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 101065: echo "${ECHO_T}$ac_res" >&6; }
! 101066: else
! 101067: # Is the header compilable?
! 101068: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 101069: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 101070: cat >conftest.$ac_ext <<_ACEOF
! 101071: /* confdefs.h. */
! 101072: _ACEOF
! 101073: cat confdefs.h >>conftest.$ac_ext
! 101074: cat >>conftest.$ac_ext <<_ACEOF
! 101075: /* end confdefs.h. */
! 101076: $ac_includes_default
! 101077: #include <$ac_header>
! 101078: _ACEOF
! 101079: rm -f conftest.$ac_objext
! 101080: if { (ac_try="$ac_compile"
! 101081: case "(($ac_try" in
! 101082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 101083: *) ac_try_echo=$ac_try;;
! 101084: esac
! 101085: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 101086: (eval "$ac_compile") 2>conftest.er1
! 101087: ac_status=$?
! 101088: grep -v '^ *+' conftest.er1 >conftest.err
! 101089: rm -f conftest.er1
! 101090: cat conftest.err >&5
! 101091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 101092: (exit $ac_status); } && {
! 101093: test -z "$ac_c_werror_flag" ||
! 101094: test ! -s conftest.err
! 101095: } && test -s conftest.$ac_objext; then
! 101096: ac_header_compiler=yes
! 101097: else
! 101098: echo "$as_me: failed program was:" >&5
! 101099: sed 's/^/| /' conftest.$ac_ext >&5
! 101100:
! 101101: ac_header_compiler=no
! 101102: fi
! 101103:
! 101104: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 101105: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 101106: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 101107:
! 101108: # Is the header present?
! 101109: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 101110: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 101111: cat >conftest.$ac_ext <<_ACEOF
! 101112: /* confdefs.h. */
! 101113: _ACEOF
! 101114: cat confdefs.h >>conftest.$ac_ext
! 101115: cat >>conftest.$ac_ext <<_ACEOF
! 101116: /* end confdefs.h. */
! 101117: #include <$ac_header>
! 101118: _ACEOF
! 101119: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 101120: case "(($ac_try" in
! 101121: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 101122: *) ac_try_echo=$ac_try;;
! 101123: esac
! 101124: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 101125: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 101126: ac_status=$?
! 101127: grep -v '^ *+' conftest.er1 >conftest.err
! 101128: rm -f conftest.er1
! 101129: cat conftest.err >&5
! 101130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 101131: (exit $ac_status); } >/dev/null && {
! 101132: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 101133: test ! -s conftest.err
! 101134: }; then
! 101135: ac_header_preproc=yes
! 101136: else
! 101137: echo "$as_me: failed program was:" >&5
! 101138: sed 's/^/| /' conftest.$ac_ext >&5
! 101139:
! 101140: ac_header_preproc=no
! 101141: fi
! 101142:
! 101143: rm -f conftest.err conftest.$ac_ext
! 101144: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 101145: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 101146:
! 101147: # So? What about this header?
! 101148: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 101149: yes:no: )
! 101150: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 101151: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 101152: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 101153: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 101154: ac_header_preproc=yes
! 101155: ;;
! 101156: no:yes:* )
! 101157: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 101158: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 101159: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 101160: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 101161: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 101162: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 101163: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 101164: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 101165: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 101166: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 101167: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 101168: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 101169:
! 101170: ;;
! 101171: esac
! 101172: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 101173: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 101174: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 101175: echo $ECHO_N "(cached) $ECHO_C" >&6
! 101176: else
! 101177: eval "$as_ac_Header=\$ac_header_preproc"
! 101178: fi
! 101179: ac_res=`eval echo '${'$as_ac_Header'}'`
! 101180: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 101181: echo "${ECHO_T}$ac_res" >&6; }
! 101182:
! 101183: fi
! 101184: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 101185: cat >>confdefs.h <<_ACEOF
! 101186: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 101187: _ACEOF
! 101188:
! 101189: fi
! 101190:
! 101191: done
! 101192:
1.1 misho 101193:
101194:
101195:
101196:
101197:
101198:
101199:
101200:
101201:
101202:
101203:
101204:
101205:
101206:
101207:
101208:
101209:
1.1.1.3 ! misho 101210: for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r
! 101211: do
! 101212: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 101213: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 101214: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 101215: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 101216: echo $ECHO_N "(cached) $ECHO_C" >&6
! 101217: else
! 101218: cat >conftest.$ac_ext <<_ACEOF
! 101219: /* confdefs.h. */
! 101220: _ACEOF
! 101221: cat confdefs.h >>conftest.$ac_ext
! 101222: cat >>conftest.$ac_ext <<_ACEOF
! 101223: /* end confdefs.h. */
! 101224: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 101225: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 101226: #define $ac_func innocuous_$ac_func
1.1 misho 101227:
1.1.1.3 ! misho 101228: /* System header to define __stub macros and hopefully few prototypes,
! 101229: which can conflict with char $ac_func (); below.
! 101230: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 101231: <limits.h> exists even on freestanding compilers. */
1.1 misho 101232:
1.1.1.3 ! misho 101233: #ifdef __STDC__
! 101234: # include <limits.h>
! 101235: #else
! 101236: # include <assert.h>
! 101237: #endif
1.1 misho 101238:
1.1.1.3 ! misho 101239: #undef $ac_func
1.1 misho 101240:
1.1.1.3 ! misho 101241: /* Override any GCC internal prototype to avoid an error.
! 101242: Use char because int might match the return type of a GCC
! 101243: builtin and then its argument prototype would still apply. */
! 101244: #ifdef __cplusplus
! 101245: extern "C"
! 101246: #endif
! 101247: char $ac_func ();
! 101248: /* The GNU C library defines this for functions which it implements
! 101249: to always fail with ENOSYS. Some functions are actually named
! 101250: something starting with __ and the normal name is an alias. */
! 101251: #if defined __stub_$ac_func || defined __stub___$ac_func
! 101252: choke me
! 101253: #endif
1.1 misho 101254:
1.1.1.3 ! misho 101255: int
! 101256: main ()
! 101257: {
! 101258: return $ac_func ();
! 101259: ;
! 101260: return 0;
! 101261: }
1.1 misho 101262: _ACEOF
1.1.1.3 ! misho 101263: rm -f conftest.$ac_objext conftest$ac_exeext
! 101264: if { (ac_try="$ac_link"
! 101265: case "(($ac_try" in
! 101266: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 101267: *) ac_try_echo=$ac_try;;
! 101268: esac
! 101269: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 101270: (eval "$ac_link") 2>conftest.er1
! 101271: ac_status=$?
! 101272: grep -v '^ *+' conftest.er1 >conftest.err
! 101273: rm -f conftest.er1
! 101274: cat conftest.err >&5
! 101275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 101276: (exit $ac_status); } && {
! 101277: test -z "$ac_c_werror_flag" ||
! 101278: test ! -s conftest.err
! 101279: } && test -s conftest$ac_exeext &&
! 101280: $as_test_x conftest$ac_exeext; then
! 101281: eval "$as_ac_var=yes"
! 101282: else
! 101283: echo "$as_me: failed program was:" >&5
! 101284: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 101285:
1.1.1.3 ! misho 101286: eval "$as_ac_var=no"
1.1 misho 101287: fi
101288:
1.1.1.3 ! misho 101289: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 101290: conftest$ac_exeext conftest.$ac_ext
! 101291: fi
! 101292: ac_res=`eval echo '${'$as_ac_var'}'`
! 101293: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 101294: echo "${ECHO_T}$ac_res" >&6; }
! 101295: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 101296: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 101297: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 101298: _ACEOF
101299:
101300: fi
101301: done
101302:
101303:
1.1.1.3 ! misho 101304: { echo "$as_me:$LINENO: checking for working ttyname_r() implementation" >&5
! 101305: echo $ECHO_N "checking for working ttyname_r() implementation... $ECHO_C" >&6; }
! 101306: if test "$cross_compiling" = yes; then
1.1 misho 101307:
1.1.1.3 ! misho 101308: { echo "$as_me:$LINENO: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5
! 101309: echo "${ECHO_T}no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; }
1.1 misho 101310:
101311: else
1.1.1.3 ! misho 101312: cat >conftest.$ac_ext <<_ACEOF
! 101313: /* confdefs.h. */
! 101314: _ACEOF
! 101315: cat confdefs.h >>conftest.$ac_ext
! 101316: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 101317: /* end confdefs.h. */
101318:
101319: #include <unistd.h>
101320:
101321: int main(int argc, char *argv[])
101322: {
101323: char buf[64];
101324:
101325: return ttyname_r(0, buf, 64) ? 1 : 0;
101326: }
101327:
101328: _ACEOF
1.1.1.3 ! misho 101329: rm -f conftest$ac_exeext
! 101330: if { (ac_try="$ac_link"
! 101331: case "(($ac_try" in
! 101332: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 101333: *) ac_try_echo=$ac_try;;
! 101334: esac
! 101335: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 101336: (eval "$ac_link") 2>&5
! 101337: ac_status=$?
! 101338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 101339: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 101340: { (case "(($ac_try" in
! 101341: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 101342: *) ac_try_echo=$ac_try;;
! 101343: esac
! 101344: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 101345: (eval "$ac_try") 2>&5
! 101346: ac_status=$?
! 101347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 101348: (exit $ac_status); }; }; then
1.1 misho 101349:
1.1.1.3 ! misho 101350: { echo "$as_me:$LINENO: result: yes" >&5
! 101351: echo "${ECHO_T}yes" >&6; }
1.1 misho 101352:
1.1.1.3 ! misho 101353: cat >>confdefs.h <<\_ACEOF
! 101354: #define HAVE_TTYNAME_R 1
! 101355: _ACEOF
1.1 misho 101356:
101357:
101358: else
1.1.1.3 ! misho 101359: echo "$as_me: program exited with status $ac_status" >&5
! 101360: echo "$as_me: failed program was:" >&5
! 101361: sed 's/^/| /' conftest.$ac_ext >&5
! 101362:
! 101363: ( exit $ac_status )
1.1 misho 101364:
1.1.1.3 ! misho 101365: { echo "$as_me:$LINENO: result: no, posix_ttyname() will be thread-unsafe" >&5
! 101366: echo "${ECHO_T}no, posix_ttyname() will be thread-unsafe" >&6; }
1.1 misho 101367:
101368: fi
1.1.1.3 ! misho 101369: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 101370: fi
101371:
101372:
1.1.1.3 ! misho 101373:
! 101374: { echo "$as_me:$LINENO: checking for utsname.domainname" >&5
! 101375: echo $ECHO_N "checking for utsname.domainname... $ECHO_C" >&6; }
! 101376: if test "${ac_cv_have_utsname_domainname+set}" = set; then
! 101377: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 101378: else
101379:
1.1.1.3 ! misho 101380: cat >conftest.$ac_ext <<_ACEOF
! 101381: /* confdefs.h. */
! 101382: _ACEOF
! 101383: cat confdefs.h >>conftest.$ac_ext
! 101384: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 101385: /* end confdefs.h. */
101386:
101387: #define _GNU_SOURCE
101388: #include <sys/utsname.h>
101389:
101390: int
101391: main ()
101392: {
101393:
101394: return sizeof(((struct utsname *)0)->domainname);
101395:
101396: ;
101397: return 0;
101398: }
101399: _ACEOF
1.1.1.3 ! misho 101400: rm -f conftest.$ac_objext
! 101401: if { (ac_try="$ac_compile"
! 101402: case "(($ac_try" in
! 101403: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 101404: *) ac_try_echo=$ac_try;;
! 101405: esac
! 101406: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 101407: (eval "$ac_compile") 2>conftest.er1
! 101408: ac_status=$?
! 101409: grep -v '^ *+' conftest.er1 >conftest.err
! 101410: rm -f conftest.er1
! 101411: cat conftest.err >&5
! 101412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 101413: (exit $ac_status); } && {
! 101414: test -z "$ac_c_werror_flag" ||
! 101415: test ! -s conftest.err
! 101416: } && test -s conftest.$ac_objext; then
1.1 misho 101417:
101418: ac_cv_have_utsname_domainname=yes
101419:
101420: else
1.1.1.3 ! misho 101421: echo "$as_me: failed program was:" >&5
! 101422: sed 's/^/| /' conftest.$ac_ext >&5
! 101423:
1.1 misho 101424:
101425: ac_cv_have_utsname_domainname=no
101426:
101427: fi
1.1.1.3 ! misho 101428:
1.1 misho 101429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101430:
101431: fi
1.1.1.3 ! misho 101432: { echo "$as_me:$LINENO: result: $ac_cv_have_utsname_domainname" >&5
! 101433: echo "${ECHO_T}$ac_cv_have_utsname_domainname" >&6; }
1.1 misho 101434: if test "$ac_cv_have_utsname_domainname" = yes; then
101435:
1.1.1.3 ! misho 101436: cat >>confdefs.h <<\_ACEOF
! 101437: #define HAVE_UTSNAME_DOMAINNAME 1
! 101438: _ACEOF
1.1 misho 101439:
101440: fi
101441: fi
101442:
101443:
101444:
101445: php_with_pspell=no
101446:
1.1.1.3 ! misho 101447: { echo "$as_me:$LINENO: checking for PSPELL support" >&5
! 101448: echo $ECHO_N "checking for PSPELL support... $ECHO_C" >&6; }
1.1 misho 101449:
101450: # Check whether --with-pspell was given.
1.1.1.3 ! misho 101451: if test "${with_pspell+set}" = set; then
1.1 misho 101452: withval=$with_pspell; PHP_PSPELL=$withval
101453: else
101454:
101455: PHP_PSPELL=no
101456: test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL
101457:
101458: fi
101459:
101460:
101461:
101462: ext_output="yes, shared"
101463: ext_shared=yes
101464: case $PHP_PSPELL in
101465: shared,*)
101466: PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'`
101467: ;;
101468: shared)
101469: PHP_PSPELL=yes
101470: ;;
101471: no)
101472: ext_output=no
101473: ext_shared=no
101474: ;;
101475: *)
101476: ext_output=yes
101477: ext_shared=no
101478: ;;
101479: esac
101480:
101481:
101482:
1.1.1.3 ! misho 101483: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 101484: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 101485:
101486:
101487:
101488:
101489: if test "$PHP_PSPELL" != "no"; then
101490:
101491: ext_builddir=ext/pspell
101492: ext_srcdir=$abs_srcdir/ext/pspell
101493:
101494: ac_extra=
101495:
101496: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
101497: PHP_PSPELL_SHARED=no
101498:
101499:
101500: case ext/pspell in
101501: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101502: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101503: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101504: esac
101505:
101506:
101507:
101508: b_c_pre=$php_c_pre
101509: b_cxx_pre=$php_cxx_pre
101510: b_c_meta=$php_c_meta
101511: b_cxx_meta=$php_cxx_meta
101512: b_c_post=$php_c_post
101513: b_cxx_post=$php_cxx_post
101514: b_lo=$php_lo
101515:
101516:
101517: old_IFS=$IFS
101518: for ac_src in pspell.c; do
101519:
101520: IFS=.
101521: set $ac_src
101522: ac_obj=$1
101523: IFS=$old_IFS
101524:
101525: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101526:
101527: case $ac_src in
101528: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101529: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101530: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101531: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101532: esac
101533:
101534: cat >>Makefile.objects<<EOF
101535: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101536: $ac_comp
101537: EOF
101538: done
101539:
101540:
101541: EXT_STATIC="$EXT_STATIC pspell"
101542: if test "$ext_shared" != "nocli"; then
101543: EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
101544: fi
101545: else
101546: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
101547: PHP_PSPELL_SHARED=yes
101548:
101549: case ext/pspell in
101550: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101551: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101552: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101553: esac
101554:
101555:
101556:
101557: b_c_pre=$shared_c_pre
101558: b_cxx_pre=$shared_cxx_pre
101559: b_c_meta=$shared_c_meta
101560: b_cxx_meta=$shared_cxx_meta
101561: b_c_post=$shared_c_post
101562: b_cxx_post=$shared_cxx_post
101563: b_lo=$shared_lo
101564:
101565:
101566: old_IFS=$IFS
101567: for ac_src in pspell.c; do
101568:
101569: IFS=.
101570: set $ac_src
101571: ac_obj=$1
101572: IFS=$old_IFS
101573:
101574: shared_objects_pspell="$shared_objects_pspell $ac_bdir$ac_obj.lo"
101575:
101576: case $ac_src in
101577: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101578: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101579: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101580: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101581: esac
101582:
101583: cat >>Makefile.objects<<EOF
101584: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101585: $ac_comp
101586: EOF
101587: done
101588:
101589: case $host_alias in
101590: *netware*)
101591:
101592: install_modules="install-modules"
101593:
101594: case $host_alias in
101595: *aix*)
101596: suffix=so
101597: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppspell.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PHPPSPELL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppspell.so '$ext_builddir'/phppspell.so'
101598: ;;
101599: *netware*)
101600: suffix=nlm
101601: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) -L$(top_builddir)/netware -lphp5lib $(PSPELL_SHARED_LIBADD)'
101602: ;;
101603: *)
101604: suffix=la
101605: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PHPPSPELL_SHARED_LIBADD)'
101606: ;;
101607: esac
101608:
101609: if test "x" = "xyes"; then
101610: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppspell.$suffix"
101611: else
101612: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppspell.$suffix"
101613: fi
101614:
101615: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
101616:
101617: cat >>Makefile.objects<<EOF
101618: \$(phplibdir)/phppspell.$suffix: $ext_builddir/phppspell.$suffix
101619: \$(LIBTOOL) --mode=install cp $ext_builddir/phppspell.$suffix \$(phplibdir)
101620:
101621: $ext_builddir/phppspell.$suffix: \$(shared_objects_pspell) \$(PHPPSPELL_SHARED_DEPENDENCIES)
101622: $link_cmd
101623:
101624: EOF
101625:
101626: ;;
101627: *)
101628:
101629: install_modules="install-modules"
101630:
101631: case $host_alias in
101632: *aix*)
101633: suffix=so
101634: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pspell.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PSPELL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pspell.so '$ext_builddir'/pspell.so'
101635: ;;
101636: *netware*)
101637: suffix=nlm
101638: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) -L$(top_builddir)/netware -lphp5lib $(ELL_SHARED_LIBADD)'
101639: ;;
101640: *)
101641: suffix=la
101642: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PSPELL_SHARED_LIBADD)'
101643: ;;
101644: esac
101645:
101646: if test "x" = "xyes"; then
101647: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pspell.$suffix"
101648: else
101649: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pspell.$suffix"
101650: fi
101651:
101652: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
101653:
101654: cat >>Makefile.objects<<EOF
101655: \$(phplibdir)/pspell.$suffix: $ext_builddir/pspell.$suffix
101656: \$(LIBTOOL) --mode=install cp $ext_builddir/pspell.$suffix \$(phplibdir)
101657:
101658: $ext_builddir/pspell.$suffix: \$(shared_objects_pspell) \$(PSPELL_SHARED_DEPENDENCIES)
101659: $link_cmd
101660:
101661: EOF
101662:
101663: ;;
101664: esac
101665:
101666: cat >>confdefs.h <<_ACEOF
101667: #define COMPILE_DL_PSPELL 1
101668: _ACEOF
101669:
101670: fi
101671: fi
101672:
101673: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
101674: PHP_PSPELL_SHARED=no
1.1.1.3 ! misho 101675: case "$PHP_SAPI" in
! 101676: cgi|embed)
1.1 misho 101677:
101678:
101679: case ext/pspell in
101680: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101681: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101682: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101683: esac
101684:
101685:
101686:
101687: b_c_pre=$php_c_pre
101688: b_cxx_pre=$php_cxx_pre
101689: b_c_meta=$php_c_meta
101690: b_cxx_meta=$php_cxx_meta
101691: b_c_post=$php_c_post
101692: b_cxx_post=$php_cxx_post
101693: b_lo=$php_lo
101694:
101695:
101696: old_IFS=$IFS
101697: for ac_src in pspell.c; do
101698:
101699: IFS=.
101700: set $ac_src
101701: ac_obj=$1
101702: IFS=$old_IFS
101703:
1.1.1.2 misho 101704: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 101705:
101706: case $ac_src in
101707: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101708: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101709: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101710: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101711: esac
101712:
101713: cat >>Makefile.objects<<EOF
101714: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101715: $ac_comp
101716: EOF
101717: done
101718:
101719:
1.1.1.3 ! misho 101720: EXT_STATIC="$EXT_STATIC pspell"
! 101721: ;;
! 101722: *)
1.1 misho 101723:
101724:
101725: case ext/pspell in
101726: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101727: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101728: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101729: esac
101730:
101731:
101732:
101733: b_c_pre=$php_c_pre
101734: b_cxx_pre=$php_cxx_pre
101735: b_c_meta=$php_c_meta
101736: b_cxx_meta=$php_cxx_meta
101737: b_c_post=$php_c_post
101738: b_cxx_post=$php_cxx_post
101739: b_lo=$php_lo
101740:
101741:
101742: old_IFS=$IFS
101743: for ac_src in pspell.c; do
101744:
101745: IFS=.
101746: set $ac_src
101747: ac_obj=$1
101748: IFS=$old_IFS
101749:
1.1.1.2 misho 101750: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 101751:
101752: case $ac_src in
101753: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101754: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101755: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101756: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101757: esac
101758:
101759: cat >>Makefile.objects<<EOF
101760: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101761: $ac_comp
101762: EOF
101763: done
101764:
101765:
1.1.1.3 ! misho 101766: ;;
! 101767: esac
1.1 misho 101768: EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
101769: fi
101770:
101771:
101772: BUILD_DIR="$BUILD_DIR $ext_builddir"
101773:
101774:
101775:
101776: if test "$ext_builddir" = "."; then
101777: PHP_PECL_EXTENSION=pspell
101778:
101779: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
101780:
101781: fi
101782:
101783: if test "$PHP_PSPELL" != "yes"; then
101784: PSPELL_SEARCH_DIRS=$PHP_PSPELL
101785: else
101786: PSPELL_SEARCH_DIRS="/usr/local /usr"
101787: fi
101788: for i in $PSPELL_SEARCH_DIRS; do
101789: if test -f $i/include/pspell/pspell.h; then
101790: PSPELL_DIR=$i
101791: PSPELL_INCDIR=$i/include/pspell
101792: elif test -f $i/include/pspell.h; then
101793: PSPELL_DIR=$i
101794: PSPELL_INCDIR=$i/include
101795: fi
101796: done
101797:
101798: if test -z "$PSPELL_DIR"; then
1.1.1.3 ! misho 101799: { { echo "$as_me:$LINENO: error: Cannot find pspell" >&5
! 101800: echo "$as_me: error: Cannot find pspell" >&2;}
! 101801: { (exit 1); exit 1; }; }
1.1 misho 101802: fi
101803:
101804: PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
101805:
101806:
101807:
101808: if test "$ext_shared" = "yes"; then
101809: PSPELL_SHARED_LIBADD="-lpspell $PSPELL_SHARED_LIBADD"
101810: if test -n "$PSPELL_LIBDIR"; then
101811:
101812: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
101813:
101814: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
101815: ai_p=$PSPELL_LIBDIR
101816: else
101817:
101818: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
101819:
101820: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101821: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
101822: fi
101823:
101824:
101825: if test "$ext_shared" = "yes"; then
101826: PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
101827: test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
101828: else
101829:
101830:
101831:
101832: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101833:
101834: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101835: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101836: eval "LIBPATH$unique=set"
101837:
101838: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101839: LDFLAGS="$LDFLAGS -L$ai_p"
101840: PHP_RPATHS="$PHP_RPATHS $ai_p"
101841:
101842: fi
101843:
101844:
101845: fi
101846:
101847: fi
101848:
101849: fi
101850: else
101851:
101852:
101853: if test -n "$PSPELL_LIBDIR"; then
101854:
101855: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
101856:
101857: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
101858: ai_p=$PSPELL_LIBDIR
101859: else
101860:
101861: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
101862:
101863: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101864: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
101865: fi
101866:
101867:
101868:
101869:
101870:
101871: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101872:
101873: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101874: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101875: eval "LIBPATH$unique=set"
101876:
101877: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101878: LDFLAGS="$LDFLAGS -L$ai_p"
101879: PHP_RPATHS="$PHP_RPATHS $ai_p"
101880:
101881: fi
101882:
101883:
101884:
101885: fi
101886:
101887: fi
101888:
101889:
101890: case pspell in
101891: c|c_r|pthread*) ;;
101892: *)
101893: LIBS="-lpspell $LIBS"
101894: ;;
101895: esac
101896:
101897:
101898:
101899:
101900: fi
101901:
101902:
101903:
101904:
101905: save_old_LDFLAGS=$LDFLAGS
101906: ac_stuff="
101907: -L$PSPELL_LIBDIR
101908: "
101909:
101910: save_ext_shared=$ext_shared
101911: ext_shared=yes
101912:
101913: for ac_i in $ac_stuff; do
101914: case $ac_i in
101915: -pthread)
101916: if test "$ext_shared" = "yes"; then
101917: LDFLAGS="$LDFLAGS -pthread"
101918: else
101919:
101920:
101921: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
101922:
101923: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
101924: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101925: eval "EXTRA_LDFLAGS$unique=set"
101926: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
101927: fi
101928:
101929: fi
101930: ;;
101931: -l*)
101932: ac_ii=`echo $ac_i|cut -c 3-`
101933:
101934:
101935: case $ac_ii in
101936: c|c_r|pthread*) ;;
101937: *)
101938: if test "$ext_shared" = "yes"; then
101939: LDFLAGS="$LDFLAGS -l$ac_ii"
101940: else
101941:
101942:
101943: case $ac_ii in
101944: c|c_r|pthread*) ;;
101945: *)
101946: LIBS="$LIBS -l$ac_ii"
101947: ;;
101948: esac
101949:
101950:
101951: fi
101952: ;;
101953: esac
101954:
101955:
101956: ;;
101957: -L*)
101958: ac_ii=`echo $ac_i|cut -c 3-`
101959:
101960: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
101961:
101962: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
101963: ai_p=$ac_ii
101964: else
101965:
101966: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
101967:
101968: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101969: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
101970: fi
101971:
101972:
101973: if test "$ext_shared" = "yes"; then
101974: LDFLAGS="-L$ai_p $LDFLAGS"
101975: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
101976: else
101977:
101978:
101979:
101980: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101981:
101982: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101983: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101984: eval "LIBPATH$unique=set"
101985:
101986: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101987: LDFLAGS="$LDFLAGS -L$ai_p"
101988: PHP_RPATHS="$PHP_RPATHS $ai_p"
101989:
101990: fi
101991:
101992:
101993: fi
101994:
101995: fi
101996:
101997: ;;
101998: esac
101999: done
102000:
1.1.1.3 ! misho 102001: { echo "$as_me:$LINENO: checking for new_aspell_config in -laspell" >&5
! 102002: echo $ECHO_N "checking for new_aspell_config in -laspell... $ECHO_C" >&6; }
! 102003: if test "${ac_cv_lib_aspell_new_aspell_config+set}" = set; then
! 102004: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 102005: else
102006: ac_check_lib_save_LIBS=$LIBS
102007: LIBS="-laspell $LIBS"
1.1.1.3 ! misho 102008: cat >conftest.$ac_ext <<_ACEOF
! 102009: /* confdefs.h. */
! 102010: _ACEOF
! 102011: cat confdefs.h >>conftest.$ac_ext
! 102012: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 102013: /* end confdefs.h. */
102014:
102015: /* Override any GCC internal prototype to avoid an error.
102016: Use char because int might match the return type of a GCC
102017: builtin and then its argument prototype would still apply. */
102018: #ifdef __cplusplus
102019: extern "C"
102020: #endif
102021: char new_aspell_config ();
102022: int
102023: main ()
102024: {
102025: return new_aspell_config ();
102026: ;
102027: return 0;
102028: }
102029: _ACEOF
1.1.1.3 ! misho 102030: rm -f conftest.$ac_objext conftest$ac_exeext
! 102031: if { (ac_try="$ac_link"
! 102032: case "(($ac_try" in
! 102033: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 102034: *) ac_try_echo=$ac_try;;
! 102035: esac
! 102036: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 102037: (eval "$ac_link") 2>conftest.er1
! 102038: ac_status=$?
! 102039: grep -v '^ *+' conftest.er1 >conftest.err
! 102040: rm -f conftest.er1
! 102041: cat conftest.err >&5
! 102042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 102043: (exit $ac_status); } && {
! 102044: test -z "$ac_c_werror_flag" ||
! 102045: test ! -s conftest.err
! 102046: } && test -s conftest$ac_exeext &&
! 102047: $as_test_x conftest$ac_exeext; then
1.1 misho 102048: ac_cv_lib_aspell_new_aspell_config=yes
102049: else
1.1.1.3 ! misho 102050: echo "$as_me: failed program was:" >&5
! 102051: sed 's/^/| /' conftest.$ac_ext >&5
! 102052:
! 102053: ac_cv_lib_aspell_new_aspell_config=no
1.1 misho 102054: fi
1.1.1.3 ! misho 102055:
! 102056: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 102057: conftest$ac_exeext conftest.$ac_ext
1.1 misho 102058: LIBS=$ac_check_lib_save_LIBS
102059: fi
1.1.1.3 ! misho 102060: { echo "$as_me:$LINENO: result: $ac_cv_lib_aspell_new_aspell_config" >&5
! 102061: echo "${ECHO_T}$ac_cv_lib_aspell_new_aspell_config" >&6; }
! 102062: if test $ac_cv_lib_aspell_new_aspell_config = yes; then
1.1 misho 102063:
102064: LDFLAGS=$save_old_LDFLAGS
102065: ext_shared=$save_ext_shared
102066:
102067:
102068:
102069: if test "$ext_shared" = "yes"; then
102070: PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD"
102071: if test -n "$PSPELL_LIBDIR"; then
102072:
102073: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
102074:
102075: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
102076: ai_p=$PSPELL_LIBDIR
102077: else
102078:
102079: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102080:
102081: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102082: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
102083: fi
102084:
102085:
102086: if test "$ext_shared" = "yes"; then
102087: PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
102088: test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
102089: else
102090:
102091:
102092:
102093: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102094:
102095: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102096: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102097: eval "LIBPATH$unique=set"
102098:
102099: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102100: LDFLAGS="$LDFLAGS -L$ai_p"
102101: PHP_RPATHS="$PHP_RPATHS $ai_p"
102102:
102103: fi
102104:
102105:
102106: fi
102107:
102108: fi
102109:
102110: fi
102111: else
102112:
102113:
102114: if test -n "$PSPELL_LIBDIR"; then
102115:
102116: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
102117:
102118: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
102119: ai_p=$PSPELL_LIBDIR
102120: else
102121:
102122: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102123:
102124: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102125: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
102126: fi
102127:
102128:
102129:
102130:
102131:
102132: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102133:
102134: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102135: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102136: eval "LIBPATH$unique=set"
102137:
102138: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102139: LDFLAGS="$LDFLAGS -L$ai_p"
102140: PHP_RPATHS="$PHP_RPATHS $ai_p"
102141:
102142: fi
102143:
102144:
102145:
102146: fi
102147:
102148: fi
102149:
102150:
102151: case aspell in
102152: c|c_r|pthread*) ;;
102153: *)
102154: LIBS="-laspell $LIBS"
102155: ;;
102156: esac
102157:
102158:
102159:
102160:
102161: fi
102162:
102163:
102164:
102165:
102166: else
102167:
102168: LDFLAGS=$save_old_LDFLAGS
102169: ext_shared=$save_ext_shared
102170: unset ac_cv_lib_aspell_new_aspell_config
102171:
102172:
102173: fi
102174:
102175:
102176:
102177: if test "$PSPELL_INCDIR" != "/usr/include"; then
102178:
102179: if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then
102180: ai_p=$PSPELL_INCDIR
102181: else
102182:
102183: ep_dir="`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102184:
102185: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102186: ai_p="$ep_realdir/`basename \"$PSPELL_INCDIR\"`"
102187: fi
102188:
102189:
102190:
102191: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102192:
102193: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
102194: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102195: eval "INCLUDEPATH$unique=set"
102196:
102197: if test ""; then
102198: INCLUDES="-I$ai_p $INCLUDES"
102199: else
102200: INCLUDES="$INCLUDES -I$ai_p"
102201: fi
102202:
102203: fi
102204:
102205: fi
102206:
102207:
102208: PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD"
102209:
102210:
1.1.1.3 ! misho 102211: cat >>confdefs.h <<\_ACEOF
! 102212: #define HAVE_PSPELL 1
! 102213: _ACEOF
1.1 misho 102214:
102215: fi
102216:
102217:
102218:
102219: php_with_libedit=no
102220:
1.1.1.3 ! misho 102221: { echo "$as_me:$LINENO: checking for libedit readline replacement" >&5
! 102222: echo $ECHO_N "checking for libedit readline replacement... $ECHO_C" >&6; }
1.1 misho 102223:
102224: # Check whether --with-libedit was given.
1.1.1.3 ! misho 102225: if test "${with_libedit+set}" = set; then
1.1 misho 102226: withval=$with_libedit; PHP_LIBEDIT=$withval
102227: else
102228:
102229: PHP_LIBEDIT=no
102230: test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL
102231:
102232: fi
102233:
102234:
102235:
102236: ext_output="yes, shared"
102237: ext_shared=yes
102238: case $PHP_LIBEDIT in
102239: shared,*)
102240: PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'`
102241: ;;
102242: shared)
102243: PHP_LIBEDIT=yes
102244: ;;
102245: no)
102246: ext_output=no
102247: ext_shared=no
102248: ;;
102249: *)
102250: ext_output=yes
102251: ext_shared=no
102252: ;;
102253: esac
102254:
102255:
102256:
1.1.1.3 ! misho 102257: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 102258: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 102259:
102260:
102261:
102262:
102263: if test "$PHP_LIBEDIT" = "no"; then
102264:
102265: php_with_readline=no
102266:
1.1.1.3 ! misho 102267: { echo "$as_me:$LINENO: checking for readline support" >&5
! 102268: echo $ECHO_N "checking for readline support... $ECHO_C" >&6; }
1.1 misho 102269:
102270: # Check whether --with-readline was given.
1.1.1.3 ! misho 102271: if test "${with_readline+set}" = set; then
1.1 misho 102272: withval=$with_readline; PHP_READLINE=$withval
102273: else
102274:
102275: PHP_READLINE=no
102276: test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL
102277:
102278: fi
102279:
102280:
102281:
102282: ext_output="yes, shared"
102283: ext_shared=yes
102284: case $PHP_READLINE in
102285: shared,*)
102286: PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'`
102287: ;;
102288: shared)
102289: PHP_READLINE=yes
102290: ;;
102291: no)
102292: ext_output=no
102293: ext_shared=no
102294: ;;
102295: *)
102296: ext_output=yes
102297: ext_shared=no
102298: ;;
102299: esac
102300:
102301:
102302:
1.1.1.3 ! misho 102303: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 102304: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 102305:
102306:
102307:
102308: else
102309: php_with_readline=no
102310: fi
102311:
102312: if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
102313: for i in $PHP_READLINE /usr/local /usr; do
102314: test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
102315: done
102316:
102317: if test -z "$READLINE_DIR"; then
1.1.1.3 ! misho 102318: { { echo "$as_me:$LINENO: error: Please reinstall readline - I cannot find readline.h" >&5
! 102319: echo "$as_me: error: Please reinstall readline - I cannot find readline.h" >&2;}
! 102320: { (exit 1); exit 1; }; }
1.1 misho 102321: fi
102322:
102323:
102324: if test "$READLINE_DIR/include" != "/usr/include"; then
102325:
102326: if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then
102327: ai_p=$READLINE_DIR/include
102328: else
102329:
102330: ep_dir="`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
102331:
102332: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102333: ai_p="$ep_realdir/`basename \"$READLINE_DIR/include\"`"
102334: fi
102335:
102336:
102337:
102338: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102339:
102340: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
102341: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102342: eval "INCLUDEPATH$unique=set"
102343:
102344: if test ""; then
102345: INCLUDES="-I$ai_p $INCLUDES"
102346: else
102347: INCLUDES="$INCLUDES -I$ai_p"
102348: fi
102349:
102350: fi
102351:
102352: fi
102353:
102354:
102355: PHP_READLINE_LIBS=""
1.1.1.3 ! misho 102356: { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
! 102357: echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
! 102358: if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
! 102359: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 102360: else
102361: ac_check_lib_save_LIBS=$LIBS
102362: LIBS="-lncurses $LIBS"
1.1.1.3 ! misho 102363: cat >conftest.$ac_ext <<_ACEOF
! 102364: /* confdefs.h. */
! 102365: _ACEOF
! 102366: cat confdefs.h >>conftest.$ac_ext
! 102367: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 102368: /* end confdefs.h. */
102369:
102370: /* Override any GCC internal prototype to avoid an error.
102371: Use char because int might match the return type of a GCC
102372: builtin and then its argument prototype would still apply. */
102373: #ifdef __cplusplus
102374: extern "C"
102375: #endif
102376: char tgetent ();
102377: int
102378: main ()
102379: {
102380: return tgetent ();
102381: ;
102382: return 0;
102383: }
102384: _ACEOF
1.1.1.3 ! misho 102385: rm -f conftest.$ac_objext conftest$ac_exeext
! 102386: if { (ac_try="$ac_link"
! 102387: case "(($ac_try" in
! 102388: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 102389: *) ac_try_echo=$ac_try;;
! 102390: esac
! 102391: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 102392: (eval "$ac_link") 2>conftest.er1
! 102393: ac_status=$?
! 102394: grep -v '^ *+' conftest.er1 >conftest.err
! 102395: rm -f conftest.er1
! 102396: cat conftest.err >&5
! 102397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 102398: (exit $ac_status); } && {
! 102399: test -z "$ac_c_werror_flag" ||
! 102400: test ! -s conftest.err
! 102401: } && test -s conftest$ac_exeext &&
! 102402: $as_test_x conftest$ac_exeext; then
1.1 misho 102403: ac_cv_lib_ncurses_tgetent=yes
102404: else
1.1.1.3 ! misho 102405: echo "$as_me: failed program was:" >&5
! 102406: sed 's/^/| /' conftest.$ac_ext >&5
! 102407:
! 102408: ac_cv_lib_ncurses_tgetent=no
1.1 misho 102409: fi
1.1.1.3 ! misho 102410:
! 102411: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 102412: conftest$ac_exeext conftest.$ac_ext
1.1 misho 102413: LIBS=$ac_check_lib_save_LIBS
102414: fi
1.1.1.3 ! misho 102415: { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
! 102416: echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
! 102417: if test $ac_cv_lib_ncurses_tgetent = yes; then
1.1 misho 102418:
102419:
102420:
102421: case ncurses in
102422: c|c_r|pthread*) ;;
102423: *)
102424: if test "$ext_shared" = "yes"; then
102425: READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
102426: else
102427:
102428:
102429: case ncurses in
102430: c|c_r|pthread*) ;;
102431: *)
102432: LIBS="-lncurses $LIBS"
102433: ;;
102434: esac
102435:
102436:
102437: fi
102438: ;;
102439: esac
102440:
102441:
102442: PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses"
102443:
102444: else
102445:
1.1.1.3 ! misho 102446: { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
! 102447: echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
! 102448: if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
! 102449: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 102450: else
102451: ac_check_lib_save_LIBS=$LIBS
102452: LIBS="-ltermcap $LIBS"
1.1.1.3 ! misho 102453: cat >conftest.$ac_ext <<_ACEOF
! 102454: /* confdefs.h. */
! 102455: _ACEOF
! 102456: cat confdefs.h >>conftest.$ac_ext
! 102457: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 102458: /* end confdefs.h. */
102459:
102460: /* Override any GCC internal prototype to avoid an error.
102461: Use char because int might match the return type of a GCC
102462: builtin and then its argument prototype would still apply. */
102463: #ifdef __cplusplus
102464: extern "C"
102465: #endif
102466: char tgetent ();
102467: int
102468: main ()
102469: {
102470: return tgetent ();
102471: ;
102472: return 0;
102473: }
102474: _ACEOF
1.1.1.3 ! misho 102475: rm -f conftest.$ac_objext conftest$ac_exeext
! 102476: if { (ac_try="$ac_link"
! 102477: case "(($ac_try" in
! 102478: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 102479: *) ac_try_echo=$ac_try;;
! 102480: esac
! 102481: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 102482: (eval "$ac_link") 2>conftest.er1
! 102483: ac_status=$?
! 102484: grep -v '^ *+' conftest.er1 >conftest.err
! 102485: rm -f conftest.er1
! 102486: cat conftest.err >&5
! 102487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 102488: (exit $ac_status); } && {
! 102489: test -z "$ac_c_werror_flag" ||
! 102490: test ! -s conftest.err
! 102491: } && test -s conftest$ac_exeext &&
! 102492: $as_test_x conftest$ac_exeext; then
1.1 misho 102493: ac_cv_lib_termcap_tgetent=yes
102494: else
1.1.1.3 ! misho 102495: echo "$as_me: failed program was:" >&5
! 102496: sed 's/^/| /' conftest.$ac_ext >&5
! 102497:
! 102498: ac_cv_lib_termcap_tgetent=no
1.1 misho 102499: fi
1.1.1.3 ! misho 102500:
! 102501: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 102502: conftest$ac_exeext conftest.$ac_ext
1.1 misho 102503: LIBS=$ac_check_lib_save_LIBS
102504: fi
1.1.1.3 ! misho 102505: { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
! 102506: echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
! 102507: if test $ac_cv_lib_termcap_tgetent = yes; then
1.1 misho 102508:
102509:
102510:
102511: case termcap in
102512: c|c_r|pthread*) ;;
102513: *)
102514: if test "$ext_shared" = "yes"; then
102515: READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
102516: else
102517:
102518:
102519: case termcap in
102520: c|c_r|pthread*) ;;
102521: *)
102522: LIBS="-ltermcap $LIBS"
102523: ;;
102524: esac
102525:
102526:
102527: fi
102528: ;;
102529: esac
102530:
102531:
102532: PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap"
102533:
102534: fi
102535:
102536:
102537: fi
102538:
102539:
102540:
102541: save_old_LDFLAGS=$LDFLAGS
102542: ac_stuff="
102543: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
102544: "
102545:
102546: save_ext_shared=$ext_shared
102547: ext_shared=yes
102548:
102549: for ac_i in $ac_stuff; do
102550: case $ac_i in
102551: -pthread)
102552: if test "$ext_shared" = "yes"; then
102553: LDFLAGS="$LDFLAGS -pthread"
102554: else
102555:
102556:
102557: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
102558:
102559: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
102560: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102561: eval "EXTRA_LDFLAGS$unique=set"
102562: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
102563: fi
102564:
102565: fi
102566: ;;
102567: -l*)
102568: ac_ii=`echo $ac_i|cut -c 3-`
102569:
102570:
102571: case $ac_ii in
102572: c|c_r|pthread*) ;;
102573: *)
102574: if test "$ext_shared" = "yes"; then
102575: LDFLAGS="$LDFLAGS -l$ac_ii"
102576: else
102577:
102578:
102579: case $ac_ii in
102580: c|c_r|pthread*) ;;
102581: *)
102582: LIBS="$LIBS -l$ac_ii"
102583: ;;
102584: esac
102585:
102586:
102587: fi
102588: ;;
102589: esac
102590:
102591:
102592: ;;
102593: -L*)
102594: ac_ii=`echo $ac_i|cut -c 3-`
102595:
102596: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
102597:
102598: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
102599: ai_p=$ac_ii
102600: else
102601:
102602: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
102603:
102604: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102605: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
102606: fi
102607:
102608:
102609: if test "$ext_shared" = "yes"; then
102610: LDFLAGS="-L$ai_p $LDFLAGS"
102611: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
102612: else
102613:
102614:
102615:
102616: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102617:
102618: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102619: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102620: eval "LIBPATH$unique=set"
102621:
102622: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102623: LDFLAGS="$LDFLAGS -L$ai_p"
102624: PHP_RPATHS="$PHP_RPATHS $ai_p"
102625:
102626: fi
102627:
102628:
102629: fi
102630:
102631: fi
102632:
102633: ;;
102634: esac
102635: done
102636:
1.1.1.3 ! misho 102637: { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
! 102638: echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
! 102639: if test "${ac_cv_lib_readline_readline+set}" = set; then
! 102640: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 102641: else
102642: ac_check_lib_save_LIBS=$LIBS
102643: LIBS="-lreadline $LIBS"
1.1.1.3 ! misho 102644: cat >conftest.$ac_ext <<_ACEOF
! 102645: /* confdefs.h. */
! 102646: _ACEOF
! 102647: cat confdefs.h >>conftest.$ac_ext
! 102648: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 102649: /* end confdefs.h. */
102650:
102651: /* Override any GCC internal prototype to avoid an error.
102652: Use char because int might match the return type of a GCC
102653: builtin and then its argument prototype would still apply. */
102654: #ifdef __cplusplus
102655: extern "C"
102656: #endif
102657: char readline ();
102658: int
102659: main ()
102660: {
102661: return readline ();
102662: ;
102663: return 0;
102664: }
102665: _ACEOF
1.1.1.3 ! misho 102666: rm -f conftest.$ac_objext conftest$ac_exeext
! 102667: if { (ac_try="$ac_link"
! 102668: case "(($ac_try" in
! 102669: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 102670: *) ac_try_echo=$ac_try;;
! 102671: esac
! 102672: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 102673: (eval "$ac_link") 2>conftest.er1
! 102674: ac_status=$?
! 102675: grep -v '^ *+' conftest.er1 >conftest.err
! 102676: rm -f conftest.er1
! 102677: cat conftest.err >&5
! 102678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 102679: (exit $ac_status); } && {
! 102680: test -z "$ac_c_werror_flag" ||
! 102681: test ! -s conftest.err
! 102682: } && test -s conftest$ac_exeext &&
! 102683: $as_test_x conftest$ac_exeext; then
1.1 misho 102684: ac_cv_lib_readline_readline=yes
102685: else
1.1.1.3 ! misho 102686: echo "$as_me: failed program was:" >&5
! 102687: sed 's/^/| /' conftest.$ac_ext >&5
! 102688:
! 102689: ac_cv_lib_readline_readline=no
1.1 misho 102690: fi
1.1.1.3 ! misho 102691:
! 102692: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 102693: conftest$ac_exeext conftest.$ac_ext
1.1 misho 102694: LIBS=$ac_check_lib_save_LIBS
102695: fi
1.1.1.3 ! misho 102696: { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
! 102697: echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
! 102698: if test $ac_cv_lib_readline_readline = yes; then
1.1 misho 102699:
102700: LDFLAGS=$save_old_LDFLAGS
102701: ext_shared=$save_ext_shared
102702:
102703:
102704:
102705: if test "$ext_shared" = "yes"; then
102706: READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD"
102707: if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
102708:
102709: if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102710:
102711: if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102712: ai_p=$READLINE_DIR/$PHP_LIBDIR
102713: else
102714:
102715: ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102716:
102717: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102718: ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
102719: fi
102720:
102721:
102722: if test "$ext_shared" = "yes"; then
102723: READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
102724: test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
102725: else
102726:
102727:
102728:
102729: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102730:
102731: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102732: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102733: eval "LIBPATH$unique=set"
102734:
102735: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102736: LDFLAGS="$LDFLAGS -L$ai_p"
102737: PHP_RPATHS="$PHP_RPATHS $ai_p"
102738:
102739: fi
102740:
102741:
102742: fi
102743:
102744: fi
102745:
102746: fi
102747: else
102748:
102749:
102750: if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
102751:
102752: if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102753:
102754: if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102755: ai_p=$READLINE_DIR/$PHP_LIBDIR
102756: else
102757:
102758: ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102759:
102760: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102761: ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
102762: fi
102763:
102764:
102765:
102766:
102767:
102768: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102769:
102770: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102771: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102772: eval "LIBPATH$unique=set"
102773:
102774: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102775: LDFLAGS="$LDFLAGS -L$ai_p"
102776: PHP_RPATHS="$PHP_RPATHS $ai_p"
102777:
102778: fi
102779:
102780:
102781:
102782: fi
102783:
102784: fi
102785:
102786:
102787: case readline in
102788: c|c_r|pthread*) ;;
102789: *)
102790: LIBS="-lreadline $LIBS"
102791: ;;
102792: esac
102793:
102794:
102795:
102796:
102797: fi
102798:
102799:
102800:
102801:
102802: else
102803:
102804: LDFLAGS=$save_old_LDFLAGS
102805: ext_shared=$save_ext_shared
102806: unset ac_cv_lib_readline_readline
102807:
1.1.1.3 ! misho 102808: { { echo "$as_me:$LINENO: error: readline library not found" >&5
! 102809: echo "$as_me: error: readline library not found" >&2;}
! 102810: { (exit 1); exit 1; }; }
1.1 misho 102811:
102812:
102813: fi
102814:
102815:
102816:
102817: save_old_LDFLAGS=$LDFLAGS
102818: ac_stuff="
102819: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
102820: "
102821:
102822: save_ext_shared=$ext_shared
102823: ext_shared=yes
102824:
102825: for ac_i in $ac_stuff; do
102826: case $ac_i in
102827: -pthread)
102828: if test "$ext_shared" = "yes"; then
102829: LDFLAGS="$LDFLAGS -pthread"
102830: else
102831:
102832:
102833: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
102834:
102835: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
102836: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102837: eval "EXTRA_LDFLAGS$unique=set"
102838: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
102839: fi
102840:
102841: fi
102842: ;;
102843: -l*)
102844: ac_ii=`echo $ac_i|cut -c 3-`
102845:
102846:
102847: case $ac_ii in
102848: c|c_r|pthread*) ;;
102849: *)
102850: if test "$ext_shared" = "yes"; then
102851: LDFLAGS="$LDFLAGS -l$ac_ii"
102852: else
102853:
102854:
102855: case $ac_ii in
102856: c|c_r|pthread*) ;;
102857: *)
102858: LIBS="$LIBS -l$ac_ii"
102859: ;;
102860: esac
102861:
102862:
102863: fi
102864: ;;
102865: esac
102866:
102867:
102868: ;;
102869: -L*)
102870: ac_ii=`echo $ac_i|cut -c 3-`
102871:
102872: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
102873:
102874: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
102875: ai_p=$ac_ii
102876: else
102877:
102878: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
102879:
102880: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102881: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
102882: fi
102883:
102884:
102885: if test "$ext_shared" = "yes"; then
102886: LDFLAGS="-L$ai_p $LDFLAGS"
102887: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
102888: else
102889:
102890:
102891:
102892: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102893:
102894: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102895: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102896: eval "LIBPATH$unique=set"
102897:
102898: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102899: LDFLAGS="$LDFLAGS -L$ai_p"
102900: PHP_RPATHS="$PHP_RPATHS $ai_p"
102901:
102902: fi
102903:
102904:
102905: fi
102906:
102907: fi
102908:
102909: ;;
102910: esac
102911: done
102912:
1.1.1.3 ! misho 102913: { echo "$as_me:$LINENO: checking for rl_pending_input in -lreadline" >&5
! 102914: echo $ECHO_N "checking for rl_pending_input in -lreadline... $ECHO_C" >&6; }
! 102915: if test "${ac_cv_lib_readline_rl_pending_input+set}" = set; then
! 102916: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 102917: else
102918: ac_check_lib_save_LIBS=$LIBS
102919: LIBS="-lreadline $LIBS"
1.1.1.3 ! misho 102920: cat >conftest.$ac_ext <<_ACEOF
! 102921: /* confdefs.h. */
! 102922: _ACEOF
! 102923: cat confdefs.h >>conftest.$ac_ext
! 102924: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 102925: /* end confdefs.h. */
102926:
102927: /* Override any GCC internal prototype to avoid an error.
102928: Use char because int might match the return type of a GCC
102929: builtin and then its argument prototype would still apply. */
102930: #ifdef __cplusplus
102931: extern "C"
102932: #endif
102933: char rl_pending_input ();
102934: int
102935: main ()
102936: {
102937: return rl_pending_input ();
102938: ;
102939: return 0;
102940: }
102941: _ACEOF
1.1.1.3 ! misho 102942: rm -f conftest.$ac_objext conftest$ac_exeext
! 102943: if { (ac_try="$ac_link"
! 102944: case "(($ac_try" in
! 102945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 102946: *) ac_try_echo=$ac_try;;
! 102947: esac
! 102948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 102949: (eval "$ac_link") 2>conftest.er1
! 102950: ac_status=$?
! 102951: grep -v '^ *+' conftest.er1 >conftest.err
! 102952: rm -f conftest.er1
! 102953: cat conftest.err >&5
! 102954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 102955: (exit $ac_status); } && {
! 102956: test -z "$ac_c_werror_flag" ||
! 102957: test ! -s conftest.err
! 102958: } && test -s conftest$ac_exeext &&
! 102959: $as_test_x conftest$ac_exeext; then
1.1 misho 102960: ac_cv_lib_readline_rl_pending_input=yes
102961: else
1.1.1.3 ! misho 102962: echo "$as_me: failed program was:" >&5
! 102963: sed 's/^/| /' conftest.$ac_ext >&5
! 102964:
! 102965: ac_cv_lib_readline_rl_pending_input=no
1.1 misho 102966: fi
1.1.1.3 ! misho 102967:
! 102968: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 102969: conftest$ac_exeext conftest.$ac_ext
1.1 misho 102970: LIBS=$ac_check_lib_save_LIBS
102971: fi
1.1.1.3 ! misho 102972: { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pending_input" >&5
! 102973: echo "${ECHO_T}$ac_cv_lib_readline_rl_pending_input" >&6; }
! 102974: if test $ac_cv_lib_readline_rl_pending_input = yes; then
1.1 misho 102975:
102976: LDFLAGS=$save_old_LDFLAGS
102977: ext_shared=$save_ext_shared
102978:
102979:
102980: else
102981:
102982: LDFLAGS=$save_old_LDFLAGS
102983: ext_shared=$save_ext_shared
102984: unset ac_cv_lib_readline_rl_pending_input
102985:
1.1.1.3 ! misho 102986: { { echo "$as_me:$LINENO: error: invalid readline installation detected. Try --with-libedit instead." >&5
! 102987: echo "$as_me: error: invalid readline installation detected. Try --with-libedit instead." >&2;}
! 102988: { (exit 1); exit 1; }; }
1.1 misho 102989:
102990:
102991: fi
102992:
102993:
102994:
102995: save_old_LDFLAGS=$LDFLAGS
102996: ac_stuff="
102997: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
102998: "
102999:
103000: save_ext_shared=$ext_shared
103001: ext_shared=yes
103002:
103003: for ac_i in $ac_stuff; do
103004: case $ac_i in
103005: -pthread)
103006: if test "$ext_shared" = "yes"; then
103007: LDFLAGS="$LDFLAGS -pthread"
103008: else
103009:
103010:
103011: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103012:
103013: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103014: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103015: eval "EXTRA_LDFLAGS$unique=set"
103016: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103017: fi
103018:
103019: fi
103020: ;;
103021: -l*)
103022: ac_ii=`echo $ac_i|cut -c 3-`
103023:
103024:
103025: case $ac_ii in
103026: c|c_r|pthread*) ;;
103027: *)
103028: if test "$ext_shared" = "yes"; then
103029: LDFLAGS="$LDFLAGS -l$ac_ii"
103030: else
103031:
103032:
103033: case $ac_ii in
103034: c|c_r|pthread*) ;;
103035: *)
103036: LIBS="$LIBS -l$ac_ii"
103037: ;;
103038: esac
103039:
103040:
103041: fi
103042: ;;
103043: esac
103044:
103045:
103046: ;;
103047: -L*)
103048: ac_ii=`echo $ac_i|cut -c 3-`
103049:
103050: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103051:
103052: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103053: ai_p=$ac_ii
103054: else
103055:
103056: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
103057:
103058: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103059: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
103060: fi
103061:
103062:
103063: if test "$ext_shared" = "yes"; then
103064: LDFLAGS="-L$ai_p $LDFLAGS"
103065: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103066: else
103067:
103068:
103069:
103070: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103071:
103072: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103073: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103074: eval "LIBPATH$unique=set"
103075:
103076: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103077: LDFLAGS="$LDFLAGS -L$ai_p"
103078: PHP_RPATHS="$PHP_RPATHS $ai_p"
103079:
103080: fi
103081:
103082:
103083: fi
103084:
103085: fi
103086:
103087: ;;
103088: esac
103089: done
103090:
1.1.1.3 ! misho 103091: { echo "$as_me:$LINENO: checking for rl_callback_read_char in -lreadline" >&5
! 103092: echo $ECHO_N "checking for rl_callback_read_char in -lreadline... $ECHO_C" >&6; }
! 103093: if test "${ac_cv_lib_readline_rl_callback_read_char+set}" = set; then
! 103094: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 103095: else
103096: ac_check_lib_save_LIBS=$LIBS
103097: LIBS="-lreadline $LIBS"
1.1.1.3 ! misho 103098: cat >conftest.$ac_ext <<_ACEOF
! 103099: /* confdefs.h. */
! 103100: _ACEOF
! 103101: cat confdefs.h >>conftest.$ac_ext
! 103102: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 103103: /* end confdefs.h. */
103104:
103105: /* Override any GCC internal prototype to avoid an error.
103106: Use char because int might match the return type of a GCC
103107: builtin and then its argument prototype would still apply. */
103108: #ifdef __cplusplus
103109: extern "C"
103110: #endif
103111: char rl_callback_read_char ();
103112: int
103113: main ()
103114: {
103115: return rl_callback_read_char ();
103116: ;
103117: return 0;
103118: }
103119: _ACEOF
1.1.1.3 ! misho 103120: rm -f conftest.$ac_objext conftest$ac_exeext
! 103121: if { (ac_try="$ac_link"
! 103122: case "(($ac_try" in
! 103123: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 103124: *) ac_try_echo=$ac_try;;
! 103125: esac
! 103126: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 103127: (eval "$ac_link") 2>conftest.er1
! 103128: ac_status=$?
! 103129: grep -v '^ *+' conftest.er1 >conftest.err
! 103130: rm -f conftest.er1
! 103131: cat conftest.err >&5
! 103132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 103133: (exit $ac_status); } && {
! 103134: test -z "$ac_c_werror_flag" ||
! 103135: test ! -s conftest.err
! 103136: } && test -s conftest$ac_exeext &&
! 103137: $as_test_x conftest$ac_exeext; then
1.1 misho 103138: ac_cv_lib_readline_rl_callback_read_char=yes
103139: else
1.1.1.3 ! misho 103140: echo "$as_me: failed program was:" >&5
! 103141: sed 's/^/| /' conftest.$ac_ext >&5
! 103142:
! 103143: ac_cv_lib_readline_rl_callback_read_char=no
1.1 misho 103144: fi
1.1.1.3 ! misho 103145:
! 103146: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 103147: conftest$ac_exeext conftest.$ac_ext
1.1 misho 103148: LIBS=$ac_check_lib_save_LIBS
103149: fi
1.1.1.3 ! misho 103150: { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_read_char" >&5
! 103151: echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_read_char" >&6; }
! 103152: if test $ac_cv_lib_readline_rl_callback_read_char = yes; then
1.1 misho 103153:
103154: LDFLAGS=$save_old_LDFLAGS
103155: ext_shared=$save_ext_shared
103156:
103157:
1.1.1.3 ! misho 103158: cat >>confdefs.h <<\_ACEOF
! 103159: #define HAVE_RL_CALLBACK_READ_CHAR 1
! 103160: _ACEOF
1.1 misho 103161:
103162:
103163:
103164: else
103165:
103166: LDFLAGS=$save_old_LDFLAGS
103167: ext_shared=$save_ext_shared
103168: unset ac_cv_lib_readline_rl_callback_read_char
103169:
103170:
103171: fi
103172:
103173:
103174:
1.1.1.2 misho 103175: save_old_LDFLAGS=$LDFLAGS
103176: ac_stuff="
103177: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
103178: "
103179:
103180: save_ext_shared=$ext_shared
103181: ext_shared=yes
103182:
103183: for ac_i in $ac_stuff; do
103184: case $ac_i in
103185: -pthread)
103186: if test "$ext_shared" = "yes"; then
103187: LDFLAGS="$LDFLAGS -pthread"
103188: else
103189:
103190:
103191: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103192:
103193: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103194: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103195: eval "EXTRA_LDFLAGS$unique=set"
103196: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103197: fi
103198:
103199: fi
103200: ;;
103201: -l*)
103202: ac_ii=`echo $ac_i|cut -c 3-`
103203:
103204:
103205: case $ac_ii in
103206: c|c_r|pthread*) ;;
103207: *)
103208: if test "$ext_shared" = "yes"; then
103209: LDFLAGS="$LDFLAGS -l$ac_ii"
103210: else
103211:
103212:
103213: case $ac_ii in
103214: c|c_r|pthread*) ;;
103215: *)
103216: LIBS="$LIBS -l$ac_ii"
103217: ;;
103218: esac
103219:
103220:
103221: fi
103222: ;;
103223: esac
103224:
103225:
103226: ;;
103227: -L*)
103228: ac_ii=`echo $ac_i|cut -c 3-`
103229:
103230: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103231:
103232: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103233: ai_p=$ac_ii
103234: else
103235:
103236: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
103237:
103238: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103239: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
103240: fi
103241:
103242:
103243: if test "$ext_shared" = "yes"; then
103244: LDFLAGS="-L$ai_p $LDFLAGS"
103245: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103246: else
103247:
103248:
103249:
103250: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103251:
103252: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103253: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103254: eval "LIBPATH$unique=set"
103255:
103256: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103257: LDFLAGS="$LDFLAGS -L$ai_p"
103258: PHP_RPATHS="$PHP_RPATHS $ai_p"
103259:
103260: fi
103261:
103262:
103263: fi
103264:
103265: fi
103266:
103267: ;;
103268: esac
103269: done
103270:
1.1.1.3 ! misho 103271: { echo "$as_me:$LINENO: checking for rl_on_new_line in -ledit" >&5
! 103272: echo $ECHO_N "checking for rl_on_new_line in -ledit... $ECHO_C" >&6; }
! 103273: if test "${ac_cv_lib_edit_rl_on_new_line+set}" = set; then
! 103274: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 103275: else
103276: ac_check_lib_save_LIBS=$LIBS
103277: LIBS="-ledit $LIBS"
1.1.1.3 ! misho 103278: cat >conftest.$ac_ext <<_ACEOF
! 103279: /* confdefs.h. */
! 103280: _ACEOF
! 103281: cat confdefs.h >>conftest.$ac_ext
! 103282: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 103283: /* end confdefs.h. */
103284:
103285: /* Override any GCC internal prototype to avoid an error.
103286: Use char because int might match the return type of a GCC
103287: builtin and then its argument prototype would still apply. */
103288: #ifdef __cplusplus
103289: extern "C"
103290: #endif
103291: char rl_on_new_line ();
103292: int
103293: main ()
103294: {
103295: return rl_on_new_line ();
103296: ;
103297: return 0;
103298: }
103299: _ACEOF
1.1.1.3 ! misho 103300: rm -f conftest.$ac_objext conftest$ac_exeext
! 103301: if { (ac_try="$ac_link"
! 103302: case "(($ac_try" in
! 103303: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 103304: *) ac_try_echo=$ac_try;;
! 103305: esac
! 103306: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 103307: (eval "$ac_link") 2>conftest.er1
! 103308: ac_status=$?
! 103309: grep -v '^ *+' conftest.er1 >conftest.err
! 103310: rm -f conftest.er1
! 103311: cat conftest.err >&5
! 103312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 103313: (exit $ac_status); } && {
! 103314: test -z "$ac_c_werror_flag" ||
! 103315: test ! -s conftest.err
! 103316: } && test -s conftest$ac_exeext &&
! 103317: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 103318: ac_cv_lib_edit_rl_on_new_line=yes
103319: else
1.1.1.3 ! misho 103320: echo "$as_me: failed program was:" >&5
! 103321: sed 's/^/| /' conftest.$ac_ext >&5
! 103322:
! 103323: ac_cv_lib_edit_rl_on_new_line=no
1.1.1.2 misho 103324: fi
1.1.1.3 ! misho 103325:
! 103326: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 103327: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 103328: LIBS=$ac_check_lib_save_LIBS
103329: fi
1.1.1.3 ! misho 103330: { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_rl_on_new_line" >&5
! 103331: echo "${ECHO_T}$ac_cv_lib_edit_rl_on_new_line" >&6; }
! 103332: if test $ac_cv_lib_edit_rl_on_new_line = yes; then
1.1.1.2 misho 103333:
103334: LDFLAGS=$save_old_LDFLAGS
103335: ext_shared=$save_ext_shared
103336:
103337:
1.1.1.3 ! misho 103338: cat >>confdefs.h <<\_ACEOF
! 103339: #define HAVE_RL_ON_NEW_LINE 1
! 103340: _ACEOF
1.1.1.2 misho 103341:
103342:
103343:
103344: else
103345:
103346: LDFLAGS=$save_old_LDFLAGS
103347: ext_shared=$save_ext_shared
103348: unset ac_cv_lib_edit_rl_on_new_line
103349:
103350:
103351: fi
103352:
103353:
103354:
1.1.1.3 ! misho 103355: cat >>confdefs.h <<\_ACEOF
! 103356: #define HAVE_LIBREADLINE 1
! 103357: _ACEOF
1.1 misho 103358:
103359:
103360: elif test "$PHP_LIBEDIT" != "no"; then
103361:
103362: for i in $PHP_LIBEDIT /usr/local /usr; do
103363: test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
103364: done
103365:
103366: if test -z "$LIBEDIT_DIR"; then
1.1.1.3 ! misho 103367: { { echo "$as_me:$LINENO: error: Please reinstall libedit - I cannot find readline.h" >&5
! 103368: echo "$as_me: error: Please reinstall libedit - I cannot find readline.h" >&2;}
! 103369: { (exit 1); exit 1; }; }
1.1 misho 103370: fi
103371:
103372:
103373: if test "$LIBEDIT_DIR/include" != "/usr/include"; then
103374:
103375: if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then
103376: ai_p=$LIBEDIT_DIR/include
103377: else
103378:
103379: ep_dir="`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
103380:
103381: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103382: ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/include\"`"
103383: fi
103384:
103385:
103386:
103387: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103388:
103389: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
103390: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103391: eval "INCLUDEPATH$unique=set"
103392:
103393: if test ""; then
103394: INCLUDES="-I$ai_p $INCLUDES"
103395: else
103396: INCLUDES="$INCLUDES -I$ai_p"
103397: fi
103398:
103399: fi
103400:
103401: fi
103402:
103403:
1.1.1.3 ! misho 103404: { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
! 103405: echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
! 103406: if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
! 103407: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 103408: else
103409: ac_check_lib_save_LIBS=$LIBS
103410: LIBS="-lncurses $LIBS"
1.1.1.3 ! misho 103411: cat >conftest.$ac_ext <<_ACEOF
! 103412: /* confdefs.h. */
! 103413: _ACEOF
! 103414: cat confdefs.h >>conftest.$ac_ext
! 103415: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 103416: /* end confdefs.h. */
103417:
103418: /* Override any GCC internal prototype to avoid an error.
103419: Use char because int might match the return type of a GCC
103420: builtin and then its argument prototype would still apply. */
103421: #ifdef __cplusplus
103422: extern "C"
103423: #endif
103424: char tgetent ();
103425: int
103426: main ()
103427: {
103428: return tgetent ();
103429: ;
103430: return 0;
103431: }
103432: _ACEOF
1.1.1.3 ! misho 103433: rm -f conftest.$ac_objext conftest$ac_exeext
! 103434: if { (ac_try="$ac_link"
! 103435: case "(($ac_try" in
! 103436: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 103437: *) ac_try_echo=$ac_try;;
! 103438: esac
! 103439: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 103440: (eval "$ac_link") 2>conftest.er1
! 103441: ac_status=$?
! 103442: grep -v '^ *+' conftest.er1 >conftest.err
! 103443: rm -f conftest.er1
! 103444: cat conftest.err >&5
! 103445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 103446: (exit $ac_status); } && {
! 103447: test -z "$ac_c_werror_flag" ||
! 103448: test ! -s conftest.err
! 103449: } && test -s conftest$ac_exeext &&
! 103450: $as_test_x conftest$ac_exeext; then
1.1 misho 103451: ac_cv_lib_ncurses_tgetent=yes
103452: else
1.1.1.3 ! misho 103453: echo "$as_me: failed program was:" >&5
! 103454: sed 's/^/| /' conftest.$ac_ext >&5
! 103455:
! 103456: ac_cv_lib_ncurses_tgetent=no
1.1 misho 103457: fi
1.1.1.3 ! misho 103458:
! 103459: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 103460: conftest$ac_exeext conftest.$ac_ext
1.1 misho 103461: LIBS=$ac_check_lib_save_LIBS
103462: fi
1.1.1.3 ! misho 103463: { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
! 103464: echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
! 103465: if test $ac_cv_lib_ncurses_tgetent = yes; then
1.1 misho 103466:
103467:
103468:
103469: case ncurses in
103470: c|c_r|pthread*) ;;
103471: *)
103472: if test "$ext_shared" = "yes"; then
103473: READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
103474: else
103475:
103476:
103477: case ncurses in
103478: c|c_r|pthread*) ;;
103479: *)
103480: LIBS="-lncurses $LIBS"
103481: ;;
103482: esac
103483:
103484:
103485: fi
103486: ;;
103487: esac
103488:
103489:
103490:
103491: else
103492:
1.1.1.3 ! misho 103493: { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
! 103494: echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
! 103495: if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
! 103496: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 103497: else
103498: ac_check_lib_save_LIBS=$LIBS
103499: LIBS="-ltermcap $LIBS"
1.1.1.3 ! misho 103500: cat >conftest.$ac_ext <<_ACEOF
! 103501: /* confdefs.h. */
! 103502: _ACEOF
! 103503: cat confdefs.h >>conftest.$ac_ext
! 103504: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 103505: /* end confdefs.h. */
103506:
103507: /* Override any GCC internal prototype to avoid an error.
103508: Use char because int might match the return type of a GCC
103509: builtin and then its argument prototype would still apply. */
103510: #ifdef __cplusplus
103511: extern "C"
103512: #endif
103513: char tgetent ();
103514: int
103515: main ()
103516: {
103517: return tgetent ();
103518: ;
103519: return 0;
103520: }
103521: _ACEOF
1.1.1.3 ! misho 103522: rm -f conftest.$ac_objext conftest$ac_exeext
! 103523: if { (ac_try="$ac_link"
! 103524: case "(($ac_try" in
! 103525: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 103526: *) ac_try_echo=$ac_try;;
! 103527: esac
! 103528: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 103529: (eval "$ac_link") 2>conftest.er1
! 103530: ac_status=$?
! 103531: grep -v '^ *+' conftest.er1 >conftest.err
! 103532: rm -f conftest.er1
! 103533: cat conftest.err >&5
! 103534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 103535: (exit $ac_status); } && {
! 103536: test -z "$ac_c_werror_flag" ||
! 103537: test ! -s conftest.err
! 103538: } && test -s conftest$ac_exeext &&
! 103539: $as_test_x conftest$ac_exeext; then
1.1 misho 103540: ac_cv_lib_termcap_tgetent=yes
103541: else
1.1.1.3 ! misho 103542: echo "$as_me: failed program was:" >&5
! 103543: sed 's/^/| /' conftest.$ac_ext >&5
! 103544:
! 103545: ac_cv_lib_termcap_tgetent=no
1.1 misho 103546: fi
1.1.1.3 ! misho 103547:
! 103548: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 103549: conftest$ac_exeext conftest.$ac_ext
1.1 misho 103550: LIBS=$ac_check_lib_save_LIBS
103551: fi
1.1.1.3 ! misho 103552: { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
! 103553: echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
! 103554: if test $ac_cv_lib_termcap_tgetent = yes; then
1.1 misho 103555:
103556:
103557:
103558: case termcap in
103559: c|c_r|pthread*) ;;
103560: *)
103561: if test "$ext_shared" = "yes"; then
103562: READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
103563: else
103564:
103565:
103566: case termcap in
103567: c|c_r|pthread*) ;;
103568: *)
103569: LIBS="-ltermcap $LIBS"
103570: ;;
103571: esac
103572:
103573:
103574: fi
103575: ;;
103576: esac
103577:
103578:
103579:
103580: fi
103581:
103582:
103583: fi
103584:
103585:
103586:
103587: save_old_LDFLAGS=$LDFLAGS
103588: ac_stuff="
103589: -L$READLINE_DIR/$PHP_LIBDIR
103590: "
103591:
103592: save_ext_shared=$ext_shared
103593: ext_shared=yes
103594:
103595: for ac_i in $ac_stuff; do
103596: case $ac_i in
103597: -pthread)
103598: if test "$ext_shared" = "yes"; then
103599: LDFLAGS="$LDFLAGS -pthread"
103600: else
103601:
103602:
103603: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103604:
103605: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103606: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103607: eval "EXTRA_LDFLAGS$unique=set"
103608: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103609: fi
103610:
103611: fi
103612: ;;
103613: -l*)
103614: ac_ii=`echo $ac_i|cut -c 3-`
103615:
103616:
103617: case $ac_ii in
103618: c|c_r|pthread*) ;;
103619: *)
103620: if test "$ext_shared" = "yes"; then
103621: LDFLAGS="$LDFLAGS -l$ac_ii"
103622: else
103623:
103624:
103625: case $ac_ii in
103626: c|c_r|pthread*) ;;
103627: *)
103628: LIBS="$LIBS -l$ac_ii"
103629: ;;
103630: esac
103631:
103632:
103633: fi
103634: ;;
103635: esac
103636:
103637:
103638: ;;
103639: -L*)
103640: ac_ii=`echo $ac_i|cut -c 3-`
103641:
103642: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103643:
103644: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103645: ai_p=$ac_ii
103646: else
103647:
103648: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
103649:
103650: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103651: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
103652: fi
103653:
103654:
103655: if test "$ext_shared" = "yes"; then
103656: LDFLAGS="-L$ai_p $LDFLAGS"
103657: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103658: else
103659:
103660:
103661:
103662: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103663:
103664: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103665: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103666: eval "LIBPATH$unique=set"
103667:
103668: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103669: LDFLAGS="$LDFLAGS -L$ai_p"
103670: PHP_RPATHS="$PHP_RPATHS $ai_p"
103671:
103672: fi
103673:
103674:
103675: fi
103676:
103677: fi
103678:
103679: ;;
103680: esac
103681: done
103682:
1.1.1.3 ! misho 103683: { echo "$as_me:$LINENO: checking for readline in -ledit" >&5
! 103684: echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6; }
! 103685: if test "${ac_cv_lib_edit_readline+set}" = set; then
! 103686: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 103687: else
103688: ac_check_lib_save_LIBS=$LIBS
103689: LIBS="-ledit $LIBS"
1.1.1.3 ! misho 103690: cat >conftest.$ac_ext <<_ACEOF
! 103691: /* confdefs.h. */
! 103692: _ACEOF
! 103693: cat confdefs.h >>conftest.$ac_ext
! 103694: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 103695: /* end confdefs.h. */
103696:
103697: /* Override any GCC internal prototype to avoid an error.
103698: Use char because int might match the return type of a GCC
103699: builtin and then its argument prototype would still apply. */
103700: #ifdef __cplusplus
103701: extern "C"
103702: #endif
103703: char readline ();
103704: int
103705: main ()
103706: {
103707: return readline ();
103708: ;
103709: return 0;
103710: }
103711: _ACEOF
1.1.1.3 ! misho 103712: rm -f conftest.$ac_objext conftest$ac_exeext
! 103713: if { (ac_try="$ac_link"
! 103714: case "(($ac_try" in
! 103715: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 103716: *) ac_try_echo=$ac_try;;
! 103717: esac
! 103718: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 103719: (eval "$ac_link") 2>conftest.er1
! 103720: ac_status=$?
! 103721: grep -v '^ *+' conftest.er1 >conftest.err
! 103722: rm -f conftest.er1
! 103723: cat conftest.err >&5
! 103724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 103725: (exit $ac_status); } && {
! 103726: test -z "$ac_c_werror_flag" ||
! 103727: test ! -s conftest.err
! 103728: } && test -s conftest$ac_exeext &&
! 103729: $as_test_x conftest$ac_exeext; then
1.1 misho 103730: ac_cv_lib_edit_readline=yes
103731: else
1.1.1.3 ! misho 103732: echo "$as_me: failed program was:" >&5
! 103733: sed 's/^/| /' conftest.$ac_ext >&5
! 103734:
! 103735: ac_cv_lib_edit_readline=no
1.1 misho 103736: fi
1.1.1.3 ! misho 103737:
! 103738: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 103739: conftest$ac_exeext conftest.$ac_ext
1.1 misho 103740: LIBS=$ac_check_lib_save_LIBS
103741: fi
1.1.1.3 ! misho 103742: { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
! 103743: echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6; }
! 103744: if test $ac_cv_lib_edit_readline = yes; then
1.1 misho 103745:
103746: LDFLAGS=$save_old_LDFLAGS
103747: ext_shared=$save_ext_shared
103748:
103749:
103750:
103751: if test "$ext_shared" = "yes"; then
103752: READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD"
103753: if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
103754:
103755: if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
103756:
103757: if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
103758: ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
103759: else
103760:
103761: ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
103762:
103763: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103764: ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
103765: fi
103766:
103767:
103768: if test "$ext_shared" = "yes"; then
103769: READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
103770: test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
103771: else
103772:
103773:
103774:
103775: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103776:
103777: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103778: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103779: eval "LIBPATH$unique=set"
103780:
103781: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103782: LDFLAGS="$LDFLAGS -L$ai_p"
103783: PHP_RPATHS="$PHP_RPATHS $ai_p"
103784:
103785: fi
103786:
103787:
103788: fi
103789:
103790: fi
103791:
103792: fi
103793: else
103794:
103795:
103796: if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
103797:
103798: if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
103799:
103800: if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
103801: ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
103802: else
103803:
103804: ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
103805:
103806: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103807: ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
103808: fi
103809:
103810:
103811:
103812:
103813:
103814: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103815:
103816: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103817: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103818: eval "LIBPATH$unique=set"
103819:
103820: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103821: LDFLAGS="$LDFLAGS -L$ai_p"
103822: PHP_RPATHS="$PHP_RPATHS $ai_p"
103823:
103824: fi
103825:
103826:
103827:
103828: fi
103829:
103830: fi
103831:
103832:
103833: case edit in
103834: c|c_r|pthread*) ;;
103835: *)
103836: LIBS="-ledit $LIBS"
103837: ;;
103838: esac
103839:
103840:
103841:
103842:
103843: fi
103844:
103845:
103846:
103847:
103848: else
103849:
103850: LDFLAGS=$save_old_LDFLAGS
103851: ext_shared=$save_ext_shared
103852: unset ac_cv_lib_edit_readline
103853:
1.1.1.3 ! misho 103854: { { echo "$as_me:$LINENO: error: edit library required by readline not found" >&5
! 103855: echo "$as_me: error: edit library required by readline not found" >&2;}
! 103856: { (exit 1); exit 1; }; }
1.1 misho 103857:
103858:
103859: fi
103860:
103861:
103862:
1.1.1.2 misho 103863: save_old_LDFLAGS=$LDFLAGS
103864: ac_stuff="
103865: -L$READLINE_DIR/$PHP_LIBDIR
103866: "
103867:
103868: save_ext_shared=$ext_shared
103869: ext_shared=yes
103870:
103871: for ac_i in $ac_stuff; do
103872: case $ac_i in
103873: -pthread)
103874: if test "$ext_shared" = "yes"; then
103875: LDFLAGS="$LDFLAGS -pthread"
103876: else
103877:
103878:
103879: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103880:
103881: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103882: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103883: eval "EXTRA_LDFLAGS$unique=set"
103884: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103885: fi
103886:
103887: fi
103888: ;;
103889: -l*)
103890: ac_ii=`echo $ac_i|cut -c 3-`
103891:
103892:
103893: case $ac_ii in
103894: c|c_r|pthread*) ;;
103895: *)
103896: if test "$ext_shared" = "yes"; then
103897: LDFLAGS="$LDFLAGS -l$ac_ii"
103898: else
103899:
103900:
103901: case $ac_ii in
103902: c|c_r|pthread*) ;;
103903: *)
103904: LIBS="$LIBS -l$ac_ii"
103905: ;;
103906: esac
103907:
103908:
103909: fi
103910: ;;
103911: esac
103912:
103913:
103914: ;;
103915: -L*)
103916: ac_ii=`echo $ac_i|cut -c 3-`
103917:
103918: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103919:
103920: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103921: ai_p=$ac_ii
103922: else
103923:
103924: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
103925:
103926: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103927: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
103928: fi
103929:
103930:
103931: if test "$ext_shared" = "yes"; then
103932: LDFLAGS="-L$ai_p $LDFLAGS"
103933: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103934: else
103935:
103936:
103937:
103938: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103939:
103940: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103941: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103942: eval "LIBPATH$unique=set"
103943:
103944: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103945: LDFLAGS="$LDFLAGS -L$ai_p"
103946: PHP_RPATHS="$PHP_RPATHS $ai_p"
103947:
103948: fi
103949:
103950:
103951: fi
103952:
103953: fi
103954:
103955: ;;
103956: esac
103957: done
103958:
1.1.1.3 ! misho 103959: { echo "$as_me:$LINENO: checking for rl_callback_read_char in -ledit" >&5
! 103960: echo $ECHO_N "checking for rl_callback_read_char in -ledit... $ECHO_C" >&6; }
! 103961: if test "${ac_cv_lib_edit_rl_callback_read_char+set}" = set; then
! 103962: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 103963: else
103964: ac_check_lib_save_LIBS=$LIBS
103965: LIBS="-ledit $LIBS"
1.1.1.3 ! misho 103966: cat >conftest.$ac_ext <<_ACEOF
! 103967: /* confdefs.h. */
! 103968: _ACEOF
! 103969: cat confdefs.h >>conftest.$ac_ext
! 103970: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 103971: /* end confdefs.h. */
103972:
103973: /* Override any GCC internal prototype to avoid an error.
103974: Use char because int might match the return type of a GCC
103975: builtin and then its argument prototype would still apply. */
103976: #ifdef __cplusplus
103977: extern "C"
103978: #endif
103979: char rl_callback_read_char ();
103980: int
103981: main ()
103982: {
103983: return rl_callback_read_char ();
103984: ;
103985: return 0;
103986: }
103987: _ACEOF
1.1.1.3 ! misho 103988: rm -f conftest.$ac_objext conftest$ac_exeext
! 103989: if { (ac_try="$ac_link"
! 103990: case "(($ac_try" in
! 103991: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 103992: *) ac_try_echo=$ac_try;;
! 103993: esac
! 103994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 103995: (eval "$ac_link") 2>conftest.er1
! 103996: ac_status=$?
! 103997: grep -v '^ *+' conftest.er1 >conftest.err
! 103998: rm -f conftest.er1
! 103999: cat conftest.err >&5
! 104000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 104001: (exit $ac_status); } && {
! 104002: test -z "$ac_c_werror_flag" ||
! 104003: test ! -s conftest.err
! 104004: } && test -s conftest$ac_exeext &&
! 104005: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 104006: ac_cv_lib_edit_rl_callback_read_char=yes
104007: else
1.1.1.3 ! misho 104008: echo "$as_me: failed program was:" >&5
! 104009: sed 's/^/| /' conftest.$ac_ext >&5
! 104010:
! 104011: ac_cv_lib_edit_rl_callback_read_char=no
1.1.1.2 misho 104012: fi
1.1.1.3 ! misho 104013:
! 104014: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 104015: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 104016: LIBS=$ac_check_lib_save_LIBS
104017: fi
1.1.1.3 ! misho 104018: { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_rl_callback_read_char" >&5
! 104019: echo "${ECHO_T}$ac_cv_lib_edit_rl_callback_read_char" >&6; }
! 104020: if test $ac_cv_lib_edit_rl_callback_read_char = yes; then
1.1.1.2 misho 104021:
104022: LDFLAGS=$save_old_LDFLAGS
104023: ext_shared=$save_ext_shared
104024:
104025:
1.1.1.3 ! misho 104026: cat >>confdefs.h <<\_ACEOF
! 104027: #define HAVE_RL_CALLBACK_READ_CHAR 1
! 104028: _ACEOF
1.1.1.2 misho 104029:
104030:
104031:
104032: else
104033:
104034: LDFLAGS=$save_old_LDFLAGS
104035: ext_shared=$save_ext_shared
104036: unset ac_cv_lib_edit_rl_callback_read_char
104037:
104038:
104039: fi
104040:
104041:
104042:
104043: save_old_LDFLAGS=$LDFLAGS
104044: ac_stuff="
104045: -L$READLINE_DIR/$PHP_LIBDIR
104046: "
104047:
104048: save_ext_shared=$ext_shared
104049: ext_shared=yes
104050:
104051: for ac_i in $ac_stuff; do
104052: case $ac_i in
104053: -pthread)
104054: if test "$ext_shared" = "yes"; then
104055: LDFLAGS="$LDFLAGS -pthread"
104056: else
104057:
104058:
104059: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
104060:
104061: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
104062: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104063: eval "EXTRA_LDFLAGS$unique=set"
104064: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
104065: fi
104066:
104067: fi
104068: ;;
104069: -l*)
104070: ac_ii=`echo $ac_i|cut -c 3-`
104071:
104072:
104073: case $ac_ii in
104074: c|c_r|pthread*) ;;
104075: *)
104076: if test "$ext_shared" = "yes"; then
104077: LDFLAGS="$LDFLAGS -l$ac_ii"
104078: else
104079:
104080:
104081: case $ac_ii in
104082: c|c_r|pthread*) ;;
104083: *)
104084: LIBS="$LIBS -l$ac_ii"
104085: ;;
104086: esac
104087:
104088:
104089: fi
104090: ;;
104091: esac
104092:
104093:
104094: ;;
104095: -L*)
104096: ac_ii=`echo $ac_i|cut -c 3-`
104097:
104098: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
104099:
104100: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104101: ai_p=$ac_ii
104102: else
104103:
104104: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104105:
104106: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104107: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104108: fi
104109:
104110:
104111: if test "$ext_shared" = "yes"; then
104112: LDFLAGS="-L$ai_p $LDFLAGS"
104113: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
104114: else
104115:
104116:
104117:
104118: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104119:
104120: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104121: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104122: eval "LIBPATH$unique=set"
104123:
104124: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104125: LDFLAGS="$LDFLAGS -L$ai_p"
104126: PHP_RPATHS="$PHP_RPATHS $ai_p"
104127:
104128: fi
104129:
104130:
104131: fi
104132:
104133: fi
104134:
104135: ;;
104136: esac
104137: done
104138:
1.1.1.3 ! misho 104139: { echo "$as_me:$LINENO: checking for rl_on_new_line in -ledit" >&5
! 104140: echo $ECHO_N "checking for rl_on_new_line in -ledit... $ECHO_C" >&6; }
! 104141: if test "${ac_cv_lib_edit_rl_on_new_line+set}" = set; then
! 104142: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 104143: else
104144: ac_check_lib_save_LIBS=$LIBS
104145: LIBS="-ledit $LIBS"
1.1.1.3 ! misho 104146: cat >conftest.$ac_ext <<_ACEOF
! 104147: /* confdefs.h. */
! 104148: _ACEOF
! 104149: cat confdefs.h >>conftest.$ac_ext
! 104150: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 104151: /* end confdefs.h. */
104152:
104153: /* Override any GCC internal prototype to avoid an error.
104154: Use char because int might match the return type of a GCC
104155: builtin and then its argument prototype would still apply. */
104156: #ifdef __cplusplus
104157: extern "C"
104158: #endif
104159: char rl_on_new_line ();
104160: int
104161: main ()
104162: {
104163: return rl_on_new_line ();
104164: ;
104165: return 0;
104166: }
104167: _ACEOF
1.1.1.3 ! misho 104168: rm -f conftest.$ac_objext conftest$ac_exeext
! 104169: if { (ac_try="$ac_link"
! 104170: case "(($ac_try" in
! 104171: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 104172: *) ac_try_echo=$ac_try;;
! 104173: esac
! 104174: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 104175: (eval "$ac_link") 2>conftest.er1
! 104176: ac_status=$?
! 104177: grep -v '^ *+' conftest.er1 >conftest.err
! 104178: rm -f conftest.er1
! 104179: cat conftest.err >&5
! 104180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 104181: (exit $ac_status); } && {
! 104182: test -z "$ac_c_werror_flag" ||
! 104183: test ! -s conftest.err
! 104184: } && test -s conftest$ac_exeext &&
! 104185: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 104186: ac_cv_lib_edit_rl_on_new_line=yes
104187: else
1.1.1.3 ! misho 104188: echo "$as_me: failed program was:" >&5
! 104189: sed 's/^/| /' conftest.$ac_ext >&5
! 104190:
! 104191: ac_cv_lib_edit_rl_on_new_line=no
1.1.1.2 misho 104192: fi
1.1.1.3 ! misho 104193:
! 104194: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 104195: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 104196: LIBS=$ac_check_lib_save_LIBS
104197: fi
1.1.1.3 ! misho 104198: { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_rl_on_new_line" >&5
! 104199: echo "${ECHO_T}$ac_cv_lib_edit_rl_on_new_line" >&6; }
! 104200: if test $ac_cv_lib_edit_rl_on_new_line = yes; then
1.1.1.2 misho 104201:
104202: LDFLAGS=$save_old_LDFLAGS
104203: ext_shared=$save_ext_shared
104204:
104205:
1.1.1.3 ! misho 104206: cat >>confdefs.h <<\_ACEOF
! 104207: #define HAVE_RL_ON_NEW_LINE 1
! 104208: _ACEOF
1.1.1.2 misho 104209:
104210:
104211:
104212: else
104213:
104214: LDFLAGS=$save_old_LDFLAGS
104215: ext_shared=$save_ext_shared
104216: unset ac_cv_lib_edit_rl_on_new_line
104217:
104218:
104219: fi
104220:
104221:
104222:
1.1.1.3 ! misho 104223: cat >>confdefs.h <<\_ACEOF
! 104224: #define HAVE_LIBEDIT 1
! 104225: _ACEOF
1.1 misho 104226:
104227: fi
104228:
104229: if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
1.1.1.3 ! misho 104230:
! 104231: for ac_func in rl_completion_matches
! 104232: do
! 104233: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 104234: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 104235: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 104236: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 104237: echo $ECHO_N "(cached) $ECHO_C" >&6
! 104238: else
! 104239: cat >conftest.$ac_ext <<_ACEOF
! 104240: /* confdefs.h. */
! 104241: _ACEOF
! 104242: cat confdefs.h >>conftest.$ac_ext
! 104243: cat >>conftest.$ac_ext <<_ACEOF
! 104244: /* end confdefs.h. */
! 104245: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 104246: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 104247: #define $ac_func innocuous_$ac_func
! 104248:
! 104249: /* System header to define __stub macros and hopefully few prototypes,
! 104250: which can conflict with char $ac_func (); below.
! 104251: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 104252: <limits.h> exists even on freestanding compilers. */
! 104253:
! 104254: #ifdef __STDC__
! 104255: # include <limits.h>
! 104256: #else
! 104257: # include <assert.h>
! 104258: #endif
! 104259:
! 104260: #undef $ac_func
! 104261:
! 104262: /* Override any GCC internal prototype to avoid an error.
! 104263: Use char because int might match the return type of a GCC
! 104264: builtin and then its argument prototype would still apply. */
! 104265: #ifdef __cplusplus
! 104266: extern "C"
! 104267: #endif
! 104268: char $ac_func ();
! 104269: /* The GNU C library defines this for functions which it implements
! 104270: to always fail with ENOSYS. Some functions are actually named
! 104271: something starting with __ and the normal name is an alias. */
! 104272: #if defined __stub_$ac_func || defined __stub___$ac_func
! 104273: choke me
! 104274: #endif
! 104275:
! 104276: int
! 104277: main ()
! 104278: {
! 104279: return $ac_func ();
! 104280: ;
! 104281: return 0;
! 104282: }
! 104283: _ACEOF
! 104284: rm -f conftest.$ac_objext conftest$ac_exeext
! 104285: if { (ac_try="$ac_link"
! 104286: case "(($ac_try" in
! 104287: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 104288: *) ac_try_echo=$ac_try;;
! 104289: esac
! 104290: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 104291: (eval "$ac_link") 2>conftest.er1
! 104292: ac_status=$?
! 104293: grep -v '^ *+' conftest.er1 >conftest.err
! 104294: rm -f conftest.er1
! 104295: cat conftest.err >&5
! 104296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 104297: (exit $ac_status); } && {
! 104298: test -z "$ac_c_werror_flag" ||
! 104299: test ! -s conftest.err
! 104300: } && test -s conftest$ac_exeext &&
! 104301: $as_test_x conftest$ac_exeext; then
! 104302: eval "$as_ac_var=yes"
! 104303: else
! 104304: echo "$as_me: failed program was:" >&5
! 104305: sed 's/^/| /' conftest.$ac_ext >&5
! 104306:
! 104307: eval "$as_ac_var=no"
! 104308: fi
! 104309:
! 104310: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 104311: conftest$ac_exeext conftest.$ac_ext
! 104312: fi
! 104313: ac_res=`eval echo '${'$as_ac_var'}'`
! 104314: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 104315: echo "${ECHO_T}$ac_res" >&6; }
! 104316: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 104317: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 104318: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 104319: _ACEOF
104320:
104321: fi
104322: done
104323:
104324:
104325: ext_builddir=ext/readline
104326: ext_srcdir=$abs_srcdir/ext/readline
104327:
104328: ac_extra=
104329:
104330: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
104331: PHP_READLINE_SHARED=no
104332:
104333:
104334: case ext/readline in
104335: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104336: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104337: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104338: esac
104339:
104340:
104341:
104342: b_c_pre=$php_c_pre
104343: b_cxx_pre=$php_cxx_pre
104344: b_c_meta=$php_c_meta
104345: b_cxx_meta=$php_cxx_meta
104346: b_c_post=$php_c_post
104347: b_cxx_post=$php_cxx_post
104348: b_lo=$php_lo
104349:
104350:
104351: old_IFS=$IFS
1.1.1.2 misho 104352: for ac_src in readline.c readline_cli.c; do
1.1 misho 104353:
104354: IFS=.
104355: set $ac_src
104356: ac_obj=$1
104357: IFS=$old_IFS
104358:
104359: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
104360:
104361: case $ac_src in
104362: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104363: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104364: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104365: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104366: esac
104367:
104368: cat >>Makefile.objects<<EOF
104369: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104370: $ac_comp
104371: EOF
104372: done
104373:
104374:
104375: EXT_STATIC="$EXT_STATIC readline"
104376: if test "$ext_shared" != "nocli"; then
104377: EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
104378: fi
104379: else
104380: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
104381: PHP_READLINE_SHARED=yes
104382:
104383: case ext/readline in
104384: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104385: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104386: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104387: esac
104388:
104389:
104390:
104391: b_c_pre=$shared_c_pre
104392: b_cxx_pre=$shared_cxx_pre
104393: b_c_meta=$shared_c_meta
104394: b_cxx_meta=$shared_cxx_meta
104395: b_c_post=$shared_c_post
104396: b_cxx_post=$shared_cxx_post
104397: b_lo=$shared_lo
104398:
104399:
104400: old_IFS=$IFS
1.1.1.2 misho 104401: for ac_src in readline.c readline_cli.c; do
1.1 misho 104402:
104403: IFS=.
104404: set $ac_src
104405: ac_obj=$1
104406: IFS=$old_IFS
104407:
104408: shared_objects_readline="$shared_objects_readline $ac_bdir$ac_obj.lo"
104409:
104410: case $ac_src in
104411: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104412: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104413: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104414: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104415: esac
104416:
104417: cat >>Makefile.objects<<EOF
104418: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104419: $ac_comp
104420: EOF
104421: done
104422:
104423: case $host_alias in
104424: *netware*)
104425:
104426: install_modules="install-modules"
104427:
104428: case $host_alias in
104429: *aix*)
104430: suffix=so
104431: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpreadline.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(PHPREADLINE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpreadline.so '$ext_builddir'/phpreadline.so'
104432: ;;
104433: *netware*)
104434: suffix=nlm
104435: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) -L$(top_builddir)/netware -lphp5lib $(READLINE_SHARED_LIBADD)'
104436: ;;
104437: *)
104438: suffix=la
104439: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(PHPREADLINE_SHARED_LIBADD)'
104440: ;;
104441: esac
104442:
104443: if test "x" = "xyes"; then
104444: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreadline.$suffix"
104445: else
104446: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreadline.$suffix"
104447: fi
104448:
104449: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
104450:
104451: cat >>Makefile.objects<<EOF
104452: \$(phplibdir)/phpreadline.$suffix: $ext_builddir/phpreadline.$suffix
104453: \$(LIBTOOL) --mode=install cp $ext_builddir/phpreadline.$suffix \$(phplibdir)
104454:
104455: $ext_builddir/phpreadline.$suffix: \$(shared_objects_readline) \$(PHPREADLINE_SHARED_DEPENDENCIES)
104456: $link_cmd
104457:
104458: EOF
104459:
104460: ;;
104461: *)
104462:
104463: install_modules="install-modules"
104464:
104465: case $host_alias in
104466: *aix*)
104467: suffix=so
104468: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/readline.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(READLINE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/readline.so '$ext_builddir'/readline.so'
104469: ;;
104470: *netware*)
104471: suffix=nlm
104472: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) -L$(top_builddir)/netware -lphp5lib $(DLINE_SHARED_LIBADD)'
104473: ;;
104474: *)
104475: suffix=la
104476: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(READLINE_SHARED_LIBADD)'
104477: ;;
104478: esac
104479:
104480: if test "x" = "xyes"; then
104481: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/readline.$suffix"
104482: else
104483: PHP_MODULES="$PHP_MODULES \$(phplibdir)/readline.$suffix"
104484: fi
104485:
104486: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
104487:
104488: cat >>Makefile.objects<<EOF
104489: \$(phplibdir)/readline.$suffix: $ext_builddir/readline.$suffix
104490: \$(LIBTOOL) --mode=install cp $ext_builddir/readline.$suffix \$(phplibdir)
104491:
104492: $ext_builddir/readline.$suffix: \$(shared_objects_readline) \$(READLINE_SHARED_DEPENDENCIES)
104493: $link_cmd
104494:
104495: EOF
104496:
104497: ;;
104498: esac
104499:
104500: cat >>confdefs.h <<_ACEOF
104501: #define COMPILE_DL_READLINE 1
104502: _ACEOF
104503:
104504: fi
104505: fi
104506:
104507: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
104508: PHP_READLINE_SHARED=no
1.1.1.3 ! misho 104509: case "$PHP_SAPI" in
! 104510: cgi|embed)
1.1 misho 104511:
104512:
104513: case ext/readline in
104514: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104515: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104516: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104517: esac
104518:
104519:
104520:
104521: b_c_pre=$php_c_pre
104522: b_cxx_pre=$php_cxx_pre
104523: b_c_meta=$php_c_meta
104524: b_cxx_meta=$php_cxx_meta
104525: b_c_post=$php_c_post
104526: b_cxx_post=$php_cxx_post
104527: b_lo=$php_lo
104528:
104529:
104530: old_IFS=$IFS
1.1.1.2 misho 104531: for ac_src in readline.c readline_cli.c; do
1.1 misho 104532:
104533: IFS=.
104534: set $ac_src
104535: ac_obj=$1
104536: IFS=$old_IFS
104537:
1.1.1.2 misho 104538: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 104539:
104540: case $ac_src in
104541: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104542: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104543: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104544: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104545: esac
104546:
104547: cat >>Makefile.objects<<EOF
104548: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104549: $ac_comp
104550: EOF
104551: done
104552:
104553:
1.1.1.3 ! misho 104554: EXT_STATIC="$EXT_STATIC readline"
! 104555: ;;
! 104556: *)
1.1 misho 104557:
104558:
104559: case ext/readline in
104560: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104561: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104562: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104563: esac
104564:
104565:
104566:
104567: b_c_pre=$php_c_pre
104568: b_cxx_pre=$php_cxx_pre
104569: b_c_meta=$php_c_meta
104570: b_cxx_meta=$php_cxx_meta
104571: b_c_post=$php_c_post
104572: b_cxx_post=$php_cxx_post
104573: b_lo=$php_lo
104574:
104575:
104576: old_IFS=$IFS
1.1.1.2 misho 104577: for ac_src in readline.c readline_cli.c; do
1.1 misho 104578:
104579: IFS=.
104580: set $ac_src
104581: ac_obj=$1
104582: IFS=$old_IFS
104583:
1.1.1.2 misho 104584: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 104585:
104586: case $ac_src in
104587: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104588: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104589: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104590: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104591: esac
104592:
104593: cat >>Makefile.objects<<EOF
104594: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104595: $ac_comp
104596: EOF
104597: done
104598:
104599:
1.1.1.3 ! misho 104600: ;;
! 104601: esac
1.1 misho 104602: EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
104603: fi
104604:
104605:
104606: BUILD_DIR="$BUILD_DIR $ext_builddir"
104607:
104608:
104609:
104610: if test "$ext_builddir" = "."; then
104611: PHP_PECL_EXTENSION=readline
104612:
104613: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
104614:
104615: fi
104616:
104617:
104618: PHP_VAR_SUBST="$PHP_VAR_SUBST READLINE_SHARED_LIBADD"
104619:
104620: fi
104621:
104622:
104623:
104624: php_with_recode=no
104625:
1.1.1.3 ! misho 104626: { echo "$as_me:$LINENO: checking for recode support" >&5
! 104627: echo $ECHO_N "checking for recode support... $ECHO_C" >&6; }
1.1 misho 104628:
104629: # Check whether --with-recode was given.
1.1.1.3 ! misho 104630: if test "${with_recode+set}" = set; then
1.1 misho 104631: withval=$with_recode; PHP_RECODE=$withval
104632: else
104633:
104634: PHP_RECODE=no
104635: test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL
104636:
104637: fi
104638:
104639:
104640:
104641: ext_output="yes, shared"
104642: ext_shared=yes
104643: case $PHP_RECODE in
104644: shared,*)
104645: PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'`
104646: ;;
104647: shared)
104648: PHP_RECODE=yes
104649: ;;
104650: no)
104651: ext_output=no
104652: ext_shared=no
104653: ;;
104654: *)
104655: ext_output=yes
104656: ext_shared=no
104657: ;;
104658: esac
104659:
104660:
104661:
1.1.1.3 ! misho 104662: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 104663: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 104664:
104665:
104666:
104667:
104668: if test "$PHP_RECODE" != "no"; then
104669: RECODE_LIST="$PHP_RECODE /usr/local /usr /opt"
104670:
104671: for i in $RECODE_LIST; do
104672: if test -f $i/include/recode.h; then
104673: RECODE_DIR=$i
104674: RECODE_INC=include
104675: RECODE_LIB=$PHP_LIBDIR
104676: fi
104677: if test -f $i/include/recode/recode.h; then
104678: RECODE_DIR=$i
104679: RECODE_INC=include/recode
104680: RECODE_LIB=$PHP_LIBDIR/recode
104681: fi
104682: if test -f $i/recode/include/recode.h; then
104683: RECODE_DIR=$i/recode
104684: RECODE_INC=include
104685: RECODE_LIB=$PHP_LIBDIR
104686: fi
104687: test -n "$RECODE_DIR" && break
104688: done
104689:
104690: if test -z "$RECODE_DIR"; then
1.1.1.3 ! misho 104691: { { echo "$as_me:$LINENO: error: Can not find recode.h anywhere under $RECODE_LIST." >&5
! 104692: echo "$as_me: error: Can not find recode.h anywhere under $RECODE_LIST." >&2;}
! 104693: { (exit 1); exit 1; }; }
1.1 misho 104694: fi
104695:
104696:
104697: save_old_LDFLAGS=$LDFLAGS
104698: ac_stuff="
104699: -L$RECODE_DIR/$RECODE_LIB
104700: "
104701:
104702: save_ext_shared=$ext_shared
104703: ext_shared=yes
104704:
104705: for ac_i in $ac_stuff; do
104706: case $ac_i in
104707: -pthread)
104708: if test "$ext_shared" = "yes"; then
104709: LDFLAGS="$LDFLAGS -pthread"
104710: else
104711:
104712:
104713: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
104714:
104715: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
104716: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104717: eval "EXTRA_LDFLAGS$unique=set"
104718: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
104719: fi
104720:
104721: fi
104722: ;;
104723: -l*)
104724: ac_ii=`echo $ac_i|cut -c 3-`
104725:
104726:
104727: case $ac_ii in
104728: c|c_r|pthread*) ;;
104729: *)
104730: if test "$ext_shared" = "yes"; then
104731: LDFLAGS="$LDFLAGS -l$ac_ii"
104732: else
104733:
104734:
104735: case $ac_ii in
104736: c|c_r|pthread*) ;;
104737: *)
104738: LIBS="$LIBS -l$ac_ii"
104739: ;;
104740: esac
104741:
104742:
104743: fi
104744: ;;
104745: esac
104746:
104747:
104748: ;;
104749: -L*)
104750: ac_ii=`echo $ac_i|cut -c 3-`
104751:
104752: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
104753:
104754: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104755: ai_p=$ac_ii
104756: else
104757:
104758: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104759:
104760: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104761: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104762: fi
104763:
104764:
104765: if test "$ext_shared" = "yes"; then
104766: LDFLAGS="-L$ai_p $LDFLAGS"
104767: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
104768: else
104769:
104770:
104771:
104772: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104773:
104774: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104775: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104776: eval "LIBPATH$unique=set"
104777:
104778: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104779: LDFLAGS="$LDFLAGS -L$ai_p"
104780: PHP_RPATHS="$PHP_RPATHS $ai_p"
104781:
104782: fi
104783:
104784:
104785: fi
104786:
104787: fi
104788:
104789: ;;
104790: esac
104791: done
104792:
1.1.1.3 ! misho 104793: { echo "$as_me:$LINENO: checking for recode_format_table in -lrecode" >&5
! 104794: echo $ECHO_N "checking for recode_format_table in -lrecode... $ECHO_C" >&6; }
! 104795: if test "${ac_cv_lib_recode_recode_format_table+set}" = set; then
! 104796: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 104797: else
104798: ac_check_lib_save_LIBS=$LIBS
104799: LIBS="-lrecode $LIBS"
1.1.1.3 ! misho 104800: cat >conftest.$ac_ext <<_ACEOF
! 104801: /* confdefs.h. */
! 104802: _ACEOF
! 104803: cat confdefs.h >>conftest.$ac_ext
! 104804: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 104805: /* end confdefs.h. */
104806:
104807: /* Override any GCC internal prototype to avoid an error.
104808: Use char because int might match the return type of a GCC
104809: builtin and then its argument prototype would still apply. */
104810: #ifdef __cplusplus
104811: extern "C"
104812: #endif
104813: char recode_format_table ();
104814: int
104815: main ()
104816: {
104817: return recode_format_table ();
104818: ;
104819: return 0;
104820: }
104821: _ACEOF
1.1.1.3 ! misho 104822: rm -f conftest.$ac_objext conftest$ac_exeext
! 104823: if { (ac_try="$ac_link"
! 104824: case "(($ac_try" in
! 104825: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 104826: *) ac_try_echo=$ac_try;;
! 104827: esac
! 104828: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 104829: (eval "$ac_link") 2>conftest.er1
! 104830: ac_status=$?
! 104831: grep -v '^ *+' conftest.er1 >conftest.err
! 104832: rm -f conftest.er1
! 104833: cat conftest.err >&5
! 104834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 104835: (exit $ac_status); } && {
! 104836: test -z "$ac_c_werror_flag" ||
! 104837: test ! -s conftest.err
! 104838: } && test -s conftest$ac_exeext &&
! 104839: $as_test_x conftest$ac_exeext; then
1.1 misho 104840: ac_cv_lib_recode_recode_format_table=yes
104841: else
1.1.1.3 ! misho 104842: echo "$as_me: failed program was:" >&5
! 104843: sed 's/^/| /' conftest.$ac_ext >&5
! 104844:
! 104845: ac_cv_lib_recode_recode_format_table=no
1.1 misho 104846: fi
1.1.1.3 ! misho 104847:
! 104848: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 104849: conftest$ac_exeext conftest.$ac_ext
1.1 misho 104850: LIBS=$ac_check_lib_save_LIBS
104851: fi
1.1.1.3 ! misho 104852: { echo "$as_me:$LINENO: result: $ac_cv_lib_recode_recode_format_table" >&5
! 104853: echo "${ECHO_T}$ac_cv_lib_recode_recode_format_table" >&6; }
! 104854: if test $ac_cv_lib_recode_recode_format_table = yes; then
1.1 misho 104855:
104856: LDFLAGS=$save_old_LDFLAGS
104857: ext_shared=$save_ext_shared
104858:
104859:
104860:
104861: if test "$ext_shared" = "yes"; then
104862: RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
104863: if test -n "$RECODE_DIR/$RECODE_LIB"; then
104864:
104865: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
104866:
104867: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
104868: ai_p=$RECODE_DIR/$RECODE_LIB
104869: else
104870:
104871: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
104872:
104873: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104874: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
104875: fi
104876:
104877:
104878: if test "$ext_shared" = "yes"; then
104879: RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
104880: test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
104881: else
104882:
104883:
104884:
104885: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104886:
104887: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104888: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104889: eval "LIBPATH$unique=set"
104890:
104891: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104892: LDFLAGS="$LDFLAGS -L$ai_p"
104893: PHP_RPATHS="$PHP_RPATHS $ai_p"
104894:
104895: fi
104896:
104897:
104898: fi
104899:
104900: fi
104901:
104902: fi
104903: else
104904:
104905:
104906: if test -n "$RECODE_DIR/$RECODE_LIB"; then
104907:
104908: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
104909:
104910: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
104911: ai_p=$RECODE_DIR/$RECODE_LIB
104912: else
104913:
104914: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
104915:
104916: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104917: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
104918: fi
104919:
104920:
104921:
104922:
104923:
104924: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104925:
104926: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104927: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104928: eval "LIBPATH$unique=set"
104929:
104930: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104931: LDFLAGS="$LDFLAGS -L$ai_p"
104932: PHP_RPATHS="$PHP_RPATHS $ai_p"
104933:
104934: fi
104935:
104936:
104937:
104938: fi
104939:
104940: fi
104941:
104942:
104943: case recode in
104944: c|c_r|pthread*) ;;
104945: *)
104946: LIBS="-lrecode $LIBS"
104947: ;;
104948: esac
104949:
104950:
104951:
104952:
104953: fi
104954:
104955:
104956:
104957:
104958: else
104959:
104960: LDFLAGS=$save_old_LDFLAGS
104961: ext_shared=$save_ext_shared
104962: unset ac_cv_lib_recode_recode_format_table
104963:
104964: old_LDFLAGS=$LDFLAGS
104965: old_LIBS=$LIBS
104966: LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB"
104967: LIBS="$LIBS -lrecode"
1.1.1.3 ! misho 104968: cat >conftest.$ac_ext <<_ACEOF
! 104969: /* confdefs.h. */
! 104970: _ACEOF
! 104971: cat confdefs.h >>conftest.$ac_ext
! 104972: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 104973: /* end confdefs.h. */
104974:
104975: char *program_name;
104976:
104977: int
104978: main ()
104979: {
104980:
104981: recode_format_table();
104982:
104983: ;
104984: return 0;
104985: }
104986: _ACEOF
1.1.1.3 ! misho 104987: rm -f conftest.$ac_objext conftest$ac_exeext
! 104988: if { (ac_try="$ac_link"
! 104989: case "(($ac_try" in
! 104990: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 104991: *) ac_try_echo=$ac_try;;
! 104992: esac
! 104993: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 104994: (eval "$ac_link") 2>conftest.er1
! 104995: ac_status=$?
! 104996: grep -v '^ *+' conftest.er1 >conftest.err
! 104997: rm -f conftest.er1
! 104998: cat conftest.err >&5
! 104999: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 105000: (exit $ac_status); } && {
! 105001: test -z "$ac_c_werror_flag" ||
! 105002: test ! -s conftest.err
! 105003: } && test -s conftest$ac_exeext &&
! 105004: $as_test_x conftest$ac_exeext; then
1.1 misho 105005:
105006:
105007:
105008: if test "$ext_shared" = "yes"; then
105009: RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
105010: if test -n "$RECODE_DIR/$RECODE_LIB"; then
105011:
105012: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
105013:
105014: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
105015: ai_p=$RECODE_DIR/$RECODE_LIB
105016: else
105017:
105018: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
105019:
105020: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
105021: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
105022: fi
105023:
105024:
105025: if test "$ext_shared" = "yes"; then
105026: RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
105027: test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
105028: else
105029:
105030:
105031:
105032: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
105033:
105034: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
105035: if test -n "$unique" && test "`eval $cmd`" = "" ; then
105036: eval "LIBPATH$unique=set"
105037:
105038: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
105039: LDFLAGS="$LDFLAGS -L$ai_p"
105040: PHP_RPATHS="$PHP_RPATHS $ai_p"
105041:
105042: fi
105043:
105044:
105045: fi
105046:
105047: fi
105048:
105049: fi
105050: else
105051:
105052:
105053: if test -n "$RECODE_DIR/$RECODE_LIB"; then
105054:
105055: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
105056:
105057: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
105058: ai_p=$RECODE_DIR/$RECODE_LIB
105059: else
105060:
105061: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
105062:
105063: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
105064: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
105065: fi
105066:
105067:
105068:
105069:
105070:
105071: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
105072:
105073: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
105074: if test -n "$unique" && test "`eval $cmd`" = "" ; then
105075: eval "LIBPATH$unique=set"
105076:
105077: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
105078: LDFLAGS="$LDFLAGS -L$ai_p"
105079: PHP_RPATHS="$PHP_RPATHS $ai_p"
105080:
105081: fi
105082:
105083:
105084:
105085: fi
105086:
105087: fi
105088:
105089:
105090: case recode in
105091: c|c_r|pthread*) ;;
105092: *)
105093: DLIBS="-lrecode $DLIBS"
105094: ;;
105095: esac
105096:
105097:
105098:
105099:
105100: fi
105101:
105102:
105103:
1.1.1.3 ! misho 105104: cat >>confdefs.h <<\_ACEOF
! 105105: #define HAVE_BROKEN_RECODE 1
! 105106: _ACEOF
1.1 misho 105107:
105108:
105109: else
1.1.1.3 ! misho 105110: echo "$as_me: failed program was:" >&5
! 105111: sed 's/^/| /' conftest.$ac_ext >&5
! 105112:
1.1 misho 105113:
1.1.1.3 ! misho 105114: { { echo "$as_me:$LINENO: error: I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" >&5
! 105115: echo "$as_me: error: I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" >&2;}
! 105116: { (exit 1); exit 1; }; }
1.1 misho 105117:
105118: fi
1.1.1.3 ! misho 105119:
! 105120: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 105121: conftest$ac_exeext conftest.$ac_ext
1.1 misho 105122: LIBS=$old_LIBS
105123: LDFLAGS=$old_LDFLAGS
105124:
105125:
105126: fi
105127:
105128:
105129:
1.1.1.3 ! misho 105130: cat >>confdefs.h <<\_ACEOF
! 105131: #define HAVE_LIBRECODE 1
! 105132: _ACEOF
1.1 misho 105133:
105134:
105135: if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then
105136:
105137: if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then
105138: ai_p=$RECODE_DIR/$RECODE_INC
105139: else
105140:
105141: ep_dir="`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'`"
105142:
105143: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
105144: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_INC\"`"
105145: fi
105146:
105147:
105148:
105149: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
105150:
105151: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
105152: if test -n "$unique" && test "`eval $cmd`" = "" ; then
105153: eval "INCLUDEPATH$unique=set"
105154:
105155: if test ""; then
105156: INCLUDES="-I$ai_p $INCLUDES"
105157: else
105158: INCLUDES="$INCLUDES -I$ai_p"
105159: fi
105160:
105161: fi
105162:
105163: fi
105164:
105165:
105166: PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD"
105167:
1.1.1.3 ! misho 105168:
! 105169: for ac_header in stdbool.h
! 105170: do
! 105171: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 105172: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 105173: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 105174: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 105175: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 105176: echo $ECHO_N "(cached) $ECHO_C" >&6
! 105177: fi
! 105178: ac_res=`eval echo '${'$as_ac_Header'}'`
! 105179: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 105180: echo "${ECHO_T}$ac_res" >&6; }
! 105181: else
! 105182: # Is the header compilable?
! 105183: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 105184: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 105185: cat >conftest.$ac_ext <<_ACEOF
! 105186: /* confdefs.h. */
! 105187: _ACEOF
! 105188: cat confdefs.h >>conftest.$ac_ext
! 105189: cat >>conftest.$ac_ext <<_ACEOF
! 105190: /* end confdefs.h. */
! 105191: $ac_includes_default
! 105192: #include <$ac_header>
! 105193: _ACEOF
! 105194: rm -f conftest.$ac_objext
! 105195: if { (ac_try="$ac_compile"
! 105196: case "(($ac_try" in
! 105197: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 105198: *) ac_try_echo=$ac_try;;
! 105199: esac
! 105200: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 105201: (eval "$ac_compile") 2>conftest.er1
! 105202: ac_status=$?
! 105203: grep -v '^ *+' conftest.er1 >conftest.err
! 105204: rm -f conftest.er1
! 105205: cat conftest.err >&5
! 105206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 105207: (exit $ac_status); } && {
! 105208: test -z "$ac_c_werror_flag" ||
! 105209: test ! -s conftest.err
! 105210: } && test -s conftest.$ac_objext; then
! 105211: ac_header_compiler=yes
! 105212: else
! 105213: echo "$as_me: failed program was:" >&5
! 105214: sed 's/^/| /' conftest.$ac_ext >&5
! 105215:
! 105216: ac_header_compiler=no
! 105217: fi
! 105218:
! 105219: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 105220: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 105221: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 105222:
! 105223: # Is the header present?
! 105224: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 105225: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 105226: cat >conftest.$ac_ext <<_ACEOF
! 105227: /* confdefs.h. */
! 105228: _ACEOF
! 105229: cat confdefs.h >>conftest.$ac_ext
! 105230: cat >>conftest.$ac_ext <<_ACEOF
! 105231: /* end confdefs.h. */
! 105232: #include <$ac_header>
! 105233: _ACEOF
! 105234: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 105235: case "(($ac_try" in
! 105236: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 105237: *) ac_try_echo=$ac_try;;
! 105238: esac
! 105239: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 105240: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 105241: ac_status=$?
! 105242: grep -v '^ *+' conftest.er1 >conftest.err
! 105243: rm -f conftest.er1
! 105244: cat conftest.err >&5
! 105245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 105246: (exit $ac_status); } >/dev/null && {
! 105247: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 105248: test ! -s conftest.err
! 105249: }; then
! 105250: ac_header_preproc=yes
! 105251: else
! 105252: echo "$as_me: failed program was:" >&5
! 105253: sed 's/^/| /' conftest.$ac_ext >&5
! 105254:
! 105255: ac_header_preproc=no
! 105256: fi
! 105257:
! 105258: rm -f conftest.err conftest.$ac_ext
! 105259: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 105260: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 105261:
! 105262: # So? What about this header?
! 105263: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 105264: yes:no: )
! 105265: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 105266: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 105267: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 105268: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 105269: ac_header_preproc=yes
! 105270: ;;
! 105271: no:yes:* )
! 105272: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 105273: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 105274: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 105275: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 105276: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 105277: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 105278: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 105279: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 105280: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 105281: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 105282: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 105283: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 105284:
! 105285: ;;
! 105286: esac
! 105287: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 105288: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 105289: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 105290: echo $ECHO_N "(cached) $ECHO_C" >&6
! 105291: else
! 105292: eval "$as_ac_Header=\$ac_header_preproc"
! 105293: fi
! 105294: ac_res=`eval echo '${'$as_ac_Header'}'`
! 105295: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 105296: echo "${ECHO_T}$ac_res" >&6; }
! 105297:
! 105298: fi
! 105299: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 105300: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 105301: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 105302: _ACEOF
105303:
105304: fi
105305:
105306: done
105307:
105308:
105309: ext_builddir=ext/recode
105310: ext_srcdir=$abs_srcdir/ext/recode
105311:
105312: ac_extra=
105313:
105314: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
105315: PHP_RECODE_SHARED=no
105316:
105317:
105318: case ext/recode in
105319: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105320: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105321: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105322: esac
105323:
105324:
105325:
105326: b_c_pre=$php_c_pre
105327: b_cxx_pre=$php_cxx_pre
105328: b_c_meta=$php_c_meta
105329: b_cxx_meta=$php_cxx_meta
105330: b_c_post=$php_c_post
105331: b_cxx_post=$php_cxx_post
105332: b_lo=$php_lo
105333:
105334:
105335: old_IFS=$IFS
105336: for ac_src in recode.c; do
105337:
105338: IFS=.
105339: set $ac_src
105340: ac_obj=$1
105341: IFS=$old_IFS
105342:
105343: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105344:
105345: case $ac_src in
105346: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105347: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105348: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105349: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105350: esac
105351:
105352: cat >>Makefile.objects<<EOF
105353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105354: $ac_comp
105355: EOF
105356: done
105357:
105358:
105359: EXT_STATIC="$EXT_STATIC recode"
105360: if test "$ext_shared" != "nocli"; then
105361: EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
105362: fi
105363: else
105364: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
105365: PHP_RECODE_SHARED=yes
105366:
105367: case ext/recode in
105368: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105369: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105370: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105371: esac
105372:
105373:
105374:
105375: b_c_pre=$shared_c_pre
105376: b_cxx_pre=$shared_cxx_pre
105377: b_c_meta=$shared_c_meta
105378: b_cxx_meta=$shared_cxx_meta
105379: b_c_post=$shared_c_post
105380: b_cxx_post=$shared_cxx_post
105381: b_lo=$shared_lo
105382:
105383:
105384: old_IFS=$IFS
105385: for ac_src in recode.c; do
105386:
105387: IFS=.
105388: set $ac_src
105389: ac_obj=$1
105390: IFS=$old_IFS
105391:
105392: shared_objects_recode="$shared_objects_recode $ac_bdir$ac_obj.lo"
105393:
105394: case $ac_src in
105395: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105396: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105397: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105398: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105399: esac
105400:
105401: cat >>Makefile.objects<<EOF
105402: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105403: $ac_comp
105404: EOF
105405: done
105406:
105407: case $host_alias in
105408: *netware*)
105409:
105410: install_modules="install-modules"
105411:
105412: case $host_alias in
105413: *aix*)
105414: suffix=so
105415: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phprecode.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(PHPRECODE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phprecode.so '$ext_builddir'/phprecode.so'
105416: ;;
105417: *netware*)
105418: suffix=nlm
105419: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) -L$(top_builddir)/netware -lphp5lib $(RECODE_SHARED_LIBADD)'
105420: ;;
105421: *)
105422: suffix=la
105423: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(PHPRECODE_SHARED_LIBADD)'
105424: ;;
105425: esac
105426:
105427: if test "x" = "xyes"; then
105428: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phprecode.$suffix"
105429: else
105430: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phprecode.$suffix"
105431: fi
105432:
105433: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
105434:
105435: cat >>Makefile.objects<<EOF
105436: \$(phplibdir)/phprecode.$suffix: $ext_builddir/phprecode.$suffix
105437: \$(LIBTOOL) --mode=install cp $ext_builddir/phprecode.$suffix \$(phplibdir)
105438:
105439: $ext_builddir/phprecode.$suffix: \$(shared_objects_recode) \$(PHPRECODE_SHARED_DEPENDENCIES)
105440: $link_cmd
105441:
105442: EOF
105443:
105444: ;;
105445: *)
105446:
105447: install_modules="install-modules"
105448:
105449: case $host_alias in
105450: *aix*)
105451: suffix=so
105452: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/recode.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(RECODE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/recode.so '$ext_builddir'/recode.so'
105453: ;;
105454: *netware*)
105455: suffix=nlm
105456: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) -L$(top_builddir)/netware -lphp5lib $(ODE_SHARED_LIBADD)'
105457: ;;
105458: *)
105459: suffix=la
105460: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(RECODE_SHARED_LIBADD)'
105461: ;;
105462: esac
105463:
105464: if test "x" = "xyes"; then
105465: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/recode.$suffix"
105466: else
105467: PHP_MODULES="$PHP_MODULES \$(phplibdir)/recode.$suffix"
105468: fi
105469:
105470: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
105471:
1.1.1.3 ! misho 105472: cat >>Makefile.objects<<EOF
! 105473: \$(phplibdir)/recode.$suffix: $ext_builddir/recode.$suffix
! 105474: \$(LIBTOOL) --mode=install cp $ext_builddir/recode.$suffix \$(phplibdir)
1.1 misho 105475:
1.1.1.3 ! misho 105476: $ext_builddir/recode.$suffix: \$(shared_objects_recode) \$(RECODE_SHARED_DEPENDENCIES)
! 105477: $link_cmd
1.1 misho 105478:
1.1.1.3 ! misho 105479: EOF
! 105480:
! 105481: ;;
1.1 misho 105482: esac
105483:
1.1.1.3 ! misho 105484: cat >>confdefs.h <<_ACEOF
! 105485: #define COMPILE_DL_RECODE 1
! 105486: _ACEOF
1.1 misho 105487:
1.1.1.3 ! misho 105488: fi
! 105489: fi
1.1 misho 105490:
1.1.1.3 ! misho 105491: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
! 105492: PHP_RECODE_SHARED=no
! 105493: case "$PHP_SAPI" in
! 105494: cgi|embed)
1.1 misho 105495:
105496:
105497: case ext/recode in
105498: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105499: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105500: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105501: esac
105502:
105503:
105504:
105505: b_c_pre=$php_c_pre
105506: b_cxx_pre=$php_cxx_pre
105507: b_c_meta=$php_c_meta
105508: b_cxx_meta=$php_cxx_meta
105509: b_c_post=$php_c_post
105510: b_cxx_post=$php_cxx_post
105511: b_lo=$php_lo
105512:
105513:
105514: old_IFS=$IFS
105515: for ac_src in recode.c; do
105516:
105517: IFS=.
105518: set $ac_src
105519: ac_obj=$1
105520: IFS=$old_IFS
105521:
1.1.1.2 misho 105522: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 105523:
105524: case $ac_src in
105525: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105526: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105527: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105528: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105529: esac
105530:
105531: cat >>Makefile.objects<<EOF
105532: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105533: $ac_comp
105534: EOF
105535: done
105536:
105537:
1.1.1.3 ! misho 105538: EXT_STATIC="$EXT_STATIC recode"
! 105539: ;;
! 105540: *)
1.1 misho 105541:
105542:
105543: case ext/recode in
105544: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105545: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105546: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105547: esac
105548:
105549:
105550:
105551: b_c_pre=$php_c_pre
105552: b_cxx_pre=$php_cxx_pre
105553: b_c_meta=$php_c_meta
105554: b_cxx_meta=$php_cxx_meta
105555: b_c_post=$php_c_post
105556: b_cxx_post=$php_cxx_post
105557: b_lo=$php_lo
105558:
105559:
105560: old_IFS=$IFS
105561: for ac_src in recode.c; do
105562:
105563: IFS=.
105564: set $ac_src
105565: ac_obj=$1
105566: IFS=$old_IFS
105567:
1.1.1.2 misho 105568: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 105569:
105570: case $ac_src in
105571: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105572: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105573: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105574: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105575: esac
105576:
105577: cat >>Makefile.objects<<EOF
105578: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105579: $ac_comp
105580: EOF
105581: done
105582:
105583:
1.1.1.3 ! misho 105584: ;;
! 105585: esac
1.1 misho 105586: EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
105587: fi
105588:
105589:
105590: BUILD_DIR="$BUILD_DIR $ext_builddir"
105591:
105592:
105593:
105594: if test "$ext_builddir" = "."; then
105595: PHP_PECL_EXTENSION=recode
105596:
105597: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
105598:
105599: fi
105600:
105601: fi
105602:
105603:
105604:
1.1.1.3 ! misho 105605: cat >>confdefs.h <<\_ACEOF
! 105606: #define HAVE_REFLECTION 1
! 105607: _ACEOF
1.1 misho 105608:
105609:
105610: ext_builddir=ext/reflection
105611: ext_srcdir=$abs_srcdir/ext/reflection
105612:
105613: ac_extra=
105614:
105615: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
105616: PHP_REFLECTION_SHARED=no
105617:
105618:
105619: case ext/reflection in
105620: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105621: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105622: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105623: esac
105624:
105625:
105626:
105627: b_c_pre=$php_c_pre
105628: b_cxx_pre=$php_cxx_pre
105629: b_c_meta=$php_c_meta
105630: b_cxx_meta=$php_cxx_meta
105631: b_c_post=$php_c_post
105632: b_cxx_post=$php_cxx_post
105633: b_lo=$php_lo
105634:
105635:
105636: old_IFS=$IFS
105637: for ac_src in php_reflection.c; do
105638:
105639: IFS=.
105640: set $ac_src
105641: ac_obj=$1
105642: IFS=$old_IFS
105643:
105644: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105645:
105646: case $ac_src in
105647: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105648: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105649: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105650: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105651: esac
105652:
105653: cat >>Makefile.objects<<EOF
105654: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105655: $ac_comp
105656: EOF
105657: done
105658:
105659:
105660: EXT_STATIC="$EXT_STATIC reflection"
105661: if test "no" != "nocli"; then
105662: EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
105663: fi
105664: else
105665: if test "no" = "shared" || test "no" = "yes"; then
105666: PHP_REFLECTION_SHARED=yes
105667:
105668: case ext/reflection in
105669: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105670: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105671: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105672: esac
105673:
105674:
105675:
105676: b_c_pre=$shared_c_pre
105677: b_cxx_pre=$shared_cxx_pre
105678: b_c_meta=$shared_c_meta
105679: b_cxx_meta=$shared_cxx_meta
105680: b_c_post=$shared_c_post
105681: b_cxx_post=$shared_cxx_post
105682: b_lo=$shared_lo
105683:
105684:
105685: old_IFS=$IFS
105686: for ac_src in php_reflection.c; do
105687:
105688: IFS=.
105689: set $ac_src
105690: ac_obj=$1
105691: IFS=$old_IFS
105692:
105693: shared_objects_reflection="$shared_objects_reflection $ac_bdir$ac_obj.lo"
105694:
105695: case $ac_src in
105696: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105697: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105698: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105699: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105700: esac
105701:
105702: cat >>Makefile.objects<<EOF
105703: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105704: $ac_comp
105705: EOF
105706: done
105707:
105708: case $host_alias in
105709: *netware*)
105710:
105711: install_modules="install-modules"
105712:
105713: case $host_alias in
105714: *aix*)
105715: suffix=so
105716: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpreflection.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(PHPREFLECTION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpreflection.so '$ext_builddir'/phpreflection.so'
105717: ;;
105718: *netware*)
105719: suffix=nlm
105720: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) -L$(top_builddir)/netware -lphp5lib $(REFLECTION_SHARED_LIBADD)'
105721: ;;
105722: *)
105723: suffix=la
105724: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(PHPREFLECTION_SHARED_LIBADD)'
105725: ;;
105726: esac
105727:
105728: if test "x" = "xyes"; then
105729: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreflection.$suffix"
105730: else
105731: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreflection.$suffix"
105732: fi
105733:
105734: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
105735:
105736: cat >>Makefile.objects<<EOF
105737: \$(phplibdir)/phpreflection.$suffix: $ext_builddir/phpreflection.$suffix
105738: \$(LIBTOOL) --mode=install cp $ext_builddir/phpreflection.$suffix \$(phplibdir)
105739:
105740: $ext_builddir/phpreflection.$suffix: \$(shared_objects_reflection) \$(PHPREFLECTION_SHARED_DEPENDENCIES)
105741: $link_cmd
105742:
105743: EOF
105744:
105745: ;;
105746: *)
105747:
105748: install_modules="install-modules"
105749:
105750: case $host_alias in
105751: *aix*)
105752: suffix=so
105753: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/reflection.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(REFLECTION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/reflection.so '$ext_builddir'/reflection.so'
105754: ;;
105755: *netware*)
105756: suffix=nlm
105757: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) -L$(top_builddir)/netware -lphp5lib $(LECTION_SHARED_LIBADD)'
105758: ;;
105759: *)
105760: suffix=la
105761: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(REFLECTION_SHARED_LIBADD)'
105762: ;;
105763: esac
105764:
105765: if test "x" = "xyes"; then
105766: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/reflection.$suffix"
105767: else
105768: PHP_MODULES="$PHP_MODULES \$(phplibdir)/reflection.$suffix"
105769: fi
105770:
105771: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
105772:
105773: cat >>Makefile.objects<<EOF
105774: \$(phplibdir)/reflection.$suffix: $ext_builddir/reflection.$suffix
105775: \$(LIBTOOL) --mode=install cp $ext_builddir/reflection.$suffix \$(phplibdir)
105776:
105777: $ext_builddir/reflection.$suffix: \$(shared_objects_reflection) \$(REFLECTION_SHARED_DEPENDENCIES)
105778: $link_cmd
105779:
105780: EOF
105781:
105782: ;;
105783: esac
105784:
105785: cat >>confdefs.h <<_ACEOF
105786: #define COMPILE_DL_REFLECTION 1
105787: _ACEOF
105788:
105789: fi
105790: fi
105791:
105792: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
105793: PHP_REFLECTION_SHARED=no
1.1.1.3 ! misho 105794: case "$PHP_SAPI" in
! 105795: cgi|embed)
1.1 misho 105796:
105797:
105798: case ext/reflection in
105799: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105800: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105801: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105802: esac
105803:
105804:
105805:
105806: b_c_pre=$php_c_pre
105807: b_cxx_pre=$php_cxx_pre
105808: b_c_meta=$php_c_meta
105809: b_cxx_meta=$php_cxx_meta
105810: b_c_post=$php_c_post
105811: b_cxx_post=$php_cxx_post
105812: b_lo=$php_lo
105813:
105814:
105815: old_IFS=$IFS
105816: for ac_src in php_reflection.c; do
105817:
105818: IFS=.
105819: set $ac_src
105820: ac_obj=$1
105821: IFS=$old_IFS
105822:
1.1.1.2 misho 105823: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 105824:
105825: case $ac_src in
105826: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105827: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105828: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105829: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105830: esac
105831:
105832: cat >>Makefile.objects<<EOF
105833: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105834: $ac_comp
105835: EOF
105836: done
105837:
105838:
1.1.1.3 ! misho 105839: EXT_STATIC="$EXT_STATIC reflection"
! 105840: ;;
! 105841: *)
1.1 misho 105842:
105843:
105844: case ext/reflection in
105845: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105846: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105847: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105848: esac
105849:
105850:
105851:
105852: b_c_pre=$php_c_pre
105853: b_cxx_pre=$php_cxx_pre
105854: b_c_meta=$php_c_meta
105855: b_cxx_meta=$php_cxx_meta
105856: b_c_post=$php_c_post
105857: b_cxx_post=$php_cxx_post
105858: b_lo=$php_lo
105859:
105860:
105861: old_IFS=$IFS
105862: for ac_src in php_reflection.c; do
105863:
105864: IFS=.
105865: set $ac_src
105866: ac_obj=$1
105867: IFS=$old_IFS
105868:
1.1.1.2 misho 105869: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 105870:
105871: case $ac_src in
105872: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105873: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105874: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105875: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105876: esac
105877:
105878: cat >>Makefile.objects<<EOF
105879: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105880: $ac_comp
105881: EOF
105882: done
105883:
105884:
1.1.1.3 ! misho 105885: ;;
! 105886: esac
1.1 misho 105887: EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
105888: fi
105889:
105890:
105891: BUILD_DIR="$BUILD_DIR $ext_builddir"
105892:
105893:
105894:
105895: if test "$ext_builddir" = "."; then
105896: PHP_PECL_EXTENSION=reflection
105897:
105898: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
105899:
105900: fi
105901:
105902:
105903:
105904:
105905: php_enable_session=yes
105906:
1.1.1.3 ! misho 105907: { echo "$as_me:$LINENO: checking whether to enable PHP sessions" >&5
! 105908: echo $ECHO_N "checking whether to enable PHP sessions... $ECHO_C" >&6; }
1.1 misho 105909: # Check whether --enable-session was given.
1.1.1.3 ! misho 105910: if test "${enable_session+set}" = set; then
1.1 misho 105911: enableval=$enable_session; PHP_SESSION=$enableval
105912: else
105913:
105914: PHP_SESSION=yes
105915: test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL
105916:
105917: fi
105918:
105919:
105920:
105921: ext_output="yes, shared"
105922: ext_shared=yes
105923: case $PHP_SESSION in
105924: shared,*)
105925: PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'`
105926: ;;
105927: shared)
105928: PHP_SESSION=yes
105929: ;;
105930: no)
105931: ext_output=no
105932: ext_shared=no
105933: ;;
105934: *)
105935: ext_output=yes
105936: ext_shared=no
105937: ;;
105938: esac
105939:
105940:
105941:
1.1.1.3 ! misho 105942: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 105943: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 105944:
105945:
105946:
105947:
105948:
105949: php_with_mm=no
105950:
1.1.1.3 ! misho 105951: { echo "$as_me:$LINENO: checking for mm support" >&5
! 105952: echo $ECHO_N "checking for mm support... $ECHO_C" >&6; }
1.1 misho 105953:
105954: # Check whether --with-mm was given.
1.1.1.3 ! misho 105955: if test "${with_mm+set}" = set; then
1.1 misho 105956: withval=$with_mm; PHP_MM=$withval
105957: else
105958:
105959: PHP_MM=no
105960:
105961:
105962: fi
105963:
105964:
105965: ext_output=$PHP_MM
1.1.1.3 ! misho 105966: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 105967: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 105968:
105969:
105970:
105971:
105972: if test "$PHP_SESSION" != "no"; then
105973:
1.1.1.3 ! misho 105974: { echo "$as_me:$LINENO: checking whether pwrite works" >&5
! 105975: echo $ECHO_N "checking whether pwrite works... $ECHO_C" >&6; }
! 105976: if test "${ac_cv_pwrite+set}" = set; then
! 105977: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 105978: else
105979:
105980:
1.1.1.3 ! misho 105981: if test "$cross_compiling" = yes; then
1.1 misho 105982:
105983: ac_cv_pwrite=no
105984:
105985: else
1.1.1.3 ! misho 105986: cat >conftest.$ac_ext <<_ACEOF
! 105987: /* confdefs.h. */
! 105988: _ACEOF
! 105989: cat confdefs.h >>conftest.$ac_ext
! 105990: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 105991: /* end confdefs.h. */
105992:
105993: #include <sys/types.h>
105994: #include <sys/stat.h>
105995: #include <fcntl.h>
105996: #include <unistd.h>
105997: #include <errno.h>
105998:
105999: main() {
106000: int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
106001:
106002: if (fd < 0) exit(1);
106003: if (pwrite(fd, "text", 4, 0) != 4) exit(1);
106004: /* Linux glibc breakage until 2.2.5 */
106005: if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
106006: exit(0);
106007: }
106008:
106009:
106010: _ACEOF
1.1.1.3 ! misho 106011: rm -f conftest$ac_exeext
! 106012: if { (ac_try="$ac_link"
! 106013: case "(($ac_try" in
! 106014: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106015: *) ac_try_echo=$ac_try;;
! 106016: esac
! 106017: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106018: (eval "$ac_link") 2>&5
! 106019: ac_status=$?
! 106020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106021: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 106022: { (case "(($ac_try" in
! 106023: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106024: *) ac_try_echo=$ac_try;;
! 106025: esac
! 106026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106027: (eval "$ac_try") 2>&5
! 106028: ac_status=$?
! 106029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106030: (exit $ac_status); }; }; then
1.1 misho 106031:
106032: ac_cv_pwrite=yes
106033:
106034: else
1.1.1.3 ! misho 106035: echo "$as_me: program exited with status $ac_status" >&5
! 106036: echo "$as_me: failed program was:" >&5
! 106037: sed 's/^/| /' conftest.$ac_ext >&5
! 106038:
! 106039: ( exit $ac_status )
1.1 misho 106040:
106041: ac_cv_pwrite=no
106042:
106043: fi
1.1.1.3 ! misho 106044: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 106045: fi
106046:
106047:
1.1.1.3 ! misho 106048:
1.1 misho 106049: if test "$ac_cv_pwrite" = "no"; then
106050:
1.1.1.3 ! misho 106051: if test "$cross_compiling" = yes; then
1.1 misho 106052:
106053: ac_cv_pwrite=no
106054:
106055: else
1.1.1.3 ! misho 106056: cat >conftest.$ac_ext <<_ACEOF
! 106057: /* confdefs.h. */
! 106058: _ACEOF
! 106059: cat confdefs.h >>conftest.$ac_ext
! 106060: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 106061: /* end confdefs.h. */
106062:
106063: #include <sys/types.h>
106064: #include <sys/stat.h>
106065: #include <fcntl.h>
106066: #include <unistd.h>
106067: #include <errno.h>
106068: ssize_t pwrite(int, void *, size_t, off64_t);
106069: main() {
106070: int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
106071:
106072: if (fd < 0) exit(1);
106073: if (pwrite(fd, "text", 4, 0) != 4) exit(1);
106074: /* Linux glibc breakage until 2.2.5 */
106075: if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
106076: exit(0);
106077: }
106078:
106079:
106080: _ACEOF
1.1.1.3 ! misho 106081: rm -f conftest$ac_exeext
! 106082: if { (ac_try="$ac_link"
! 106083: case "(($ac_try" in
! 106084: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106085: *) ac_try_echo=$ac_try;;
! 106086: esac
! 106087: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106088: (eval "$ac_link") 2>&5
! 106089: ac_status=$?
! 106090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106091: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 106092: { (case "(($ac_try" in
! 106093: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106094: *) ac_try_echo=$ac_try;;
! 106095: esac
! 106096: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106097: (eval "$ac_try") 2>&5
! 106098: ac_status=$?
! 106099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106100: (exit $ac_status); }; }; then
1.1 misho 106101:
106102: ac_cv_pwrite=yes
106103:
106104: else
1.1.1.3 ! misho 106105: echo "$as_me: program exited with status $ac_status" >&5
! 106106: echo "$as_me: failed program was:" >&5
! 106107: sed 's/^/| /' conftest.$ac_ext >&5
! 106108:
! 106109: ( exit $ac_status )
1.1 misho 106110:
106111: ac_cv_pwrite=no
106112:
106113: fi
1.1.1.3 ! misho 106114: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 106115: fi
106116:
106117:
1.1.1.3 ! misho 106118:
1.1 misho 106119: if test "$ac_cv_pwrite" = "yes"; then
106120: ac_cv_pwrite=64
106121: fi
106122: fi
106123:
106124: fi
1.1.1.3 ! misho 106125: { echo "$as_me:$LINENO: result: $ac_cv_pwrite" >&5
! 106126: echo "${ECHO_T}$ac_cv_pwrite" >&6; }
1.1 misho 106127:
106128: if test "$ac_cv_pwrite" != "no"; then
106129:
1.1.1.3 ! misho 106130: cat >>confdefs.h <<\_ACEOF
! 106131: #define HAVE_PWRITE 1
! 106132: _ACEOF
1.1 misho 106133:
106134: if test "$ac_cv_pwrite" = "64"; then
106135:
1.1.1.3 ! misho 106136: cat >>confdefs.h <<\_ACEOF
! 106137: #define PHP_PWRITE_64 1
! 106138: _ACEOF
1.1 misho 106139:
106140: fi
106141: fi
106142:
106143:
1.1.1.3 ! misho 106144: { echo "$as_me:$LINENO: checking whether pread works" >&5
! 106145: echo $ECHO_N "checking whether pread works... $ECHO_C" >&6; }
! 106146: if test "${ac_cv_pread+set}" = set; then
! 106147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 106148: else
106149:
106150:
106151: echo test > conftest_in
1.1.1.3 ! misho 106152: if test "$cross_compiling" = yes; then
1.1 misho 106153:
106154: ac_cv_pread=no
106155:
106156: else
1.1.1.3 ! misho 106157: cat >conftest.$ac_ext <<_ACEOF
! 106158: /* confdefs.h. */
! 106159: _ACEOF
! 106160: cat confdefs.h >>conftest.$ac_ext
! 106161: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 106162: /* end confdefs.h. */
106163:
106164: #include <sys/types.h>
106165: #include <sys/stat.h>
106166: #include <fcntl.h>
106167: #include <unistd.h>
106168: #include <errno.h>
106169:
106170: main() {
106171: char buf[3];
106172: int fd = open("conftest_in", O_RDONLY);
106173: if (fd < 0) exit(1);
106174: if (pread(fd, buf, 2, 0) != 2) exit(1);
106175: /* Linux glibc breakage until 2.2.5 */
106176: if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
106177: exit(0);
106178: }
106179:
106180: _ACEOF
1.1.1.3 ! misho 106181: rm -f conftest$ac_exeext
! 106182: if { (ac_try="$ac_link"
! 106183: case "(($ac_try" in
! 106184: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106185: *) ac_try_echo=$ac_try;;
! 106186: esac
! 106187: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106188: (eval "$ac_link") 2>&5
! 106189: ac_status=$?
! 106190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106191: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 106192: { (case "(($ac_try" in
! 106193: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106194: *) ac_try_echo=$ac_try;;
! 106195: esac
! 106196: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106197: (eval "$ac_try") 2>&5
! 106198: ac_status=$?
! 106199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106200: (exit $ac_status); }; }; then
1.1 misho 106201:
106202: ac_cv_pread=yes
106203:
106204: else
1.1.1.3 ! misho 106205: echo "$as_me: program exited with status $ac_status" >&5
! 106206: echo "$as_me: failed program was:" >&5
! 106207: sed 's/^/| /' conftest.$ac_ext >&5
! 106208:
! 106209: ( exit $ac_status )
1.1 misho 106210:
106211: ac_cv_pread=no
106212:
106213: fi
1.1.1.3 ! misho 106214: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 106215: fi
106216:
1.1.1.3 ! misho 106217:
1.1 misho 106218: rm -f conftest_in
106219:
106220: if test "$ac_cv_pread" = "no"; then
106221:
106222: echo test > conftest_in
1.1.1.3 ! misho 106223: if test "$cross_compiling" = yes; then
1.1 misho 106224:
106225: ac_cv_pread=no
106226:
106227: else
1.1.1.3 ! misho 106228: cat >conftest.$ac_ext <<_ACEOF
! 106229: /* confdefs.h. */
! 106230: _ACEOF
! 106231: cat confdefs.h >>conftest.$ac_ext
! 106232: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 106233: /* end confdefs.h. */
106234:
106235: #include <sys/types.h>
106236: #include <sys/stat.h>
106237: #include <fcntl.h>
106238: #include <unistd.h>
106239: #include <errno.h>
106240: ssize_t pread(int, void *, size_t, off64_t);
106241: main() {
106242: char buf[3];
106243: int fd = open("conftest_in", O_RDONLY);
106244: if (fd < 0) exit(1);
106245: if (pread(fd, buf, 2, 0) != 2) exit(1);
106246: /* Linux glibc breakage until 2.2.5 */
106247: if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
106248: exit(0);
106249: }
106250:
106251: _ACEOF
1.1.1.3 ! misho 106252: rm -f conftest$ac_exeext
! 106253: if { (ac_try="$ac_link"
! 106254: case "(($ac_try" in
! 106255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106256: *) ac_try_echo=$ac_try;;
! 106257: esac
! 106258: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106259: (eval "$ac_link") 2>&5
! 106260: ac_status=$?
! 106261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106262: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 106263: { (case "(($ac_try" in
! 106264: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 106265: *) ac_try_echo=$ac_try;;
! 106266: esac
! 106267: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 106268: (eval "$ac_try") 2>&5
! 106269: ac_status=$?
! 106270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 106271: (exit $ac_status); }; }; then
1.1 misho 106272:
106273: ac_cv_pread=yes
106274:
106275: else
1.1.1.3 ! misho 106276: echo "$as_me: program exited with status $ac_status" >&5
! 106277: echo "$as_me: failed program was:" >&5
! 106278: sed 's/^/| /' conftest.$ac_ext >&5
! 106279:
! 106280: ( exit $ac_status )
1.1 misho 106281:
106282: ac_cv_pread=no
106283:
106284: fi
1.1.1.3 ! misho 106285: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 106286: fi
106287:
1.1.1.3 ! misho 106288:
1.1 misho 106289: rm -f conftest_in
106290:
106291: if test "$ac_cv_pread" = "yes"; then
106292: ac_cv_pread=64
106293: fi
106294: fi
106295:
106296: fi
1.1.1.3 ! misho 106297: { echo "$as_me:$LINENO: result: $ac_cv_pread" >&5
! 106298: echo "${ECHO_T}$ac_cv_pread" >&6; }
1.1 misho 106299:
106300: if test "$ac_cv_pread" != "no"; then
106301:
1.1.1.3 ! misho 106302: cat >>confdefs.h <<\_ACEOF
! 106303: #define HAVE_PREAD 1
! 106304: _ACEOF
1.1 misho 106305:
106306: if test "$ac_cv_pread" = "64"; then
106307:
1.1.1.3 ! misho 106308: cat >>confdefs.h <<\_ACEOF
! 106309: #define PHP_PREAD_64 1
! 106310: _ACEOF
1.1 misho 106311:
106312: fi
106313: fi
106314:
106315:
106316: ext_builddir=ext/session
106317: ext_srcdir=$abs_srcdir/ext/session
106318:
106319: ac_extra=
106320:
106321: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
106322: PHP_SESSION_SHARED=no
106323:
106324:
106325: case ext/session in
106326: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106327: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106328: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106329: esac
106330:
106331:
106332:
106333: b_c_pre=$php_c_pre
106334: b_cxx_pre=$php_cxx_pre
106335: b_c_meta=$php_c_meta
106336: b_cxx_meta=$php_cxx_meta
106337: b_c_post=$php_c_post
106338: b_cxx_post=$php_cxx_post
106339: b_lo=$php_lo
106340:
106341:
106342: old_IFS=$IFS
1.1.1.2 misho 106343: for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1 misho 106344:
106345: IFS=.
106346: set $ac_src
106347: ac_obj=$1
106348: IFS=$old_IFS
106349:
106350: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
106351:
106352: case $ac_src in
106353: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106354: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106355: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106356: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106357: esac
106358:
106359: cat >>Makefile.objects<<EOF
106360: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106361: $ac_comp
106362: EOF
106363: done
106364:
106365:
106366: EXT_STATIC="$EXT_STATIC session"
106367: if test "$ext_shared" != "nocli"; then
106368: EXT_CLI_STATIC="$EXT_CLI_STATIC session"
106369: fi
106370: else
106371: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
106372: PHP_SESSION_SHARED=yes
106373:
106374: case ext/session in
106375: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106376: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106377: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106378: esac
106379:
106380:
106381:
106382: b_c_pre=$shared_c_pre
106383: b_cxx_pre=$shared_cxx_pre
106384: b_c_meta=$shared_c_meta
106385: b_cxx_meta=$shared_cxx_meta
106386: b_c_post=$shared_c_post
106387: b_cxx_post=$shared_cxx_post
106388: b_lo=$shared_lo
106389:
106390:
106391: old_IFS=$IFS
1.1.1.2 misho 106392: for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1 misho 106393:
106394: IFS=.
106395: set $ac_src
106396: ac_obj=$1
106397: IFS=$old_IFS
106398:
106399: shared_objects_session="$shared_objects_session $ac_bdir$ac_obj.lo"
106400:
106401: case $ac_src in
106402: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106403: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106404: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106405: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106406: esac
106407:
106408: cat >>Makefile.objects<<EOF
106409: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106410: $ac_comp
106411: EOF
106412: done
106413:
106414: case $host_alias in
106415: *netware*)
106416:
106417: install_modules="install-modules"
106418:
106419: case $host_alias in
106420: *aix*)
106421: suffix=so
106422: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsession.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(PHPSESSION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsession.so '$ext_builddir'/phpsession.so'
106423: ;;
106424: *netware*)
106425: suffix=nlm
106426: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) -L$(top_builddir)/netware -lphp5lib $(SESSION_SHARED_LIBADD)'
106427: ;;
106428: *)
106429: suffix=la
106430: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(PHPSESSION_SHARED_LIBADD)'
106431: ;;
106432: esac
106433:
106434: if test "x" = "xyes"; then
106435: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsession.$suffix"
106436: else
106437: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsession.$suffix"
106438: fi
106439:
106440: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
106441:
106442: cat >>Makefile.objects<<EOF
106443: \$(phplibdir)/phpsession.$suffix: $ext_builddir/phpsession.$suffix
106444: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsession.$suffix \$(phplibdir)
106445:
106446: $ext_builddir/phpsession.$suffix: \$(shared_objects_session) \$(PHPSESSION_SHARED_DEPENDENCIES)
106447: $link_cmd
106448:
106449: EOF
106450:
106451: ;;
106452: *)
106453:
106454: install_modules="install-modules"
106455:
106456: case $host_alias in
106457: *aix*)
106458: suffix=so
106459: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/session.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(SESSION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/session.so '$ext_builddir'/session.so'
106460: ;;
106461: *netware*)
106462: suffix=nlm
106463: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) -L$(top_builddir)/netware -lphp5lib $(SION_SHARED_LIBADD)'
106464: ;;
106465: *)
106466: suffix=la
106467: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(SESSION_SHARED_LIBADD)'
106468: ;;
106469: esac
106470:
106471: if test "x" = "xyes"; then
106472: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/session.$suffix"
106473: else
106474: PHP_MODULES="$PHP_MODULES \$(phplibdir)/session.$suffix"
106475: fi
106476:
106477: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
106478:
106479: cat >>Makefile.objects<<EOF
106480: \$(phplibdir)/session.$suffix: $ext_builddir/session.$suffix
106481: \$(LIBTOOL) --mode=install cp $ext_builddir/session.$suffix \$(phplibdir)
106482:
106483: $ext_builddir/session.$suffix: \$(shared_objects_session) \$(SESSION_SHARED_DEPENDENCIES)
106484: $link_cmd
106485:
106486: EOF
106487:
106488: ;;
106489: esac
106490:
106491: cat >>confdefs.h <<_ACEOF
106492: #define COMPILE_DL_SESSION 1
106493: _ACEOF
106494:
106495: fi
106496: fi
106497:
106498: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
106499: PHP_SESSION_SHARED=no
1.1.1.3 ! misho 106500: case "$PHP_SAPI" in
! 106501: cgi|embed)
1.1 misho 106502:
106503:
106504: case ext/session in
106505: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106506: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106507: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106508: esac
106509:
106510:
106511:
106512: b_c_pre=$php_c_pre
106513: b_cxx_pre=$php_cxx_pre
106514: b_c_meta=$php_c_meta
106515: b_cxx_meta=$php_cxx_meta
106516: b_c_post=$php_c_post
106517: b_cxx_post=$php_cxx_post
106518: b_lo=$php_lo
106519:
106520:
106521: old_IFS=$IFS
1.1.1.2 misho 106522: for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1 misho 106523:
106524: IFS=.
106525: set $ac_src
106526: ac_obj=$1
106527: IFS=$old_IFS
106528:
1.1.1.2 misho 106529: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 106530:
106531: case $ac_src in
106532: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106533: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106534: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106535: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106536: esac
106537:
106538: cat >>Makefile.objects<<EOF
106539: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106540: $ac_comp
106541: EOF
106542: done
106543:
106544:
1.1.1.3 ! misho 106545: EXT_STATIC="$EXT_STATIC session"
! 106546: ;;
! 106547: *)
1.1 misho 106548:
106549:
106550: case ext/session in
106551: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106552: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106553: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106554: esac
106555:
106556:
106557:
106558: b_c_pre=$php_c_pre
106559: b_cxx_pre=$php_cxx_pre
106560: b_c_meta=$php_c_meta
106561: b_cxx_meta=$php_cxx_meta
106562: b_c_post=$php_c_post
106563: b_cxx_post=$php_cxx_post
106564: b_lo=$php_lo
106565:
106566:
106567: old_IFS=$IFS
1.1.1.2 misho 106568: for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1 misho 106569:
106570: IFS=.
106571: set $ac_src
106572: ac_obj=$1
106573: IFS=$old_IFS
106574:
1.1.1.2 misho 106575: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 106576:
106577: case $ac_src in
106578: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106579: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106580: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106581: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106582: esac
106583:
106584: cat >>Makefile.objects<<EOF
106585: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106586: $ac_comp
106587: EOF
106588: done
106589:
106590:
1.1.1.3 ! misho 106591: ;;
! 106592: esac
1.1 misho 106593: EXT_CLI_STATIC="$EXT_CLI_STATIC session"
106594: fi
106595:
106596:
106597: BUILD_DIR="$BUILD_DIR $ext_builddir"
106598:
106599:
106600:
106601: if test "$ext_builddir" = "."; then
106602: PHP_PECL_EXTENSION=session
106603:
106604: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
106605:
106606: fi
106607:
106608:
106609: am_i_shared=$PHP_SESSION_SHARED
106610: is_it_shared=$PHP_HASH_SHARED
106611: is_it_enabled=$PHP_HASH
106612: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 106613: { { echo "$as_me:$LINENO: error:
! 106614: You've configured extension session to build statically, but it
! 106615: depends on extension hash, which you've configured to build shared.
! 106616: You either need to build session shared or build hash statically for the
! 106617: build to be successful.
! 106618: " >&5
! 106619: echo "$as_me: error:
1.1 misho 106620: You've configured extension session to build statically, but it
106621: depends on extension hash, which you've configured to build shared.
106622: You either need to build session shared or build hash statically for the
106623: build to be successful.
1.1.1.3 ! misho 106624: " >&2;}
! 106625: { (exit 1); exit 1; }; }
! 106626: fi
! 106627: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 106628: { { echo "$as_me:$LINENO: error:
! 106629: You've configured extension session, which depends on extension hash,
! 106630: but you've either not enabled hash, or have disabled it.
! 106631: " >&5
! 106632: echo "$as_me: error:
! 106633: You've configured extension session, which depends on extension hash,
! 106634: but you've either not enabled hash, or have disabled it.
! 106635: " >&2;}
! 106636: { (exit 1); exit 1; }; }
1.1 misho 106637: fi
106638:
106639:
106640: am_i_shared=$PHP_SESSION_SHARED
106641: is_it_shared=$PHP_SPL_SHARED
106642: is_it_enabled=$PHP_SPL
106643: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 106644: { { echo "$as_me:$LINENO: error:
! 106645: You've configured extension session to build statically, but it
! 106646: depends on extension spl, which you've configured to build shared.
! 106647: You either need to build session shared or build spl statically for the
! 106648: build to be successful.
! 106649: " >&5
! 106650: echo "$as_me: error:
1.1 misho 106651: You've configured extension session to build statically, but it
106652: depends on extension spl, which you've configured to build shared.
106653: You either need to build session shared or build spl statically for the
106654: build to be successful.
1.1.1.3 ! misho 106655: " >&2;}
! 106656: { (exit 1); exit 1; }; }
! 106657: fi
! 106658: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 106659: { { echo "$as_me:$LINENO: error:
! 106660: You've configured extension session, which depends on extension spl,
! 106661: but you've either not enabled spl, or have disabled it.
! 106662: " >&5
! 106663: echo "$as_me: error:
! 106664: You've configured extension session, which depends on extension spl,
! 106665: but you've either not enabled spl, or have disabled it.
! 106666: " >&2;}
! 106667: { (exit 1); exit 1; }; }
1.1 misho 106668: fi
106669:
106670:
106671: PHP_VAR_SUBST="$PHP_VAR_SUBST SESSION_SHARED_LIBADD"
106672:
106673:
106674:
106675: header_path=ext/session
106676: for header_file in php_session.h mod_files.h mod_user.h; do
106677: hp_hf="$header_path/$header_file"
106678:
106679:
106680: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
106681:
106682: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
106683: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106684: eval "INSTALLHEADERS$unique=set"
106685:
106686: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
106687:
106688: fi
106689:
106690: done
106691:
106692:
106693:
1.1.1.3 ! misho 106694: cat >>confdefs.h <<\_ACEOF
! 106695: #define HAVE_PHP_SESSION 1
! 106696: _ACEOF
1.1 misho 106697:
106698: fi
106699:
106700: if test "$PHP_MM" != "no"; then
106701: for i in $PHP_MM /usr/local /usr; do
106702: test -f "$i/include/mm.h" && MM_DIR=$i && break
106703: done
106704:
106705: if test -z "$MM_DIR" ; then
1.1.1.3 ! misho 106706: { { echo "$as_me:$LINENO: error: cannot find mm library" >&5
! 106707: echo "$as_me: error: cannot find mm library" >&2;}
! 106708: { (exit 1); exit 1; }; }
1.1 misho 106709: fi
106710:
106711:
106712:
106713: if test "$ext_shared" = "yes"; then
106714: SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD"
106715: if test -n "$MM_DIR/$PHP_LIBDIR"; then
106716:
106717: if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
106718:
106719: if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
106720: ai_p=$MM_DIR/$PHP_LIBDIR
106721: else
106722:
106723: ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
106724:
106725: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106726: ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
106727: fi
106728:
106729:
106730: if test "$ext_shared" = "yes"; then
106731: SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD"
106732: test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD"
106733: else
106734:
106735:
106736:
106737: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106738:
106739: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
106740: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106741: eval "LIBPATH$unique=set"
106742:
106743: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
106744: LDFLAGS="$LDFLAGS -L$ai_p"
106745: PHP_RPATHS="$PHP_RPATHS $ai_p"
106746:
106747: fi
106748:
106749:
106750: fi
106751:
106752: fi
106753:
106754: fi
106755: else
106756:
106757:
106758: if test -n "$MM_DIR/$PHP_LIBDIR"; then
106759:
106760: if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
106761:
106762: if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
106763: ai_p=$MM_DIR/$PHP_LIBDIR
106764: else
106765:
106766: ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
106767:
106768: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106769: ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
106770: fi
106771:
106772:
106773:
106774:
106775:
106776: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106777:
106778: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
106779: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106780: eval "LIBPATH$unique=set"
106781:
106782: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
106783: LDFLAGS="$LDFLAGS -L$ai_p"
106784: PHP_RPATHS="$PHP_RPATHS $ai_p"
106785:
106786: fi
106787:
106788:
106789:
106790: fi
106791:
106792: fi
106793:
106794:
106795: case mm in
106796: c|c_r|pthread*) ;;
106797: *)
106798: LIBS="-lmm $LIBS"
106799: ;;
106800: esac
106801:
106802:
106803:
106804:
106805: fi
106806:
106807:
106808:
106809: if test "$MM_DIR/include" != "/usr/include"; then
106810:
106811: if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then
106812: ai_p=$MM_DIR/include
106813: else
106814:
106815: ep_dir="`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
106816:
106817: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106818: ai_p="$ep_realdir/`basename \"$MM_DIR/include\"`"
106819: fi
106820:
106821:
106822:
106823: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106824:
106825: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
106826: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106827: eval "INCLUDEPATH$unique=set"
106828:
106829: if test ""; then
106830: INCLUDES="-I$ai_p $INCLUDES"
106831: else
106832: INCLUDES="$INCLUDES -I$ai_p"
106833: fi
106834:
106835: fi
106836:
106837: fi
106838:
106839:
106840:
106841: for header_file in ext/session/mod_mm.h; do
106842:
106843:
106844: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
106845:
106846: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
106847: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106848: eval "INSTALLHEADERS$unique=set"
106849:
106850: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
106851:
106852: fi
106853:
106854: done
106855:
106856:
106857:
1.1.1.3 ! misho 106858: cat >>confdefs.h <<\_ACEOF
! 106859: #define HAVE_LIBMM 1
! 106860: _ACEOF
1.1 misho 106861:
106862: fi
106863:
106864:
106865: php_enable_shmop=no
106866:
1.1.1.3 ! misho 106867: { echo "$as_me:$LINENO: checking whether to enable shmop support" >&5
! 106868: echo $ECHO_N "checking whether to enable shmop support... $ECHO_C" >&6; }
1.1 misho 106869: # Check whether --enable-shmop was given.
1.1.1.3 ! misho 106870: if test "${enable_shmop+set}" = set; then
1.1 misho 106871: enableval=$enable_shmop; PHP_SHMOP=$enableval
106872: else
106873:
106874: PHP_SHMOP=no
106875: test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL
106876:
106877: fi
106878:
106879:
106880:
106881: ext_output="yes, shared"
106882: ext_shared=yes
106883: case $PHP_SHMOP in
106884: shared,*)
106885: PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'`
106886: ;;
106887: shared)
106888: PHP_SHMOP=yes
106889: ;;
106890: no)
106891: ext_output=no
106892: ext_shared=no
106893: ;;
106894: *)
106895: ext_output=yes
106896: ext_shared=no
106897: ;;
106898: esac
106899:
106900:
106901:
1.1.1.3 ! misho 106902: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 106903: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 106904:
106905:
106906:
106907:
106908: if test "$PHP_SHMOP" != "no"; then
106909:
1.1.1.3 ! misho 106910: cat >>confdefs.h <<\_ACEOF
! 106911: #define HAVE_SHMOP 1
! 106912: _ACEOF
1.1 misho 106913:
106914:
106915: ext_builddir=ext/shmop
106916: ext_srcdir=$abs_srcdir/ext/shmop
106917:
106918: ac_extra=
106919:
106920: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
106921: PHP_SHMOP_SHARED=no
106922:
106923:
106924: case ext/shmop in
106925: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106926: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106927: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106928: esac
106929:
106930:
106931:
106932: b_c_pre=$php_c_pre
106933: b_cxx_pre=$php_cxx_pre
106934: b_c_meta=$php_c_meta
106935: b_cxx_meta=$php_cxx_meta
106936: b_c_post=$php_c_post
106937: b_cxx_post=$php_cxx_post
106938: b_lo=$php_lo
106939:
106940:
106941: old_IFS=$IFS
106942: for ac_src in shmop.c; do
106943:
106944: IFS=.
106945: set $ac_src
106946: ac_obj=$1
106947: IFS=$old_IFS
106948:
106949: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
106950:
106951: case $ac_src in
106952: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106953: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106954: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106955: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106956: esac
106957:
106958: cat >>Makefile.objects<<EOF
106959: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106960: $ac_comp
106961: EOF
106962: done
106963:
106964:
106965: EXT_STATIC="$EXT_STATIC shmop"
106966: if test "$ext_shared" != "nocli"; then
106967: EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
106968: fi
106969: else
106970: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
106971: PHP_SHMOP_SHARED=yes
106972:
106973: case ext/shmop in
106974: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106975: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106976: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106977: esac
106978:
106979:
106980:
106981: b_c_pre=$shared_c_pre
106982: b_cxx_pre=$shared_cxx_pre
106983: b_c_meta=$shared_c_meta
106984: b_cxx_meta=$shared_cxx_meta
106985: b_c_post=$shared_c_post
106986: b_cxx_post=$shared_cxx_post
106987: b_lo=$shared_lo
106988:
106989:
106990: old_IFS=$IFS
106991: for ac_src in shmop.c; do
106992:
106993: IFS=.
106994: set $ac_src
106995: ac_obj=$1
106996: IFS=$old_IFS
106997:
106998: shared_objects_shmop="$shared_objects_shmop $ac_bdir$ac_obj.lo"
106999:
107000: case $ac_src in
107001: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107002: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107003: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107004: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107005: esac
107006:
107007: cat >>Makefile.objects<<EOF
107008: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107009: $ac_comp
107010: EOF
107011: done
107012:
107013: case $host_alias in
107014: *netware*)
107015:
107016: install_modules="install-modules"
107017:
107018: case $host_alias in
107019: *aix*)
107020: suffix=so
107021: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpshmop.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(PHPSHMOP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpshmop.so '$ext_builddir'/phpshmop.so'
107022: ;;
107023: *netware*)
107024: suffix=nlm
107025: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) -L$(top_builddir)/netware -lphp5lib $(SHMOP_SHARED_LIBADD)'
107026: ;;
107027: *)
107028: suffix=la
107029: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(PHPSHMOP_SHARED_LIBADD)'
107030: ;;
107031: esac
107032:
107033: if test "x" = "xyes"; then
107034: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpshmop.$suffix"
107035: else
107036: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpshmop.$suffix"
107037: fi
107038:
107039: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
107040:
107041: cat >>Makefile.objects<<EOF
107042: \$(phplibdir)/phpshmop.$suffix: $ext_builddir/phpshmop.$suffix
107043: \$(LIBTOOL) --mode=install cp $ext_builddir/phpshmop.$suffix \$(phplibdir)
107044:
107045: $ext_builddir/phpshmop.$suffix: \$(shared_objects_shmop) \$(PHPSHMOP_SHARED_DEPENDENCIES)
107046: $link_cmd
107047:
107048: EOF
107049:
107050: ;;
107051: *)
107052:
107053: install_modules="install-modules"
107054:
107055: case $host_alias in
107056: *aix*)
107057: suffix=so
107058: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/shmop.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(SHMOP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/shmop.so '$ext_builddir'/shmop.so'
107059: ;;
107060: *netware*)
107061: suffix=nlm
107062: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) -L$(top_builddir)/netware -lphp5lib $(OP_SHARED_LIBADD)'
107063: ;;
107064: *)
107065: suffix=la
107066: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(SHMOP_SHARED_LIBADD)'
107067: ;;
107068: esac
107069:
107070: if test "x" = "xyes"; then
107071: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/shmop.$suffix"
107072: else
107073: PHP_MODULES="$PHP_MODULES \$(phplibdir)/shmop.$suffix"
107074: fi
107075:
107076: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
107077:
107078: cat >>Makefile.objects<<EOF
107079: \$(phplibdir)/shmop.$suffix: $ext_builddir/shmop.$suffix
107080: \$(LIBTOOL) --mode=install cp $ext_builddir/shmop.$suffix \$(phplibdir)
107081:
107082: $ext_builddir/shmop.$suffix: \$(shared_objects_shmop) \$(SHMOP_SHARED_DEPENDENCIES)
107083: $link_cmd
107084:
107085: EOF
107086:
107087: ;;
107088: esac
107089:
107090: cat >>confdefs.h <<_ACEOF
107091: #define COMPILE_DL_SHMOP 1
107092: _ACEOF
107093:
107094: fi
107095: fi
107096:
107097: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
107098: PHP_SHMOP_SHARED=no
1.1.1.3 ! misho 107099: case "$PHP_SAPI" in
! 107100: cgi|embed)
1.1 misho 107101:
107102:
107103: case ext/shmop in
107104: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107105: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107106: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107107: esac
107108:
107109:
107110:
107111: b_c_pre=$php_c_pre
107112: b_cxx_pre=$php_cxx_pre
107113: b_c_meta=$php_c_meta
107114: b_cxx_meta=$php_cxx_meta
107115: b_c_post=$php_c_post
107116: b_cxx_post=$php_cxx_post
107117: b_lo=$php_lo
107118:
107119:
107120: old_IFS=$IFS
107121: for ac_src in shmop.c; do
107122:
107123: IFS=.
107124: set $ac_src
107125: ac_obj=$1
107126: IFS=$old_IFS
107127:
1.1.1.2 misho 107128: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 107129:
107130: case $ac_src in
107131: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107132: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107133: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107134: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107135: esac
107136:
107137: cat >>Makefile.objects<<EOF
107138: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107139: $ac_comp
107140: EOF
107141: done
107142:
107143:
1.1.1.3 ! misho 107144: EXT_STATIC="$EXT_STATIC shmop"
! 107145: ;;
! 107146: *)
1.1 misho 107147:
107148:
107149: case ext/shmop in
107150: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107151: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107152: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107153: esac
107154:
107155:
107156:
107157: b_c_pre=$php_c_pre
107158: b_cxx_pre=$php_cxx_pre
107159: b_c_meta=$php_c_meta
107160: b_cxx_meta=$php_cxx_meta
107161: b_c_post=$php_c_post
107162: b_cxx_post=$php_cxx_post
107163: b_lo=$php_lo
107164:
107165:
107166: old_IFS=$IFS
107167: for ac_src in shmop.c; do
107168:
107169: IFS=.
107170: set $ac_src
107171: ac_obj=$1
107172: IFS=$old_IFS
107173:
1.1.1.2 misho 107174: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 107175:
107176: case $ac_src in
107177: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107178: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107179: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107180: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107181: esac
107182:
107183: cat >>Makefile.objects<<EOF
107184: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107185: $ac_comp
107186: EOF
107187: done
107188:
107189:
1.1.1.3 ! misho 107190: ;;
! 107191: esac
1.1 misho 107192: EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
107193: fi
107194:
107195:
107196: BUILD_DIR="$BUILD_DIR $ext_builddir"
107197:
107198:
107199:
107200: if test "$ext_builddir" = "."; then
107201: PHP_PECL_EXTENSION=shmop
107202:
107203: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
107204:
107205: fi
107206:
107207: fi
107208:
107209:
107210:
107211: php_enable_simplexml=yes
107212:
1.1.1.3 ! misho 107213: { echo "$as_me:$LINENO: checking whether to enable SimpleXML support" >&5
! 107214: echo $ECHO_N "checking whether to enable SimpleXML support... $ECHO_C" >&6; }
1.1 misho 107215: # Check whether --enable-simplexml was given.
1.1.1.3 ! misho 107216: if test "${enable_simplexml+set}" = set; then
1.1 misho 107217: enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval
107218: else
107219:
107220: PHP_SIMPLEXML=yes
107221: test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL
107222:
107223: fi
107224:
107225:
107226:
107227: ext_output="yes, shared"
107228: ext_shared=yes
107229: case $PHP_SIMPLEXML in
107230: shared,*)
107231: PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'`
107232: ;;
107233: shared)
107234: PHP_SIMPLEXML=yes
107235: ;;
107236: no)
107237: ext_output=no
107238: ext_shared=no
107239: ;;
107240: *)
107241: ext_output=yes
107242: ext_shared=no
107243: ;;
107244: esac
107245:
107246:
107247:
1.1.1.3 ! misho 107248: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 107249: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 107250:
107251:
107252:
107253:
107254: if test -z "$PHP_LIBXML_DIR"; then
107255:
107256: php_with_libxml_dir=no
107257:
1.1.1.3 ! misho 107258: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 107259: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 107260:
107261: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 107262: if test "${with_libxml_dir+set}" = set; then
1.1 misho 107263: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
107264: else
107265:
107266: PHP_LIBXML_DIR=no
107267:
107268:
107269: fi
107270:
107271:
107272: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 107273: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 107274: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 107275:
107276:
107277:
107278: fi
107279:
107280: if test "$PHP_SIMPLEXML" != "no"; then
107281:
107282: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 107283: { { echo "$as_me:$LINENO: error: SimpleXML extension requires LIBXML extension, add --enable-libxml" >&5
! 107284: echo "$as_me: error: SimpleXML extension requires LIBXML extension, add --enable-libxml" >&2;}
! 107285: { (exit 1); exit 1; }; }
1.1 misho 107286: fi
107287:
107288:
1.1.1.3 ! misho 107289: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 107290: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 107291: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 107292: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 107293: else
107294:
107295: for i in $PHP_LIBXML_DIR /usr/local /usr; do
107296: if test -x "$i/bin/xml2-config"; then
107297: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
107298: break
107299: fi
107300: done
107301:
107302: fi
1.1.1.3 ! misho 107303: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 107304: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 107305:
107306: if test -x "$ac_cv_php_xml2_config_path"; then
107307: XML2_CONFIG="$ac_cv_php_xml2_config_path"
107308: libxml_full_version=`$XML2_CONFIG --version`
107309: ac_IFS=$IFS
107310: IFS="."
107311: set $libxml_full_version
107312: IFS=$ac_IFS
107313: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
107314: if test "$LIBXML_VERSION" -ge "2006011"; then
107315: LIBXML_LIBS=`$XML2_CONFIG --libs`
107316: LIBXML_INCS=`$XML2_CONFIG --cflags`
107317:
107318: for ac_i in $LIBXML_LIBS; do
107319: case $ac_i in
107320: -pthread)
107321: if test "$ext_shared" = "yes"; then
107322: SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread"
107323: else
107324:
107325:
107326: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
107327:
107328: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
107329: if test -n "$unique" && test "`eval $cmd`" = "" ; then
107330: eval "EXTRA_LDFLAGS$unique=set"
107331: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
107332: fi
107333:
107334: fi
107335: ;;
107336: -l*)
107337: ac_ii=`echo $ac_i|cut -c 3-`
107338:
107339:
107340: case $ac_ii in
107341: c|c_r|pthread*) ;;
107342: *)
107343: if test "$ext_shared" = "yes"; then
107344: SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii"
107345: else
107346:
107347:
107348: case $ac_ii in
107349: c|c_r|pthread*) ;;
107350: *)
107351: LIBS="$LIBS -l$ac_ii"
107352: ;;
107353: esac
107354:
107355:
107356: fi
107357: ;;
107358: esac
107359:
107360:
107361: ;;
107362: -L*)
107363: ac_ii=`echo $ac_i|cut -c 3-`
107364:
107365: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
107366:
107367: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
107368: ai_p=$ac_ii
107369: else
107370:
107371: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
107372:
107373: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
107374: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
107375: fi
107376:
107377:
107378: if test "$ext_shared" = "yes"; then
107379: SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD"
107380: test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD"
107381: else
107382:
107383:
107384:
107385: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
107386:
107387: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
107388: if test -n "$unique" && test "`eval $cmd`" = "" ; then
107389: eval "LIBPATH$unique=set"
107390:
107391: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
107392: LDFLAGS="$LDFLAGS -L$ai_p"
107393: PHP_RPATHS="$PHP_RPATHS $ai_p"
107394:
107395: fi
107396:
107397:
107398: fi
107399:
107400: fi
107401:
107402: ;;
107403: esac
107404: done
107405:
107406:
107407: for ac_i in $LIBXML_INCS; do
107408: case $ac_i in
107409: -I*)
107410: ac_ii=`echo $ac_i|cut -c 3-`
107411:
107412: if test "$ac_ii" != "/usr/include"; then
107413:
107414: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
107415: ai_p=$ac_ii
107416: else
107417:
107418: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
107419:
107420: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
107421: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
107422: fi
107423:
107424:
107425:
107426: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
107427:
107428: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
107429: if test -n "$unique" && test "`eval $cmd`" = "" ; then
107430: eval "INCLUDEPATH$unique=set"
107431:
107432: if test ""; then
107433: INCLUDES="-I$ai_p $INCLUDES"
107434: else
107435: INCLUDES="$INCLUDES -I$ai_p"
107436: fi
107437:
107438: fi
107439:
107440: fi
107441:
107442: ;;
107443: esac
107444: done
107445:
107446:
1.1.1.3 ! misho 107447: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 107448: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 107449: if test "${php_cv_libxml_build_works+set}" = set; then
! 107450: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 107451: else
107452:
107453:
107454: old_LIBS=$LIBS
107455: LIBS="
107456: $SIMPLEXML_SHARED_LIBADD
107457: $LIBS"
1.1.1.3 ! misho 107458: if test "$cross_compiling" = yes; then
1.1 misho 107459:
107460: LIBS=$old_LIBS
107461:
107462: else
1.1.1.3 ! misho 107463: cat >conftest.$ac_ext <<_ACEOF
! 107464: /* confdefs.h. */
! 107465: _ACEOF
! 107466: cat confdefs.h >>conftest.$ac_ext
! 107467: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 107468: /* end confdefs.h. */
107469:
107470:
107471: char xmlInitParser();
107472: int main() {
107473: xmlInitParser();
107474: return 0;
107475: }
107476:
107477: _ACEOF
1.1.1.3 ! misho 107478: rm -f conftest$ac_exeext
! 107479: if { (ac_try="$ac_link"
! 107480: case "(($ac_try" in
! 107481: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 107482: *) ac_try_echo=$ac_try;;
! 107483: esac
! 107484: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 107485: (eval "$ac_link") 2>&5
! 107486: ac_status=$?
! 107487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 107488: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 107489: { (case "(($ac_try" in
! 107490: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 107491: *) ac_try_echo=$ac_try;;
! 107492: esac
! 107493: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 107494: (eval "$ac_try") 2>&5
! 107495: ac_status=$?
! 107496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 107497: (exit $ac_status); }; }; then
1.1 misho 107498:
107499: LIBS=$old_LIBS
107500:
107501: php_cv_libxml_build_works=yes
107502:
107503:
107504: else
1.1.1.3 ! misho 107505: echo "$as_me: program exited with status $ac_status" >&5
! 107506: echo "$as_me: failed program was:" >&5
! 107507: sed 's/^/| /' conftest.$ac_ext >&5
! 107508:
! 107509: ( exit $ac_status )
1.1 misho 107510:
107511: LIBS=$old_LIBS
107512:
1.1.1.3 ! misho 107513: { echo "$as_me:$LINENO: result: no" >&5
! 107514: echo "${ECHO_T}no" >&6; }
! 107515: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 107516: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 107517: { (exit 1); exit 1; }; }
1.1 misho 107518:
107519:
107520: fi
1.1.1.3 ! misho 107521: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 107522: fi
107523:
107524:
107525:
1.1.1.3 ! misho 107526:
1.1 misho 107527: fi
1.1.1.3 ! misho 107528: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 107529: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 107530: if test "$php_cv_libxml_build_works" = "yes"; then
107531:
1.1.1.3 ! misho 107532: cat >>confdefs.h <<\_ACEOF
! 107533: #define HAVE_LIBXML 1
! 107534: _ACEOF
1.1 misho 107535:
107536: fi
107537:
107538:
1.1.1.3 ! misho 107539: cat >>confdefs.h <<\_ACEOF
! 107540: #define HAVE_SIMPLEXML 1
! 107541: _ACEOF
1.1 misho 107542:
107543:
107544: ext_builddir=ext/simplexml
107545: ext_srcdir=$abs_srcdir/ext/simplexml
107546:
107547: ac_extra=
107548:
107549: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
107550: PHP_SIMPLEXML_SHARED=no
107551:
107552:
107553: case ext/simplexml in
107554: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107555: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107556: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107557: esac
107558:
107559:
107560:
107561: b_c_pre=$php_c_pre
107562: b_cxx_pre=$php_cxx_pre
107563: b_c_meta=$php_c_meta
107564: b_cxx_meta=$php_cxx_meta
107565: b_c_post=$php_c_post
107566: b_cxx_post=$php_cxx_post
107567: b_lo=$php_lo
107568:
107569:
107570: old_IFS=$IFS
107571: for ac_src in simplexml.c sxe.c; do
107572:
107573: IFS=.
107574: set $ac_src
107575: ac_obj=$1
107576: IFS=$old_IFS
107577:
107578: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
107579:
107580: case $ac_src in
107581: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107582: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107583: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107584: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107585: esac
107586:
107587: cat >>Makefile.objects<<EOF
107588: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107589: $ac_comp
107590: EOF
107591: done
107592:
107593:
107594: EXT_STATIC="$EXT_STATIC simplexml"
107595: if test "$ext_shared" != "nocli"; then
107596: EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
107597: fi
107598: else
107599: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
107600: PHP_SIMPLEXML_SHARED=yes
107601:
107602: case ext/simplexml in
107603: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107604: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107605: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107606: esac
107607:
107608:
107609:
107610: b_c_pre=$shared_c_pre
107611: b_cxx_pre=$shared_cxx_pre
107612: b_c_meta=$shared_c_meta
107613: b_cxx_meta=$shared_cxx_meta
107614: b_c_post=$shared_c_post
107615: b_cxx_post=$shared_cxx_post
107616: b_lo=$shared_lo
107617:
107618:
107619: old_IFS=$IFS
107620: for ac_src in simplexml.c sxe.c; do
107621:
107622: IFS=.
107623: set $ac_src
107624: ac_obj=$1
107625: IFS=$old_IFS
107626:
107627: shared_objects_simplexml="$shared_objects_simplexml $ac_bdir$ac_obj.lo"
107628:
107629: case $ac_src in
107630: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107631: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107632: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107633: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107634: esac
107635:
107636: cat >>Makefile.objects<<EOF
107637: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107638: $ac_comp
107639: EOF
107640: done
107641:
107642: case $host_alias in
107643: *netware*)
107644:
107645: install_modules="install-modules"
107646:
107647: case $host_alias in
107648: *aix*)
107649: suffix=so
107650: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsimplexml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(PHPSIMPLEXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsimplexml.so '$ext_builddir'/phpsimplexml.so'
107651: ;;
107652: *netware*)
107653: suffix=nlm
107654: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) -L$(top_builddir)/netware -lphp5lib $(SIMPLEXML_SHARED_LIBADD)'
107655: ;;
107656: *)
107657: suffix=la
107658: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(PHPSIMPLEXML_SHARED_LIBADD)'
107659: ;;
107660: esac
107661:
107662: if test "x" = "xyes"; then
107663: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsimplexml.$suffix"
107664: else
107665: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsimplexml.$suffix"
107666: fi
107667:
107668: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
107669:
107670: cat >>Makefile.objects<<EOF
107671: \$(phplibdir)/phpsimplexml.$suffix: $ext_builddir/phpsimplexml.$suffix
107672: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsimplexml.$suffix \$(phplibdir)
107673:
107674: $ext_builddir/phpsimplexml.$suffix: \$(shared_objects_simplexml) \$(PHPSIMPLEXML_SHARED_DEPENDENCIES)
107675: $link_cmd
107676:
107677: EOF
107678:
107679: ;;
107680: *)
107681:
107682: install_modules="install-modules"
107683:
107684: case $host_alias in
107685: *aix*)
107686: suffix=so
107687: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/simplexml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(SIMPLEXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/simplexml.so '$ext_builddir'/simplexml.so'
107688: ;;
107689: *netware*)
107690: suffix=nlm
107691: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) -L$(top_builddir)/netware -lphp5lib $(PLEXML_SHARED_LIBADD)'
107692: ;;
107693: *)
107694: suffix=la
107695: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(SIMPLEXML_SHARED_LIBADD)'
107696: ;;
107697: esac
107698:
107699: if test "x" = "xyes"; then
107700: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/simplexml.$suffix"
107701: else
107702: PHP_MODULES="$PHP_MODULES \$(phplibdir)/simplexml.$suffix"
107703: fi
107704:
107705: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
107706:
107707: cat >>Makefile.objects<<EOF
107708: \$(phplibdir)/simplexml.$suffix: $ext_builddir/simplexml.$suffix
107709: \$(LIBTOOL) --mode=install cp $ext_builddir/simplexml.$suffix \$(phplibdir)
107710:
107711: $ext_builddir/simplexml.$suffix: \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_DEPENDENCIES)
107712: $link_cmd
107713:
107714: EOF
107715:
107716: ;;
107717: esac
107718:
107719: cat >>confdefs.h <<_ACEOF
107720: #define COMPILE_DL_SIMPLEXML 1
107721: _ACEOF
107722:
107723: fi
107724: fi
107725:
107726: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
107727: PHP_SIMPLEXML_SHARED=no
1.1.1.3 ! misho 107728: case "$PHP_SAPI" in
! 107729: cgi|embed)
1.1 misho 107730:
107731:
107732: case ext/simplexml in
107733: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107734: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107735: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107736: esac
107737:
107738:
107739:
107740: b_c_pre=$php_c_pre
107741: b_cxx_pre=$php_cxx_pre
107742: b_c_meta=$php_c_meta
107743: b_cxx_meta=$php_cxx_meta
107744: b_c_post=$php_c_post
107745: b_cxx_post=$php_cxx_post
107746: b_lo=$php_lo
107747:
107748:
107749: old_IFS=$IFS
107750: for ac_src in simplexml.c sxe.c; do
107751:
107752: IFS=.
107753: set $ac_src
107754: ac_obj=$1
107755: IFS=$old_IFS
107756:
1.1.1.2 misho 107757: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 107758:
107759: case $ac_src in
107760: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107761: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107762: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107763: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107764: esac
107765:
107766: cat >>Makefile.objects<<EOF
107767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107768: $ac_comp
107769: EOF
107770: done
107771:
107772:
1.1.1.3 ! misho 107773: EXT_STATIC="$EXT_STATIC simplexml"
! 107774: ;;
! 107775: *)
1.1 misho 107776:
107777:
107778: case ext/simplexml in
107779: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107780: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107781: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107782: esac
107783:
107784:
107785:
107786: b_c_pre=$php_c_pre
107787: b_cxx_pre=$php_cxx_pre
107788: b_c_meta=$php_c_meta
107789: b_cxx_meta=$php_cxx_meta
107790: b_c_post=$php_c_post
107791: b_cxx_post=$php_cxx_post
107792: b_lo=$php_lo
107793:
107794:
107795: old_IFS=$IFS
107796: for ac_src in simplexml.c sxe.c; do
107797:
107798: IFS=.
107799: set $ac_src
107800: ac_obj=$1
107801: IFS=$old_IFS
107802:
1.1.1.2 misho 107803: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 107804:
107805: case $ac_src in
107806: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107807: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107808: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107809: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107810: esac
107811:
107812: cat >>Makefile.objects<<EOF
107813: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107814: $ac_comp
107815: EOF
107816: done
107817:
107818:
1.1.1.3 ! misho 107819: ;;
! 107820: esac
1.1 misho 107821: EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
107822: fi
107823:
107824:
107825: BUILD_DIR="$BUILD_DIR $ext_builddir"
107826:
107827:
107828:
107829: if test "$ext_builddir" = "."; then
107830: PHP_PECL_EXTENSION=simplexml
107831:
107832: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
107833:
107834: fi
107835:
107836:
107837: PHP_VAR_SUBST="$PHP_VAR_SUBST SIMPLEXML_SHARED_LIBADD"
107838:
107839:
107840: else
1.1.1.3 ! misho 107841: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 107842: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 107843: { (exit 1); exit 1; }; }
1.1 misho 107844: fi
107845: else
1.1.1.3 ! misho 107846: { { echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
! 107847: echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
! 107848: { (exit 1); exit 1; }; }
1.1 misho 107849:
107850: fi
107851:
107852:
107853: am_i_shared=$PHP_SIMPLEXML_SHARED
107854: is_it_shared=$PHP_LIBXML_SHARED
107855: is_it_enabled=$PHP_LIBXML
107856: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 107857: { { echo "$as_me:$LINENO: error:
! 107858: You've configured extension simplexml to build statically, but it
! 107859: depends on extension libxml, which you've configured to build shared.
! 107860: You either need to build simplexml shared or build libxml statically for the
! 107861: build to be successful.
! 107862: " >&5
! 107863: echo "$as_me: error:
1.1 misho 107864: You've configured extension simplexml to build statically, but it
107865: depends on extension libxml, which you've configured to build shared.
107866: You either need to build simplexml shared or build libxml statically for the
107867: build to be successful.
1.1.1.3 ! misho 107868: " >&2;}
! 107869: { (exit 1); exit 1; }; }
! 107870: fi
! 107871: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 107872: { { echo "$as_me:$LINENO: error:
! 107873: You've configured extension simplexml, which depends on extension libxml,
! 107874: but you've either not enabled libxml, or have disabled it.
! 107875: " >&5
! 107876: echo "$as_me: error:
! 107877: You've configured extension simplexml, which depends on extension libxml,
! 107878: but you've either not enabled libxml, or have disabled it.
! 107879: " >&2;}
! 107880: { (exit 1); exit 1; }; }
1.1 misho 107881: fi
107882:
107883:
107884: am_i_shared=$PHP_SIMPLEXML_SHARED
107885: is_it_shared=$PHP_SPL_SHARED
107886: is_it_enabled=$PHP_SPL
107887: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 107888: { { echo "$as_me:$LINENO: error:
! 107889: You've configured extension simplexml to build statically, but it
! 107890: depends on extension spl, which you've configured to build shared.
! 107891: You either need to build simplexml shared or build spl statically for the
! 107892: build to be successful.
! 107893: " >&5
! 107894: echo "$as_me: error:
1.1 misho 107895: You've configured extension simplexml to build statically, but it
107896: depends on extension spl, which you've configured to build shared.
107897: You either need to build simplexml shared or build spl statically for the
107898: build to be successful.
1.1.1.3 ! misho 107899: " >&2;}
! 107900: { (exit 1); exit 1; }; }
! 107901: fi
! 107902: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 107903: { { echo "$as_me:$LINENO: error:
! 107904: You've configured extension simplexml, which depends on extension spl,
! 107905: but you've either not enabled spl, or have disabled it.
! 107906: " >&5
! 107907: echo "$as_me: error:
! 107908: You've configured extension simplexml, which depends on extension spl,
! 107909: but you've either not enabled spl, or have disabled it.
! 107910: " >&2;}
! 107911: { (exit 1); exit 1; }; }
1.1 misho 107912: fi
107913:
107914: fi
107915:
107916:
107917:
107918: php_with_snmp=no
107919:
1.1.1.3 ! misho 107920: { echo "$as_me:$LINENO: checking for SNMP support" >&5
! 107921: echo $ECHO_N "checking for SNMP support... $ECHO_C" >&6; }
1.1 misho 107922:
107923: # Check whether --with-snmp was given.
1.1.1.3 ! misho 107924: if test "${with_snmp+set}" = set; then
1.1 misho 107925: withval=$with_snmp; PHP_SNMP=$withval
107926: else
107927:
107928: PHP_SNMP=no
107929: test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL
107930:
107931: fi
107932:
107933:
107934:
107935: ext_output="yes, shared"
107936: ext_shared=yes
107937: case $PHP_SNMP in
107938: shared,*)
107939: PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'`
107940: ;;
107941: shared)
107942: PHP_SNMP=yes
107943: ;;
107944: no)
107945: ext_output=no
107946: ext_shared=no
107947: ;;
107948: *)
107949: ext_output=yes
107950: ext_shared=no
107951: ;;
107952: esac
107953:
107954:
107955:
1.1.1.3 ! misho 107956: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 107957: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 107958:
107959:
107960:
107961:
107962:
107963: php_with_openssl_dir=no
107964:
1.1.1.3 ! misho 107965: { echo "$as_me:$LINENO: checking OpenSSL dir for SNMP" >&5
! 107966: echo $ECHO_N "checking OpenSSL dir for SNMP... $ECHO_C" >&6; }
1.1 misho 107967:
107968: # Check whether --with-openssl-dir was given.
1.1.1.3 ! misho 107969: if test "${with_openssl_dir+set}" = set; then
1.1 misho 107970: withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
107971: else
107972:
107973: PHP_OPENSSL_DIR=no
107974:
107975:
107976: fi
107977:
107978:
107979: ext_output=$PHP_OPENSSL_DIR
1.1.1.3 ! misho 107980: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 107981: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 107982:
107983:
107984:
107985:
107986: if test "$PHP_SNMP" != "no"; then
107987:
1.1.1.2 misho 107988: if test "$PHP_SNMP" = "yes"; then
1.1 misho 107989: # Extract the first word of "net-snmp-config", so it can be a program name with args.
107990: set dummy net-snmp-config; ac_word=$2
1.1.1.3 ! misho 107991: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 107992: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 107993: if test "${ac_cv_path_SNMP_CONFIG+set}" = set; then
! 107994: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 107995: else
107996: case $SNMP_CONFIG in
107997: [\\/]* | ?:[\\/]*)
107998: ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
107999: ;;
108000: *)
108001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108002: as_dummy="/usr/local/bin:$PATH"
108003: for as_dir in $as_dummy
108004: do
108005: IFS=$as_save_IFS
108006: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 108007: for ac_exec_ext in '' $ac_executable_extensions; do
! 108008: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 108009: ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.3 ! misho 108010: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 108011: break 2
108012: fi
108013: done
1.1.1.3 ! misho 108014: done
1.1 misho 108015: IFS=$as_save_IFS
108016:
108017: ;;
108018: esac
108019: fi
108020: SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
108021: if test -n "$SNMP_CONFIG"; then
1.1.1.3 ! misho 108022: { echo "$as_me:$LINENO: result: $SNMP_CONFIG" >&5
! 108023: echo "${ECHO_T}$SNMP_CONFIG" >&6; }
1.1 misho 108024: else
1.1.1.3 ! misho 108025: { echo "$as_me:$LINENO: result: no" >&5
! 108026: echo "${ECHO_T}no" >&6; }
1.1 misho 108027: fi
108028:
108029:
108030: else
108031: SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"
108032: fi
108033:
108034: if test -x "$SNMP_CONFIG"; then
108035: SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs`
108036: SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`"
108037: SNMP_PREFIX=`$SNMP_CONFIG --prefix`
1.1.1.2 misho 108038: snmp_full_version=`$SNMP_CONFIG --version`
108039: ac_IFS=$IFS
108040: IFS="."
108041: set $snmp_full_version
108042: IFS=$ac_IFS
108043: SNMP_VERSION=`expr $1 \* 1000 + $2`
108044: if test "$SNMP_VERSION" -ge "5003"; then
108045: if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
1.1 misho 108046:
108047: if test "${SNMP_PREFIX}/include" != "/usr/include"; then
108048:
108049: if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then
108050: ai_p=${SNMP_PREFIX}/include
108051: else
108052:
108053: ep_dir="`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`"
108054:
108055: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108056: ai_p="$ep_realdir/`basename \"${SNMP_PREFIX}/include\"`"
108057: fi
108058:
108059:
108060:
108061: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108062:
108063: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
108064: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108065: eval "INCLUDEPATH$unique=set"
108066:
108067: if test ""; then
108068: INCLUDES="-I$ai_p $INCLUDES"
108069: else
108070: INCLUDES="$INCLUDES -I$ai_p"
108071: fi
108072:
108073: fi
108074:
108075: fi
108076:
108077:
108078: for ac_i in $SNMP_LIBS; do
108079: case $ac_i in
108080: -pthread)
108081: if test "$ext_shared" = "yes"; then
108082: SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
108083: else
108084:
108085:
108086: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108087:
108088: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108089: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108090: eval "EXTRA_LDFLAGS$unique=set"
108091: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108092: fi
108093:
108094: fi
108095: ;;
108096: -l*)
108097: ac_ii=`echo $ac_i|cut -c 3-`
108098:
108099:
108100: case $ac_ii in
108101: c|c_r|pthread*) ;;
108102: *)
108103: if test "$ext_shared" = "yes"; then
108104: SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii"
108105: else
108106:
108107:
108108: case $ac_ii in
108109: c|c_r|pthread*) ;;
108110: *)
108111: LIBS="$LIBS -l$ac_ii"
108112: ;;
108113: esac
108114:
108115:
108116: fi
108117: ;;
108118: esac
108119:
108120:
108121: ;;
108122: -L*)
108123: ac_ii=`echo $ac_i|cut -c 3-`
108124:
108125: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
108126:
108127: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108128: ai_p=$ac_ii
108129: else
108130:
108131: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108132:
108133: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108134: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108135: fi
108136:
108137:
108138: if test "$ext_shared" = "yes"; then
108139: SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
108140: test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
108141: else
108142:
108143:
108144:
108145: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108146:
108147: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108148: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108149: eval "LIBPATH$unique=set"
108150:
108151: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108152: LDFLAGS="$LDFLAGS -L$ai_p"
108153: PHP_RPATHS="$PHP_RPATHS $ai_p"
108154:
108155: fi
108156:
108157:
108158: fi
108159:
108160: fi
108161:
108162: ;;
108163: esac
108164: done
108165:
1.1.1.2 misho 108166: SNMP_LIBNAME=netsnmp
108167: else
1.1.1.3 ! misho 108168: { { echo "$as_me:$LINENO: error: Could not find the required paths. Please check your net-snmp installation." >&5
! 108169: echo "$as_me: error: Could not find the required paths. Please check your net-snmp installation." >&2;}
! 108170: { (exit 1); exit 1; }; }
1.1.1.2 misho 108171: fi
1.1 misho 108172: else
1.1.1.3 ! misho 108173: { { echo "$as_me:$LINENO: error: Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." >&5
! 108174: echo "$as_me: error: Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." >&2;}
! 108175: { (exit 1); exit 1; }; }
1.1 misho 108176: fi
108177: else
1.1.1.3 ! misho 108178: { { echo "$as_me:$LINENO: error: Could not find net-snmp-config binary. Please check your net-snmp installation." >&5
! 108179: echo "$as_me: error: Could not find net-snmp-config binary. Please check your net-snmp installation." >&2;}
! 108180: { (exit 1); exit 1; }; }
1.1.1.2 misho 108181: fi
1.1 misho 108182:
108183:
108184: save_old_LDFLAGS=$LDFLAGS
108185: ac_stuff="
1.1.1.2 misho 108186: $SNMP_SHARED_LIBADD
108187: "
1.1 misho 108188:
108189: save_ext_shared=$ext_shared
108190: ext_shared=yes
108191:
108192: for ac_i in $ac_stuff; do
108193: case $ac_i in
108194: -pthread)
108195: if test "$ext_shared" = "yes"; then
108196: LDFLAGS="$LDFLAGS -pthread"
108197: else
108198:
108199:
108200: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108201:
108202: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108203: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108204: eval "EXTRA_LDFLAGS$unique=set"
108205: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108206: fi
108207:
108208: fi
108209: ;;
108210: -l*)
108211: ac_ii=`echo $ac_i|cut -c 3-`
108212:
108213:
108214: case $ac_ii in
108215: c|c_r|pthread*) ;;
108216: *)
108217: if test "$ext_shared" = "yes"; then
108218: LDFLAGS="$LDFLAGS -l$ac_ii"
108219: else
108220:
108221:
108222: case $ac_ii in
108223: c|c_r|pthread*) ;;
108224: *)
108225: LIBS="$LIBS -l$ac_ii"
108226: ;;
108227: esac
108228:
108229:
108230: fi
108231: ;;
108232: esac
108233:
108234:
108235: ;;
108236: -L*)
108237: ac_ii=`echo $ac_i|cut -c 3-`
108238:
108239: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
108240:
108241: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108242: ai_p=$ac_ii
108243: else
108244:
108245: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108246:
108247: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108248: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108249: fi
108250:
108251:
108252: if test "$ext_shared" = "yes"; then
108253: LDFLAGS="-L$ai_p $LDFLAGS"
108254: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
108255: else
108256:
108257:
108258:
108259: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108260:
108261: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108262: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108263: eval "LIBPATH$unique=set"
108264:
108265: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108266: LDFLAGS="$LDFLAGS -L$ai_p"
108267: PHP_RPATHS="$PHP_RPATHS $ai_p"
108268:
108269: fi
108270:
108271:
108272: fi
108273:
108274: fi
108275:
108276: ;;
108277: esac
108278: done
108279:
1.1.1.3 ! misho 108280: as_ac_Lib=`echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh`
! 108281: { echo "$as_me:$LINENO: checking for init_snmp in -l$SNMP_LIBNAME" >&5
! 108282: echo $ECHO_N "checking for init_snmp in -l$SNMP_LIBNAME... $ECHO_C" >&6; }
! 108283: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 108284: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 108285: else
108286: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 misho 108287: LIBS="-l$SNMP_LIBNAME $LIBS"
1.1.1.3 ! misho 108288: cat >conftest.$ac_ext <<_ACEOF
! 108289: /* confdefs.h. */
! 108290: _ACEOF
! 108291: cat confdefs.h >>conftest.$ac_ext
! 108292: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 108293: /* end confdefs.h. */
108294:
108295: /* Override any GCC internal prototype to avoid an error.
108296: Use char because int might match the return type of a GCC
108297: builtin and then its argument prototype would still apply. */
108298: #ifdef __cplusplus
108299: extern "C"
108300: #endif
1.1.1.2 misho 108301: char init_snmp ();
1.1 misho 108302: int
108303: main ()
108304: {
1.1.1.2 misho 108305: return init_snmp ();
1.1 misho 108306: ;
108307: return 0;
108308: }
108309: _ACEOF
1.1.1.3 ! misho 108310: rm -f conftest.$ac_objext conftest$ac_exeext
! 108311: if { (ac_try="$ac_link"
! 108312: case "(($ac_try" in
! 108313: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 108314: *) ac_try_echo=$ac_try;;
! 108315: esac
! 108316: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 108317: (eval "$ac_link") 2>conftest.er1
! 108318: ac_status=$?
! 108319: grep -v '^ *+' conftest.er1 >conftest.err
! 108320: rm -f conftest.er1
! 108321: cat conftest.err >&5
! 108322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 108323: (exit $ac_status); } && {
! 108324: test -z "$ac_c_werror_flag" ||
! 108325: test ! -s conftest.err
! 108326: } && test -s conftest$ac_exeext &&
! 108327: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 108328: eval "$as_ac_Lib=yes"
1.1 misho 108329: else
1.1.1.3 ! misho 108330: echo "$as_me: failed program was:" >&5
! 108331: sed 's/^/| /' conftest.$ac_ext >&5
! 108332:
! 108333: eval "$as_ac_Lib=no"
1.1 misho 108334: fi
1.1.1.3 ! misho 108335:
! 108336: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 108337: conftest$ac_exeext conftest.$ac_ext
1.1 misho 108338: LIBS=$ac_check_lib_save_LIBS
108339: fi
1.1.1.3 ! misho 108340: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 108341: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 108342: echo "${ECHO_T}$ac_res" >&6; }
! 108343: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 108344:
108345: LDFLAGS=$save_old_LDFLAGS
108346: ext_shared=$save_ext_shared
108347:
108348:
1.1.1.3 ! misho 108349: cat >>confdefs.h <<\_ACEOF
! 108350: #define HAVE_SNMP 1
! 108351: _ACEOF
1.1 misho 108352:
108353:
108354:
108355: else
108356:
108357: LDFLAGS=$save_old_LDFLAGS
108358: ext_shared=$save_ext_shared
1.1.1.2 misho 108359: unset ac_cv_lib_$SNMP_LIBNAME_init_snmp
1.1 misho 108360:
1.1.1.3 ! misho 108361: { { echo "$as_me:$LINENO: error: SNMP sanity check failed. Please check config.log for more information." >&5
! 108362: echo "$as_me: error: SNMP sanity check failed. Please check config.log for more information." >&2;}
! 108363: { (exit 1); exit 1; }; }
1.1 misho 108364:
108365:
108366: fi
108367:
108368:
108369:
108370: save_old_LDFLAGS=$LDFLAGS
108371: ac_stuff="
1.1.1.2 misho 108372: $SNMP_SHARED_LIBADD
108373: "
1.1 misho 108374:
108375: save_ext_shared=$ext_shared
108376: ext_shared=yes
108377:
108378: for ac_i in $ac_stuff; do
108379: case $ac_i in
108380: -pthread)
108381: if test "$ext_shared" = "yes"; then
108382: LDFLAGS="$LDFLAGS -pthread"
108383: else
108384:
108385:
108386: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108387:
108388: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108389: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108390: eval "EXTRA_LDFLAGS$unique=set"
108391: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108392: fi
108393:
108394: fi
108395: ;;
108396: -l*)
108397: ac_ii=`echo $ac_i|cut -c 3-`
108398:
108399:
108400: case $ac_ii in
108401: c|c_r|pthread*) ;;
108402: *)
108403: if test "$ext_shared" = "yes"; then
108404: LDFLAGS="$LDFLAGS -l$ac_ii"
108405: else
108406:
108407:
108408: case $ac_ii in
108409: c|c_r|pthread*) ;;
108410: *)
108411: LIBS="$LIBS -l$ac_ii"
108412: ;;
108413: esac
108414:
108415:
108416: fi
108417: ;;
108418: esac
108419:
108420:
108421: ;;
108422: -L*)
108423: ac_ii=`echo $ac_i|cut -c 3-`
108424:
108425: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
108426:
108427: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108428: ai_p=$ac_ii
108429: else
108430:
108431: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108432:
108433: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108434: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108435: fi
108436:
108437:
108438: if test "$ext_shared" = "yes"; then
108439: LDFLAGS="-L$ai_p $LDFLAGS"
108440: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
108441: else
108442:
108443:
108444:
108445: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108446:
108447: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108448: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108449: eval "LIBPATH$unique=set"
108450:
108451: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108452: LDFLAGS="$LDFLAGS -L$ai_p"
108453: PHP_RPATHS="$PHP_RPATHS $ai_p"
108454:
108455: fi
108456:
108457:
108458: fi
108459:
108460: fi
108461:
108462: ;;
108463: esac
108464: done
108465:
1.1.1.3 ! misho 108466: as_ac_Lib=`echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh`
! 108467: { echo "$as_me:$LINENO: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5
! 108468: echo $ECHO_N "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... $ECHO_C" >&6; }
! 108469: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 108470: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 108471: else
108472: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 misho 108473: LIBS="-l$SNMP_LIBNAME $LIBS"
1.1.1.3 ! misho 108474: cat >conftest.$ac_ext <<_ACEOF
! 108475: /* confdefs.h. */
! 108476: _ACEOF
! 108477: cat confdefs.h >>conftest.$ac_ext
! 108478: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 108479: /* end confdefs.h. */
108480:
108481: /* Override any GCC internal prototype to avoid an error.
108482: Use char because int might match the return type of a GCC
108483: builtin and then its argument prototype would still apply. */
108484: #ifdef __cplusplus
108485: extern "C"
108486: #endif
1.1.1.2 misho 108487: char shutdown_snmp_logging ();
1.1 misho 108488: int
108489: main ()
108490: {
1.1.1.2 misho 108491: return shutdown_snmp_logging ();
1.1 misho 108492: ;
108493: return 0;
108494: }
108495: _ACEOF
1.1.1.3 ! misho 108496: rm -f conftest.$ac_objext conftest$ac_exeext
! 108497: if { (ac_try="$ac_link"
! 108498: case "(($ac_try" in
! 108499: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 108500: *) ac_try_echo=$ac_try;;
! 108501: esac
! 108502: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 108503: (eval "$ac_link") 2>conftest.er1
! 108504: ac_status=$?
! 108505: grep -v '^ *+' conftest.er1 >conftest.err
! 108506: rm -f conftest.er1
! 108507: cat conftest.err >&5
! 108508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 108509: (exit $ac_status); } && {
! 108510: test -z "$ac_c_werror_flag" ||
! 108511: test ! -s conftest.err
! 108512: } && test -s conftest$ac_exeext &&
! 108513: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 108514: eval "$as_ac_Lib=yes"
1.1 misho 108515: else
1.1.1.3 ! misho 108516: echo "$as_me: failed program was:" >&5
! 108517: sed 's/^/| /' conftest.$ac_ext >&5
! 108518:
! 108519: eval "$as_ac_Lib=no"
1.1 misho 108520: fi
1.1.1.3 ! misho 108521:
! 108522: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 108523: conftest$ac_exeext conftest.$ac_ext
1.1 misho 108524: LIBS=$ac_check_lib_save_LIBS
108525: fi
1.1.1.3 ! misho 108526: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 108527: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 108528: echo "${ECHO_T}$ac_res" >&6; }
! 108529: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 108530:
108531: LDFLAGS=$save_old_LDFLAGS
108532: ext_shared=$save_ext_shared
108533:
1.1.1.2 misho 108534:
1.1.1.3 ! misho 108535: cat >>confdefs.h <<\_ACEOF
! 108536: #define HAVE_SHUTDOWN_SNMP_LOGGING 1
! 108537: _ACEOF
1.1.1.2 misho 108538:
1.1 misho 108539:
108540:
108541: else
108542:
108543: LDFLAGS=$save_old_LDFLAGS
108544: ext_shared=$save_ext_shared
1.1.1.2 misho 108545: unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging
1.1 misho 108546:
108547:
108548: fi
108549:
108550:
108551:
1.1.1.2 misho 108552: ext_builddir=ext/snmp
108553: ext_srcdir=$abs_srcdir/ext/snmp
1.1 misho 108554:
1.1.1.2 misho 108555: ac_extra=
1.1 misho 108556:
1.1.1.2 misho 108557: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
108558: PHP_SNMP_SHARED=no
1.1 misho 108559:
108560:
1.1.1.2 misho 108561: case ext/snmp in
108562: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
108563: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
108564: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
108565: esac
1.1 misho 108566:
108567:
108568:
1.1.1.2 misho 108569: b_c_pre=$php_c_pre
108570: b_cxx_pre=$php_cxx_pre
108571: b_c_meta=$php_c_meta
108572: b_cxx_meta=$php_cxx_meta
108573: b_c_post=$php_c_post
108574: b_cxx_post=$php_cxx_post
108575: b_lo=$php_lo
1.1 misho 108576:
108577:
1.1.1.2 misho 108578: old_IFS=$IFS
108579: for ac_src in snmp.c; do
1.1 misho 108580:
1.1.1.2 misho 108581: IFS=.
108582: set $ac_src
108583: ac_obj=$1
108584: IFS=$old_IFS
1.1 misho 108585:
1.1.1.2 misho 108586: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 108587:
1.1.1.2 misho 108588: case $ac_src in
108589: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108590: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108591: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108592: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
108593: esac
1.1 misho 108594:
1.1.1.2 misho 108595: cat >>Makefile.objects<<EOF
108596: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
108597: $ac_comp
108598: EOF
108599: done
1.1 misho 108600:
108601:
1.1.1.2 misho 108602: EXT_STATIC="$EXT_STATIC snmp"
108603: if test "$ext_shared" != "nocli"; then
108604: EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
108605: fi
108606: else
108607: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
108608: PHP_SNMP_SHARED=yes
1.1 misho 108609:
1.1.1.2 misho 108610: case ext/snmp in
108611: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
108612: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
108613: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
108614: esac
1.1 misho 108615:
108616:
108617:
1.1.1.2 misho 108618: b_c_pre=$shared_c_pre
108619: b_cxx_pre=$shared_cxx_pre
108620: b_c_meta=$shared_c_meta
108621: b_cxx_meta=$shared_cxx_meta
108622: b_c_post=$shared_c_post
108623: b_cxx_post=$shared_cxx_post
108624: b_lo=$shared_lo
1.1 misho 108625:
108626:
1.1.1.2 misho 108627: old_IFS=$IFS
108628: for ac_src in snmp.c; do
1.1 misho 108629:
1.1.1.2 misho 108630: IFS=.
108631: set $ac_src
108632: ac_obj=$1
108633: IFS=$old_IFS
1.1 misho 108634:
1.1.1.2 misho 108635: shared_objects_snmp="$shared_objects_snmp $ac_bdir$ac_obj.lo"
1.1 misho 108636:
1.1.1.2 misho 108637: case $ac_src in
108638: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108639: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108640: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108641: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
108642: esac
1.1 misho 108643:
1.1.1.2 misho 108644: cat >>Makefile.objects<<EOF
108645: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
108646: $ac_comp
108647: EOF
108648: done
1.1 misho 108649:
1.1.1.2 misho 108650: case $host_alias in
108651: *netware*)
1.1 misho 108652:
1.1.1.2 misho 108653: install_modules="install-modules"
1.1 misho 108654:
1.1.1.2 misho 108655: case $host_alias in
108656: *aix*)
108657: suffix=so
108658: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsnmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(PHPSNMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsnmp.so '$ext_builddir'/phpsnmp.so'
108659: ;;
108660: *netware*)
108661: suffix=nlm
108662: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) -L$(top_builddir)/netware -lphp5lib $(SNMP_SHARED_LIBADD)'
108663: ;;
108664: *)
108665: suffix=la
108666: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(PHPSNMP_SHARED_LIBADD)'
108667: ;;
1.1 misho 108668: esac
108669:
1.1.1.2 misho 108670: if test "x" = "xyes"; then
108671: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsnmp.$suffix"
1.1 misho 108672: else
1.1.1.2 misho 108673: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsnmp.$suffix"
1.1 misho 108674: fi
108675:
1.1.1.2 misho 108676: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
1.1 misho 108677:
1.1.1.2 misho 108678: cat >>Makefile.objects<<EOF
108679: \$(phplibdir)/phpsnmp.$suffix: $ext_builddir/phpsnmp.$suffix
108680: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsnmp.$suffix \$(phplibdir)
1.1 misho 108681:
1.1.1.2 misho 108682: $ext_builddir/phpsnmp.$suffix: \$(shared_objects_snmp) \$(PHPSNMP_SHARED_DEPENDENCIES)
108683: $link_cmd
1.1 misho 108684:
1.1.1.2 misho 108685: EOF
1.1 misho 108686:
1.1.1.2 misho 108687: ;;
108688: *)
1.1 misho 108689:
1.1.1.2 misho 108690: install_modules="install-modules"
108691:
108692: case $host_alias in
108693: *aix*)
108694: suffix=so
108695: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/snmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(SNMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/snmp.so '$ext_builddir'/snmp.so'
108696: ;;
108697: *netware*)
108698: suffix=nlm
108699: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
108700: ;;
108701: *)
108702: suffix=la
108703: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(SNMP_SHARED_LIBADD)'
108704: ;;
108705: esac
1.1 misho 108706:
1.1.1.2 misho 108707: if test "x" = "xyes"; then
108708: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/snmp.$suffix"
108709: else
108710: PHP_MODULES="$PHP_MODULES \$(phplibdir)/snmp.$suffix"
1.1 misho 108711: fi
108712:
1.1.1.2 misho 108713: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
1.1 misho 108714:
1.1.1.2 misho 108715: cat >>Makefile.objects<<EOF
108716: \$(phplibdir)/snmp.$suffix: $ext_builddir/snmp.$suffix
108717: \$(LIBTOOL) --mode=install cp $ext_builddir/snmp.$suffix \$(phplibdir)
1.1 misho 108718:
1.1.1.2 misho 108719: $ext_builddir/snmp.$suffix: \$(shared_objects_snmp) \$(SNMP_SHARED_DEPENDENCIES)
108720: $link_cmd
1.1 misho 108721:
1.1.1.2 misho 108722: EOF
1.1 misho 108723:
1.1.1.2 misho 108724: ;;
108725: esac
1.1 misho 108726:
1.1.1.2 misho 108727: cat >>confdefs.h <<_ACEOF
108728: #define COMPILE_DL_SNMP 1
108729: _ACEOF
1.1 misho 108730:
1.1.1.2 misho 108731: fi
1.1 misho 108732: fi
108733:
1.1.1.2 misho 108734: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
108735: PHP_SNMP_SHARED=no
1.1.1.3 ! misho 108736: case "$PHP_SAPI" in
! 108737: cgi|embed)
1.1 misho 108738:
108739:
1.1.1.2 misho 108740: case ext/snmp in
108741: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
108742: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
108743: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
108744: esac
1.1 misho 108745:
108746:
108747:
1.1.1.2 misho 108748: b_c_pre=$php_c_pre
108749: b_cxx_pre=$php_cxx_pre
108750: b_c_meta=$php_c_meta
108751: b_cxx_meta=$php_cxx_meta
108752: b_c_post=$php_c_post
108753: b_cxx_post=$php_cxx_post
108754: b_lo=$php_lo
1.1 misho 108755:
108756:
1.1.1.2 misho 108757: old_IFS=$IFS
108758: for ac_src in snmp.c; do
1.1 misho 108759:
1.1.1.2 misho 108760: IFS=.
108761: set $ac_src
108762: ac_obj=$1
108763: IFS=$old_IFS
1.1 misho 108764:
1.1.1.2 misho 108765: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 108766:
1.1.1.2 misho 108767: case $ac_src in
108768: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108769: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108770: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108771: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
108772: esac
1.1 misho 108773:
1.1.1.2 misho 108774: cat >>Makefile.objects<<EOF
108775: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
108776: $ac_comp
108777: EOF
108778: done
1.1 misho 108779:
108780:
1.1.1.3 ! misho 108781: EXT_STATIC="$EXT_STATIC snmp"
! 108782: ;;
! 108783: *)
1.1 misho 108784:
108785:
1.1.1.2 misho 108786: case ext/snmp in
108787: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
108788: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
108789: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
108790: esac
1.1 misho 108791:
108792:
108793:
1.1.1.2 misho 108794: b_c_pre=$php_c_pre
108795: b_cxx_pre=$php_cxx_pre
108796: b_c_meta=$php_c_meta
108797: b_cxx_meta=$php_cxx_meta
108798: b_c_post=$php_c_post
108799: b_cxx_post=$php_cxx_post
108800: b_lo=$php_lo
1.1 misho 108801:
108802:
1.1.1.2 misho 108803: old_IFS=$IFS
108804: for ac_src in snmp.c; do
1.1 misho 108805:
1.1.1.2 misho 108806: IFS=.
108807: set $ac_src
108808: ac_obj=$1
108809: IFS=$old_IFS
1.1 misho 108810:
1.1.1.2 misho 108811: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 108812:
1.1.1.2 misho 108813: case $ac_src in
108814: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108815: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108816: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
108817: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
108818: esac
1.1 misho 108819:
1.1.1.2 misho 108820: cat >>Makefile.objects<<EOF
108821: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
108822: $ac_comp
108823: EOF
108824: done
1.1 misho 108825:
108826:
1.1.1.3 ! misho 108827: ;;
! 108828: esac
1.1.1.2 misho 108829: EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
108830: fi
1.1 misho 108831:
108832:
1.1.1.2 misho 108833: BUILD_DIR="$BUILD_DIR $ext_builddir"
1.1 misho 108834:
108835:
108836:
1.1.1.2 misho 108837: if test "$ext_builddir" = "."; then
108838: PHP_PECL_EXTENSION=snmp
1.1 misho 108839:
1.1.1.2 misho 108840: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
1.1 misho 108841:
1.1.1.2 misho 108842: fi
1.1 misho 108843:
108844:
1.1.1.2 misho 108845: PHP_VAR_SUBST="$PHP_VAR_SUBST SNMP_SHARED_LIBADD"
1.1 misho 108846:
1.1.1.2 misho 108847: fi
1.1 misho 108848:
108849:
108850:
1.1.1.2 misho 108851: php_enable_soap=no
1.1 misho 108852:
1.1.1.3 ! misho 108853: { echo "$as_me:$LINENO: checking whether to enable SOAP support" >&5
! 108854: echo $ECHO_N "checking whether to enable SOAP support... $ECHO_C" >&6; }
1.1.1.2 misho 108855: # Check whether --enable-soap was given.
1.1.1.3 ! misho 108856: if test "${enable_soap+set}" = set; then
1.1.1.2 misho 108857: enableval=$enable_soap; PHP_SOAP=$enableval
108858: else
1.1 misho 108859:
1.1.1.2 misho 108860: PHP_SOAP=no
108861: test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL
1.1 misho 108862:
1.1.1.2 misho 108863: fi
1.1 misho 108864:
108865:
108866:
1.1.1.2 misho 108867: ext_output="yes, shared"
108868: ext_shared=yes
108869: case $PHP_SOAP in
108870: shared,*)
108871: PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'`
108872: ;;
108873: shared)
108874: PHP_SOAP=yes
108875: ;;
108876: no)
108877: ext_output=no
108878: ext_shared=no
108879: ;;
108880: *)
108881: ext_output=yes
108882: ext_shared=no
108883: ;;
108884: esac
1.1 misho 108885:
108886:
108887:
1.1.1.3 ! misho 108888: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 108889: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 108890:
108891:
108892:
108893:
1.1.1.2 misho 108894: if test -z "$PHP_LIBXML_DIR"; then
1.1 misho 108895:
1.1.1.2 misho 108896: php_with_libxml_dir=no
1.1 misho 108897:
1.1.1.3 ! misho 108898: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 108899: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 108900:
1.1.1.2 misho 108901: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 108902: if test "${with_libxml_dir+set}" = set; then
1.1.1.2 misho 108903: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
108904: else
1.1 misho 108905:
1.1.1.2 misho 108906: PHP_LIBXML_DIR=no
1.1 misho 108907:
108908:
108909: fi
108910:
108911:
1.1.1.2 misho 108912: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 108913: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 108914: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 108915:
108916:
108917:
1.1.1.2 misho 108918: fi
1.1 misho 108919:
1.1.1.2 misho 108920: if test "$PHP_SOAP" != "no"; then
1.1 misho 108921:
1.1.1.2 misho 108922: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 108923: { { echo "$as_me:$LINENO: error: SOAP extension requires LIBXML extension, add --enable-libxml" >&5
! 108924: echo "$as_me: error: SOAP extension requires LIBXML extension, add --enable-libxml" >&2;}
! 108925: { (exit 1); exit 1; }; }
1.1.1.2 misho 108926: fi
1.1 misho 108927:
108928:
1.1.1.3 ! misho 108929: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 108930: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 108931: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 108932: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 108933: else
1.1 misho 108934:
1.1.1.2 misho 108935: for i in $PHP_LIBXML_DIR /usr/local /usr; do
108936: if test -x "$i/bin/xml2-config"; then
108937: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
108938: break
108939: fi
108940: done
1.1 misho 108941:
1.1.1.2 misho 108942: fi
1.1.1.3 ! misho 108943: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 108944: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 108945:
1.1.1.2 misho 108946: if test -x "$ac_cv_php_xml2_config_path"; then
108947: XML2_CONFIG="$ac_cv_php_xml2_config_path"
108948: libxml_full_version=`$XML2_CONFIG --version`
108949: ac_IFS=$IFS
108950: IFS="."
108951: set $libxml_full_version
108952: IFS=$ac_IFS
108953: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
108954: if test "$LIBXML_VERSION" -ge "2006011"; then
108955: LIBXML_LIBS=`$XML2_CONFIG --libs`
108956: LIBXML_INCS=`$XML2_CONFIG --cflags`
1.1 misho 108957:
1.1.1.2 misho 108958: for ac_i in $LIBXML_LIBS; do
1.1 misho 108959: case $ac_i in
108960: -pthread)
108961: if test "$ext_shared" = "yes"; then
1.1.1.2 misho 108962: SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread"
1.1 misho 108963: else
108964:
108965:
108966: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108967:
108968: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108969: if test -n "$unique" && test "`eval $cmd`" = "" ; then
108970: eval "EXTRA_LDFLAGS$unique=set"
108971: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108972: fi
108973:
108974: fi
108975: ;;
108976: -l*)
108977: ac_ii=`echo $ac_i|cut -c 3-`
108978:
108979:
108980: case $ac_ii in
108981: c|c_r|pthread*) ;;
108982: *)
108983: if test "$ext_shared" = "yes"; then
1.1.1.2 misho 108984: SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii"
1.1 misho 108985: else
108986:
108987:
108988: case $ac_ii in
108989: c|c_r|pthread*) ;;
108990: *)
108991: LIBS="$LIBS -l$ac_ii"
108992: ;;
108993: esac
108994:
108995:
108996: fi
108997: ;;
108998: esac
108999:
109000:
109001: ;;
109002: -L*)
109003: ac_ii=`echo $ac_i|cut -c 3-`
109004:
109005: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
109006:
109007: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
109008: ai_p=$ac_ii
109009: else
109010:
109011: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
109012:
109013: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
109014: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
109015: fi
109016:
109017:
109018: if test "$ext_shared" = "yes"; then
1.1.1.2 misho 109019: SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD"
109020: test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD"
1.1 misho 109021: else
109022:
109023:
109024:
109025: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
109026:
109027: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
109028: if test -n "$unique" && test "`eval $cmd`" = "" ; then
109029: eval "LIBPATH$unique=set"
109030:
109031: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
109032: LDFLAGS="$LDFLAGS -L$ai_p"
109033: PHP_RPATHS="$PHP_RPATHS $ai_p"
109034:
109035: fi
109036:
109037:
109038: fi
109039:
109040: fi
109041:
109042: ;;
109043: esac
109044: done
109045:
109046:
1.1.1.2 misho 109047: for ac_i in $LIBXML_INCS; do
109048: case $ac_i in
109049: -I*)
109050: ac_ii=`echo $ac_i|cut -c 3-`
109051:
109052: if test "$ac_ii" != "/usr/include"; then
109053:
109054: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
109055: ai_p=$ac_ii
109056: else
109057:
109058: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
109059:
109060: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
109061: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
109062: fi
109063:
109064:
109065:
109066: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
109067:
109068: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
109069: if test -n "$unique" && test "`eval $cmd`" = "" ; then
109070: eval "INCLUDEPATH$unique=set"
109071:
109072: if test ""; then
109073: INCLUDES="-I$ai_p $INCLUDES"
109074: else
109075: INCLUDES="$INCLUDES -I$ai_p"
109076: fi
109077:
109078: fi
109079:
109080: fi
109081:
109082: ;;
109083: esac
109084: done
109085:
109086:
1.1.1.3 ! misho 109087: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 109088: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 109089: if test "${php_cv_libxml_build_works+set}" = set; then
! 109090: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 109091: else
109092:
109093:
1.1.1.2 misho 109094: old_LIBS=$LIBS
109095: LIBS="
109096: $SOAP_SHARED_LIBADD
109097: $LIBS"
1.1.1.3 ! misho 109098: if test "$cross_compiling" = yes; then
1.1.1.2 misho 109099:
109100: LIBS=$old_LIBS
1.1 misho 109101:
1.1.1.2 misho 109102: else
1.1.1.3 ! misho 109103: cat >conftest.$ac_ext <<_ACEOF
! 109104: /* confdefs.h. */
! 109105: _ACEOF
! 109106: cat confdefs.h >>conftest.$ac_ext
! 109107: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 109108: /* end confdefs.h. */
109109:
109110:
109111: char xmlInitParser();
109112: int main() {
109113: xmlInitParser();
109114: return 0;
109115: }
109116:
109117: _ACEOF
1.1.1.3 ! misho 109118: rm -f conftest$ac_exeext
! 109119: if { (ac_try="$ac_link"
! 109120: case "(($ac_try" in
! 109121: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109122: *) ac_try_echo=$ac_try;;
! 109123: esac
! 109124: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109125: (eval "$ac_link") 2>&5
! 109126: ac_status=$?
! 109127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109128: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 109129: { (case "(($ac_try" in
! 109130: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109131: *) ac_try_echo=$ac_try;;
! 109132: esac
! 109133: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109134: (eval "$ac_try") 2>&5
! 109135: ac_status=$?
! 109136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109137: (exit $ac_status); }; }; then
1.1.1.2 misho 109138:
109139: LIBS=$old_LIBS
1.1 misho 109140:
1.1.1.2 misho 109141: php_cv_libxml_build_works=yes
1.1 misho 109142:
109143:
109144: else
1.1.1.3 ! misho 109145: echo "$as_me: program exited with status $ac_status" >&5
! 109146: echo "$as_me: failed program was:" >&5
! 109147: sed 's/^/| /' conftest.$ac_ext >&5
! 109148:
! 109149: ( exit $ac_status )
1.1 misho 109150:
1.1.1.2 misho 109151: LIBS=$old_LIBS
109152:
1.1.1.3 ! misho 109153: { echo "$as_me:$LINENO: result: no" >&5
! 109154: echo "${ECHO_T}no" >&6; }
! 109155: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 109156: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 109157: { (exit 1); exit 1; }; }
1.1.1.2 misho 109158:
109159:
109160: fi
1.1.1.3 ! misho 109161: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 109162: fi
1.1 misho 109163:
109164:
109165:
1.1.1.3 ! misho 109166:
1.1 misho 109167: fi
1.1.1.3 ! misho 109168: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 109169: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1.1.2 misho 109170: if test "$php_cv_libxml_build_works" = "yes"; then
1.1 misho 109171:
1.1.1.3 ! misho 109172: cat >>confdefs.h <<\_ACEOF
! 109173: #define HAVE_LIBXML 1
! 109174: _ACEOF
1.1 misho 109175:
1.1.1.2 misho 109176: fi
1.1 misho 109177:
109178:
1.1.1.3 ! misho 109179: cat >>confdefs.h <<\_ACEOF
! 109180: #define HAVE_SOAP 1
! 109181: _ACEOF
1.1 misho 109182:
109183:
1.1.1.2 misho 109184: ext_builddir=ext/soap
109185: ext_srcdir=$abs_srcdir/ext/soap
1.1 misho 109186:
109187: ac_extra=
109188:
109189: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
1.1.1.2 misho 109190: PHP_SOAP_SHARED=no
1.1 misho 109191:
109192:
1.1.1.2 misho 109193: case ext/soap in
1.1 misho 109194: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 109195: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109196: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 109197: esac
109198:
109199:
109200:
109201: b_c_pre=$php_c_pre
109202: b_cxx_pre=$php_cxx_pre
109203: b_c_meta=$php_c_meta
109204: b_cxx_meta=$php_cxx_meta
109205: b_c_post=$php_c_post
109206: b_cxx_post=$php_cxx_post
109207: b_lo=$php_lo
109208:
109209:
109210: old_IFS=$IFS
1.1.1.2 misho 109211: for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1 misho 109212:
109213: IFS=.
109214: set $ac_src
109215: ac_obj=$1
109216: IFS=$old_IFS
109217:
109218: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
109219:
109220: case $ac_src in
109221: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109222: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109223: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109224: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109225: esac
109226:
109227: cat >>Makefile.objects<<EOF
109228: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109229: $ac_comp
109230: EOF
109231: done
109232:
109233:
1.1.1.2 misho 109234: EXT_STATIC="$EXT_STATIC soap"
1.1 misho 109235: if test "$ext_shared" != "nocli"; then
1.1.1.2 misho 109236: EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
1.1 misho 109237: fi
109238: else
109239: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
1.1.1.2 misho 109240: PHP_SOAP_SHARED=yes
1.1 misho 109241:
1.1.1.2 misho 109242: case ext/soap in
1.1 misho 109243: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 109244: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109245: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 109246: esac
109247:
109248:
109249:
109250: b_c_pre=$shared_c_pre
109251: b_cxx_pre=$shared_cxx_pre
109252: b_c_meta=$shared_c_meta
109253: b_cxx_meta=$shared_cxx_meta
109254: b_c_post=$shared_c_post
109255: b_cxx_post=$shared_cxx_post
109256: b_lo=$shared_lo
109257:
109258:
109259: old_IFS=$IFS
1.1.1.2 misho 109260: for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1 misho 109261:
109262: IFS=.
109263: set $ac_src
109264: ac_obj=$1
109265: IFS=$old_IFS
109266:
1.1.1.2 misho 109267: shared_objects_soap="$shared_objects_soap $ac_bdir$ac_obj.lo"
1.1 misho 109268:
109269: case $ac_src in
109270: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109271: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109272: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109273: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109274: esac
109275:
109276: cat >>Makefile.objects<<EOF
109277: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109278: $ac_comp
109279: EOF
109280: done
109281:
109282: case $host_alias in
109283: *netware*)
109284:
109285: install_modules="install-modules"
109286:
109287: case $host_alias in
109288: *aix*)
109289: suffix=so
1.1.1.2 misho 109290: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsoap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(PHPSOAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsoap.so '$ext_builddir'/phpsoap.so'
1.1 misho 109291: ;;
109292: *netware*)
109293: suffix=nlm
1.1.1.2 misho 109294: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) -L$(top_builddir)/netware -lphp5lib $(SOAP_SHARED_LIBADD)'
1.1 misho 109295: ;;
109296: *)
109297: suffix=la
1.1.1.2 misho 109298: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(PHPSOAP_SHARED_LIBADD)'
1.1 misho 109299: ;;
109300: esac
109301:
109302: if test "x" = "xyes"; then
1.1.1.2 misho 109303: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsoap.$suffix"
1.1 misho 109304: else
1.1.1.2 misho 109305: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsoap.$suffix"
1.1 misho 109306: fi
109307:
1.1.1.2 misho 109308: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
1.1 misho 109309:
109310: cat >>Makefile.objects<<EOF
1.1.1.2 misho 109311: \$(phplibdir)/phpsoap.$suffix: $ext_builddir/phpsoap.$suffix
109312: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsoap.$suffix \$(phplibdir)
1.1 misho 109313:
1.1.1.2 misho 109314: $ext_builddir/phpsoap.$suffix: \$(shared_objects_soap) \$(PHPSOAP_SHARED_DEPENDENCIES)
1.1 misho 109315: $link_cmd
109316:
109317: EOF
109318:
109319: ;;
109320: *)
109321:
109322: install_modules="install-modules"
109323:
109324: case $host_alias in
109325: *aix*)
109326: suffix=so
1.1.1.2 misho 109327: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/soap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(SOAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/soap.so '$ext_builddir'/soap.so'
1.1 misho 109328: ;;
109329: *netware*)
109330: suffix=nlm
1.1.1.2 misho 109331: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
1.1 misho 109332: ;;
109333: *)
109334: suffix=la
1.1.1.2 misho 109335: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(SOAP_SHARED_LIBADD)'
1.1 misho 109336: ;;
109337: esac
109338:
109339: if test "x" = "xyes"; then
1.1.1.2 misho 109340: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/soap.$suffix"
1.1 misho 109341: else
1.1.1.2 misho 109342: PHP_MODULES="$PHP_MODULES \$(phplibdir)/soap.$suffix"
1.1 misho 109343: fi
109344:
1.1.1.2 misho 109345: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
1.1 misho 109346:
109347: cat >>Makefile.objects<<EOF
1.1.1.2 misho 109348: \$(phplibdir)/soap.$suffix: $ext_builddir/soap.$suffix
109349: \$(LIBTOOL) --mode=install cp $ext_builddir/soap.$suffix \$(phplibdir)
1.1 misho 109350:
1.1.1.2 misho 109351: $ext_builddir/soap.$suffix: \$(shared_objects_soap) \$(SOAP_SHARED_DEPENDENCIES)
1.1.1.3 ! misho 109352: $link_cmd
1.1 misho 109353:
109354: EOF
109355:
1.1.1.3 ! misho 109356: ;;
! 109357: esac
! 109358:
! 109359: cat >>confdefs.h <<_ACEOF
! 109360: #define COMPILE_DL_SOAP 1
! 109361: _ACEOF
! 109362:
! 109363: fi
! 109364: fi
1.1 misho 109365:
1.1.1.3 ! misho 109366: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
! 109367: PHP_SOAP_SHARED=no
! 109368: case "$PHP_SAPI" in
! 109369: cgi|embed)
1.1 misho 109370:
109371:
1.1.1.2 misho 109372: case ext/soap in
1.1 misho 109373: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 109374: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109375: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 109376: esac
109377:
109378:
109379:
109380: b_c_pre=$php_c_pre
109381: b_cxx_pre=$php_cxx_pre
109382: b_c_meta=$php_c_meta
109383: b_cxx_meta=$php_cxx_meta
109384: b_c_post=$php_c_post
109385: b_cxx_post=$php_cxx_post
109386: b_lo=$php_lo
109387:
109388:
109389: old_IFS=$IFS
1.1.1.2 misho 109390: for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1 misho 109391:
109392: IFS=.
109393: set $ac_src
109394: ac_obj=$1
109395: IFS=$old_IFS
109396:
1.1.1.2 misho 109397: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 109398:
109399: case $ac_src in
109400: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109401: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109402: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109403: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109404: esac
109405:
109406: cat >>Makefile.objects<<EOF
109407: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109408: $ac_comp
109409: EOF
109410: done
109411:
109412:
1.1.1.3 ! misho 109413: EXT_STATIC="$EXT_STATIC soap"
! 109414: ;;
! 109415: *)
1.1 misho 109416:
109417:
1.1.1.2 misho 109418: case ext/soap in
1.1 misho 109419: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 109420: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109421: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 109422: esac
109423:
109424:
109425:
109426: b_c_pre=$php_c_pre
109427: b_cxx_pre=$php_cxx_pre
109428: b_c_meta=$php_c_meta
109429: b_cxx_meta=$php_cxx_meta
109430: b_c_post=$php_c_post
109431: b_cxx_post=$php_cxx_post
109432: b_lo=$php_lo
109433:
109434:
109435: old_IFS=$IFS
1.1.1.2 misho 109436: for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1 misho 109437:
109438: IFS=.
109439: set $ac_src
109440: ac_obj=$1
109441: IFS=$old_IFS
109442:
1.1.1.2 misho 109443: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 109444:
109445: case $ac_src in
109446: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109447: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109448: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109449: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109450: esac
109451:
109452: cat >>Makefile.objects<<EOF
109453: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109454: $ac_comp
109455: EOF
109456: done
109457:
109458:
1.1.1.3 ! misho 109459: ;;
! 109460: esac
1.1.1.2 misho 109461: EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
1.1 misho 109462: fi
109463:
109464:
109465: BUILD_DIR="$BUILD_DIR $ext_builddir"
109466:
109467:
109468:
109469: if test "$ext_builddir" = "."; then
1.1.1.2 misho 109470: PHP_PECL_EXTENSION=soap
1.1 misho 109471:
109472: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
109473:
109474: fi
109475:
109476:
1.1.1.2 misho 109477: PHP_VAR_SUBST="$PHP_VAR_SUBST SOAP_SHARED_LIBADD"
109478:
109479:
109480: else
1.1.1.3 ! misho 109481: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 109482: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 109483: { (exit 1); exit 1; }; }
1.1.1.2 misho 109484: fi
109485: else
1.1.1.3 ! misho 109486: { { echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
! 109487: echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
! 109488: { (exit 1); exit 1; }; }
1.1.1.2 misho 109489:
109490: fi
1.1 misho 109491:
109492: fi
109493:
109494:
109495:
1.1.1.2 misho 109496: php_enable_sockets=no
1.1 misho 109497:
1.1.1.3 ! misho 109498: { echo "$as_me:$LINENO: checking whether to enable sockets support" >&5
! 109499: echo $ECHO_N "checking whether to enable sockets support... $ECHO_C" >&6; }
1.1.1.2 misho 109500: # Check whether --enable-sockets was given.
1.1.1.3 ! misho 109501: if test "${enable_sockets+set}" = set; then
1.1.1.2 misho 109502: enableval=$enable_sockets; PHP_SOCKETS=$enableval
1.1 misho 109503: else
109504:
1.1.1.2 misho 109505: PHP_SOCKETS=no
109506: test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL
1.1 misho 109507:
109508: fi
109509:
109510:
109511:
109512: ext_output="yes, shared"
109513: ext_shared=yes
1.1.1.2 misho 109514: case $PHP_SOCKETS in
1.1 misho 109515: shared,*)
1.1.1.2 misho 109516: PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'`
1.1 misho 109517: ;;
109518: shared)
1.1.1.2 misho 109519: PHP_SOCKETS=yes
1.1 misho 109520: ;;
109521: no)
109522: ext_output=no
109523: ext_shared=no
109524: ;;
109525: *)
109526: ext_output=yes
109527: ext_shared=no
109528: ;;
109529: esac
109530:
109531:
109532:
1.1.1.3 ! misho 109533: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 109534: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 109535:
109536:
109537:
109538:
1.1.1.2 misho 109539: if test "$PHP_SOCKETS" != "no"; then
1.1.1.3 ! misho 109540: { echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
! 109541: echo $ECHO_N "checking for struct cmsghdr... $ECHO_C" >&6; }
! 109542: if test "${ac_cv_cmsghdr+set}" = set; then
! 109543: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 109544: else
1.1 misho 109545:
1.1.1.3 ! misho 109546: cat >conftest.$ac_ext <<_ACEOF
! 109547: /* confdefs.h. */
! 109548: _ACEOF
! 109549: cat confdefs.h >>conftest.$ac_ext
! 109550: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 109551: /* end confdefs.h. */
1.1 misho 109552:
1.1.1.2 misho 109553: #include <sys/types.h>
109554: #include <sys/socket.h>
109555: int
109556: main ()
109557: {
109558: struct cmsghdr s; s
109559: ;
109560: return 0;
109561: }
109562: _ACEOF
1.1.1.3 ! misho 109563: rm -f conftest.$ac_objext
! 109564: if { (ac_try="$ac_compile"
! 109565: case "(($ac_try" in
! 109566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109567: *) ac_try_echo=$ac_try;;
! 109568: esac
! 109569: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109570: (eval "$ac_compile") 2>conftest.er1
! 109571: ac_status=$?
! 109572: grep -v '^ *+' conftest.er1 >conftest.err
! 109573: rm -f conftest.er1
! 109574: cat conftest.err >&5
! 109575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109576: (exit $ac_status); } && {
! 109577: test -z "$ac_c_werror_flag" ||
! 109578: test ! -s conftest.err
! 109579: } && test -s conftest.$ac_objext; then
1.1.1.2 misho 109580: ac_cv_cmsghdr=yes
1.1 misho 109581: else
1.1.1.3 ! misho 109582: echo "$as_me: failed program was:" >&5
! 109583: sed 's/^/| /' conftest.$ac_ext >&5
! 109584:
! 109585: ac_cv_cmsghdr=no
1.1.1.2 misho 109586: fi
1.1.1.3 ! misho 109587:
1.1.1.2 misho 109588: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 109589:
1.1.1.2 misho 109590: fi
1.1.1.3 ! misho 109591: { echo "$as_me:$LINENO: result: $ac_cv_cmsghdr" >&5
! 109592: echo "${ECHO_T}$ac_cv_cmsghdr" >&6; }
1.1 misho 109593:
1.1.1.2 misho 109594: if test "$ac_cv_cmsghdr" = yes; then
1.1 misho 109595:
1.1.1.3 ! misho 109596: cat >>confdefs.h <<\_ACEOF
! 109597: #define HAVE_CMSGHDR 1
! 109598: _ACEOF
1.1 misho 109599:
1.1.1.2 misho 109600: fi
1.1 misho 109601:
1.1.1.3 ! misho 109602:
! 109603:
! 109604:
! 109605:
! 109606: for ac_func in hstrerror socketpair if_nametoindex if_indextoname
! 109607: do
! 109608: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 109609: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 109610: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 109611: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 109612: echo $ECHO_N "(cached) $ECHO_C" >&6
! 109613: else
! 109614: cat >conftest.$ac_ext <<_ACEOF
! 109615: /* confdefs.h. */
! 109616: _ACEOF
! 109617: cat confdefs.h >>conftest.$ac_ext
! 109618: cat >>conftest.$ac_ext <<_ACEOF
! 109619: /* end confdefs.h. */
! 109620: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 109621: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 109622: #define $ac_func innocuous_$ac_func
! 109623:
! 109624: /* System header to define __stub macros and hopefully few prototypes,
! 109625: which can conflict with char $ac_func (); below.
! 109626: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 109627: <limits.h> exists even on freestanding compilers. */
! 109628:
! 109629: #ifdef __STDC__
! 109630: # include <limits.h>
! 109631: #else
! 109632: # include <assert.h>
! 109633: #endif
! 109634:
! 109635: #undef $ac_func
! 109636:
! 109637: /* Override any GCC internal prototype to avoid an error.
! 109638: Use char because int might match the return type of a GCC
! 109639: builtin and then its argument prototype would still apply. */
! 109640: #ifdef __cplusplus
! 109641: extern "C"
! 109642: #endif
! 109643: char $ac_func ();
! 109644: /* The GNU C library defines this for functions which it implements
! 109645: to always fail with ENOSYS. Some functions are actually named
! 109646: something starting with __ and the normal name is an alias. */
! 109647: #if defined __stub_$ac_func || defined __stub___$ac_func
! 109648: choke me
! 109649: #endif
! 109650:
! 109651: int
! 109652: main ()
! 109653: {
! 109654: return $ac_func ();
! 109655: ;
! 109656: return 0;
! 109657: }
! 109658: _ACEOF
! 109659: rm -f conftest.$ac_objext conftest$ac_exeext
! 109660: if { (ac_try="$ac_link"
! 109661: case "(($ac_try" in
! 109662: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109663: *) ac_try_echo=$ac_try;;
! 109664: esac
! 109665: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109666: (eval "$ac_link") 2>conftest.er1
! 109667: ac_status=$?
! 109668: grep -v '^ *+' conftest.er1 >conftest.err
! 109669: rm -f conftest.er1
! 109670: cat conftest.err >&5
! 109671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109672: (exit $ac_status); } && {
! 109673: test -z "$ac_c_werror_flag" ||
! 109674: test ! -s conftest.err
! 109675: } && test -s conftest$ac_exeext &&
! 109676: $as_test_x conftest$ac_exeext; then
! 109677: eval "$as_ac_var=yes"
! 109678: else
! 109679: echo "$as_me: failed program was:" >&5
! 109680: sed 's/^/| /' conftest.$ac_ext >&5
! 109681:
! 109682: eval "$as_ac_var=no"
! 109683: fi
! 109684:
! 109685: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 109686: conftest$ac_exeext conftest.$ac_ext
! 109687: fi
! 109688: ac_res=`eval echo '${'$as_ac_var'}'`
! 109689: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 109690: echo "${ECHO_T}$ac_res" >&6; }
! 109691: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1.1.2 misho 109692: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 109693: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1.1.2 misho 109694: _ACEOF
1.1 misho 109695:
1.1.1.2 misho 109696: fi
109697: done
1.1 misho 109698:
1.1.1.3 ! misho 109699:
! 109700:
! 109701:
! 109702:
! 109703:
! 109704: for ac_header in netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h
! 109705: do
! 109706: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 109707: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 109708: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 109709: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 109710: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 109711: echo $ECHO_N "(cached) $ECHO_C" >&6
! 109712: fi
! 109713: ac_res=`eval echo '${'$as_ac_Header'}'`
! 109714: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 109715: echo "${ECHO_T}$ac_res" >&6; }
! 109716: else
! 109717: # Is the header compilable?
! 109718: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 109719: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 109720: cat >conftest.$ac_ext <<_ACEOF
! 109721: /* confdefs.h. */
! 109722: _ACEOF
! 109723: cat confdefs.h >>conftest.$ac_ext
! 109724: cat >>conftest.$ac_ext <<_ACEOF
! 109725: /* end confdefs.h. */
! 109726: $ac_includes_default
! 109727: #include <$ac_header>
! 109728: _ACEOF
! 109729: rm -f conftest.$ac_objext
! 109730: if { (ac_try="$ac_compile"
! 109731: case "(($ac_try" in
! 109732: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109733: *) ac_try_echo=$ac_try;;
! 109734: esac
! 109735: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109736: (eval "$ac_compile") 2>conftest.er1
! 109737: ac_status=$?
! 109738: grep -v '^ *+' conftest.er1 >conftest.err
! 109739: rm -f conftest.er1
! 109740: cat conftest.err >&5
! 109741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109742: (exit $ac_status); } && {
! 109743: test -z "$ac_c_werror_flag" ||
! 109744: test ! -s conftest.err
! 109745: } && test -s conftest.$ac_objext; then
! 109746: ac_header_compiler=yes
! 109747: else
! 109748: echo "$as_me: failed program was:" >&5
! 109749: sed 's/^/| /' conftest.$ac_ext >&5
! 109750:
! 109751: ac_header_compiler=no
! 109752: fi
! 109753:
! 109754: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 109755: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 109756: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 109757:
! 109758: # Is the header present?
! 109759: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 109760: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 109761: cat >conftest.$ac_ext <<_ACEOF
! 109762: /* confdefs.h. */
! 109763: _ACEOF
! 109764: cat confdefs.h >>conftest.$ac_ext
! 109765: cat >>conftest.$ac_ext <<_ACEOF
! 109766: /* end confdefs.h. */
! 109767: #include <$ac_header>
! 109768: _ACEOF
! 109769: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 109770: case "(($ac_try" in
! 109771: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109772: *) ac_try_echo=$ac_try;;
! 109773: esac
! 109774: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109775: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 109776: ac_status=$?
! 109777: grep -v '^ *+' conftest.er1 >conftest.err
! 109778: rm -f conftest.er1
! 109779: cat conftest.err >&5
! 109780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109781: (exit $ac_status); } >/dev/null && {
! 109782: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 109783: test ! -s conftest.err
! 109784: }; then
! 109785: ac_header_preproc=yes
! 109786: else
! 109787: echo "$as_me: failed program was:" >&5
! 109788: sed 's/^/| /' conftest.$ac_ext >&5
! 109789:
! 109790: ac_header_preproc=no
! 109791: fi
! 109792:
! 109793: rm -f conftest.err conftest.$ac_ext
! 109794: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 109795: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 109796:
! 109797: # So? What about this header?
! 109798: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 109799: yes:no: )
! 109800: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 109801: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 109802: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 109803: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 109804: ac_header_preproc=yes
! 109805: ;;
! 109806: no:yes:* )
! 109807: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 109808: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 109809: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 109810: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 109811: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 109812: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 109813: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 109814: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 109815: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 109816: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 109817: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 109818: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 109819:
! 109820: ;;
! 109821: esac
! 109822: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 109823: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 109824: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 109825: echo $ECHO_N "(cached) $ECHO_C" >&6
! 109826: else
! 109827: eval "$as_ac_Header=\$ac_header_preproc"
! 109828: fi
! 109829: ac_res=`eval echo '${'$as_ac_Header'}'`
! 109830: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 109831: echo "${ECHO_T}$ac_res" >&6; }
! 109832:
! 109833: fi
! 109834: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1.1.2 misho 109835: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 109836: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.2 misho 109837: _ACEOF
1.1 misho 109838:
109839: fi
109840:
1.1.1.2 misho 109841: done
1.1 misho 109842:
1.1.1.3 ! misho 109843: cat >conftest.$ac_ext <<_ACEOF
! 109844: /* confdefs.h. */
! 109845: _ACEOF
! 109846: cat confdefs.h >>conftest.$ac_ext
! 109847: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 109848: /* end confdefs.h. */
1.1 misho 109849:
1.1.1.2 misho 109850: #include <sys/types.h>
109851: #include <sys/socket.h>
1.1 misho 109852:
1.1.1.2 misho 109853: int
109854: main ()
109855: {
109856: static struct msghdr tp; int n = (int) tp.msg_flags; return n
109857: ;
109858: return 0;
109859: }
109860: _ACEOF
1.1.1.3 ! misho 109861: rm -f conftest.$ac_objext
! 109862: if { (ac_try="$ac_compile"
! 109863: case "(($ac_try" in
! 109864: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109865: *) ac_try_echo=$ac_try;;
! 109866: esac
! 109867: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109868: (eval "$ac_compile") 2>conftest.er1
! 109869: ac_status=$?
! 109870: grep -v '^ *+' conftest.er1 >conftest.err
! 109871: rm -f conftest.er1
! 109872: cat conftest.err >&5
! 109873: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109874: (exit $ac_status); } && {
! 109875: test -z "$ac_c_werror_flag" ||
! 109876: test ! -s conftest.err
! 109877: } && test -s conftest.$ac_objext; then
! 109878: :
! 109879: else
! 109880: echo "$as_me: failed program was:" >&5
! 109881: sed 's/^/| /' conftest.$ac_ext >&5
! 109882:
! 109883:
! 109884: cat >>confdefs.h <<\_ACEOF
! 109885: #define MISSING_MSGHDR_MSGFLAGS 1
! 109886: _ACEOF
! 109887:
! 109888:
! 109889: fi
! 109890:
! 109891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 109892:
! 109893: cat >>confdefs.h <<\_ACEOF
! 109894: #define HAVE_SOCKETS 1
! 109895: _ACEOF
! 109896:
1.1 misho 109897:
1.1.1.3 ! misho 109898: { echo "$as_me:$LINENO: checking for field ss_family in struct sockaddr_storage" >&5
! 109899: echo $ECHO_N "checking for field ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
! 109900: if test "${ac_cv_ss_family+set}" = set; then
! 109901: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 109902: else
1.1 misho 109903:
1.1.1.3 ! misho 109904: cat >conftest.$ac_ext <<_ACEOF
! 109905: /* confdefs.h. */
! 109906: _ACEOF
! 109907: cat confdefs.h >>conftest.$ac_ext
! 109908: cat >>conftest.$ac_ext <<_ACEOF
! 109909: /* end confdefs.h. */
! 109910:
! 109911: #include <sys/socket.h>
! 109912: #include <sys/types.h>
! 109913: #include <netdb.h>
1.1 misho 109914:
1.1.1.3 ! misho 109915: int
! 109916: main ()
! 109917: {
! 109918: struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6;
! 109919: ;
! 109920: return 0;
! 109921: }
! 109922: _ACEOF
! 109923: rm -f conftest.$ac_objext
! 109924: if { (ac_try="$ac_compile"
! 109925: case "(($ac_try" in
! 109926: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 109927: *) ac_try_echo=$ac_try;;
! 109928: esac
! 109929: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 109930: (eval "$ac_compile") 2>conftest.er1
! 109931: ac_status=$?
! 109932: grep -v '^ *+' conftest.er1 >conftest.err
! 109933: rm -f conftest.er1
! 109934: cat conftest.err >&5
! 109935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 109936: (exit $ac_status); } && {
! 109937: test -z "$ac_c_werror_flag" ||
! 109938: test ! -s conftest.err
! 109939: } && test -s conftest.$ac_objext; then
! 109940: ac_cv_ss_family=yes
! 109941: else
! 109942: echo "$as_me: failed program was:" >&5
! 109943: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 109944:
1.1.1.3 ! misho 109945: ac_cv_ss_family=no
1.1.1.2 misho 109946: fi
1.1.1.3 ! misho 109947:
1.1.1.2 misho 109948: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 109949:
1.1.1.3 ! misho 109950: fi
! 109951: { echo "$as_me:$LINENO: result: $ac_cv_ss_family" >&5
! 109952: echo "${ECHO_T}$ac_cv_ss_family" >&6; }
! 109953:
! 109954: if test "$ac_cv_ss_family" = yes; then
! 109955:
! 109956: cat >>confdefs.h <<\_ACEOF
! 109957: #define HAVE_SA_SS_FAMILY 1
! 109958: _ACEOF
1.1 misho 109959:
1.1.1.3 ! misho 109960: fi
1.1 misho 109961:
109962:
1.1.1.2 misho 109963: ext_builddir=ext/sockets
109964: ext_srcdir=$abs_srcdir/ext/sockets
1.1 misho 109965:
1.1.1.2 misho 109966: ac_extra=
1.1 misho 109967:
1.1.1.2 misho 109968: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
109969: PHP_SOCKETS_SHARED=no
1.1 misho 109970:
109971:
1.1.1.2 misho 109972: case ext/sockets in
109973: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
109974: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109975: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 109976: esac
109977:
109978:
109979:
1.1.1.2 misho 109980: b_c_pre=$php_c_pre
109981: b_cxx_pre=$php_cxx_pre
109982: b_c_meta=$php_c_meta
109983: b_cxx_meta=$php_cxx_meta
109984: b_c_post=$php_c_post
109985: b_cxx_post=$php_cxx_post
109986: b_lo=$php_lo
1.1 misho 109987:
109988:
1.1.1.2 misho 109989: old_IFS=$IFS
109990: for ac_src in sockets.c multicast.c; do
1.1 misho 109991:
1.1.1.2 misho 109992: IFS=.
109993: set $ac_src
109994: ac_obj=$1
109995: IFS=$old_IFS
1.1 misho 109996:
1.1.1.2 misho 109997: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 109998:
1.1.1.2 misho 109999: case $ac_src in
110000: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110001: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110002: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110003: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110004: esac
1.1 misho 110005:
1.1.1.2 misho 110006: cat >>Makefile.objects<<EOF
110007: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110008: $ac_comp
110009: EOF
110010: done
1.1 misho 110011:
110012:
1.1.1.2 misho 110013: EXT_STATIC="$EXT_STATIC sockets"
110014: if test "$ext_shared" != "nocli"; then
110015: EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
110016: fi
110017: else
110018: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
110019: PHP_SOCKETS_SHARED=yes
1.1 misho 110020:
1.1.1.2 misho 110021: case ext/sockets in
110022: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110023: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110024: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110025: esac
1.1 misho 110026:
110027:
110028:
1.1.1.2 misho 110029: b_c_pre=$shared_c_pre
110030: b_cxx_pre=$shared_cxx_pre
110031: b_c_meta=$shared_c_meta
110032: b_cxx_meta=$shared_cxx_meta
110033: b_c_post=$shared_c_post
110034: b_cxx_post=$shared_cxx_post
110035: b_lo=$shared_lo
1.1 misho 110036:
110037:
1.1.1.2 misho 110038: old_IFS=$IFS
110039: for ac_src in sockets.c multicast.c; do
1.1 misho 110040:
1.1.1.2 misho 110041: IFS=.
110042: set $ac_src
110043: ac_obj=$1
110044: IFS=$old_IFS
1.1 misho 110045:
1.1.1.2 misho 110046: shared_objects_sockets="$shared_objects_sockets $ac_bdir$ac_obj.lo"
1.1 misho 110047:
1.1.1.2 misho 110048: case $ac_src in
110049: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110050: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110051: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110052: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110053: esac
110054:
110055: cat >>Makefile.objects<<EOF
110056: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110057: $ac_comp
110058: EOF
1.1 misho 110059: done
110060:
1.1.1.2 misho 110061: case $host_alias in
110062: *netware*)
1.1 misho 110063:
1.1.1.2 misho 110064: install_modules="install-modules"
1.1 misho 110065:
1.1.1.2 misho 110066: case $host_alias in
110067: *aix*)
110068: suffix=so
110069: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(PHPSOCKETS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsockets.so '$ext_builddir'/phpsockets.so'
110070: ;;
110071: *netware*)
110072: suffix=nlm
110073: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) -L$(top_builddir)/netware -lphp5lib $(SOCKETS_SHARED_LIBADD)'
110074: ;;
110075: *)
110076: suffix=la
110077: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(PHPSOCKETS_SHARED_LIBADD)'
110078: ;;
110079: esac
1.1 misho 110080:
1.1.1.2 misho 110081: if test "x" = "xyes"; then
110082: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsockets.$suffix"
1.1 misho 110083: else
1.1.1.2 misho 110084: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsockets.$suffix"
1.1 misho 110085: fi
110086:
1.1.1.2 misho 110087: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
1.1 misho 110088:
1.1.1.2 misho 110089: cat >>Makefile.objects<<EOF
110090: \$(phplibdir)/phpsockets.$suffix: $ext_builddir/phpsockets.$suffix
110091: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsockets.$suffix \$(phplibdir)
1.1 misho 110092:
1.1.1.2 misho 110093: $ext_builddir/phpsockets.$suffix: \$(shared_objects_sockets) \$(PHPSOCKETS_SHARED_DEPENDENCIES)
1.1 misho 110094: $link_cmd
110095:
110096: EOF
110097:
110098: ;;
110099: *)
110100:
110101: install_modules="install-modules"
110102:
110103: case $host_alias in
110104: *aix*)
110105: suffix=so
1.1.1.2 misho 110106: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(SOCKETS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sockets.so '$ext_builddir'/sockets.so'
1.1 misho 110107: ;;
110108: *netware*)
110109: suffix=nlm
1.1.1.2 misho 110110: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) -L$(top_builddir)/netware -lphp5lib $(KETS_SHARED_LIBADD)'
1.1 misho 110111: ;;
110112: *)
110113: suffix=la
1.1.1.2 misho 110114: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(SOCKETS_SHARED_LIBADD)'
1.1 misho 110115: ;;
110116: esac
110117:
110118: if test "x" = "xyes"; then
1.1.1.2 misho 110119: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sockets.$suffix"
1.1 misho 110120: else
1.1.1.2 misho 110121: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sockets.$suffix"
1.1 misho 110122: fi
110123:
1.1.1.2 misho 110124: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
1.1 misho 110125:
110126: cat >>Makefile.objects<<EOF
1.1.1.2 misho 110127: \$(phplibdir)/sockets.$suffix: $ext_builddir/sockets.$suffix
110128: \$(LIBTOOL) --mode=install cp $ext_builddir/sockets.$suffix \$(phplibdir)
1.1 misho 110129:
1.1.1.2 misho 110130: $ext_builddir/sockets.$suffix: \$(shared_objects_sockets) \$(SOCKETS_SHARED_DEPENDENCIES)
1.1 misho 110131: $link_cmd
110132:
110133: EOF
110134:
110135: ;;
110136: esac
110137:
110138: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 110139: #define COMPILE_DL_SOCKETS 1
1.1 misho 110140: _ACEOF
110141:
110142: fi
110143: fi
110144:
110145: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
1.1.1.2 misho 110146: PHP_SOCKETS_SHARED=no
1.1.1.3 ! misho 110147: case "$PHP_SAPI" in
! 110148: cgi|embed)
1.1 misho 110149:
110150:
1.1.1.2 misho 110151: case ext/sockets in
1.1 misho 110152: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 110153: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110154: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 110155: esac
110156:
110157:
110158:
110159: b_c_pre=$php_c_pre
110160: b_cxx_pre=$php_cxx_pre
110161: b_c_meta=$php_c_meta
110162: b_cxx_meta=$php_cxx_meta
110163: b_c_post=$php_c_post
110164: b_cxx_post=$php_cxx_post
110165: b_lo=$php_lo
110166:
110167:
110168: old_IFS=$IFS
1.1.1.2 misho 110169: for ac_src in sockets.c multicast.c; do
1.1 misho 110170:
110171: IFS=.
110172: set $ac_src
110173: ac_obj=$1
110174: IFS=$old_IFS
110175:
1.1.1.2 misho 110176: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 110177:
110178: case $ac_src in
110179: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110180: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110181: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110182: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110183: esac
110184:
110185: cat >>Makefile.objects<<EOF
110186: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110187: $ac_comp
110188: EOF
110189: done
110190:
110191:
1.1.1.3 ! misho 110192: EXT_STATIC="$EXT_STATIC sockets"
! 110193: ;;
! 110194: *)
1.1 misho 110195:
110196:
1.1.1.2 misho 110197: case ext/sockets in
1.1 misho 110198: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 110199: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110200: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 110201: esac
110202:
110203:
110204:
110205: b_c_pre=$php_c_pre
110206: b_cxx_pre=$php_cxx_pre
110207: b_c_meta=$php_c_meta
110208: b_cxx_meta=$php_cxx_meta
110209: b_c_post=$php_c_post
110210: b_cxx_post=$php_cxx_post
110211: b_lo=$php_lo
110212:
110213:
110214: old_IFS=$IFS
1.1.1.2 misho 110215: for ac_src in sockets.c multicast.c; do
1.1 misho 110216:
110217: IFS=.
110218: set $ac_src
110219: ac_obj=$1
110220: IFS=$old_IFS
110221:
1.1.1.2 misho 110222: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 110223:
110224: case $ac_src in
110225: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110226: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110227: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110228: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110229: esac
110230:
110231: cat >>Makefile.objects<<EOF
110232: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110233: $ac_comp
110234: EOF
110235: done
110236:
110237:
1.1.1.3 ! misho 110238: ;;
! 110239: esac
1.1.1.2 misho 110240: EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
1.1 misho 110241: fi
110242:
110243:
110244: BUILD_DIR="$BUILD_DIR $ext_builddir"
110245:
110246:
110247:
110248: if test "$ext_builddir" = "."; then
1.1.1.2 misho 110249: PHP_PECL_EXTENSION=sockets
1.1 misho 110250:
110251: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
110252:
110253: fi
110254:
110255:
110256:
1.1.1.2 misho 110257: header_path=ext/sockets/
110258: for header_file in php_sockets.h; do
110259: hp_hf="$header_path/$header_file"
1.1 misho 110260:
110261:
1.1.1.2 misho 110262: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1 misho 110263:
1.1.1.2 misho 110264: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
110265: if test -n "$unique" && test "`eval $cmd`" = "" ; then
110266: eval "INSTALLHEADERS$unique=set"
1.1 misho 110267:
1.1.1.2 misho 110268: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
1.1 misho 110269:
1.1.1.2 misho 110270: fi
1.1 misho 110271:
1.1.1.2 misho 110272: done
1.1 misho 110273:
110274:
110275: fi
110276:
110277:
1.1.1.3 ! misho 110278: { echo "$as_me:$LINENO: checking whether zend_object_value is packed" >&5
! 110279: echo $ECHO_N "checking whether zend_object_value is packed... $ECHO_C" >&6; }
1.1.1.2 misho 110280: old_CPPFLAGS=$CPPFLAGS
110281: CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
1.1.1.3 ! misho 110282: if test "$cross_compiling" = yes; then
1.1 misho 110283:
1.1.1.2 misho 110284: ac_result=0
1.1.1.3 ! misho 110285: { echo "$as_me:$LINENO: result: no" >&5
! 110286: echo "${ECHO_T}no" >&6; }
1.1 misho 110287:
110288: else
1.1.1.3 ! misho 110289: cat >conftest.$ac_ext <<_ACEOF
! 110290: /* confdefs.h. */
! 110291: _ACEOF
! 110292: cat confdefs.h >>conftest.$ac_ext
! 110293: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 110294: /* end confdefs.h. */
110295:
1.1.1.2 misho 110296: #include "Zend/zend_types.h"
110297: int main(int argc, char **argv) {
110298: return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1;
1.1 misho 110299: }
110300:
1.1.1.2 misho 110301: _ACEOF
1.1.1.3 ! misho 110302: rm -f conftest$ac_exeext
! 110303: if { (ac_try="$ac_link"
! 110304: case "(($ac_try" in
! 110305: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110306: *) ac_try_echo=$ac_try;;
! 110307: esac
! 110308: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110309: (eval "$ac_link") 2>&5
! 110310: ac_status=$?
! 110311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110312: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 110313: { (case "(($ac_try" in
! 110314: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110315: *) ac_try_echo=$ac_try;;
! 110316: esac
! 110317: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110318: (eval "$ac_try") 2>&5
! 110319: ac_status=$?
! 110320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110321: (exit $ac_status); }; }; then
1.1 misho 110322:
1.1.1.2 misho 110323: ac_result=1
1.1.1.3 ! misho 110324: { echo "$as_me:$LINENO: result: yes" >&5
! 110325: echo "${ECHO_T}yes" >&6; }
1.1 misho 110326:
1.1.1.2 misho 110327: else
1.1.1.3 ! misho 110328: echo "$as_me: program exited with status $ac_status" >&5
! 110329: echo "$as_me: failed program was:" >&5
! 110330: sed 's/^/| /' conftest.$ac_ext >&5
! 110331:
! 110332: ( exit $ac_status )
1.1 misho 110333:
1.1.1.2 misho 110334: ac_result=0
1.1.1.3 ! misho 110335: { echo "$as_me:$LINENO: result: no" >&5
! 110336: echo "${ECHO_T}no" >&6; }
1.1 misho 110337:
110338: fi
1.1.1.3 ! misho 110339: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 110340: fi
110341:
1.1.1.3 ! misho 110342:
1.1.1.2 misho 110343: CPPFLAGS=$old_CPPFLAGS
1.1 misho 110344:
1.1.1.2 misho 110345: cat >>confdefs.h <<_ACEOF
110346: #define HAVE_PACKED_OBJECT_VALUE $ac_result
1.1 misho 110347: _ACEOF
110348:
110349:
1.1.1.3 ! misho 110350: cat >>confdefs.h <<\_ACEOF
! 110351: #define HAVE_SPL 1
! 110352: _ACEOF
1.1 misho 110353:
110354:
1.1.1.2 misho 110355: ext_builddir=ext/spl
110356: ext_srcdir=$abs_srcdir/ext/spl
1.1 misho 110357:
110358: ac_extra=
110359:
1.1.1.2 misho 110360: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
110361: PHP_SPL_SHARED=no
1.1 misho 110362:
110363:
1.1.1.2 misho 110364: case ext/spl in
1.1 misho 110365: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 110366: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110367: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 110368: esac
110369:
110370:
110371:
110372: b_c_pre=$php_c_pre
110373: b_cxx_pre=$php_cxx_pre
110374: b_c_meta=$php_c_meta
110375: b_cxx_meta=$php_cxx_meta
110376: b_c_post=$php_c_post
110377: b_cxx_post=$php_cxx_post
110378: b_lo=$php_lo
110379:
110380:
110381: old_IFS=$IFS
1.1.1.2 misho 110382: for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1 misho 110383:
110384: IFS=.
110385: set $ac_src
110386: ac_obj=$1
110387: IFS=$old_IFS
110388:
110389: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
110390:
110391: case $ac_src in
110392: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110393: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110394: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110395: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110396: esac
110397:
110398: cat >>Makefile.objects<<EOF
110399: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110400: $ac_comp
110401: EOF
110402: done
110403:
110404:
1.1.1.2 misho 110405: EXT_STATIC="$EXT_STATIC spl"
110406: if test "no" != "nocli"; then
110407: EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
1.1 misho 110408: fi
110409: else
1.1.1.2 misho 110410: if test "no" = "shared" || test "no" = "yes"; then
110411: PHP_SPL_SHARED=yes
1.1 misho 110412:
1.1.1.2 misho 110413: case ext/spl in
1.1 misho 110414: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 110415: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110416: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 110417: esac
110418:
110419:
110420:
110421: b_c_pre=$shared_c_pre
110422: b_cxx_pre=$shared_cxx_pre
110423: b_c_meta=$shared_c_meta
110424: b_cxx_meta=$shared_cxx_meta
110425: b_c_post=$shared_c_post
110426: b_cxx_post=$shared_cxx_post
110427: b_lo=$shared_lo
110428:
110429:
110430: old_IFS=$IFS
1.1.1.2 misho 110431: for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1 misho 110432:
110433: IFS=.
110434: set $ac_src
110435: ac_obj=$1
110436: IFS=$old_IFS
110437:
1.1.1.2 misho 110438: shared_objects_spl="$shared_objects_spl $ac_bdir$ac_obj.lo"
1.1 misho 110439:
110440: case $ac_src in
110441: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110442: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110443: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110444: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110445: esac
110446:
110447: cat >>Makefile.objects<<EOF
110448: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110449: $ac_comp
110450: EOF
110451: done
110452:
110453: case $host_alias in
110454: *netware*)
110455:
110456: install_modules="install-modules"
110457:
110458: case $host_alias in
110459: *aix*)
110460: suffix=so
1.1.1.2 misho 110461: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpspl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(PHPSPL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpspl.so '$ext_builddir'/phpspl.so'
1.1 misho 110462: ;;
110463: *netware*)
110464: suffix=nlm
1.1.1.2 misho 110465: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) -L$(top_builddir)/netware -lphp5lib $(SPL_SHARED_LIBADD)'
1.1 misho 110466: ;;
110467: *)
110468: suffix=la
1.1.1.2 misho 110469: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(PHPSPL_SHARED_LIBADD)'
1.1 misho 110470: ;;
110471: esac
110472:
110473: if test "x" = "xyes"; then
1.1.1.2 misho 110474: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpspl.$suffix"
1.1 misho 110475: else
1.1.1.2 misho 110476: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpspl.$suffix"
1.1 misho 110477: fi
110478:
1.1.1.2 misho 110479: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
1.1 misho 110480:
110481: cat >>Makefile.objects<<EOF
1.1.1.2 misho 110482: \$(phplibdir)/phpspl.$suffix: $ext_builddir/phpspl.$suffix
110483: \$(LIBTOOL) --mode=install cp $ext_builddir/phpspl.$suffix \$(phplibdir)
1.1 misho 110484:
1.1.1.2 misho 110485: $ext_builddir/phpspl.$suffix: \$(shared_objects_spl) \$(PHPSPL_SHARED_DEPENDENCIES)
1.1 misho 110486: $link_cmd
110487:
110488: EOF
110489:
110490: ;;
110491: *)
110492:
110493: install_modules="install-modules"
110494:
110495: case $host_alias in
110496: *aix*)
110497: suffix=so
1.1.1.2 misho 110498: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/spl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(SPL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/spl.so '$ext_builddir'/spl.so'
1.1 misho 110499: ;;
110500: *netware*)
110501: suffix=nlm
1.1.1.2 misho 110502: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
1.1 misho 110503: ;;
110504: *)
110505: suffix=la
1.1.1.2 misho 110506: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(SPL_SHARED_LIBADD)'
1.1 misho 110507: ;;
110508: esac
110509:
110510: if test "x" = "xyes"; then
1.1.1.2 misho 110511: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/spl.$suffix"
1.1 misho 110512: else
1.1.1.2 misho 110513: PHP_MODULES="$PHP_MODULES \$(phplibdir)/spl.$suffix"
1.1 misho 110514: fi
110515:
1.1.1.2 misho 110516: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
1.1 misho 110517:
110518: cat >>Makefile.objects<<EOF
1.1.1.2 misho 110519: \$(phplibdir)/spl.$suffix: $ext_builddir/spl.$suffix
110520: \$(LIBTOOL) --mode=install cp $ext_builddir/spl.$suffix \$(phplibdir)
1.1 misho 110521:
1.1.1.2 misho 110522: $ext_builddir/spl.$suffix: \$(shared_objects_spl) \$(SPL_SHARED_DEPENDENCIES)
1.1 misho 110523: $link_cmd
110524:
110525: EOF
110526:
110527: ;;
110528: esac
110529:
110530: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 110531: #define COMPILE_DL_SPL 1
1.1 misho 110532: _ACEOF
110533:
110534: fi
110535: fi
110536:
1.1.1.2 misho 110537: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
110538: PHP_SPL_SHARED=no
1.1.1.3 ! misho 110539: case "$PHP_SAPI" in
! 110540: cgi|embed)
1.1 misho 110541:
110542:
1.1.1.2 misho 110543: case ext/spl in
1.1 misho 110544: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 110545: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110546: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 110547: esac
110548:
110549:
110550:
110551: b_c_pre=$php_c_pre
110552: b_cxx_pre=$php_cxx_pre
110553: b_c_meta=$php_c_meta
110554: b_cxx_meta=$php_cxx_meta
110555: b_c_post=$php_c_post
110556: b_cxx_post=$php_cxx_post
110557: b_lo=$php_lo
110558:
110559:
110560: old_IFS=$IFS
1.1.1.2 misho 110561: for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1 misho 110562:
110563: IFS=.
110564: set $ac_src
110565: ac_obj=$1
110566: IFS=$old_IFS
110567:
1.1.1.2 misho 110568: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 110569:
110570: case $ac_src in
110571: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110572: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110573: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110574: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110575: esac
110576:
110577: cat >>Makefile.objects<<EOF
110578: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110579: $ac_comp
110580: EOF
110581: done
110582:
110583:
1.1.1.3 ! misho 110584: EXT_STATIC="$EXT_STATIC spl"
! 110585: ;;
! 110586: *)
1.1 misho 110587:
110588:
1.1.1.2 misho 110589: case ext/spl in
1.1 misho 110590: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 110591: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110592: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 110593: esac
110594:
110595:
110596:
110597: b_c_pre=$php_c_pre
110598: b_cxx_pre=$php_cxx_pre
110599: b_c_meta=$php_c_meta
110600: b_cxx_meta=$php_cxx_meta
110601: b_c_post=$php_c_post
110602: b_cxx_post=$php_cxx_post
110603: b_lo=$php_lo
110604:
110605:
110606: old_IFS=$IFS
1.1.1.2 misho 110607: for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1 misho 110608:
110609: IFS=.
110610: set $ac_src
110611: ac_obj=$1
110612: IFS=$old_IFS
110613:
1.1.1.2 misho 110614: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 110615:
110616: case $ac_src in
110617: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110618: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110619: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110620: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110621: esac
110622:
110623: cat >>Makefile.objects<<EOF
110624: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110625: $ac_comp
110626: EOF
110627: done
110628:
110629:
1.1.1.3 ! misho 110630: ;;
! 110631: esac
1.1.1.2 misho 110632: EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
1.1 misho 110633: fi
110634:
110635:
110636: BUILD_DIR="$BUILD_DIR $ext_builddir"
110637:
110638:
110639:
110640: if test "$ext_builddir" = "."; then
1.1.1.2 misho 110641: PHP_PECL_EXTENSION=spl
1.1 misho 110642:
110643: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
110644:
110645: fi
110646:
110647:
110648:
1.1.1.2 misho 110649: header_path=ext/spl
110650: for header_file in php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h; do
1.1 misho 110651: hp_hf="$header_path/$header_file"
110652:
110653:
110654: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
110655:
110656: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
110657: if test -n "$unique" && test "`eval $cmd`" = "" ; then
110658: eval "INSTALLHEADERS$unique=set"
110659:
110660: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
110661:
110662: fi
110663:
110664: done
110665:
110666:
110667:
1.1.1.2 misho 110668: am_i_shared=$PHP_SPL_SHARED
110669: is_it_shared=$PHP_PCRE_SHARED
110670: is_it_enabled=$PHP_PCRE
110671: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 110672: { { echo "$as_me:$LINENO: error:
! 110673: You've configured extension spl to build statically, but it
! 110674: depends on extension pcre, which you've configured to build shared.
! 110675: You either need to build spl shared or build pcre statically for the
! 110676: build to be successful.
! 110677: " >&5
! 110678: echo "$as_me: error:
1.1.1.2 misho 110679: You've configured extension spl to build statically, but it
110680: depends on extension pcre, which you've configured to build shared.
110681: You either need to build spl shared or build pcre statically for the
110682: build to be successful.
1.1.1.3 ! misho 110683: " >&2;}
! 110684: { (exit 1); exit 1; }; }
! 110685: fi
! 110686: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 110687: { { echo "$as_me:$LINENO: error:
! 110688: You've configured extension spl, which depends on extension pcre,
! 110689: but you've either not enabled pcre, or have disabled it.
! 110690: " >&5
! 110691: echo "$as_me: error:
! 110692: You've configured extension spl, which depends on extension pcre,
! 110693: but you've either not enabled pcre, or have disabled it.
! 110694: " >&2;}
! 110695: { (exit 1); exit 1; }; }
1.1.1.2 misho 110696: fi
1.1 misho 110697:
110698:
1.1.1.2 misho 110699:
1.1.1.3 ! misho 110700: { echo "$as_me:$LINENO: checking whether flush should be called explicitly after a buffered io" >&5
! 110701: echo $ECHO_N "checking whether flush should be called explicitly after a buffered io... $ECHO_C" >&6; }
! 110702: if test "${ac_cv_flush_io+set}" = set; then
! 110703: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 110704: else
110705:
1.1.1.3 ! misho 110706: if test "$cross_compiling" = yes; then
1.1.1.2 misho 110707:
110708: ac_cv_flush_io=no
1.1 misho 110709:
110710: else
1.1.1.3 ! misho 110711: cat >conftest.$ac_ext <<_ACEOF
! 110712: /* confdefs.h. */
! 110713: _ACEOF
! 110714: cat confdefs.h >>conftest.$ac_ext
! 110715: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 110716: /* end confdefs.h. */
110717:
1.1.1.2 misho 110718: #include <stdio.h>
110719: #include <stdlib.h>
110720:
110721: int main(int argc, char **argv)
110722: {
110723: char *filename = tmpnam(NULL);
110724: char buffer[64];
110725: int result = 0;
110726:
110727: FILE *fp = fopen(filename, "wb");
110728: if (NULL == fp)
110729: return 0;
110730: fputs("line 1\n", fp);
110731: fputs("line 2\n", fp);
110732: fclose(fp);
110733:
110734: fp = fopen(filename, "rb+");
110735: if (NULL == fp)
110736: return 0;
110737: fgets(buffer, sizeof(buffer), fp);
110738: fputs("line 3\n", fp);
110739: rewind(fp);
110740: fgets(buffer, sizeof(buffer), fp);
110741: if (0 != strcmp(buffer, "line 1\n"))
110742: result = 1;
110743: fgets(buffer, sizeof(buffer), fp);
110744: if (0 != strcmp(buffer, "line 3\n"))
110745: result = 1;
110746: fclose(fp);
110747: unlink(filename);
110748:
110749: exit(result);
1.1 misho 110750: }
110751:
110752: _ACEOF
1.1.1.3 ! misho 110753: rm -f conftest$ac_exeext
! 110754: if { (ac_try="$ac_link"
! 110755: case "(($ac_try" in
! 110756: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110757: *) ac_try_echo=$ac_try;;
! 110758: esac
! 110759: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110760: (eval "$ac_link") 2>&5
! 110761: ac_status=$?
! 110762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110763: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 110764: { (case "(($ac_try" in
! 110765: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110766: *) ac_try_echo=$ac_try;;
! 110767: esac
! 110768: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110769: (eval "$ac_try") 2>&5
! 110770: ac_status=$?
! 110771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110772: (exit $ac_status); }; }; then
1.1 misho 110773:
1.1.1.2 misho 110774: ac_cv_flush_io=no
1.1 misho 110775:
110776: else
1.1.1.3 ! misho 110777: echo "$as_me: program exited with status $ac_status" >&5
! 110778: echo "$as_me: failed program was:" >&5
! 110779: sed 's/^/| /' conftest.$ac_ext >&5
! 110780:
! 110781: ( exit $ac_status )
1.1 misho 110782:
1.1.1.2 misho 110783: ac_cv_flush_io=yes
1.1 misho 110784:
110785: fi
1.1.1.3 ! misho 110786: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 110787: fi
110788:
1.1.1.3 ! misho 110789:
1.1.1.2 misho 110790: fi
1.1.1.3 ! misho 110791: { echo "$as_me:$LINENO: result: $ac_cv_flush_io" >&5
! 110792: echo "${ECHO_T}$ac_cv_flush_io" >&6; }
1.1.1.2 misho 110793: if test "$ac_cv_flush_io" = "yes"; then
1.1 misho 110794:
1.1.1.3 ! misho 110795: cat >>confdefs.h <<\_ACEOF
! 110796: #define HAVE_FLUSHIO 1
! 110797: _ACEOF
1.1 misho 110798:
1.1.1.2 misho 110799: fi
1.1 misho 110800:
1.1.1.2 misho 110801: if test "$ac_cv_func_crypt" = "no"; then
1.1.1.3 ! misho 110802: { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
! 110803: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
! 110804: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
! 110805: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 110806: else
110807: ac_check_lib_save_LIBS=$LIBS
110808: LIBS="-lcrypt $LIBS"
1.1.1.3 ! misho 110809: cat >conftest.$ac_ext <<_ACEOF
! 110810: /* confdefs.h. */
! 110811: _ACEOF
! 110812: cat confdefs.h >>conftest.$ac_ext
! 110813: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 110814: /* end confdefs.h. */
1.1 misho 110815:
1.1.1.2 misho 110816: /* Override any GCC internal prototype to avoid an error.
110817: Use char because int might match the return type of a GCC
110818: builtin and then its argument prototype would still apply. */
110819: #ifdef __cplusplus
110820: extern "C"
110821: #endif
110822: char crypt ();
110823: int
110824: main ()
110825: {
110826: return crypt ();
110827: ;
110828: return 0;
110829: }
110830: _ACEOF
1.1.1.3 ! misho 110831: rm -f conftest.$ac_objext conftest$ac_exeext
! 110832: if { (ac_try="$ac_link"
! 110833: case "(($ac_try" in
! 110834: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110835: *) ac_try_echo=$ac_try;;
! 110836: esac
! 110837: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110838: (eval "$ac_link") 2>conftest.er1
! 110839: ac_status=$?
! 110840: grep -v '^ *+' conftest.er1 >conftest.err
! 110841: rm -f conftest.er1
! 110842: cat conftest.err >&5
! 110843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110844: (exit $ac_status); } && {
! 110845: test -z "$ac_c_werror_flag" ||
! 110846: test ! -s conftest.err
! 110847: } && test -s conftest$ac_exeext &&
! 110848: $as_test_x conftest$ac_exeext; then
1.1.1.2 misho 110849: ac_cv_lib_crypt_crypt=yes
110850: else
1.1.1.3 ! misho 110851: echo "$as_me: failed program was:" >&5
! 110852: sed 's/^/| /' conftest.$ac_ext >&5
! 110853:
! 110854: ac_cv_lib_crypt_crypt=no
1.1.1.2 misho 110855: fi
1.1.1.3 ! misho 110856:
! 110857: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 110858: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 110859: LIBS=$ac_check_lib_save_LIBS
110860: fi
1.1.1.3 ! misho 110861: { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
! 110862: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
! 110863: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 misho 110864:
1.1.1.2 misho 110865: LIBS="-lcrypt $LIBS -lcrypt"
1.1 misho 110866:
1.1.1.3 ! misho 110867: cat >>confdefs.h <<\_ACEOF
! 110868: #define HAVE_CRYPT 1
! 110869: _ACEOF
1.1 misho 110870:
110871:
1.1.1.2 misho 110872: fi
1.1 misho 110873:
1.1.1.2 misho 110874: fi
1.1 misho 110875:
1.1.1.3 ! misho 110876: { echo "$as_me:$LINENO: checking for standard DES crypt" >&5
! 110877: echo $ECHO_N "checking for standard DES crypt... $ECHO_C" >&6; }
! 110878: if test "${ac_cv_crypt_des+set}" = set; then
! 110879: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 110880: else
1.1 misho 110881:
1.1.1.3 ! misho 110882: if test "$cross_compiling" = yes; then
1.1 misho 110883:
1.1.1.2 misho 110884: ac_cv_crypt_des=yes
1.1 misho 110885:
1.1.1.2 misho 110886: else
1.1.1.3 ! misho 110887: cat >conftest.$ac_ext <<_ACEOF
! 110888: /* confdefs.h. */
! 110889: _ACEOF
! 110890: cat confdefs.h >>conftest.$ac_ext
! 110891: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 110892: /* end confdefs.h. */
1.1 misho 110893:
1.1.1.2 misho 110894: #if HAVE_UNISTD_H
110895: #include <unistd.h>
110896: #endif
1.1 misho 110897:
1.1.1.2 misho 110898: #if HAVE_CRYPT_H
110899: #include <crypt.h>
110900: #endif
1.1 misho 110901:
1.1.1.2 misho 110902: main() {
110903: #if HAVE_CRYPT
110904: exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M"));
110905: #else
110906: exit(0);
110907: #endif
110908: }
110909: _ACEOF
1.1.1.3 ! misho 110910: rm -f conftest$ac_exeext
! 110911: if { (ac_try="$ac_link"
! 110912: case "(($ac_try" in
! 110913: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110914: *) ac_try_echo=$ac_try;;
! 110915: esac
! 110916: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110917: (eval "$ac_link") 2>&5
! 110918: ac_status=$?
! 110919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110920: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 110921: { (case "(($ac_try" in
! 110922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110923: *) ac_try_echo=$ac_try;;
! 110924: esac
! 110925: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110926: (eval "$ac_try") 2>&5
! 110927: ac_status=$?
! 110928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110929: (exit $ac_status); }; }; then
1.1 misho 110930:
1.1.1.2 misho 110931: ac_cv_crypt_des=yes
1.1 misho 110932:
1.1.1.2 misho 110933: else
1.1.1.3 ! misho 110934: echo "$as_me: program exited with status $ac_status" >&5
! 110935: echo "$as_me: failed program was:" >&5
! 110936: sed 's/^/| /' conftest.$ac_ext >&5
! 110937:
! 110938: ( exit $ac_status )
1.1 misho 110939:
1.1.1.2 misho 110940: ac_cv_crypt_des=no
1.1 misho 110941:
1.1.1.2 misho 110942: fi
1.1.1.3 ! misho 110943: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 110944: fi
1.1 misho 110945:
1.1.1.3 ! misho 110946:
1.1.1.2 misho 110947: fi
1.1.1.3 ! misho 110948: { echo "$as_me:$LINENO: result: $ac_cv_crypt_des" >&5
! 110949: echo "${ECHO_T}$ac_cv_crypt_des" >&6; }
1.1 misho 110950:
1.1.1.3 ! misho 110951: { echo "$as_me:$LINENO: checking for extended DES crypt" >&5
! 110952: echo $ECHO_N "checking for extended DES crypt... $ECHO_C" >&6; }
! 110953: if test "${ac_cv_crypt_ext_des+set}" = set; then
! 110954: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 110955: else
1.1 misho 110956:
1.1.1.3 ! misho 110957: if test "$cross_compiling" = yes; then
1.1 misho 110958:
1.1.1.2 misho 110959: ac_cv_crypt_ext_des=no
1.1 misho 110960:
1.1.1.2 misho 110961: else
1.1.1.3 ! misho 110962: cat >conftest.$ac_ext <<_ACEOF
! 110963: /* confdefs.h. */
! 110964: _ACEOF
! 110965: cat confdefs.h >>conftest.$ac_ext
! 110966: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 110967: /* end confdefs.h. */
1.1 misho 110968:
1.1.1.2 misho 110969: #if HAVE_UNISTD_H
110970: #include <unistd.h>
110971: #endif
1.1 misho 110972:
1.1.1.2 misho 110973: #if HAVE_CRYPT_H
110974: #include <crypt.h>
110975: #endif
1.1 misho 110976:
1.1.1.2 misho 110977: main() {
110978: #if HAVE_CRYPT
110979: exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc"));
110980: #else
110981: exit(0);
110982: #endif
110983: }
110984: _ACEOF
1.1.1.3 ! misho 110985: rm -f conftest$ac_exeext
! 110986: if { (ac_try="$ac_link"
! 110987: case "(($ac_try" in
! 110988: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110989: *) ac_try_echo=$ac_try;;
! 110990: esac
! 110991: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 110992: (eval "$ac_link") 2>&5
! 110993: ac_status=$?
! 110994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 110995: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 110996: { (case "(($ac_try" in
! 110997: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 110998: *) ac_try_echo=$ac_try;;
! 110999: esac
! 111000: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111001: (eval "$ac_try") 2>&5
! 111002: ac_status=$?
! 111003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111004: (exit $ac_status); }; }; then
1.1 misho 111005:
1.1.1.2 misho 111006: ac_cv_crypt_ext_des=yes
1.1 misho 111007:
1.1.1.2 misho 111008: else
1.1.1.3 ! misho 111009: echo "$as_me: program exited with status $ac_status" >&5
! 111010: echo "$as_me: failed program was:" >&5
! 111011: sed 's/^/| /' conftest.$ac_ext >&5
! 111012:
! 111013: ( exit $ac_status )
1.1 misho 111014:
1.1.1.2 misho 111015: ac_cv_crypt_ext_des=no
1.1 misho 111016:
1.1.1.2 misho 111017: fi
1.1.1.3 ! misho 111018: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 111019: fi
1.1 misho 111020:
1.1.1.3 ! misho 111021:
1.1.1.2 misho 111022: fi
1.1.1.3 ! misho 111023: { echo "$as_me:$LINENO: result: $ac_cv_crypt_ext_des" >&5
! 111024: echo "${ECHO_T}$ac_cv_crypt_ext_des" >&6; }
1.1 misho 111025:
1.1.1.3 ! misho 111026: { echo "$as_me:$LINENO: checking for MD5 crypt" >&5
! 111027: echo $ECHO_N "checking for MD5 crypt... $ECHO_C" >&6; }
! 111028: if test "${ac_cv_crypt_md5+set}" = set; then
! 111029: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 111030: else
1.1 misho 111031:
1.1.1.3 ! misho 111032: if test "$cross_compiling" = yes; then
1.1 misho 111033:
1.1.1.2 misho 111034: ac_cv_crypt_md5=no
1.1 misho 111035:
1.1.1.2 misho 111036: else
1.1.1.3 ! misho 111037: cat >conftest.$ac_ext <<_ACEOF
! 111038: /* confdefs.h. */
! 111039: _ACEOF
! 111040: cat confdefs.h >>conftest.$ac_ext
! 111041: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 111042: /* end confdefs.h. */
1.1 misho 111043:
1.1.1.2 misho 111044: #if HAVE_UNISTD_H
111045: #include <unistd.h>
111046: #endif
1.1 misho 111047:
1.1.1.2 misho 111048: #if HAVE_CRYPT_H
111049: #include <crypt.h>
111050: #endif
1.1 misho 111051:
1.1.1.2 misho 111052: main() {
111053: #if HAVE_CRYPT
111054: char salt[15], answer[40];
1.1 misho 111055:
1.1.1.2 misho 111056: salt[0]='$'; salt[1]='1'; salt[2]='$';
111057: salt[3]='r'; salt[4]='a'; salt[5]='s';
111058: salt[6]='m'; salt[7]='u'; salt[8]='s';
111059: salt[9]='l'; salt[10]='e'; salt[11]='$';
111060: salt[12]='\0';
111061: strcpy(answer,salt);
111062: strcat(answer,"rISCgZzpwk3UhDidwXvin0");
111063: exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
111064: #else
111065: exit(0);
111066: #endif
111067: }
111068: _ACEOF
1.1.1.3 ! misho 111069: rm -f conftest$ac_exeext
! 111070: if { (ac_try="$ac_link"
! 111071: case "(($ac_try" in
! 111072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111073: *) ac_try_echo=$ac_try;;
! 111074: esac
! 111075: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111076: (eval "$ac_link") 2>&5
! 111077: ac_status=$?
! 111078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111079: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 111080: { (case "(($ac_try" in
! 111081: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111082: *) ac_try_echo=$ac_try;;
! 111083: esac
! 111084: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111085: (eval "$ac_try") 2>&5
! 111086: ac_status=$?
! 111087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111088: (exit $ac_status); }; }; then
1.1 misho 111089:
1.1.1.2 misho 111090: ac_cv_crypt_md5=yes
1.1 misho 111091:
1.1.1.2 misho 111092: else
1.1.1.3 ! misho 111093: echo "$as_me: program exited with status $ac_status" >&5
! 111094: echo "$as_me: failed program was:" >&5
! 111095: sed 's/^/| /' conftest.$ac_ext >&5
! 111096:
! 111097: ( exit $ac_status )
1.1 misho 111098:
1.1.1.2 misho 111099: ac_cv_crypt_md5=no
1.1 misho 111100:
1.1.1.2 misho 111101: fi
1.1.1.3 ! misho 111102: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 111103: fi
1.1 misho 111104:
1.1.1.3 ! misho 111105:
1.1.1.2 misho 111106: fi
1.1.1.3 ! misho 111107: { echo "$as_me:$LINENO: result: $ac_cv_crypt_md5" >&5
! 111108: echo "${ECHO_T}$ac_cv_crypt_md5" >&6; }
1.1 misho 111109:
1.1.1.3 ! misho 111110: { echo "$as_me:$LINENO: checking for Blowfish crypt" >&5
! 111111: echo $ECHO_N "checking for Blowfish crypt... $ECHO_C" >&6; }
! 111112: if test "${ac_cv_crypt_blowfish+set}" = set; then
! 111113: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 111114: else
1.1 misho 111115:
1.1.1.3 ! misho 111116: if test "$cross_compiling" = yes; then
1.1 misho 111117:
1.1.1.2 misho 111118: ac_cv_crypt_blowfish=no
1.1 misho 111119:
1.1.1.2 misho 111120: else
1.1.1.3 ! misho 111121: cat >conftest.$ac_ext <<_ACEOF
! 111122: /* confdefs.h. */
! 111123: _ACEOF
! 111124: cat confdefs.h >>conftest.$ac_ext
! 111125: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 111126: /* end confdefs.h. */
1.1 misho 111127:
1.1.1.2 misho 111128: #if HAVE_UNISTD_H
111129: #include <unistd.h>
111130: #endif
1.1 misho 111131:
1.1.1.2 misho 111132: #if HAVE_CRYPT_H
111133: #include <crypt.h>
111134: #endif
1.1 misho 111135:
1.1.1.2 misho 111136: main() {
111137: #if HAVE_CRYPT
111138: char salt[30], answer[70];
1.1 misho 111139:
1.1.1.2 misho 111140: salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
111141: strcat(salt,"rasmuslerd............");
111142: strcpy(answer,salt);
111143: strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
111144: exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
111145: #else
111146: exit(0);
111147: #endif
111148: }
111149: _ACEOF
1.1.1.3 ! misho 111150: rm -f conftest$ac_exeext
! 111151: if { (ac_try="$ac_link"
! 111152: case "(($ac_try" in
! 111153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111154: *) ac_try_echo=$ac_try;;
! 111155: esac
! 111156: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111157: (eval "$ac_link") 2>&5
! 111158: ac_status=$?
! 111159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111160: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 111161: { (case "(($ac_try" in
! 111162: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111163: *) ac_try_echo=$ac_try;;
! 111164: esac
! 111165: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111166: (eval "$ac_try") 2>&5
! 111167: ac_status=$?
! 111168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111169: (exit $ac_status); }; }; then
1.1 misho 111170:
1.1.1.2 misho 111171: ac_cv_crypt_blowfish=yes
1.1 misho 111172:
1.1.1.2 misho 111173: else
1.1.1.3 ! misho 111174: echo "$as_me: program exited with status $ac_status" >&5
! 111175: echo "$as_me: failed program was:" >&5
! 111176: sed 's/^/| /' conftest.$ac_ext >&5
! 111177:
! 111178: ( exit $ac_status )
1.1 misho 111179:
1.1.1.2 misho 111180: ac_cv_crypt_blowfish=no
1.1 misho 111181:
1.1.1.2 misho 111182: fi
1.1.1.3 ! misho 111183: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 111184: fi
1.1 misho 111185:
1.1.1.3 ! misho 111186:
1.1.1.2 misho 111187: fi
1.1.1.3 ! misho 111188: { echo "$as_me:$LINENO: result: $ac_cv_crypt_blowfish" >&5
! 111189: echo "${ECHO_T}$ac_cv_crypt_blowfish" >&6; }
1.1 misho 111190:
1.1.1.3 ! misho 111191: { echo "$as_me:$LINENO: checking for SHA512 crypt" >&5
! 111192: echo $ECHO_N "checking for SHA512 crypt... $ECHO_C" >&6; }
! 111193: if test "${ac_cv_crypt_SHA512+set}" = set; then
! 111194: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 111195: else
1.1 misho 111196:
1.1.1.3 ! misho 111197: if test "$cross_compiling" = yes; then
1.1 misho 111198:
1.1.1.2 misho 111199: ac_cv_crypt_SHA512=no
1.1 misho 111200:
1.1.1.2 misho 111201: else
1.1.1.3 ! misho 111202: cat >conftest.$ac_ext <<_ACEOF
! 111203: /* confdefs.h. */
! 111204: _ACEOF
! 111205: cat confdefs.h >>conftest.$ac_ext
! 111206: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 111207: /* end confdefs.h. */
1.1 misho 111208:
1.1.1.2 misho 111209: #if HAVE_UNISTD_H
111210: #include <unistd.h>
111211: #endif
1.1 misho 111212:
1.1.1.2 misho 111213: #if HAVE_CRYPT_H
111214: #include <crypt.h>
111215: #endif
1.1 misho 111216:
1.1.1.2 misho 111217: main() {
111218: #if HAVE_CRYPT
111219: char salt[30], answer[80];
1.1 misho 111220:
1.1.1.2 misho 111221: salt[0]='$'; salt[1]='6'; salt[2]='$'; salt[3]='$'; salt[4]='b'; salt[5]='a'; salt[6]='r'; salt[7]='\0';
111222: strcpy(answer, salt);
111223: strcpy(&answer[29],"$6$$QMXjqd7rHQZPQ1yHsXkQqC1FBzDiVfTHXL.LaeDAeVV.IzMaV9VU4MQ8kPuZa2SOP1A0RPm772EaFYjpEJtdu.");
111224: exit (strcmp((char *)crypt("foo",salt),answer));
111225: #else
111226: exit(0);
111227: #endif
111228: }
111229: _ACEOF
1.1.1.3 ! misho 111230: rm -f conftest$ac_exeext
! 111231: if { (ac_try="$ac_link"
! 111232: case "(($ac_try" in
! 111233: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111234: *) ac_try_echo=$ac_try;;
! 111235: esac
! 111236: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111237: (eval "$ac_link") 2>&5
! 111238: ac_status=$?
! 111239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111240: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 111241: { (case "(($ac_try" in
! 111242: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111243: *) ac_try_echo=$ac_try;;
! 111244: esac
! 111245: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111246: (eval "$ac_try") 2>&5
! 111247: ac_status=$?
! 111248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111249: (exit $ac_status); }; }; then
1.1 misho 111250:
1.1.1.2 misho 111251: ac_cv_crypt_SHA512=yes
1.1 misho 111252:
1.1.1.2 misho 111253: else
1.1.1.3 ! misho 111254: echo "$as_me: program exited with status $ac_status" >&5
! 111255: echo "$as_me: failed program was:" >&5
! 111256: sed 's/^/| /' conftest.$ac_ext >&5
! 111257:
! 111258: ( exit $ac_status )
1.1 misho 111259:
1.1.1.2 misho 111260: ac_cv_crypt_SHA512=no
1.1 misho 111261:
111262: fi
1.1.1.3 ! misho 111263: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 111264: fi
111265:
1.1.1.3 ! misho 111266:
1.1.1.2 misho 111267: fi
1.1.1.3 ! misho 111268: { echo "$as_me:$LINENO: result: $ac_cv_crypt_SHA512" >&5
! 111269: echo "${ECHO_T}$ac_cv_crypt_SHA512" >&6; }
1.1 misho 111270:
1.1.1.3 ! misho 111271: { echo "$as_me:$LINENO: checking for SHA256 crypt" >&5
! 111272: echo $ECHO_N "checking for SHA256 crypt... $ECHO_C" >&6; }
! 111273: if test "${ac_cv_crypt_SHA256+set}" = set; then
! 111274: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 111275: else
111276:
1.1.1.3 ! misho 111277: if test "$cross_compiling" = yes; then
1.1 misho 111278:
1.1.1.2 misho 111279: ac_cv_crypt_SHA256=no
1.1 misho 111280:
1.1.1.2 misho 111281: else
1.1.1.3 ! misho 111282: cat >conftest.$ac_ext <<_ACEOF
! 111283: /* confdefs.h. */
! 111284: _ACEOF
! 111285: cat confdefs.h >>conftest.$ac_ext
! 111286: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 111287: /* end confdefs.h. */
1.1 misho 111288:
1.1.1.2 misho 111289: #if HAVE_UNISTD_H
111290: #include <unistd.h>
111291: #endif
1.1 misho 111292:
1.1.1.2 misho 111293: #if HAVE_CRYPT_H
111294: #include <crypt.h>
111295: #endif
1.1 misho 111296:
1.1.1.2 misho 111297: main() {
111298: #if HAVE_CRYPT
111299: char salt[30], answer[80];
111300: salt[0]='$'; salt[1]='5'; salt[2]='$'; salt[3]='$'; salt[4]='s'; salt[5]='a'; salt[6]='l'; salt[7]='t'; salt[8]='s'; salt[9]='t'; salt[10]='r'; salt[11]='i'; salt[12]='n'; salt[13]='g'; salt[14]='\0';
111301: strcat(salt,"");
111302: strcpy(answer, salt);
111303: strcpy(&answer[29], "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5");
111304: exit (strcmp((char *)crypt("foo",salt),answer));
111305: #else
111306: exit(0);
111307: #endif
111308: }
111309: _ACEOF
1.1.1.3 ! misho 111310: rm -f conftest$ac_exeext
! 111311: if { (ac_try="$ac_link"
! 111312: case "(($ac_try" in
! 111313: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111314: *) ac_try_echo=$ac_try;;
! 111315: esac
! 111316: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111317: (eval "$ac_link") 2>&5
! 111318: ac_status=$?
! 111319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111320: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 111321: { (case "(($ac_try" in
! 111322: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111323: *) ac_try_echo=$ac_try;;
! 111324: esac
! 111325: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111326: (eval "$ac_try") 2>&5
! 111327: ac_status=$?
! 111328: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111329: (exit $ac_status); }; }; then
1.1 misho 111330:
1.1.1.2 misho 111331: ac_cv_crypt_SHA256=yes
1.1 misho 111332:
1.1.1.2 misho 111333: else
1.1.1.3 ! misho 111334: echo "$as_me: program exited with status $ac_status" >&5
! 111335: echo "$as_me: failed program was:" >&5
! 111336: sed 's/^/| /' conftest.$ac_ext >&5
! 111337:
! 111338: ( exit $ac_status )
1.1 misho 111339:
1.1.1.2 misho 111340: ac_cv_crypt_SHA256=no
1.1 misho 111341:
1.1.1.2 misho 111342: fi
1.1.1.3 ! misho 111343: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 111344: fi
1.1 misho 111345:
1.1.1.3 ! misho 111346:
1.1.1.2 misho 111347: fi
1.1.1.3 ! misho 111348: { echo "$as_me:$LINENO: result: $ac_cv_crypt_SHA256" >&5
! 111349: echo "${ECHO_T}$ac_cv_crypt_SHA256" >&6; }
1.1 misho 111350:
111351:
1.1.1.2 misho 111352: if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then
1.1 misho 111353:
1.1.1.3 ! misho 111354: { echo "$as_me:$LINENO: checking whether the compiler supports __alignof__" >&5
! 111355: echo $ECHO_N "checking whether the compiler supports __alignof__... $ECHO_C" >&6; }
! 111356: if test "${ac_cv_alignof_exists+set}" = set; then
! 111357: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 111358: else
1.1.1.2 misho 111359:
1.1.1.3 ! misho 111360: cat >conftest.$ac_ext <<_ACEOF
! 111361: /* confdefs.h. */
! 111362: _ACEOF
! 111363: cat confdefs.h >>conftest.$ac_ext
! 111364: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 111365: /* end confdefs.h. */
111366:
1.1.1.2 misho 111367:
1.1 misho 111368: int
111369: main ()
111370: {
1.1.1.2 misho 111371:
111372: int align = __alignof__(int);
111373:
1.1 misho 111374: ;
111375: return 0;
111376: }
111377: _ACEOF
1.1.1.3 ! misho 111378: rm -f conftest.$ac_objext
! 111379: if { (ac_try="$ac_compile"
! 111380: case "(($ac_try" in
! 111381: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111382: *) ac_try_echo=$ac_try;;
! 111383: esac
! 111384: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111385: (eval "$ac_compile") 2>conftest.er1
! 111386: ac_status=$?
! 111387: grep -v '^ *+' conftest.er1 >conftest.err
! 111388: rm -f conftest.er1
! 111389: cat conftest.err >&5
! 111390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111391: (exit $ac_status); } && {
! 111392: test -z "$ac_c_werror_flag" ||
! 111393: test ! -s conftest.err
! 111394: } && test -s conftest.$ac_objext; then
1.1 misho 111395:
1.1.1.2 misho 111396: ac_cv_alignof_exists=yes
1.1 misho 111397:
111398: else
1.1.1.3 ! misho 111399: echo "$as_me: failed program was:" >&5
! 111400: sed 's/^/| /' conftest.$ac_ext >&5
! 111401:
1.1 misho 111402:
1.1.1.2 misho 111403: ac_cv_alignof_exists=no
1.1 misho 111404:
111405: fi
1.1.1.3 ! misho 111406:
1.1.1.2 misho 111407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
111408: fi
1.1.1.3 ! misho 111409: { echo "$as_me:$LINENO: result: $ac_cv_alignof_exists" >&5
! 111410: echo "${ECHO_T}$ac_cv_alignof_exists" >&6; }
1.1.1.2 misho 111411: if test "$ac_cv_alignof_exists" = "yes"; then
1.1 misho 111412:
1.1.1.3 ! misho 111413: cat >>confdefs.h <<\_ACEOF
! 111414: #define HAVE_ALIGNOF 1
! 111415: _ACEOF
1.1 misho 111416:
111417: fi
111418:
1.1.1.3 ! misho 111419: { echo "$as_me:$LINENO: checking whether the compiler supports aligned attribute" >&5
! 111420: echo $ECHO_N "checking whether the compiler supports aligned attribute... $ECHO_C" >&6; }
! 111421: if test "${ac_cv_attribute_aligned+set}" = set; then
! 111422: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 111423: else
111424:
1.1.1.3 ! misho 111425: cat >conftest.$ac_ext <<_ACEOF
! 111426: /* confdefs.h. */
! 111427: _ACEOF
! 111428: cat confdefs.h >>conftest.$ac_ext
! 111429: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 111430: /* end confdefs.h. */
1.1 misho 111431:
111432:
1.1.1.2 misho 111433: int
111434: main ()
111435: {
1.1 misho 111436:
1.1.1.2 misho 111437: unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int))));
1.1 misho 111438:
1.1.1.2 misho 111439: ;
111440: return 0;
111441: }
1.1 misho 111442: _ACEOF
1.1.1.3 ! misho 111443: rm -f conftest.$ac_objext
! 111444: if { (ac_try="$ac_compile"
! 111445: case "(($ac_try" in
! 111446: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111447: *) ac_try_echo=$ac_try;;
! 111448: esac
! 111449: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111450: (eval "$ac_compile") 2>conftest.er1
! 111451: ac_status=$?
! 111452: grep -v '^ *+' conftest.er1 >conftest.err
! 111453: rm -f conftest.er1
! 111454: cat conftest.err >&5
! 111455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111456: (exit $ac_status); } && {
! 111457: test -z "$ac_c_werror_flag" ||
! 111458: test ! -s conftest.err
! 111459: } && test -s conftest.$ac_objext; then
1.1 misho 111460:
1.1.1.2 misho 111461: ac_cv_attribute_aligned=yes
1.1 misho 111462:
1.1.1.2 misho 111463: else
1.1.1.3 ! misho 111464: echo "$as_me: failed program was:" >&5
! 111465: sed 's/^/| /' conftest.$ac_ext >&5
! 111466:
1.1 misho 111467:
1.1.1.2 misho 111468: ac_cv_attribute_aligned=no
1.1 misho 111469:
1.1.1.2 misho 111470: fi
1.1.1.3 ! misho 111471:
1.1.1.2 misho 111472: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
111473: fi
1.1.1.3 ! misho 111474: { echo "$as_me:$LINENO: result: $ac_cv_attribute_aligned" >&5
! 111475: echo "${ECHO_T}$ac_cv_attribute_aligned" >&6; }
1.1.1.2 misho 111476: if test "$ac_cv_attribute_aligned" = "yes"; then
1.1 misho 111477:
1.1.1.3 ! misho 111478: cat >>confdefs.h <<\_ACEOF
! 111479: #define HAVE_ATTRIBUTE_ALIGNED 1
! 111480: _ACEOF
1.1 misho 111481:
1.1.1.2 misho 111482: fi
1.1 misho 111483:
111484:
111485:
1.1.1.2 misho 111486: cat >>confdefs.h <<_ACEOF
111487: #define PHP_USE_PHP_CRYPT_R 1
111488: _ACEOF
1.1 misho 111489:
111490:
1.1.1.2 misho 111491: cat >>confdefs.h <<_ACEOF
111492: #define PHP_STD_DES_CRYPT 1
111493: _ACEOF
1.1 misho 111494:
111495:
1.1.1.2 misho 111496: cat >>confdefs.h <<_ACEOF
111497: #define PHP_BLOWFISH_CRYPT 1
111498: _ACEOF
1.1 misho 111499:
111500:
1.1.1.2 misho 111501: cat >>confdefs.h <<_ACEOF
111502: #define PHP_EXT_DES_CRYPT 1
111503: _ACEOF
1.1 misho 111504:
111505:
1.1.1.2 misho 111506: cat >>confdefs.h <<_ACEOF
111507: #define PHP_MD5_CRYPT 1
111508: _ACEOF
1.1 misho 111509:
111510:
1.1.1.2 misho 111511: cat >>confdefs.h <<_ACEOF
111512: #define PHP_SHA512_CRYPT 1
111513: _ACEOF
1.1 misho 111514:
1.1.1.2 misho 111515:
111516: cat >>confdefs.h <<_ACEOF
111517: #define PHP_SHA256_CRYPT 1
111518: _ACEOF
1.1 misho 111519:
111520:
111521:
111522:
1.1.1.2 misho 111523: case ext/standard in
1.1 misho 111524: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 misho 111525: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
111526: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1 misho 111527: esac
111528:
111529:
111530:
111531: b_c_pre=$php_c_pre
111532: b_cxx_pre=$php_cxx_pre
111533: b_c_meta=$php_c_meta
111534: b_cxx_meta=$php_cxx_meta
111535: b_c_post=$php_c_post
111536: b_cxx_post=$php_cxx_post
111537: b_lo=$php_lo
111538:
111539:
111540: old_IFS=$IFS
1.1.1.2 misho 111541: for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do
1.1 misho 111542:
111543: IFS=.
111544: set $ac_src
111545: ac_obj=$1
111546: IFS=$old_IFS
111547:
1.1.1.2 misho 111548: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 111549:
111550: case $ac_src in
1.1.1.2 misho 111551: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111552: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111553: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111554: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
1.1 misho 111555: esac
111556:
111557: cat >>Makefile.objects<<EOF
111558: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
111559: $ac_comp
111560: EOF
111561: done
111562:
111563:
1.1.1.2 misho 111564: else
111565: if test "$ac_cv_crypt_des" = "yes"; then
111566: ac_result=1
111567: ac_crypt_des=1
111568: else
111569: ac_result=0
111570: ac_crypt_des=0
1.1 misho 111571: fi
111572:
1.1.1.2 misho 111573: cat >>confdefs.h <<_ACEOF
111574: #define PHP_STD_DES_CRYPT $ac_result
111575: _ACEOF
1.1 misho 111576:
111577:
1.1.1.2 misho 111578: if test "$ac_cv_crypt_blowfish" = "yes"; then
111579: ac_result=1
111580: ac_crypt_blowfish=1
111581: else
111582: ac_result=0
111583: ac_crypt_blowfish=0
1.1 misho 111584: fi
111585:
1.1.1.2 misho 111586: cat >>confdefs.h <<_ACEOF
111587: #define PHP_BLOWFISH_CRYPT $ac_result
111588: _ACEOF
1.1 misho 111589:
111590:
1.1.1.2 misho 111591: if test "$ac_cv_crypt_ext_des" = "yes"; then
111592: ac_result=1
111593: ac_crypt_edes=1
111594: else
111595: ac_result=0
111596: ac_crypt_edes=0
1.1 misho 111597: fi
111598:
1.1.1.2 misho 111599: cat >>confdefs.h <<_ACEOF
111600: #define PHP_EXT_DES_CRYPT $ac_result
111601: _ACEOF
1.1 misho 111602:
111603:
1.1.1.2 misho 111604: if test "$ac_cv_crypt_md5" = "yes"; then
111605: ac_result=1
111606: ac_crypt_md5=1
111607: else
111608: ac_result=0
111609: ac_crypt_md5=0
1.1 misho 111610: fi
111611:
111612: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 111613: #define PHP_MD5_CRYPT $ac_result
1.1 misho 111614: _ACEOF
111615:
111616:
1.1.1.2 misho 111617: if test "$ac_cv_crypt_sha512" = "yes"; then
111618: ac_result=1
111619: ac_crypt_sha512=1
111620: else
111621: ac_result=0
111622: ac_crypt_sha512=0
111623: fi
1.1 misho 111624:
1.1.1.2 misho 111625: cat >>confdefs.h <<_ACEOF
111626: #define PHP_SHA512_CRYPT $ac_result
111627: _ACEOF
1.1 misho 111628:
111629:
1.1.1.2 misho 111630: if test "$ac_cv_crypt_sha256" = "yes"; then
111631: ac_result=1
111632: ac_crypt_sha256=1
111633: else
111634: ac_result=0
111635: ac_crypt_sha256=0
111636: fi
1.1 misho 111637:
1.1.1.2 misho 111638: cat >>confdefs.h <<_ACEOF
111639: #define PHP_SHA256_CRYPT $ac_result
111640: _ACEOF
1.1 misho 111641:
111642:
111643:
1.1.1.2 misho 111644: cat >>confdefs.h <<_ACEOF
111645: #define PHP_USE_PHP_CRYPT_R 0
111646: _ACEOF
1.1 misho 111647:
1.1.1.2 misho 111648: fi
1.1 misho 111649:
1.1.1.3 ! misho 111650:
! 111651:
! 111652:
! 111653:
! 111654:
! 111655:
! 111656:
! 111657:
! 111658:
! 111659:
! 111660:
! 111661:
! 111662:
! 111663:
! 111664:
! 111665: for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy
! 111666: do
! 111667: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 111668: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 111669: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 111670: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 111671: echo $ECHO_N "(cached) $ECHO_C" >&6
! 111672: else
! 111673: cat >conftest.$ac_ext <<_ACEOF
! 111674: /* confdefs.h. */
! 111675: _ACEOF
! 111676: cat confdefs.h >>conftest.$ac_ext
! 111677: cat >>conftest.$ac_ext <<_ACEOF
! 111678: /* end confdefs.h. */
! 111679: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 111680: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 111681: #define $ac_func innocuous_$ac_func
! 111682:
! 111683: /* System header to define __stub macros and hopefully few prototypes,
! 111684: which can conflict with char $ac_func (); below.
! 111685: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 111686: <limits.h> exists even on freestanding compilers. */
! 111687:
! 111688: #ifdef __STDC__
! 111689: # include <limits.h>
! 111690: #else
! 111691: # include <assert.h>
! 111692: #endif
! 111693:
! 111694: #undef $ac_func
! 111695:
! 111696: /* Override any GCC internal prototype to avoid an error.
! 111697: Use char because int might match the return type of a GCC
! 111698: builtin and then its argument prototype would still apply. */
! 111699: #ifdef __cplusplus
! 111700: extern "C"
! 111701: #endif
! 111702: char $ac_func ();
! 111703: /* The GNU C library defines this for functions which it implements
! 111704: to always fail with ENOSYS. Some functions are actually named
! 111705: something starting with __ and the normal name is an alias. */
! 111706: #if defined __stub_$ac_func || defined __stub___$ac_func
! 111707: choke me
! 111708: #endif
! 111709:
! 111710: int
! 111711: main ()
! 111712: {
! 111713: return $ac_func ();
! 111714: ;
! 111715: return 0;
! 111716: }
! 111717: _ACEOF
! 111718: rm -f conftest.$ac_objext conftest$ac_exeext
! 111719: if { (ac_try="$ac_link"
! 111720: case "(($ac_try" in
! 111721: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111722: *) ac_try_echo=$ac_try;;
! 111723: esac
! 111724: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111725: (eval "$ac_link") 2>conftest.er1
! 111726: ac_status=$?
! 111727: grep -v '^ *+' conftest.er1 >conftest.err
! 111728: rm -f conftest.er1
! 111729: cat conftest.err >&5
! 111730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111731: (exit $ac_status); } && {
! 111732: test -z "$ac_c_werror_flag" ||
! 111733: test ! -s conftest.err
! 111734: } && test -s conftest$ac_exeext &&
! 111735: $as_test_x conftest$ac_exeext; then
! 111736: eval "$as_ac_var=yes"
! 111737: else
! 111738: echo "$as_me: failed program was:" >&5
! 111739: sed 's/^/| /' conftest.$ac_ext >&5
! 111740:
! 111741: eval "$as_ac_var=no"
! 111742: fi
! 111743:
! 111744: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 111745: conftest$ac_exeext conftest.$ac_ext
! 111746: fi
! 111747: ac_res=`eval echo '${'$as_ac_var'}'`
! 111748: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 111749: echo "${ECHO_T}$ac_res" >&6; }
! 111750: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 111751: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 111752: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 111753: _ACEOF
111754:
111755: fi
111756: done
111757:
1.1.1.3 ! misho 111758: { echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
! 111759: echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6; }
! 111760: if test "${ac_cv_func_fnmatch_works+set}" = set; then
! 111761: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 misho 111762: else
111763: # Some versions of Solaris, SCO, and the GNU C Library
111764: # have a broken or incompatible fnmatch.
111765: # So we run a test program. If we are cross-compiling, take no chance.
111766: # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
1.1.1.3 ! misho 111767: if test "$cross_compiling" = yes; then
1.1.1.2 misho 111768: ac_cv_func_fnmatch_works=cross
111769: else
1.1.1.3 ! misho 111770: cat >conftest.$ac_ext <<_ACEOF
! 111771: /* confdefs.h. */
! 111772: _ACEOF
! 111773: cat confdefs.h >>conftest.$ac_ext
! 111774: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.2 misho 111775: /* end confdefs.h. */
111776: #include <fnmatch.h>
111777: # define y(a, b, c) (fnmatch (a, b, c) == 0)
111778: # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
111779:
111780: int
111781: main ()
111782: {
111783: return
111784: (!(y ("a*", "abc", 0)
111785: && n ("d*/*1", "d/s/1", FNM_PATHNAME)
111786: && y ("a\\\\bc", "abc", 0)
111787: && n ("a\\\\bc", "abc", FNM_NOESCAPE)
111788: && y ("*x", ".x", 0)
111789: && n ("*x", ".x", FNM_PERIOD)
111790: && 1));
111791: ;
111792: return 0;
111793: }
1.1 misho 111794: _ACEOF
1.1.1.3 ! misho 111795: rm -f conftest$ac_exeext
! 111796: if { (ac_try="$ac_link"
! 111797: case "(($ac_try" in
! 111798: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111799: *) ac_try_echo=$ac_try;;
! 111800: esac
! 111801: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111802: (eval "$ac_link") 2>&5
! 111803: ac_status=$?
! 111804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111805: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 111806: { (case "(($ac_try" in
! 111807: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111808: *) ac_try_echo=$ac_try;;
! 111809: esac
! 111810: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111811: (eval "$ac_try") 2>&5
! 111812: ac_status=$?
! 111813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111814: (exit $ac_status); }; }; then
1.1.1.2 misho 111815: ac_cv_func_fnmatch_works=yes
111816: else
1.1.1.3 ! misho 111817: echo "$as_me: program exited with status $ac_status" >&5
! 111818: echo "$as_me: failed program was:" >&5
! 111819: sed 's/^/| /' conftest.$ac_ext >&5
! 111820:
! 111821: ( exit $ac_status )
! 111822: ac_cv_func_fnmatch_works=no
1.1.1.2 misho 111823: fi
1.1.1.3 ! misho 111824: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 111825: fi
1.1 misho 111826:
1.1.1.3 ! misho 111827:
1.1 misho 111828: fi
1.1.1.3 ! misho 111829: { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
! 111830: echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6; }
! 111831: if test $ac_cv_func_fnmatch_works = yes; then
1.1 misho 111832:
1.1.1.3 ! misho 111833: cat >>confdefs.h <<\_ACEOF
! 111834: #define HAVE_FNMATCH 1
! 111835: _ACEOF
1.1 misho 111836:
111837: fi
111838:
111839:
111840:
1.1.1.3 ! misho 111841:
! 111842:
! 111843:
1.1 misho 111844: for ac_func in fork CreateProcess
1.1.1.3 ! misho 111845: do
! 111846: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 111847: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 111848: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 111849: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 111850: echo $ECHO_N "(cached) $ECHO_C" >&6
! 111851: else
! 111852: cat >conftest.$ac_ext <<_ACEOF
! 111853: /* confdefs.h. */
! 111854: _ACEOF
! 111855: cat confdefs.h >>conftest.$ac_ext
! 111856: cat >>conftest.$ac_ext <<_ACEOF
! 111857: /* end confdefs.h. */
! 111858: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 111859: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 111860: #define $ac_func innocuous_$ac_func
! 111861:
! 111862: /* System header to define __stub macros and hopefully few prototypes,
! 111863: which can conflict with char $ac_func (); below.
! 111864: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 111865: <limits.h> exists even on freestanding compilers. */
! 111866:
! 111867: #ifdef __STDC__
! 111868: # include <limits.h>
! 111869: #else
! 111870: # include <assert.h>
! 111871: #endif
! 111872:
! 111873: #undef $ac_func
! 111874:
! 111875: /* Override any GCC internal prototype to avoid an error.
! 111876: Use char because int might match the return type of a GCC
! 111877: builtin and then its argument prototype would still apply. */
! 111878: #ifdef __cplusplus
! 111879: extern "C"
! 111880: #endif
! 111881: char $ac_func ();
! 111882: /* The GNU C library defines this for functions which it implements
! 111883: to always fail with ENOSYS. Some functions are actually named
! 111884: something starting with __ and the normal name is an alias. */
! 111885: #if defined __stub_$ac_func || defined __stub___$ac_func
! 111886: choke me
! 111887: #endif
! 111888:
! 111889: int
! 111890: main ()
! 111891: {
! 111892: return $ac_func ();
! 111893: ;
! 111894: return 0;
! 111895: }
! 111896: _ACEOF
! 111897: rm -f conftest.$ac_objext conftest$ac_exeext
! 111898: if { (ac_try="$ac_link"
! 111899: case "(($ac_try" in
! 111900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 111901: *) ac_try_echo=$ac_try;;
! 111902: esac
! 111903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 111904: (eval "$ac_link") 2>conftest.er1
! 111905: ac_status=$?
! 111906: grep -v '^ *+' conftest.er1 >conftest.err
! 111907: rm -f conftest.er1
! 111908: cat conftest.err >&5
! 111909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 111910: (exit $ac_status); } && {
! 111911: test -z "$ac_c_werror_flag" ||
! 111912: test ! -s conftest.err
! 111913: } && test -s conftest$ac_exeext &&
! 111914: $as_test_x conftest$ac_exeext; then
! 111915: eval "$as_ac_var=yes"
! 111916: else
! 111917: echo "$as_me: failed program was:" >&5
! 111918: sed 's/^/| /' conftest.$ac_ext >&5
! 111919:
! 111920: eval "$as_ac_var=no"
! 111921: fi
! 111922:
! 111923: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 111924: conftest$ac_exeext conftest.$ac_ext
! 111925: fi
! 111926: ac_res=`eval echo '${'$as_ac_var'}'`
! 111927: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 111928: echo "${ECHO_T}$ac_res" >&6; }
! 111929: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 111930: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 111931: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 111932: _ACEOF
111933:
111934: php_can_support_proc_open=yes
111935: break
111936:
111937: else
111938:
111939: php_can_support_proc_open=no
111940:
111941: fi
111942: done
111943:
1.1.1.3 ! misho 111944: { echo "$as_me:$LINENO: checking if your OS can spawn processes with inherited handles" >&5
! 111945: echo $ECHO_N "checking if your OS can spawn processes with inherited handles... $ECHO_C" >&6; }
1.1 misho 111946: if test "$php_can_support_proc_open" = "yes"; then
1.1.1.3 ! misho 111947: { echo "$as_me:$LINENO: result: yes" >&5
! 111948: echo "${ECHO_T}yes" >&6; }
1.1 misho 111949:
1.1.1.3 ! misho 111950: cat >>confdefs.h <<\_ACEOF
! 111951: #define PHP_CAN_SUPPORT_PROC_OPEN 1
! 111952: _ACEOF
1.1 misho 111953:
111954: else
1.1.1.3 ! misho 111955: { echo "$as_me:$LINENO: result: no" >&5
! 111956: echo "${ECHO_T}no" >&6; }
1.1 misho 111957: fi
111958:
111959: if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
111960:
1.1.1.3 ! misho 111961: cat >>confdefs.h <<\_ACEOF
! 111962: #define ENABLE_CHROOT_FUNC 1
! 111963: _ACEOF
1.1 misho 111964:
111965: fi
111966:
111967:
111968: unset ac_cv_func_res_nsearch
111969: unset ac_cv_func___res_nsearch
111970: unset found
111971:
1.1.1.3 ! misho 111972: { echo "$as_me:$LINENO: checking for res_nsearch" >&5
! 111973: echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6; }
! 111974: if test "${ac_cv_func_res_nsearch+set}" = set; then
! 111975: echo $ECHO_N "(cached) $ECHO_C" >&6
! 111976: else
! 111977: cat >conftest.$ac_ext <<_ACEOF
! 111978: /* confdefs.h. */
! 111979: _ACEOF
! 111980: cat confdefs.h >>conftest.$ac_ext
! 111981: cat >>conftest.$ac_ext <<_ACEOF
! 111982: /* end confdefs.h. */
! 111983: /* Define res_nsearch to an innocuous variant, in case <limits.h> declares res_nsearch.
! 111984: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 111985: #define res_nsearch innocuous_res_nsearch
! 111986:
! 111987: /* System header to define __stub macros and hopefully few prototypes,
! 111988: which can conflict with char res_nsearch (); below.
! 111989: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 111990: <limits.h> exists even on freestanding compilers. */
! 111991:
! 111992: #ifdef __STDC__
! 111993: # include <limits.h>
! 111994: #else
! 111995: # include <assert.h>
! 111996: #endif
! 111997:
! 111998: #undef res_nsearch
! 111999:
! 112000: /* Override any GCC internal prototype to avoid an error.
! 112001: Use char because int might match the return type of a GCC
! 112002: builtin and then its argument prototype would still apply. */
! 112003: #ifdef __cplusplus
! 112004: extern "C"
! 112005: #endif
! 112006: char res_nsearch ();
! 112007: /* The GNU C library defines this for functions which it implements
! 112008: to always fail with ENOSYS. Some functions are actually named
! 112009: something starting with __ and the normal name is an alias. */
! 112010: #if defined __stub_res_nsearch || defined __stub___res_nsearch
! 112011: choke me
! 112012: #endif
! 112013:
! 112014: int
! 112015: main ()
! 112016: {
! 112017: return res_nsearch ();
! 112018: ;
! 112019: return 0;
! 112020: }
! 112021: _ACEOF
! 112022: rm -f conftest.$ac_objext conftest$ac_exeext
! 112023: if { (ac_try="$ac_link"
! 112024: case "(($ac_try" in
! 112025: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112026: *) ac_try_echo=$ac_try;;
! 112027: esac
! 112028: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112029: (eval "$ac_link") 2>conftest.er1
! 112030: ac_status=$?
! 112031: grep -v '^ *+' conftest.er1 >conftest.err
! 112032: rm -f conftest.er1
! 112033: cat conftest.err >&5
! 112034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112035: (exit $ac_status); } && {
! 112036: test -z "$ac_c_werror_flag" ||
! 112037: test ! -s conftest.err
! 112038: } && test -s conftest$ac_exeext &&
! 112039: $as_test_x conftest$ac_exeext; then
! 112040: ac_cv_func_res_nsearch=yes
! 112041: else
! 112042: echo "$as_me: failed program was:" >&5
! 112043: sed 's/^/| /' conftest.$ac_ext >&5
! 112044:
! 112045: ac_cv_func_res_nsearch=no
! 112046: fi
! 112047:
! 112048: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112049: conftest$ac_exeext conftest.$ac_ext
! 112050: fi
! 112051: { echo "$as_me:$LINENO: result: $ac_cv_func_res_nsearch" >&5
! 112052: echo "${ECHO_T}$ac_cv_func_res_nsearch" >&6; }
! 112053: if test $ac_cv_func_res_nsearch = yes; then
1.1 misho 112054: found=yes
112055: else
1.1.1.3 ! misho 112056: { echo "$as_me:$LINENO: checking for __res_nsearch" >&5
! 112057: echo $ECHO_N "checking for __res_nsearch... $ECHO_C" >&6; }
! 112058: if test "${ac_cv_func___res_nsearch+set}" = set; then
! 112059: echo $ECHO_N "(cached) $ECHO_C" >&6
! 112060: else
! 112061: cat >conftest.$ac_ext <<_ACEOF
! 112062: /* confdefs.h. */
! 112063: _ACEOF
! 112064: cat confdefs.h >>conftest.$ac_ext
! 112065: cat >>conftest.$ac_ext <<_ACEOF
! 112066: /* end confdefs.h. */
! 112067: /* Define __res_nsearch to an innocuous variant, in case <limits.h> declares __res_nsearch.
! 112068: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 112069: #define __res_nsearch innocuous___res_nsearch
! 112070:
! 112071: /* System header to define __stub macros and hopefully few prototypes,
! 112072: which can conflict with char __res_nsearch (); below.
! 112073: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 112074: <limits.h> exists even on freestanding compilers. */
! 112075:
! 112076: #ifdef __STDC__
! 112077: # include <limits.h>
! 112078: #else
! 112079: # include <assert.h>
! 112080: #endif
! 112081:
! 112082: #undef __res_nsearch
! 112083:
! 112084: /* Override any GCC internal prototype to avoid an error.
! 112085: Use char because int might match the return type of a GCC
! 112086: builtin and then its argument prototype would still apply. */
! 112087: #ifdef __cplusplus
! 112088: extern "C"
! 112089: #endif
! 112090: char __res_nsearch ();
! 112091: /* The GNU C library defines this for functions which it implements
! 112092: to always fail with ENOSYS. Some functions are actually named
! 112093: something starting with __ and the normal name is an alias. */
! 112094: #if defined __stub___res_nsearch || defined __stub_____res_nsearch
! 112095: choke me
! 112096: #endif
! 112097:
! 112098: int
! 112099: main ()
! 112100: {
! 112101: return __res_nsearch ();
! 112102: ;
! 112103: return 0;
! 112104: }
! 112105: _ACEOF
! 112106: rm -f conftest.$ac_objext conftest$ac_exeext
! 112107: if { (ac_try="$ac_link"
! 112108: case "(($ac_try" in
! 112109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112110: *) ac_try_echo=$ac_try;;
! 112111: esac
! 112112: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112113: (eval "$ac_link") 2>conftest.er1
! 112114: ac_status=$?
! 112115: grep -v '^ *+' conftest.er1 >conftest.err
! 112116: rm -f conftest.er1
! 112117: cat conftest.err >&5
! 112118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112119: (exit $ac_status); } && {
! 112120: test -z "$ac_c_werror_flag" ||
! 112121: test ! -s conftest.err
! 112122: } && test -s conftest$ac_exeext &&
! 112123: $as_test_x conftest$ac_exeext; then
! 112124: ac_cv_func___res_nsearch=yes
! 112125: else
! 112126: echo "$as_me: failed program was:" >&5
! 112127: sed 's/^/| /' conftest.$ac_ext >&5
! 112128:
! 112129: ac_cv_func___res_nsearch=no
! 112130: fi
! 112131:
! 112132: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112133: conftest$ac_exeext conftest.$ac_ext
! 112134: fi
! 112135: { echo "$as_me:$LINENO: result: $ac_cv_func___res_nsearch" >&5
! 112136: echo "${ECHO_T}$ac_cv_func___res_nsearch" >&6; }
! 112137: if test $ac_cv_func___res_nsearch = yes; then
1.1 misho 112138: found=yes
112139: else
112140: found=no
112141: fi
112142:
112143: fi
112144:
112145:
112146: case $found in
112147: yes)
112148:
1.1.1.3 ! misho 112149: cat >>confdefs.h <<\_ACEOF
! 112150: #define HAVE_RES_NSEARCH 1
! 112151: _ACEOF
1.1 misho 112152:
112153: ac_cv_func_res_nsearch=yes
112154: ;;
112155:
112156: *)
112157:
112158: unset ac_cv_lib_resolv_res_nsearch
112159: unset ac_cv_lib_resolv___res_nsearch
112160: unset found
1.1.1.3 ! misho 112161: { echo "$as_me:$LINENO: checking for res_nsearch in -lresolv" >&5
! 112162: echo $ECHO_N "checking for res_nsearch in -lresolv... $ECHO_C" >&6; }
! 112163: if test "${ac_cv_lib_resolv_res_nsearch+set}" = set; then
! 112164: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 112165: else
112166: ac_check_lib_save_LIBS=$LIBS
112167: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 112168: cat >conftest.$ac_ext <<_ACEOF
! 112169: /* confdefs.h. */
! 112170: _ACEOF
! 112171: cat confdefs.h >>conftest.$ac_ext
! 112172: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112173: /* end confdefs.h. */
112174:
112175: /* Override any GCC internal prototype to avoid an error.
112176: Use char because int might match the return type of a GCC
112177: builtin and then its argument prototype would still apply. */
112178: #ifdef __cplusplus
112179: extern "C"
112180: #endif
112181: char res_nsearch ();
112182: int
112183: main ()
112184: {
112185: return res_nsearch ();
112186: ;
112187: return 0;
112188: }
112189: _ACEOF
1.1.1.3 ! misho 112190: rm -f conftest.$ac_objext conftest$ac_exeext
! 112191: if { (ac_try="$ac_link"
! 112192: case "(($ac_try" in
! 112193: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112194: *) ac_try_echo=$ac_try;;
! 112195: esac
! 112196: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112197: (eval "$ac_link") 2>conftest.er1
! 112198: ac_status=$?
! 112199: grep -v '^ *+' conftest.er1 >conftest.err
! 112200: rm -f conftest.er1
! 112201: cat conftest.err >&5
! 112202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112203: (exit $ac_status); } && {
! 112204: test -z "$ac_c_werror_flag" ||
! 112205: test ! -s conftest.err
! 112206: } && test -s conftest$ac_exeext &&
! 112207: $as_test_x conftest$ac_exeext; then
1.1 misho 112208: ac_cv_lib_resolv_res_nsearch=yes
112209: else
1.1.1.3 ! misho 112210: echo "$as_me: failed program was:" >&5
! 112211: sed 's/^/| /' conftest.$ac_ext >&5
! 112212:
! 112213: ac_cv_lib_resolv_res_nsearch=no
1.1 misho 112214: fi
1.1.1.3 ! misho 112215:
! 112216: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112217: conftest$ac_exeext conftest.$ac_ext
1.1 misho 112218: LIBS=$ac_check_lib_save_LIBS
112219: fi
1.1.1.3 ! misho 112220: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_nsearch" >&5
! 112221: echo "${ECHO_T}$ac_cv_lib_resolv_res_nsearch" >&6; }
! 112222: if test $ac_cv_lib_resolv_res_nsearch = yes; then
1.1 misho 112223: found=yes
112224: else
112225:
1.1.1.3 ! misho 112226: { echo "$as_me:$LINENO: checking for __res_nsearch in -lresolv" >&5
! 112227: echo $ECHO_N "checking for __res_nsearch in -lresolv... $ECHO_C" >&6; }
! 112228: if test "${ac_cv_lib_resolv___res_nsearch+set}" = set; then
! 112229: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 112230: else
112231: ac_check_lib_save_LIBS=$LIBS
112232: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 112233: cat >conftest.$ac_ext <<_ACEOF
! 112234: /* confdefs.h. */
! 112235: _ACEOF
! 112236: cat confdefs.h >>conftest.$ac_ext
! 112237: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112238: /* end confdefs.h. */
112239:
112240: /* Override any GCC internal prototype to avoid an error.
112241: Use char because int might match the return type of a GCC
112242: builtin and then its argument prototype would still apply. */
112243: #ifdef __cplusplus
112244: extern "C"
112245: #endif
112246: char __res_nsearch ();
112247: int
112248: main ()
112249: {
112250: return __res_nsearch ();
112251: ;
112252: return 0;
112253: }
112254: _ACEOF
1.1.1.3 ! misho 112255: rm -f conftest.$ac_objext conftest$ac_exeext
! 112256: if { (ac_try="$ac_link"
! 112257: case "(($ac_try" in
! 112258: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112259: *) ac_try_echo=$ac_try;;
! 112260: esac
! 112261: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112262: (eval "$ac_link") 2>conftest.er1
! 112263: ac_status=$?
! 112264: grep -v '^ *+' conftest.er1 >conftest.err
! 112265: rm -f conftest.er1
! 112266: cat conftest.err >&5
! 112267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112268: (exit $ac_status); } && {
! 112269: test -z "$ac_c_werror_flag" ||
! 112270: test ! -s conftest.err
! 112271: } && test -s conftest$ac_exeext &&
! 112272: $as_test_x conftest$ac_exeext; then
1.1 misho 112273: ac_cv_lib_resolv___res_nsearch=yes
112274: else
1.1.1.3 ! misho 112275: echo "$as_me: failed program was:" >&5
! 112276: sed 's/^/| /' conftest.$ac_ext >&5
! 112277:
! 112278: ac_cv_lib_resolv___res_nsearch=no
1.1 misho 112279: fi
1.1.1.3 ! misho 112280:
! 112281: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112282: conftest$ac_exeext conftest.$ac_ext
1.1 misho 112283: LIBS=$ac_check_lib_save_LIBS
112284: fi
1.1.1.3 ! misho 112285: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_nsearch" >&5
! 112286: echo "${ECHO_T}$ac_cv_lib_resolv___res_nsearch" >&6; }
! 112287: if test $ac_cv_lib_resolv___res_nsearch = yes; then
1.1 misho 112288: found=yes
112289: else
112290: found=no
112291: fi
112292:
112293:
112294: fi
112295:
112296:
112297: if test "$found" = "yes"; then
112298: ac_libs=$LIBS
112299: LIBS="$LIBS -lresolv"
1.1.1.3 ! misho 112300: if test "$cross_compiling" = yes; then
1.1 misho 112301: found=no
112302: else
1.1.1.3 ! misho 112303: cat >conftest.$ac_ext <<_ACEOF
! 112304: /* confdefs.h. */
! 112305: _ACEOF
! 112306: cat confdefs.h >>conftest.$ac_ext
! 112307: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112308: /* end confdefs.h. */
112309: main() { return (0); }
112310: _ACEOF
1.1.1.3 ! misho 112311: rm -f conftest$ac_exeext
! 112312: if { (ac_try="$ac_link"
! 112313: case "(($ac_try" in
! 112314: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112315: *) ac_try_echo=$ac_try;;
! 112316: esac
! 112317: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112318: (eval "$ac_link") 2>&5
! 112319: ac_status=$?
! 112320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112321: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 112322: { (case "(($ac_try" in
! 112323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112324: *) ac_try_echo=$ac_try;;
! 112325: esac
! 112326: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112327: (eval "$ac_try") 2>&5
! 112328: ac_status=$?
! 112329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112330: (exit $ac_status); }; }; then
1.1 misho 112331: found=yes
112332: else
1.1.1.3 ! misho 112333: echo "$as_me: program exited with status $ac_status" >&5
! 112334: echo "$as_me: failed program was:" >&5
! 112335: sed 's/^/| /' conftest.$ac_ext >&5
! 112336:
! 112337: ( exit $ac_status )
! 112338: found=no
1.1 misho 112339: fi
1.1.1.3 ! misho 112340: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 112341: fi
112342:
1.1.1.3 ! misho 112343:
1.1 misho 112344: LIBS=$ac_libs
112345: fi
112346:
112347: if test "$found" = "yes"; then
112348:
112349:
112350: case resolv in
112351: c|c_r|pthread*) ;;
112352: *)
112353: LIBS="-lresolv $LIBS"
112354: ;;
112355: esac
112356:
112357:
112358:
1.1.1.3 ! misho 112359: cat >>confdefs.h <<\_ACEOF
! 112360: #define HAVE_RES_NSEARCH 1
! 112361: _ACEOF
1.1 misho 112362:
112363:
1.1.1.3 ! misho 112364: cat >>confdefs.h <<\_ACEOF
! 112365: #define HAVE_LIBRESOLV 1
! 112366: _ACEOF
1.1 misho 112367:
112368: ac_cv_func_res_nsearch=yes
112369: else
112370:
112371:
112372: unset ac_cv_lib_bind_res_nsearch
112373: unset ac_cv_lib_bind___res_nsearch
112374: unset found
1.1.1.3 ! misho 112375: { echo "$as_me:$LINENO: checking for res_nsearch in -lbind" >&5
! 112376: echo $ECHO_N "checking for res_nsearch in -lbind... $ECHO_C" >&6; }
! 112377: if test "${ac_cv_lib_bind_res_nsearch+set}" = set; then
! 112378: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 112379: else
112380: ac_check_lib_save_LIBS=$LIBS
112381: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 112382: cat >conftest.$ac_ext <<_ACEOF
! 112383: /* confdefs.h. */
! 112384: _ACEOF
! 112385: cat confdefs.h >>conftest.$ac_ext
! 112386: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112387: /* end confdefs.h. */
112388:
112389: /* Override any GCC internal prototype to avoid an error.
112390: Use char because int might match the return type of a GCC
112391: builtin and then its argument prototype would still apply. */
112392: #ifdef __cplusplus
112393: extern "C"
112394: #endif
112395: char res_nsearch ();
112396: int
112397: main ()
112398: {
112399: return res_nsearch ();
112400: ;
112401: return 0;
112402: }
112403: _ACEOF
1.1.1.3 ! misho 112404: rm -f conftest.$ac_objext conftest$ac_exeext
! 112405: if { (ac_try="$ac_link"
! 112406: case "(($ac_try" in
! 112407: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112408: *) ac_try_echo=$ac_try;;
! 112409: esac
! 112410: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112411: (eval "$ac_link") 2>conftest.er1
! 112412: ac_status=$?
! 112413: grep -v '^ *+' conftest.er1 >conftest.err
! 112414: rm -f conftest.er1
! 112415: cat conftest.err >&5
! 112416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112417: (exit $ac_status); } && {
! 112418: test -z "$ac_c_werror_flag" ||
! 112419: test ! -s conftest.err
! 112420: } && test -s conftest$ac_exeext &&
! 112421: $as_test_x conftest$ac_exeext; then
1.1 misho 112422: ac_cv_lib_bind_res_nsearch=yes
112423: else
1.1.1.3 ! misho 112424: echo "$as_me: failed program was:" >&5
! 112425: sed 's/^/| /' conftest.$ac_ext >&5
! 112426:
! 112427: ac_cv_lib_bind_res_nsearch=no
1.1 misho 112428: fi
1.1.1.3 ! misho 112429:
! 112430: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112431: conftest$ac_exeext conftest.$ac_ext
1.1 misho 112432: LIBS=$ac_check_lib_save_LIBS
112433: fi
1.1.1.3 ! misho 112434: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_nsearch" >&5
! 112435: echo "${ECHO_T}$ac_cv_lib_bind_res_nsearch" >&6; }
! 112436: if test $ac_cv_lib_bind_res_nsearch = yes; then
1.1 misho 112437: found=yes
112438: else
112439:
1.1.1.3 ! misho 112440: { echo "$as_me:$LINENO: checking for __res_nsearch in -lbind" >&5
! 112441: echo $ECHO_N "checking for __res_nsearch in -lbind... $ECHO_C" >&6; }
! 112442: if test "${ac_cv_lib_bind___res_nsearch+set}" = set; then
! 112443: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 112444: else
112445: ac_check_lib_save_LIBS=$LIBS
112446: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 112447: cat >conftest.$ac_ext <<_ACEOF
! 112448: /* confdefs.h. */
! 112449: _ACEOF
! 112450: cat confdefs.h >>conftest.$ac_ext
! 112451: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112452: /* end confdefs.h. */
112453:
112454: /* Override any GCC internal prototype to avoid an error.
112455: Use char because int might match the return type of a GCC
112456: builtin and then its argument prototype would still apply. */
112457: #ifdef __cplusplus
112458: extern "C"
112459: #endif
112460: char __res_nsearch ();
112461: int
112462: main ()
112463: {
112464: return __res_nsearch ();
112465: ;
112466: return 0;
112467: }
112468: _ACEOF
1.1.1.3 ! misho 112469: rm -f conftest.$ac_objext conftest$ac_exeext
! 112470: if { (ac_try="$ac_link"
! 112471: case "(($ac_try" in
! 112472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112473: *) ac_try_echo=$ac_try;;
! 112474: esac
! 112475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112476: (eval "$ac_link") 2>conftest.er1
! 112477: ac_status=$?
! 112478: grep -v '^ *+' conftest.er1 >conftest.err
! 112479: rm -f conftest.er1
! 112480: cat conftest.err >&5
! 112481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112482: (exit $ac_status); } && {
! 112483: test -z "$ac_c_werror_flag" ||
! 112484: test ! -s conftest.err
! 112485: } && test -s conftest$ac_exeext &&
! 112486: $as_test_x conftest$ac_exeext; then
1.1 misho 112487: ac_cv_lib_bind___res_nsearch=yes
112488: else
1.1.1.3 ! misho 112489: echo "$as_me: failed program was:" >&5
! 112490: sed 's/^/| /' conftest.$ac_ext >&5
! 112491:
! 112492: ac_cv_lib_bind___res_nsearch=no
1.1 misho 112493: fi
1.1.1.3 ! misho 112494:
! 112495: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112496: conftest$ac_exeext conftest.$ac_ext
1.1 misho 112497: LIBS=$ac_check_lib_save_LIBS
112498: fi
1.1.1.3 ! misho 112499: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_nsearch" >&5
! 112500: echo "${ECHO_T}$ac_cv_lib_bind___res_nsearch" >&6; }
! 112501: if test $ac_cv_lib_bind___res_nsearch = yes; then
1.1 misho 112502: found=yes
112503: else
112504: found=no
112505: fi
112506:
112507:
112508: fi
112509:
112510:
112511: if test "$found" = "yes"; then
112512: ac_libs=$LIBS
112513: LIBS="$LIBS -lbind"
1.1.1.3 ! misho 112514: if test "$cross_compiling" = yes; then
1.1 misho 112515: found=no
112516: else
1.1.1.3 ! misho 112517: cat >conftest.$ac_ext <<_ACEOF
! 112518: /* confdefs.h. */
! 112519: _ACEOF
! 112520: cat confdefs.h >>conftest.$ac_ext
! 112521: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112522: /* end confdefs.h. */
112523: main() { return (0); }
112524: _ACEOF
1.1.1.3 ! misho 112525: rm -f conftest$ac_exeext
! 112526: if { (ac_try="$ac_link"
! 112527: case "(($ac_try" in
! 112528: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112529: *) ac_try_echo=$ac_try;;
! 112530: esac
! 112531: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112532: (eval "$ac_link") 2>&5
! 112533: ac_status=$?
! 112534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112535: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 112536: { (case "(($ac_try" in
! 112537: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112538: *) ac_try_echo=$ac_try;;
! 112539: esac
! 112540: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112541: (eval "$ac_try") 2>&5
! 112542: ac_status=$?
! 112543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112544: (exit $ac_status); }; }; then
1.1 misho 112545: found=yes
112546: else
1.1.1.3 ! misho 112547: echo "$as_me: program exited with status $ac_status" >&5
! 112548: echo "$as_me: failed program was:" >&5
! 112549: sed 's/^/| /' conftest.$ac_ext >&5
! 112550:
! 112551: ( exit $ac_status )
! 112552: found=no
1.1 misho 112553: fi
1.1.1.3 ! misho 112554: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 112555: fi
112556:
1.1.1.3 ! misho 112557:
1.1 misho 112558: LIBS=$ac_libs
112559: fi
112560:
112561: if test "$found" = "yes"; then
112562:
112563:
112564: case bind in
112565: c|c_r|pthread*) ;;
112566: *)
112567: LIBS="-lbind $LIBS"
112568: ;;
112569: esac
112570:
112571:
112572:
1.1.1.3 ! misho 112573: cat >>confdefs.h <<\_ACEOF
! 112574: #define HAVE_RES_NSEARCH 1
! 112575: _ACEOF
1.1 misho 112576:
112577:
1.1.1.3 ! misho 112578: cat >>confdefs.h <<\_ACEOF
! 112579: #define HAVE_LIBBIND 1
! 112580: _ACEOF
1.1 misho 112581:
112582: ac_cv_func_res_nsearch=yes
112583: else
112584:
112585:
112586: unset ac_cv_lib_socket_res_nsearch
112587: unset ac_cv_lib_socket___res_nsearch
112588: unset found
1.1.1.3 ! misho 112589: { echo "$as_me:$LINENO: checking for res_nsearch in -lsocket" >&5
! 112590: echo $ECHO_N "checking for res_nsearch in -lsocket... $ECHO_C" >&6; }
! 112591: if test "${ac_cv_lib_socket_res_nsearch+set}" = set; then
! 112592: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 112593: else
112594: ac_check_lib_save_LIBS=$LIBS
112595: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 112596: cat >conftest.$ac_ext <<_ACEOF
! 112597: /* confdefs.h. */
! 112598: _ACEOF
! 112599: cat confdefs.h >>conftest.$ac_ext
! 112600: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112601: /* end confdefs.h. */
112602:
112603: /* Override any GCC internal prototype to avoid an error.
112604: Use char because int might match the return type of a GCC
112605: builtin and then its argument prototype would still apply. */
112606: #ifdef __cplusplus
112607: extern "C"
112608: #endif
112609: char res_nsearch ();
112610: int
112611: main ()
112612: {
112613: return res_nsearch ();
112614: ;
112615: return 0;
112616: }
112617: _ACEOF
1.1.1.3 ! misho 112618: rm -f conftest.$ac_objext conftest$ac_exeext
! 112619: if { (ac_try="$ac_link"
! 112620: case "(($ac_try" in
! 112621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112622: *) ac_try_echo=$ac_try;;
! 112623: esac
! 112624: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112625: (eval "$ac_link") 2>conftest.er1
! 112626: ac_status=$?
! 112627: grep -v '^ *+' conftest.er1 >conftest.err
! 112628: rm -f conftest.er1
! 112629: cat conftest.err >&5
! 112630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112631: (exit $ac_status); } && {
! 112632: test -z "$ac_c_werror_flag" ||
! 112633: test ! -s conftest.err
! 112634: } && test -s conftest$ac_exeext &&
! 112635: $as_test_x conftest$ac_exeext; then
1.1 misho 112636: ac_cv_lib_socket_res_nsearch=yes
112637: else
1.1.1.3 ! misho 112638: echo "$as_me: failed program was:" >&5
! 112639: sed 's/^/| /' conftest.$ac_ext >&5
! 112640:
! 112641: ac_cv_lib_socket_res_nsearch=no
1.1 misho 112642: fi
1.1.1.3 ! misho 112643:
! 112644: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112645: conftest$ac_exeext conftest.$ac_ext
1.1 misho 112646: LIBS=$ac_check_lib_save_LIBS
112647: fi
1.1.1.3 ! misho 112648: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_res_nsearch" >&5
! 112649: echo "${ECHO_T}$ac_cv_lib_socket_res_nsearch" >&6; }
! 112650: if test $ac_cv_lib_socket_res_nsearch = yes; then
1.1 misho 112651: found=yes
112652: else
112653:
1.1.1.3 ! misho 112654: { echo "$as_me:$LINENO: checking for __res_nsearch in -lsocket" >&5
! 112655: echo $ECHO_N "checking for __res_nsearch in -lsocket... $ECHO_C" >&6; }
! 112656: if test "${ac_cv_lib_socket___res_nsearch+set}" = set; then
! 112657: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 112658: else
112659: ac_check_lib_save_LIBS=$LIBS
112660: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 112661: cat >conftest.$ac_ext <<_ACEOF
! 112662: /* confdefs.h. */
! 112663: _ACEOF
! 112664: cat confdefs.h >>conftest.$ac_ext
! 112665: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112666: /* end confdefs.h. */
112667:
112668: /* Override any GCC internal prototype to avoid an error.
112669: Use char because int might match the return type of a GCC
112670: builtin and then its argument prototype would still apply. */
112671: #ifdef __cplusplus
112672: extern "C"
112673: #endif
112674: char __res_nsearch ();
112675: int
112676: main ()
112677: {
112678: return __res_nsearch ();
112679: ;
112680: return 0;
112681: }
112682: _ACEOF
1.1.1.3 ! misho 112683: rm -f conftest.$ac_objext conftest$ac_exeext
! 112684: if { (ac_try="$ac_link"
! 112685: case "(($ac_try" in
! 112686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112687: *) ac_try_echo=$ac_try;;
! 112688: esac
! 112689: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112690: (eval "$ac_link") 2>conftest.er1
! 112691: ac_status=$?
! 112692: grep -v '^ *+' conftest.er1 >conftest.err
! 112693: rm -f conftest.er1
! 112694: cat conftest.err >&5
! 112695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112696: (exit $ac_status); } && {
! 112697: test -z "$ac_c_werror_flag" ||
! 112698: test ! -s conftest.err
! 112699: } && test -s conftest$ac_exeext &&
! 112700: $as_test_x conftest$ac_exeext; then
1.1 misho 112701: ac_cv_lib_socket___res_nsearch=yes
112702: else
1.1.1.3 ! misho 112703: echo "$as_me: failed program was:" >&5
! 112704: sed 's/^/| /' conftest.$ac_ext >&5
! 112705:
! 112706: ac_cv_lib_socket___res_nsearch=no
1.1 misho 112707: fi
1.1.1.3 ! misho 112708:
! 112709: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112710: conftest$ac_exeext conftest.$ac_ext
1.1 misho 112711: LIBS=$ac_check_lib_save_LIBS
112712: fi
1.1.1.3 ! misho 112713: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___res_nsearch" >&5
! 112714: echo "${ECHO_T}$ac_cv_lib_socket___res_nsearch" >&6; }
! 112715: if test $ac_cv_lib_socket___res_nsearch = yes; then
1.1 misho 112716: found=yes
112717: else
112718: found=no
112719: fi
112720:
112721:
112722: fi
112723:
112724:
112725: if test "$found" = "yes"; then
112726: ac_libs=$LIBS
112727: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 112728: if test "$cross_compiling" = yes; then
1.1 misho 112729: found=no
112730: else
1.1.1.3 ! misho 112731: cat >conftest.$ac_ext <<_ACEOF
! 112732: /* confdefs.h. */
! 112733: _ACEOF
! 112734: cat confdefs.h >>conftest.$ac_ext
! 112735: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 112736: /* end confdefs.h. */
112737: main() { return (0); }
112738: _ACEOF
1.1.1.3 ! misho 112739: rm -f conftest$ac_exeext
! 112740: if { (ac_try="$ac_link"
! 112741: case "(($ac_try" in
! 112742: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112743: *) ac_try_echo=$ac_try;;
! 112744: esac
! 112745: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112746: (eval "$ac_link") 2>&5
! 112747: ac_status=$?
! 112748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112749: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 112750: { (case "(($ac_try" in
! 112751: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112752: *) ac_try_echo=$ac_try;;
! 112753: esac
! 112754: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112755: (eval "$ac_try") 2>&5
! 112756: ac_status=$?
! 112757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112758: (exit $ac_status); }; }; then
1.1 misho 112759: found=yes
112760: else
1.1.1.3 ! misho 112761: echo "$as_me: program exited with status $ac_status" >&5
! 112762: echo "$as_me: failed program was:" >&5
! 112763: sed 's/^/| /' conftest.$ac_ext >&5
! 112764:
! 112765: ( exit $ac_status )
! 112766: found=no
1.1 misho 112767: fi
1.1.1.3 ! misho 112768: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 112769: fi
112770:
1.1.1.3 ! misho 112771:
1.1 misho 112772: LIBS=$ac_libs
112773: fi
112774:
112775: if test "$found" = "yes"; then
112776:
112777:
112778: case socket in
112779: c|c_r|pthread*) ;;
112780: *)
112781: LIBS="-lsocket $LIBS"
112782: ;;
112783: esac
112784:
112785:
112786:
1.1.1.3 ! misho 112787: cat >>confdefs.h <<\_ACEOF
! 112788: #define HAVE_RES_NSEARCH 1
! 112789: _ACEOF
1.1 misho 112790:
112791:
1.1.1.3 ! misho 112792: cat >>confdefs.h <<\_ACEOF
! 112793: #define HAVE_LIBSOCKET 1
! 112794: _ACEOF
1.1 misho 112795:
112796: ac_cv_func_res_nsearch=yes
112797: else
112798:
112799: :
112800:
112801: fi
112802:
112803:
112804: fi
112805:
112806:
112807: fi
112808:
112809: ;;
112810:
112811: esac
112812:
112813:
112814: unset ac_cv_func_dns_search
112815: unset ac_cv_func___dns_search
112816: unset found
112817:
1.1.1.3 ! misho 112818: { echo "$as_me:$LINENO: checking for dns_search" >&5
! 112819: echo $ECHO_N "checking for dns_search... $ECHO_C" >&6; }
! 112820: if test "${ac_cv_func_dns_search+set}" = set; then
! 112821: echo $ECHO_N "(cached) $ECHO_C" >&6
! 112822: else
! 112823: cat >conftest.$ac_ext <<_ACEOF
! 112824: /* confdefs.h. */
! 112825: _ACEOF
! 112826: cat confdefs.h >>conftest.$ac_ext
! 112827: cat >>conftest.$ac_ext <<_ACEOF
! 112828: /* end confdefs.h. */
! 112829: /* Define dns_search to an innocuous variant, in case <limits.h> declares dns_search.
! 112830: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 112831: #define dns_search innocuous_dns_search
! 112832:
! 112833: /* System header to define __stub macros and hopefully few prototypes,
! 112834: which can conflict with char dns_search (); below.
! 112835: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 112836: <limits.h> exists even on freestanding compilers. */
! 112837:
! 112838: #ifdef __STDC__
! 112839: # include <limits.h>
! 112840: #else
! 112841: # include <assert.h>
! 112842: #endif
! 112843:
! 112844: #undef dns_search
! 112845:
! 112846: /* Override any GCC internal prototype to avoid an error.
! 112847: Use char because int might match the return type of a GCC
! 112848: builtin and then its argument prototype would still apply. */
! 112849: #ifdef __cplusplus
! 112850: extern "C"
! 112851: #endif
! 112852: char dns_search ();
! 112853: /* The GNU C library defines this for functions which it implements
! 112854: to always fail with ENOSYS. Some functions are actually named
! 112855: something starting with __ and the normal name is an alias. */
! 112856: #if defined __stub_dns_search || defined __stub___dns_search
! 112857: choke me
! 112858: #endif
! 112859:
! 112860: int
! 112861: main ()
! 112862: {
! 112863: return dns_search ();
! 112864: ;
! 112865: return 0;
! 112866: }
! 112867: _ACEOF
! 112868: rm -f conftest.$ac_objext conftest$ac_exeext
! 112869: if { (ac_try="$ac_link"
! 112870: case "(($ac_try" in
! 112871: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112872: *) ac_try_echo=$ac_try;;
! 112873: esac
! 112874: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112875: (eval "$ac_link") 2>conftest.er1
! 112876: ac_status=$?
! 112877: grep -v '^ *+' conftest.er1 >conftest.err
! 112878: rm -f conftest.er1
! 112879: cat conftest.err >&5
! 112880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112881: (exit $ac_status); } && {
! 112882: test -z "$ac_c_werror_flag" ||
! 112883: test ! -s conftest.err
! 112884: } && test -s conftest$ac_exeext &&
! 112885: $as_test_x conftest$ac_exeext; then
! 112886: ac_cv_func_dns_search=yes
! 112887: else
! 112888: echo "$as_me: failed program was:" >&5
! 112889: sed 's/^/| /' conftest.$ac_ext >&5
! 112890:
! 112891: ac_cv_func_dns_search=no
! 112892: fi
! 112893:
! 112894: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112895: conftest$ac_exeext conftest.$ac_ext
! 112896: fi
! 112897: { echo "$as_me:$LINENO: result: $ac_cv_func_dns_search" >&5
! 112898: echo "${ECHO_T}$ac_cv_func_dns_search" >&6; }
! 112899: if test $ac_cv_func_dns_search = yes; then
1.1 misho 112900: found=yes
112901: else
1.1.1.3 ! misho 112902: { echo "$as_me:$LINENO: checking for __dns_search" >&5
! 112903: echo $ECHO_N "checking for __dns_search... $ECHO_C" >&6; }
! 112904: if test "${ac_cv_func___dns_search+set}" = set; then
! 112905: echo $ECHO_N "(cached) $ECHO_C" >&6
! 112906: else
! 112907: cat >conftest.$ac_ext <<_ACEOF
! 112908: /* confdefs.h. */
! 112909: _ACEOF
! 112910: cat confdefs.h >>conftest.$ac_ext
! 112911: cat >>conftest.$ac_ext <<_ACEOF
! 112912: /* end confdefs.h. */
! 112913: /* Define __dns_search to an innocuous variant, in case <limits.h> declares __dns_search.
! 112914: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 112915: #define __dns_search innocuous___dns_search
! 112916:
! 112917: /* System header to define __stub macros and hopefully few prototypes,
! 112918: which can conflict with char __dns_search (); below.
! 112919: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 112920: <limits.h> exists even on freestanding compilers. */
! 112921:
! 112922: #ifdef __STDC__
! 112923: # include <limits.h>
! 112924: #else
! 112925: # include <assert.h>
! 112926: #endif
! 112927:
! 112928: #undef __dns_search
! 112929:
! 112930: /* Override any GCC internal prototype to avoid an error.
! 112931: Use char because int might match the return type of a GCC
! 112932: builtin and then its argument prototype would still apply. */
! 112933: #ifdef __cplusplus
! 112934: extern "C"
! 112935: #endif
! 112936: char __dns_search ();
! 112937: /* The GNU C library defines this for functions which it implements
! 112938: to always fail with ENOSYS. Some functions are actually named
! 112939: something starting with __ and the normal name is an alias. */
! 112940: #if defined __stub___dns_search || defined __stub_____dns_search
! 112941: choke me
! 112942: #endif
! 112943:
! 112944: int
! 112945: main ()
! 112946: {
! 112947: return __dns_search ();
! 112948: ;
! 112949: return 0;
! 112950: }
! 112951: _ACEOF
! 112952: rm -f conftest.$ac_objext conftest$ac_exeext
! 112953: if { (ac_try="$ac_link"
! 112954: case "(($ac_try" in
! 112955: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 112956: *) ac_try_echo=$ac_try;;
! 112957: esac
! 112958: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 112959: (eval "$ac_link") 2>conftest.er1
! 112960: ac_status=$?
! 112961: grep -v '^ *+' conftest.er1 >conftest.err
! 112962: rm -f conftest.er1
! 112963: cat conftest.err >&5
! 112964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 112965: (exit $ac_status); } && {
! 112966: test -z "$ac_c_werror_flag" ||
! 112967: test ! -s conftest.err
! 112968: } && test -s conftest$ac_exeext &&
! 112969: $as_test_x conftest$ac_exeext; then
! 112970: ac_cv_func___dns_search=yes
! 112971: else
! 112972: echo "$as_me: failed program was:" >&5
! 112973: sed 's/^/| /' conftest.$ac_ext >&5
! 112974:
! 112975: ac_cv_func___dns_search=no
! 112976: fi
! 112977:
! 112978: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 112979: conftest$ac_exeext conftest.$ac_ext
! 112980: fi
! 112981: { echo "$as_me:$LINENO: result: $ac_cv_func___dns_search" >&5
! 112982: echo "${ECHO_T}$ac_cv_func___dns_search" >&6; }
! 112983: if test $ac_cv_func___dns_search = yes; then
1.1 misho 112984: found=yes
112985: else
112986: found=no
112987: fi
112988:
112989: fi
112990:
112991:
112992: case $found in
112993: yes)
112994:
1.1.1.3 ! misho 112995: cat >>confdefs.h <<\_ACEOF
! 112996: #define HAVE_DNS_SEARCH 1
! 112997: _ACEOF
1.1 misho 112998:
112999: ac_cv_func_dns_search=yes
113000: ;;
113001:
113002: *)
113003:
113004: unset ac_cv_lib_resolv_dns_search
113005: unset ac_cv_lib_resolv___dns_search
113006: unset found
1.1.1.3 ! misho 113007: { echo "$as_me:$LINENO: checking for dns_search in -lresolv" >&5
! 113008: echo $ECHO_N "checking for dns_search in -lresolv... $ECHO_C" >&6; }
! 113009: if test "${ac_cv_lib_resolv_dns_search+set}" = set; then
! 113010: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113011: else
113012: ac_check_lib_save_LIBS=$LIBS
113013: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 113014: cat >conftest.$ac_ext <<_ACEOF
! 113015: /* confdefs.h. */
! 113016: _ACEOF
! 113017: cat confdefs.h >>conftest.$ac_ext
! 113018: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113019: /* end confdefs.h. */
113020:
113021: /* Override any GCC internal prototype to avoid an error.
113022: Use char because int might match the return type of a GCC
113023: builtin and then its argument prototype would still apply. */
113024: #ifdef __cplusplus
113025: extern "C"
113026: #endif
113027: char dns_search ();
113028: int
113029: main ()
113030: {
113031: return dns_search ();
113032: ;
113033: return 0;
113034: }
113035: _ACEOF
1.1.1.3 ! misho 113036: rm -f conftest.$ac_objext conftest$ac_exeext
! 113037: if { (ac_try="$ac_link"
! 113038: case "(($ac_try" in
! 113039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113040: *) ac_try_echo=$ac_try;;
! 113041: esac
! 113042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113043: (eval "$ac_link") 2>conftest.er1
! 113044: ac_status=$?
! 113045: grep -v '^ *+' conftest.er1 >conftest.err
! 113046: rm -f conftest.er1
! 113047: cat conftest.err >&5
! 113048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113049: (exit $ac_status); } && {
! 113050: test -z "$ac_c_werror_flag" ||
! 113051: test ! -s conftest.err
! 113052: } && test -s conftest$ac_exeext &&
! 113053: $as_test_x conftest$ac_exeext; then
1.1 misho 113054: ac_cv_lib_resolv_dns_search=yes
113055: else
1.1.1.3 ! misho 113056: echo "$as_me: failed program was:" >&5
! 113057: sed 's/^/| /' conftest.$ac_ext >&5
! 113058:
! 113059: ac_cv_lib_resolv_dns_search=no
1.1 misho 113060: fi
1.1.1.3 ! misho 113061:
! 113062: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113063: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113064: LIBS=$ac_check_lib_save_LIBS
113065: fi
1.1.1.3 ! misho 113066: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dns_search" >&5
! 113067: echo "${ECHO_T}$ac_cv_lib_resolv_dns_search" >&6; }
! 113068: if test $ac_cv_lib_resolv_dns_search = yes; then
1.1 misho 113069: found=yes
113070: else
113071:
1.1.1.3 ! misho 113072: { echo "$as_me:$LINENO: checking for __dns_search in -lresolv" >&5
! 113073: echo $ECHO_N "checking for __dns_search in -lresolv... $ECHO_C" >&6; }
! 113074: if test "${ac_cv_lib_resolv___dns_search+set}" = set; then
! 113075: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113076: else
113077: ac_check_lib_save_LIBS=$LIBS
113078: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 113079: cat >conftest.$ac_ext <<_ACEOF
! 113080: /* confdefs.h. */
! 113081: _ACEOF
! 113082: cat confdefs.h >>conftest.$ac_ext
! 113083: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113084: /* end confdefs.h. */
113085:
113086: /* Override any GCC internal prototype to avoid an error.
113087: Use char because int might match the return type of a GCC
113088: builtin and then its argument prototype would still apply. */
113089: #ifdef __cplusplus
113090: extern "C"
113091: #endif
113092: char __dns_search ();
113093: int
113094: main ()
113095: {
113096: return __dns_search ();
113097: ;
113098: return 0;
113099: }
113100: _ACEOF
1.1.1.3 ! misho 113101: rm -f conftest.$ac_objext conftest$ac_exeext
! 113102: if { (ac_try="$ac_link"
! 113103: case "(($ac_try" in
! 113104: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113105: *) ac_try_echo=$ac_try;;
! 113106: esac
! 113107: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113108: (eval "$ac_link") 2>conftest.er1
! 113109: ac_status=$?
! 113110: grep -v '^ *+' conftest.er1 >conftest.err
! 113111: rm -f conftest.er1
! 113112: cat conftest.err >&5
! 113113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113114: (exit $ac_status); } && {
! 113115: test -z "$ac_c_werror_flag" ||
! 113116: test ! -s conftest.err
! 113117: } && test -s conftest$ac_exeext &&
! 113118: $as_test_x conftest$ac_exeext; then
1.1 misho 113119: ac_cv_lib_resolv___dns_search=yes
113120: else
1.1.1.3 ! misho 113121: echo "$as_me: failed program was:" >&5
! 113122: sed 's/^/| /' conftest.$ac_ext >&5
! 113123:
! 113124: ac_cv_lib_resolv___dns_search=no
1.1 misho 113125: fi
1.1.1.3 ! misho 113126:
! 113127: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113128: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113129: LIBS=$ac_check_lib_save_LIBS
113130: fi
1.1.1.3 ! misho 113131: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dns_search" >&5
! 113132: echo "${ECHO_T}$ac_cv_lib_resolv___dns_search" >&6; }
! 113133: if test $ac_cv_lib_resolv___dns_search = yes; then
1.1 misho 113134: found=yes
113135: else
113136: found=no
113137: fi
113138:
113139:
113140: fi
113141:
113142:
113143: if test "$found" = "yes"; then
113144: ac_libs=$LIBS
113145: LIBS="$LIBS -lresolv"
1.1.1.3 ! misho 113146: if test "$cross_compiling" = yes; then
1.1 misho 113147: found=no
113148: else
1.1.1.3 ! misho 113149: cat >conftest.$ac_ext <<_ACEOF
! 113150: /* confdefs.h. */
! 113151: _ACEOF
! 113152: cat confdefs.h >>conftest.$ac_ext
! 113153: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113154: /* end confdefs.h. */
113155: main() { return (0); }
113156: _ACEOF
1.1.1.3 ! misho 113157: rm -f conftest$ac_exeext
! 113158: if { (ac_try="$ac_link"
! 113159: case "(($ac_try" in
! 113160: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113161: *) ac_try_echo=$ac_try;;
! 113162: esac
! 113163: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113164: (eval "$ac_link") 2>&5
! 113165: ac_status=$?
! 113166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113167: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 113168: { (case "(($ac_try" in
! 113169: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113170: *) ac_try_echo=$ac_try;;
! 113171: esac
! 113172: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113173: (eval "$ac_try") 2>&5
! 113174: ac_status=$?
! 113175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113176: (exit $ac_status); }; }; then
1.1 misho 113177: found=yes
113178: else
1.1.1.3 ! misho 113179: echo "$as_me: program exited with status $ac_status" >&5
! 113180: echo "$as_me: failed program was:" >&5
! 113181: sed 's/^/| /' conftest.$ac_ext >&5
! 113182:
! 113183: ( exit $ac_status )
! 113184: found=no
1.1 misho 113185: fi
1.1.1.3 ! misho 113186: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 113187: fi
113188:
1.1.1.3 ! misho 113189:
1.1 misho 113190: LIBS=$ac_libs
113191: fi
113192:
113193: if test "$found" = "yes"; then
113194:
113195:
113196: case resolv in
113197: c|c_r|pthread*) ;;
113198: *)
113199: LIBS="-lresolv $LIBS"
113200: ;;
113201: esac
113202:
113203:
113204:
1.1.1.3 ! misho 113205: cat >>confdefs.h <<\_ACEOF
! 113206: #define HAVE_DNS_SEARCH 1
! 113207: _ACEOF
1.1 misho 113208:
113209:
1.1.1.3 ! misho 113210: cat >>confdefs.h <<\_ACEOF
! 113211: #define HAVE_LIBRESOLV 1
! 113212: _ACEOF
1.1 misho 113213:
113214: ac_cv_func_dns_search=yes
113215: else
113216:
113217:
113218: unset ac_cv_lib_bind_dns_search
113219: unset ac_cv_lib_bind___dns_search
113220: unset found
1.1.1.3 ! misho 113221: { echo "$as_me:$LINENO: checking for dns_search in -lbind" >&5
! 113222: echo $ECHO_N "checking for dns_search in -lbind... $ECHO_C" >&6; }
! 113223: if test "${ac_cv_lib_bind_dns_search+set}" = set; then
! 113224: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113225: else
113226: ac_check_lib_save_LIBS=$LIBS
113227: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 113228: cat >conftest.$ac_ext <<_ACEOF
! 113229: /* confdefs.h. */
! 113230: _ACEOF
! 113231: cat confdefs.h >>conftest.$ac_ext
! 113232: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113233: /* end confdefs.h. */
113234:
113235: /* Override any GCC internal prototype to avoid an error.
113236: Use char because int might match the return type of a GCC
113237: builtin and then its argument prototype would still apply. */
113238: #ifdef __cplusplus
113239: extern "C"
113240: #endif
113241: char dns_search ();
113242: int
113243: main ()
113244: {
113245: return dns_search ();
113246: ;
113247: return 0;
113248: }
113249: _ACEOF
1.1.1.3 ! misho 113250: rm -f conftest.$ac_objext conftest$ac_exeext
! 113251: if { (ac_try="$ac_link"
! 113252: case "(($ac_try" in
! 113253: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113254: *) ac_try_echo=$ac_try;;
! 113255: esac
! 113256: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113257: (eval "$ac_link") 2>conftest.er1
! 113258: ac_status=$?
! 113259: grep -v '^ *+' conftest.er1 >conftest.err
! 113260: rm -f conftest.er1
! 113261: cat conftest.err >&5
! 113262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113263: (exit $ac_status); } && {
! 113264: test -z "$ac_c_werror_flag" ||
! 113265: test ! -s conftest.err
! 113266: } && test -s conftest$ac_exeext &&
! 113267: $as_test_x conftest$ac_exeext; then
1.1 misho 113268: ac_cv_lib_bind_dns_search=yes
113269: else
1.1.1.3 ! misho 113270: echo "$as_me: failed program was:" >&5
! 113271: sed 's/^/| /' conftest.$ac_ext >&5
! 113272:
! 113273: ac_cv_lib_bind_dns_search=no
1.1 misho 113274: fi
1.1.1.3 ! misho 113275:
! 113276: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113277: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113278: LIBS=$ac_check_lib_save_LIBS
113279: fi
1.1.1.3 ! misho 113280: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_dns_search" >&5
! 113281: echo "${ECHO_T}$ac_cv_lib_bind_dns_search" >&6; }
! 113282: if test $ac_cv_lib_bind_dns_search = yes; then
1.1 misho 113283: found=yes
113284: else
113285:
1.1.1.3 ! misho 113286: { echo "$as_me:$LINENO: checking for __dns_search in -lbind" >&5
! 113287: echo $ECHO_N "checking for __dns_search in -lbind... $ECHO_C" >&6; }
! 113288: if test "${ac_cv_lib_bind___dns_search+set}" = set; then
! 113289: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113290: else
113291: ac_check_lib_save_LIBS=$LIBS
113292: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 113293: cat >conftest.$ac_ext <<_ACEOF
! 113294: /* confdefs.h. */
! 113295: _ACEOF
! 113296: cat confdefs.h >>conftest.$ac_ext
! 113297: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113298: /* end confdefs.h. */
113299:
113300: /* Override any GCC internal prototype to avoid an error.
113301: Use char because int might match the return type of a GCC
113302: builtin and then its argument prototype would still apply. */
113303: #ifdef __cplusplus
113304: extern "C"
113305: #endif
113306: char __dns_search ();
113307: int
113308: main ()
113309: {
113310: return __dns_search ();
113311: ;
113312: return 0;
113313: }
113314: _ACEOF
1.1.1.3 ! misho 113315: rm -f conftest.$ac_objext conftest$ac_exeext
! 113316: if { (ac_try="$ac_link"
! 113317: case "(($ac_try" in
! 113318: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113319: *) ac_try_echo=$ac_try;;
! 113320: esac
! 113321: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113322: (eval "$ac_link") 2>conftest.er1
! 113323: ac_status=$?
! 113324: grep -v '^ *+' conftest.er1 >conftest.err
! 113325: rm -f conftest.er1
! 113326: cat conftest.err >&5
! 113327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113328: (exit $ac_status); } && {
! 113329: test -z "$ac_c_werror_flag" ||
! 113330: test ! -s conftest.err
! 113331: } && test -s conftest$ac_exeext &&
! 113332: $as_test_x conftest$ac_exeext; then
1.1 misho 113333: ac_cv_lib_bind___dns_search=yes
113334: else
1.1.1.3 ! misho 113335: echo "$as_me: failed program was:" >&5
! 113336: sed 's/^/| /' conftest.$ac_ext >&5
! 113337:
! 113338: ac_cv_lib_bind___dns_search=no
1.1 misho 113339: fi
1.1.1.3 ! misho 113340:
! 113341: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113342: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113343: LIBS=$ac_check_lib_save_LIBS
113344: fi
1.1.1.3 ! misho 113345: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind___dns_search" >&5
! 113346: echo "${ECHO_T}$ac_cv_lib_bind___dns_search" >&6; }
! 113347: if test $ac_cv_lib_bind___dns_search = yes; then
1.1 misho 113348: found=yes
113349: else
113350: found=no
113351: fi
113352:
113353:
113354: fi
113355:
113356:
113357: if test "$found" = "yes"; then
113358: ac_libs=$LIBS
113359: LIBS="$LIBS -lbind"
1.1.1.3 ! misho 113360: if test "$cross_compiling" = yes; then
1.1 misho 113361: found=no
113362: else
1.1.1.3 ! misho 113363: cat >conftest.$ac_ext <<_ACEOF
! 113364: /* confdefs.h. */
! 113365: _ACEOF
! 113366: cat confdefs.h >>conftest.$ac_ext
! 113367: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113368: /* end confdefs.h. */
113369: main() { return (0); }
113370: _ACEOF
1.1.1.3 ! misho 113371: rm -f conftest$ac_exeext
! 113372: if { (ac_try="$ac_link"
! 113373: case "(($ac_try" in
! 113374: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113375: *) ac_try_echo=$ac_try;;
! 113376: esac
! 113377: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113378: (eval "$ac_link") 2>&5
! 113379: ac_status=$?
! 113380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113381: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 113382: { (case "(($ac_try" in
! 113383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113384: *) ac_try_echo=$ac_try;;
! 113385: esac
! 113386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113387: (eval "$ac_try") 2>&5
! 113388: ac_status=$?
! 113389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113390: (exit $ac_status); }; }; then
1.1 misho 113391: found=yes
113392: else
1.1.1.3 ! misho 113393: echo "$as_me: program exited with status $ac_status" >&5
! 113394: echo "$as_me: failed program was:" >&5
! 113395: sed 's/^/| /' conftest.$ac_ext >&5
! 113396:
! 113397: ( exit $ac_status )
! 113398: found=no
1.1 misho 113399: fi
1.1.1.3 ! misho 113400: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 113401: fi
113402:
1.1.1.3 ! misho 113403:
1.1 misho 113404: LIBS=$ac_libs
113405: fi
113406:
113407: if test "$found" = "yes"; then
113408:
113409:
113410: case bind in
113411: c|c_r|pthread*) ;;
113412: *)
113413: LIBS="-lbind $LIBS"
113414: ;;
113415: esac
113416:
113417:
113418:
1.1.1.3 ! misho 113419: cat >>confdefs.h <<\_ACEOF
! 113420: #define HAVE_DNS_SEARCH 1
! 113421: _ACEOF
1.1 misho 113422:
113423:
1.1.1.3 ! misho 113424: cat >>confdefs.h <<\_ACEOF
! 113425: #define HAVE_LIBBIND 1
! 113426: _ACEOF
1.1 misho 113427:
113428: ac_cv_func_dns_search=yes
113429: else
113430:
113431:
113432: unset ac_cv_lib_socket_dns_search
113433: unset ac_cv_lib_socket___dns_search
113434: unset found
1.1.1.3 ! misho 113435: { echo "$as_me:$LINENO: checking for dns_search in -lsocket" >&5
! 113436: echo $ECHO_N "checking for dns_search in -lsocket... $ECHO_C" >&6; }
! 113437: if test "${ac_cv_lib_socket_dns_search+set}" = set; then
! 113438: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113439: else
113440: ac_check_lib_save_LIBS=$LIBS
113441: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 113442: cat >conftest.$ac_ext <<_ACEOF
! 113443: /* confdefs.h. */
! 113444: _ACEOF
! 113445: cat confdefs.h >>conftest.$ac_ext
! 113446: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113447: /* end confdefs.h. */
113448:
113449: /* Override any GCC internal prototype to avoid an error.
113450: Use char because int might match the return type of a GCC
113451: builtin and then its argument prototype would still apply. */
113452: #ifdef __cplusplus
113453: extern "C"
113454: #endif
113455: char dns_search ();
113456: int
113457: main ()
113458: {
113459: return dns_search ();
113460: ;
113461: return 0;
113462: }
113463: _ACEOF
1.1.1.3 ! misho 113464: rm -f conftest.$ac_objext conftest$ac_exeext
! 113465: if { (ac_try="$ac_link"
! 113466: case "(($ac_try" in
! 113467: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113468: *) ac_try_echo=$ac_try;;
! 113469: esac
! 113470: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113471: (eval "$ac_link") 2>conftest.er1
! 113472: ac_status=$?
! 113473: grep -v '^ *+' conftest.er1 >conftest.err
! 113474: rm -f conftest.er1
! 113475: cat conftest.err >&5
! 113476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113477: (exit $ac_status); } && {
! 113478: test -z "$ac_c_werror_flag" ||
! 113479: test ! -s conftest.err
! 113480: } && test -s conftest$ac_exeext &&
! 113481: $as_test_x conftest$ac_exeext; then
1.1 misho 113482: ac_cv_lib_socket_dns_search=yes
113483: else
1.1.1.3 ! misho 113484: echo "$as_me: failed program was:" >&5
! 113485: sed 's/^/| /' conftest.$ac_ext >&5
! 113486:
! 113487: ac_cv_lib_socket_dns_search=no
1.1 misho 113488: fi
1.1.1.3 ! misho 113489:
! 113490: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113491: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113492: LIBS=$ac_check_lib_save_LIBS
113493: fi
1.1.1.3 ! misho 113494: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_dns_search" >&5
! 113495: echo "${ECHO_T}$ac_cv_lib_socket_dns_search" >&6; }
! 113496: if test $ac_cv_lib_socket_dns_search = yes; then
1.1 misho 113497: found=yes
113498: else
113499:
1.1.1.3 ! misho 113500: { echo "$as_me:$LINENO: checking for __dns_search in -lsocket" >&5
! 113501: echo $ECHO_N "checking for __dns_search in -lsocket... $ECHO_C" >&6; }
! 113502: if test "${ac_cv_lib_socket___dns_search+set}" = set; then
! 113503: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113504: else
113505: ac_check_lib_save_LIBS=$LIBS
113506: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 113507: cat >conftest.$ac_ext <<_ACEOF
! 113508: /* confdefs.h. */
! 113509: _ACEOF
! 113510: cat confdefs.h >>conftest.$ac_ext
! 113511: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113512: /* end confdefs.h. */
113513:
113514: /* Override any GCC internal prototype to avoid an error.
113515: Use char because int might match the return type of a GCC
113516: builtin and then its argument prototype would still apply. */
113517: #ifdef __cplusplus
113518: extern "C"
113519: #endif
113520: char __dns_search ();
113521: int
113522: main ()
113523: {
113524: return __dns_search ();
113525: ;
113526: return 0;
113527: }
113528: _ACEOF
1.1.1.3 ! misho 113529: rm -f conftest.$ac_objext conftest$ac_exeext
! 113530: if { (ac_try="$ac_link"
! 113531: case "(($ac_try" in
! 113532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113533: *) ac_try_echo=$ac_try;;
! 113534: esac
! 113535: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113536: (eval "$ac_link") 2>conftest.er1
! 113537: ac_status=$?
! 113538: grep -v '^ *+' conftest.er1 >conftest.err
! 113539: rm -f conftest.er1
! 113540: cat conftest.err >&5
! 113541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113542: (exit $ac_status); } && {
! 113543: test -z "$ac_c_werror_flag" ||
! 113544: test ! -s conftest.err
! 113545: } && test -s conftest$ac_exeext &&
! 113546: $as_test_x conftest$ac_exeext; then
1.1 misho 113547: ac_cv_lib_socket___dns_search=yes
113548: else
1.1.1.3 ! misho 113549: echo "$as_me: failed program was:" >&5
! 113550: sed 's/^/| /' conftest.$ac_ext >&5
! 113551:
! 113552: ac_cv_lib_socket___dns_search=no
1.1 misho 113553: fi
1.1.1.3 ! misho 113554:
! 113555: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113556: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113557: LIBS=$ac_check_lib_save_LIBS
113558: fi
1.1.1.3 ! misho 113559: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___dns_search" >&5
! 113560: echo "${ECHO_T}$ac_cv_lib_socket___dns_search" >&6; }
! 113561: if test $ac_cv_lib_socket___dns_search = yes; then
1.1 misho 113562: found=yes
113563: else
113564: found=no
113565: fi
113566:
113567:
113568: fi
113569:
113570:
113571: if test "$found" = "yes"; then
113572: ac_libs=$LIBS
113573: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 113574: if test "$cross_compiling" = yes; then
1.1 misho 113575: found=no
113576: else
1.1.1.3 ! misho 113577: cat >conftest.$ac_ext <<_ACEOF
! 113578: /* confdefs.h. */
! 113579: _ACEOF
! 113580: cat confdefs.h >>conftest.$ac_ext
! 113581: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113582: /* end confdefs.h. */
113583: main() { return (0); }
113584: _ACEOF
1.1.1.3 ! misho 113585: rm -f conftest$ac_exeext
! 113586: if { (ac_try="$ac_link"
! 113587: case "(($ac_try" in
! 113588: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113589: *) ac_try_echo=$ac_try;;
! 113590: esac
! 113591: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113592: (eval "$ac_link") 2>&5
! 113593: ac_status=$?
! 113594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113595: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 113596: { (case "(($ac_try" in
! 113597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113598: *) ac_try_echo=$ac_try;;
! 113599: esac
! 113600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113601: (eval "$ac_try") 2>&5
! 113602: ac_status=$?
! 113603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113604: (exit $ac_status); }; }; then
1.1 misho 113605: found=yes
113606: else
1.1.1.3 ! misho 113607: echo "$as_me: program exited with status $ac_status" >&5
! 113608: echo "$as_me: failed program was:" >&5
! 113609: sed 's/^/| /' conftest.$ac_ext >&5
! 113610:
! 113611: ( exit $ac_status )
! 113612: found=no
1.1 misho 113613: fi
1.1.1.3 ! misho 113614: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 113615: fi
113616:
1.1.1.3 ! misho 113617:
1.1 misho 113618: LIBS=$ac_libs
113619: fi
113620:
113621: if test "$found" = "yes"; then
113622:
113623:
113624: case socket in
113625: c|c_r|pthread*) ;;
113626: *)
113627: LIBS="-lsocket $LIBS"
113628: ;;
113629: esac
113630:
113631:
113632:
1.1.1.3 ! misho 113633: cat >>confdefs.h <<\_ACEOF
! 113634: #define HAVE_DNS_SEARCH 1
! 113635: _ACEOF
1.1 misho 113636:
113637:
1.1.1.3 ! misho 113638: cat >>confdefs.h <<\_ACEOF
! 113639: #define HAVE_LIBSOCKET 1
! 113640: _ACEOF
1.1 misho 113641:
113642: ac_cv_func_dns_search=yes
113643: else
113644:
113645: :
113646:
113647: fi
113648:
113649:
113650: fi
113651:
113652:
113653: fi
113654:
113655: ;;
113656:
113657: esac
113658:
113659:
113660: unset ac_cv_func_dn_expand
113661: unset ac_cv_func___dn_expand
113662: unset found
113663:
1.1.1.3 ! misho 113664: { echo "$as_me:$LINENO: checking for dn_expand" >&5
! 113665: echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6; }
! 113666: if test "${ac_cv_func_dn_expand+set}" = set; then
! 113667: echo $ECHO_N "(cached) $ECHO_C" >&6
! 113668: else
! 113669: cat >conftest.$ac_ext <<_ACEOF
! 113670: /* confdefs.h. */
! 113671: _ACEOF
! 113672: cat confdefs.h >>conftest.$ac_ext
! 113673: cat >>conftest.$ac_ext <<_ACEOF
! 113674: /* end confdefs.h. */
! 113675: /* Define dn_expand to an innocuous variant, in case <limits.h> declares dn_expand.
! 113676: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 113677: #define dn_expand innocuous_dn_expand
! 113678:
! 113679: /* System header to define __stub macros and hopefully few prototypes,
! 113680: which can conflict with char dn_expand (); below.
! 113681: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 113682: <limits.h> exists even on freestanding compilers. */
! 113683:
! 113684: #ifdef __STDC__
! 113685: # include <limits.h>
! 113686: #else
! 113687: # include <assert.h>
! 113688: #endif
! 113689:
! 113690: #undef dn_expand
! 113691:
! 113692: /* Override any GCC internal prototype to avoid an error.
! 113693: Use char because int might match the return type of a GCC
! 113694: builtin and then its argument prototype would still apply. */
! 113695: #ifdef __cplusplus
! 113696: extern "C"
! 113697: #endif
! 113698: char dn_expand ();
! 113699: /* The GNU C library defines this for functions which it implements
! 113700: to always fail with ENOSYS. Some functions are actually named
! 113701: something starting with __ and the normal name is an alias. */
! 113702: #if defined __stub_dn_expand || defined __stub___dn_expand
! 113703: choke me
! 113704: #endif
! 113705:
! 113706: int
! 113707: main ()
! 113708: {
! 113709: return dn_expand ();
! 113710: ;
! 113711: return 0;
! 113712: }
! 113713: _ACEOF
! 113714: rm -f conftest.$ac_objext conftest$ac_exeext
! 113715: if { (ac_try="$ac_link"
! 113716: case "(($ac_try" in
! 113717: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113718: *) ac_try_echo=$ac_try;;
! 113719: esac
! 113720: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113721: (eval "$ac_link") 2>conftest.er1
! 113722: ac_status=$?
! 113723: grep -v '^ *+' conftest.er1 >conftest.err
! 113724: rm -f conftest.er1
! 113725: cat conftest.err >&5
! 113726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113727: (exit $ac_status); } && {
! 113728: test -z "$ac_c_werror_flag" ||
! 113729: test ! -s conftest.err
! 113730: } && test -s conftest$ac_exeext &&
! 113731: $as_test_x conftest$ac_exeext; then
! 113732: ac_cv_func_dn_expand=yes
! 113733: else
! 113734: echo "$as_me: failed program was:" >&5
! 113735: sed 's/^/| /' conftest.$ac_ext >&5
! 113736:
! 113737: ac_cv_func_dn_expand=no
! 113738: fi
! 113739:
! 113740: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113741: conftest$ac_exeext conftest.$ac_ext
! 113742: fi
! 113743: { echo "$as_me:$LINENO: result: $ac_cv_func_dn_expand" >&5
! 113744: echo "${ECHO_T}$ac_cv_func_dn_expand" >&6; }
! 113745: if test $ac_cv_func_dn_expand = yes; then
1.1 misho 113746: found=yes
113747: else
1.1.1.3 ! misho 113748: { echo "$as_me:$LINENO: checking for __dn_expand" >&5
! 113749: echo $ECHO_N "checking for __dn_expand... $ECHO_C" >&6; }
! 113750: if test "${ac_cv_func___dn_expand+set}" = set; then
! 113751: echo $ECHO_N "(cached) $ECHO_C" >&6
! 113752: else
! 113753: cat >conftest.$ac_ext <<_ACEOF
! 113754: /* confdefs.h. */
! 113755: _ACEOF
! 113756: cat confdefs.h >>conftest.$ac_ext
! 113757: cat >>conftest.$ac_ext <<_ACEOF
! 113758: /* end confdefs.h. */
! 113759: /* Define __dn_expand to an innocuous variant, in case <limits.h> declares __dn_expand.
! 113760: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 113761: #define __dn_expand innocuous___dn_expand
! 113762:
! 113763: /* System header to define __stub macros and hopefully few prototypes,
! 113764: which can conflict with char __dn_expand (); below.
! 113765: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 113766: <limits.h> exists even on freestanding compilers. */
! 113767:
! 113768: #ifdef __STDC__
! 113769: # include <limits.h>
! 113770: #else
! 113771: # include <assert.h>
! 113772: #endif
! 113773:
! 113774: #undef __dn_expand
! 113775:
! 113776: /* Override any GCC internal prototype to avoid an error.
! 113777: Use char because int might match the return type of a GCC
! 113778: builtin and then its argument prototype would still apply. */
! 113779: #ifdef __cplusplus
! 113780: extern "C"
! 113781: #endif
! 113782: char __dn_expand ();
! 113783: /* The GNU C library defines this for functions which it implements
! 113784: to always fail with ENOSYS. Some functions are actually named
! 113785: something starting with __ and the normal name is an alias. */
! 113786: #if defined __stub___dn_expand || defined __stub_____dn_expand
! 113787: choke me
! 113788: #endif
! 113789:
! 113790: int
! 113791: main ()
! 113792: {
! 113793: return __dn_expand ();
! 113794: ;
! 113795: return 0;
! 113796: }
! 113797: _ACEOF
! 113798: rm -f conftest.$ac_objext conftest$ac_exeext
! 113799: if { (ac_try="$ac_link"
! 113800: case "(($ac_try" in
! 113801: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113802: *) ac_try_echo=$ac_try;;
! 113803: esac
! 113804: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113805: (eval "$ac_link") 2>conftest.er1
! 113806: ac_status=$?
! 113807: grep -v '^ *+' conftest.er1 >conftest.err
! 113808: rm -f conftest.er1
! 113809: cat conftest.err >&5
! 113810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113811: (exit $ac_status); } && {
! 113812: test -z "$ac_c_werror_flag" ||
! 113813: test ! -s conftest.err
! 113814: } && test -s conftest$ac_exeext &&
! 113815: $as_test_x conftest$ac_exeext; then
! 113816: ac_cv_func___dn_expand=yes
! 113817: else
! 113818: echo "$as_me: failed program was:" >&5
! 113819: sed 's/^/| /' conftest.$ac_ext >&5
! 113820:
! 113821: ac_cv_func___dn_expand=no
! 113822: fi
! 113823:
! 113824: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113825: conftest$ac_exeext conftest.$ac_ext
! 113826: fi
! 113827: { echo "$as_me:$LINENO: result: $ac_cv_func___dn_expand" >&5
! 113828: echo "${ECHO_T}$ac_cv_func___dn_expand" >&6; }
! 113829: if test $ac_cv_func___dn_expand = yes; then
1.1 misho 113830: found=yes
113831: else
113832: found=no
113833: fi
113834:
113835: fi
113836:
113837:
113838: case $found in
113839: yes)
113840:
1.1.1.3 ! misho 113841: cat >>confdefs.h <<\_ACEOF
! 113842: #define HAVE_DN_EXPAND 1
! 113843: _ACEOF
1.1 misho 113844:
113845: ac_cv_func_dn_expand=yes
113846: ;;
113847:
113848: *)
113849:
113850: unset ac_cv_lib_resolv_dn_expand
113851: unset ac_cv_lib_resolv___dn_expand
113852: unset found
1.1.1.3 ! misho 113853: { echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
! 113854: echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6; }
! 113855: if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
! 113856: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113857: else
113858: ac_check_lib_save_LIBS=$LIBS
113859: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 113860: cat >conftest.$ac_ext <<_ACEOF
! 113861: /* confdefs.h. */
! 113862: _ACEOF
! 113863: cat confdefs.h >>conftest.$ac_ext
! 113864: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113865: /* end confdefs.h. */
113866:
113867: /* Override any GCC internal prototype to avoid an error.
113868: Use char because int might match the return type of a GCC
113869: builtin and then its argument prototype would still apply. */
113870: #ifdef __cplusplus
113871: extern "C"
113872: #endif
113873: char dn_expand ();
113874: int
113875: main ()
113876: {
113877: return dn_expand ();
113878: ;
113879: return 0;
113880: }
113881: _ACEOF
1.1.1.3 ! misho 113882: rm -f conftest.$ac_objext conftest$ac_exeext
! 113883: if { (ac_try="$ac_link"
! 113884: case "(($ac_try" in
! 113885: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113886: *) ac_try_echo=$ac_try;;
! 113887: esac
! 113888: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113889: (eval "$ac_link") 2>conftest.er1
! 113890: ac_status=$?
! 113891: grep -v '^ *+' conftest.er1 >conftest.err
! 113892: rm -f conftest.er1
! 113893: cat conftest.err >&5
! 113894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113895: (exit $ac_status); } && {
! 113896: test -z "$ac_c_werror_flag" ||
! 113897: test ! -s conftest.err
! 113898: } && test -s conftest$ac_exeext &&
! 113899: $as_test_x conftest$ac_exeext; then
1.1 misho 113900: ac_cv_lib_resolv_dn_expand=yes
113901: else
1.1.1.3 ! misho 113902: echo "$as_me: failed program was:" >&5
! 113903: sed 's/^/| /' conftest.$ac_ext >&5
! 113904:
! 113905: ac_cv_lib_resolv_dn_expand=no
1.1 misho 113906: fi
1.1.1.3 ! misho 113907:
! 113908: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113909: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113910: LIBS=$ac_check_lib_save_LIBS
113911: fi
1.1.1.3 ! misho 113912: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
! 113913: echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6; }
! 113914: if test $ac_cv_lib_resolv_dn_expand = yes; then
1.1 misho 113915: found=yes
113916: else
113917:
1.1.1.3 ! misho 113918: { echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
! 113919: echo $ECHO_N "checking for __dn_expand in -lresolv... $ECHO_C" >&6; }
! 113920: if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
! 113921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 113922: else
113923: ac_check_lib_save_LIBS=$LIBS
113924: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 113925: cat >conftest.$ac_ext <<_ACEOF
! 113926: /* confdefs.h. */
! 113927: _ACEOF
! 113928: cat confdefs.h >>conftest.$ac_ext
! 113929: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 113930: /* end confdefs.h. */
113931:
113932: /* Override any GCC internal prototype to avoid an error.
113933: Use char because int might match the return type of a GCC
113934: builtin and then its argument prototype would still apply. */
113935: #ifdef __cplusplus
113936: extern "C"
113937: #endif
113938: char __dn_expand ();
113939: int
113940: main ()
113941: {
113942: return __dn_expand ();
113943: ;
113944: return 0;
113945: }
113946: _ACEOF
1.1.1.3 ! misho 113947: rm -f conftest.$ac_objext conftest$ac_exeext
! 113948: if { (ac_try="$ac_link"
! 113949: case "(($ac_try" in
! 113950: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 113951: *) ac_try_echo=$ac_try;;
! 113952: esac
! 113953: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 113954: (eval "$ac_link") 2>conftest.er1
! 113955: ac_status=$?
! 113956: grep -v '^ *+' conftest.er1 >conftest.err
! 113957: rm -f conftest.er1
! 113958: cat conftest.err >&5
! 113959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 113960: (exit $ac_status); } && {
! 113961: test -z "$ac_c_werror_flag" ||
! 113962: test ! -s conftest.err
! 113963: } && test -s conftest$ac_exeext &&
! 113964: $as_test_x conftest$ac_exeext; then
1.1 misho 113965: ac_cv_lib_resolv___dn_expand=yes
113966: else
1.1.1.3 ! misho 113967: echo "$as_me: failed program was:" >&5
! 113968: sed 's/^/| /' conftest.$ac_ext >&5
! 113969:
! 113970: ac_cv_lib_resolv___dn_expand=no
1.1 misho 113971: fi
1.1.1.3 ! misho 113972:
! 113973: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 113974: conftest$ac_exeext conftest.$ac_ext
1.1 misho 113975: LIBS=$ac_check_lib_save_LIBS
113976: fi
1.1.1.3 ! misho 113977: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
! 113978: echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6; }
! 113979: if test $ac_cv_lib_resolv___dn_expand = yes; then
1.1 misho 113980: found=yes
113981: else
113982: found=no
113983: fi
113984:
113985:
113986: fi
113987:
113988:
113989: if test "$found" = "yes"; then
113990: ac_libs=$LIBS
113991: LIBS="$LIBS -lresolv"
1.1.1.3 ! misho 113992: if test "$cross_compiling" = yes; then
1.1 misho 113993: found=no
113994: else
1.1.1.3 ! misho 113995: cat >conftest.$ac_ext <<_ACEOF
! 113996: /* confdefs.h. */
! 113997: _ACEOF
! 113998: cat confdefs.h >>conftest.$ac_ext
! 113999: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114000: /* end confdefs.h. */
114001: main() { return (0); }
114002: _ACEOF
1.1.1.3 ! misho 114003: rm -f conftest$ac_exeext
! 114004: if { (ac_try="$ac_link"
! 114005: case "(($ac_try" in
! 114006: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114007: *) ac_try_echo=$ac_try;;
! 114008: esac
! 114009: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114010: (eval "$ac_link") 2>&5
! 114011: ac_status=$?
! 114012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114013: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 114014: { (case "(($ac_try" in
! 114015: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114016: *) ac_try_echo=$ac_try;;
! 114017: esac
! 114018: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114019: (eval "$ac_try") 2>&5
! 114020: ac_status=$?
! 114021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114022: (exit $ac_status); }; }; then
1.1 misho 114023: found=yes
114024: else
1.1.1.3 ! misho 114025: echo "$as_me: program exited with status $ac_status" >&5
! 114026: echo "$as_me: failed program was:" >&5
! 114027: sed 's/^/| /' conftest.$ac_ext >&5
! 114028:
! 114029: ( exit $ac_status )
! 114030: found=no
1.1 misho 114031: fi
1.1.1.3 ! misho 114032: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 114033: fi
114034:
1.1.1.3 ! misho 114035:
1.1 misho 114036: LIBS=$ac_libs
114037: fi
114038:
114039: if test "$found" = "yes"; then
114040:
114041:
114042: case resolv in
114043: c|c_r|pthread*) ;;
114044: *)
114045: LIBS="-lresolv $LIBS"
114046: ;;
114047: esac
114048:
114049:
114050:
1.1.1.3 ! misho 114051: cat >>confdefs.h <<\_ACEOF
! 114052: #define HAVE_DN_EXPAND 1
! 114053: _ACEOF
1.1 misho 114054:
114055:
1.1.1.3 ! misho 114056: cat >>confdefs.h <<\_ACEOF
! 114057: #define HAVE_LIBRESOLV 1
! 114058: _ACEOF
1.1 misho 114059:
114060: ac_cv_func_dn_expand=yes
114061: else
114062:
114063:
114064: unset ac_cv_lib_bind_dn_expand
114065: unset ac_cv_lib_bind___dn_expand
114066: unset found
1.1.1.3 ! misho 114067: { echo "$as_me:$LINENO: checking for dn_expand in -lbind" >&5
! 114068: echo $ECHO_N "checking for dn_expand in -lbind... $ECHO_C" >&6; }
! 114069: if test "${ac_cv_lib_bind_dn_expand+set}" = set; then
! 114070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114071: else
114072: ac_check_lib_save_LIBS=$LIBS
114073: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 114074: cat >conftest.$ac_ext <<_ACEOF
! 114075: /* confdefs.h. */
! 114076: _ACEOF
! 114077: cat confdefs.h >>conftest.$ac_ext
! 114078: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114079: /* end confdefs.h. */
114080:
114081: /* Override any GCC internal prototype to avoid an error.
114082: Use char because int might match the return type of a GCC
114083: builtin and then its argument prototype would still apply. */
114084: #ifdef __cplusplus
114085: extern "C"
114086: #endif
114087: char dn_expand ();
114088: int
114089: main ()
114090: {
114091: return dn_expand ();
114092: ;
114093: return 0;
114094: }
114095: _ACEOF
1.1.1.3 ! misho 114096: rm -f conftest.$ac_objext conftest$ac_exeext
! 114097: if { (ac_try="$ac_link"
! 114098: case "(($ac_try" in
! 114099: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114100: *) ac_try_echo=$ac_try;;
! 114101: esac
! 114102: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114103: (eval "$ac_link") 2>conftest.er1
! 114104: ac_status=$?
! 114105: grep -v '^ *+' conftest.er1 >conftest.err
! 114106: rm -f conftest.er1
! 114107: cat conftest.err >&5
! 114108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114109: (exit $ac_status); } && {
! 114110: test -z "$ac_c_werror_flag" ||
! 114111: test ! -s conftest.err
! 114112: } && test -s conftest$ac_exeext &&
! 114113: $as_test_x conftest$ac_exeext; then
1.1 misho 114114: ac_cv_lib_bind_dn_expand=yes
114115: else
1.1.1.3 ! misho 114116: echo "$as_me: failed program was:" >&5
! 114117: sed 's/^/| /' conftest.$ac_ext >&5
! 114118:
! 114119: ac_cv_lib_bind_dn_expand=no
1.1 misho 114120: fi
1.1.1.3 ! misho 114121:
! 114122: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114123: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114124: LIBS=$ac_check_lib_save_LIBS
114125: fi
1.1.1.3 ! misho 114126: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_dn_expand" >&5
! 114127: echo "${ECHO_T}$ac_cv_lib_bind_dn_expand" >&6; }
! 114128: if test $ac_cv_lib_bind_dn_expand = yes; then
1.1 misho 114129: found=yes
114130: else
114131:
1.1.1.3 ! misho 114132: { echo "$as_me:$LINENO: checking for __dn_expand in -lbind" >&5
! 114133: echo $ECHO_N "checking for __dn_expand in -lbind... $ECHO_C" >&6; }
! 114134: if test "${ac_cv_lib_bind___dn_expand+set}" = set; then
! 114135: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114136: else
114137: ac_check_lib_save_LIBS=$LIBS
114138: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 114139: cat >conftest.$ac_ext <<_ACEOF
! 114140: /* confdefs.h. */
! 114141: _ACEOF
! 114142: cat confdefs.h >>conftest.$ac_ext
! 114143: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114144: /* end confdefs.h. */
114145:
114146: /* Override any GCC internal prototype to avoid an error.
114147: Use char because int might match the return type of a GCC
114148: builtin and then its argument prototype would still apply. */
114149: #ifdef __cplusplus
114150: extern "C"
114151: #endif
114152: char __dn_expand ();
114153: int
114154: main ()
114155: {
114156: return __dn_expand ();
114157: ;
114158: return 0;
114159: }
114160: _ACEOF
1.1.1.3 ! misho 114161: rm -f conftest.$ac_objext conftest$ac_exeext
! 114162: if { (ac_try="$ac_link"
! 114163: case "(($ac_try" in
! 114164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114165: *) ac_try_echo=$ac_try;;
! 114166: esac
! 114167: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114168: (eval "$ac_link") 2>conftest.er1
! 114169: ac_status=$?
! 114170: grep -v '^ *+' conftest.er1 >conftest.err
! 114171: rm -f conftest.er1
! 114172: cat conftest.err >&5
! 114173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114174: (exit $ac_status); } && {
! 114175: test -z "$ac_c_werror_flag" ||
! 114176: test ! -s conftest.err
! 114177: } && test -s conftest$ac_exeext &&
! 114178: $as_test_x conftest$ac_exeext; then
1.1 misho 114179: ac_cv_lib_bind___dn_expand=yes
114180: else
1.1.1.3 ! misho 114181: echo "$as_me: failed program was:" >&5
! 114182: sed 's/^/| /' conftest.$ac_ext >&5
! 114183:
! 114184: ac_cv_lib_bind___dn_expand=no
1.1 misho 114185: fi
1.1.1.3 ! misho 114186:
! 114187: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114188: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114189: LIBS=$ac_check_lib_save_LIBS
114190: fi
1.1.1.3 ! misho 114191: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind___dn_expand" >&5
! 114192: echo "${ECHO_T}$ac_cv_lib_bind___dn_expand" >&6; }
! 114193: if test $ac_cv_lib_bind___dn_expand = yes; then
1.1 misho 114194: found=yes
114195: else
114196: found=no
114197: fi
114198:
114199:
114200: fi
114201:
114202:
114203: if test "$found" = "yes"; then
114204: ac_libs=$LIBS
114205: LIBS="$LIBS -lbind"
1.1.1.3 ! misho 114206: if test "$cross_compiling" = yes; then
1.1 misho 114207: found=no
114208: else
1.1.1.3 ! misho 114209: cat >conftest.$ac_ext <<_ACEOF
! 114210: /* confdefs.h. */
! 114211: _ACEOF
! 114212: cat confdefs.h >>conftest.$ac_ext
! 114213: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114214: /* end confdefs.h. */
114215: main() { return (0); }
114216: _ACEOF
1.1.1.3 ! misho 114217: rm -f conftest$ac_exeext
! 114218: if { (ac_try="$ac_link"
! 114219: case "(($ac_try" in
! 114220: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114221: *) ac_try_echo=$ac_try;;
! 114222: esac
! 114223: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114224: (eval "$ac_link") 2>&5
! 114225: ac_status=$?
! 114226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114227: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 114228: { (case "(($ac_try" in
! 114229: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114230: *) ac_try_echo=$ac_try;;
! 114231: esac
! 114232: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114233: (eval "$ac_try") 2>&5
! 114234: ac_status=$?
! 114235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114236: (exit $ac_status); }; }; then
1.1 misho 114237: found=yes
114238: else
1.1.1.3 ! misho 114239: echo "$as_me: program exited with status $ac_status" >&5
! 114240: echo "$as_me: failed program was:" >&5
! 114241: sed 's/^/| /' conftest.$ac_ext >&5
! 114242:
! 114243: ( exit $ac_status )
! 114244: found=no
1.1 misho 114245: fi
1.1.1.3 ! misho 114246: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 114247: fi
114248:
1.1.1.3 ! misho 114249:
1.1 misho 114250: LIBS=$ac_libs
114251: fi
114252:
114253: if test "$found" = "yes"; then
114254:
114255:
114256: case bind in
114257: c|c_r|pthread*) ;;
114258: *)
114259: LIBS="-lbind $LIBS"
114260: ;;
114261: esac
114262:
114263:
114264:
1.1.1.3 ! misho 114265: cat >>confdefs.h <<\_ACEOF
! 114266: #define HAVE_DN_EXPAND 1
! 114267: _ACEOF
1.1 misho 114268:
114269:
1.1.1.3 ! misho 114270: cat >>confdefs.h <<\_ACEOF
! 114271: #define HAVE_LIBBIND 1
! 114272: _ACEOF
1.1 misho 114273:
114274: ac_cv_func_dn_expand=yes
114275: else
114276:
114277:
114278: unset ac_cv_lib_socket_dn_expand
114279: unset ac_cv_lib_socket___dn_expand
114280: unset found
1.1.1.3 ! misho 114281: { echo "$as_me:$LINENO: checking for dn_expand in -lsocket" >&5
! 114282: echo $ECHO_N "checking for dn_expand in -lsocket... $ECHO_C" >&6; }
! 114283: if test "${ac_cv_lib_socket_dn_expand+set}" = set; then
! 114284: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114285: else
114286: ac_check_lib_save_LIBS=$LIBS
114287: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 114288: cat >conftest.$ac_ext <<_ACEOF
! 114289: /* confdefs.h. */
! 114290: _ACEOF
! 114291: cat confdefs.h >>conftest.$ac_ext
! 114292: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114293: /* end confdefs.h. */
114294:
114295: /* Override any GCC internal prototype to avoid an error.
114296: Use char because int might match the return type of a GCC
114297: builtin and then its argument prototype would still apply. */
114298: #ifdef __cplusplus
114299: extern "C"
114300: #endif
114301: char dn_expand ();
114302: int
114303: main ()
114304: {
114305: return dn_expand ();
114306: ;
114307: return 0;
114308: }
114309: _ACEOF
1.1.1.3 ! misho 114310: rm -f conftest.$ac_objext conftest$ac_exeext
! 114311: if { (ac_try="$ac_link"
! 114312: case "(($ac_try" in
! 114313: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114314: *) ac_try_echo=$ac_try;;
! 114315: esac
! 114316: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114317: (eval "$ac_link") 2>conftest.er1
! 114318: ac_status=$?
! 114319: grep -v '^ *+' conftest.er1 >conftest.err
! 114320: rm -f conftest.er1
! 114321: cat conftest.err >&5
! 114322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114323: (exit $ac_status); } && {
! 114324: test -z "$ac_c_werror_flag" ||
! 114325: test ! -s conftest.err
! 114326: } && test -s conftest$ac_exeext &&
! 114327: $as_test_x conftest$ac_exeext; then
1.1 misho 114328: ac_cv_lib_socket_dn_expand=yes
114329: else
1.1.1.3 ! misho 114330: echo "$as_me: failed program was:" >&5
! 114331: sed 's/^/| /' conftest.$ac_ext >&5
! 114332:
! 114333: ac_cv_lib_socket_dn_expand=no
1.1 misho 114334: fi
1.1.1.3 ! misho 114335:
! 114336: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114337: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114338: LIBS=$ac_check_lib_save_LIBS
114339: fi
1.1.1.3 ! misho 114340: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_dn_expand" >&5
! 114341: echo "${ECHO_T}$ac_cv_lib_socket_dn_expand" >&6; }
! 114342: if test $ac_cv_lib_socket_dn_expand = yes; then
1.1 misho 114343: found=yes
114344: else
114345:
1.1.1.3 ! misho 114346: { echo "$as_me:$LINENO: checking for __dn_expand in -lsocket" >&5
! 114347: echo $ECHO_N "checking for __dn_expand in -lsocket... $ECHO_C" >&6; }
! 114348: if test "${ac_cv_lib_socket___dn_expand+set}" = set; then
! 114349: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114350: else
114351: ac_check_lib_save_LIBS=$LIBS
114352: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 114353: cat >conftest.$ac_ext <<_ACEOF
! 114354: /* confdefs.h. */
! 114355: _ACEOF
! 114356: cat confdefs.h >>conftest.$ac_ext
! 114357: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114358: /* end confdefs.h. */
114359:
114360: /* Override any GCC internal prototype to avoid an error.
114361: Use char because int might match the return type of a GCC
114362: builtin and then its argument prototype would still apply. */
114363: #ifdef __cplusplus
114364: extern "C"
114365: #endif
114366: char __dn_expand ();
114367: int
114368: main ()
114369: {
114370: return __dn_expand ();
114371: ;
114372: return 0;
114373: }
114374: _ACEOF
1.1.1.3 ! misho 114375: rm -f conftest.$ac_objext conftest$ac_exeext
! 114376: if { (ac_try="$ac_link"
! 114377: case "(($ac_try" in
! 114378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114379: *) ac_try_echo=$ac_try;;
! 114380: esac
! 114381: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114382: (eval "$ac_link") 2>conftest.er1
! 114383: ac_status=$?
! 114384: grep -v '^ *+' conftest.er1 >conftest.err
! 114385: rm -f conftest.er1
! 114386: cat conftest.err >&5
! 114387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114388: (exit $ac_status); } && {
! 114389: test -z "$ac_c_werror_flag" ||
! 114390: test ! -s conftest.err
! 114391: } && test -s conftest$ac_exeext &&
! 114392: $as_test_x conftest$ac_exeext; then
1.1 misho 114393: ac_cv_lib_socket___dn_expand=yes
114394: else
1.1.1.3 ! misho 114395: echo "$as_me: failed program was:" >&5
! 114396: sed 's/^/| /' conftest.$ac_ext >&5
! 114397:
! 114398: ac_cv_lib_socket___dn_expand=no
1.1 misho 114399: fi
1.1.1.3 ! misho 114400:
! 114401: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114402: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114403: LIBS=$ac_check_lib_save_LIBS
114404: fi
1.1.1.3 ! misho 114405: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___dn_expand" >&5
! 114406: echo "${ECHO_T}$ac_cv_lib_socket___dn_expand" >&6; }
! 114407: if test $ac_cv_lib_socket___dn_expand = yes; then
1.1 misho 114408: found=yes
114409: else
114410: found=no
114411: fi
114412:
114413:
114414: fi
114415:
114416:
114417: if test "$found" = "yes"; then
114418: ac_libs=$LIBS
114419: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 114420: if test "$cross_compiling" = yes; then
1.1 misho 114421: found=no
114422: else
1.1.1.3 ! misho 114423: cat >conftest.$ac_ext <<_ACEOF
! 114424: /* confdefs.h. */
! 114425: _ACEOF
! 114426: cat confdefs.h >>conftest.$ac_ext
! 114427: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114428: /* end confdefs.h. */
114429: main() { return (0); }
114430: _ACEOF
1.1.1.3 ! misho 114431: rm -f conftest$ac_exeext
! 114432: if { (ac_try="$ac_link"
! 114433: case "(($ac_try" in
! 114434: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114435: *) ac_try_echo=$ac_try;;
! 114436: esac
! 114437: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114438: (eval "$ac_link") 2>&5
! 114439: ac_status=$?
! 114440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114441: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 114442: { (case "(($ac_try" in
! 114443: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114444: *) ac_try_echo=$ac_try;;
! 114445: esac
! 114446: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114447: (eval "$ac_try") 2>&5
! 114448: ac_status=$?
! 114449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114450: (exit $ac_status); }; }; then
1.1 misho 114451: found=yes
114452: else
1.1.1.3 ! misho 114453: echo "$as_me: program exited with status $ac_status" >&5
! 114454: echo "$as_me: failed program was:" >&5
! 114455: sed 's/^/| /' conftest.$ac_ext >&5
! 114456:
! 114457: ( exit $ac_status )
! 114458: found=no
1.1 misho 114459: fi
1.1.1.3 ! misho 114460: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 114461: fi
114462:
1.1.1.3 ! misho 114463:
1.1 misho 114464: LIBS=$ac_libs
114465: fi
114466:
114467: if test "$found" = "yes"; then
114468:
114469:
114470: case socket in
114471: c|c_r|pthread*) ;;
114472: *)
114473: LIBS="-lsocket $LIBS"
114474: ;;
114475: esac
114476:
114477:
114478:
1.1.1.3 ! misho 114479: cat >>confdefs.h <<\_ACEOF
! 114480: #define HAVE_DN_EXPAND 1
! 114481: _ACEOF
1.1 misho 114482:
114483:
1.1.1.3 ! misho 114484: cat >>confdefs.h <<\_ACEOF
! 114485: #define HAVE_LIBSOCKET 1
! 114486: _ACEOF
1.1 misho 114487:
114488: ac_cv_func_dn_expand=yes
114489: else
114490:
114491: :
114492:
114493: fi
114494:
114495:
114496: fi
114497:
114498:
114499: fi
114500:
114501: ;;
114502:
114503: esac
114504:
114505:
114506: unset ac_cv_func_dn_skipname
114507: unset ac_cv_func___dn_skipname
114508: unset found
114509:
1.1.1.3 ! misho 114510: { echo "$as_me:$LINENO: checking for dn_skipname" >&5
! 114511: echo $ECHO_N "checking for dn_skipname... $ECHO_C" >&6; }
! 114512: if test "${ac_cv_func_dn_skipname+set}" = set; then
! 114513: echo $ECHO_N "(cached) $ECHO_C" >&6
! 114514: else
! 114515: cat >conftest.$ac_ext <<_ACEOF
! 114516: /* confdefs.h. */
! 114517: _ACEOF
! 114518: cat confdefs.h >>conftest.$ac_ext
! 114519: cat >>conftest.$ac_ext <<_ACEOF
! 114520: /* end confdefs.h. */
! 114521: /* Define dn_skipname to an innocuous variant, in case <limits.h> declares dn_skipname.
! 114522: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 114523: #define dn_skipname innocuous_dn_skipname
! 114524:
! 114525: /* System header to define __stub macros and hopefully few prototypes,
! 114526: which can conflict with char dn_skipname (); below.
! 114527: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 114528: <limits.h> exists even on freestanding compilers. */
! 114529:
! 114530: #ifdef __STDC__
! 114531: # include <limits.h>
! 114532: #else
! 114533: # include <assert.h>
! 114534: #endif
! 114535:
! 114536: #undef dn_skipname
! 114537:
! 114538: /* Override any GCC internal prototype to avoid an error.
! 114539: Use char because int might match the return type of a GCC
! 114540: builtin and then its argument prototype would still apply. */
! 114541: #ifdef __cplusplus
! 114542: extern "C"
! 114543: #endif
! 114544: char dn_skipname ();
! 114545: /* The GNU C library defines this for functions which it implements
! 114546: to always fail with ENOSYS. Some functions are actually named
! 114547: something starting with __ and the normal name is an alias. */
! 114548: #if defined __stub_dn_skipname || defined __stub___dn_skipname
! 114549: choke me
! 114550: #endif
! 114551:
! 114552: int
! 114553: main ()
! 114554: {
! 114555: return dn_skipname ();
! 114556: ;
! 114557: return 0;
! 114558: }
! 114559: _ACEOF
! 114560: rm -f conftest.$ac_objext conftest$ac_exeext
! 114561: if { (ac_try="$ac_link"
! 114562: case "(($ac_try" in
! 114563: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114564: *) ac_try_echo=$ac_try;;
! 114565: esac
! 114566: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114567: (eval "$ac_link") 2>conftest.er1
! 114568: ac_status=$?
! 114569: grep -v '^ *+' conftest.er1 >conftest.err
! 114570: rm -f conftest.er1
! 114571: cat conftest.err >&5
! 114572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114573: (exit $ac_status); } && {
! 114574: test -z "$ac_c_werror_flag" ||
! 114575: test ! -s conftest.err
! 114576: } && test -s conftest$ac_exeext &&
! 114577: $as_test_x conftest$ac_exeext; then
! 114578: ac_cv_func_dn_skipname=yes
! 114579: else
! 114580: echo "$as_me: failed program was:" >&5
! 114581: sed 's/^/| /' conftest.$ac_ext >&5
! 114582:
! 114583: ac_cv_func_dn_skipname=no
! 114584: fi
! 114585:
! 114586: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114587: conftest$ac_exeext conftest.$ac_ext
! 114588: fi
! 114589: { echo "$as_me:$LINENO: result: $ac_cv_func_dn_skipname" >&5
! 114590: echo "${ECHO_T}$ac_cv_func_dn_skipname" >&6; }
! 114591: if test $ac_cv_func_dn_skipname = yes; then
1.1 misho 114592: found=yes
114593: else
1.1.1.3 ! misho 114594: { echo "$as_me:$LINENO: checking for __dn_skipname" >&5
! 114595: echo $ECHO_N "checking for __dn_skipname... $ECHO_C" >&6; }
! 114596: if test "${ac_cv_func___dn_skipname+set}" = set; then
! 114597: echo $ECHO_N "(cached) $ECHO_C" >&6
! 114598: else
! 114599: cat >conftest.$ac_ext <<_ACEOF
! 114600: /* confdefs.h. */
! 114601: _ACEOF
! 114602: cat confdefs.h >>conftest.$ac_ext
! 114603: cat >>conftest.$ac_ext <<_ACEOF
! 114604: /* end confdefs.h. */
! 114605: /* Define __dn_skipname to an innocuous variant, in case <limits.h> declares __dn_skipname.
! 114606: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 114607: #define __dn_skipname innocuous___dn_skipname
! 114608:
! 114609: /* System header to define __stub macros and hopefully few prototypes,
! 114610: which can conflict with char __dn_skipname (); below.
! 114611: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 114612: <limits.h> exists even on freestanding compilers. */
! 114613:
! 114614: #ifdef __STDC__
! 114615: # include <limits.h>
! 114616: #else
! 114617: # include <assert.h>
! 114618: #endif
! 114619:
! 114620: #undef __dn_skipname
! 114621:
! 114622: /* Override any GCC internal prototype to avoid an error.
! 114623: Use char because int might match the return type of a GCC
! 114624: builtin and then its argument prototype would still apply. */
! 114625: #ifdef __cplusplus
! 114626: extern "C"
! 114627: #endif
! 114628: char __dn_skipname ();
! 114629: /* The GNU C library defines this for functions which it implements
! 114630: to always fail with ENOSYS. Some functions are actually named
! 114631: something starting with __ and the normal name is an alias. */
! 114632: #if defined __stub___dn_skipname || defined __stub_____dn_skipname
! 114633: choke me
! 114634: #endif
! 114635:
! 114636: int
! 114637: main ()
! 114638: {
! 114639: return __dn_skipname ();
! 114640: ;
! 114641: return 0;
! 114642: }
! 114643: _ACEOF
! 114644: rm -f conftest.$ac_objext conftest$ac_exeext
! 114645: if { (ac_try="$ac_link"
! 114646: case "(($ac_try" in
! 114647: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114648: *) ac_try_echo=$ac_try;;
! 114649: esac
! 114650: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114651: (eval "$ac_link") 2>conftest.er1
! 114652: ac_status=$?
! 114653: grep -v '^ *+' conftest.er1 >conftest.err
! 114654: rm -f conftest.er1
! 114655: cat conftest.err >&5
! 114656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114657: (exit $ac_status); } && {
! 114658: test -z "$ac_c_werror_flag" ||
! 114659: test ! -s conftest.err
! 114660: } && test -s conftest$ac_exeext &&
! 114661: $as_test_x conftest$ac_exeext; then
! 114662: ac_cv_func___dn_skipname=yes
! 114663: else
! 114664: echo "$as_me: failed program was:" >&5
! 114665: sed 's/^/| /' conftest.$ac_ext >&5
! 114666:
! 114667: ac_cv_func___dn_skipname=no
! 114668: fi
! 114669:
! 114670: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114671: conftest$ac_exeext conftest.$ac_ext
! 114672: fi
! 114673: { echo "$as_me:$LINENO: result: $ac_cv_func___dn_skipname" >&5
! 114674: echo "${ECHO_T}$ac_cv_func___dn_skipname" >&6; }
! 114675: if test $ac_cv_func___dn_skipname = yes; then
1.1 misho 114676: found=yes
114677: else
114678: found=no
114679: fi
114680:
114681: fi
114682:
114683:
114684: case $found in
114685: yes)
114686:
1.1.1.3 ! misho 114687: cat >>confdefs.h <<\_ACEOF
! 114688: #define HAVE_DN_SKIPNAME 1
! 114689: _ACEOF
1.1 misho 114690:
114691: ac_cv_func_dn_skipname=yes
114692: ;;
114693:
114694: *)
114695:
114696: unset ac_cv_lib_resolv_dn_skipname
114697: unset ac_cv_lib_resolv___dn_skipname
114698: unset found
1.1.1.3 ! misho 114699: { echo "$as_me:$LINENO: checking for dn_skipname in -lresolv" >&5
! 114700: echo $ECHO_N "checking for dn_skipname in -lresolv... $ECHO_C" >&6; }
! 114701: if test "${ac_cv_lib_resolv_dn_skipname+set}" = set; then
! 114702: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114703: else
114704: ac_check_lib_save_LIBS=$LIBS
114705: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 114706: cat >conftest.$ac_ext <<_ACEOF
! 114707: /* confdefs.h. */
! 114708: _ACEOF
! 114709: cat confdefs.h >>conftest.$ac_ext
! 114710: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114711: /* end confdefs.h. */
114712:
114713: /* Override any GCC internal prototype to avoid an error.
114714: Use char because int might match the return type of a GCC
114715: builtin and then its argument prototype would still apply. */
114716: #ifdef __cplusplus
114717: extern "C"
114718: #endif
114719: char dn_skipname ();
114720: int
114721: main ()
114722: {
114723: return dn_skipname ();
114724: ;
114725: return 0;
114726: }
114727: _ACEOF
1.1.1.3 ! misho 114728: rm -f conftest.$ac_objext conftest$ac_exeext
! 114729: if { (ac_try="$ac_link"
! 114730: case "(($ac_try" in
! 114731: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114732: *) ac_try_echo=$ac_try;;
! 114733: esac
! 114734: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114735: (eval "$ac_link") 2>conftest.er1
! 114736: ac_status=$?
! 114737: grep -v '^ *+' conftest.er1 >conftest.err
! 114738: rm -f conftest.er1
! 114739: cat conftest.err >&5
! 114740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114741: (exit $ac_status); } && {
! 114742: test -z "$ac_c_werror_flag" ||
! 114743: test ! -s conftest.err
! 114744: } && test -s conftest$ac_exeext &&
! 114745: $as_test_x conftest$ac_exeext; then
1.1 misho 114746: ac_cv_lib_resolv_dn_skipname=yes
114747: else
1.1.1.3 ! misho 114748: echo "$as_me: failed program was:" >&5
! 114749: sed 's/^/| /' conftest.$ac_ext >&5
! 114750:
! 114751: ac_cv_lib_resolv_dn_skipname=no
1.1 misho 114752: fi
1.1.1.3 ! misho 114753:
! 114754: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114755: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114756: LIBS=$ac_check_lib_save_LIBS
114757: fi
1.1.1.3 ! misho 114758: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_skipname" >&5
! 114759: echo "${ECHO_T}$ac_cv_lib_resolv_dn_skipname" >&6; }
! 114760: if test $ac_cv_lib_resolv_dn_skipname = yes; then
1.1 misho 114761: found=yes
114762: else
114763:
1.1.1.3 ! misho 114764: { echo "$as_me:$LINENO: checking for __dn_skipname in -lresolv" >&5
! 114765: echo $ECHO_N "checking for __dn_skipname in -lresolv... $ECHO_C" >&6; }
! 114766: if test "${ac_cv_lib_resolv___dn_skipname+set}" = set; then
! 114767: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114768: else
114769: ac_check_lib_save_LIBS=$LIBS
114770: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 114771: cat >conftest.$ac_ext <<_ACEOF
! 114772: /* confdefs.h. */
! 114773: _ACEOF
! 114774: cat confdefs.h >>conftest.$ac_ext
! 114775: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114776: /* end confdefs.h. */
114777:
114778: /* Override any GCC internal prototype to avoid an error.
114779: Use char because int might match the return type of a GCC
114780: builtin and then its argument prototype would still apply. */
114781: #ifdef __cplusplus
114782: extern "C"
114783: #endif
114784: char __dn_skipname ();
114785: int
114786: main ()
114787: {
114788: return __dn_skipname ();
114789: ;
114790: return 0;
114791: }
114792: _ACEOF
1.1.1.3 ! misho 114793: rm -f conftest.$ac_objext conftest$ac_exeext
! 114794: if { (ac_try="$ac_link"
! 114795: case "(($ac_try" in
! 114796: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114797: *) ac_try_echo=$ac_try;;
! 114798: esac
! 114799: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114800: (eval "$ac_link") 2>conftest.er1
! 114801: ac_status=$?
! 114802: grep -v '^ *+' conftest.er1 >conftest.err
! 114803: rm -f conftest.er1
! 114804: cat conftest.err >&5
! 114805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114806: (exit $ac_status); } && {
! 114807: test -z "$ac_c_werror_flag" ||
! 114808: test ! -s conftest.err
! 114809: } && test -s conftest$ac_exeext &&
! 114810: $as_test_x conftest$ac_exeext; then
1.1 misho 114811: ac_cv_lib_resolv___dn_skipname=yes
114812: else
1.1.1.3 ! misho 114813: echo "$as_me: failed program was:" >&5
! 114814: sed 's/^/| /' conftest.$ac_ext >&5
! 114815:
! 114816: ac_cv_lib_resolv___dn_skipname=no
1.1 misho 114817: fi
1.1.1.3 ! misho 114818:
! 114819: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114820: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114821: LIBS=$ac_check_lib_save_LIBS
114822: fi
1.1.1.3 ! misho 114823: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_skipname" >&5
! 114824: echo "${ECHO_T}$ac_cv_lib_resolv___dn_skipname" >&6; }
! 114825: if test $ac_cv_lib_resolv___dn_skipname = yes; then
1.1 misho 114826: found=yes
114827: else
114828: found=no
114829: fi
114830:
114831:
114832: fi
114833:
114834:
114835: if test "$found" = "yes"; then
114836: ac_libs=$LIBS
114837: LIBS="$LIBS -lresolv"
1.1.1.3 ! misho 114838: if test "$cross_compiling" = yes; then
1.1 misho 114839: found=no
114840: else
1.1.1.3 ! misho 114841: cat >conftest.$ac_ext <<_ACEOF
! 114842: /* confdefs.h. */
! 114843: _ACEOF
! 114844: cat confdefs.h >>conftest.$ac_ext
! 114845: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114846: /* end confdefs.h. */
114847: main() { return (0); }
114848: _ACEOF
1.1.1.3 ! misho 114849: rm -f conftest$ac_exeext
! 114850: if { (ac_try="$ac_link"
! 114851: case "(($ac_try" in
! 114852: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114853: *) ac_try_echo=$ac_try;;
! 114854: esac
! 114855: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114856: (eval "$ac_link") 2>&5
! 114857: ac_status=$?
! 114858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114859: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 114860: { (case "(($ac_try" in
! 114861: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114862: *) ac_try_echo=$ac_try;;
! 114863: esac
! 114864: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114865: (eval "$ac_try") 2>&5
! 114866: ac_status=$?
! 114867: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114868: (exit $ac_status); }; }; then
1.1 misho 114869: found=yes
114870: else
1.1.1.3 ! misho 114871: echo "$as_me: program exited with status $ac_status" >&5
! 114872: echo "$as_me: failed program was:" >&5
! 114873: sed 's/^/| /' conftest.$ac_ext >&5
! 114874:
! 114875: ( exit $ac_status )
! 114876: found=no
1.1 misho 114877: fi
1.1.1.3 ! misho 114878: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 114879: fi
114880:
1.1.1.3 ! misho 114881:
1.1 misho 114882: LIBS=$ac_libs
114883: fi
114884:
114885: if test "$found" = "yes"; then
114886:
114887:
114888: case resolv in
114889: c|c_r|pthread*) ;;
114890: *)
114891: LIBS="-lresolv $LIBS"
114892: ;;
114893: esac
114894:
114895:
114896:
1.1.1.3 ! misho 114897: cat >>confdefs.h <<\_ACEOF
! 114898: #define HAVE_DN_SKIPNAME 1
! 114899: _ACEOF
1.1 misho 114900:
114901:
1.1.1.3 ! misho 114902: cat >>confdefs.h <<\_ACEOF
! 114903: #define HAVE_LIBRESOLV 1
! 114904: _ACEOF
1.1 misho 114905:
114906: ac_cv_func_dn_skipname=yes
114907: else
114908:
114909:
114910: unset ac_cv_lib_bind_dn_skipname
114911: unset ac_cv_lib_bind___dn_skipname
114912: unset found
1.1.1.3 ! misho 114913: { echo "$as_me:$LINENO: checking for dn_skipname in -lbind" >&5
! 114914: echo $ECHO_N "checking for dn_skipname in -lbind... $ECHO_C" >&6; }
! 114915: if test "${ac_cv_lib_bind_dn_skipname+set}" = set; then
! 114916: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114917: else
114918: ac_check_lib_save_LIBS=$LIBS
114919: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 114920: cat >conftest.$ac_ext <<_ACEOF
! 114921: /* confdefs.h. */
! 114922: _ACEOF
! 114923: cat confdefs.h >>conftest.$ac_ext
! 114924: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114925: /* end confdefs.h. */
114926:
114927: /* Override any GCC internal prototype to avoid an error.
114928: Use char because int might match the return type of a GCC
114929: builtin and then its argument prototype would still apply. */
114930: #ifdef __cplusplus
114931: extern "C"
114932: #endif
114933: char dn_skipname ();
114934: int
114935: main ()
114936: {
114937: return dn_skipname ();
114938: ;
114939: return 0;
114940: }
114941: _ACEOF
1.1.1.3 ! misho 114942: rm -f conftest.$ac_objext conftest$ac_exeext
! 114943: if { (ac_try="$ac_link"
! 114944: case "(($ac_try" in
! 114945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 114946: *) ac_try_echo=$ac_try;;
! 114947: esac
! 114948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 114949: (eval "$ac_link") 2>conftest.er1
! 114950: ac_status=$?
! 114951: grep -v '^ *+' conftest.er1 >conftest.err
! 114952: rm -f conftest.er1
! 114953: cat conftest.err >&5
! 114954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 114955: (exit $ac_status); } && {
! 114956: test -z "$ac_c_werror_flag" ||
! 114957: test ! -s conftest.err
! 114958: } && test -s conftest$ac_exeext &&
! 114959: $as_test_x conftest$ac_exeext; then
1.1 misho 114960: ac_cv_lib_bind_dn_skipname=yes
114961: else
1.1.1.3 ! misho 114962: echo "$as_me: failed program was:" >&5
! 114963: sed 's/^/| /' conftest.$ac_ext >&5
! 114964:
! 114965: ac_cv_lib_bind_dn_skipname=no
1.1 misho 114966: fi
1.1.1.3 ! misho 114967:
! 114968: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 114969: conftest$ac_exeext conftest.$ac_ext
1.1 misho 114970: LIBS=$ac_check_lib_save_LIBS
114971: fi
1.1.1.3 ! misho 114972: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_dn_skipname" >&5
! 114973: echo "${ECHO_T}$ac_cv_lib_bind_dn_skipname" >&6; }
! 114974: if test $ac_cv_lib_bind_dn_skipname = yes; then
1.1 misho 114975: found=yes
114976: else
114977:
1.1.1.3 ! misho 114978: { echo "$as_me:$LINENO: checking for __dn_skipname in -lbind" >&5
! 114979: echo $ECHO_N "checking for __dn_skipname in -lbind... $ECHO_C" >&6; }
! 114980: if test "${ac_cv_lib_bind___dn_skipname+set}" = set; then
! 114981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 114982: else
114983: ac_check_lib_save_LIBS=$LIBS
114984: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 114985: cat >conftest.$ac_ext <<_ACEOF
! 114986: /* confdefs.h. */
! 114987: _ACEOF
! 114988: cat confdefs.h >>conftest.$ac_ext
! 114989: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 114990: /* end confdefs.h. */
114991:
114992: /* Override any GCC internal prototype to avoid an error.
114993: Use char because int might match the return type of a GCC
114994: builtin and then its argument prototype would still apply. */
114995: #ifdef __cplusplus
114996: extern "C"
114997: #endif
114998: char __dn_skipname ();
114999: int
115000: main ()
115001: {
115002: return __dn_skipname ();
115003: ;
115004: return 0;
115005: }
115006: _ACEOF
1.1.1.3 ! misho 115007: rm -f conftest.$ac_objext conftest$ac_exeext
! 115008: if { (ac_try="$ac_link"
! 115009: case "(($ac_try" in
! 115010: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115011: *) ac_try_echo=$ac_try;;
! 115012: esac
! 115013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115014: (eval "$ac_link") 2>conftest.er1
! 115015: ac_status=$?
! 115016: grep -v '^ *+' conftest.er1 >conftest.err
! 115017: rm -f conftest.er1
! 115018: cat conftest.err >&5
! 115019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115020: (exit $ac_status); } && {
! 115021: test -z "$ac_c_werror_flag" ||
! 115022: test ! -s conftest.err
! 115023: } && test -s conftest$ac_exeext &&
! 115024: $as_test_x conftest$ac_exeext; then
1.1 misho 115025: ac_cv_lib_bind___dn_skipname=yes
115026: else
1.1.1.3 ! misho 115027: echo "$as_me: failed program was:" >&5
! 115028: sed 's/^/| /' conftest.$ac_ext >&5
! 115029:
! 115030: ac_cv_lib_bind___dn_skipname=no
1.1 misho 115031: fi
1.1.1.3 ! misho 115032:
! 115033: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115034: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115035: LIBS=$ac_check_lib_save_LIBS
115036: fi
1.1.1.3 ! misho 115037: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind___dn_skipname" >&5
! 115038: echo "${ECHO_T}$ac_cv_lib_bind___dn_skipname" >&6; }
! 115039: if test $ac_cv_lib_bind___dn_skipname = yes; then
1.1 misho 115040: found=yes
115041: else
115042: found=no
115043: fi
115044:
115045:
115046: fi
115047:
115048:
115049: if test "$found" = "yes"; then
115050: ac_libs=$LIBS
115051: LIBS="$LIBS -lbind"
1.1.1.3 ! misho 115052: if test "$cross_compiling" = yes; then
1.1 misho 115053: found=no
115054: else
1.1.1.3 ! misho 115055: cat >conftest.$ac_ext <<_ACEOF
! 115056: /* confdefs.h. */
! 115057: _ACEOF
! 115058: cat confdefs.h >>conftest.$ac_ext
! 115059: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115060: /* end confdefs.h. */
115061: main() { return (0); }
115062: _ACEOF
1.1.1.3 ! misho 115063: rm -f conftest$ac_exeext
! 115064: if { (ac_try="$ac_link"
! 115065: case "(($ac_try" in
! 115066: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115067: *) ac_try_echo=$ac_try;;
! 115068: esac
! 115069: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115070: (eval "$ac_link") 2>&5
! 115071: ac_status=$?
! 115072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115073: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 115074: { (case "(($ac_try" in
! 115075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115076: *) ac_try_echo=$ac_try;;
! 115077: esac
! 115078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115079: (eval "$ac_try") 2>&5
! 115080: ac_status=$?
! 115081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115082: (exit $ac_status); }; }; then
1.1 misho 115083: found=yes
115084: else
1.1.1.3 ! misho 115085: echo "$as_me: program exited with status $ac_status" >&5
! 115086: echo "$as_me: failed program was:" >&5
! 115087: sed 's/^/| /' conftest.$ac_ext >&5
! 115088:
! 115089: ( exit $ac_status )
! 115090: found=no
1.1 misho 115091: fi
1.1.1.3 ! misho 115092: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 115093: fi
115094:
1.1.1.3 ! misho 115095:
1.1 misho 115096: LIBS=$ac_libs
115097: fi
115098:
115099: if test "$found" = "yes"; then
115100:
115101:
115102: case bind in
115103: c|c_r|pthread*) ;;
115104: *)
115105: LIBS="-lbind $LIBS"
115106: ;;
115107: esac
115108:
115109:
115110:
1.1.1.3 ! misho 115111: cat >>confdefs.h <<\_ACEOF
! 115112: #define HAVE_DN_SKIPNAME 1
! 115113: _ACEOF
1.1 misho 115114:
115115:
1.1.1.3 ! misho 115116: cat >>confdefs.h <<\_ACEOF
! 115117: #define HAVE_LIBBIND 1
! 115118: _ACEOF
1.1 misho 115119:
115120: ac_cv_func_dn_skipname=yes
115121: else
115122:
115123:
115124: unset ac_cv_lib_socket_dn_skipname
115125: unset ac_cv_lib_socket___dn_skipname
115126: unset found
1.1.1.3 ! misho 115127: { echo "$as_me:$LINENO: checking for dn_skipname in -lsocket" >&5
! 115128: echo $ECHO_N "checking for dn_skipname in -lsocket... $ECHO_C" >&6; }
! 115129: if test "${ac_cv_lib_socket_dn_skipname+set}" = set; then
! 115130: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115131: else
115132: ac_check_lib_save_LIBS=$LIBS
115133: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 115134: cat >conftest.$ac_ext <<_ACEOF
! 115135: /* confdefs.h. */
! 115136: _ACEOF
! 115137: cat confdefs.h >>conftest.$ac_ext
! 115138: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115139: /* end confdefs.h. */
115140:
115141: /* Override any GCC internal prototype to avoid an error.
115142: Use char because int might match the return type of a GCC
115143: builtin and then its argument prototype would still apply. */
115144: #ifdef __cplusplus
115145: extern "C"
115146: #endif
115147: char dn_skipname ();
115148: int
115149: main ()
115150: {
115151: return dn_skipname ();
115152: ;
115153: return 0;
115154: }
115155: _ACEOF
1.1.1.3 ! misho 115156: rm -f conftest.$ac_objext conftest$ac_exeext
! 115157: if { (ac_try="$ac_link"
! 115158: case "(($ac_try" in
! 115159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115160: *) ac_try_echo=$ac_try;;
! 115161: esac
! 115162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115163: (eval "$ac_link") 2>conftest.er1
! 115164: ac_status=$?
! 115165: grep -v '^ *+' conftest.er1 >conftest.err
! 115166: rm -f conftest.er1
! 115167: cat conftest.err >&5
! 115168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115169: (exit $ac_status); } && {
! 115170: test -z "$ac_c_werror_flag" ||
! 115171: test ! -s conftest.err
! 115172: } && test -s conftest$ac_exeext &&
! 115173: $as_test_x conftest$ac_exeext; then
1.1 misho 115174: ac_cv_lib_socket_dn_skipname=yes
115175: else
1.1.1.3 ! misho 115176: echo "$as_me: failed program was:" >&5
! 115177: sed 's/^/| /' conftest.$ac_ext >&5
! 115178:
! 115179: ac_cv_lib_socket_dn_skipname=no
1.1 misho 115180: fi
1.1.1.3 ! misho 115181:
! 115182: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115183: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115184: LIBS=$ac_check_lib_save_LIBS
115185: fi
1.1.1.3 ! misho 115186: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_dn_skipname" >&5
! 115187: echo "${ECHO_T}$ac_cv_lib_socket_dn_skipname" >&6; }
! 115188: if test $ac_cv_lib_socket_dn_skipname = yes; then
1.1 misho 115189: found=yes
115190: else
115191:
1.1.1.3 ! misho 115192: { echo "$as_me:$LINENO: checking for __dn_skipname in -lsocket" >&5
! 115193: echo $ECHO_N "checking for __dn_skipname in -lsocket... $ECHO_C" >&6; }
! 115194: if test "${ac_cv_lib_socket___dn_skipname+set}" = set; then
! 115195: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115196: else
115197: ac_check_lib_save_LIBS=$LIBS
115198: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 115199: cat >conftest.$ac_ext <<_ACEOF
! 115200: /* confdefs.h. */
! 115201: _ACEOF
! 115202: cat confdefs.h >>conftest.$ac_ext
! 115203: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115204: /* end confdefs.h. */
115205:
115206: /* Override any GCC internal prototype to avoid an error.
115207: Use char because int might match the return type of a GCC
115208: builtin and then its argument prototype would still apply. */
115209: #ifdef __cplusplus
115210: extern "C"
115211: #endif
115212: char __dn_skipname ();
115213: int
115214: main ()
115215: {
115216: return __dn_skipname ();
115217: ;
115218: return 0;
115219: }
115220: _ACEOF
1.1.1.3 ! misho 115221: rm -f conftest.$ac_objext conftest$ac_exeext
! 115222: if { (ac_try="$ac_link"
! 115223: case "(($ac_try" in
! 115224: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115225: *) ac_try_echo=$ac_try;;
! 115226: esac
! 115227: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115228: (eval "$ac_link") 2>conftest.er1
! 115229: ac_status=$?
! 115230: grep -v '^ *+' conftest.er1 >conftest.err
! 115231: rm -f conftest.er1
! 115232: cat conftest.err >&5
! 115233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115234: (exit $ac_status); } && {
! 115235: test -z "$ac_c_werror_flag" ||
! 115236: test ! -s conftest.err
! 115237: } && test -s conftest$ac_exeext &&
! 115238: $as_test_x conftest$ac_exeext; then
1.1 misho 115239: ac_cv_lib_socket___dn_skipname=yes
115240: else
1.1.1.3 ! misho 115241: echo "$as_me: failed program was:" >&5
! 115242: sed 's/^/| /' conftest.$ac_ext >&5
! 115243:
! 115244: ac_cv_lib_socket___dn_skipname=no
1.1 misho 115245: fi
1.1.1.3 ! misho 115246:
! 115247: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115248: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115249: LIBS=$ac_check_lib_save_LIBS
115250: fi
1.1.1.3 ! misho 115251: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___dn_skipname" >&5
! 115252: echo "${ECHO_T}$ac_cv_lib_socket___dn_skipname" >&6; }
! 115253: if test $ac_cv_lib_socket___dn_skipname = yes; then
1.1 misho 115254: found=yes
115255: else
115256: found=no
115257: fi
115258:
115259:
115260: fi
115261:
115262:
115263: if test "$found" = "yes"; then
115264: ac_libs=$LIBS
115265: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 115266: if test "$cross_compiling" = yes; then
1.1 misho 115267: found=no
115268: else
1.1.1.3 ! misho 115269: cat >conftest.$ac_ext <<_ACEOF
! 115270: /* confdefs.h. */
! 115271: _ACEOF
! 115272: cat confdefs.h >>conftest.$ac_ext
! 115273: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115274: /* end confdefs.h. */
115275: main() { return (0); }
115276: _ACEOF
1.1.1.3 ! misho 115277: rm -f conftest$ac_exeext
! 115278: if { (ac_try="$ac_link"
! 115279: case "(($ac_try" in
! 115280: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115281: *) ac_try_echo=$ac_try;;
! 115282: esac
! 115283: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115284: (eval "$ac_link") 2>&5
! 115285: ac_status=$?
! 115286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115287: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 115288: { (case "(($ac_try" in
! 115289: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115290: *) ac_try_echo=$ac_try;;
! 115291: esac
! 115292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115293: (eval "$ac_try") 2>&5
! 115294: ac_status=$?
! 115295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115296: (exit $ac_status); }; }; then
1.1 misho 115297: found=yes
115298: else
1.1.1.3 ! misho 115299: echo "$as_me: program exited with status $ac_status" >&5
! 115300: echo "$as_me: failed program was:" >&5
! 115301: sed 's/^/| /' conftest.$ac_ext >&5
! 115302:
! 115303: ( exit $ac_status )
! 115304: found=no
1.1 misho 115305: fi
1.1.1.3 ! misho 115306: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 115307: fi
115308:
1.1.1.3 ! misho 115309:
1.1 misho 115310: LIBS=$ac_libs
115311: fi
115312:
115313: if test "$found" = "yes"; then
115314:
115315:
115316: case socket in
115317: c|c_r|pthread*) ;;
115318: *)
115319: LIBS="-lsocket $LIBS"
115320: ;;
115321: esac
115322:
115323:
115324:
1.1.1.3 ! misho 115325: cat >>confdefs.h <<\_ACEOF
! 115326: #define HAVE_DN_SKIPNAME 1
! 115327: _ACEOF
1.1 misho 115328:
115329:
1.1.1.3 ! misho 115330: cat >>confdefs.h <<\_ACEOF
! 115331: #define HAVE_LIBSOCKET 1
! 115332: _ACEOF
1.1 misho 115333:
115334: ac_cv_func_dn_skipname=yes
115335: else
115336:
115337: :
115338:
115339: fi
115340:
115341:
115342: fi
115343:
115344:
1.1.1.3 ! misho 115345: fi
! 115346:
! 115347: ;;
! 115348:
! 115349: esac
! 115350:
! 115351:
! 115352:
! 115353:
! 115354: unset ac_cv_func_res_search
! 115355: unset ac_cv_func___res_search
! 115356: unset found
! 115357:
! 115358: { echo "$as_me:$LINENO: checking for res_search" >&5
! 115359: echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
! 115360: if test "${ac_cv_func_res_search+set}" = set; then
! 115361: echo $ECHO_N "(cached) $ECHO_C" >&6
! 115362: else
! 115363: cat >conftest.$ac_ext <<_ACEOF
! 115364: /* confdefs.h. */
! 115365: _ACEOF
! 115366: cat confdefs.h >>conftest.$ac_ext
! 115367: cat >>conftest.$ac_ext <<_ACEOF
! 115368: /* end confdefs.h. */
! 115369: /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
! 115370: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 115371: #define res_search innocuous_res_search
! 115372:
! 115373: /* System header to define __stub macros and hopefully few prototypes,
! 115374: which can conflict with char res_search (); below.
! 115375: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 115376: <limits.h> exists even on freestanding compilers. */
! 115377:
! 115378: #ifdef __STDC__
! 115379: # include <limits.h>
! 115380: #else
! 115381: # include <assert.h>
! 115382: #endif
! 115383:
! 115384: #undef res_search
! 115385:
! 115386: /* Override any GCC internal prototype to avoid an error.
! 115387: Use char because int might match the return type of a GCC
! 115388: builtin and then its argument prototype would still apply. */
! 115389: #ifdef __cplusplus
! 115390: extern "C"
! 115391: #endif
! 115392: char res_search ();
! 115393: /* The GNU C library defines this for functions which it implements
! 115394: to always fail with ENOSYS. Some functions are actually named
! 115395: something starting with __ and the normal name is an alias. */
! 115396: #if defined __stub_res_search || defined __stub___res_search
! 115397: choke me
! 115398: #endif
! 115399:
! 115400: int
! 115401: main ()
! 115402: {
! 115403: return res_search ();
! 115404: ;
! 115405: return 0;
! 115406: }
! 115407: _ACEOF
! 115408: rm -f conftest.$ac_objext conftest$ac_exeext
! 115409: if { (ac_try="$ac_link"
! 115410: case "(($ac_try" in
! 115411: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115412: *) ac_try_echo=$ac_try;;
! 115413: esac
! 115414: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115415: (eval "$ac_link") 2>conftest.er1
! 115416: ac_status=$?
! 115417: grep -v '^ *+' conftest.er1 >conftest.err
! 115418: rm -f conftest.er1
! 115419: cat conftest.err >&5
! 115420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115421: (exit $ac_status); } && {
! 115422: test -z "$ac_c_werror_flag" ||
! 115423: test ! -s conftest.err
! 115424: } && test -s conftest$ac_exeext &&
! 115425: $as_test_x conftest$ac_exeext; then
! 115426: ac_cv_func_res_search=yes
! 115427: else
! 115428: echo "$as_me: failed program was:" >&5
! 115429: sed 's/^/| /' conftest.$ac_ext >&5
! 115430:
! 115431: ac_cv_func_res_search=no
! 115432: fi
! 115433:
! 115434: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115435: conftest$ac_exeext conftest.$ac_ext
! 115436: fi
! 115437: { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
! 115438: echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
! 115439: if test $ac_cv_func_res_search = yes; then
! 115440: found=yes
! 115441: else
! 115442: { echo "$as_me:$LINENO: checking for __res_search" >&5
! 115443: echo $ECHO_N "checking for __res_search... $ECHO_C" >&6; }
! 115444: if test "${ac_cv_func___res_search+set}" = set; then
! 115445: echo $ECHO_N "(cached) $ECHO_C" >&6
! 115446: else
! 115447: cat >conftest.$ac_ext <<_ACEOF
! 115448: /* confdefs.h. */
! 115449: _ACEOF
! 115450: cat confdefs.h >>conftest.$ac_ext
! 115451: cat >>conftest.$ac_ext <<_ACEOF
! 115452: /* end confdefs.h. */
! 115453: /* Define __res_search to an innocuous variant, in case <limits.h> declares __res_search.
! 115454: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 115455: #define __res_search innocuous___res_search
1.1 misho 115456:
1.1.1.3 ! misho 115457: /* System header to define __stub macros and hopefully few prototypes,
! 115458: which can conflict with char __res_search (); below.
! 115459: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 115460: <limits.h> exists even on freestanding compilers. */
1.1 misho 115461:
1.1.1.3 ! misho 115462: #ifdef __STDC__
! 115463: # include <limits.h>
! 115464: #else
! 115465: # include <assert.h>
! 115466: #endif
1.1 misho 115467:
1.1.1.3 ! misho 115468: #undef __res_search
1.1 misho 115469:
1.1.1.3 ! misho 115470: /* Override any GCC internal prototype to avoid an error.
! 115471: Use char because int might match the return type of a GCC
! 115472: builtin and then its argument prototype would still apply. */
! 115473: #ifdef __cplusplus
! 115474: extern "C"
! 115475: #endif
! 115476: char __res_search ();
! 115477: /* The GNU C library defines this for functions which it implements
! 115478: to always fail with ENOSYS. Some functions are actually named
! 115479: something starting with __ and the normal name is an alias. */
! 115480: #if defined __stub___res_search || defined __stub_____res_search
! 115481: choke me
! 115482: #endif
1.1 misho 115483:
1.1.1.3 ! misho 115484: int
! 115485: main ()
! 115486: {
! 115487: return __res_search ();
! 115488: ;
! 115489: return 0;
! 115490: }
! 115491: _ACEOF
! 115492: rm -f conftest.$ac_objext conftest$ac_exeext
! 115493: if { (ac_try="$ac_link"
! 115494: case "(($ac_try" in
! 115495: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115496: *) ac_try_echo=$ac_try;;
! 115497: esac
! 115498: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115499: (eval "$ac_link") 2>conftest.er1
! 115500: ac_status=$?
! 115501: grep -v '^ *+' conftest.er1 >conftest.err
! 115502: rm -f conftest.er1
! 115503: cat conftest.err >&5
! 115504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115505: (exit $ac_status); } && {
! 115506: test -z "$ac_c_werror_flag" ||
! 115507: test ! -s conftest.err
! 115508: } && test -s conftest$ac_exeext &&
! 115509: $as_test_x conftest$ac_exeext; then
! 115510: ac_cv_func___res_search=yes
! 115511: else
! 115512: echo "$as_me: failed program was:" >&5
! 115513: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 115514:
1.1.1.3 ! misho 115515: ac_cv_func___res_search=no
! 115516: fi
1.1 misho 115517:
1.1.1.3 ! misho 115518: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115519: conftest$ac_exeext conftest.$ac_ext
! 115520: fi
! 115521: { echo "$as_me:$LINENO: result: $ac_cv_func___res_search" >&5
! 115522: echo "${ECHO_T}$ac_cv_func___res_search" >&6; }
! 115523: if test $ac_cv_func___res_search = yes; then
1.1 misho 115524: found=yes
115525: else
115526: found=no
115527: fi
115528:
115529: fi
115530:
115531:
115532: case $found in
115533: yes)
115534:
1.1.1.3 ! misho 115535: cat >>confdefs.h <<\_ACEOF
! 115536: #define HAVE_RES_SEARCH 1
! 115537: _ACEOF
1.1 misho 115538:
115539: ac_cv_func_res_search=yes
115540: ;;
115541:
115542: *)
115543:
115544: unset ac_cv_lib_resolv_res_search
115545: unset ac_cv_lib_resolv___res_search
115546: unset found
1.1.1.3 ! misho 115547: { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
! 115548: echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
! 115549: if test "${ac_cv_lib_resolv_res_search+set}" = set; then
! 115550: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115551: else
115552: ac_check_lib_save_LIBS=$LIBS
115553: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 115554: cat >conftest.$ac_ext <<_ACEOF
! 115555: /* confdefs.h. */
! 115556: _ACEOF
! 115557: cat confdefs.h >>conftest.$ac_ext
! 115558: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115559: /* end confdefs.h. */
115560:
115561: /* Override any GCC internal prototype to avoid an error.
115562: Use char because int might match the return type of a GCC
115563: builtin and then its argument prototype would still apply. */
115564: #ifdef __cplusplus
115565: extern "C"
115566: #endif
115567: char res_search ();
115568: int
115569: main ()
115570: {
115571: return res_search ();
115572: ;
115573: return 0;
115574: }
115575: _ACEOF
1.1.1.3 ! misho 115576: rm -f conftest.$ac_objext conftest$ac_exeext
! 115577: if { (ac_try="$ac_link"
! 115578: case "(($ac_try" in
! 115579: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115580: *) ac_try_echo=$ac_try;;
! 115581: esac
! 115582: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115583: (eval "$ac_link") 2>conftest.er1
! 115584: ac_status=$?
! 115585: grep -v '^ *+' conftest.er1 >conftest.err
! 115586: rm -f conftest.er1
! 115587: cat conftest.err >&5
! 115588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115589: (exit $ac_status); } && {
! 115590: test -z "$ac_c_werror_flag" ||
! 115591: test ! -s conftest.err
! 115592: } && test -s conftest$ac_exeext &&
! 115593: $as_test_x conftest$ac_exeext; then
1.1 misho 115594: ac_cv_lib_resolv_res_search=yes
115595: else
1.1.1.3 ! misho 115596: echo "$as_me: failed program was:" >&5
! 115597: sed 's/^/| /' conftest.$ac_ext >&5
! 115598:
! 115599: ac_cv_lib_resolv_res_search=no
1.1 misho 115600: fi
1.1.1.3 ! misho 115601:
! 115602: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115603: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115604: LIBS=$ac_check_lib_save_LIBS
115605: fi
1.1.1.3 ! misho 115606: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
! 115607: echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
! 115608: if test $ac_cv_lib_resolv_res_search = yes; then
1.1 misho 115609: found=yes
115610: else
115611:
1.1.1.3 ! misho 115612: { echo "$as_me:$LINENO: checking for __res_search in -lresolv" >&5
! 115613: echo $ECHO_N "checking for __res_search in -lresolv... $ECHO_C" >&6; }
! 115614: if test "${ac_cv_lib_resolv___res_search+set}" = set; then
! 115615: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115616: else
115617: ac_check_lib_save_LIBS=$LIBS
115618: LIBS="-lresolv $LIBS"
1.1.1.3 ! misho 115619: cat >conftest.$ac_ext <<_ACEOF
! 115620: /* confdefs.h. */
! 115621: _ACEOF
! 115622: cat confdefs.h >>conftest.$ac_ext
! 115623: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115624: /* end confdefs.h. */
115625:
115626: /* Override any GCC internal prototype to avoid an error.
115627: Use char because int might match the return type of a GCC
115628: builtin and then its argument prototype would still apply. */
115629: #ifdef __cplusplus
115630: extern "C"
115631: #endif
115632: char __res_search ();
115633: int
115634: main ()
115635: {
115636: return __res_search ();
115637: ;
115638: return 0;
115639: }
115640: _ACEOF
1.1.1.3 ! misho 115641: rm -f conftest.$ac_objext conftest$ac_exeext
! 115642: if { (ac_try="$ac_link"
! 115643: case "(($ac_try" in
! 115644: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115645: *) ac_try_echo=$ac_try;;
! 115646: esac
! 115647: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115648: (eval "$ac_link") 2>conftest.er1
! 115649: ac_status=$?
! 115650: grep -v '^ *+' conftest.er1 >conftest.err
! 115651: rm -f conftest.er1
! 115652: cat conftest.err >&5
! 115653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115654: (exit $ac_status); } && {
! 115655: test -z "$ac_c_werror_flag" ||
! 115656: test ! -s conftest.err
! 115657: } && test -s conftest$ac_exeext &&
! 115658: $as_test_x conftest$ac_exeext; then
1.1 misho 115659: ac_cv_lib_resolv___res_search=yes
115660: else
1.1.1.3 ! misho 115661: echo "$as_me: failed program was:" >&5
! 115662: sed 's/^/| /' conftest.$ac_ext >&5
! 115663:
! 115664: ac_cv_lib_resolv___res_search=no
1.1 misho 115665: fi
1.1.1.3 ! misho 115666:
! 115667: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115668: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115669: LIBS=$ac_check_lib_save_LIBS
115670: fi
1.1.1.3 ! misho 115671: { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_search" >&5
! 115672: echo "${ECHO_T}$ac_cv_lib_resolv___res_search" >&6; }
! 115673: if test $ac_cv_lib_resolv___res_search = yes; then
1.1 misho 115674: found=yes
115675: else
115676: found=no
115677: fi
115678:
115679:
115680: fi
115681:
115682:
115683: if test "$found" = "yes"; then
115684: ac_libs=$LIBS
115685: LIBS="$LIBS -lresolv"
1.1.1.3 ! misho 115686: if test "$cross_compiling" = yes; then
1.1 misho 115687: found=no
115688: else
1.1.1.3 ! misho 115689: cat >conftest.$ac_ext <<_ACEOF
! 115690: /* confdefs.h. */
! 115691: _ACEOF
! 115692: cat confdefs.h >>conftest.$ac_ext
! 115693: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115694: /* end confdefs.h. */
115695: main() { return (0); }
115696: _ACEOF
1.1.1.3 ! misho 115697: rm -f conftest$ac_exeext
! 115698: if { (ac_try="$ac_link"
! 115699: case "(($ac_try" in
! 115700: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115701: *) ac_try_echo=$ac_try;;
! 115702: esac
! 115703: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115704: (eval "$ac_link") 2>&5
! 115705: ac_status=$?
! 115706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115707: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 115708: { (case "(($ac_try" in
! 115709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115710: *) ac_try_echo=$ac_try;;
! 115711: esac
! 115712: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115713: (eval "$ac_try") 2>&5
! 115714: ac_status=$?
! 115715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115716: (exit $ac_status); }; }; then
1.1 misho 115717: found=yes
115718: else
1.1.1.3 ! misho 115719: echo "$as_me: program exited with status $ac_status" >&5
! 115720: echo "$as_me: failed program was:" >&5
! 115721: sed 's/^/| /' conftest.$ac_ext >&5
! 115722:
! 115723: ( exit $ac_status )
! 115724: found=no
1.1 misho 115725: fi
1.1.1.3 ! misho 115726: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 115727: fi
115728:
1.1.1.3 ! misho 115729:
1.1 misho 115730: LIBS=$ac_libs
115731: fi
115732:
115733: if test "$found" = "yes"; then
115734:
115735:
115736: case resolv in
115737: c|c_r|pthread*) ;;
115738: *)
115739: LIBS="-lresolv $LIBS"
115740: ;;
115741: esac
115742:
115743:
115744:
1.1.1.3 ! misho 115745: cat >>confdefs.h <<\_ACEOF
! 115746: #define HAVE_RES_SEARCH 1
! 115747: _ACEOF
1.1 misho 115748:
115749:
1.1.1.3 ! misho 115750: cat >>confdefs.h <<\_ACEOF
! 115751: #define HAVE_LIBRESOLV 1
! 115752: _ACEOF
1.1 misho 115753:
115754: ac_cv_func_res_search=yes
115755: else
115756:
115757:
115758: unset ac_cv_lib_bind_res_search
115759: unset ac_cv_lib_bind___res_search
115760: unset found
1.1.1.3 ! misho 115761: { echo "$as_me:$LINENO: checking for res_search in -lbind" >&5
! 115762: echo $ECHO_N "checking for res_search in -lbind... $ECHO_C" >&6; }
! 115763: if test "${ac_cv_lib_bind_res_search+set}" = set; then
! 115764: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115765: else
115766: ac_check_lib_save_LIBS=$LIBS
115767: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 115768: cat >conftest.$ac_ext <<_ACEOF
! 115769: /* confdefs.h. */
! 115770: _ACEOF
! 115771: cat confdefs.h >>conftest.$ac_ext
! 115772: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115773: /* end confdefs.h. */
115774:
115775: /* Override any GCC internal prototype to avoid an error.
115776: Use char because int might match the return type of a GCC
115777: builtin and then its argument prototype would still apply. */
115778: #ifdef __cplusplus
115779: extern "C"
115780: #endif
115781: char res_search ();
115782: int
115783: main ()
115784: {
115785: return res_search ();
115786: ;
115787: return 0;
115788: }
115789: _ACEOF
1.1.1.3 ! misho 115790: rm -f conftest.$ac_objext conftest$ac_exeext
! 115791: if { (ac_try="$ac_link"
! 115792: case "(($ac_try" in
! 115793: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115794: *) ac_try_echo=$ac_try;;
! 115795: esac
! 115796: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115797: (eval "$ac_link") 2>conftest.er1
! 115798: ac_status=$?
! 115799: grep -v '^ *+' conftest.er1 >conftest.err
! 115800: rm -f conftest.er1
! 115801: cat conftest.err >&5
! 115802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115803: (exit $ac_status); } && {
! 115804: test -z "$ac_c_werror_flag" ||
! 115805: test ! -s conftest.err
! 115806: } && test -s conftest$ac_exeext &&
! 115807: $as_test_x conftest$ac_exeext; then
1.1 misho 115808: ac_cv_lib_bind_res_search=yes
115809: else
1.1.1.3 ! misho 115810: echo "$as_me: failed program was:" >&5
! 115811: sed 's/^/| /' conftest.$ac_ext >&5
! 115812:
! 115813: ac_cv_lib_bind_res_search=no
1.1 misho 115814: fi
1.1.1.3 ! misho 115815:
! 115816: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115817: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115818: LIBS=$ac_check_lib_save_LIBS
115819: fi
1.1.1.3 ! misho 115820: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_search" >&5
! 115821: echo "${ECHO_T}$ac_cv_lib_bind_res_search" >&6; }
! 115822: if test $ac_cv_lib_bind_res_search = yes; then
1.1 misho 115823: found=yes
115824: else
115825:
1.1.1.3 ! misho 115826: { echo "$as_me:$LINENO: checking for __res_search in -lbind" >&5
! 115827: echo $ECHO_N "checking for __res_search in -lbind... $ECHO_C" >&6; }
! 115828: if test "${ac_cv_lib_bind___res_search+set}" = set; then
! 115829: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115830: else
115831: ac_check_lib_save_LIBS=$LIBS
115832: LIBS="-lbind $LIBS"
1.1.1.3 ! misho 115833: cat >conftest.$ac_ext <<_ACEOF
! 115834: /* confdefs.h. */
! 115835: _ACEOF
! 115836: cat confdefs.h >>conftest.$ac_ext
! 115837: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115838: /* end confdefs.h. */
115839:
115840: /* Override any GCC internal prototype to avoid an error.
115841: Use char because int might match the return type of a GCC
115842: builtin and then its argument prototype would still apply. */
115843: #ifdef __cplusplus
115844: extern "C"
115845: #endif
115846: char __res_search ();
115847: int
115848: main ()
115849: {
115850: return __res_search ();
115851: ;
115852: return 0;
115853: }
115854: _ACEOF
1.1.1.3 ! misho 115855: rm -f conftest.$ac_objext conftest$ac_exeext
! 115856: if { (ac_try="$ac_link"
! 115857: case "(($ac_try" in
! 115858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115859: *) ac_try_echo=$ac_try;;
! 115860: esac
! 115861: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115862: (eval "$ac_link") 2>conftest.er1
! 115863: ac_status=$?
! 115864: grep -v '^ *+' conftest.er1 >conftest.err
! 115865: rm -f conftest.er1
! 115866: cat conftest.err >&5
! 115867: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115868: (exit $ac_status); } && {
! 115869: test -z "$ac_c_werror_flag" ||
! 115870: test ! -s conftest.err
! 115871: } && test -s conftest$ac_exeext &&
! 115872: $as_test_x conftest$ac_exeext; then
1.1 misho 115873: ac_cv_lib_bind___res_search=yes
115874: else
1.1.1.3 ! misho 115875: echo "$as_me: failed program was:" >&5
! 115876: sed 's/^/| /' conftest.$ac_ext >&5
! 115877:
! 115878: ac_cv_lib_bind___res_search=no
1.1 misho 115879: fi
1.1.1.3 ! misho 115880:
! 115881: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 115882: conftest$ac_exeext conftest.$ac_ext
1.1 misho 115883: LIBS=$ac_check_lib_save_LIBS
115884: fi
1.1.1.3 ! misho 115885: { echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_search" >&5
! 115886: echo "${ECHO_T}$ac_cv_lib_bind___res_search" >&6; }
! 115887: if test $ac_cv_lib_bind___res_search = yes; then
1.1 misho 115888: found=yes
115889: else
115890: found=no
115891: fi
115892:
115893:
115894: fi
115895:
115896:
115897: if test "$found" = "yes"; then
115898: ac_libs=$LIBS
115899: LIBS="$LIBS -lbind"
1.1.1.3 ! misho 115900: if test "$cross_compiling" = yes; then
1.1 misho 115901: found=no
115902: else
1.1.1.3 ! misho 115903: cat >conftest.$ac_ext <<_ACEOF
! 115904: /* confdefs.h. */
! 115905: _ACEOF
! 115906: cat confdefs.h >>conftest.$ac_ext
! 115907: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115908: /* end confdefs.h. */
115909: main() { return (0); }
115910: _ACEOF
1.1.1.3 ! misho 115911: rm -f conftest$ac_exeext
! 115912: if { (ac_try="$ac_link"
! 115913: case "(($ac_try" in
! 115914: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115915: *) ac_try_echo=$ac_try;;
! 115916: esac
! 115917: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115918: (eval "$ac_link") 2>&5
! 115919: ac_status=$?
! 115920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115921: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 115922: { (case "(($ac_try" in
! 115923: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 115924: *) ac_try_echo=$ac_try;;
! 115925: esac
! 115926: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 115927: (eval "$ac_try") 2>&5
! 115928: ac_status=$?
! 115929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 115930: (exit $ac_status); }; }; then
1.1 misho 115931: found=yes
115932: else
1.1.1.3 ! misho 115933: echo "$as_me: program exited with status $ac_status" >&5
! 115934: echo "$as_me: failed program was:" >&5
! 115935: sed 's/^/| /' conftest.$ac_ext >&5
! 115936:
! 115937: ( exit $ac_status )
! 115938: found=no
1.1 misho 115939: fi
1.1.1.3 ! misho 115940: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 115941: fi
115942:
1.1.1.3 ! misho 115943:
1.1 misho 115944: LIBS=$ac_libs
115945: fi
115946:
115947: if test "$found" = "yes"; then
115948:
115949:
115950: case bind in
115951: c|c_r|pthread*) ;;
115952: *)
115953: LIBS="-lbind $LIBS"
115954: ;;
115955: esac
115956:
115957:
115958:
1.1.1.3 ! misho 115959: cat >>confdefs.h <<\_ACEOF
! 115960: #define HAVE_RES_SEARCH 1
! 115961: _ACEOF
1.1 misho 115962:
115963:
1.1.1.3 ! misho 115964: cat >>confdefs.h <<\_ACEOF
! 115965: #define HAVE_LIBBIND 1
! 115966: _ACEOF
1.1 misho 115967:
115968: ac_cv_func_res_search=yes
115969: else
115970:
115971:
115972: unset ac_cv_lib_socket_res_search
115973: unset ac_cv_lib_socket___res_search
115974: unset found
1.1.1.3 ! misho 115975: { echo "$as_me:$LINENO: checking for res_search in -lsocket" >&5
! 115976: echo $ECHO_N "checking for res_search in -lsocket... $ECHO_C" >&6; }
! 115977: if test "${ac_cv_lib_socket_res_search+set}" = set; then
! 115978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 115979: else
115980: ac_check_lib_save_LIBS=$LIBS
115981: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 115982: cat >conftest.$ac_ext <<_ACEOF
! 115983: /* confdefs.h. */
! 115984: _ACEOF
! 115985: cat confdefs.h >>conftest.$ac_ext
! 115986: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 115987: /* end confdefs.h. */
115988:
115989: /* Override any GCC internal prototype to avoid an error.
115990: Use char because int might match the return type of a GCC
115991: builtin and then its argument prototype would still apply. */
115992: #ifdef __cplusplus
115993: extern "C"
115994: #endif
115995: char res_search ();
115996: int
115997: main ()
115998: {
115999: return res_search ();
116000: ;
116001: return 0;
116002: }
116003: _ACEOF
1.1.1.3 ! misho 116004: rm -f conftest.$ac_objext conftest$ac_exeext
! 116005: if { (ac_try="$ac_link"
! 116006: case "(($ac_try" in
! 116007: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116008: *) ac_try_echo=$ac_try;;
! 116009: esac
! 116010: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116011: (eval "$ac_link") 2>conftest.er1
! 116012: ac_status=$?
! 116013: grep -v '^ *+' conftest.er1 >conftest.err
! 116014: rm -f conftest.er1
! 116015: cat conftest.err >&5
! 116016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116017: (exit $ac_status); } && {
! 116018: test -z "$ac_c_werror_flag" ||
! 116019: test ! -s conftest.err
! 116020: } && test -s conftest$ac_exeext &&
! 116021: $as_test_x conftest$ac_exeext; then
1.1 misho 116022: ac_cv_lib_socket_res_search=yes
116023: else
1.1.1.3 ! misho 116024: echo "$as_me: failed program was:" >&5
! 116025: sed 's/^/| /' conftest.$ac_ext >&5
! 116026:
! 116027: ac_cv_lib_socket_res_search=no
1.1 misho 116028: fi
1.1.1.3 ! misho 116029:
! 116030: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 116031: conftest$ac_exeext conftest.$ac_ext
1.1 misho 116032: LIBS=$ac_check_lib_save_LIBS
116033: fi
1.1.1.3 ! misho 116034: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_res_search" >&5
! 116035: echo "${ECHO_T}$ac_cv_lib_socket_res_search" >&6; }
! 116036: if test $ac_cv_lib_socket_res_search = yes; then
1.1 misho 116037: found=yes
116038: else
116039:
1.1.1.3 ! misho 116040: { echo "$as_me:$LINENO: checking for __res_search in -lsocket" >&5
! 116041: echo $ECHO_N "checking for __res_search in -lsocket... $ECHO_C" >&6; }
! 116042: if test "${ac_cv_lib_socket___res_search+set}" = set; then
! 116043: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116044: else
116045: ac_check_lib_save_LIBS=$LIBS
116046: LIBS="-lsocket $LIBS"
1.1.1.3 ! misho 116047: cat >conftest.$ac_ext <<_ACEOF
! 116048: /* confdefs.h. */
! 116049: _ACEOF
! 116050: cat confdefs.h >>conftest.$ac_ext
! 116051: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116052: /* end confdefs.h. */
116053:
116054: /* Override any GCC internal prototype to avoid an error.
116055: Use char because int might match the return type of a GCC
116056: builtin and then its argument prototype would still apply. */
116057: #ifdef __cplusplus
116058: extern "C"
116059: #endif
116060: char __res_search ();
116061: int
116062: main ()
116063: {
116064: return __res_search ();
116065: ;
116066: return 0;
116067: }
116068: _ACEOF
1.1.1.3 ! misho 116069: rm -f conftest.$ac_objext conftest$ac_exeext
! 116070: if { (ac_try="$ac_link"
! 116071: case "(($ac_try" in
! 116072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116073: *) ac_try_echo=$ac_try;;
! 116074: esac
! 116075: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116076: (eval "$ac_link") 2>conftest.er1
! 116077: ac_status=$?
! 116078: grep -v '^ *+' conftest.er1 >conftest.err
! 116079: rm -f conftest.er1
! 116080: cat conftest.err >&5
! 116081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116082: (exit $ac_status); } && {
! 116083: test -z "$ac_c_werror_flag" ||
! 116084: test ! -s conftest.err
! 116085: } && test -s conftest$ac_exeext &&
! 116086: $as_test_x conftest$ac_exeext; then
1.1 misho 116087: ac_cv_lib_socket___res_search=yes
116088: else
1.1.1.3 ! misho 116089: echo "$as_me: failed program was:" >&5
! 116090: sed 's/^/| /' conftest.$ac_ext >&5
! 116091:
! 116092: ac_cv_lib_socket___res_search=no
1.1 misho 116093: fi
1.1.1.3 ! misho 116094:
! 116095: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 116096: conftest$ac_exeext conftest.$ac_ext
1.1 misho 116097: LIBS=$ac_check_lib_save_LIBS
116098: fi
1.1.1.3 ! misho 116099: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket___res_search" >&5
! 116100: echo "${ECHO_T}$ac_cv_lib_socket___res_search" >&6; }
! 116101: if test $ac_cv_lib_socket___res_search = yes; then
1.1 misho 116102: found=yes
116103: else
116104: found=no
116105: fi
116106:
116107:
116108: fi
116109:
116110:
116111: if test "$found" = "yes"; then
116112: ac_libs=$LIBS
116113: LIBS="$LIBS -lsocket"
1.1.1.3 ! misho 116114: if test "$cross_compiling" = yes; then
1.1 misho 116115: found=no
116116: else
1.1.1.3 ! misho 116117: cat >conftest.$ac_ext <<_ACEOF
! 116118: /* confdefs.h. */
! 116119: _ACEOF
! 116120: cat confdefs.h >>conftest.$ac_ext
! 116121: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116122: /* end confdefs.h. */
116123: main() { return (0); }
116124: _ACEOF
1.1.1.3 ! misho 116125: rm -f conftest$ac_exeext
! 116126: if { (ac_try="$ac_link"
! 116127: case "(($ac_try" in
! 116128: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116129: *) ac_try_echo=$ac_try;;
! 116130: esac
! 116131: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116132: (eval "$ac_link") 2>&5
! 116133: ac_status=$?
! 116134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116135: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 116136: { (case "(($ac_try" in
! 116137: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116138: *) ac_try_echo=$ac_try;;
! 116139: esac
! 116140: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116141: (eval "$ac_try") 2>&5
! 116142: ac_status=$?
! 116143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116144: (exit $ac_status); }; }; then
1.1 misho 116145: found=yes
116146: else
1.1.1.3 ! misho 116147: echo "$as_me: program exited with status $ac_status" >&5
! 116148: echo "$as_me: failed program was:" >&5
! 116149: sed 's/^/| /' conftest.$ac_ext >&5
! 116150:
! 116151: ( exit $ac_status )
! 116152: found=no
1.1 misho 116153: fi
1.1.1.3 ! misho 116154: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 116155: fi
116156:
1.1.1.3 ! misho 116157:
1.1 misho 116158: LIBS=$ac_libs
116159: fi
116160:
116161: if test "$found" = "yes"; then
116162:
116163:
116164: case socket in
116165: c|c_r|pthread*) ;;
116166: *)
116167: LIBS="-lsocket $LIBS"
116168: ;;
116169: esac
116170:
116171:
116172:
1.1.1.3 ! misho 116173: cat >>confdefs.h <<\_ACEOF
! 116174: #define HAVE_RES_SEARCH 1
! 116175: _ACEOF
1.1 misho 116176:
116177:
1.1.1.3 ! misho 116178: cat >>confdefs.h <<\_ACEOF
! 116179: #define HAVE_LIBSOCKET 1
! 116180: _ACEOF
1.1 misho 116181:
116182: ac_cv_func_res_search=yes
116183: else
116184:
116185: :
116186:
116187: fi
116188:
116189:
116190: fi
116191:
116192:
116193: fi
116194:
116195: ;;
116196:
116197: esac
116198:
116199:
1.1.1.3 ! misho 116200: { echo "$as_me:$LINENO: checking whether atof() accepts NAN" >&5
! 116201: echo $ECHO_N "checking whether atof() accepts NAN... $ECHO_C" >&6; }
! 116202: if test "${ac_cv_atof_accept_nan+set}" = set; then
! 116203: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116204: else
116205:
1.1.1.3 ! misho 116206: if test "$cross_compiling" = yes; then
1.1 misho 116207:
116208: ac_cv_atof_accept_nan=no
116209:
116210: else
1.1.1.3 ! misho 116211: cat >conftest.$ac_ext <<_ACEOF
! 116212: /* confdefs.h. */
! 116213: _ACEOF
! 116214: cat confdefs.h >>conftest.$ac_ext
! 116215: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116216: /* end confdefs.h. */
116217:
116218: #include <math.h>
116219: #include <stdlib.h>
116220:
116221: #ifdef HAVE_ISNAN
116222: #define zend_isnan(a) isnan(a)
116223: #elif defined(HAVE_FPCLASS)
116224: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
116225: #else
116226: #define zend_isnan(a) 0
116227: #endif
116228:
116229: int main(int argc, char** argv)
116230: {
116231: return zend_isnan(atof("NAN")) ? 0 : 1;
116232: }
116233:
116234: _ACEOF
1.1.1.3 ! misho 116235: rm -f conftest$ac_exeext
! 116236: if { (ac_try="$ac_link"
! 116237: case "(($ac_try" in
! 116238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116239: *) ac_try_echo=$ac_try;;
! 116240: esac
! 116241: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116242: (eval "$ac_link") 2>&5
! 116243: ac_status=$?
! 116244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116245: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 116246: { (case "(($ac_try" in
! 116247: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116248: *) ac_try_echo=$ac_try;;
! 116249: esac
! 116250: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116251: (eval "$ac_try") 2>&5
! 116252: ac_status=$?
! 116253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116254: (exit $ac_status); }; }; then
1.1 misho 116255:
116256: ac_cv_atof_accept_nan=yes
116257:
116258: else
1.1.1.3 ! misho 116259: echo "$as_me: program exited with status $ac_status" >&5
! 116260: echo "$as_me: failed program was:" >&5
! 116261: sed 's/^/| /' conftest.$ac_ext >&5
! 116262:
! 116263: ( exit $ac_status )
1.1 misho 116264:
116265: ac_cv_atof_accept_nan=no
116266:
116267: fi
1.1.1.3 ! misho 116268: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 116269: fi
116270:
1.1.1.3 ! misho 116271:
1.1 misho 116272: fi
1.1.1.3 ! misho 116273: { echo "$as_me:$LINENO: result: $ac_cv_atof_accept_nan" >&5
! 116274: echo "${ECHO_T}$ac_cv_atof_accept_nan" >&6; }
1.1 misho 116275: if test "$ac_cv_atof_accept_nan" = "yes"; then
116276:
1.1.1.3 ! misho 116277: cat >>confdefs.h <<\_ACEOF
! 116278: #define HAVE_ATOF_ACCEPTS_NAN 1
! 116279: _ACEOF
1.1 misho 116280:
116281: fi
116282:
1.1.1.3 ! misho 116283: { echo "$as_me:$LINENO: checking whether atof() accepts INF" >&5
! 116284: echo $ECHO_N "checking whether atof() accepts INF... $ECHO_C" >&6; }
! 116285: if test "${ac_cv_atof_accept_inf+set}" = set; then
! 116286: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116287: else
116288:
1.1.1.3 ! misho 116289: if test "$cross_compiling" = yes; then
1.1 misho 116290:
116291: ac_cv_atof_accept_inf=no
116292:
116293: else
1.1.1.3 ! misho 116294: cat >conftest.$ac_ext <<_ACEOF
! 116295: /* confdefs.h. */
! 116296: _ACEOF
! 116297: cat confdefs.h >>conftest.$ac_ext
! 116298: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116299: /* end confdefs.h. */
116300:
116301: #include <math.h>
116302: #include <stdlib.h>
116303:
116304: #ifdef HAVE_ISINF
116305: #define zend_isinf(a) isinf(a)
116306: #elif defined(INFINITY)
116307: /* Might not work, but is required by ISO C99 */
116308: #define zend_isinf(a) (((a)==INFINITY)?1:0)
116309: #elif defined(HAVE_FPCLASS)
116310: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
116311: #else
116312: #define zend_isinf(a) 0
116313: #endif
116314:
116315: int main(int argc, char** argv)
116316: {
116317: return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1;
116318: }
116319:
116320: _ACEOF
1.1.1.3 ! misho 116321: rm -f conftest$ac_exeext
! 116322: if { (ac_try="$ac_link"
! 116323: case "(($ac_try" in
! 116324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116325: *) ac_try_echo=$ac_try;;
! 116326: esac
! 116327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116328: (eval "$ac_link") 2>&5
! 116329: ac_status=$?
! 116330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116331: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 116332: { (case "(($ac_try" in
! 116333: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116334: *) ac_try_echo=$ac_try;;
! 116335: esac
! 116336: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116337: (eval "$ac_try") 2>&5
! 116338: ac_status=$?
! 116339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116340: (exit $ac_status); }; }; then
1.1 misho 116341:
116342: ac_cv_atof_accept_inf=yes
116343:
116344: else
1.1.1.3 ! misho 116345: echo "$as_me: program exited with status $ac_status" >&5
! 116346: echo "$as_me: failed program was:" >&5
! 116347: sed 's/^/| /' conftest.$ac_ext >&5
! 116348:
! 116349: ( exit $ac_status )
1.1 misho 116350:
116351: ac_cv_atof_accept_inf=no
116352:
116353: fi
1.1.1.3 ! misho 116354: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 116355: fi
116356:
1.1.1.3 ! misho 116357:
1.1 misho 116358: fi
1.1.1.3 ! misho 116359: { echo "$as_me:$LINENO: result: $ac_cv_atof_accept_inf" >&5
! 116360: echo "${ECHO_T}$ac_cv_atof_accept_inf" >&6; }
1.1 misho 116361: if test "$ac_cv_atof_accept_inf" = "yes"; then
116362:
1.1.1.3 ! misho 116363: cat >>confdefs.h <<\_ACEOF
! 116364: #define HAVE_ATOF_ACCEPTS_INF 1
! 116365: _ACEOF
1.1 misho 116366:
116367: fi
116368:
1.1.1.3 ! misho 116369: { echo "$as_me:$LINENO: checking whether HUGE_VAL == INF" >&5
! 116370: echo $ECHO_N "checking whether HUGE_VAL == INF... $ECHO_C" >&6; }
! 116371: if test "${ac_cv_huge_val_inf+set}" = set; then
! 116372: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116373: else
116374:
1.1.1.3 ! misho 116375: if test "$cross_compiling" = yes; then
1.1 misho 116376:
116377: ac_cv_huge_val_inf=yes
116378:
116379: else
1.1.1.3 ! misho 116380: cat >conftest.$ac_ext <<_ACEOF
! 116381: /* confdefs.h. */
! 116382: _ACEOF
! 116383: cat confdefs.h >>conftest.$ac_ext
! 116384: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116385: /* end confdefs.h. */
116386:
116387: #include <math.h>
116388: #include <stdlib.h>
116389:
116390: #ifdef HAVE_ISINF
116391: #define zend_isinf(a) isinf(a)
116392: #elif defined(INFINITY)
116393: /* Might not work, but is required by ISO C99 */
116394: #define zend_isinf(a) (((a)==INFINITY)?1:0)
116395: #elif defined(HAVE_FPCLASS)
116396: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
116397: #else
116398: #define zend_isinf(a) 0
116399: #endif
116400:
116401: int main(int argc, char** argv)
116402: {
116403: return zend_isinf(HUGE_VAL) ? 0 : 1;
116404: }
116405:
116406: _ACEOF
1.1.1.3 ! misho 116407: rm -f conftest$ac_exeext
! 116408: if { (ac_try="$ac_link"
! 116409: case "(($ac_try" in
! 116410: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116411: *) ac_try_echo=$ac_try;;
! 116412: esac
! 116413: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116414: (eval "$ac_link") 2>&5
! 116415: ac_status=$?
! 116416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116417: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 116418: { (case "(($ac_try" in
! 116419: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116420: *) ac_try_echo=$ac_try;;
! 116421: esac
! 116422: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116423: (eval "$ac_try") 2>&5
! 116424: ac_status=$?
! 116425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116426: (exit $ac_status); }; }; then
1.1 misho 116427:
116428: ac_cv_huge_val_inf=yes
116429:
116430: else
1.1.1.3 ! misho 116431: echo "$as_me: program exited with status $ac_status" >&5
! 116432: echo "$as_me: failed program was:" >&5
! 116433: sed 's/^/| /' conftest.$ac_ext >&5
! 116434:
! 116435: ( exit $ac_status )
1.1 misho 116436:
116437: ac_cv_huge_val_inf=no
116438:
116439: fi
1.1.1.3 ! misho 116440: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 116441: fi
116442:
1.1.1.3 ! misho 116443:
1.1 misho 116444: fi
1.1.1.3 ! misho 116445: { echo "$as_me:$LINENO: result: $ac_cv_huge_val_inf" >&5
! 116446: echo "${ECHO_T}$ac_cv_huge_val_inf" >&6; }
1.1 misho 116447: if test "$ac_cv_huge_val_inf" = "yes"; then
116448:
1.1.1.3 ! misho 116449: cat >>confdefs.h <<\_ACEOF
! 116450: #define HAVE_HUGE_VAL_INF 1
! 116451: _ACEOF
1.1 misho 116452:
116453: fi
116454:
1.1.1.3 ! misho 116455: { echo "$as_me:$LINENO: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5
! 116456: echo $ECHO_N "checking whether HUGE_VAL + -HUGEVAL == NAN... $ECHO_C" >&6; }
! 116457: if test "${ac_cv_huge_val_nan+set}" = set; then
! 116458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116459: else
116460:
1.1.1.3 ! misho 116461: if test "$cross_compiling" = yes; then
1.1 misho 116462:
116463: ac_cv_huge_val_nan=yes
116464:
116465: else
1.1.1.3 ! misho 116466: cat >conftest.$ac_ext <<_ACEOF
! 116467: /* confdefs.h. */
! 116468: _ACEOF
! 116469: cat confdefs.h >>conftest.$ac_ext
! 116470: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116471: /* end confdefs.h. */
116472:
116473: #include <math.h>
116474: #include <stdlib.h>
116475:
116476: #ifdef HAVE_ISNAN
116477: #define zend_isnan(a) isnan(a)
116478: #elif defined(HAVE_FPCLASS)
116479: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
116480: #else
116481: #define zend_isnan(a) 0
116482: #endif
116483:
116484: int main(int argc, char** argv)
116485: {
116486: #if defined(__sparc__) && !(__GNUC__ >= 3)
116487: /* prevent bug #27830 */
116488: return 1;
116489: #else
116490: return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1;
116491: #endif
116492: }
116493:
116494: _ACEOF
1.1.1.3 ! misho 116495: rm -f conftest$ac_exeext
! 116496: if { (ac_try="$ac_link"
! 116497: case "(($ac_try" in
! 116498: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116499: *) ac_try_echo=$ac_try;;
! 116500: esac
! 116501: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116502: (eval "$ac_link") 2>&5
! 116503: ac_status=$?
! 116504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116505: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 116506: { (case "(($ac_try" in
! 116507: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116508: *) ac_try_echo=$ac_try;;
! 116509: esac
! 116510: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116511: (eval "$ac_try") 2>&5
! 116512: ac_status=$?
! 116513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116514: (exit $ac_status); }; }; then
1.1 misho 116515:
116516: ac_cv_huge_val_nan=yes
116517:
116518: else
1.1.1.3 ! misho 116519: echo "$as_me: program exited with status $ac_status" >&5
! 116520: echo "$as_me: failed program was:" >&5
! 116521: sed 's/^/| /' conftest.$ac_ext >&5
! 116522:
! 116523: ( exit $ac_status )
1.1 misho 116524:
116525: ac_cv_huge_val_nan=no
116526:
116527: fi
1.1.1.3 ! misho 116528: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 116529: fi
116530:
1.1.1.3 ! misho 116531:
1.1 misho 116532: fi
1.1.1.3 ! misho 116533: { echo "$as_me:$LINENO: result: $ac_cv_huge_val_nan" >&5
! 116534: echo "${ECHO_T}$ac_cv_huge_val_nan" >&6; }
1.1 misho 116535: if test "$ac_cv_huge_val_nan" = "yes"; then
116536:
1.1.1.3 ! misho 116537: cat >>confdefs.h <<\_ACEOF
! 116538: #define HAVE_HUGE_VAL_NAN 1
! 116539: _ACEOF
1.1 misho 116540:
116541: fi
116542:
1.1.1.3 ! misho 116543: { echo "$as_me:$LINENO: checking whether strptime() declaration fails" >&5
! 116544: echo $ECHO_N "checking whether strptime() declaration fails... $ECHO_C" >&6; }
! 116545: if test "${ac_cv_strptime_decl_fails+set}" = set; then
! 116546: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116547: else
116548:
1.1.1.3 ! misho 116549: cat >conftest.$ac_ext <<_ACEOF
! 116550: /* confdefs.h. */
! 116551: _ACEOF
! 116552: cat confdefs.h >>conftest.$ac_ext
! 116553: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116554: /* end confdefs.h. */
116555:
116556: #include <time.h>
116557:
116558: int
116559: main ()
116560: {
116561:
116562: #ifndef HAVE_STRPTIME
116563: #error no strptime() on this platform
116564: #else
116565: /* use invalid strptime() declaration to see if it fails to compile */
116566: int strptime(const char *s, const char *format, struct tm *tm);
116567: #endif
116568:
116569: ;
116570: return 0;
116571: }
116572: _ACEOF
1.1.1.3 ! misho 116573: rm -f conftest.$ac_objext
! 116574: if { (ac_try="$ac_compile"
! 116575: case "(($ac_try" in
! 116576: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116577: *) ac_try_echo=$ac_try;;
! 116578: esac
! 116579: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116580: (eval "$ac_compile") 2>conftest.er1
! 116581: ac_status=$?
! 116582: grep -v '^ *+' conftest.er1 >conftest.err
! 116583: rm -f conftest.er1
! 116584: cat conftest.err >&5
! 116585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116586: (exit $ac_status); } && {
! 116587: test -z "$ac_c_werror_flag" ||
! 116588: test ! -s conftest.err
! 116589: } && test -s conftest.$ac_objext; then
1.1 misho 116590:
116591: ac_cv_strptime_decl_fails=no
116592:
116593: else
1.1.1.3 ! misho 116594: echo "$as_me: failed program was:" >&5
! 116595: sed 's/^/| /' conftest.$ac_ext >&5
! 116596:
1.1 misho 116597:
116598: ac_cv_strptime_decl_fails=yes
116599:
116600: fi
1.1.1.3 ! misho 116601:
1.1 misho 116602: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
116603: fi
1.1.1.3 ! misho 116604: { echo "$as_me:$LINENO: result: $ac_cv_strptime_decl_fails" >&5
! 116605: echo "${ECHO_T}$ac_cv_strptime_decl_fails" >&6; }
1.1 misho 116606: if test "$ac_cv_strptime_decl_fails" = "yes"; then
116607:
1.1.1.3 ! misho 116608: cat >>confdefs.h <<\_ACEOF
! 116609: #define HAVE_STRPTIME_DECL_FAILS 1
! 116610: _ACEOF
1.1 misho 116611:
116612: fi
116613:
1.1.1.3 ! misho 116614:
1.1 misho 116615: for ac_header in wchar.h
1.1.1.3 ! misho 116616: do
! 116617: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 116618: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 116619: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 116620: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 116621: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 116622: echo $ECHO_N "(cached) $ECHO_C" >&6
! 116623: fi
! 116624: ac_res=`eval echo '${'$as_ac_Header'}'`
! 116625: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 116626: echo "${ECHO_T}$ac_res" >&6; }
! 116627: else
! 116628: # Is the header compilable?
! 116629: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 116630: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 116631: cat >conftest.$ac_ext <<_ACEOF
! 116632: /* confdefs.h. */
! 116633: _ACEOF
! 116634: cat confdefs.h >>conftest.$ac_ext
! 116635: cat >>conftest.$ac_ext <<_ACEOF
! 116636: /* end confdefs.h. */
! 116637: $ac_includes_default
! 116638: #include <$ac_header>
! 116639: _ACEOF
! 116640: rm -f conftest.$ac_objext
! 116641: if { (ac_try="$ac_compile"
! 116642: case "(($ac_try" in
! 116643: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116644: *) ac_try_echo=$ac_try;;
! 116645: esac
! 116646: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116647: (eval "$ac_compile") 2>conftest.er1
! 116648: ac_status=$?
! 116649: grep -v '^ *+' conftest.er1 >conftest.err
! 116650: rm -f conftest.er1
! 116651: cat conftest.err >&5
! 116652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116653: (exit $ac_status); } && {
! 116654: test -z "$ac_c_werror_flag" ||
! 116655: test ! -s conftest.err
! 116656: } && test -s conftest.$ac_objext; then
! 116657: ac_header_compiler=yes
! 116658: else
! 116659: echo "$as_me: failed program was:" >&5
! 116660: sed 's/^/| /' conftest.$ac_ext >&5
! 116661:
! 116662: ac_header_compiler=no
! 116663: fi
! 116664:
! 116665: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 116666: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 116667: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 116668:
! 116669: # Is the header present?
! 116670: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 116671: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 116672: cat >conftest.$ac_ext <<_ACEOF
! 116673: /* confdefs.h. */
! 116674: _ACEOF
! 116675: cat confdefs.h >>conftest.$ac_ext
! 116676: cat >>conftest.$ac_ext <<_ACEOF
! 116677: /* end confdefs.h. */
! 116678: #include <$ac_header>
! 116679: _ACEOF
! 116680: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 116681: case "(($ac_try" in
! 116682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116683: *) ac_try_echo=$ac_try;;
! 116684: esac
! 116685: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116686: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 116687: ac_status=$?
! 116688: grep -v '^ *+' conftest.er1 >conftest.err
! 116689: rm -f conftest.er1
! 116690: cat conftest.err >&5
! 116691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116692: (exit $ac_status); } >/dev/null && {
! 116693: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 116694: test ! -s conftest.err
! 116695: }; then
! 116696: ac_header_preproc=yes
! 116697: else
! 116698: echo "$as_me: failed program was:" >&5
! 116699: sed 's/^/| /' conftest.$ac_ext >&5
! 116700:
! 116701: ac_header_preproc=no
! 116702: fi
! 116703:
! 116704: rm -f conftest.err conftest.$ac_ext
! 116705: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 116706: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 116707:
! 116708: # So? What about this header?
! 116709: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 116710: yes:no: )
! 116711: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 116712: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 116713: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 116714: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 116715: ac_header_preproc=yes
! 116716: ;;
! 116717: no:yes:* )
! 116718: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 116719: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 116720: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 116721: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 116722: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 116723: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 116724: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 116725: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 116726: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 116727: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 116728: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 116729: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 116730:
! 116731: ;;
! 116732: esac
! 116733: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 116734: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 116735: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 116736: echo $ECHO_N "(cached) $ECHO_C" >&6
! 116737: else
! 116738: eval "$as_ac_Header=\$ac_header_preproc"
! 116739: fi
! 116740: ac_res=`eval echo '${'$as_ac_Header'}'`
! 116741: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 116742: echo "${ECHO_T}$ac_res" >&6; }
! 116743:
! 116744: fi
! 116745: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 116746: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 116747: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 116748: _ACEOF
116749:
116750: fi
116751:
116752: done
116753:
1.1.1.3 ! misho 116754:
1.1 misho 116755: for ac_func in mblen
1.1.1.3 ! misho 116756: do
! 116757: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 116758: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 116759: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 116760: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 116761: echo $ECHO_N "(cached) $ECHO_C" >&6
! 116762: else
! 116763: cat >conftest.$ac_ext <<_ACEOF
! 116764: /* confdefs.h. */
! 116765: _ACEOF
! 116766: cat confdefs.h >>conftest.$ac_ext
! 116767: cat >>conftest.$ac_ext <<_ACEOF
! 116768: /* end confdefs.h. */
! 116769: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 116770: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 116771: #define $ac_func innocuous_$ac_func
! 116772:
! 116773: /* System header to define __stub macros and hopefully few prototypes,
! 116774: which can conflict with char $ac_func (); below.
! 116775: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 116776: <limits.h> exists even on freestanding compilers. */
! 116777:
! 116778: #ifdef __STDC__
! 116779: # include <limits.h>
! 116780: #else
! 116781: # include <assert.h>
! 116782: #endif
! 116783:
! 116784: #undef $ac_func
! 116785:
! 116786: /* Override any GCC internal prototype to avoid an error.
! 116787: Use char because int might match the return type of a GCC
! 116788: builtin and then its argument prototype would still apply. */
! 116789: #ifdef __cplusplus
! 116790: extern "C"
! 116791: #endif
! 116792: char $ac_func ();
! 116793: /* The GNU C library defines this for functions which it implements
! 116794: to always fail with ENOSYS. Some functions are actually named
! 116795: something starting with __ and the normal name is an alias. */
! 116796: #if defined __stub_$ac_func || defined __stub___$ac_func
! 116797: choke me
! 116798: #endif
! 116799:
! 116800: int
! 116801: main ()
! 116802: {
! 116803: return $ac_func ();
! 116804: ;
! 116805: return 0;
! 116806: }
! 116807: _ACEOF
! 116808: rm -f conftest.$ac_objext conftest$ac_exeext
! 116809: if { (ac_try="$ac_link"
! 116810: case "(($ac_try" in
! 116811: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116812: *) ac_try_echo=$ac_try;;
! 116813: esac
! 116814: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116815: (eval "$ac_link") 2>conftest.er1
! 116816: ac_status=$?
! 116817: grep -v '^ *+' conftest.er1 >conftest.err
! 116818: rm -f conftest.er1
! 116819: cat conftest.err >&5
! 116820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116821: (exit $ac_status); } && {
! 116822: test -z "$ac_c_werror_flag" ||
! 116823: test ! -s conftest.err
! 116824: } && test -s conftest$ac_exeext &&
! 116825: $as_test_x conftest$ac_exeext; then
! 116826: eval "$as_ac_var=yes"
! 116827: else
! 116828: echo "$as_me: failed program was:" >&5
! 116829: sed 's/^/| /' conftest.$ac_ext >&5
! 116830:
! 116831: eval "$as_ac_var=no"
! 116832: fi
! 116833:
! 116834: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 116835: conftest$ac_exeext conftest.$ac_ext
! 116836: fi
! 116837: ac_res=`eval echo '${'$as_ac_var'}'`
! 116838: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 116839: echo "${ECHO_T}$ac_res" >&6; }
! 116840: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 116841: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 116842: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 116843: _ACEOF
116844:
116845: fi
116846: done
116847:
1.1.1.3 ! misho 116848:
! 116849:
1.1 misho 116850: for ac_func in mbrlen mbsinit
1.1.1.3 ! misho 116851: do
! 116852: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 116853: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 116854: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 116855: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 116856: echo $ECHO_N "(cached) $ECHO_C" >&6
! 116857: else
! 116858: cat >conftest.$ac_ext <<_ACEOF
! 116859: /* confdefs.h. */
! 116860: _ACEOF
! 116861: cat confdefs.h >>conftest.$ac_ext
! 116862: cat >>conftest.$ac_ext <<_ACEOF
! 116863: /* end confdefs.h. */
! 116864: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 116865: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 116866: #define $ac_func innocuous_$ac_func
! 116867:
! 116868: /* System header to define __stub macros and hopefully few prototypes,
! 116869: which can conflict with char $ac_func (); below.
! 116870: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 116871: <limits.h> exists even on freestanding compilers. */
! 116872:
! 116873: #ifdef __STDC__
! 116874: # include <limits.h>
! 116875: #else
! 116876: # include <assert.h>
! 116877: #endif
! 116878:
! 116879: #undef $ac_func
! 116880:
! 116881: /* Override any GCC internal prototype to avoid an error.
! 116882: Use char because int might match the return type of a GCC
! 116883: builtin and then its argument prototype would still apply. */
! 116884: #ifdef __cplusplus
! 116885: extern "C"
! 116886: #endif
! 116887: char $ac_func ();
! 116888: /* The GNU C library defines this for functions which it implements
! 116889: to always fail with ENOSYS. Some functions are actually named
! 116890: something starting with __ and the normal name is an alias. */
! 116891: #if defined __stub_$ac_func || defined __stub___$ac_func
! 116892: choke me
! 116893: #endif
! 116894:
! 116895: int
! 116896: main ()
! 116897: {
! 116898: return $ac_func ();
! 116899: ;
! 116900: return 0;
! 116901: }
! 116902: _ACEOF
! 116903: rm -f conftest.$ac_objext conftest$ac_exeext
! 116904: if { (ac_try="$ac_link"
! 116905: case "(($ac_try" in
! 116906: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116907: *) ac_try_echo=$ac_try;;
! 116908: esac
! 116909: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116910: (eval "$ac_link") 2>conftest.er1
! 116911: ac_status=$?
! 116912: grep -v '^ *+' conftest.er1 >conftest.err
! 116913: rm -f conftest.er1
! 116914: cat conftest.err >&5
! 116915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116916: (exit $ac_status); } && {
! 116917: test -z "$ac_c_werror_flag" ||
! 116918: test ! -s conftest.err
! 116919: } && test -s conftest$ac_exeext &&
! 116920: $as_test_x conftest$ac_exeext; then
! 116921: eval "$as_ac_var=yes"
! 116922: else
! 116923: echo "$as_me: failed program was:" >&5
! 116924: sed 's/^/| /' conftest.$ac_ext >&5
! 116925:
! 116926: eval "$as_ac_var=no"
! 116927: fi
! 116928:
! 116929: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 116930: conftest$ac_exeext conftest.$ac_ext
! 116931: fi
! 116932: ac_res=`eval echo '${'$as_ac_var'}'`
! 116933: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 116934: echo "${ECHO_T}$ac_res" >&6; }
! 116935: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 116936: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 116937: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 116938: _ACEOF
116939:
116940: fi
116941: done
116942:
1.1.1.3 ! misho 116943: { echo "$as_me:$LINENO: checking for mbstate_t" >&5
! 116944: echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
! 116945: if test "${ac_cv_type_mbstate_t+set}" = set; then
! 116946: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 116947: else
116948:
1.1.1.3 ! misho 116949: cat >conftest.$ac_ext <<_ACEOF
! 116950: /* confdefs.h. */
! 116951: _ACEOF
! 116952: cat confdefs.h >>conftest.$ac_ext
! 116953: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 116954: /* end confdefs.h. */
116955:
116956: #ifdef HAVE_WCHAR_H
116957: # include <wchar.h>
116958: #endif
116959:
116960: int
116961: main ()
116962: {
116963:
116964: int __tmp__() { mbstate_t a; }
116965:
116966: ;
116967: return 0;
116968: }
116969: _ACEOF
1.1.1.3 ! misho 116970: rm -f conftest.$ac_objext
! 116971: if { (ac_try="$ac_compile"
! 116972: case "(($ac_try" in
! 116973: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 116974: *) ac_try_echo=$ac_try;;
! 116975: esac
! 116976: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 116977: (eval "$ac_compile") 2>conftest.er1
! 116978: ac_status=$?
! 116979: grep -v '^ *+' conftest.er1 >conftest.err
! 116980: rm -f conftest.er1
! 116981: cat conftest.err >&5
! 116982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 116983: (exit $ac_status); } && {
! 116984: test -z "$ac_c_werror_flag" ||
! 116985: test ! -s conftest.err
! 116986: } && test -s conftest.$ac_objext; then
1.1 misho 116987:
116988: ac_cv_type_mbstate_t=yes
116989:
116990: else
1.1.1.3 ! misho 116991: echo "$as_me: failed program was:" >&5
! 116992: sed 's/^/| /' conftest.$ac_ext >&5
! 116993:
1.1 misho 116994:
116995: ac_cv_type_mbstate_t=no
116996:
116997: fi
1.1.1.3 ! misho 116998:
1.1 misho 116999: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
117000: fi
1.1.1.3 ! misho 117001: { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
! 117002: echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
1.1 misho 117003: if test "$ac_cv_type_mbstate_t" = "yes"; then
117004:
1.1.1.3 ! misho 117005: cat >>confdefs.h <<\_ACEOF
! 117006: #define HAVE_MBSTATE_T 1
! 117007: _ACEOF
1.1 misho 117008:
117009: fi
117010:
1.1.1.3 ! misho 117011:
1.1 misho 117012: for ac_header in atomic.h
1.1.1.3 ! misho 117013: do
! 117014: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 117015: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 117016: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 117017: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 117018: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 117019: echo $ECHO_N "(cached) $ECHO_C" >&6
! 117020: fi
! 117021: ac_res=`eval echo '${'$as_ac_Header'}'`
! 117022: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 117023: echo "${ECHO_T}$ac_res" >&6; }
! 117024: else
! 117025: # Is the header compilable?
! 117026: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 117027: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 117028: cat >conftest.$ac_ext <<_ACEOF
! 117029: /* confdefs.h. */
! 117030: _ACEOF
! 117031: cat confdefs.h >>conftest.$ac_ext
! 117032: cat >>conftest.$ac_ext <<_ACEOF
! 117033: /* end confdefs.h. */
! 117034: $ac_includes_default
! 117035: #include <$ac_header>
! 117036: _ACEOF
! 117037: rm -f conftest.$ac_objext
! 117038: if { (ac_try="$ac_compile"
! 117039: case "(($ac_try" in
! 117040: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 117041: *) ac_try_echo=$ac_try;;
! 117042: esac
! 117043: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 117044: (eval "$ac_compile") 2>conftest.er1
! 117045: ac_status=$?
! 117046: grep -v '^ *+' conftest.er1 >conftest.err
! 117047: rm -f conftest.er1
! 117048: cat conftest.err >&5
! 117049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 117050: (exit $ac_status); } && {
! 117051: test -z "$ac_c_werror_flag" ||
! 117052: test ! -s conftest.err
! 117053: } && test -s conftest.$ac_objext; then
! 117054: ac_header_compiler=yes
! 117055: else
! 117056: echo "$as_me: failed program was:" >&5
! 117057: sed 's/^/| /' conftest.$ac_ext >&5
! 117058:
! 117059: ac_header_compiler=no
! 117060: fi
! 117061:
! 117062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 117063: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 117064: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 117065:
! 117066: # Is the header present?
! 117067: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 117068: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 117069: cat >conftest.$ac_ext <<_ACEOF
! 117070: /* confdefs.h. */
! 117071: _ACEOF
! 117072: cat confdefs.h >>conftest.$ac_ext
! 117073: cat >>conftest.$ac_ext <<_ACEOF
! 117074: /* end confdefs.h. */
! 117075: #include <$ac_header>
! 117076: _ACEOF
! 117077: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 117078: case "(($ac_try" in
! 117079: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 117080: *) ac_try_echo=$ac_try;;
! 117081: esac
! 117082: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 117083: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 117084: ac_status=$?
! 117085: grep -v '^ *+' conftest.er1 >conftest.err
! 117086: rm -f conftest.er1
! 117087: cat conftest.err >&5
! 117088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 117089: (exit $ac_status); } >/dev/null && {
! 117090: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 117091: test ! -s conftest.err
! 117092: }; then
! 117093: ac_header_preproc=yes
! 117094: else
! 117095: echo "$as_me: failed program was:" >&5
! 117096: sed 's/^/| /' conftest.$ac_ext >&5
! 117097:
! 117098: ac_header_preproc=no
! 117099: fi
! 117100:
! 117101: rm -f conftest.err conftest.$ac_ext
! 117102: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 117103: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 117104:
! 117105: # So? What about this header?
! 117106: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 117107: yes:no: )
! 117108: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 117109: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 117110: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 117111: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 117112: ac_header_preproc=yes
! 117113: ;;
! 117114: no:yes:* )
! 117115: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 117116: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 117117: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 117118: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 117119: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 117120: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 117121: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 117122: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 117123: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 117124: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 117125: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 117126: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 117127:
! 117128: ;;
! 117129: esac
! 117130: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 117131: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 117132: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 117133: echo $ECHO_N "(cached) $ECHO_C" >&6
! 117134: else
! 117135: eval "$as_ac_Header=\$ac_header_preproc"
! 117136: fi
! 117137: ac_res=`eval echo '${'$as_ac_Header'}'`
! 117138: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 117139: echo "${ECHO_T}$ac_res" >&6; }
! 117140:
! 117141: fi
! 117142: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 117143: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 117144: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 117145: _ACEOF
117146:
117147: fi
117148:
117149: done
117150:
117151:
117152:
117153: ext_builddir=ext/standard
117154: ext_srcdir=$abs_srcdir/ext/standard
117155:
117156: ac_extra=
117157:
117158: if test "" != "shared" && test "" != "yes" && test "" != "cli"; then
117159: PHP_STANDARD_SHARED=no
117160:
117161:
117162: case ext/standard in
117163: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117164: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117165: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117166: esac
117167:
117168:
117169:
117170: b_c_pre=$php_c_pre
117171: b_cxx_pre=$php_cxx_pre
117172: b_c_meta=$php_c_meta
117173: b_cxx_meta=$php_cxx_meta
117174: b_c_post=$php_c_post
117175: b_cxx_post=$php_cxx_post
117176: b_lo=$php_lo
117177:
117178:
117179: old_IFS=$IFS
117180: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
117181: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
117182: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
117183: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
117184: microtime.c pack.c pageinfo.c quot_print.c rand.c \
117185: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
117186: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
117187: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
117188: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
117189: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
117190: filters.c proc_open.c streamsfuncs.c http.c; do
117191:
117192: IFS=.
117193: set $ac_src
117194: ac_obj=$1
117195: IFS=$old_IFS
117196:
117197: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117198:
117199: case $ac_src in
117200: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117201: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117202: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117203: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117204: esac
117205:
117206: cat >>Makefile.objects<<EOF
117207: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117208: $ac_comp
117209: EOF
117210: done
117211:
117212:
117213: EXT_STATIC="$EXT_STATIC standard"
117214: if test "" != "nocli"; then
117215: EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
117216: fi
117217: else
117218: if test "" = "shared" || test "" = "yes"; then
117219: PHP_STANDARD_SHARED=yes
117220:
117221: case ext/standard in
117222: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117223: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117224: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117225: esac
117226:
117227:
117228:
117229: b_c_pre=$shared_c_pre
117230: b_cxx_pre=$shared_cxx_pre
117231: b_c_meta=$shared_c_meta
117232: b_cxx_meta=$shared_cxx_meta
117233: b_c_post=$shared_c_post
117234: b_cxx_post=$shared_cxx_post
117235: b_lo=$shared_lo
117236:
117237:
117238: old_IFS=$IFS
117239: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
117240: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
117241: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
117242: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
117243: microtime.c pack.c pageinfo.c quot_print.c rand.c \
117244: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
117245: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
117246: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
117247: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
117248: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
117249: filters.c proc_open.c streamsfuncs.c http.c; do
117250:
117251: IFS=.
117252: set $ac_src
117253: ac_obj=$1
117254: IFS=$old_IFS
117255:
117256: shared_objects_standard="$shared_objects_standard $ac_bdir$ac_obj.lo"
117257:
117258: case $ac_src in
117259: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117260: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117261: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117262: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117263: esac
117264:
117265: cat >>Makefile.objects<<EOF
117266: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117267: $ac_comp
117268: EOF
117269: done
117270:
117271: case $host_alias in
117272: *netware*)
117273:
117274: install_modules="install-modules"
117275:
117276: case $host_alias in
117277: *aix*)
117278: suffix=so
117279: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpstandard.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(PHPSTANDARD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpstandard.so '$ext_builddir'/phpstandard.so'
117280: ;;
117281: *netware*)
117282: suffix=nlm
117283: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) -L$(top_builddir)/netware -lphp5lib $(STANDARD_SHARED_LIBADD)'
117284: ;;
117285: *)
117286: suffix=la
117287: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(PHPSTANDARD_SHARED_LIBADD)'
117288: ;;
117289: esac
117290:
117291: if test "x" = "xyes"; then
117292: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpstandard.$suffix"
117293: else
117294: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpstandard.$suffix"
117295: fi
117296:
117297: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
117298:
117299: cat >>Makefile.objects<<EOF
117300: \$(phplibdir)/phpstandard.$suffix: $ext_builddir/phpstandard.$suffix
117301: \$(LIBTOOL) --mode=install cp $ext_builddir/phpstandard.$suffix \$(phplibdir)
117302:
117303: $ext_builddir/phpstandard.$suffix: \$(shared_objects_standard) \$(PHPSTANDARD_SHARED_DEPENDENCIES)
117304: $link_cmd
117305:
117306: EOF
117307:
117308: ;;
117309: *)
117310:
117311: install_modules="install-modules"
117312:
117313: case $host_alias in
117314: *aix*)
117315: suffix=so
117316: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/standard.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(STANDARD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/standard.so '$ext_builddir'/standard.so'
117317: ;;
117318: *netware*)
117319: suffix=nlm
117320: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) -L$(top_builddir)/netware -lphp5lib $(NDARD_SHARED_LIBADD)'
117321: ;;
117322: *)
117323: suffix=la
117324: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(STANDARD_SHARED_LIBADD)'
117325: ;;
117326: esac
117327:
117328: if test "x" = "xyes"; then
117329: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/standard.$suffix"
117330: else
117331: PHP_MODULES="$PHP_MODULES \$(phplibdir)/standard.$suffix"
117332: fi
117333:
1.1.1.3 ! misho 117334: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
1.1 misho 117335:
1.1.1.3 ! misho 117336: cat >>Makefile.objects<<EOF
! 117337: \$(phplibdir)/standard.$suffix: $ext_builddir/standard.$suffix
! 117338: \$(LIBTOOL) --mode=install cp $ext_builddir/standard.$suffix \$(phplibdir)
1.1 misho 117339:
1.1.1.3 ! misho 117340: $ext_builddir/standard.$suffix: \$(shared_objects_standard) \$(STANDARD_SHARED_DEPENDENCIES)
! 117341: $link_cmd
1.1 misho 117342:
1.1.1.3 ! misho 117343: EOF
1.1 misho 117344:
1.1.1.3 ! misho 117345: ;;
1.1 misho 117346: esac
117347:
1.1.1.3 ! misho 117348: cat >>confdefs.h <<_ACEOF
! 117349: #define COMPILE_DL_STANDARD 1
! 117350: _ACEOF
1.1 misho 117351:
1.1.1.3 ! misho 117352: fi
! 117353: fi
1.1 misho 117354:
1.1.1.3 ! misho 117355: if test "" != "shared" && test "" != "yes" && test "" = "cli"; then
! 117356: PHP_STANDARD_SHARED=no
! 117357: case "$PHP_SAPI" in
! 117358: cgi|embed)
1.1 misho 117359:
117360:
117361: case ext/standard in
117362: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117363: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117364: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117365: esac
117366:
117367:
117368:
117369: b_c_pre=$php_c_pre
117370: b_cxx_pre=$php_cxx_pre
117371: b_c_meta=$php_c_meta
117372: b_cxx_meta=$php_cxx_meta
117373: b_c_post=$php_c_post
117374: b_cxx_post=$php_cxx_post
117375: b_lo=$php_lo
117376:
117377:
117378: old_IFS=$IFS
117379: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
117380: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
117381: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
117382: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
117383: microtime.c pack.c pageinfo.c quot_print.c rand.c \
117384: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
117385: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
117386: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
117387: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
117388: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
117389: filters.c proc_open.c streamsfuncs.c http.c; do
117390:
117391: IFS=.
117392: set $ac_src
117393: ac_obj=$1
117394: IFS=$old_IFS
117395:
1.1.1.2 misho 117396: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 117397:
117398: case $ac_src in
117399: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117400: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117401: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117402: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117403: esac
117404:
117405: cat >>Makefile.objects<<EOF
117406: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117407: $ac_comp
117408: EOF
117409: done
117410:
117411:
1.1.1.3 ! misho 117412: EXT_STATIC="$EXT_STATIC standard"
! 117413: ;;
! 117414: *)
1.1 misho 117415:
117416:
117417: case ext/standard in
117418: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117419: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117420: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117421: esac
117422:
117423:
117424:
117425: b_c_pre=$php_c_pre
117426: b_cxx_pre=$php_cxx_pre
117427: b_c_meta=$php_c_meta
117428: b_cxx_meta=$php_cxx_meta
117429: b_c_post=$php_c_post
117430: b_cxx_post=$php_cxx_post
117431: b_lo=$php_lo
117432:
117433:
117434: old_IFS=$IFS
117435: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
117436: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
117437: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
117438: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
117439: microtime.c pack.c pageinfo.c quot_print.c rand.c \
117440: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
117441: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
117442: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
117443: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
117444: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
117445: filters.c proc_open.c streamsfuncs.c http.c; do
117446:
117447: IFS=.
117448: set $ac_src
117449: ac_obj=$1
117450: IFS=$old_IFS
117451:
1.1.1.2 misho 117452: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 117453:
117454: case $ac_src in
117455: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117456: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117457: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117458: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117459: esac
117460:
117461: cat >>Makefile.objects<<EOF
117462: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117463: $ac_comp
117464: EOF
117465: done
117466:
117467:
1.1.1.3 ! misho 117468: ;;
! 117469: esac
1.1 misho 117470: EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
117471: fi
117472:
117473:
117474: BUILD_DIR="$BUILD_DIR $ext_builddir"
117475:
117476:
117477:
117478: if test "$ext_builddir" = "."; then
117479: PHP_PECL_EXTENSION=standard
117480:
117481: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
117482:
117483: fi
117484:
117485:
117486:
117487: src=$ext_srcdir/Makefile.frag
117488: ac_srcdir=$ext_srcdir
117489: ac_builddir=$ext_builddir
117490: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
117491:
117492:
117493:
117494: for header_file in ext/standard/; do
117495:
117496:
117497: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
117498:
117499: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
117500: if test -n "$unique" && test "`eval $cmd`" = "" ; then
117501: eval "INSTALLHEADERS$unique=set"
117502:
117503: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
117504:
117505: fi
117506:
117507: done
117508:
117509:
117510:
117511:
117512:
117513: php_with_sybase_ct=no
117514:
1.1.1.3 ! misho 117515: { echo "$as_me:$LINENO: checking for Sybase-CT support" >&5
! 117516: echo $ECHO_N "checking for Sybase-CT support... $ECHO_C" >&6; }
1.1 misho 117517:
117518: # Check whether --with-sybase-ct was given.
1.1.1.3 ! misho 117519: if test "${with_sybase_ct+set}" = set; then
1.1 misho 117520: withval=$with_sybase_ct; PHP_SYBASE_CT=$withval
117521: else
117522:
117523: PHP_SYBASE_CT=no
117524: test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL
117525:
117526: fi
117527:
117528:
117529:
117530: ext_output="yes, shared"
117531: ext_shared=yes
117532: case $PHP_SYBASE_CT in
117533: shared,*)
117534: PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'`
117535: ;;
117536: shared)
117537: PHP_SYBASE_CT=yes
117538: ;;
117539: no)
117540: ext_output=no
117541: ext_shared=no
117542: ;;
117543: *)
117544: ext_output=yes
117545: ext_shared=no
117546: ;;
117547: esac
117548:
117549:
117550:
1.1.1.3 ! misho 117551: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 117552: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 117553:
117554:
117555:
117556:
117557: if test "$PHP_SYBASE_CT" != "no"; then
117558:
117559: if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then
1.1.1.3 ! misho 117560: { { echo "$as_me:$LINENO: error: You can not use both --with-sybase and --with-sybase-ct in same build!" >&5
! 117561: echo "$as_me: error: You can not use both --with-sybase and --with-sybase-ct in same build!" >&2;}
! 117562: { (exit 1); exit 1; }; }
1.1 misho 117563: fi
117564:
117565:
1.1.1.3 ! misho 117566: cat >>confdefs.h <<\_ACEOF
! 117567: #define HAVE_SYBASE_CT 1
! 117568: _ACEOF
1.1 misho 117569:
117570:
117571: ext_builddir=ext/sybase_ct
117572: ext_srcdir=$abs_srcdir/ext/sybase_ct
117573:
117574: ac_extra=
117575:
117576: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
117577: PHP_SYBASE_CT_SHARED=no
117578:
117579:
117580: case ext/sybase_ct in
117581: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117582: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117583: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117584: esac
117585:
117586:
117587:
117588: b_c_pre=$php_c_pre
117589: b_cxx_pre=$php_cxx_pre
117590: b_c_meta=$php_c_meta
117591: b_cxx_meta=$php_cxx_meta
117592: b_c_post=$php_c_post
117593: b_cxx_post=$php_cxx_post
117594: b_lo=$php_lo
117595:
117596:
117597: old_IFS=$IFS
117598: for ac_src in php_sybase_ct.c; do
117599:
117600: IFS=.
117601: set $ac_src
117602: ac_obj=$1
117603: IFS=$old_IFS
117604:
117605: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117606:
117607: case $ac_src in
117608: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117609: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117610: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117611: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117612: esac
117613:
117614: cat >>Makefile.objects<<EOF
117615: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117616: $ac_comp
117617: EOF
117618: done
117619:
117620:
117621: EXT_STATIC="$EXT_STATIC sybase_ct"
117622: if test "$ext_shared" != "nocli"; then
117623: EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
117624: fi
117625: else
117626: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
117627: PHP_SYBASE_CT_SHARED=yes
117628:
117629: case ext/sybase_ct in
117630: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117631: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117632: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117633: esac
117634:
117635:
117636:
117637: b_c_pre=$shared_c_pre
117638: b_cxx_pre=$shared_cxx_pre
117639: b_c_meta=$shared_c_meta
117640: b_cxx_meta=$shared_cxx_meta
117641: b_c_post=$shared_c_post
117642: b_cxx_post=$shared_cxx_post
117643: b_lo=$shared_lo
117644:
117645:
117646: old_IFS=$IFS
117647: for ac_src in php_sybase_ct.c; do
117648:
117649: IFS=.
117650: set $ac_src
117651: ac_obj=$1
117652: IFS=$old_IFS
117653:
117654: shared_objects_sybase_ct="$shared_objects_sybase_ct $ac_bdir$ac_obj.lo"
117655:
117656: case $ac_src in
117657: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117658: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117659: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117660: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117661: esac
117662:
117663: cat >>Makefile.objects<<EOF
117664: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117665: $ac_comp
117666: EOF
117667: done
117668:
117669: case $host_alias in
117670: *netware*)
117671:
117672: install_modules="install-modules"
117673:
117674: case $host_alias in
117675: *aix*)
117676: suffix=so
117677: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsybase_ct.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(PHPSYBASE_CT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsybase_ct.so '$ext_builddir'/phpsybase_ct.so'
117678: ;;
117679: *netware*)
117680: suffix=nlm
117681: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) -L$(top_builddir)/netware -lphp5lib $(SYBASE_CT_SHARED_LIBADD)'
117682: ;;
117683: *)
117684: suffix=la
117685: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(PHPSYBASE_CT_SHARED_LIBADD)'
117686: ;;
117687: esac
117688:
117689: if test "x" = "xyes"; then
117690: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsybase_ct.$suffix"
117691: else
117692: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsybase_ct.$suffix"
117693: fi
117694:
117695: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
117696:
117697: cat >>Makefile.objects<<EOF
117698: \$(phplibdir)/phpsybase_ct.$suffix: $ext_builddir/phpsybase_ct.$suffix
117699: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsybase_ct.$suffix \$(phplibdir)
117700:
117701: $ext_builddir/phpsybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(PHPSYBASE_CT_SHARED_DEPENDENCIES)
117702: $link_cmd
117703:
117704: EOF
117705:
117706: ;;
117707: *)
117708:
117709: install_modules="install-modules"
117710:
117711: case $host_alias in
117712: *aix*)
117713: suffix=so
117714: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sybase_ct.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(SYBASE_CT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sybase_ct.so '$ext_builddir'/sybase_ct.so'
117715: ;;
117716: *netware*)
117717: suffix=nlm
117718: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) -L$(top_builddir)/netware -lphp5lib $(ASE_CT_SHARED_LIBADD)'
117719: ;;
117720: *)
117721: suffix=la
117722: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(SYBASE_CT_SHARED_LIBADD)'
117723: ;;
117724: esac
117725:
117726: if test "x" = "xyes"; then
117727: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sybase_ct.$suffix"
117728: else
117729: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sybase_ct.$suffix"
117730: fi
117731:
117732: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
117733:
117734: cat >>Makefile.objects<<EOF
117735: \$(phplibdir)/sybase_ct.$suffix: $ext_builddir/sybase_ct.$suffix
117736: \$(LIBTOOL) --mode=install cp $ext_builddir/sybase_ct.$suffix \$(phplibdir)
117737:
117738: $ext_builddir/sybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(SYBASE_CT_SHARED_DEPENDENCIES)
117739: $link_cmd
117740:
117741: EOF
117742:
117743: ;;
117744: esac
117745:
117746: cat >>confdefs.h <<_ACEOF
117747: #define COMPILE_DL_SYBASE_CT 1
117748: _ACEOF
117749:
117750: fi
117751: fi
117752:
117753: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
117754: PHP_SYBASE_CT_SHARED=no
1.1.1.3 ! misho 117755: case "$PHP_SAPI" in
! 117756: cgi|embed)
1.1 misho 117757:
117758:
117759: case ext/sybase_ct in
117760: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117761: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117762: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117763: esac
117764:
117765:
117766:
117767: b_c_pre=$php_c_pre
117768: b_cxx_pre=$php_cxx_pre
117769: b_c_meta=$php_c_meta
117770: b_cxx_meta=$php_cxx_meta
117771: b_c_post=$php_c_post
117772: b_cxx_post=$php_cxx_post
117773: b_lo=$php_lo
117774:
117775:
117776: old_IFS=$IFS
117777: for ac_src in php_sybase_ct.c; do
117778:
117779: IFS=.
117780: set $ac_src
117781: ac_obj=$1
117782: IFS=$old_IFS
117783:
1.1.1.2 misho 117784: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 117785:
117786: case $ac_src in
117787: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117788: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117789: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117790: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117791: esac
117792:
117793: cat >>Makefile.objects<<EOF
117794: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117795: $ac_comp
117796: EOF
117797: done
117798:
117799:
1.1.1.3 ! misho 117800: EXT_STATIC="$EXT_STATIC sybase_ct"
! 117801: ;;
! 117802: *)
1.1 misho 117803:
117804:
117805: case ext/sybase_ct in
117806: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117807: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117808: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117809: esac
117810:
117811:
117812:
117813: b_c_pre=$php_c_pre
117814: b_cxx_pre=$php_cxx_pre
117815: b_c_meta=$php_c_meta
117816: b_cxx_meta=$php_cxx_meta
117817: b_c_post=$php_c_post
117818: b_cxx_post=$php_cxx_post
117819: b_lo=$php_lo
117820:
117821:
117822: old_IFS=$IFS
117823: for ac_src in php_sybase_ct.c; do
117824:
117825: IFS=.
117826: set $ac_src
117827: ac_obj=$1
117828: IFS=$old_IFS
117829:
1.1.1.2 misho 117830: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 117831:
117832: case $ac_src in
117833: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117834: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117835: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
117836: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
117837: esac
117838:
117839: cat >>Makefile.objects<<EOF
117840: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117841: $ac_comp
117842: EOF
117843: done
117844:
117845:
1.1.1.3 ! misho 117846: ;;
! 117847: esac
1.1 misho 117848: EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
117849: fi
117850:
117851:
117852: BUILD_DIR="$BUILD_DIR $ext_builddir"
117853:
117854:
117855:
117856: if test "$ext_builddir" = "."; then
117857: PHP_PECL_EXTENSION=sybase_ct
117858:
117859: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
117860:
117861: fi
117862:
117863:
117864: PHP_VAR_SUBST="$PHP_VAR_SUBST SYBASE_CT_SHARED_LIBADD"
117865:
117866:
117867: if test "$PHP_SYBASE_CT" = "yes"; then
117868: SYBASE_CT_INCDIR=/home/sybase/include
117869: SYBASE_CT_LIBDIR=/home/sybase/lib
117870: else
117871: SYBASE_CT_INCDIR=$PHP_SYBASE_CT/include
117872: SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib
117873: fi
117874:
1.1.1.3 ! misho 117875: { echo "$as_me:$LINENO: checking for long int" >&5
! 117876: echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
! 117877: if test "${ac_cv_type_long_int+set}" = set; then
! 117878: echo $ECHO_N "(cached) $ECHO_C" >&6
! 117879: else
! 117880: cat >conftest.$ac_ext <<_ACEOF
! 117881: /* confdefs.h. */
! 117882: _ACEOF
! 117883: cat confdefs.h >>conftest.$ac_ext
! 117884: cat >>conftest.$ac_ext <<_ACEOF
! 117885: /* end confdefs.h. */
! 117886: $ac_includes_default
! 117887: typedef long int ac__type_new_;
! 117888: int
! 117889: main ()
! 117890: {
! 117891: if ((ac__type_new_ *) 0)
! 117892: return 0;
! 117893: if (sizeof (ac__type_new_))
! 117894: return 0;
! 117895: ;
! 117896: return 0;
! 117897: }
! 117898: _ACEOF
! 117899: rm -f conftest.$ac_objext
! 117900: if { (ac_try="$ac_compile"
! 117901: case "(($ac_try" in
! 117902: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 117903: *) ac_try_echo=$ac_try;;
! 117904: esac
! 117905: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 117906: (eval "$ac_compile") 2>conftest.er1
! 117907: ac_status=$?
! 117908: grep -v '^ *+' conftest.er1 >conftest.err
! 117909: rm -f conftest.er1
! 117910: cat conftest.err >&5
! 117911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 117912: (exit $ac_status); } && {
! 117913: test -z "$ac_c_werror_flag" ||
! 117914: test ! -s conftest.err
! 117915: } && test -s conftest.$ac_objext; then
! 117916: ac_cv_type_long_int=yes
! 117917: else
! 117918: echo "$as_me: failed program was:" >&5
! 117919: sed 's/^/| /' conftest.$ac_ext >&5
! 117920:
! 117921: ac_cv_type_long_int=no
! 117922: fi
! 117923:
! 117924: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 117925: fi
! 117926: { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
! 117927: echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
! 117928:
! 117929: # The cast to long int works around a bug in the HP C Compiler
1.1 misho 117930: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
117931: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
117932: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 117933: { echo "$as_me:$LINENO: checking size of long int" >&5
! 117934: echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
! 117935: if test "${ac_cv_sizeof_long_int+set}" = set; then
! 117936: echo $ECHO_N "(cached) $ECHO_C" >&6
! 117937: else
! 117938: if test "$cross_compiling" = yes; then
! 117939: # Depending upon the size, compute the lo and hi bounds.
! 117940: cat >conftest.$ac_ext <<_ACEOF
! 117941: /* confdefs.h. */
! 117942: _ACEOF
! 117943: cat confdefs.h >>conftest.$ac_ext
! 117944: cat >>conftest.$ac_ext <<_ACEOF
! 117945: /* end confdefs.h. */
! 117946: $ac_includes_default
! 117947: typedef long int ac__type_sizeof_;
! 117948: int
! 117949: main ()
! 117950: {
! 117951: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 117952: test_array [0] = 0
! 117953:
! 117954: ;
! 117955: return 0;
! 117956: }
! 117957: _ACEOF
! 117958: rm -f conftest.$ac_objext
! 117959: if { (ac_try="$ac_compile"
! 117960: case "(($ac_try" in
! 117961: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 117962: *) ac_try_echo=$ac_try;;
! 117963: esac
! 117964: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 117965: (eval "$ac_compile") 2>conftest.er1
! 117966: ac_status=$?
! 117967: grep -v '^ *+' conftest.er1 >conftest.err
! 117968: rm -f conftest.er1
! 117969: cat conftest.err >&5
! 117970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 117971: (exit $ac_status); } && {
! 117972: test -z "$ac_c_werror_flag" ||
! 117973: test ! -s conftest.err
! 117974: } && test -s conftest.$ac_objext; then
! 117975: ac_lo=0 ac_mid=0
! 117976: while :; do
! 117977: cat >conftest.$ac_ext <<_ACEOF
! 117978: /* confdefs.h. */
! 117979: _ACEOF
! 117980: cat confdefs.h >>conftest.$ac_ext
! 117981: cat >>conftest.$ac_ext <<_ACEOF
! 117982: /* end confdefs.h. */
! 117983: $ac_includes_default
! 117984: typedef long int ac__type_sizeof_;
! 117985: int
! 117986: main ()
! 117987: {
! 117988: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 117989: test_array [0] = 0
! 117990:
! 117991: ;
! 117992: return 0;
! 117993: }
! 117994: _ACEOF
! 117995: rm -f conftest.$ac_objext
! 117996: if { (ac_try="$ac_compile"
! 117997: case "(($ac_try" in
! 117998: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 117999: *) ac_try_echo=$ac_try;;
! 118000: esac
! 118001: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118002: (eval "$ac_compile") 2>conftest.er1
! 118003: ac_status=$?
! 118004: grep -v '^ *+' conftest.er1 >conftest.err
! 118005: rm -f conftest.er1
! 118006: cat conftest.err >&5
! 118007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118008: (exit $ac_status); } && {
! 118009: test -z "$ac_c_werror_flag" ||
! 118010: test ! -s conftest.err
! 118011: } && test -s conftest.$ac_objext; then
! 118012: ac_hi=$ac_mid; break
! 118013: else
! 118014: echo "$as_me: failed program was:" >&5
! 118015: sed 's/^/| /' conftest.$ac_ext >&5
! 118016:
! 118017: ac_lo=`expr $ac_mid + 1`
! 118018: if test $ac_lo -le $ac_mid; then
! 118019: ac_lo= ac_hi=
! 118020: break
! 118021: fi
! 118022: ac_mid=`expr 2 '*' $ac_mid + 1`
! 118023: fi
! 118024:
! 118025: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 118026: done
! 118027: else
! 118028: echo "$as_me: failed program was:" >&5
! 118029: sed 's/^/| /' conftest.$ac_ext >&5
! 118030:
! 118031: cat >conftest.$ac_ext <<_ACEOF
! 118032: /* confdefs.h. */
! 118033: _ACEOF
! 118034: cat confdefs.h >>conftest.$ac_ext
! 118035: cat >>conftest.$ac_ext <<_ACEOF
! 118036: /* end confdefs.h. */
! 118037: $ac_includes_default
! 118038: typedef long int ac__type_sizeof_;
! 118039: int
! 118040: main ()
! 118041: {
! 118042: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 118043: test_array [0] = 0
! 118044:
! 118045: ;
! 118046: return 0;
! 118047: }
! 118048: _ACEOF
! 118049: rm -f conftest.$ac_objext
! 118050: if { (ac_try="$ac_compile"
! 118051: case "(($ac_try" in
! 118052: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118053: *) ac_try_echo=$ac_try;;
! 118054: esac
! 118055: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118056: (eval "$ac_compile") 2>conftest.er1
! 118057: ac_status=$?
! 118058: grep -v '^ *+' conftest.er1 >conftest.err
! 118059: rm -f conftest.er1
! 118060: cat conftest.err >&5
! 118061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118062: (exit $ac_status); } && {
! 118063: test -z "$ac_c_werror_flag" ||
! 118064: test ! -s conftest.err
! 118065: } && test -s conftest.$ac_objext; then
! 118066: ac_hi=-1 ac_mid=-1
! 118067: while :; do
! 118068: cat >conftest.$ac_ext <<_ACEOF
! 118069: /* confdefs.h. */
! 118070: _ACEOF
! 118071: cat confdefs.h >>conftest.$ac_ext
! 118072: cat >>conftest.$ac_ext <<_ACEOF
! 118073: /* end confdefs.h. */
! 118074: $ac_includes_default
! 118075: typedef long int ac__type_sizeof_;
! 118076: int
! 118077: main ()
! 118078: {
! 118079: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 118080: test_array [0] = 0
! 118081:
! 118082: ;
! 118083: return 0;
! 118084: }
! 118085: _ACEOF
! 118086: rm -f conftest.$ac_objext
! 118087: if { (ac_try="$ac_compile"
! 118088: case "(($ac_try" in
! 118089: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118090: *) ac_try_echo=$ac_try;;
! 118091: esac
! 118092: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118093: (eval "$ac_compile") 2>conftest.er1
! 118094: ac_status=$?
! 118095: grep -v '^ *+' conftest.er1 >conftest.err
! 118096: rm -f conftest.er1
! 118097: cat conftest.err >&5
! 118098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118099: (exit $ac_status); } && {
! 118100: test -z "$ac_c_werror_flag" ||
! 118101: test ! -s conftest.err
! 118102: } && test -s conftest.$ac_objext; then
! 118103: ac_lo=$ac_mid; break
! 118104: else
! 118105: echo "$as_me: failed program was:" >&5
! 118106: sed 's/^/| /' conftest.$ac_ext >&5
! 118107:
! 118108: ac_hi=`expr '(' $ac_mid ')' - 1`
! 118109: if test $ac_mid -le $ac_hi; then
! 118110: ac_lo= ac_hi=
! 118111: break
! 118112: fi
! 118113: ac_mid=`expr 2 '*' $ac_mid`
! 118114: fi
! 118115:
! 118116: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 118117: done
! 118118: else
! 118119: echo "$as_me: failed program was:" >&5
! 118120: sed 's/^/| /' conftest.$ac_ext >&5
! 118121:
! 118122: ac_lo= ac_hi=
! 118123: fi
! 118124:
! 118125: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 118126: fi
! 118127:
! 118128: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 118129: # Binary search between lo and hi bounds.
! 118130: while test "x$ac_lo" != "x$ac_hi"; do
! 118131: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 118132: cat >conftest.$ac_ext <<_ACEOF
! 118133: /* confdefs.h. */
! 118134: _ACEOF
! 118135: cat confdefs.h >>conftest.$ac_ext
! 118136: cat >>conftest.$ac_ext <<_ACEOF
! 118137: /* end confdefs.h. */
! 118138: $ac_includes_default
! 118139: typedef long int ac__type_sizeof_;
! 118140: int
! 118141: main ()
! 118142: {
! 118143: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 118144: test_array [0] = 0
! 118145:
! 118146: ;
! 118147: return 0;
! 118148: }
! 118149: _ACEOF
! 118150: rm -f conftest.$ac_objext
! 118151: if { (ac_try="$ac_compile"
! 118152: case "(($ac_try" in
! 118153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118154: *) ac_try_echo=$ac_try;;
! 118155: esac
! 118156: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118157: (eval "$ac_compile") 2>conftest.er1
! 118158: ac_status=$?
! 118159: grep -v '^ *+' conftest.er1 >conftest.err
! 118160: rm -f conftest.er1
! 118161: cat conftest.err >&5
! 118162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118163: (exit $ac_status); } && {
! 118164: test -z "$ac_c_werror_flag" ||
! 118165: test ! -s conftest.err
! 118166: } && test -s conftest.$ac_objext; then
! 118167: ac_hi=$ac_mid
! 118168: else
! 118169: echo "$as_me: failed program was:" >&5
! 118170: sed 's/^/| /' conftest.$ac_ext >&5
! 118171:
! 118172: ac_lo=`expr '(' $ac_mid ')' + 1`
! 118173: fi
! 118174:
! 118175: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 118176: done
! 118177: case $ac_lo in
! 118178: ?*) ac_cv_sizeof_long_int=$ac_lo;;
! 118179: '') if test "$ac_cv_type_long_int" = yes; then
! 118180: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 118181: See \`config.log' for more details." >&5
! 118182: echo "$as_me: error: cannot compute sizeof (long int)
! 118183: See \`config.log' for more details." >&2;}
! 118184: { (exit 77); exit 77; }; }
! 118185: else
! 118186: ac_cv_sizeof_long_int=0
! 118187: fi ;;
! 118188: esac
! 118189: else
! 118190: cat >conftest.$ac_ext <<_ACEOF
! 118191: /* confdefs.h. */
! 118192: _ACEOF
! 118193: cat confdefs.h >>conftest.$ac_ext
! 118194: cat >>conftest.$ac_ext <<_ACEOF
! 118195: /* end confdefs.h. */
! 118196: $ac_includes_default
! 118197: typedef long int ac__type_sizeof_;
! 118198: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 118199: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 118200: #include <stdio.h>
! 118201: #include <stdlib.h>
! 118202: int
! 118203: main ()
! 118204: {
! 118205:
! 118206: FILE *f = fopen ("conftest.val", "w");
! 118207: if (! f)
! 118208: return 1;
! 118209: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 118210: {
! 118211: long int i = longval ();
! 118212: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 118213: return 1;
! 118214: fprintf (f, "%ld\n", i);
! 118215: }
! 118216: else
! 118217: {
! 118218: unsigned long int i = ulongval ();
! 118219: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 118220: return 1;
! 118221: fprintf (f, "%lu\n", i);
! 118222: }
! 118223: return ferror (f) || fclose (f) != 0;
1.1 misho 118224:
1.1.1.3 ! misho 118225: ;
! 118226: return 0;
! 118227: }
! 118228: _ACEOF
! 118229: rm -f conftest$ac_exeext
! 118230: if { (ac_try="$ac_link"
! 118231: case "(($ac_try" in
! 118232: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118233: *) ac_try_echo=$ac_try;;
! 118234: esac
! 118235: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118236: (eval "$ac_link") 2>&5
! 118237: ac_status=$?
! 118238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118239: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 118240: { (case "(($ac_try" in
! 118241: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118242: *) ac_try_echo=$ac_try;;
! 118243: esac
! 118244: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118245: (eval "$ac_try") 2>&5
! 118246: ac_status=$?
! 118247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118248: (exit $ac_status); }; }; then
! 118249: ac_cv_sizeof_long_int=`cat conftest.val`
1.1 misho 118250: else
1.1.1.3 ! misho 118251: echo "$as_me: program exited with status $ac_status" >&5
! 118252: echo "$as_me: failed program was:" >&5
! 118253: sed 's/^/| /' conftest.$ac_ext >&5
! 118254:
! 118255: ( exit $ac_status )
! 118256: if test "$ac_cv_type_long_int" = yes; then
! 118257: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
! 118258: See \`config.log' for more details." >&5
! 118259: echo "$as_me: error: cannot compute sizeof (long int)
! 118260: See \`config.log' for more details." >&2;}
! 118261: { (exit 77); exit 77; }; }
1.1 misho 118262: else
118263: ac_cv_sizeof_long_int=0
118264: fi
118265: fi
1.1.1.3 ! misho 118266: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 118267: fi
! 118268: rm -f conftest.val
1.1 misho 118269: fi
1.1.1.3 ! misho 118270: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
! 118271: echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
1.1 misho 118272:
118273:
118274:
118275: cat >>confdefs.h <<_ACEOF
118276: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
118277: _ACEOF
118278:
118279:
1.1.1.3 ! misho 118280: { echo "$as_me:$LINENO: checking checking if we're on a 64-bit platform" >&5
! 118281: echo $ECHO_N "checking checking if we're on a 64-bit platform... $ECHO_C" >&6; }
1.1 misho 118282: if test "$ac_cv_sizeof_long_int" = "4"; then
1.1.1.3 ! misho 118283: { echo "$as_me:$LINENO: result: no" >&5
! 118284: echo "${ECHO_T}no" >&6; }
1.1 misho 118285: PHP_SYBASE_64=no
118286: else
1.1.1.3 ! misho 118287: { echo "$as_me:$LINENO: result: yes" >&5
! 118288: echo "${ECHO_T}yes" >&6; }
1.1 misho 118289: PHP_SYBASE_64=yes
118290: fi
118291:
118292:
1.1.1.3 ! misho 118293: { echo "$as_me:$LINENO: checking Checking for ctpublic.h" >&5
! 118294: echo $ECHO_N "checking Checking for ctpublic.h... $ECHO_C" >&6; }
1.1 misho 118295: if test -f $SYBASE_CT_INCDIR/ctpublic.h; then
1.1.1.3 ! misho 118296: { echo "$as_me:$LINENO: result: found in $SYBASE_CT_INCDIR" >&5
! 118297: echo "${ECHO_T}found in $SYBASE_CT_INCDIR" >&6; }
1.1 misho 118298:
118299: if test "$SYBASE_CT_INCDIR" != "/usr/include"; then
118300:
118301: if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then
118302: ai_p=$SYBASE_CT_INCDIR
118303: else
118304:
118305: ep_dir="`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
118306:
118307: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
118308: ai_p="$ep_realdir/`basename \"$SYBASE_CT_INCDIR\"`"
118309: fi
118310:
118311:
118312:
118313: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
118314:
118315: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
118316: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118317: eval "INCLUDEPATH$unique=set"
118318:
118319: if test ""; then
118320: INCLUDES="-I$ai_p $INCLUDES"
118321: else
118322: INCLUDES="$INCLUDES -I$ai_p"
118323: fi
118324:
118325: fi
118326:
118327: fi
118328:
118329: else
1.1.1.3 ! misho 118330: { { echo "$as_me:$LINENO: error: ctpublic.h missing!" >&5
! 118331: echo "$as_me: error: ctpublic.h missing!" >&2;}
! 118332: { (exit 1); exit 1; }; }
1.1 misho 118333: fi
118334:
1.1.1.3 ! misho 118335: { echo "$as_me:$LINENO: checking Checking Sybase libdir" >&5
! 118336: echo $ECHO_N "checking Checking Sybase libdir... $ECHO_C" >&6; }
! 118337: { echo "$as_me:$LINENO: result: Have $SYBASE_CT_LIBDIR" >&5
! 118338: echo "${ECHO_T}Have $SYBASE_CT_LIBDIR" >&6; }
1.1 misho 118339:
1.1.1.3 ! misho 118340: { echo "$as_me:$LINENO: checking Checking for Sybase platform libraries" >&5
! 118341: echo $ECHO_N "checking Checking for Sybase platform libraries... $ECHO_C" >&6; }
1.1 misho 118342:
118343:
118344: if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then
118345:
118346: if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then
118347: ai_p=$SYBASE_CT_LIBDIR
118348: else
118349:
118350: ep_dir="`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
118351:
118352: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
118353: ai_p="$ep_realdir/`basename \"$SYBASE_CT_LIBDIR\"`"
118354: fi
118355:
118356:
118357: if test "$ext_shared" = "yes"; then
118358: SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD"
118359: test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD"
118360: else
118361:
118362:
118363:
118364: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
118365:
118366: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
118367: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118368: eval "LIBPATH$unique=set"
118369:
118370: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
118371: LDFLAGS="$LDFLAGS -L$ai_p"
118372: PHP_RPATHS="$PHP_RPATHS $ai_p"
118373:
118374: fi
118375:
118376:
118377: fi
118378:
118379: fi
118380:
118381: if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then
118382:
118383:
118384: case ct in
118385: c|c_r|pthread*) ;;
118386: *)
118387: if test "$ext_shared" = "yes"; then
118388: SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
118389: else
118390:
118391:
118392: case ct in
118393: c|c_r|pthread*) ;;
118394: *)
118395: LIBS="-lct $LIBS"
118396: ;;
118397: esac
118398:
118399:
118400: fi
118401: ;;
118402: esac
118403:
118404:
118405: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
1.1.1.3 ! misho 118406: { echo "$as_me:$LINENO: result: FreeTDS: $SYBASE_CT_LIBS" >&5
! 118407: echo "${ECHO_T}FreeTDS: $SYBASE_CT_LIBS" >&6; }
1.1 misho 118408: elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then
118409:
118410:
118411: case sybcs64 in
118412: c|c_r|pthread*) ;;
118413: *)
118414: if test "$ext_shared" = "yes"; then
118415: SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD"
118416: else
118417:
118418:
118419: case sybcs64 in
118420: c|c_r|pthread*) ;;
118421: *)
118422: LIBS="-lsybcs64 $LIBS"
118423: ;;
118424: esac
118425:
118426:
118427: fi
118428: ;;
118429: esac
118430:
118431:
118432:
118433:
118434: case sybct64 in
118435: c|c_r|pthread*) ;;
118436: *)
118437: if test "$ext_shared" = "yes"; then
118438: SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD"
118439: else
118440:
118441:
118442: case sybct64 in
118443: c|c_r|pthread*) ;;
118444: *)
118445: LIBS="-lsybct64 $LIBS"
118446: ;;
118447: esac
118448:
118449:
118450: fi
118451: ;;
118452: esac
118453:
118454:
118455:
118456:
118457: case sybcomn64 in
118458: c|c_r|pthread*) ;;
118459: *)
118460: if test "$ext_shared" = "yes"; then
118461: SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD"
118462: else
118463:
118464:
118465: case sybcomn64 in
118466: c|c_r|pthread*) ;;
118467: *)
118468: LIBS="-lsybcomn64 $LIBS"
118469: ;;
118470: esac
118471:
118472:
118473: fi
118474: ;;
118475: esac
118476:
118477:
118478:
118479:
118480: case sybintl64 in
118481: c|c_r|pthread*) ;;
118482: *)
118483: if test "$ext_shared" = "yes"; then
118484: SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD"
118485: else
118486:
118487:
118488: case sybintl64 in
118489: c|c_r|pthread*) ;;
118490: *)
118491: LIBS="-lsybintl64 $LIBS"
118492: ;;
118493: esac
118494:
118495:
118496: fi
118497: ;;
118498: esac
118499:
118500:
118501:
118502: ac_solid_uname_s=`uname -s 2>/dev/null`
118503: case $ac_solid_uname_s in
118504: *OSF*) ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define
118505: *) CFLAGS="${CFLAGS} -DSYB_LP64" ;; #
118506: esac
118507: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64"
1.1.1.3 ! misho 118508: { echo "$as_me:$LINENO: result: Sybase64: $SYBASE_CT_LIBS" >&5
! 118509: echo "${ECHO_T}Sybase64: $SYBASE_CT_LIBS" >&6; }
1.1 misho 118510:
118511:
118512: save_old_LDFLAGS=$LDFLAGS
118513: ac_stuff="
118514: $SYBASE_CT_LIBS
118515: "
118516:
118517: save_ext_shared=$ext_shared
118518: ext_shared=yes
118519:
118520: for ac_i in $ac_stuff; do
118521: case $ac_i in
118522: -pthread)
118523: if test "$ext_shared" = "yes"; then
118524: LDFLAGS="$LDFLAGS -pthread"
118525: else
118526:
118527:
118528: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
118529:
118530: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
118531: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118532: eval "EXTRA_LDFLAGS$unique=set"
118533: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
118534: fi
118535:
118536: fi
118537: ;;
118538: -l*)
118539: ac_ii=`echo $ac_i|cut -c 3-`
118540:
118541:
118542: case $ac_ii in
118543: c|c_r|pthread*) ;;
118544: *)
118545: if test "$ext_shared" = "yes"; then
118546: LDFLAGS="$LDFLAGS -l$ac_ii"
118547: else
118548:
118549:
118550: case $ac_ii in
118551: c|c_r|pthread*) ;;
118552: *)
118553: LIBS="$LIBS -l$ac_ii"
118554: ;;
118555: esac
118556:
118557:
118558: fi
118559: ;;
118560: esac
118561:
118562:
118563: ;;
118564: -L*)
118565: ac_ii=`echo $ac_i|cut -c 3-`
118566:
118567: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
118568:
118569: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
118570: ai_p=$ac_ii
118571: else
118572:
118573: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
118574:
118575: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
118576: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
118577: fi
118578:
118579:
118580: if test "$ext_shared" = "yes"; then
118581: LDFLAGS="-L$ai_p $LDFLAGS"
118582: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
118583: else
118584:
118585:
118586:
118587: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
118588:
118589: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
118590: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118591: eval "LIBPATH$unique=set"
118592:
118593: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
118594: LDFLAGS="$LDFLAGS -L$ai_p"
118595: PHP_RPATHS="$PHP_RPATHS $ai_p"
118596:
118597: fi
118598:
118599:
118600: fi
118601:
118602: fi
118603:
118604: ;;
118605: esac
118606: done
118607:
1.1.1.3 ! misho 118608: { echo "$as_me:$LINENO: checking for netg_errstr in -lsybtcl64" >&5
! 118609: echo $ECHO_N "checking for netg_errstr in -lsybtcl64... $ECHO_C" >&6; }
! 118610: if test "${ac_cv_lib_sybtcl64_netg_errstr+set}" = set; then
! 118611: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 118612: else
118613: ac_check_lib_save_LIBS=$LIBS
118614: LIBS="-lsybtcl64 $LIBS"
1.1.1.3 ! misho 118615: cat >conftest.$ac_ext <<_ACEOF
! 118616: /* confdefs.h. */
! 118617: _ACEOF
! 118618: cat confdefs.h >>conftest.$ac_ext
! 118619: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 118620: /* end confdefs.h. */
118621:
118622: /* Override any GCC internal prototype to avoid an error.
118623: Use char because int might match the return type of a GCC
118624: builtin and then its argument prototype would still apply. */
118625: #ifdef __cplusplus
118626: extern "C"
118627: #endif
118628: char netg_errstr ();
118629: int
118630: main ()
118631: {
118632: return netg_errstr ();
118633: ;
118634: return 0;
118635: }
118636: _ACEOF
1.1.1.3 ! misho 118637: rm -f conftest.$ac_objext conftest$ac_exeext
! 118638: if { (ac_try="$ac_link"
! 118639: case "(($ac_try" in
! 118640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118641: *) ac_try_echo=$ac_try;;
! 118642: esac
! 118643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118644: (eval "$ac_link") 2>conftest.er1
! 118645: ac_status=$?
! 118646: grep -v '^ *+' conftest.er1 >conftest.err
! 118647: rm -f conftest.er1
! 118648: cat conftest.err >&5
! 118649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118650: (exit $ac_status); } && {
! 118651: test -z "$ac_c_werror_flag" ||
! 118652: test ! -s conftest.err
! 118653: } && test -s conftest$ac_exeext &&
! 118654: $as_test_x conftest$ac_exeext; then
1.1 misho 118655: ac_cv_lib_sybtcl64_netg_errstr=yes
118656: else
1.1.1.3 ! misho 118657: echo "$as_me: failed program was:" >&5
! 118658: sed 's/^/| /' conftest.$ac_ext >&5
! 118659:
! 118660: ac_cv_lib_sybtcl64_netg_errstr=no
1.1 misho 118661: fi
1.1.1.3 ! misho 118662:
! 118663: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 118664: conftest$ac_exeext conftest.$ac_ext
1.1 misho 118665: LIBS=$ac_check_lib_save_LIBS
118666: fi
1.1.1.3 ! misho 118667: { echo "$as_me:$LINENO: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5
! 118668: echo "${ECHO_T}$ac_cv_lib_sybtcl64_netg_errstr" >&6; }
! 118669: if test $ac_cv_lib_sybtcl64_netg_errstr = yes; then
1.1 misho 118670:
118671: LDFLAGS=$save_old_LDFLAGS
118672: ext_shared=$save_ext_shared
118673:
118674:
118675:
118676: case sybtcl64 in
118677: c|c_r|pthread*) ;;
118678: *)
118679: if test "$ext_shared" = "yes"; then
118680: SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
118681: else
118682:
118683:
118684: case sybtcl64 in
118685: c|c_r|pthread*) ;;
118686: *)
118687: LIBS="-lsybtcl64 $LIBS"
118688: ;;
118689: esac
118690:
118691:
118692: fi
118693: ;;
118694: esac
118695:
118696:
118697:
118698:
118699: else
118700:
118701: LDFLAGS=$save_old_LDFLAGS
118702: ext_shared=$save_ext_shared
118703: unset ac_cv_lib_sybtcl64_netg_errstr
118704:
118705:
118706:
118707: case sybtcl64 in
118708: c|c_r|pthread*) ;;
118709: *)
118710: if test "$ext_shared" = "yes"; then
118711: SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
118712: else
118713:
118714:
118715: case sybtcl64 in
118716: c|c_r|pthread*) ;;
118717: *)
118718: LIBS="-lsybtcl64 $LIBS"
118719: ;;
118720: esac
118721:
118722:
118723: fi
118724: ;;
118725: esac
118726:
118727:
118728:
118729:
118730: fi
118731:
118732:
118733:
118734: save_old_LDFLAGS=$LDFLAGS
118735: ac_stuff="-L$SYBASE_CT_LIBDIR"
118736:
118737: save_ext_shared=$ext_shared
118738: ext_shared=yes
118739:
118740: for ac_i in $ac_stuff; do
118741: case $ac_i in
118742: -pthread)
118743: if test "$ext_shared" = "yes"; then
118744: LDFLAGS="$LDFLAGS -pthread"
118745: else
118746:
118747:
118748: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
118749:
118750: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
118751: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118752: eval "EXTRA_LDFLAGS$unique=set"
118753: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
118754: fi
118755:
118756: fi
118757: ;;
118758: -l*)
118759: ac_ii=`echo $ac_i|cut -c 3-`
118760:
118761:
118762: case $ac_ii in
118763: c|c_r|pthread*) ;;
118764: *)
118765: if test "$ext_shared" = "yes"; then
118766: LDFLAGS="$LDFLAGS -l$ac_ii"
118767: else
118768:
118769:
118770: case $ac_ii in
118771: c|c_r|pthread*) ;;
118772: *)
118773: LIBS="$LIBS -l$ac_ii"
118774: ;;
118775: esac
118776:
118777:
118778: fi
118779: ;;
118780: esac
118781:
118782:
118783: ;;
118784: -L*)
118785: ac_ii=`echo $ac_i|cut -c 3-`
118786:
118787: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
118788:
118789: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
118790: ai_p=$ac_ii
118791: else
118792:
118793: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
118794:
118795: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
118796: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
118797: fi
118798:
118799:
118800: if test "$ext_shared" = "yes"; then
118801: LDFLAGS="-L$ai_p $LDFLAGS"
118802: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
118803: else
118804:
118805:
118806:
118807: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
118808:
118809: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
118810: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118811: eval "LIBPATH$unique=set"
118812:
118813: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
118814: LDFLAGS="$LDFLAGS -L$ai_p"
118815: PHP_RPATHS="$PHP_RPATHS $ai_p"
118816:
118817: fi
118818:
118819:
118820: fi
118821:
118822: fi
118823:
118824: ;;
118825: esac
118826: done
118827:
1.1.1.3 ! misho 118828: { echo "$as_me:$LINENO: checking for insck__getVdate in -linsck64" >&5
! 118829: echo $ECHO_N "checking for insck__getVdate in -linsck64... $ECHO_C" >&6; }
! 118830: if test "${ac_cv_lib_insck64_insck__getVdate+set}" = set; then
! 118831: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 118832: else
118833: ac_check_lib_save_LIBS=$LIBS
118834: LIBS="-linsck64 $LIBS"
1.1.1.3 ! misho 118835: cat >conftest.$ac_ext <<_ACEOF
! 118836: /* confdefs.h. */
! 118837: _ACEOF
! 118838: cat confdefs.h >>conftest.$ac_ext
! 118839: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 118840: /* end confdefs.h. */
118841:
118842: /* Override any GCC internal prototype to avoid an error.
118843: Use char because int might match the return type of a GCC
118844: builtin and then its argument prototype would still apply. */
118845: #ifdef __cplusplus
118846: extern "C"
118847: #endif
118848: char insck__getVdate ();
118849: int
118850: main ()
118851: {
118852: return insck__getVdate ();
118853: ;
118854: return 0;
118855: }
118856: _ACEOF
1.1.1.3 ! misho 118857: rm -f conftest.$ac_objext conftest$ac_exeext
! 118858: if { (ac_try="$ac_link"
! 118859: case "(($ac_try" in
! 118860: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 118861: *) ac_try_echo=$ac_try;;
! 118862: esac
! 118863: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 118864: (eval "$ac_link") 2>conftest.er1
! 118865: ac_status=$?
! 118866: grep -v '^ *+' conftest.er1 >conftest.err
! 118867: rm -f conftest.er1
! 118868: cat conftest.err >&5
! 118869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 118870: (exit $ac_status); } && {
! 118871: test -z "$ac_c_werror_flag" ||
! 118872: test ! -s conftest.err
! 118873: } && test -s conftest$ac_exeext &&
! 118874: $as_test_x conftest$ac_exeext; then
1.1 misho 118875: ac_cv_lib_insck64_insck__getVdate=yes
118876: else
1.1.1.3 ! misho 118877: echo "$as_me: failed program was:" >&5
! 118878: sed 's/^/| /' conftest.$ac_ext >&5
! 118879:
! 118880: ac_cv_lib_insck64_insck__getVdate=no
1.1 misho 118881: fi
1.1.1.3 ! misho 118882:
! 118883: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 118884: conftest$ac_exeext conftest.$ac_ext
1.1 misho 118885: LIBS=$ac_check_lib_save_LIBS
118886: fi
1.1.1.3 ! misho 118887: { echo "$as_me:$LINENO: result: $ac_cv_lib_insck64_insck__getVdate" >&5
! 118888: echo "${ECHO_T}$ac_cv_lib_insck64_insck__getVdate" >&6; }
! 118889: if test $ac_cv_lib_insck64_insck__getVdate = yes; then
1.1 misho 118890:
118891: LDFLAGS=$save_old_LDFLAGS
118892: ext_shared=$save_ext_shared
118893:
118894:
118895: case insck64 in
118896: c|c_r|pthread*) ;;
118897: *)
118898: if test "$ext_shared" = "yes"; then
118899: SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
118900: else
118901:
118902:
118903: case insck64 in
118904: c|c_r|pthread*) ;;
118905: *)
118906: LIBS="-linsck64 $LIBS"
118907: ;;
118908: esac
118909:
118910:
118911: fi
118912: ;;
118913: esac
118914:
118915:
118916:
118917: else
118918:
118919: LDFLAGS=$save_old_LDFLAGS
118920: ext_shared=$save_ext_shared
118921: unset ac_cv_lib_insck64_insck__getVdate
118922:
118923:
118924: fi
118925:
118926:
118927: save_old_LDFLAGS=$LDFLAGS
118928: ac_stuff="-L$SYBASE_CT_LIBDIR"
118929:
118930: save_ext_shared=$ext_shared
118931: ext_shared=yes
118932:
118933: for ac_i in $ac_stuff; do
118934: case $ac_i in
118935: -pthread)
118936: if test "$ext_shared" = "yes"; then
118937: LDFLAGS="$LDFLAGS -pthread"
118938: else
118939:
118940:
118941: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
118942:
118943: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
118944: if test -n "$unique" && test "`eval $cmd`" = "" ; then
118945: eval "EXTRA_LDFLAGS$unique=set"
118946: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
118947: fi
118948:
118949: fi
118950: ;;
118951: -l*)
118952: ac_ii=`echo $ac_i|cut -c 3-`
118953:
118954:
118955: case $ac_ii in
118956: c|c_r|pthread*) ;;
118957: *)
118958: if test "$ext_shared" = "yes"; then
118959: LDFLAGS="$LDFLAGS -l$ac_ii"
118960: else
118961:
118962:
118963: case $ac_ii in
118964: c|c_r|pthread*) ;;
118965: *)
118966: LIBS="$LIBS -l$ac_ii"
118967: ;;
118968: esac
118969:
118970:
118971: fi
118972: ;;
118973: esac
118974:
118975:
118976: ;;
118977: -L*)
118978: ac_ii=`echo $ac_i|cut -c 3-`
118979:
118980: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
118981:
118982: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
118983: ai_p=$ac_ii
118984: else
118985:
118986: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
118987:
118988: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
118989: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
118990: fi
118991:
118992:
118993: if test "$ext_shared" = "yes"; then
118994: LDFLAGS="-L$ai_p $LDFLAGS"
118995: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
118996: else
118997:
118998:
118999:
119000: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
119001:
119002: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
119003: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119004: eval "LIBPATH$unique=set"
119005:
119006: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
119007: LDFLAGS="$LDFLAGS -L$ai_p"
119008: PHP_RPATHS="$PHP_RPATHS $ai_p"
119009:
119010: fi
119011:
119012:
119013: fi
119014:
119015: fi
119016:
119017: ;;
119018: esac
119019: done
119020:
1.1.1.3 ! misho 119021: { echo "$as_me:$LINENO: checking for bsd_tcp in -linsck64" >&5
! 119022: echo $ECHO_N "checking for bsd_tcp in -linsck64... $ECHO_C" >&6; }
! 119023: if test "${ac_cv_lib_insck64_bsd_tcp+set}" = set; then
! 119024: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 119025: else
119026: ac_check_lib_save_LIBS=$LIBS
119027: LIBS="-linsck64 $LIBS"
1.1.1.3 ! misho 119028: cat >conftest.$ac_ext <<_ACEOF
! 119029: /* confdefs.h. */
! 119030: _ACEOF
! 119031: cat confdefs.h >>conftest.$ac_ext
! 119032: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 119033: /* end confdefs.h. */
119034:
119035: /* Override any GCC internal prototype to avoid an error.
119036: Use char because int might match the return type of a GCC
119037: builtin and then its argument prototype would still apply. */
119038: #ifdef __cplusplus
119039: extern "C"
119040: #endif
119041: char bsd_tcp ();
119042: int
119043: main ()
119044: {
119045: return bsd_tcp ();
119046: ;
119047: return 0;
119048: }
119049: _ACEOF
1.1.1.3 ! misho 119050: rm -f conftest.$ac_objext conftest$ac_exeext
! 119051: if { (ac_try="$ac_link"
! 119052: case "(($ac_try" in
! 119053: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 119054: *) ac_try_echo=$ac_try;;
! 119055: esac
! 119056: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 119057: (eval "$ac_link") 2>conftest.er1
! 119058: ac_status=$?
! 119059: grep -v '^ *+' conftest.er1 >conftest.err
! 119060: rm -f conftest.er1
! 119061: cat conftest.err >&5
! 119062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 119063: (exit $ac_status); } && {
! 119064: test -z "$ac_c_werror_flag" ||
! 119065: test ! -s conftest.err
! 119066: } && test -s conftest$ac_exeext &&
! 119067: $as_test_x conftest$ac_exeext; then
1.1 misho 119068: ac_cv_lib_insck64_bsd_tcp=yes
119069: else
1.1.1.3 ! misho 119070: echo "$as_me: failed program was:" >&5
! 119071: sed 's/^/| /' conftest.$ac_ext >&5
! 119072:
! 119073: ac_cv_lib_insck64_bsd_tcp=no
1.1 misho 119074: fi
1.1.1.3 ! misho 119075:
! 119076: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 119077: conftest$ac_exeext conftest.$ac_ext
1.1 misho 119078: LIBS=$ac_check_lib_save_LIBS
119079: fi
1.1.1.3 ! misho 119080: { echo "$as_me:$LINENO: result: $ac_cv_lib_insck64_bsd_tcp" >&5
! 119081: echo "${ECHO_T}$ac_cv_lib_insck64_bsd_tcp" >&6; }
! 119082: if test $ac_cv_lib_insck64_bsd_tcp = yes; then
1.1 misho 119083:
119084: LDFLAGS=$save_old_LDFLAGS
119085: ext_shared=$save_ext_shared
119086:
119087:
119088: case insck64 in
119089: c|c_r|pthread*) ;;
119090: *)
119091: if test "$ext_shared" = "yes"; then
119092: SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
119093: else
119094:
119095:
119096: case insck64 in
119097: c|c_r|pthread*) ;;
119098: *)
119099: LIBS="-linsck64 $LIBS"
119100: ;;
119101: esac
119102:
119103:
119104: fi
119105: ;;
119106: esac
119107:
119108:
119109:
119110: else
119111:
119112: LDFLAGS=$save_old_LDFLAGS
119113: ext_shared=$save_ext_shared
119114: unset ac_cv_lib_insck64_bsd_tcp
119115:
119116:
119117: fi
119118:
119119: elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then
119120:
119121:
119122: case sybcs in
119123: c|c_r|pthread*) ;;
119124: *)
119125: if test "$ext_shared" = "yes"; then
119126: SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD"
119127: else
119128:
119129:
119130: case sybcs in
119131: c|c_r|pthread*) ;;
119132: *)
119133: LIBS="-lsybcs $LIBS"
119134: ;;
119135: esac
119136:
119137:
119138: fi
119139: ;;
119140: esac
119141:
119142:
119143:
119144:
119145: case sybct in
119146: c|c_r|pthread*) ;;
119147: *)
119148: if test "$ext_shared" = "yes"; then
119149: SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD"
119150: else
119151:
119152:
119153: case sybct in
119154: c|c_r|pthread*) ;;
119155: *)
119156: LIBS="-lsybct $LIBS"
119157: ;;
119158: esac
119159:
119160:
119161: fi
119162: ;;
119163: esac
119164:
119165:
119166:
119167:
119168: case sybcomn in
119169: c|c_r|pthread*) ;;
119170: *)
119171: if test "$ext_shared" = "yes"; then
119172: SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD"
119173: else
119174:
119175:
119176: case sybcomn in
119177: c|c_r|pthread*) ;;
119178: *)
119179: LIBS="-lsybcomn $LIBS"
119180: ;;
119181: esac
119182:
119183:
119184: fi
119185: ;;
119186: esac
119187:
119188:
119189:
119190:
119191: case sybintl in
119192: c|c_r|pthread*) ;;
119193: *)
119194: if test "$ext_shared" = "yes"; then
119195: SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD"
119196: else
119197:
119198:
119199: case sybintl in
119200: c|c_r|pthread*) ;;
119201: *)
119202: LIBS="-lsybintl $LIBS"
119203: ;;
119204: esac
119205:
119206:
119207: fi
119208: ;;
119209: esac
119210:
119211:
119212:
119213: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl"
1.1.1.3 ! misho 119214: { echo "$as_me:$LINENO: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5
! 119215: echo "${ECHO_T}Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; }
1.1 misho 119216:
119217:
119218: save_old_LDFLAGS=$LDFLAGS
119219: ac_stuff="
119220: $SYBASE_CT_LIBS
119221: "
119222:
119223: save_ext_shared=$ext_shared
119224: ext_shared=yes
119225:
119226: for ac_i in $ac_stuff; do
119227: case $ac_i in
119228: -pthread)
119229: if test "$ext_shared" = "yes"; then
119230: LDFLAGS="$LDFLAGS -pthread"
119231: else
119232:
119233:
119234: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
119235:
119236: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
119237: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119238: eval "EXTRA_LDFLAGS$unique=set"
119239: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
119240: fi
119241:
119242: fi
119243: ;;
119244: -l*)
119245: ac_ii=`echo $ac_i|cut -c 3-`
119246:
119247:
119248: case $ac_ii in
119249: c|c_r|pthread*) ;;
119250: *)
119251: if test "$ext_shared" = "yes"; then
119252: LDFLAGS="$LDFLAGS -l$ac_ii"
119253: else
119254:
119255:
119256: case $ac_ii in
119257: c|c_r|pthread*) ;;
119258: *)
119259: LIBS="$LIBS -l$ac_ii"
119260: ;;
119261: esac
119262:
119263:
119264: fi
119265: ;;
119266: esac
119267:
119268:
119269: ;;
119270: -L*)
119271: ac_ii=`echo $ac_i|cut -c 3-`
119272:
119273: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
119274:
119275: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
119276: ai_p=$ac_ii
119277: else
119278:
119279: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
119280:
119281: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
119282: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
119283: fi
119284:
119285:
119286: if test "$ext_shared" = "yes"; then
119287: LDFLAGS="-L$ai_p $LDFLAGS"
119288: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
119289: else
119290:
119291:
119292:
119293: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
119294:
119295: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
119296: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119297: eval "LIBPATH$unique=set"
119298:
119299: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
119300: LDFLAGS="$LDFLAGS -L$ai_p"
119301: PHP_RPATHS="$PHP_RPATHS $ai_p"
119302:
119303: fi
119304:
119305:
119306: fi
119307:
119308: fi
119309:
119310: ;;
119311: esac
119312: done
119313:
1.1.1.3 ! misho 119314: { echo "$as_me:$LINENO: checking for netg_errstr in -lsybtcl" >&5
! 119315: echo $ECHO_N "checking for netg_errstr in -lsybtcl... $ECHO_C" >&6; }
! 119316: if test "${ac_cv_lib_sybtcl_netg_errstr+set}" = set; then
! 119317: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 119318: else
119319: ac_check_lib_save_LIBS=$LIBS
119320: LIBS="-lsybtcl $LIBS"
1.1.1.3 ! misho 119321: cat >conftest.$ac_ext <<_ACEOF
! 119322: /* confdefs.h. */
! 119323: _ACEOF
! 119324: cat confdefs.h >>conftest.$ac_ext
! 119325: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 119326: /* end confdefs.h. */
119327:
119328: /* Override any GCC internal prototype to avoid an error.
119329: Use char because int might match the return type of a GCC
119330: builtin and then its argument prototype would still apply. */
119331: #ifdef __cplusplus
119332: extern "C"
119333: #endif
119334: char netg_errstr ();
119335: int
119336: main ()
119337: {
119338: return netg_errstr ();
119339: ;
119340: return 0;
119341: }
119342: _ACEOF
1.1.1.3 ! misho 119343: rm -f conftest.$ac_objext conftest$ac_exeext
! 119344: if { (ac_try="$ac_link"
! 119345: case "(($ac_try" in
! 119346: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 119347: *) ac_try_echo=$ac_try;;
! 119348: esac
! 119349: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 119350: (eval "$ac_link") 2>conftest.er1
! 119351: ac_status=$?
! 119352: grep -v '^ *+' conftest.er1 >conftest.err
! 119353: rm -f conftest.er1
! 119354: cat conftest.err >&5
! 119355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 119356: (exit $ac_status); } && {
! 119357: test -z "$ac_c_werror_flag" ||
! 119358: test ! -s conftest.err
! 119359: } && test -s conftest$ac_exeext &&
! 119360: $as_test_x conftest$ac_exeext; then
1.1 misho 119361: ac_cv_lib_sybtcl_netg_errstr=yes
119362: else
1.1.1.3 ! misho 119363: echo "$as_me: failed program was:" >&5
! 119364: sed 's/^/| /' conftest.$ac_ext >&5
! 119365:
! 119366: ac_cv_lib_sybtcl_netg_errstr=no
1.1 misho 119367: fi
1.1.1.3 ! misho 119368:
! 119369: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 119370: conftest$ac_exeext conftest.$ac_ext
1.1 misho 119371: LIBS=$ac_check_lib_save_LIBS
119372: fi
1.1.1.3 ! misho 119373: { echo "$as_me:$LINENO: result: $ac_cv_lib_sybtcl_netg_errstr" >&5
! 119374: echo "${ECHO_T}$ac_cv_lib_sybtcl_netg_errstr" >&6; }
! 119375: if test $ac_cv_lib_sybtcl_netg_errstr = yes; then
1.1 misho 119376:
119377: LDFLAGS=$save_old_LDFLAGS
119378: ext_shared=$save_ext_shared
119379:
119380:
119381:
119382: case sybtcl in
119383: c|c_r|pthread*) ;;
119384: *)
119385: if test "$ext_shared" = "yes"; then
119386: SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
119387: else
119388:
119389:
119390: case sybtcl in
119391: c|c_r|pthread*) ;;
119392: *)
119393: LIBS="-lsybtcl $LIBS"
119394: ;;
119395: esac
119396:
119397:
119398: fi
119399: ;;
119400: esac
119401:
119402:
119403:
119404:
119405: else
119406:
119407: LDFLAGS=$save_old_LDFLAGS
119408: ext_shared=$save_ext_shared
119409: unset ac_cv_lib_sybtcl_netg_errstr
119410:
119411:
119412:
119413: case sybtcl in
119414: c|c_r|pthread*) ;;
119415: *)
119416: if test "$ext_shared" = "yes"; then
119417: SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
119418: else
119419:
119420:
119421: case sybtcl in
119422: c|c_r|pthread*) ;;
119423: *)
119424: LIBS="-lsybtcl $LIBS"
119425: ;;
119426: esac
119427:
119428:
119429: fi
119430: ;;
119431: esac
119432:
119433:
119434:
119435:
119436: fi
119437:
119438:
119439:
119440: save_old_LDFLAGS=$LDFLAGS
119441: ac_stuff="-L$SYBASE_CT_LIBDIR"
119442:
119443: save_ext_shared=$ext_shared
119444: ext_shared=yes
119445:
119446: for ac_i in $ac_stuff; do
119447: case $ac_i in
119448: -pthread)
119449: if test "$ext_shared" = "yes"; then
119450: LDFLAGS="$LDFLAGS -pthread"
119451: else
119452:
119453:
119454: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
119455:
119456: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
119457: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119458: eval "EXTRA_LDFLAGS$unique=set"
119459: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
119460: fi
119461:
119462: fi
119463: ;;
119464: -l*)
119465: ac_ii=`echo $ac_i|cut -c 3-`
119466:
119467:
119468: case $ac_ii in
119469: c|c_r|pthread*) ;;
119470: *)
119471: if test "$ext_shared" = "yes"; then
119472: LDFLAGS="$LDFLAGS -l$ac_ii"
119473: else
119474:
119475:
119476: case $ac_ii in
119477: c|c_r|pthread*) ;;
119478: *)
119479: LIBS="$LIBS -l$ac_ii"
119480: ;;
119481: esac
119482:
119483:
119484: fi
119485: ;;
119486: esac
119487:
119488:
119489: ;;
119490: -L*)
119491: ac_ii=`echo $ac_i|cut -c 3-`
119492:
119493: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
119494:
119495: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
119496: ai_p=$ac_ii
119497: else
119498:
119499: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
119500:
119501: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
119502: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
119503: fi
119504:
119505:
119506: if test "$ext_shared" = "yes"; then
119507: LDFLAGS="-L$ai_p $LDFLAGS"
119508: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
119509: else
119510:
119511:
119512:
119513: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
119514:
119515: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
119516: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119517: eval "LIBPATH$unique=set"
119518:
119519: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
119520: LDFLAGS="$LDFLAGS -L$ai_p"
119521: PHP_RPATHS="$PHP_RPATHS $ai_p"
119522:
119523: fi
119524:
119525:
119526: fi
119527:
119528: fi
119529:
119530: ;;
119531: esac
119532: done
119533:
1.1.1.3 ! misho 119534: { echo "$as_me:$LINENO: checking for insck__getVdate in -linsck" >&5
! 119535: echo $ECHO_N "checking for insck__getVdate in -linsck... $ECHO_C" >&6; }
! 119536: if test "${ac_cv_lib_insck_insck__getVdate+set}" = set; then
! 119537: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 119538: else
119539: ac_check_lib_save_LIBS=$LIBS
119540: LIBS="-linsck $LIBS"
1.1.1.3 ! misho 119541: cat >conftest.$ac_ext <<_ACEOF
! 119542: /* confdefs.h. */
! 119543: _ACEOF
! 119544: cat confdefs.h >>conftest.$ac_ext
! 119545: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 119546: /* end confdefs.h. */
119547:
119548: /* Override any GCC internal prototype to avoid an error.
119549: Use char because int might match the return type of a GCC
119550: builtin and then its argument prototype would still apply. */
119551: #ifdef __cplusplus
119552: extern "C"
119553: #endif
119554: char insck__getVdate ();
119555: int
119556: main ()
119557: {
119558: return insck__getVdate ();
119559: ;
119560: return 0;
119561: }
119562: _ACEOF
1.1.1.3 ! misho 119563: rm -f conftest.$ac_objext conftest$ac_exeext
! 119564: if { (ac_try="$ac_link"
! 119565: case "(($ac_try" in
! 119566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 119567: *) ac_try_echo=$ac_try;;
! 119568: esac
! 119569: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 119570: (eval "$ac_link") 2>conftest.er1
! 119571: ac_status=$?
! 119572: grep -v '^ *+' conftest.er1 >conftest.err
! 119573: rm -f conftest.er1
! 119574: cat conftest.err >&5
! 119575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 119576: (exit $ac_status); } && {
! 119577: test -z "$ac_c_werror_flag" ||
! 119578: test ! -s conftest.err
! 119579: } && test -s conftest$ac_exeext &&
! 119580: $as_test_x conftest$ac_exeext; then
1.1 misho 119581: ac_cv_lib_insck_insck__getVdate=yes
119582: else
1.1.1.3 ! misho 119583: echo "$as_me: failed program was:" >&5
! 119584: sed 's/^/| /' conftest.$ac_ext >&5
! 119585:
! 119586: ac_cv_lib_insck_insck__getVdate=no
1.1 misho 119587: fi
1.1.1.3 ! misho 119588:
! 119589: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 119590: conftest$ac_exeext conftest.$ac_ext
1.1 misho 119591: LIBS=$ac_check_lib_save_LIBS
119592: fi
1.1.1.3 ! misho 119593: { echo "$as_me:$LINENO: result: $ac_cv_lib_insck_insck__getVdate" >&5
! 119594: echo "${ECHO_T}$ac_cv_lib_insck_insck__getVdate" >&6; }
! 119595: if test $ac_cv_lib_insck_insck__getVdate = yes; then
1.1 misho 119596:
119597: LDFLAGS=$save_old_LDFLAGS
119598: ext_shared=$save_ext_shared
119599:
119600:
119601: case insck in
119602: c|c_r|pthread*) ;;
119603: *)
119604: if test "$ext_shared" = "yes"; then
119605: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
119606: else
119607:
119608:
119609: case insck in
119610: c|c_r|pthread*) ;;
119611: *)
119612: LIBS="-linsck $LIBS"
119613: ;;
119614: esac
119615:
119616:
119617: fi
119618: ;;
119619: esac
119620:
119621:
119622:
119623: else
119624:
119625: LDFLAGS=$save_old_LDFLAGS
119626: ext_shared=$save_ext_shared
119627: unset ac_cv_lib_insck_insck__getVdate
119628:
119629:
119630: fi
119631:
119632:
119633: save_old_LDFLAGS=$LDFLAGS
119634: ac_stuff="-L$SYBASE_CT_LIBDIR"
119635:
119636: save_ext_shared=$ext_shared
119637: ext_shared=yes
119638:
119639: for ac_i in $ac_stuff; do
119640: case $ac_i in
119641: -pthread)
119642: if test "$ext_shared" = "yes"; then
119643: LDFLAGS="$LDFLAGS -pthread"
119644: else
119645:
119646:
119647: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
119648:
119649: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
119650: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119651: eval "EXTRA_LDFLAGS$unique=set"
119652: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
119653: fi
119654:
119655: fi
119656: ;;
119657: -l*)
119658: ac_ii=`echo $ac_i|cut -c 3-`
119659:
119660:
119661: case $ac_ii in
119662: c|c_r|pthread*) ;;
119663: *)
119664: if test "$ext_shared" = "yes"; then
119665: LDFLAGS="$LDFLAGS -l$ac_ii"
119666: else
119667:
119668:
119669: case $ac_ii in
119670: c|c_r|pthread*) ;;
119671: *)
119672: LIBS="$LIBS -l$ac_ii"
119673: ;;
119674: esac
119675:
119676:
119677: fi
119678: ;;
119679: esac
119680:
119681:
119682: ;;
119683: -L*)
119684: ac_ii=`echo $ac_i|cut -c 3-`
119685:
119686: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
119687:
119688: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
119689: ai_p=$ac_ii
119690: else
119691:
119692: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
119693:
119694: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
119695: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
119696: fi
119697:
119698:
119699: if test "$ext_shared" = "yes"; then
119700: LDFLAGS="-L$ai_p $LDFLAGS"
119701: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
119702: else
119703:
119704:
119705:
119706: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
119707:
119708: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
119709: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119710: eval "LIBPATH$unique=set"
119711:
119712: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
119713: LDFLAGS="$LDFLAGS -L$ai_p"
119714: PHP_RPATHS="$PHP_RPATHS $ai_p"
119715:
119716: fi
119717:
119718:
119719: fi
119720:
119721: fi
119722:
119723: ;;
119724: esac
119725: done
119726:
1.1.1.3 ! misho 119727: { echo "$as_me:$LINENO: checking for bsd_tcp in -linsck" >&5
! 119728: echo $ECHO_N "checking for bsd_tcp in -linsck... $ECHO_C" >&6; }
! 119729: if test "${ac_cv_lib_insck_bsd_tcp+set}" = set; then
! 119730: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 119731: else
119732: ac_check_lib_save_LIBS=$LIBS
119733: LIBS="-linsck $LIBS"
1.1.1.3 ! misho 119734: cat >conftest.$ac_ext <<_ACEOF
! 119735: /* confdefs.h. */
! 119736: _ACEOF
! 119737: cat confdefs.h >>conftest.$ac_ext
! 119738: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 119739: /* end confdefs.h. */
119740:
119741: /* Override any GCC internal prototype to avoid an error.
119742: Use char because int might match the return type of a GCC
119743: builtin and then its argument prototype would still apply. */
119744: #ifdef __cplusplus
119745: extern "C"
119746: #endif
119747: char bsd_tcp ();
119748: int
119749: main ()
119750: {
119751: return bsd_tcp ();
119752: ;
119753: return 0;
119754: }
119755: _ACEOF
1.1.1.3 ! misho 119756: rm -f conftest.$ac_objext conftest$ac_exeext
! 119757: if { (ac_try="$ac_link"
! 119758: case "(($ac_try" in
! 119759: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 119760: *) ac_try_echo=$ac_try;;
! 119761: esac
! 119762: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 119763: (eval "$ac_link") 2>conftest.er1
! 119764: ac_status=$?
! 119765: grep -v '^ *+' conftest.er1 >conftest.err
! 119766: rm -f conftest.er1
! 119767: cat conftest.err >&5
! 119768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 119769: (exit $ac_status); } && {
! 119770: test -z "$ac_c_werror_flag" ||
! 119771: test ! -s conftest.err
! 119772: } && test -s conftest$ac_exeext &&
! 119773: $as_test_x conftest$ac_exeext; then
1.1 misho 119774: ac_cv_lib_insck_bsd_tcp=yes
119775: else
1.1.1.3 ! misho 119776: echo "$as_me: failed program was:" >&5
! 119777: sed 's/^/| /' conftest.$ac_ext >&5
! 119778:
! 119779: ac_cv_lib_insck_bsd_tcp=no
1.1 misho 119780: fi
1.1.1.3 ! misho 119781:
! 119782: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 119783: conftest$ac_exeext conftest.$ac_ext
1.1 misho 119784: LIBS=$ac_check_lib_save_LIBS
119785: fi
1.1.1.3 ! misho 119786: { echo "$as_me:$LINENO: result: $ac_cv_lib_insck_bsd_tcp" >&5
! 119787: echo "${ECHO_T}$ac_cv_lib_insck_bsd_tcp" >&6; }
! 119788: if test $ac_cv_lib_insck_bsd_tcp = yes; then
1.1 misho 119789:
119790: LDFLAGS=$save_old_LDFLAGS
119791: ext_shared=$save_ext_shared
119792:
119793:
119794: case insck in
119795: c|c_r|pthread*) ;;
119796: *)
119797: if test "$ext_shared" = "yes"; then
119798: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
119799: else
119800:
119801:
119802: case insck in
119803: c|c_r|pthread*) ;;
119804: *)
119805: LIBS="-linsck $LIBS"
119806: ;;
119807: esac
119808:
119809:
119810: fi
119811: ;;
119812: esac
119813:
119814:
119815:
119816: else
119817:
119818: LDFLAGS=$save_old_LDFLAGS
119819: ext_shared=$save_ext_shared
119820: unset ac_cv_lib_insck_bsd_tcp
119821:
119822:
119823: fi
119824:
119825: else
119826:
119827:
119828: case cs in
119829: c|c_r|pthread*) ;;
119830: *)
119831: if test "$ext_shared" = "yes"; then
119832: SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD"
119833: else
119834:
119835:
119836: case cs in
119837: c|c_r|pthread*) ;;
119838: *)
119839: LIBS="-lcs $LIBS"
119840: ;;
119841: esac
119842:
119843:
119844: fi
119845: ;;
119846: esac
119847:
119848:
119849:
119850:
119851: case ct in
119852: c|c_r|pthread*) ;;
119853: *)
119854: if test "$ext_shared" = "yes"; then
119855: SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
119856: else
119857:
119858:
119859: case ct in
119860: c|c_r|pthread*) ;;
119861: *)
119862: LIBS="-lct $LIBS"
119863: ;;
119864: esac
119865:
119866:
119867: fi
119868: ;;
119869: esac
119870:
119871:
119872:
119873:
119874: case comn in
119875: c|c_r|pthread*) ;;
119876: *)
119877: if test "$ext_shared" = "yes"; then
119878: SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD"
119879: else
119880:
119881:
119882: case comn in
119883: c|c_r|pthread*) ;;
119884: *)
119885: LIBS="-lcomn $LIBS"
119886: ;;
119887: esac
119888:
119889:
119890: fi
119891: ;;
119892: esac
119893:
119894:
119895:
119896:
119897: case intl in
119898: c|c_r|pthread*) ;;
119899: *)
119900: if test "$ext_shared" = "yes"; then
119901: SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD"
119902: else
119903:
119904:
119905: case intl in
119906: c|c_r|pthread*) ;;
119907: *)
119908: LIBS="-lintl $LIBS"
119909: ;;
119910: esac
119911:
119912:
119913: fi
119914: ;;
119915: esac
119916:
119917:
119918:
119919: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
1.1.1.3 ! misho 119920: { echo "$as_me:$LINENO: result: Sybase32 default: $SYBASE_CT_LIBS" >&5
! 119921: echo "${ECHO_T}Sybase32 default: $SYBASE_CT_LIBS" >&6; }
1.1 misho 119922:
119923:
119924: save_old_LDFLAGS=$LDFLAGS
119925: ac_stuff="
119926: $SYBASE_CT_LIBS
119927: "
119928:
119929: save_ext_shared=$ext_shared
119930: ext_shared=yes
119931:
119932: for ac_i in $ac_stuff; do
119933: case $ac_i in
119934: -pthread)
119935: if test "$ext_shared" = "yes"; then
119936: LDFLAGS="$LDFLAGS -pthread"
119937: else
119938:
119939:
119940: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
119941:
119942: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
119943: if test -n "$unique" && test "`eval $cmd`" = "" ; then
119944: eval "EXTRA_LDFLAGS$unique=set"
119945: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
119946: fi
119947:
119948: fi
119949: ;;
119950: -l*)
119951: ac_ii=`echo $ac_i|cut -c 3-`
119952:
119953:
119954: case $ac_ii in
119955: c|c_r|pthread*) ;;
119956: *)
119957: if test "$ext_shared" = "yes"; then
119958: LDFLAGS="$LDFLAGS -l$ac_ii"
119959: else
119960:
119961:
119962: case $ac_ii in
119963: c|c_r|pthread*) ;;
119964: *)
119965: LIBS="$LIBS -l$ac_ii"
119966: ;;
119967: esac
119968:
119969:
119970: fi
119971: ;;
119972: esac
119973:
119974:
119975: ;;
119976: -L*)
119977: ac_ii=`echo $ac_i|cut -c 3-`
119978:
119979: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
119980:
119981: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
119982: ai_p=$ac_ii
119983: else
119984:
119985: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
119986:
119987: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
119988: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
119989: fi
119990:
119991:
119992: if test "$ext_shared" = "yes"; then
119993: LDFLAGS="-L$ai_p $LDFLAGS"
119994: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
119995: else
119996:
119997:
119998:
119999: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
120000:
120001: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
120002: if test -n "$unique" && test "`eval $cmd`" = "" ; then
120003: eval "LIBPATH$unique=set"
120004:
120005: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
120006: LDFLAGS="$LDFLAGS -L$ai_p"
120007: PHP_RPATHS="$PHP_RPATHS $ai_p"
120008:
120009: fi
120010:
120011:
120012: fi
120013:
120014: fi
120015:
120016: ;;
120017: esac
120018: done
120019:
1.1.1.3 ! misho 120020: { echo "$as_me:$LINENO: checking for netg_errstr in -ltcl" >&5
! 120021: echo $ECHO_N "checking for netg_errstr in -ltcl... $ECHO_C" >&6; }
! 120022: if test "${ac_cv_lib_tcl_netg_errstr+set}" = set; then
! 120023: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 120024: else
120025: ac_check_lib_save_LIBS=$LIBS
120026: LIBS="-ltcl $LIBS"
1.1.1.3 ! misho 120027: cat >conftest.$ac_ext <<_ACEOF
! 120028: /* confdefs.h. */
! 120029: _ACEOF
! 120030: cat confdefs.h >>conftest.$ac_ext
! 120031: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 120032: /* end confdefs.h. */
120033:
120034: /* Override any GCC internal prototype to avoid an error.
120035: Use char because int might match the return type of a GCC
120036: builtin and then its argument prototype would still apply. */
120037: #ifdef __cplusplus
120038: extern "C"
120039: #endif
120040: char netg_errstr ();
120041: int
120042: main ()
120043: {
120044: return netg_errstr ();
120045: ;
120046: return 0;
120047: }
120048: _ACEOF
1.1.1.3 ! misho 120049: rm -f conftest.$ac_objext conftest$ac_exeext
! 120050: if { (ac_try="$ac_link"
! 120051: case "(($ac_try" in
! 120052: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 120053: *) ac_try_echo=$ac_try;;
! 120054: esac
! 120055: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 120056: (eval "$ac_link") 2>conftest.er1
! 120057: ac_status=$?
! 120058: grep -v '^ *+' conftest.er1 >conftest.err
! 120059: rm -f conftest.er1
! 120060: cat conftest.err >&5
! 120061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 120062: (exit $ac_status); } && {
! 120063: test -z "$ac_c_werror_flag" ||
! 120064: test ! -s conftest.err
! 120065: } && test -s conftest$ac_exeext &&
! 120066: $as_test_x conftest$ac_exeext; then
1.1 misho 120067: ac_cv_lib_tcl_netg_errstr=yes
120068: else
1.1.1.3 ! misho 120069: echo "$as_me: failed program was:" >&5
! 120070: sed 's/^/| /' conftest.$ac_ext >&5
! 120071:
! 120072: ac_cv_lib_tcl_netg_errstr=no
1.1 misho 120073: fi
1.1.1.3 ! misho 120074:
! 120075: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 120076: conftest$ac_exeext conftest.$ac_ext
1.1 misho 120077: LIBS=$ac_check_lib_save_LIBS
120078: fi
1.1.1.3 ! misho 120079: { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_netg_errstr" >&5
! 120080: echo "${ECHO_T}$ac_cv_lib_tcl_netg_errstr" >&6; }
! 120081: if test $ac_cv_lib_tcl_netg_errstr = yes; then
1.1 misho 120082:
120083: LDFLAGS=$save_old_LDFLAGS
120084: ext_shared=$save_ext_shared
120085:
120086:
120087:
120088: case tcl in
120089: c|c_r|pthread*) ;;
120090: *)
120091: if test "$ext_shared" = "yes"; then
120092: SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD"
120093: else
120094:
120095:
120096: case tcl in
120097: c|c_r|pthread*) ;;
120098: *)
120099: LIBS="-ltcl $LIBS"
120100: ;;
120101: esac
120102:
120103:
120104: fi
120105: ;;
120106: esac
120107:
120108:
120109:
120110:
120111: else
120112:
120113: LDFLAGS=$save_old_LDFLAGS
120114: ext_shared=$save_ext_shared
120115: unset ac_cv_lib_tcl_netg_errstr
120116:
120117:
120118:
120119: case sybtcl in
120120: c|c_r|pthread*) ;;
120121: *)
120122: if test "$ext_shared" = "yes"; then
120123: SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
120124: else
120125:
120126:
120127: case sybtcl in
120128: c|c_r|pthread*) ;;
120129: *)
120130: LIBS="-lsybtcl $LIBS"
120131: ;;
120132: esac
120133:
120134:
120135: fi
120136: ;;
120137: esac
120138:
120139:
120140:
120141:
120142: fi
120143:
120144:
120145:
120146: save_old_LDFLAGS=$LDFLAGS
120147: ac_stuff="-L$SYBASE_CT_LIBDIR"
120148:
120149: save_ext_shared=$ext_shared
120150: ext_shared=yes
120151:
120152: for ac_i in $ac_stuff; do
120153: case $ac_i in
120154: -pthread)
120155: if test "$ext_shared" = "yes"; then
120156: LDFLAGS="$LDFLAGS -pthread"
120157: else
120158:
120159:
120160: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
120161:
120162: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
120163: if test -n "$unique" && test "`eval $cmd`" = "" ; then
120164: eval "EXTRA_LDFLAGS$unique=set"
120165: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
120166: fi
120167:
120168: fi
120169: ;;
120170: -l*)
120171: ac_ii=`echo $ac_i|cut -c 3-`
120172:
120173:
120174: case $ac_ii in
120175: c|c_r|pthread*) ;;
120176: *)
120177: if test "$ext_shared" = "yes"; then
120178: LDFLAGS="$LDFLAGS -l$ac_ii"
120179: else
120180:
120181:
120182: case $ac_ii in
120183: c|c_r|pthread*) ;;
120184: *)
120185: LIBS="$LIBS -l$ac_ii"
120186: ;;
120187: esac
120188:
120189:
120190: fi
120191: ;;
120192: esac
120193:
120194:
120195: ;;
120196: -L*)
120197: ac_ii=`echo $ac_i|cut -c 3-`
120198:
120199: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
120200:
120201: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
120202: ai_p=$ac_ii
120203: else
120204:
120205: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
120206:
120207: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
120208: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
120209: fi
120210:
120211:
120212: if test "$ext_shared" = "yes"; then
120213: LDFLAGS="-L$ai_p $LDFLAGS"
120214: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
120215: else
120216:
120217:
120218:
120219: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
120220:
120221: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
120222: if test -n "$unique" && test "`eval $cmd`" = "" ; then
120223: eval "LIBPATH$unique=set"
120224:
120225: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
120226: LDFLAGS="$LDFLAGS -L$ai_p"
120227: PHP_RPATHS="$PHP_RPATHS $ai_p"
120228:
120229: fi
120230:
120231:
120232: fi
120233:
120234: fi
120235:
120236: ;;
120237: esac
120238: done
120239:
1.1.1.3 ! misho 120240: { echo "$as_me:$LINENO: checking for insck__getVdate in -linsck" >&5
! 120241: echo $ECHO_N "checking for insck__getVdate in -linsck... $ECHO_C" >&6; }
! 120242: if test "${ac_cv_lib_insck_insck__getVdate+set}" = set; then
! 120243: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 120244: else
120245: ac_check_lib_save_LIBS=$LIBS
120246: LIBS="-linsck $LIBS"
1.1.1.3 ! misho 120247: cat >conftest.$ac_ext <<_ACEOF
! 120248: /* confdefs.h. */
! 120249: _ACEOF
! 120250: cat confdefs.h >>conftest.$ac_ext
! 120251: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 120252: /* end confdefs.h. */
120253:
120254: /* Override any GCC internal prototype to avoid an error.
120255: Use char because int might match the return type of a GCC
120256: builtin and then its argument prototype would still apply. */
120257: #ifdef __cplusplus
120258: extern "C"
120259: #endif
120260: char insck__getVdate ();
120261: int
120262: main ()
120263: {
120264: return insck__getVdate ();
120265: ;
120266: return 0;
120267: }
120268: _ACEOF
1.1.1.3 ! misho 120269: rm -f conftest.$ac_objext conftest$ac_exeext
! 120270: if { (ac_try="$ac_link"
! 120271: case "(($ac_try" in
! 120272: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 120273: *) ac_try_echo=$ac_try;;
! 120274: esac
! 120275: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 120276: (eval "$ac_link") 2>conftest.er1
! 120277: ac_status=$?
! 120278: grep -v '^ *+' conftest.er1 >conftest.err
! 120279: rm -f conftest.er1
! 120280: cat conftest.err >&5
! 120281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 120282: (exit $ac_status); } && {
! 120283: test -z "$ac_c_werror_flag" ||
! 120284: test ! -s conftest.err
! 120285: } && test -s conftest$ac_exeext &&
! 120286: $as_test_x conftest$ac_exeext; then
1.1 misho 120287: ac_cv_lib_insck_insck__getVdate=yes
120288: else
1.1.1.3 ! misho 120289: echo "$as_me: failed program was:" >&5
! 120290: sed 's/^/| /' conftest.$ac_ext >&5
! 120291:
! 120292: ac_cv_lib_insck_insck__getVdate=no
1.1 misho 120293: fi
1.1.1.3 ! misho 120294:
! 120295: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 120296: conftest$ac_exeext conftest.$ac_ext
1.1 misho 120297: LIBS=$ac_check_lib_save_LIBS
120298: fi
1.1.1.3 ! misho 120299: { echo "$as_me:$LINENO: result: $ac_cv_lib_insck_insck__getVdate" >&5
! 120300: echo "${ECHO_T}$ac_cv_lib_insck_insck__getVdate" >&6; }
! 120301: if test $ac_cv_lib_insck_insck__getVdate = yes; then
1.1 misho 120302:
120303: LDFLAGS=$save_old_LDFLAGS
120304: ext_shared=$save_ext_shared
120305:
120306:
120307: case insck in
120308: c|c_r|pthread*) ;;
120309: *)
120310: if test "$ext_shared" = "yes"; then
120311: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
120312: else
120313:
120314:
120315: case insck in
120316: c|c_r|pthread*) ;;
120317: *)
120318: LIBS="-linsck $LIBS"
120319: ;;
120320: esac
120321:
120322:
120323: fi
120324: ;;
120325: esac
120326:
120327:
120328:
120329: else
120330:
120331: LDFLAGS=$save_old_LDFLAGS
120332: ext_shared=$save_ext_shared
120333: unset ac_cv_lib_insck_insck__getVdate
120334:
120335:
120336: fi
120337:
120338:
120339: save_old_LDFLAGS=$LDFLAGS
120340: ac_stuff="-L$SYBASE_CT_LIBDIR"
120341:
120342: save_ext_shared=$ext_shared
120343: ext_shared=yes
120344:
120345: for ac_i in $ac_stuff; do
120346: case $ac_i in
120347: -pthread)
120348: if test "$ext_shared" = "yes"; then
120349: LDFLAGS="$LDFLAGS -pthread"
120350: else
120351:
120352:
120353: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
120354:
120355: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
120356: if test -n "$unique" && test "`eval $cmd`" = "" ; then
120357: eval "EXTRA_LDFLAGS$unique=set"
120358: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
120359: fi
120360:
120361: fi
120362: ;;
120363: -l*)
120364: ac_ii=`echo $ac_i|cut -c 3-`
120365:
120366:
120367: case $ac_ii in
120368: c|c_r|pthread*) ;;
120369: *)
120370: if test "$ext_shared" = "yes"; then
120371: LDFLAGS="$LDFLAGS -l$ac_ii"
120372: else
120373:
120374:
120375: case $ac_ii in
120376: c|c_r|pthread*) ;;
120377: *)
120378: LIBS="$LIBS -l$ac_ii"
120379: ;;
120380: esac
120381:
120382:
120383: fi
120384: ;;
120385: esac
120386:
120387:
120388: ;;
120389: -L*)
120390: ac_ii=`echo $ac_i|cut -c 3-`
120391:
120392: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
120393:
120394: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
120395: ai_p=$ac_ii
120396: else
120397:
120398: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
120399:
120400: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
120401: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
120402: fi
120403:
120404:
120405: if test "$ext_shared" = "yes"; then
120406: LDFLAGS="-L$ai_p $LDFLAGS"
120407: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
120408: else
120409:
120410:
120411:
120412: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
120413:
120414: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
120415: if test -n "$unique" && test "`eval $cmd`" = "" ; then
120416: eval "LIBPATH$unique=set"
120417:
120418: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
120419: LDFLAGS="$LDFLAGS -L$ai_p"
120420: PHP_RPATHS="$PHP_RPATHS $ai_p"
120421:
120422: fi
120423:
120424:
120425: fi
120426:
120427: fi
120428:
120429: ;;
120430: esac
120431: done
120432:
1.1.1.3 ! misho 120433: { echo "$as_me:$LINENO: checking for bsd_tcp in -linsck" >&5
! 120434: echo $ECHO_N "checking for bsd_tcp in -linsck... $ECHO_C" >&6; }
! 120435: if test "${ac_cv_lib_insck_bsd_tcp+set}" = set; then
! 120436: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 120437: else
120438: ac_check_lib_save_LIBS=$LIBS
120439: LIBS="-linsck $LIBS"
1.1.1.3 ! misho 120440: cat >conftest.$ac_ext <<_ACEOF
! 120441: /* confdefs.h. */
! 120442: _ACEOF
! 120443: cat confdefs.h >>conftest.$ac_ext
! 120444: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 120445: /* end confdefs.h. */
120446:
120447: /* Override any GCC internal prototype to avoid an error.
120448: Use char because int might match the return type of a GCC
120449: builtin and then its argument prototype would still apply. */
120450: #ifdef __cplusplus
120451: extern "C"
120452: #endif
120453: char bsd_tcp ();
120454: int
120455: main ()
120456: {
120457: return bsd_tcp ();
120458: ;
120459: return 0;
120460: }
120461: _ACEOF
1.1.1.3 ! misho 120462: rm -f conftest.$ac_objext conftest$ac_exeext
! 120463: if { (ac_try="$ac_link"
! 120464: case "(($ac_try" in
! 120465: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 120466: *) ac_try_echo=$ac_try;;
! 120467: esac
! 120468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 120469: (eval "$ac_link") 2>conftest.er1
! 120470: ac_status=$?
! 120471: grep -v '^ *+' conftest.er1 >conftest.err
! 120472: rm -f conftest.er1
! 120473: cat conftest.err >&5
! 120474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 120475: (exit $ac_status); } && {
! 120476: test -z "$ac_c_werror_flag" ||
! 120477: test ! -s conftest.err
! 120478: } && test -s conftest$ac_exeext &&
! 120479: $as_test_x conftest$ac_exeext; then
1.1 misho 120480: ac_cv_lib_insck_bsd_tcp=yes
120481: else
1.1.1.3 ! misho 120482: echo "$as_me: failed program was:" >&5
! 120483: sed 's/^/| /' conftest.$ac_ext >&5
! 120484:
! 120485: ac_cv_lib_insck_bsd_tcp=no
1.1 misho 120486: fi
1.1.1.3 ! misho 120487:
! 120488: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 120489: conftest$ac_exeext conftest.$ac_ext
1.1 misho 120490: LIBS=$ac_check_lib_save_LIBS
120491: fi
1.1.1.3 ! misho 120492: { echo "$as_me:$LINENO: result: $ac_cv_lib_insck_bsd_tcp" >&5
! 120493: echo "${ECHO_T}$ac_cv_lib_insck_bsd_tcp" >&6; }
! 120494: if test $ac_cv_lib_insck_bsd_tcp = yes; then
1.1 misho 120495:
120496: LDFLAGS=$save_old_LDFLAGS
120497: ext_shared=$save_ext_shared
120498:
120499:
120500: case insck in
120501: c|c_r|pthread*) ;;
120502: *)
120503: if test "$ext_shared" = "yes"; then
120504: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
120505: else
120506:
120507:
120508: case insck in
120509: c|c_r|pthread*) ;;
120510: *)
120511: LIBS="-linsck $LIBS"
120512: ;;
120513: esac
120514:
120515:
120516: fi
120517: ;;
120518: esac
120519:
120520:
120521:
120522: else
120523:
120524: LDFLAGS=$save_old_LDFLAGS
120525: ext_shared=$save_ext_shared
120526: unset ac_cv_lib_insck_bsd_tcp
120527:
120528:
120529: fi
120530:
120531: fi
120532: fi
120533:
120534:
120535:
120536: php_enable_sysvmsg=no
120537:
1.1.1.3 ! misho 120538: { echo "$as_me:$LINENO: checking whether to enable System V IPC support" >&5
! 120539: echo $ECHO_N "checking whether to enable System V IPC support... $ECHO_C" >&6; }
1.1 misho 120540: # Check whether --enable-sysvmsg was given.
1.1.1.3 ! misho 120541: if test "${enable_sysvmsg+set}" = set; then
1.1 misho 120542: enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval
120543: else
120544:
120545: PHP_SYSVMSG=no
120546: test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL
120547:
120548: fi
120549:
120550:
120551:
120552: ext_output="yes, shared"
120553: ext_shared=yes
120554: case $PHP_SYSVMSG in
120555: shared,*)
120556: PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'`
120557: ;;
120558: shared)
120559: PHP_SYSVMSG=yes
120560: ;;
120561: no)
120562: ext_output=no
120563: ext_shared=no
120564: ;;
120565: *)
120566: ext_output=yes
120567: ext_shared=no
120568: ;;
120569: esac
120570:
120571:
120572:
1.1.1.3 ! misho 120573: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 120574: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 120575:
120576:
120577:
120578:
120579: if test "$PHP_SYSVMSG" != "no"; then
1.1.1.3 ! misho 120580: if test "${ac_cv_header_sys_msg_h+set}" = set; then
! 120581: { echo "$as_me:$LINENO: checking for sys/msg.h" >&5
! 120582: echo $ECHO_N "checking for sys/msg.h... $ECHO_C" >&6; }
! 120583: if test "${ac_cv_header_sys_msg_h+set}" = set; then
! 120584: echo $ECHO_N "(cached) $ECHO_C" >&6
! 120585: fi
! 120586: { echo "$as_me:$LINENO: result: $ac_cv_header_sys_msg_h" >&5
! 120587: echo "${ECHO_T}$ac_cv_header_sys_msg_h" >&6; }
! 120588: else
! 120589: # Is the header compilable?
! 120590: { echo "$as_me:$LINENO: checking sys/msg.h usability" >&5
! 120591: echo $ECHO_N "checking sys/msg.h usability... $ECHO_C" >&6; }
! 120592: cat >conftest.$ac_ext <<_ACEOF
! 120593: /* confdefs.h. */
! 120594: _ACEOF
! 120595: cat confdefs.h >>conftest.$ac_ext
! 120596: cat >>conftest.$ac_ext <<_ACEOF
! 120597: /* end confdefs.h. */
! 120598: $ac_includes_default
! 120599: #include <sys/msg.h>
! 120600: _ACEOF
! 120601: rm -f conftest.$ac_objext
! 120602: if { (ac_try="$ac_compile"
! 120603: case "(($ac_try" in
! 120604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 120605: *) ac_try_echo=$ac_try;;
! 120606: esac
! 120607: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 120608: (eval "$ac_compile") 2>conftest.er1
! 120609: ac_status=$?
! 120610: grep -v '^ *+' conftest.er1 >conftest.err
! 120611: rm -f conftest.er1
! 120612: cat conftest.err >&5
! 120613: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 120614: (exit $ac_status); } && {
! 120615: test -z "$ac_c_werror_flag" ||
! 120616: test ! -s conftest.err
! 120617: } && test -s conftest.$ac_objext; then
! 120618: ac_header_compiler=yes
! 120619: else
! 120620: echo "$as_me: failed program was:" >&5
! 120621: sed 's/^/| /' conftest.$ac_ext >&5
! 120622:
! 120623: ac_header_compiler=no
! 120624: fi
! 120625:
! 120626: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 120627: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 120628: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 120629:
! 120630: # Is the header present?
! 120631: { echo "$as_me:$LINENO: checking sys/msg.h presence" >&5
! 120632: echo $ECHO_N "checking sys/msg.h presence... $ECHO_C" >&6; }
! 120633: cat >conftest.$ac_ext <<_ACEOF
! 120634: /* confdefs.h. */
! 120635: _ACEOF
! 120636: cat confdefs.h >>conftest.$ac_ext
! 120637: cat >>conftest.$ac_ext <<_ACEOF
! 120638: /* end confdefs.h. */
! 120639: #include <sys/msg.h>
! 120640: _ACEOF
! 120641: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 120642: case "(($ac_try" in
! 120643: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 120644: *) ac_try_echo=$ac_try;;
! 120645: esac
! 120646: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 120647: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 120648: ac_status=$?
! 120649: grep -v '^ *+' conftest.er1 >conftest.err
! 120650: rm -f conftest.er1
! 120651: cat conftest.err >&5
! 120652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 120653: (exit $ac_status); } >/dev/null && {
! 120654: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 120655: test ! -s conftest.err
! 120656: }; then
! 120657: ac_header_preproc=yes
! 120658: else
! 120659: echo "$as_me: failed program was:" >&5
! 120660: sed 's/^/| /' conftest.$ac_ext >&5
! 120661:
! 120662: ac_header_preproc=no
! 120663: fi
! 120664:
! 120665: rm -f conftest.err conftest.$ac_ext
! 120666: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 120667: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 120668:
! 120669: # So? What about this header?
! 120670: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 120671: yes:no: )
! 120672: { echo "$as_me:$LINENO: WARNING: sys/msg.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 120673: echo "$as_me: WARNING: sys/msg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 120674: { echo "$as_me:$LINENO: WARNING: sys/msg.h: proceeding with the compiler's result" >&5
! 120675: echo "$as_me: WARNING: sys/msg.h: proceeding with the compiler's result" >&2;}
! 120676: ac_header_preproc=yes
! 120677: ;;
! 120678: no:yes:* )
! 120679: { echo "$as_me:$LINENO: WARNING: sys/msg.h: present but cannot be compiled" >&5
! 120680: echo "$as_me: WARNING: sys/msg.h: present but cannot be compiled" >&2;}
! 120681: { echo "$as_me:$LINENO: WARNING: sys/msg.h: check for missing prerequisite headers?" >&5
! 120682: echo "$as_me: WARNING: sys/msg.h: check for missing prerequisite headers?" >&2;}
! 120683: { echo "$as_me:$LINENO: WARNING: sys/msg.h: see the Autoconf documentation" >&5
! 120684: echo "$as_me: WARNING: sys/msg.h: see the Autoconf documentation" >&2;}
! 120685: { echo "$as_me:$LINENO: WARNING: sys/msg.h: section \"Present But Cannot Be Compiled\"" >&5
! 120686: echo "$as_me: WARNING: sys/msg.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 120687: { echo "$as_me:$LINENO: WARNING: sys/msg.h: proceeding with the preprocessor's result" >&5
! 120688: echo "$as_me: WARNING: sys/msg.h: proceeding with the preprocessor's result" >&2;}
! 120689: { echo "$as_me:$LINENO: WARNING: sys/msg.h: in the future, the compiler will take precedence" >&5
! 120690: echo "$as_me: WARNING: sys/msg.h: in the future, the compiler will take precedence" >&2;}
! 120691:
! 120692: ;;
! 120693: esac
! 120694: { echo "$as_me:$LINENO: checking for sys/msg.h" >&5
! 120695: echo $ECHO_N "checking for sys/msg.h... $ECHO_C" >&6; }
! 120696: if test "${ac_cv_header_sys_msg_h+set}" = set; then
! 120697: echo $ECHO_N "(cached) $ECHO_C" >&6
! 120698: else
! 120699: ac_cv_header_sys_msg_h=$ac_header_preproc
! 120700: fi
! 120701: { echo "$as_me:$LINENO: result: $ac_cv_header_sys_msg_h" >&5
! 120702: echo "${ECHO_T}$ac_cv_header_sys_msg_h" >&6; }
1.1 misho 120703:
1.1.1.3 ! misho 120704: fi
! 120705: if test $ac_cv_header_sys_msg_h = yes; then
! 120706: :
1.1 misho 120707: else
1.1.1.3 ! misho 120708: { { echo "$as_me:$LINENO: error: Cannot enable System V IPC support, sys/msg.h is missing" >&5
! 120709: echo "$as_me: error: Cannot enable System V IPC support, sys/msg.h is missing" >&2;}
! 120710: { (exit 1); exit 1; }; }
1.1 misho 120711:
120712: fi
120713:
120714:
120715:
120716:
1.1.1.3 ! misho 120717: cat >>confdefs.h <<\_ACEOF
! 120718: #define HAVE_SYSVMSG 1
! 120719: _ACEOF
1.1 misho 120720:
120721:
120722: ext_builddir=ext/sysvmsg
120723: ext_srcdir=$abs_srcdir/ext/sysvmsg
120724:
120725: ac_extra=
120726:
120727: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
120728: PHP_SYSVMSG_SHARED=no
120729:
120730:
120731: case ext/sysvmsg in
120732: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120733: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120734: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120735: esac
120736:
120737:
120738:
120739: b_c_pre=$php_c_pre
120740: b_cxx_pre=$php_cxx_pre
120741: b_c_meta=$php_c_meta
120742: b_cxx_meta=$php_cxx_meta
120743: b_c_post=$php_c_post
120744: b_cxx_post=$php_cxx_post
120745: b_lo=$php_lo
120746:
120747:
120748: old_IFS=$IFS
120749: for ac_src in sysvmsg.c; do
120750:
120751: IFS=.
120752: set $ac_src
120753: ac_obj=$1
120754: IFS=$old_IFS
120755:
120756: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
120757:
120758: case $ac_src in
120759: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120760: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120761: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120762: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120763: esac
120764:
120765: cat >>Makefile.objects<<EOF
120766: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120767: $ac_comp
120768: EOF
120769: done
120770:
120771:
120772: EXT_STATIC="$EXT_STATIC sysvmsg"
120773: if test "$ext_shared" != "nocli"; then
120774: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
120775: fi
120776: else
120777: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
120778: PHP_SYSVMSG_SHARED=yes
120779:
120780: case ext/sysvmsg in
120781: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120782: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120783: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120784: esac
120785:
120786:
120787:
120788: b_c_pre=$shared_c_pre
120789: b_cxx_pre=$shared_cxx_pre
120790: b_c_meta=$shared_c_meta
120791: b_cxx_meta=$shared_cxx_meta
120792: b_c_post=$shared_c_post
120793: b_cxx_post=$shared_cxx_post
120794: b_lo=$shared_lo
120795:
120796:
120797: old_IFS=$IFS
120798: for ac_src in sysvmsg.c; do
120799:
120800: IFS=.
120801: set $ac_src
120802: ac_obj=$1
120803: IFS=$old_IFS
120804:
120805: shared_objects_sysvmsg="$shared_objects_sysvmsg $ac_bdir$ac_obj.lo"
120806:
120807: case $ac_src in
120808: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120809: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120810: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120811: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120812: esac
120813:
120814: cat >>Makefile.objects<<EOF
120815: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120816: $ac_comp
120817: EOF
120818: done
120819:
120820: case $host_alias in
120821: *netware*)
120822:
120823: install_modules="install-modules"
120824:
120825: case $host_alias in
120826: *aix*)
120827: suffix=so
120828: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvmsg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(PHPSYSVMSG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvmsg.so '$ext_builddir'/phpsysvmsg.so'
120829: ;;
120830: *netware*)
120831: suffix=nlm
120832: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) -L$(top_builddir)/netware -lphp5lib $(SYSVMSG_SHARED_LIBADD)'
120833: ;;
120834: *)
120835: suffix=la
120836: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(PHPSYSVMSG_SHARED_LIBADD)'
120837: ;;
120838: esac
120839:
120840: if test "x" = "xyes"; then
120841: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvmsg.$suffix"
120842: else
120843: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvmsg.$suffix"
120844: fi
120845:
120846: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
120847:
120848: cat >>Makefile.objects<<EOF
120849: \$(phplibdir)/phpsysvmsg.$suffix: $ext_builddir/phpsysvmsg.$suffix
120850: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvmsg.$suffix \$(phplibdir)
120851:
120852: $ext_builddir/phpsysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(PHPSYSVMSG_SHARED_DEPENDENCIES)
120853: $link_cmd
120854:
120855: EOF
120856:
120857: ;;
120858: *)
120859:
120860: install_modules="install-modules"
120861:
120862: case $host_alias in
120863: *aix*)
120864: suffix=so
120865: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvmsg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(SYSVMSG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvmsg.so '$ext_builddir'/sysvmsg.so'
120866: ;;
120867: *netware*)
120868: suffix=nlm
120869: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) -L$(top_builddir)/netware -lphp5lib $(VMSG_SHARED_LIBADD)'
120870: ;;
120871: *)
120872: suffix=la
120873: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(SYSVMSG_SHARED_LIBADD)'
120874: ;;
120875: esac
120876:
120877: if test "x" = "xyes"; then
120878: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvmsg.$suffix"
120879: else
120880: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvmsg.$suffix"
120881: fi
120882:
120883: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
120884:
120885: cat >>Makefile.objects<<EOF
120886: \$(phplibdir)/sysvmsg.$suffix: $ext_builddir/sysvmsg.$suffix
120887: \$(LIBTOOL) --mode=install cp $ext_builddir/sysvmsg.$suffix \$(phplibdir)
120888:
120889: $ext_builddir/sysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_DEPENDENCIES)
120890: $link_cmd
120891:
120892: EOF
120893:
120894: ;;
120895: esac
120896:
120897: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 120898: #define COMPILE_DL_SYSVMSG 1
! 120899: _ACEOF
1.1 misho 120900:
1.1.1.3 ! misho 120901: fi
! 120902: fi
1.1 misho 120903:
1.1.1.3 ! misho 120904: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
! 120905: PHP_SYSVMSG_SHARED=no
! 120906: case "$PHP_SAPI" in
! 120907: cgi|embed)
1.1 misho 120908:
120909:
120910: case ext/sysvmsg in
120911: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120912: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120913: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120914: esac
120915:
120916:
120917:
120918: b_c_pre=$php_c_pre
120919: b_cxx_pre=$php_cxx_pre
120920: b_c_meta=$php_c_meta
120921: b_cxx_meta=$php_cxx_meta
120922: b_c_post=$php_c_post
120923: b_cxx_post=$php_cxx_post
120924: b_lo=$php_lo
120925:
120926:
120927: old_IFS=$IFS
120928: for ac_src in sysvmsg.c; do
120929:
120930: IFS=.
120931: set $ac_src
120932: ac_obj=$1
120933: IFS=$old_IFS
120934:
1.1.1.2 misho 120935: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 120936:
120937: case $ac_src in
120938: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120939: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120940: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120941: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120942: esac
120943:
120944: cat >>Makefile.objects<<EOF
120945: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120946: $ac_comp
120947: EOF
120948: done
120949:
120950:
1.1.1.3 ! misho 120951: EXT_STATIC="$EXT_STATIC sysvmsg"
! 120952: ;;
! 120953: *)
1.1 misho 120954:
120955:
120956: case ext/sysvmsg in
120957: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120958: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120959: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120960: esac
120961:
120962:
120963:
120964: b_c_pre=$php_c_pre
120965: b_cxx_pre=$php_cxx_pre
120966: b_c_meta=$php_c_meta
120967: b_cxx_meta=$php_cxx_meta
120968: b_c_post=$php_c_post
120969: b_cxx_post=$php_cxx_post
120970: b_lo=$php_lo
120971:
120972:
120973: old_IFS=$IFS
120974: for ac_src in sysvmsg.c; do
120975:
120976: IFS=.
120977: set $ac_src
120978: ac_obj=$1
120979: IFS=$old_IFS
120980:
1.1.1.2 misho 120981: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 120982:
120983: case $ac_src in
120984: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120985: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120986: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120987: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120988: esac
120989:
120990: cat >>Makefile.objects<<EOF
120991: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120992: $ac_comp
120993: EOF
120994: done
120995:
120996:
1.1.1.3 ! misho 120997: ;;
! 120998: esac
1.1 misho 120999: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
121000: fi
121001:
121002:
121003: BUILD_DIR="$BUILD_DIR $ext_builddir"
121004:
121005:
121006:
121007: if test "$ext_builddir" = "."; then
121008: PHP_PECL_EXTENSION=sysvmsg
121009:
121010: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
121011:
121012: fi
121013:
121014: fi
121015:
121016:
121017:
121018: php_enable_sysvsem=no
121019:
1.1.1.3 ! misho 121020: { echo "$as_me:$LINENO: checking whether to enable System V semaphore support" >&5
! 121021: echo $ECHO_N "checking whether to enable System V semaphore support... $ECHO_C" >&6; }
1.1 misho 121022: # Check whether --enable-sysvsem was given.
1.1.1.3 ! misho 121023: if test "${enable_sysvsem+set}" = set; then
1.1 misho 121024: enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval
121025: else
121026:
121027: PHP_SYSVSEM=no
121028: test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL
121029:
121030: fi
121031:
121032:
121033:
121034: ext_output="yes, shared"
121035: ext_shared=yes
121036: case $PHP_SYSVSEM in
121037: shared,*)
121038: PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'`
121039: ;;
121040: shared)
121041: PHP_SYSVSEM=yes
121042: ;;
121043: no)
121044: ext_output=no
121045: ext_shared=no
121046: ;;
121047: *)
121048: ext_output=yes
121049: ext_shared=no
121050: ;;
121051: esac
121052:
121053:
121054:
1.1.1.3 ! misho 121055: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 121056: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 121057:
121058:
121059:
121060:
121061: if test "$PHP_SYSVSEM" != "no"; then
121062:
121063: ext_builddir=ext/sysvsem
121064: ext_srcdir=$abs_srcdir/ext/sysvsem
121065:
121066: ac_extra=
121067:
121068: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
121069: PHP_SYSVSEM_SHARED=no
121070:
121071:
121072: case ext/sysvsem in
121073: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121074: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121075: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121076: esac
121077:
121078:
121079:
121080: b_c_pre=$php_c_pre
121081: b_cxx_pre=$php_cxx_pre
121082: b_c_meta=$php_c_meta
121083: b_cxx_meta=$php_cxx_meta
121084: b_c_post=$php_c_post
121085: b_cxx_post=$php_cxx_post
121086: b_lo=$php_lo
121087:
121088:
121089: old_IFS=$IFS
121090: for ac_src in sysvsem.c; do
121091:
121092: IFS=.
121093: set $ac_src
121094: ac_obj=$1
121095: IFS=$old_IFS
121096:
121097: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
121098:
121099: case $ac_src in
121100: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121101: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121102: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121103: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121104: esac
121105:
121106: cat >>Makefile.objects<<EOF
121107: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121108: $ac_comp
121109: EOF
121110: done
121111:
121112:
121113: EXT_STATIC="$EXT_STATIC sysvsem"
121114: if test "$ext_shared" != "nocli"; then
121115: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
121116: fi
121117: else
121118: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
121119: PHP_SYSVSEM_SHARED=yes
121120:
121121: case ext/sysvsem in
121122: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121123: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121124: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121125: esac
121126:
121127:
121128:
121129: b_c_pre=$shared_c_pre
121130: b_cxx_pre=$shared_cxx_pre
121131: b_c_meta=$shared_c_meta
121132: b_cxx_meta=$shared_cxx_meta
121133: b_c_post=$shared_c_post
121134: b_cxx_post=$shared_cxx_post
121135: b_lo=$shared_lo
121136:
121137:
121138: old_IFS=$IFS
121139: for ac_src in sysvsem.c; do
121140:
121141: IFS=.
121142: set $ac_src
121143: ac_obj=$1
121144: IFS=$old_IFS
121145:
121146: shared_objects_sysvsem="$shared_objects_sysvsem $ac_bdir$ac_obj.lo"
121147:
121148: case $ac_src in
121149: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121150: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121151: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121152: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121153: esac
121154:
121155: cat >>Makefile.objects<<EOF
121156: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121157: $ac_comp
121158: EOF
121159: done
121160:
121161: case $host_alias in
121162: *netware*)
121163:
121164: install_modules="install-modules"
121165:
121166: case $host_alias in
121167: *aix*)
121168: suffix=so
121169: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvsem.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(PHPSYSVSEM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvsem.so '$ext_builddir'/phpsysvsem.so'
121170: ;;
121171: *netware*)
121172: suffix=nlm
121173: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) -L$(top_builddir)/netware -lphp5lib $(SYSVSEM_SHARED_LIBADD)'
121174: ;;
121175: *)
121176: suffix=la
121177: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(PHPSYSVSEM_SHARED_LIBADD)'
121178: ;;
121179: esac
121180:
121181: if test "x" = "xyes"; then
121182: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvsem.$suffix"
121183: else
121184: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvsem.$suffix"
121185: fi
121186:
121187: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
121188:
121189: cat >>Makefile.objects<<EOF
121190: \$(phplibdir)/phpsysvsem.$suffix: $ext_builddir/phpsysvsem.$suffix
121191: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvsem.$suffix \$(phplibdir)
121192:
121193: $ext_builddir/phpsysvsem.$suffix: \$(shared_objects_sysvsem) \$(PHPSYSVSEM_SHARED_DEPENDENCIES)
121194: $link_cmd
121195:
121196: EOF
121197:
121198: ;;
121199: *)
121200:
121201: install_modules="install-modules"
121202:
121203: case $host_alias in
121204: *aix*)
121205: suffix=so
121206: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvsem.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(SYSVSEM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvsem.so '$ext_builddir'/sysvsem.so'
121207: ;;
121208: *netware*)
121209: suffix=nlm
121210: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) -L$(top_builddir)/netware -lphp5lib $(VSEM_SHARED_LIBADD)'
121211: ;;
121212: *)
121213: suffix=la
121214: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(SYSVSEM_SHARED_LIBADD)'
121215: ;;
121216: esac
121217:
121218: if test "x" = "xyes"; then
121219: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvsem.$suffix"
121220: else
121221: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvsem.$suffix"
121222: fi
121223:
121224: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
121225:
121226: cat >>Makefile.objects<<EOF
121227: \$(phplibdir)/sysvsem.$suffix: $ext_builddir/sysvsem.$suffix
121228: \$(LIBTOOL) --mode=install cp $ext_builddir/sysvsem.$suffix \$(phplibdir)
121229:
121230: $ext_builddir/sysvsem.$suffix: \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_DEPENDENCIES)
121231: $link_cmd
121232:
121233: EOF
121234:
121235: ;;
121236: esac
121237:
121238: cat >>confdefs.h <<_ACEOF
121239: #define COMPILE_DL_SYSVSEM 1
121240: _ACEOF
121241:
121242: fi
121243: fi
121244:
121245: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
121246: PHP_SYSVSEM_SHARED=no
1.1.1.3 ! misho 121247: case "$PHP_SAPI" in
! 121248: cgi|embed)
1.1 misho 121249:
121250:
121251: case ext/sysvsem in
121252: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121253: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121254: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121255: esac
121256:
121257:
121258:
121259: b_c_pre=$php_c_pre
121260: b_cxx_pre=$php_cxx_pre
121261: b_c_meta=$php_c_meta
121262: b_cxx_meta=$php_cxx_meta
121263: b_c_post=$php_c_post
121264: b_cxx_post=$php_cxx_post
121265: b_lo=$php_lo
121266:
121267:
121268: old_IFS=$IFS
121269: for ac_src in sysvsem.c; do
121270:
121271: IFS=.
121272: set $ac_src
121273: ac_obj=$1
121274: IFS=$old_IFS
121275:
1.1.1.2 misho 121276: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 121277:
121278: case $ac_src in
121279: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121280: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121281: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121282: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121283: esac
121284:
121285: cat >>Makefile.objects<<EOF
121286: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121287: $ac_comp
121288: EOF
121289: done
121290:
121291:
1.1.1.3 ! misho 121292: EXT_STATIC="$EXT_STATIC sysvsem"
! 121293: ;;
! 121294: *)
1.1 misho 121295:
121296:
121297: case ext/sysvsem in
121298: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121299: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121300: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121301: esac
121302:
121303:
121304:
121305: b_c_pre=$php_c_pre
121306: b_cxx_pre=$php_cxx_pre
121307: b_c_meta=$php_c_meta
121308: b_cxx_meta=$php_cxx_meta
121309: b_c_post=$php_c_post
121310: b_cxx_post=$php_cxx_post
121311: b_lo=$php_lo
121312:
121313:
121314: old_IFS=$IFS
121315: for ac_src in sysvsem.c; do
121316:
121317: IFS=.
121318: set $ac_src
121319: ac_obj=$1
121320: IFS=$old_IFS
121321:
1.1.1.2 misho 121322: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 121323:
121324: case $ac_src in
121325: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121326: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121327: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121328: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121329: esac
121330:
121331: cat >>Makefile.objects<<EOF
121332: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121333: $ac_comp
121334: EOF
121335: done
121336:
121337:
1.1.1.3 ! misho 121338: ;;
! 121339: esac
1.1 misho 121340: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
121341: fi
121342:
121343:
121344: BUILD_DIR="$BUILD_DIR $ext_builddir"
121345:
121346:
121347:
121348: if test "$ext_builddir" = "."; then
121349: PHP_PECL_EXTENSION=sysvsem
121350:
121351: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
121352:
121353: fi
121354:
121355:
1.1.1.3 ! misho 121356: cat >>confdefs.h <<\_ACEOF
! 121357: #define HAVE_SYSVSEM 1
! 121358: _ACEOF
1.1 misho 121359:
1.1.1.3 ! misho 121360: { echo "$as_me:$LINENO: checking for union semun" >&5
! 121361: echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
! 121362: if test "${php_cv_semun+set}" = set; then
! 121363: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 121364: else
1.1.1.3 ! misho 121365: cat >conftest.$ac_ext <<_ACEOF
! 121366: /* confdefs.h. */
! 121367: _ACEOF
! 121368: cat confdefs.h >>conftest.$ac_ext
! 121369: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 121370: /* end confdefs.h. */
121371:
121372: #include <sys/types.h>
121373: #include <sys/ipc.h>
121374: #include <sys/sem.h>
121375:
121376: int
121377: main ()
121378: {
121379: union semun x;
121380: ;
121381: return 0;
121382: }
121383: _ACEOF
1.1.1.3 ! misho 121384: rm -f conftest.$ac_objext
! 121385: if { (ac_try="$ac_compile"
! 121386: case "(($ac_try" in
! 121387: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 121388: *) ac_try_echo=$ac_try;;
! 121389: esac
! 121390: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 121391: (eval "$ac_compile") 2>conftest.er1
! 121392: ac_status=$?
! 121393: grep -v '^ *+' conftest.er1 >conftest.err
! 121394: rm -f conftest.er1
! 121395: cat conftest.err >&5
! 121396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 121397: (exit $ac_status); } && {
! 121398: test -z "$ac_c_werror_flag" ||
! 121399: test ! -s conftest.err
! 121400: } && test -s conftest.$ac_objext; then
1.1 misho 121401:
121402: php_cv_semun=yes
121403:
121404: else
1.1.1.3 ! misho 121405: echo "$as_me: failed program was:" >&5
! 121406: sed 's/^/| /' conftest.$ac_ext >&5
! 121407:
1.1 misho 121408:
121409: php_cv_semun=no
121410:
121411: fi
1.1.1.3 ! misho 121412:
1.1 misho 121413: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121414:
121415: fi
1.1.1.3 ! misho 121416: { echo "$as_me:$LINENO: result: $php_cv_semun" >&5
! 121417: echo "${ECHO_T}$php_cv_semun" >&6; }
1.1 misho 121418: if test "$php_cv_semun" = "yes"; then
121419:
1.1.1.3 ! misho 121420: cat >>confdefs.h <<\_ACEOF
! 121421: #define HAVE_SEMUN 1
! 121422: _ACEOF
1.1 misho 121423:
121424: else
121425:
1.1.1.3 ! misho 121426: cat >>confdefs.h <<\_ACEOF
! 121427: #define HAVE_SEMUN 0
! 121428: _ACEOF
1.1 misho 121429:
121430: fi
121431: fi
121432:
121433:
121434:
121435: php_enable_sysvshm=no
121436:
1.1.1.3 ! misho 121437: { echo "$as_me:$LINENO: checking whether to enable System V shared memory support" >&5
! 121438: echo $ECHO_N "checking whether to enable System V shared memory support... $ECHO_C" >&6; }
1.1 misho 121439: # Check whether --enable-sysvshm was given.
1.1.1.3 ! misho 121440: if test "${enable_sysvshm+set}" = set; then
1.1 misho 121441: enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval
121442: else
121443:
121444: PHP_SYSVSHM=no
121445: test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL
121446:
121447: fi
121448:
121449:
121450:
121451: ext_output="yes, shared"
121452: ext_shared=yes
121453: case $PHP_SYSVSHM in
121454: shared,*)
121455: PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'`
121456: ;;
121457: shared)
121458: PHP_SYSVSHM=yes
121459: ;;
121460: no)
121461: ext_output=no
121462: ext_shared=no
121463: ;;
121464: *)
121465: ext_output=yes
121466: ext_shared=no
121467: ;;
121468: esac
121469:
121470:
121471:
1.1.1.3 ! misho 121472: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 121473: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 121474:
121475:
121476:
121477:
121478: if test "$PHP_SYSVSHM" != "no"; then
121479:
1.1.1.3 ! misho 121480: cat >>confdefs.h <<\_ACEOF
! 121481: #define HAVE_SYSVSHM 1
! 121482: _ACEOF
1.1 misho 121483:
121484:
121485: ext_builddir=ext/sysvshm
121486: ext_srcdir=$abs_srcdir/ext/sysvshm
121487:
121488: ac_extra=
121489:
121490: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
121491: PHP_SYSVSHM_SHARED=no
121492:
121493:
121494: case ext/sysvshm in
121495: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121496: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121497: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121498: esac
121499:
121500:
121501:
121502: b_c_pre=$php_c_pre
121503: b_cxx_pre=$php_cxx_pre
121504: b_c_meta=$php_c_meta
121505: b_cxx_meta=$php_cxx_meta
121506: b_c_post=$php_c_post
121507: b_cxx_post=$php_cxx_post
121508: b_lo=$php_lo
121509:
121510:
121511: old_IFS=$IFS
121512: for ac_src in sysvshm.c; do
121513:
121514: IFS=.
121515: set $ac_src
121516: ac_obj=$1
121517: IFS=$old_IFS
121518:
121519: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
121520:
121521: case $ac_src in
121522: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121523: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121524: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121525: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121526: esac
121527:
121528: cat >>Makefile.objects<<EOF
121529: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121530: $ac_comp
121531: EOF
121532: done
121533:
121534:
121535: EXT_STATIC="$EXT_STATIC sysvshm"
121536: if test "$ext_shared" != "nocli"; then
121537: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
121538: fi
121539: else
121540: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
121541: PHP_SYSVSHM_SHARED=yes
121542:
121543: case ext/sysvshm in
121544: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121545: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121546: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121547: esac
121548:
121549:
121550:
121551: b_c_pre=$shared_c_pre
121552: b_cxx_pre=$shared_cxx_pre
121553: b_c_meta=$shared_c_meta
121554: b_cxx_meta=$shared_cxx_meta
121555: b_c_post=$shared_c_post
121556: b_cxx_post=$shared_cxx_post
121557: b_lo=$shared_lo
121558:
121559:
121560: old_IFS=$IFS
121561: for ac_src in sysvshm.c; do
121562:
121563: IFS=.
121564: set $ac_src
121565: ac_obj=$1
121566: IFS=$old_IFS
121567:
121568: shared_objects_sysvshm="$shared_objects_sysvshm $ac_bdir$ac_obj.lo"
121569:
121570: case $ac_src in
121571: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121572: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121573: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121574: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121575: esac
121576:
121577: cat >>Makefile.objects<<EOF
121578: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121579: $ac_comp
121580: EOF
121581: done
121582:
121583: case $host_alias in
121584: *netware*)
121585:
121586: install_modules="install-modules"
121587:
121588: case $host_alias in
121589: *aix*)
121590: suffix=so
121591: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvshm.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(PHPSYSVSHM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvshm.so '$ext_builddir'/phpsysvshm.so'
121592: ;;
121593: *netware*)
121594: suffix=nlm
121595: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) -L$(top_builddir)/netware -lphp5lib $(SYSVSHM_SHARED_LIBADD)'
121596: ;;
121597: *)
121598: suffix=la
121599: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(PHPSYSVSHM_SHARED_LIBADD)'
121600: ;;
121601: esac
121602:
121603: if test "x" = "xyes"; then
121604: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvshm.$suffix"
121605: else
121606: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvshm.$suffix"
121607: fi
121608:
121609: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
121610:
121611: cat >>Makefile.objects<<EOF
121612: \$(phplibdir)/phpsysvshm.$suffix: $ext_builddir/phpsysvshm.$suffix
121613: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvshm.$suffix \$(phplibdir)
121614:
121615: $ext_builddir/phpsysvshm.$suffix: \$(shared_objects_sysvshm) \$(PHPSYSVSHM_SHARED_DEPENDENCIES)
121616: $link_cmd
121617:
121618: EOF
121619:
121620: ;;
121621: *)
121622:
121623: install_modules="install-modules"
121624:
121625: case $host_alias in
121626: *aix*)
121627: suffix=so
121628: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvshm.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(SYSVSHM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvshm.so '$ext_builddir'/sysvshm.so'
121629: ;;
121630: *netware*)
121631: suffix=nlm
121632: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) -L$(top_builddir)/netware -lphp5lib $(VSHM_SHARED_LIBADD)'
121633: ;;
121634: *)
121635: suffix=la
121636: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(SYSVSHM_SHARED_LIBADD)'
121637: ;;
121638: esac
121639:
121640: if test "x" = "xyes"; then
121641: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvshm.$suffix"
121642: else
121643: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvshm.$suffix"
121644: fi
121645:
121646: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
121647:
121648: cat >>Makefile.objects<<EOF
121649: \$(phplibdir)/sysvshm.$suffix: $ext_builddir/sysvshm.$suffix
121650: \$(LIBTOOL) --mode=install cp $ext_builddir/sysvshm.$suffix \$(phplibdir)
121651:
121652: $ext_builddir/sysvshm.$suffix: \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_DEPENDENCIES)
121653: $link_cmd
121654:
121655: EOF
121656:
121657: ;;
121658: esac
121659:
121660: cat >>confdefs.h <<_ACEOF
121661: #define COMPILE_DL_SYSVSHM 1
121662: _ACEOF
121663:
121664: fi
121665: fi
121666:
121667: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
121668: PHP_SYSVSHM_SHARED=no
1.1.1.3 ! misho 121669: case "$PHP_SAPI" in
! 121670: cgi|embed)
1.1 misho 121671:
121672:
121673: case ext/sysvshm in
121674: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121675: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121676: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121677: esac
121678:
121679:
121680:
121681: b_c_pre=$php_c_pre
121682: b_cxx_pre=$php_cxx_pre
121683: b_c_meta=$php_c_meta
121684: b_cxx_meta=$php_cxx_meta
121685: b_c_post=$php_c_post
121686: b_cxx_post=$php_cxx_post
121687: b_lo=$php_lo
121688:
121689:
121690: old_IFS=$IFS
121691: for ac_src in sysvshm.c; do
121692:
121693: IFS=.
121694: set $ac_src
121695: ac_obj=$1
121696: IFS=$old_IFS
121697:
1.1.1.2 misho 121698: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 121699:
121700: case $ac_src in
121701: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121702: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121703: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121704: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121705: esac
121706:
121707: cat >>Makefile.objects<<EOF
121708: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121709: $ac_comp
121710: EOF
121711: done
121712:
121713:
1.1.1.3 ! misho 121714: EXT_STATIC="$EXT_STATIC sysvshm"
! 121715: ;;
! 121716: *)
1.1 misho 121717:
121718:
121719: case ext/sysvshm in
121720: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
121721: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
121722: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
121723: esac
121724:
121725:
121726:
121727: b_c_pre=$php_c_pre
121728: b_cxx_pre=$php_cxx_pre
121729: b_c_meta=$php_c_meta
121730: b_cxx_meta=$php_cxx_meta
121731: b_c_post=$php_c_post
121732: b_cxx_post=$php_cxx_post
121733: b_lo=$php_lo
121734:
121735:
121736: old_IFS=$IFS
121737: for ac_src in sysvshm.c; do
121738:
121739: IFS=.
121740: set $ac_src
121741: ac_obj=$1
121742: IFS=$old_IFS
121743:
1.1.1.2 misho 121744: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 121745:
121746: case $ac_src in
121747: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121748: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121749: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
121750: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
121751: esac
121752:
121753: cat >>Makefile.objects<<EOF
121754: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
121755: $ac_comp
121756: EOF
121757: done
121758:
121759:
1.1.1.3 ! misho 121760: ;;
! 121761: esac
1.1 misho 121762: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
121763: fi
121764:
121765:
121766: BUILD_DIR="$BUILD_DIR $ext_builddir"
121767:
121768:
121769:
121770: if test "$ext_builddir" = "."; then
121771: PHP_PECL_EXTENSION=sysvshm
121772:
121773: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
121774:
121775: fi
121776:
121777: fi
121778:
121779:
121780:
121781: php_with_tidy=no
121782:
1.1.1.3 ! misho 121783: { echo "$as_me:$LINENO: checking for TIDY support" >&5
! 121784: echo $ECHO_N "checking for TIDY support... $ECHO_C" >&6; }
1.1 misho 121785:
121786: # Check whether --with-tidy was given.
1.1.1.3 ! misho 121787: if test "${with_tidy+set}" = set; then
1.1 misho 121788: withval=$with_tidy; PHP_TIDY=$withval
121789: else
121790:
121791: PHP_TIDY=no
121792: test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL
121793:
121794: fi
121795:
121796:
121797:
121798: ext_output="yes, shared"
121799: ext_shared=yes
121800: case $PHP_TIDY in
121801: shared,*)
121802: PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'`
121803: ;;
121804: shared)
121805: PHP_TIDY=yes
121806: ;;
121807: no)
121808: ext_output=no
121809: ext_shared=no
121810: ;;
121811: *)
121812: ext_output=yes
121813: ext_shared=no
121814: ;;
121815: esac
121816:
121817:
121818:
1.1.1.3 ! misho 121819: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 121820: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 121821:
121822:
121823:
121824:
121825: if test "$PHP_TIDY" != "no"; then
121826:
121827: if test "$PHP_TIDY" != "yes"; then
121828: TIDY_SEARCH_DIRS=$PHP_TIDY
121829: else
121830: TIDY_SEARCH_DIRS="/usr/local /usr"
121831: fi
121832:
121833: for i in $TIDY_SEARCH_DIRS; do
121834: if test -f $i/include/tidy/tidy.h; then
121835: TIDY_DIR=$i
121836: TIDY_INCDIR=$i/include/tidy
121837: elif test -f $i/include/tidy.h; then
121838: TIDY_DIR=$i
121839: TIDY_INCDIR=$i/include
121840: fi
121841: done
121842:
121843: if test -z "$TIDY_DIR"; then
1.1.1.3 ! misho 121844: { { echo "$as_me:$LINENO: error: Cannot find libtidy" >&5
! 121845: echo "$as_me: error: Cannot find libtidy" >&2;}
! 121846: { (exit 1); exit 1; }; }
1.1 misho 121847: fi
121848:
121849: TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
121850:
121851:
121852:
121853: if test "$ext_shared" = "yes"; then
121854: TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD"
121855: if test -n "$TIDY_LIBDIR"; then
121856:
121857: if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
121858:
121859: if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
121860: ai_p=$TIDY_LIBDIR
121861: else
121862:
121863: ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
121864:
121865: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121866: ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
121867: fi
121868:
121869:
121870: if test "$ext_shared" = "yes"; then
121871: TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD"
121872: test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD"
121873: else
121874:
121875:
121876:
121877: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121878:
121879: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
121880: if test -n "$unique" && test "`eval $cmd`" = "" ; then
121881: eval "LIBPATH$unique=set"
121882:
121883: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
121884: LDFLAGS="$LDFLAGS -L$ai_p"
121885: PHP_RPATHS="$PHP_RPATHS $ai_p"
121886:
121887: fi
121888:
121889:
121890: fi
121891:
121892: fi
121893:
121894: fi
121895: else
121896:
121897:
121898: if test -n "$TIDY_LIBDIR"; then
121899:
121900: if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
121901:
121902: if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
121903: ai_p=$TIDY_LIBDIR
121904: else
121905:
121906: ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
121907:
121908: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121909: ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
121910: fi
121911:
121912:
121913:
121914:
121915:
121916: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121917:
121918: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
121919: if test -n "$unique" && test "`eval $cmd`" = "" ; then
121920: eval "LIBPATH$unique=set"
121921:
121922: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
121923: LDFLAGS="$LDFLAGS -L$ai_p"
121924: PHP_RPATHS="$PHP_RPATHS $ai_p"
121925:
121926: fi
121927:
121928:
121929:
121930: fi
121931:
121932: fi
121933:
121934:
121935: case tidy in
121936: c|c_r|pthread*) ;;
121937: *)
121938: LIBS="-ltidy $LIBS"
121939: ;;
121940: esac
121941:
121942:
121943:
121944:
121945: fi
121946:
121947:
121948:
121949: if test "$TIDY_INCDIR" != "/usr/include"; then
121950:
121951: if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then
121952: ai_p=$TIDY_INCDIR
121953: else
121954:
121955: ep_dir="`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
121956:
121957: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121958: ai_p="$ep_realdir/`basename \"$TIDY_INCDIR\"`"
121959: fi
121960:
121961:
121962:
121963: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121964:
121965: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
121966: if test -n "$unique" && test "`eval $cmd`" = "" ; then
121967: eval "INCLUDEPATH$unique=set"
121968:
121969: if test ""; then
121970: INCLUDES="-I$ai_p $INCLUDES"
121971: else
121972: INCLUDES="$INCLUDES -I$ai_p"
121973: fi
121974:
121975: fi
121976:
121977: fi
121978:
121979:
121980:
121981: save_old_LDFLAGS=$LDFLAGS
121982: ac_stuff=""
121983:
121984: save_ext_shared=$ext_shared
121985: ext_shared=yes
121986:
121987: for ac_i in $ac_stuff; do
121988: case $ac_i in
121989: -pthread)
121990: if test "$ext_shared" = "yes"; then
121991: LDFLAGS="$LDFLAGS -pthread"
121992: else
121993:
121994:
121995: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
121996:
121997: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
121998: if test -n "$unique" && test "`eval $cmd`" = "" ; then
121999: eval "EXTRA_LDFLAGS$unique=set"
122000: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122001: fi
122002:
122003: fi
122004: ;;
122005: -l*)
122006: ac_ii=`echo $ac_i|cut -c 3-`
122007:
122008:
122009: case $ac_ii in
122010: c|c_r|pthread*) ;;
122011: *)
122012: if test "$ext_shared" = "yes"; then
122013: LDFLAGS="$LDFLAGS -l$ac_ii"
122014: else
122015:
122016:
122017: case $ac_ii in
122018: c|c_r|pthread*) ;;
122019: *)
122020: LIBS="$LIBS -l$ac_ii"
122021: ;;
122022: esac
122023:
122024:
122025: fi
122026: ;;
122027: esac
122028:
122029:
122030: ;;
122031: -L*)
122032: ac_ii=`echo $ac_i|cut -c 3-`
122033:
122034: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
122035:
122036: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
122037: ai_p=$ac_ii
122038: else
122039:
122040: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
122041:
122042: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
122043: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
122044: fi
122045:
122046:
122047: if test "$ext_shared" = "yes"; then
122048: LDFLAGS="-L$ai_p $LDFLAGS"
122049: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
122050: else
122051:
122052:
122053:
122054: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
122055:
122056: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
122057: if test -n "$unique" && test "`eval $cmd`" = "" ; then
122058: eval "LIBPATH$unique=set"
122059:
122060: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
122061: LDFLAGS="$LDFLAGS -L$ai_p"
122062: PHP_RPATHS="$PHP_RPATHS $ai_p"
122063:
122064: fi
122065:
122066:
122067: fi
122068:
122069: fi
122070:
122071: ;;
122072: esac
122073: done
122074:
1.1.1.3 ! misho 122075: { echo "$as_me:$LINENO: checking for tidyOptGetDoc in -ltidy" >&5
! 122076: echo $ECHO_N "checking for tidyOptGetDoc in -ltidy... $ECHO_C" >&6; }
! 122077: if test "${ac_cv_lib_tidy_tidyOptGetDoc+set}" = set; then
! 122078: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 122079: else
122080: ac_check_lib_save_LIBS=$LIBS
122081: LIBS="-ltidy $LIBS"
1.1.1.3 ! misho 122082: cat >conftest.$ac_ext <<_ACEOF
! 122083: /* confdefs.h. */
! 122084: _ACEOF
! 122085: cat confdefs.h >>conftest.$ac_ext
! 122086: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 122087: /* end confdefs.h. */
122088:
122089: /* Override any GCC internal prototype to avoid an error.
122090: Use char because int might match the return type of a GCC
122091: builtin and then its argument prototype would still apply. */
122092: #ifdef __cplusplus
122093: extern "C"
122094: #endif
122095: char tidyOptGetDoc ();
122096: int
122097: main ()
122098: {
122099: return tidyOptGetDoc ();
122100: ;
122101: return 0;
122102: }
122103: _ACEOF
1.1.1.3 ! misho 122104: rm -f conftest.$ac_objext conftest$ac_exeext
! 122105: if { (ac_try="$ac_link"
! 122106: case "(($ac_try" in
! 122107: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 122108: *) ac_try_echo=$ac_try;;
! 122109: esac
! 122110: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 122111: (eval "$ac_link") 2>conftest.er1
! 122112: ac_status=$?
! 122113: grep -v '^ *+' conftest.er1 >conftest.err
! 122114: rm -f conftest.er1
! 122115: cat conftest.err >&5
! 122116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 122117: (exit $ac_status); } && {
! 122118: test -z "$ac_c_werror_flag" ||
! 122119: test ! -s conftest.err
! 122120: } && test -s conftest$ac_exeext &&
! 122121: $as_test_x conftest$ac_exeext; then
1.1 misho 122122: ac_cv_lib_tidy_tidyOptGetDoc=yes
122123: else
1.1.1.3 ! misho 122124: echo "$as_me: failed program was:" >&5
! 122125: sed 's/^/| /' conftest.$ac_ext >&5
! 122126:
! 122127: ac_cv_lib_tidy_tidyOptGetDoc=no
1.1 misho 122128: fi
1.1.1.3 ! misho 122129:
! 122130: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 122131: conftest$ac_exeext conftest.$ac_ext
1.1 misho 122132: LIBS=$ac_check_lib_save_LIBS
122133: fi
1.1.1.3 ! misho 122134: { echo "$as_me:$LINENO: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5
! 122135: echo "${ECHO_T}$ac_cv_lib_tidy_tidyOptGetDoc" >&6; }
! 122136: if test $ac_cv_lib_tidy_tidyOptGetDoc = yes; then
1.1 misho 122137:
122138: LDFLAGS=$save_old_LDFLAGS
122139: ext_shared=$save_ext_shared
122140:
122141:
1.1.1.3 ! misho 122142: cat >>confdefs.h <<\_ACEOF
! 122143: #define HAVE_TIDYOPTGETDOC 1
! 122144: _ACEOF
1.1 misho 122145:
122146:
122147:
122148: else
122149:
122150: LDFLAGS=$save_old_LDFLAGS
122151: ext_shared=$save_ext_shared
122152: unset ac_cv_lib_tidy_tidyOptGetDoc
122153:
122154:
122155: fi
122156:
122157:
122158:
122159:
122160: ext_builddir=ext/tidy
122161: ext_srcdir=$abs_srcdir/ext/tidy
122162:
122163: ac_extra=
122164:
122165: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
122166: PHP_TIDY_SHARED=no
122167:
122168:
122169: case ext/tidy in
122170: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122171: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122172: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122173: esac
122174:
122175:
122176:
122177: b_c_pre=$php_c_pre
122178: b_cxx_pre=$php_cxx_pre
122179: b_c_meta=$php_c_meta
122180: b_cxx_meta=$php_cxx_meta
122181: b_c_post=$php_c_post
122182: b_cxx_post=$php_cxx_post
122183: b_lo=$php_lo
122184:
122185:
122186: old_IFS=$IFS
122187: for ac_src in tidy.c; do
122188:
122189: IFS=.
122190: set $ac_src
122191: ac_obj=$1
122192: IFS=$old_IFS
122193:
122194: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
122195:
122196: case $ac_src in
122197: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122198: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122199: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122200: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122201: esac
122202:
122203: cat >>Makefile.objects<<EOF
122204: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122205: $ac_comp
122206: EOF
122207: done
122208:
122209:
122210: EXT_STATIC="$EXT_STATIC tidy"
122211: if test "$ext_shared" != "nocli"; then
122212: EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
122213: fi
122214: else
122215: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
122216: PHP_TIDY_SHARED=yes
122217:
122218: case ext/tidy in
122219: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122220: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122221: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122222: esac
122223:
122224:
122225:
122226: b_c_pre=$shared_c_pre
122227: b_cxx_pre=$shared_cxx_pre
122228: b_c_meta=$shared_c_meta
122229: b_cxx_meta=$shared_cxx_meta
122230: b_c_post=$shared_c_post
122231: b_cxx_post=$shared_cxx_post
122232: b_lo=$shared_lo
122233:
122234:
122235: old_IFS=$IFS
122236: for ac_src in tidy.c; do
122237:
122238: IFS=.
122239: set $ac_src
122240: ac_obj=$1
122241: IFS=$old_IFS
122242:
122243: shared_objects_tidy="$shared_objects_tidy $ac_bdir$ac_obj.lo"
122244:
122245: case $ac_src in
122246: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122247: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122248: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122249: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122250: esac
122251:
122252: cat >>Makefile.objects<<EOF
122253: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122254: $ac_comp
122255: EOF
122256: done
122257:
122258: case $host_alias in
122259: *netware*)
122260:
122261: install_modules="install-modules"
122262:
122263: case $host_alias in
122264: *aix*)
122265: suffix=so
122266: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phptidy.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(PHPTIDY_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phptidy.so '$ext_builddir'/phptidy.so'
122267: ;;
122268: *netware*)
122269: suffix=nlm
122270: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) -L$(top_builddir)/netware -lphp5lib $(TIDY_SHARED_LIBADD)'
122271: ;;
122272: *)
122273: suffix=la
122274: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(PHPTIDY_SHARED_LIBADD)'
122275: ;;
122276: esac
122277:
122278: if test "x" = "xyes"; then
122279: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptidy.$suffix"
122280: else
122281: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptidy.$suffix"
122282: fi
122283:
122284: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
122285:
122286: cat >>Makefile.objects<<EOF
122287: \$(phplibdir)/phptidy.$suffix: $ext_builddir/phptidy.$suffix
122288: \$(LIBTOOL) --mode=install cp $ext_builddir/phptidy.$suffix \$(phplibdir)
122289:
122290: $ext_builddir/phptidy.$suffix: \$(shared_objects_tidy) \$(PHPTIDY_SHARED_DEPENDENCIES)
122291: $link_cmd
122292:
122293: EOF
122294:
122295: ;;
122296: *)
122297:
122298: install_modules="install-modules"
122299:
122300: case $host_alias in
122301: *aix*)
122302: suffix=so
122303: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/tidy.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(TIDY_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/tidy.so '$ext_builddir'/tidy.so'
122304: ;;
122305: *netware*)
122306: suffix=nlm
122307: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) -L$(top_builddir)/netware -lphp5lib $(Y_SHARED_LIBADD)'
122308: ;;
122309: *)
122310: suffix=la
122311: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(TIDY_SHARED_LIBADD)'
122312: ;;
122313: esac
122314:
122315: if test "x" = "xyes"; then
122316: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tidy.$suffix"
122317: else
122318: PHP_MODULES="$PHP_MODULES \$(phplibdir)/tidy.$suffix"
122319: fi
122320:
122321: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
122322:
122323: cat >>Makefile.objects<<EOF
122324: \$(phplibdir)/tidy.$suffix: $ext_builddir/tidy.$suffix
122325: \$(LIBTOOL) --mode=install cp $ext_builddir/tidy.$suffix \$(phplibdir)
122326:
122327: $ext_builddir/tidy.$suffix: \$(shared_objects_tidy) \$(TIDY_SHARED_DEPENDENCIES)
122328: $link_cmd
122329:
122330: EOF
122331:
122332: ;;
122333: esac
122334:
122335: cat >>confdefs.h <<_ACEOF
122336: #define COMPILE_DL_TIDY 1
122337: _ACEOF
122338:
122339: fi
122340: fi
122341:
122342: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
122343: PHP_TIDY_SHARED=no
1.1.1.3 ! misho 122344: case "$PHP_SAPI" in
! 122345: cgi|embed)
1.1 misho 122346:
122347:
122348: case ext/tidy in
122349: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122350: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122351: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122352: esac
122353:
122354:
122355:
122356: b_c_pre=$php_c_pre
122357: b_cxx_pre=$php_cxx_pre
122358: b_c_meta=$php_c_meta
122359: b_cxx_meta=$php_cxx_meta
122360: b_c_post=$php_c_post
122361: b_cxx_post=$php_cxx_post
122362: b_lo=$php_lo
122363:
122364:
122365: old_IFS=$IFS
122366: for ac_src in tidy.c; do
122367:
122368: IFS=.
122369: set $ac_src
122370: ac_obj=$1
122371: IFS=$old_IFS
122372:
1.1.1.2 misho 122373: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 122374:
122375: case $ac_src in
122376: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122377: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122378: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122379: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122380: esac
122381:
122382: cat >>Makefile.objects<<EOF
122383: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122384: $ac_comp
122385: EOF
122386: done
122387:
122388:
1.1.1.3 ! misho 122389: EXT_STATIC="$EXT_STATIC tidy"
! 122390: ;;
! 122391: *)
1.1 misho 122392:
122393:
122394: case ext/tidy in
122395: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122396: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122397: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122398: esac
122399:
122400:
122401:
122402: b_c_pre=$php_c_pre
122403: b_cxx_pre=$php_cxx_pre
122404: b_c_meta=$php_c_meta
122405: b_cxx_meta=$php_cxx_meta
122406: b_c_post=$php_c_post
122407: b_cxx_post=$php_cxx_post
122408: b_lo=$php_lo
122409:
122410:
122411: old_IFS=$IFS
122412: for ac_src in tidy.c; do
122413:
122414: IFS=.
122415: set $ac_src
122416: ac_obj=$1
122417: IFS=$old_IFS
122418:
1.1.1.2 misho 122419: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 122420:
122421: case $ac_src in
122422: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122423: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122424: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122425: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122426: esac
122427:
122428: cat >>Makefile.objects<<EOF
122429: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122430: $ac_comp
122431: EOF
122432: done
122433:
122434:
1.1.1.3 ! misho 122435: ;;
! 122436: esac
1.1 misho 122437: EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
122438: fi
122439:
122440:
122441: BUILD_DIR="$BUILD_DIR $ext_builddir"
122442:
122443:
122444:
122445: if test "$ext_builddir" = "."; then
122446: PHP_PECL_EXTENSION=tidy
122447:
122448: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
122449:
122450: fi
122451:
122452:
122453: PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD"
122454:
122455:
1.1.1.3 ! misho 122456: cat >>confdefs.h <<\_ACEOF
! 122457: #define HAVE_TIDY 1
! 122458: _ACEOF
1.1 misho 122459:
122460: fi
122461:
122462:
122463:
122464:
122465: php_enable_tokenizer=yes
122466:
1.1.1.3 ! misho 122467: { echo "$as_me:$LINENO: checking whether to enable tokenizer support" >&5
! 122468: echo $ECHO_N "checking whether to enable tokenizer support... $ECHO_C" >&6; }
1.1 misho 122469: # Check whether --enable-tokenizer was given.
1.1.1.3 ! misho 122470: if test "${enable_tokenizer+set}" = set; then
1.1 misho 122471: enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval
122472: else
122473:
122474: PHP_TOKENIZER=yes
122475: test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL
122476:
122477: fi
122478:
122479:
122480:
122481: ext_output="yes, shared"
122482: ext_shared=yes
122483: case $PHP_TOKENIZER in
122484: shared,*)
122485: PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'`
122486: ;;
122487: shared)
122488: PHP_TOKENIZER=yes
122489: ;;
122490: no)
122491: ext_output=no
122492: ext_shared=no
122493: ;;
122494: *)
122495: ext_output=yes
122496: ext_shared=no
122497: ;;
122498: esac
122499:
122500:
122501:
1.1.1.3 ! misho 122502: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 122503: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 122504:
122505:
122506:
122507:
122508: if test "$PHP_TOKENIZER" != "no"; then
122509:
122510: ext_builddir=ext/tokenizer
122511: ext_srcdir=$abs_srcdir/ext/tokenizer
122512:
122513: ac_extra=
122514:
122515: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
122516: PHP_TOKENIZER_SHARED=no
122517:
122518:
122519: case ext/tokenizer in
122520: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122521: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122522: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122523: esac
122524:
122525:
122526:
122527: b_c_pre=$php_c_pre
122528: b_cxx_pre=$php_cxx_pre
122529: b_c_meta=$php_c_meta
122530: b_cxx_meta=$php_cxx_meta
122531: b_c_post=$php_c_post
122532: b_cxx_post=$php_cxx_post
122533: b_lo=$php_lo
122534:
122535:
122536: old_IFS=$IFS
122537: for ac_src in tokenizer.c tokenizer_data.c; do
122538:
122539: IFS=.
122540: set $ac_src
122541: ac_obj=$1
122542: IFS=$old_IFS
122543:
122544: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
122545:
122546: case $ac_src in
122547: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122548: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122549: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122550: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122551: esac
122552:
122553: cat >>Makefile.objects<<EOF
122554: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122555: $ac_comp
122556: EOF
122557: done
122558:
122559:
122560: EXT_STATIC="$EXT_STATIC tokenizer"
122561: if test "$ext_shared" != "nocli"; then
122562: EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
122563: fi
122564: else
122565: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
122566: PHP_TOKENIZER_SHARED=yes
122567:
122568: case ext/tokenizer in
122569: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122570: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122571: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122572: esac
122573:
122574:
122575:
122576: b_c_pre=$shared_c_pre
122577: b_cxx_pre=$shared_cxx_pre
122578: b_c_meta=$shared_c_meta
122579: b_cxx_meta=$shared_cxx_meta
122580: b_c_post=$shared_c_post
122581: b_cxx_post=$shared_cxx_post
122582: b_lo=$shared_lo
122583:
122584:
122585: old_IFS=$IFS
122586: for ac_src in tokenizer.c tokenizer_data.c; do
122587:
122588: IFS=.
122589: set $ac_src
122590: ac_obj=$1
122591: IFS=$old_IFS
122592:
122593: shared_objects_tokenizer="$shared_objects_tokenizer $ac_bdir$ac_obj.lo"
122594:
122595: case $ac_src in
122596: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122597: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122598: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122599: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122600: esac
122601:
122602: cat >>Makefile.objects<<EOF
122603: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122604: $ac_comp
122605: EOF
122606: done
122607:
122608: case $host_alias in
122609: *netware*)
122610:
122611: install_modules="install-modules"
122612:
122613: case $host_alias in
122614: *aix*)
122615: suffix=so
122616: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phptokenizer.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(PHPTOKENIZER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phptokenizer.so '$ext_builddir'/phptokenizer.so'
122617: ;;
122618: *netware*)
122619: suffix=nlm
122620: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) -L$(top_builddir)/netware -lphp5lib $(TOKENIZER_SHARED_LIBADD)'
122621: ;;
122622: *)
122623: suffix=la
122624: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(PHPTOKENIZER_SHARED_LIBADD)'
122625: ;;
122626: esac
122627:
122628: if test "x" = "xyes"; then
122629: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptokenizer.$suffix"
122630: else
122631: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptokenizer.$suffix"
122632: fi
122633:
122634: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
122635:
122636: cat >>Makefile.objects<<EOF
122637: \$(phplibdir)/phptokenizer.$suffix: $ext_builddir/phptokenizer.$suffix
122638: \$(LIBTOOL) --mode=install cp $ext_builddir/phptokenizer.$suffix \$(phplibdir)
122639:
122640: $ext_builddir/phptokenizer.$suffix: \$(shared_objects_tokenizer) \$(PHPTOKENIZER_SHARED_DEPENDENCIES)
122641: $link_cmd
122642:
122643: EOF
122644:
122645: ;;
122646: *)
122647:
122648: install_modules="install-modules"
122649:
122650: case $host_alias in
122651: *aix*)
122652: suffix=so
122653: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/tokenizer.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(TOKENIZER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/tokenizer.so '$ext_builddir'/tokenizer.so'
122654: ;;
122655: *netware*)
122656: suffix=nlm
122657: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) -L$(top_builddir)/netware -lphp5lib $(ENIZER_SHARED_LIBADD)'
122658: ;;
122659: *)
122660: suffix=la
122661: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(TOKENIZER_SHARED_LIBADD)'
122662: ;;
122663: esac
122664:
122665: if test "x" = "xyes"; then
122666: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tokenizer.$suffix"
122667: else
122668: PHP_MODULES="$PHP_MODULES \$(phplibdir)/tokenizer.$suffix"
122669: fi
122670:
122671: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
122672:
122673: cat >>Makefile.objects<<EOF
122674: \$(phplibdir)/tokenizer.$suffix: $ext_builddir/tokenizer.$suffix
122675: \$(LIBTOOL) --mode=install cp $ext_builddir/tokenizer.$suffix \$(phplibdir)
122676:
122677: $ext_builddir/tokenizer.$suffix: \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_DEPENDENCIES)
122678: $link_cmd
122679:
122680: EOF
122681:
122682: ;;
122683: esac
122684:
122685: cat >>confdefs.h <<_ACEOF
122686: #define COMPILE_DL_TOKENIZER 1
122687: _ACEOF
122688:
122689: fi
122690: fi
122691:
122692: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
122693: PHP_TOKENIZER_SHARED=no
1.1.1.3 ! misho 122694: case "$PHP_SAPI" in
! 122695: cgi|embed)
1.1 misho 122696:
122697:
122698: case ext/tokenizer in
122699: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122700: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122701: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122702: esac
122703:
122704:
122705:
122706: b_c_pre=$php_c_pre
122707: b_cxx_pre=$php_cxx_pre
122708: b_c_meta=$php_c_meta
122709: b_cxx_meta=$php_cxx_meta
122710: b_c_post=$php_c_post
122711: b_cxx_post=$php_cxx_post
122712: b_lo=$php_lo
122713:
122714:
122715: old_IFS=$IFS
122716: for ac_src in tokenizer.c tokenizer_data.c; do
122717:
122718: IFS=.
122719: set $ac_src
122720: ac_obj=$1
122721: IFS=$old_IFS
122722:
1.1.1.2 misho 122723: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 122724:
122725: case $ac_src in
122726: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122727: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122728: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122729: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122730: esac
122731:
122732: cat >>Makefile.objects<<EOF
122733: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122734: $ac_comp
122735: EOF
122736: done
122737:
122738:
1.1.1.3 ! misho 122739: EXT_STATIC="$EXT_STATIC tokenizer"
! 122740: ;;
! 122741: *)
1.1 misho 122742:
122743:
122744: case ext/tokenizer in
122745: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
122746: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
122747: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
122748: esac
122749:
122750:
122751:
122752: b_c_pre=$php_c_pre
122753: b_cxx_pre=$php_cxx_pre
122754: b_c_meta=$php_c_meta
122755: b_cxx_meta=$php_cxx_meta
122756: b_c_post=$php_c_post
122757: b_cxx_post=$php_cxx_post
122758: b_lo=$php_lo
122759:
122760:
122761: old_IFS=$IFS
122762: for ac_src in tokenizer.c tokenizer_data.c; do
122763:
122764: IFS=.
122765: set $ac_src
122766: ac_obj=$1
122767: IFS=$old_IFS
122768:
1.1.1.2 misho 122769: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 122770:
122771: case $ac_src in
122772: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122773: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122774: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
122775: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
122776: esac
122777:
122778: cat >>Makefile.objects<<EOF
122779: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
122780: $ac_comp
122781: EOF
122782: done
122783:
122784:
1.1.1.3 ! misho 122785: ;;
! 122786: esac
1.1 misho 122787: EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
122788: fi
122789:
122790:
122791: BUILD_DIR="$BUILD_DIR $ext_builddir"
122792:
122793:
122794:
122795: if test "$ext_builddir" = "."; then
122796: PHP_PECL_EXTENSION=tokenizer
122797:
122798: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
122799:
122800: fi
122801:
122802:
122803: src=$ext_srcdir/Makefile.frag
122804: ac_srcdir=$ext_srcdir
122805: ac_builddir=$ext_builddir
122806: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
122807:
122808: fi
122809:
122810:
122811:
122812: php_enable_wddx=no
122813:
1.1.1.3 ! misho 122814: { echo "$as_me:$LINENO: checking whether to enable WDDX support" >&5
! 122815: echo $ECHO_N "checking whether to enable WDDX support... $ECHO_C" >&6; }
1.1 misho 122816: # Check whether --enable-wddx was given.
1.1.1.3 ! misho 122817: if test "${enable_wddx+set}" = set; then
1.1 misho 122818: enableval=$enable_wddx; PHP_WDDX=$enableval
122819: else
122820:
122821: PHP_WDDX=no
122822: test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL
122823:
122824: fi
122825:
122826:
122827:
122828: ext_output="yes, shared"
122829: ext_shared=yes
122830: case $PHP_WDDX in
122831: shared,*)
122832: PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'`
122833: ;;
122834: shared)
122835: PHP_WDDX=yes
122836: ;;
122837: no)
122838: ext_output=no
122839: ext_shared=no
122840: ;;
122841: *)
122842: ext_output=yes
122843: ext_shared=no
122844: ;;
122845: esac
122846:
122847:
122848:
1.1.1.3 ! misho 122849: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 122850: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 122851:
122852:
122853:
122854:
122855: if test -z "$PHP_LIBXML_DIR"; then
122856:
122857: php_with_libxml_dir=no
122858:
1.1.1.3 ! misho 122859: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 122860: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 122861:
122862: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 122863: if test "${with_libxml_dir+set}" = set; then
1.1 misho 122864: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
122865: else
122866:
122867: PHP_LIBXML_DIR=no
122868:
122869:
122870: fi
122871:
122872:
122873: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 122874: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 122875: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 122876:
122877:
122878:
122879: fi
122880:
122881:
122882: php_with_libexpat_dir=no
122883:
1.1.1.3 ! misho 122884: { echo "$as_me:$LINENO: checking libexpat dir for WDDX" >&5
! 122885: echo $ECHO_N "checking libexpat dir for WDDX... $ECHO_C" >&6; }
1.1 misho 122886:
122887: # Check whether --with-libexpat-dir was given.
1.1.1.3 ! misho 122888: if test "${with_libexpat_dir+set}" = set; then
1.1 misho 122889: withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
122890: else
122891:
122892: PHP_LIBEXPAT_DIR=no
122893:
122894:
122895: fi
122896:
122897:
122898: ext_output=$PHP_LIBEXPAT_DIR
1.1.1.3 ! misho 122899: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 122900: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 122901:
122902:
122903:
122904:
122905: if test "$PHP_WDDX" != "no"; then
122906:
122907: if test "$PHP_LIBEXPAT_DIR" = "no"; then
122908: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 122909: { { echo "$as_me:$LINENO: error: WDDX extension requires LIBXML extension, add --enable-libxml" >&5
! 122910: echo "$as_me: error: WDDX extension requires LIBXML extension, add --enable-libxml" >&2;}
! 122911: { (exit 1); exit 1; }; }
1.1 misho 122912: fi
122913:
122914:
1.1.1.3 ! misho 122915: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 122916: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 122917: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 122918: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 122919: else
122920:
122921: for i in $PHP_LIBXML_DIR /usr/local /usr; do
122922: if test -x "$i/bin/xml2-config"; then
122923: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
122924: break
122925: fi
122926: done
122927:
122928: fi
1.1.1.3 ! misho 122929: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 122930: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 122931:
122932: if test -x "$ac_cv_php_xml2_config_path"; then
122933: XML2_CONFIG="$ac_cv_php_xml2_config_path"
122934: libxml_full_version=`$XML2_CONFIG --version`
122935: ac_IFS=$IFS
122936: IFS="."
122937: set $libxml_full_version
122938: IFS=$ac_IFS
122939: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
122940: if test "$LIBXML_VERSION" -ge "2006011"; then
122941: LIBXML_LIBS=`$XML2_CONFIG --libs`
122942: LIBXML_INCS=`$XML2_CONFIG --cflags`
122943:
122944: for ac_i in $LIBXML_LIBS; do
122945: case $ac_i in
122946: -pthread)
122947: if test "$ext_shared" = "yes"; then
122948: WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread"
122949: else
122950:
122951:
122952: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
122953:
122954: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
122955: if test -n "$unique" && test "`eval $cmd`" = "" ; then
122956: eval "EXTRA_LDFLAGS$unique=set"
122957: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122958: fi
122959:
122960: fi
122961: ;;
122962: -l*)
122963: ac_ii=`echo $ac_i|cut -c 3-`
122964:
122965:
122966: case $ac_ii in
122967: c|c_r|pthread*) ;;
122968: *)
122969: if test "$ext_shared" = "yes"; then
122970: WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii"
122971: else
122972:
122973:
122974: case $ac_ii in
122975: c|c_r|pthread*) ;;
122976: *)
122977: LIBS="$LIBS -l$ac_ii"
122978: ;;
122979: esac
122980:
122981:
122982: fi
122983: ;;
122984: esac
122985:
122986:
122987: ;;
122988: -L*)
122989: ac_ii=`echo $ac_i|cut -c 3-`
122990:
122991: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
122992:
122993: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
122994: ai_p=$ac_ii
122995: else
122996:
122997: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
122998:
122999: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123000: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
123001: fi
123002:
123003:
123004: if test "$ext_shared" = "yes"; then
123005: WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
123006: test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
123007: else
123008:
123009:
123010:
123011: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123012:
123013: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
123014: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123015: eval "LIBPATH$unique=set"
123016:
123017: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
123018: LDFLAGS="$LDFLAGS -L$ai_p"
123019: PHP_RPATHS="$PHP_RPATHS $ai_p"
123020:
123021: fi
123022:
123023:
123024: fi
123025:
123026: fi
123027:
123028: ;;
123029: esac
123030: done
123031:
123032:
123033: for ac_i in $LIBXML_INCS; do
123034: case $ac_i in
123035: -I*)
123036: ac_ii=`echo $ac_i|cut -c 3-`
123037:
123038: if test "$ac_ii" != "/usr/include"; then
123039:
123040: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
123041: ai_p=$ac_ii
123042: else
123043:
123044: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
123045:
123046: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123047: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
123048: fi
123049:
123050:
123051:
123052: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123053:
123054: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
123055: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123056: eval "INCLUDEPATH$unique=set"
123057:
123058: if test ""; then
123059: INCLUDES="-I$ai_p $INCLUDES"
123060: else
123061: INCLUDES="$INCLUDES -I$ai_p"
123062: fi
123063:
123064: fi
123065:
123066: fi
123067:
123068: ;;
123069: esac
123070: done
123071:
123072:
1.1.1.3 ! misho 123073: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 123074: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 123075: if test "${php_cv_libxml_build_works+set}" = set; then
! 123076: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 123077: else
123078:
123079:
123080: old_LIBS=$LIBS
123081: LIBS="
123082: $WDDX_SHARED_LIBADD
123083: $LIBS"
1.1.1.3 ! misho 123084: if test "$cross_compiling" = yes; then
1.1 misho 123085:
123086: LIBS=$old_LIBS
123087:
123088: else
1.1.1.3 ! misho 123089: cat >conftest.$ac_ext <<_ACEOF
! 123090: /* confdefs.h. */
! 123091: _ACEOF
! 123092: cat confdefs.h >>conftest.$ac_ext
! 123093: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 123094: /* end confdefs.h. */
123095:
123096:
123097: char xmlInitParser();
123098: int main() {
123099: xmlInitParser();
123100: return 0;
123101: }
123102:
123103: _ACEOF
1.1.1.3 ! misho 123104: rm -f conftest$ac_exeext
! 123105: if { (ac_try="$ac_link"
! 123106: case "(($ac_try" in
! 123107: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 123108: *) ac_try_echo=$ac_try;;
! 123109: esac
! 123110: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 123111: (eval "$ac_link") 2>&5
! 123112: ac_status=$?
! 123113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 123114: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 123115: { (case "(($ac_try" in
! 123116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 123117: *) ac_try_echo=$ac_try;;
! 123118: esac
! 123119: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 123120: (eval "$ac_try") 2>&5
! 123121: ac_status=$?
! 123122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 123123: (exit $ac_status); }; }; then
1.1 misho 123124:
123125: LIBS=$old_LIBS
123126:
123127: php_cv_libxml_build_works=yes
123128:
123129:
123130: else
1.1.1.3 ! misho 123131: echo "$as_me: program exited with status $ac_status" >&5
! 123132: echo "$as_me: failed program was:" >&5
! 123133: sed 's/^/| /' conftest.$ac_ext >&5
! 123134:
! 123135: ( exit $ac_status )
1.1 misho 123136:
123137: LIBS=$old_LIBS
123138:
1.1.1.3 ! misho 123139: { echo "$as_me:$LINENO: result: no" >&5
! 123140: echo "${ECHO_T}no" >&6; }
! 123141: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 123142: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 123143: { (exit 1); exit 1; }; }
1.1 misho 123144:
123145:
123146: fi
1.1.1.3 ! misho 123147: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 123148: fi
123149:
123150:
123151:
1.1.1.3 ! misho 123152:
1.1 misho 123153: fi
1.1.1.3 ! misho 123154: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 123155: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 123156: if test "$php_cv_libxml_build_works" = "yes"; then
123157:
1.1.1.3 ! misho 123158: cat >>confdefs.h <<\_ACEOF
! 123159: #define HAVE_LIBXML 1
! 123160: _ACEOF
1.1 misho 123161:
123162: fi
123163:
123164: if test "$PHP_XML" = "no"; then
123165:
123166:
123167: case ext/xml in
123168: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123169: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123170: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123171: esac
123172:
123173:
123174:
123175: b_c_pre=$php_c_pre
123176: b_cxx_pre=$php_cxx_pre
123177: b_c_meta=$php_c_meta
123178: b_cxx_meta=$php_cxx_meta
123179: b_c_post=$php_c_post
123180: b_cxx_post=$php_cxx_post
123181: b_lo=$php_lo
123182:
123183:
123184: old_IFS=$IFS
123185: for ac_src in compat.c; do
123186:
123187: IFS=.
123188: set $ac_src
123189: ac_obj=$1
123190: IFS=$old_IFS
123191:
123192: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
123193:
123194: case $ac_src in
123195: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123196: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123197: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123198: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123199: esac
123200:
123201: cat >>Makefile.objects<<EOF
123202: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123203: $ac_comp
123204: EOF
123205: done
123206:
123207:
123208:
123209:
123210: BUILD_DIR="$BUILD_DIR ext/xml"
123211:
123212:
123213: fi
123214:
123215: else
1.1.1.3 ! misho 123216: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 123217: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 123218: { (exit 1); exit 1; }; }
1.1 misho 123219: fi
123220: else
1.1.1.3 ! misho 123221: { { echo "$as_me:$LINENO: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&5
! 123222: echo "$as_me: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&2;}
! 123223: { (exit 1); exit 1; }; }
1.1 misho 123224:
123225: fi
123226:
123227: fi
123228:
123229: if test "$PHP_LIBEXPAT_DIR" != "no"; then
123230: for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
123231: if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
123232: EXPAT_DIR=$i
123233: break
123234: fi
123235: done
123236:
123237: if test -z "$EXPAT_DIR"; then
1.1.1.3 ! misho 123238: { { echo "$as_me:$LINENO: error: not found. Please reinstall the expat distribution." >&5
! 123239: echo "$as_me: error: not found. Please reinstall the expat distribution." >&2;}
! 123240: { (exit 1); exit 1; }; }
1.1 misho 123241: fi
123242:
123243:
123244: if test "$EXPAT_DIR/include" != "/usr/include"; then
123245:
123246: if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
123247: ai_p=$EXPAT_DIR/include
123248: else
123249:
123250: ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
123251:
123252: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123253: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
123254: fi
123255:
123256:
123257:
123258: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123259:
123260: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
123261: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123262: eval "INCLUDEPATH$unique=set"
123263:
123264: if test ""; then
123265: INCLUDES="-I$ai_p $INCLUDES"
123266: else
123267: INCLUDES="$INCLUDES -I$ai_p"
123268: fi
123269:
123270: fi
123271:
123272: fi
123273:
123274:
123275:
123276: if test "$ext_shared" = "yes"; then
123277: WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD"
123278: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
123279:
123280: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
123281:
123282: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
123283: ai_p=$EXPAT_DIR/$PHP_LIBDIR
123284: else
123285:
123286: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
123287:
123288: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123289: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
123290: fi
123291:
123292:
123293: if test "$ext_shared" = "yes"; then
123294: WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
123295: test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
123296: else
123297:
123298:
123299:
123300: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123301:
123302: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
123303: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123304: eval "LIBPATH$unique=set"
123305:
123306: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
123307: LDFLAGS="$LDFLAGS -L$ai_p"
123308: PHP_RPATHS="$PHP_RPATHS $ai_p"
123309:
123310: fi
123311:
123312:
123313: fi
123314:
123315: fi
123316:
123317: fi
123318: else
123319:
123320:
123321: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
123322:
123323: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
123324:
123325: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
123326: ai_p=$EXPAT_DIR/$PHP_LIBDIR
123327: else
123328:
123329: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
123330:
123331: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123332: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
123333: fi
123334:
123335:
123336:
123337:
123338:
123339: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123340:
123341: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
123342: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123343: eval "LIBPATH$unique=set"
123344:
123345: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
123346: LDFLAGS="$LDFLAGS -L$ai_p"
123347: PHP_RPATHS="$PHP_RPATHS $ai_p"
123348:
123349: fi
123350:
123351:
123352:
123353: fi
123354:
123355: fi
123356:
123357:
123358: case expat in
123359: c|c_r|pthread*) ;;
123360: *)
123361: LIBS="-lexpat $LIBS"
123362: ;;
123363: esac
123364:
123365:
123366:
123367:
123368: fi
123369:
123370:
123371:
1.1.1.3 ! misho 123372: cat >>confdefs.h <<\_ACEOF
! 123373: #define HAVE_LIBEXPAT 1
! 123374: _ACEOF
1.1 misho 123375:
123376: fi
123377:
123378:
1.1.1.3 ! misho 123379: cat >>confdefs.h <<\_ACEOF
! 123380: #define HAVE_WDDX 1
! 123381: _ACEOF
1.1 misho 123382:
123383:
123384: ext_builddir=ext/wddx
123385: ext_srcdir=$abs_srcdir/ext/wddx
123386:
123387: ac_extra=
123388:
123389: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
123390: PHP_WDDX_SHARED=no
123391:
123392:
123393: case ext/wddx in
123394: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123395: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123396: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123397: esac
123398:
123399:
123400:
123401: b_c_pre=$php_c_pre
123402: b_cxx_pre=$php_cxx_pre
123403: b_c_meta=$php_c_meta
123404: b_cxx_meta=$php_cxx_meta
123405: b_c_post=$php_c_post
123406: b_cxx_post=$php_cxx_post
123407: b_lo=$php_lo
123408:
123409:
123410: old_IFS=$IFS
123411: for ac_src in wddx.c; do
123412:
123413: IFS=.
123414: set $ac_src
123415: ac_obj=$1
123416: IFS=$old_IFS
123417:
123418: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
123419:
123420: case $ac_src in
123421: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123422: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123423: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123424: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123425: esac
123426:
123427: cat >>Makefile.objects<<EOF
123428: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123429: $ac_comp
123430: EOF
123431: done
123432:
123433:
123434: EXT_STATIC="$EXT_STATIC wddx"
123435: if test "$ext_shared" != "nocli"; then
123436: EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
123437: fi
123438: else
123439: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
123440: PHP_WDDX_SHARED=yes
123441:
123442: case ext/wddx in
123443: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123444: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123445: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123446: esac
123447:
123448:
123449:
123450: b_c_pre=$shared_c_pre
123451: b_cxx_pre=$shared_cxx_pre
123452: b_c_meta=$shared_c_meta
123453: b_cxx_meta=$shared_cxx_meta
123454: b_c_post=$shared_c_post
123455: b_cxx_post=$shared_cxx_post
123456: b_lo=$shared_lo
123457:
123458:
123459: old_IFS=$IFS
123460: for ac_src in wddx.c; do
123461:
123462: IFS=.
123463: set $ac_src
123464: ac_obj=$1
123465: IFS=$old_IFS
123466:
123467: shared_objects_wddx="$shared_objects_wddx $ac_bdir$ac_obj.lo"
123468:
123469: case $ac_src in
123470: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123471: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123472: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123473: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123474: esac
123475:
123476: cat >>Makefile.objects<<EOF
123477: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123478: $ac_comp
123479: EOF
123480: done
123481:
123482: case $host_alias in
123483: *netware*)
123484:
123485: install_modules="install-modules"
123486:
123487: case $host_alias in
123488: *aix*)
123489: suffix=so
123490: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpwddx.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(PHPWDDX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpwddx.so '$ext_builddir'/phpwddx.so'
123491: ;;
123492: *netware*)
123493: suffix=nlm
123494: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) -L$(top_builddir)/netware -lphp5lib $(WDDX_SHARED_LIBADD)'
123495: ;;
123496: *)
123497: suffix=la
123498: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(PHPWDDX_SHARED_LIBADD)'
123499: ;;
123500: esac
123501:
123502: if test "x" = "xyes"; then
123503: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpwddx.$suffix"
123504: else
123505: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpwddx.$suffix"
123506: fi
123507:
123508: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
123509:
123510: cat >>Makefile.objects<<EOF
123511: \$(phplibdir)/phpwddx.$suffix: $ext_builddir/phpwddx.$suffix
123512: \$(LIBTOOL) --mode=install cp $ext_builddir/phpwddx.$suffix \$(phplibdir)
123513:
123514: $ext_builddir/phpwddx.$suffix: \$(shared_objects_wddx) \$(PHPWDDX_SHARED_DEPENDENCIES)
123515: $link_cmd
123516:
123517: EOF
123518:
123519: ;;
123520: *)
123521:
123522: install_modules="install-modules"
123523:
123524: case $host_alias in
123525: *aix*)
123526: suffix=so
123527: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/wddx.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(WDDX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/wddx.so '$ext_builddir'/wddx.so'
123528: ;;
123529: *netware*)
123530: suffix=nlm
123531: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) -L$(top_builddir)/netware -lphp5lib $(X_SHARED_LIBADD)'
123532: ;;
123533: *)
123534: suffix=la
123535: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(WDDX_SHARED_LIBADD)'
123536: ;;
123537: esac
123538:
123539: if test "x" = "xyes"; then
123540: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/wddx.$suffix"
123541: else
123542: PHP_MODULES="$PHP_MODULES \$(phplibdir)/wddx.$suffix"
123543: fi
123544:
123545: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
123546:
123547: cat >>Makefile.objects<<EOF
123548: \$(phplibdir)/wddx.$suffix: $ext_builddir/wddx.$suffix
123549: \$(LIBTOOL) --mode=install cp $ext_builddir/wddx.$suffix \$(phplibdir)
123550:
123551: $ext_builddir/wddx.$suffix: \$(shared_objects_wddx) \$(WDDX_SHARED_DEPENDENCIES)
123552: $link_cmd
123553:
123554: EOF
123555:
123556: ;;
123557: esac
123558:
123559: cat >>confdefs.h <<_ACEOF
123560: #define COMPILE_DL_WDDX 1
123561: _ACEOF
123562:
123563: fi
123564: fi
123565:
123566: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
123567: PHP_WDDX_SHARED=no
1.1.1.3 ! misho 123568: case "$PHP_SAPI" in
! 123569: cgi|embed)
1.1 misho 123570:
123571:
123572: case ext/wddx in
123573: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123574: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123575: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123576: esac
123577:
123578:
123579:
123580: b_c_pre=$php_c_pre
123581: b_cxx_pre=$php_cxx_pre
123582: b_c_meta=$php_c_meta
123583: b_cxx_meta=$php_cxx_meta
123584: b_c_post=$php_c_post
123585: b_cxx_post=$php_cxx_post
123586: b_lo=$php_lo
123587:
123588:
123589: old_IFS=$IFS
123590: for ac_src in wddx.c; do
123591:
123592: IFS=.
123593: set $ac_src
123594: ac_obj=$1
123595: IFS=$old_IFS
123596:
1.1.1.2 misho 123597: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 123598:
123599: case $ac_src in
123600: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123601: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123602: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123603: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123604: esac
123605:
123606: cat >>Makefile.objects<<EOF
123607: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123608: $ac_comp
123609: EOF
123610: done
123611:
123612:
1.1.1.3 ! misho 123613: EXT_STATIC="$EXT_STATIC wddx"
! 123614: ;;
! 123615: *)
1.1 misho 123616:
123617:
123618: case ext/wddx in
123619: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123620: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123621: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123622: esac
123623:
123624:
123625:
123626: b_c_pre=$php_c_pre
123627: b_cxx_pre=$php_cxx_pre
123628: b_c_meta=$php_c_meta
123629: b_cxx_meta=$php_cxx_meta
123630: b_c_post=$php_c_post
123631: b_cxx_post=$php_cxx_post
123632: b_lo=$php_lo
123633:
123634:
123635: old_IFS=$IFS
123636: for ac_src in wddx.c; do
123637:
123638: IFS=.
123639: set $ac_src
123640: ac_obj=$1
123641: IFS=$old_IFS
123642:
1.1.1.2 misho 123643: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 123644:
123645: case $ac_src in
123646: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123647: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123648: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123649: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123650: esac
123651:
123652: cat >>Makefile.objects<<EOF
123653: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123654: $ac_comp
123655: EOF
123656: done
123657:
123658:
1.1.1.3 ! misho 123659: ;;
! 123660: esac
1.1 misho 123661: EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
123662: fi
123663:
123664:
123665: BUILD_DIR="$BUILD_DIR $ext_builddir"
123666:
123667:
123668:
123669: if test "$ext_builddir" = "."; then
123670: PHP_PECL_EXTENSION=wddx
123671:
123672: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
123673:
123674: fi
123675:
123676:
123677: am_i_shared=$PHP_WDDX_SHARED
123678: is_it_shared=$PHP_LIBXML_SHARED
123679: is_it_enabled=$PHP_LIBXML
123680: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 123681: { { echo "$as_me:$LINENO: error:
! 123682: You've configured extension wddx to build statically, but it
! 123683: depends on extension libxml, which you've configured to build shared.
! 123684: You either need to build wddx shared or build libxml statically for the
! 123685: build to be successful.
! 123686: " >&5
! 123687: echo "$as_me: error:
1.1 misho 123688: You've configured extension wddx to build statically, but it
123689: depends on extension libxml, which you've configured to build shared.
123690: You either need to build wddx shared or build libxml statically for the
123691: build to be successful.
1.1.1.3 ! misho 123692: " >&2;}
! 123693: { (exit 1); exit 1; }; }
! 123694: fi
! 123695: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 123696: { { echo "$as_me:$LINENO: error:
! 123697: You've configured extension wddx, which depends on extension libxml,
! 123698: but you've either not enabled libxml, or have disabled it.
! 123699: " >&5
! 123700: echo "$as_me: error:
! 123701: You've configured extension wddx, which depends on extension libxml,
! 123702: but you've either not enabled libxml, or have disabled it.
! 123703: " >&2;}
! 123704: { (exit 1); exit 1; }; }
1.1 misho 123705: fi
123706:
123707:
123708: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
123709:
123710: fi
123711:
123712:
123713:
123714: php_enable_xml=yes
123715:
1.1.1.3 ! misho 123716: { echo "$as_me:$LINENO: checking whether to enable XML support" >&5
! 123717: echo $ECHO_N "checking whether to enable XML support... $ECHO_C" >&6; }
1.1 misho 123718: # Check whether --enable-xml was given.
1.1.1.3 ! misho 123719: if test "${enable_xml+set}" = set; then
1.1 misho 123720: enableval=$enable_xml; PHP_XML=$enableval
123721: else
123722:
123723: PHP_XML=yes
123724: test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL
123725:
123726: fi
123727:
123728:
123729:
123730: ext_output="yes, shared"
123731: ext_shared=yes
123732: case $PHP_XML in
123733: shared,*)
123734: PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'`
123735: ;;
123736: shared)
123737: PHP_XML=yes
123738: ;;
123739: no)
123740: ext_output=no
123741: ext_shared=no
123742: ;;
123743: *)
123744: ext_output=yes
123745: ext_shared=no
123746: ;;
123747: esac
123748:
123749:
123750:
1.1.1.3 ! misho 123751: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 123752: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 123753:
123754:
123755:
123756:
123757: if test -z "$PHP_LIBXML_DIR"; then
123758:
123759: php_with_libxml_dir=no
123760:
1.1.1.3 ! misho 123761: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 123762: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 123763:
123764: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 123765: if test "${with_libxml_dir+set}" = set; then
1.1 misho 123766: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
123767: else
123768:
123769: PHP_LIBXML_DIR=no
123770:
123771:
123772: fi
123773:
123774:
123775: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 123776: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 123777: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 123778:
123779:
123780:
123781: fi
123782:
123783:
123784: php_with_libexpat_dir=no
123785:
1.1.1.3 ! misho 123786: { echo "$as_me:$LINENO: checking libexpat install dir" >&5
! 123787: echo $ECHO_N "checking libexpat install dir... $ECHO_C" >&6; }
1.1 misho 123788:
123789: # Check whether --with-libexpat-dir was given.
1.1.1.3 ! misho 123790: if test "${with_libexpat_dir+set}" = set; then
1.1 misho 123791: withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
123792: else
123793:
123794: PHP_LIBEXPAT_DIR=no
123795:
123796:
123797: fi
123798:
123799:
123800: ext_output=$PHP_LIBEXPAT_DIR
1.1.1.3 ! misho 123801: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 123802: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 123803:
123804:
123805:
123806:
123807: if test "$PHP_XML" != "no"; then
123808:
123809: if test "$PHP_LIBEXPAT_DIR" = "no"; then
123810:
123811: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 123812: { { echo "$as_me:$LINENO: error: XML extension requires LIBXML extension, add --enable-libxml" >&5
! 123813: echo "$as_me: error: XML extension requires LIBXML extension, add --enable-libxml" >&2;}
! 123814: { (exit 1); exit 1; }; }
1.1 misho 123815: fi
123816:
123817:
1.1.1.3 ! misho 123818: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 123819: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 123820: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 123821: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 123822: else
123823:
123824: for i in $PHP_LIBXML_DIR /usr/local /usr; do
123825: if test -x "$i/bin/xml2-config"; then
123826: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
123827: break
123828: fi
123829: done
123830:
123831: fi
1.1.1.3 ! misho 123832: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 123833: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 123834:
123835: if test -x "$ac_cv_php_xml2_config_path"; then
123836: XML2_CONFIG="$ac_cv_php_xml2_config_path"
123837: libxml_full_version=`$XML2_CONFIG --version`
123838: ac_IFS=$IFS
123839: IFS="."
123840: set $libxml_full_version
123841: IFS=$ac_IFS
123842: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
123843: if test "$LIBXML_VERSION" -ge "2006011"; then
123844: LIBXML_LIBS=`$XML2_CONFIG --libs`
123845: LIBXML_INCS=`$XML2_CONFIG --cflags`
123846:
123847: for ac_i in $LIBXML_LIBS; do
123848: case $ac_i in
123849: -pthread)
123850: if test "$ext_shared" = "yes"; then
123851: XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread"
123852: else
123853:
123854:
123855: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
123856:
123857: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
123858: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123859: eval "EXTRA_LDFLAGS$unique=set"
123860: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
123861: fi
123862:
123863: fi
123864: ;;
123865: -l*)
123866: ac_ii=`echo $ac_i|cut -c 3-`
123867:
123868:
123869: case $ac_ii in
123870: c|c_r|pthread*) ;;
123871: *)
123872: if test "$ext_shared" = "yes"; then
123873: XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii"
123874: else
123875:
123876:
123877: case $ac_ii in
123878: c|c_r|pthread*) ;;
123879: *)
123880: LIBS="$LIBS -l$ac_ii"
123881: ;;
123882: esac
123883:
123884:
123885: fi
123886: ;;
123887: esac
123888:
123889:
123890: ;;
123891: -L*)
123892: ac_ii=`echo $ac_i|cut -c 3-`
123893:
123894: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
123895:
123896: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
123897: ai_p=$ac_ii
123898: else
123899:
123900: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
123901:
123902: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123903: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
123904: fi
123905:
123906:
123907: if test "$ext_shared" = "yes"; then
123908: XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
123909: test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
123910: else
123911:
123912:
123913:
123914: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123915:
123916: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
123917: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123918: eval "LIBPATH$unique=set"
123919:
123920: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
123921: LDFLAGS="$LDFLAGS -L$ai_p"
123922: PHP_RPATHS="$PHP_RPATHS $ai_p"
123923:
123924: fi
123925:
123926:
123927: fi
123928:
123929: fi
123930:
123931: ;;
123932: esac
123933: done
123934:
123935:
123936: for ac_i in $LIBXML_INCS; do
123937: case $ac_i in
123938: -I*)
123939: ac_ii=`echo $ac_i|cut -c 3-`
123940:
123941: if test "$ac_ii" != "/usr/include"; then
123942:
123943: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
123944: ai_p=$ac_ii
123945: else
123946:
123947: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
123948:
123949: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123950: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
123951: fi
123952:
123953:
123954:
123955: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123956:
123957: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
123958: if test -n "$unique" && test "`eval $cmd`" = "" ; then
123959: eval "INCLUDEPATH$unique=set"
123960:
123961: if test ""; then
123962: INCLUDES="-I$ai_p $INCLUDES"
123963: else
123964: INCLUDES="$INCLUDES -I$ai_p"
123965: fi
123966:
123967: fi
123968:
123969: fi
123970:
123971: ;;
123972: esac
123973: done
123974:
123975:
1.1.1.3 ! misho 123976: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 123977: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 123978: if test "${php_cv_libxml_build_works+set}" = set; then
! 123979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 123980: else
123981:
123982:
123983: old_LIBS=$LIBS
123984: LIBS="
123985: $XML_SHARED_LIBADD
123986: $LIBS"
1.1.1.3 ! misho 123987: if test "$cross_compiling" = yes; then
1.1 misho 123988:
123989: LIBS=$old_LIBS
123990:
123991: else
1.1.1.3 ! misho 123992: cat >conftest.$ac_ext <<_ACEOF
! 123993: /* confdefs.h. */
! 123994: _ACEOF
! 123995: cat confdefs.h >>conftest.$ac_ext
! 123996: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 123997: /* end confdefs.h. */
123998:
123999:
124000: char xmlInitParser();
124001: int main() {
124002: xmlInitParser();
124003: return 0;
124004: }
124005:
124006: _ACEOF
1.1.1.3 ! misho 124007: rm -f conftest$ac_exeext
! 124008: if { (ac_try="$ac_link"
! 124009: case "(($ac_try" in
! 124010: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 124011: *) ac_try_echo=$ac_try;;
! 124012: esac
! 124013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 124014: (eval "$ac_link") 2>&5
! 124015: ac_status=$?
! 124016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 124017: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 124018: { (case "(($ac_try" in
! 124019: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 124020: *) ac_try_echo=$ac_try;;
! 124021: esac
! 124022: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 124023: (eval "$ac_try") 2>&5
! 124024: ac_status=$?
! 124025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 124026: (exit $ac_status); }; }; then
1.1 misho 124027:
124028: LIBS=$old_LIBS
124029:
124030: php_cv_libxml_build_works=yes
124031:
124032:
124033: else
1.1.1.3 ! misho 124034: echo "$as_me: program exited with status $ac_status" >&5
! 124035: echo "$as_me: failed program was:" >&5
! 124036: sed 's/^/| /' conftest.$ac_ext >&5
! 124037:
! 124038: ( exit $ac_status )
1.1 misho 124039:
124040: LIBS=$old_LIBS
124041:
1.1.1.3 ! misho 124042: { echo "$as_me:$LINENO: result: no" >&5
! 124043: echo "${ECHO_T}no" >&6; }
! 124044: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 124045: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 124046: { (exit 1); exit 1; }; }
1.1 misho 124047:
124048:
124049: fi
1.1.1.3 ! misho 124050: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 124051: fi
124052:
124053:
124054:
1.1.1.3 ! misho 124055:
1.1 misho 124056: fi
1.1.1.3 ! misho 124057: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 124058: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 124059: if test "$php_cv_libxml_build_works" = "yes"; then
124060:
1.1.1.3 ! misho 124061: cat >>confdefs.h <<\_ACEOF
! 124062: #define HAVE_LIBXML 1
! 124063: _ACEOF
1.1 misho 124064:
124065: fi
124066:
124067: xml_extra_sources="compat.c"
124068:
124069: am_i_shared=$PHP_XML_SHARED
124070: is_it_shared=$PHP_LIBXML_SHARED
124071: is_it_enabled=$PHP_LIBXML
124072: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 124073: { { echo "$as_me:$LINENO: error:
! 124074: You've configured extension xml to build statically, but it
! 124075: depends on extension libxml, which you've configured to build shared.
! 124076: You either need to build xml shared or build libxml statically for the
! 124077: build to be successful.
! 124078: " >&5
! 124079: echo "$as_me: error:
1.1 misho 124080: You've configured extension xml to build statically, but it
124081: depends on extension libxml, which you've configured to build shared.
124082: You either need to build xml shared or build libxml statically for the
124083: build to be successful.
1.1.1.3 ! misho 124084: " >&2;}
! 124085: { (exit 1); exit 1; }; }
! 124086: fi
! 124087: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 124088: { { echo "$as_me:$LINENO: error:
! 124089: You've configured extension xml, which depends on extension libxml,
! 124090: but you've either not enabled libxml, or have disabled it.
! 124091: " >&5
! 124092: echo "$as_me: error:
! 124093: You've configured extension xml, which depends on extension libxml,
! 124094: but you've either not enabled libxml, or have disabled it.
! 124095: " >&2;}
! 124096: { (exit 1); exit 1; }; }
1.1 misho 124097: fi
124098:
124099:
124100: else
1.1.1.3 ! misho 124101: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 124102: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 124103: { (exit 1); exit 1; }; }
1.1 misho 124104: fi
124105: else
1.1.1.3 ! misho 124106: { { echo "$as_me:$LINENO: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&5
! 124107: echo "$as_me: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&2;}
! 124108: { (exit 1); exit 1; }; }
1.1 misho 124109:
124110: fi
124111:
124112: fi
124113:
124114: if test "$PHP_LIBEXPAT_DIR" != "no"; then
124115: for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
124116: if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
124117: EXPAT_DIR=$i
124118: break
124119: fi
124120: done
124121:
124122: if test -z "$EXPAT_DIR"; then
1.1.1.3 ! misho 124123: { { echo "$as_me:$LINENO: error: not found. Please reinstall the expat distribution." >&5
! 124124: echo "$as_me: error: not found. Please reinstall the expat distribution." >&2;}
! 124125: { (exit 1); exit 1; }; }
1.1 misho 124126: fi
124127:
124128:
124129: if test "$EXPAT_DIR/include" != "/usr/include"; then
124130:
124131: if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
124132: ai_p=$EXPAT_DIR/include
124133: else
124134:
124135: ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
124136:
124137: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124138: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
124139: fi
124140:
124141:
124142:
124143: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124144:
124145: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
124146: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124147: eval "INCLUDEPATH$unique=set"
124148:
124149: if test ""; then
124150: INCLUDES="-I$ai_p $INCLUDES"
124151: else
124152: INCLUDES="$INCLUDES -I$ai_p"
124153: fi
124154:
124155: fi
124156:
124157: fi
124158:
124159:
124160:
124161: if test "$ext_shared" = "yes"; then
124162: XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD"
124163: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
124164:
124165: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
124166:
124167: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
124168: ai_p=$EXPAT_DIR/$PHP_LIBDIR
124169: else
124170:
124171: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
124172:
124173: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124174: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
124175: fi
124176:
124177:
124178: if test "$ext_shared" = "yes"; then
124179: XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
124180: test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
124181: else
124182:
124183:
124184:
124185: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124186:
124187: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
124188: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124189: eval "LIBPATH$unique=set"
124190:
124191: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
124192: LDFLAGS="$LDFLAGS -L$ai_p"
124193: PHP_RPATHS="$PHP_RPATHS $ai_p"
124194:
124195: fi
124196:
124197:
124198: fi
124199:
124200: fi
124201:
124202: fi
124203: else
124204:
124205:
124206: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
124207:
124208: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
124209:
124210: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
124211: ai_p=$EXPAT_DIR/$PHP_LIBDIR
124212: else
124213:
124214: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
124215:
124216: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124217: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
124218: fi
124219:
124220:
124221:
124222:
124223:
124224: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124225:
124226: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
124227: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124228: eval "LIBPATH$unique=set"
124229:
124230: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
124231: LDFLAGS="$LDFLAGS -L$ai_p"
124232: PHP_RPATHS="$PHP_RPATHS $ai_p"
124233:
124234: fi
124235:
124236:
124237:
124238: fi
124239:
124240: fi
124241:
124242:
124243: case expat in
124244: c|c_r|pthread*) ;;
124245: *)
124246: LIBS="-lexpat $LIBS"
124247: ;;
124248: esac
124249:
124250:
124251:
124252:
124253: fi
124254:
124255:
124256:
1.1.1.3 ! misho 124257: cat >>confdefs.h <<\_ACEOF
! 124258: #define HAVE_LIBEXPAT 1
! 124259: _ACEOF
1.1 misho 124260:
124261: fi
124262:
124263:
124264: ext_builddir=ext/xml
124265: ext_srcdir=$abs_srcdir/ext/xml
124266:
124267: ac_extra=
124268:
124269: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
124270: PHP_XML_SHARED=no
124271:
124272:
124273: case ext/xml in
124274: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124275: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124276: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124277: esac
124278:
124279:
124280:
124281: b_c_pre=$php_c_pre
124282: b_cxx_pre=$php_cxx_pre
124283: b_c_meta=$php_c_meta
124284: b_cxx_meta=$php_cxx_meta
124285: b_c_post=$php_c_post
124286: b_cxx_post=$php_cxx_post
124287: b_lo=$php_lo
124288:
124289:
124290: old_IFS=$IFS
124291: for ac_src in xml.c $xml_extra_sources; do
124292:
124293: IFS=.
124294: set $ac_src
124295: ac_obj=$1
124296: IFS=$old_IFS
124297:
124298: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
124299:
124300: case $ac_src in
124301: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124302: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124303: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124304: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124305: esac
124306:
124307: cat >>Makefile.objects<<EOF
124308: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124309: $ac_comp
124310: EOF
124311: done
124312:
124313:
124314: EXT_STATIC="$EXT_STATIC xml"
124315: if test "$ext_shared" != "nocli"; then
124316: EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
124317: fi
124318: else
124319: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
124320: PHP_XML_SHARED=yes
124321:
124322: case ext/xml in
124323: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124324: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124325: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124326: esac
124327:
124328:
124329:
124330: b_c_pre=$shared_c_pre
124331: b_cxx_pre=$shared_cxx_pre
124332: b_c_meta=$shared_c_meta
124333: b_cxx_meta=$shared_cxx_meta
124334: b_c_post=$shared_c_post
124335: b_cxx_post=$shared_cxx_post
124336: b_lo=$shared_lo
124337:
124338:
124339: old_IFS=$IFS
124340: for ac_src in xml.c $xml_extra_sources; do
124341:
124342: IFS=.
124343: set $ac_src
124344: ac_obj=$1
124345: IFS=$old_IFS
124346:
124347: shared_objects_xml="$shared_objects_xml $ac_bdir$ac_obj.lo"
124348:
124349: case $ac_src in
124350: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124351: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124352: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124353: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124354: esac
124355:
124356: cat >>Makefile.objects<<EOF
124357: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124358: $ac_comp
124359: EOF
124360: done
124361:
124362: case $host_alias in
124363: *netware*)
124364:
124365: install_modules="install-modules"
124366:
124367: case $host_alias in
124368: *aix*)
124369: suffix=so
124370: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(PHPXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxml.so '$ext_builddir'/phpxml.so'
124371: ;;
124372: *netware*)
124373: suffix=nlm
124374: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) -L$(top_builddir)/netware -lphp5lib $(XML_SHARED_LIBADD)'
124375: ;;
124376: *)
124377: suffix=la
124378: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(PHPXML_SHARED_LIBADD)'
124379: ;;
124380: esac
124381:
124382: if test "x" = "xyes"; then
124383: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxml.$suffix"
124384: else
124385: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxml.$suffix"
124386: fi
124387:
124388: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
124389:
124390: cat >>Makefile.objects<<EOF
124391: \$(phplibdir)/phpxml.$suffix: $ext_builddir/phpxml.$suffix
124392: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxml.$suffix \$(phplibdir)
124393:
124394: $ext_builddir/phpxml.$suffix: \$(shared_objects_xml) \$(PHPXML_SHARED_DEPENDENCIES)
124395: $link_cmd
124396:
124397: EOF
124398:
124399: ;;
124400: *)
124401:
124402: install_modules="install-modules"
124403:
124404: case $host_alias in
124405: *aix*)
124406: suffix=so
124407: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(XML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xml.so '$ext_builddir'/xml.so'
124408: ;;
124409: *netware*)
124410: suffix=nlm
124411: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
124412: ;;
124413: *)
124414: suffix=la
124415: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(XML_SHARED_LIBADD)'
124416: ;;
124417: esac
124418:
124419: if test "x" = "xyes"; then
124420: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xml.$suffix"
124421: else
124422: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xml.$suffix"
124423: fi
124424:
124425: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
124426:
124427: cat >>Makefile.objects<<EOF
124428: \$(phplibdir)/xml.$suffix: $ext_builddir/xml.$suffix
124429: \$(LIBTOOL) --mode=install cp $ext_builddir/xml.$suffix \$(phplibdir)
124430:
124431: $ext_builddir/xml.$suffix: \$(shared_objects_xml) \$(XML_SHARED_DEPENDENCIES)
124432: $link_cmd
124433:
124434: EOF
124435:
124436: ;;
124437: esac
124438:
124439: cat >>confdefs.h <<_ACEOF
124440: #define COMPILE_DL_XML 1
124441: _ACEOF
124442:
124443: fi
124444: fi
124445:
124446: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
124447: PHP_XML_SHARED=no
1.1.1.3 ! misho 124448: case "$PHP_SAPI" in
! 124449: cgi|embed)
1.1 misho 124450:
124451:
124452: case ext/xml in
124453: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124454: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124455: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124456: esac
124457:
124458:
124459:
124460: b_c_pre=$php_c_pre
124461: b_cxx_pre=$php_cxx_pre
124462: b_c_meta=$php_c_meta
124463: b_cxx_meta=$php_cxx_meta
124464: b_c_post=$php_c_post
124465: b_cxx_post=$php_cxx_post
124466: b_lo=$php_lo
124467:
124468:
124469: old_IFS=$IFS
124470: for ac_src in xml.c $xml_extra_sources; do
124471:
124472: IFS=.
124473: set $ac_src
124474: ac_obj=$1
124475: IFS=$old_IFS
124476:
1.1.1.2 misho 124477: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 124478:
124479: case $ac_src in
124480: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124481: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124482: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124483: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124484: esac
124485:
124486: cat >>Makefile.objects<<EOF
124487: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124488: $ac_comp
124489: EOF
124490: done
124491:
124492:
1.1.1.3 ! misho 124493: EXT_STATIC="$EXT_STATIC xml"
! 124494: ;;
! 124495: *)
1.1 misho 124496:
124497:
124498: case ext/xml in
124499: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124500: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124501: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124502: esac
124503:
124504:
124505:
124506: b_c_pre=$php_c_pre
124507: b_cxx_pre=$php_cxx_pre
124508: b_c_meta=$php_c_meta
124509: b_cxx_meta=$php_cxx_meta
124510: b_c_post=$php_c_post
124511: b_cxx_post=$php_cxx_post
124512: b_lo=$php_lo
124513:
124514:
124515: old_IFS=$IFS
124516: for ac_src in xml.c $xml_extra_sources; do
124517:
124518: IFS=.
124519: set $ac_src
124520: ac_obj=$1
124521: IFS=$old_IFS
124522:
1.1.1.2 misho 124523: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 124524:
124525: case $ac_src in
124526: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124527: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124528: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124529: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124530: esac
124531:
124532: cat >>Makefile.objects<<EOF
124533: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124534: $ac_comp
124535: EOF
124536: done
124537:
124538:
1.1.1.3 ! misho 124539: ;;
! 124540: esac
1.1 misho 124541: EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
124542: fi
124543:
124544:
124545: BUILD_DIR="$BUILD_DIR $ext_builddir"
124546:
124547:
124548:
124549: if test "$ext_builddir" = "."; then
124550: PHP_PECL_EXTENSION=xml
124551:
124552: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
124553:
124554: fi
124555:
124556:
124557: PHP_VAR_SUBST="$PHP_VAR_SUBST XML_SHARED_LIBADD"
124558:
124559:
124560:
124561: for header_file in ext/xml/; do
124562:
124563:
124564: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
124565:
124566: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
124567: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124568: eval "INSTALLHEADERS$unique=set"
124569:
124570: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
124571:
124572: fi
124573:
124574: done
124575:
124576:
124577:
1.1.1.3 ! misho 124578: cat >>confdefs.h <<\_ACEOF
! 124579: #define HAVE_XML 1
! 124580: _ACEOF
1.1 misho 124581:
124582: fi
124583:
124584:
124585:
124586: php_enable_xmlreader=yes
124587:
1.1.1.3 ! misho 124588: { echo "$as_me:$LINENO: checking whether to enable XMLReader support" >&5
! 124589: echo $ECHO_N "checking whether to enable XMLReader support... $ECHO_C" >&6; }
1.1 misho 124590: # Check whether --enable-xmlreader was given.
1.1.1.3 ! misho 124591: if test "${enable_xmlreader+set}" = set; then
1.1 misho 124592: enableval=$enable_xmlreader; PHP_XMLREADER=$enableval
124593: else
124594:
124595: PHP_XMLREADER=yes
124596: test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL
124597:
124598: fi
124599:
124600:
124601:
124602: ext_output="yes, shared"
124603: ext_shared=yes
124604: case $PHP_XMLREADER in
124605: shared,*)
124606: PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'`
124607: ;;
124608: shared)
124609: PHP_XMLREADER=yes
124610: ;;
124611: no)
124612: ext_output=no
124613: ext_shared=no
124614: ;;
124615: *)
124616: ext_output=yes
124617: ext_shared=no
124618: ;;
124619: esac
124620:
124621:
124622:
1.1.1.3 ! misho 124623: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 124624: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 124625:
124626:
124627:
124628:
124629: if test -z "$PHP_LIBXML_DIR"; then
124630:
124631: php_with_libxml_dir=no
124632:
1.1.1.3 ! misho 124633: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 124634: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 124635:
124636: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 124637: if test "${with_libxml_dir+set}" = set; then
1.1 misho 124638: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
124639: else
124640:
124641: PHP_LIBXML_DIR=no
124642:
124643:
124644: fi
124645:
124646:
124647: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 124648: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 124649: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 124650:
124651:
124652:
124653: fi
124654:
124655: if test "$PHP_XMLREADER" != "no"; then
124656:
124657: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 124658: { { echo "$as_me:$LINENO: error: XMLReader extension requires LIBXML extension, add --enable-libxml" >&5
! 124659: echo "$as_me: error: XMLReader extension requires LIBXML extension, add --enable-libxml" >&2;}
! 124660: { (exit 1); exit 1; }; }
1.1 misho 124661: fi
124662:
124663:
1.1.1.3 ! misho 124664: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 124665: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 124666: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 124667: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 124668: else
124669:
124670: for i in $PHP_LIBXML_DIR /usr/local /usr; do
124671: if test -x "$i/bin/xml2-config"; then
124672: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
124673: break
124674: fi
124675: done
124676:
124677: fi
1.1.1.3 ! misho 124678: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 124679: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 124680:
124681: if test -x "$ac_cv_php_xml2_config_path"; then
124682: XML2_CONFIG="$ac_cv_php_xml2_config_path"
124683: libxml_full_version=`$XML2_CONFIG --version`
124684: ac_IFS=$IFS
124685: IFS="."
124686: set $libxml_full_version
124687: IFS=$ac_IFS
124688: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
124689: if test "$LIBXML_VERSION" -ge "2006011"; then
124690: LIBXML_LIBS=`$XML2_CONFIG --libs`
124691: LIBXML_INCS=`$XML2_CONFIG --cflags`
124692:
124693: for ac_i in $LIBXML_LIBS; do
124694: case $ac_i in
124695: -pthread)
124696: if test "$ext_shared" = "yes"; then
124697: XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread"
124698: else
124699:
124700:
124701: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
124702:
124703: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
124704: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124705: eval "EXTRA_LDFLAGS$unique=set"
124706: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
124707: fi
124708:
124709: fi
124710: ;;
124711: -l*)
124712: ac_ii=`echo $ac_i|cut -c 3-`
124713:
124714:
124715: case $ac_ii in
124716: c|c_r|pthread*) ;;
124717: *)
124718: if test "$ext_shared" = "yes"; then
124719: XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii"
124720: else
124721:
124722:
124723: case $ac_ii in
124724: c|c_r|pthread*) ;;
124725: *)
124726: LIBS="$LIBS -l$ac_ii"
124727: ;;
124728: esac
124729:
124730:
124731: fi
124732: ;;
124733: esac
124734:
124735:
124736: ;;
124737: -L*)
124738: ac_ii=`echo $ac_i|cut -c 3-`
124739:
124740: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
124741:
124742: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
124743: ai_p=$ac_ii
124744: else
124745:
124746: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
124747:
124748: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124749: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
124750: fi
124751:
124752:
124753: if test "$ext_shared" = "yes"; then
124754: XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD"
124755: test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD"
124756: else
124757:
124758:
124759:
124760: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124761:
124762: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
124763: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124764: eval "LIBPATH$unique=set"
124765:
124766: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
124767: LDFLAGS="$LDFLAGS -L$ai_p"
124768: PHP_RPATHS="$PHP_RPATHS $ai_p"
124769:
124770: fi
124771:
124772:
124773: fi
124774:
124775: fi
124776:
124777: ;;
124778: esac
124779: done
124780:
124781:
124782: for ac_i in $LIBXML_INCS; do
124783: case $ac_i in
124784: -I*)
124785: ac_ii=`echo $ac_i|cut -c 3-`
124786:
124787: if test "$ac_ii" != "/usr/include"; then
124788:
124789: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
124790: ai_p=$ac_ii
124791: else
124792:
124793: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
124794:
124795: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124796: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
124797: fi
124798:
124799:
124800:
124801: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124802:
124803: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
124804: if test -n "$unique" && test "`eval $cmd`" = "" ; then
124805: eval "INCLUDEPATH$unique=set"
124806:
124807: if test ""; then
124808: INCLUDES="-I$ai_p $INCLUDES"
124809: else
124810: INCLUDES="$INCLUDES -I$ai_p"
124811: fi
124812:
124813: fi
124814:
124815: fi
124816:
124817: ;;
124818: esac
124819: done
124820:
124821:
1.1.1.3 ! misho 124822: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 124823: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 124824: if test "${php_cv_libxml_build_works+set}" = set; then
! 124825: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 124826: else
124827:
124828:
124829: old_LIBS=$LIBS
124830: LIBS="
124831: $XMLREADER_SHARED_LIBADD
124832: $LIBS"
1.1.1.3 ! misho 124833: if test "$cross_compiling" = yes; then
1.1 misho 124834:
124835: LIBS=$old_LIBS
124836:
124837: else
1.1.1.3 ! misho 124838: cat >conftest.$ac_ext <<_ACEOF
! 124839: /* confdefs.h. */
! 124840: _ACEOF
! 124841: cat confdefs.h >>conftest.$ac_ext
! 124842: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 124843: /* end confdefs.h. */
124844:
124845:
124846: char xmlInitParser();
124847: int main() {
124848: xmlInitParser();
124849: return 0;
124850: }
124851:
124852: _ACEOF
1.1.1.3 ! misho 124853: rm -f conftest$ac_exeext
! 124854: if { (ac_try="$ac_link"
! 124855: case "(($ac_try" in
! 124856: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 124857: *) ac_try_echo=$ac_try;;
! 124858: esac
! 124859: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 124860: (eval "$ac_link") 2>&5
! 124861: ac_status=$?
! 124862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 124863: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 124864: { (case "(($ac_try" in
! 124865: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 124866: *) ac_try_echo=$ac_try;;
! 124867: esac
! 124868: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 124869: (eval "$ac_try") 2>&5
! 124870: ac_status=$?
! 124871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 124872: (exit $ac_status); }; }; then
1.1 misho 124873:
124874: LIBS=$old_LIBS
124875:
124876: php_cv_libxml_build_works=yes
124877:
124878:
124879: else
1.1.1.3 ! misho 124880: echo "$as_me: program exited with status $ac_status" >&5
! 124881: echo "$as_me: failed program was:" >&5
! 124882: sed 's/^/| /' conftest.$ac_ext >&5
! 124883:
! 124884: ( exit $ac_status )
1.1 misho 124885:
124886: LIBS=$old_LIBS
124887:
1.1.1.3 ! misho 124888: { echo "$as_me:$LINENO: result: no" >&5
! 124889: echo "${ECHO_T}no" >&6; }
! 124890: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 124891: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 124892: { (exit 1); exit 1; }; }
1.1 misho 124893:
124894:
124895: fi
1.1.1.3 ! misho 124896: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 124897: fi
124898:
124899:
124900:
1.1.1.3 ! misho 124901:
1.1 misho 124902: fi
1.1.1.3 ! misho 124903: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 124904: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 124905: if test "$php_cv_libxml_build_works" = "yes"; then
124906:
1.1.1.3 ! misho 124907: cat >>confdefs.h <<\_ACEOF
! 124908: #define HAVE_LIBXML 1
! 124909: _ACEOF
1.1 misho 124910:
124911: fi
124912:
124913:
1.1.1.3 ! misho 124914: cat >>confdefs.h <<\_ACEOF
! 124915: #define HAVE_XMLREADER 1
! 124916: _ACEOF
1.1 misho 124917:
124918:
124919: ext_builddir=ext/xmlreader
124920: ext_srcdir=$abs_srcdir/ext/xmlreader
124921:
124922: ac_extra=
124923:
124924: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
124925: PHP_XMLREADER_SHARED=no
124926:
124927:
124928: case ext/xmlreader in
124929: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124930: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124931: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124932: esac
124933:
124934:
124935:
124936: b_c_pre=$php_c_pre
124937: b_cxx_pre=$php_cxx_pre
124938: b_c_meta=$php_c_meta
124939: b_cxx_meta=$php_cxx_meta
124940: b_c_post=$php_c_post
124941: b_cxx_post=$php_cxx_post
124942: b_lo=$php_lo
124943:
124944:
124945: old_IFS=$IFS
124946: for ac_src in php_xmlreader.c; do
124947:
124948: IFS=.
124949: set $ac_src
124950: ac_obj=$1
124951: IFS=$old_IFS
124952:
124953: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
124954:
124955: case $ac_src in
124956: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124957: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124958: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124959: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124960: esac
124961:
124962: cat >>Makefile.objects<<EOF
124963: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124964: $ac_comp
124965: EOF
124966: done
124967:
124968:
124969: EXT_STATIC="$EXT_STATIC xmlreader"
124970: if test "$ext_shared" != "nocli"; then
124971: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
124972: fi
124973: else
124974: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
124975: PHP_XMLREADER_SHARED=yes
124976:
124977: case ext/xmlreader in
124978: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124979: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124980: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124981: esac
124982:
124983:
124984:
124985: b_c_pre=$shared_c_pre
124986: b_cxx_pre=$shared_cxx_pre
124987: b_c_meta=$shared_c_meta
124988: b_cxx_meta=$shared_cxx_meta
124989: b_c_post=$shared_c_post
124990: b_cxx_post=$shared_cxx_post
124991: b_lo=$shared_lo
124992:
124993:
124994: old_IFS=$IFS
124995: for ac_src in php_xmlreader.c; do
124996:
124997: IFS=.
124998: set $ac_src
124999: ac_obj=$1
125000: IFS=$old_IFS
125001:
125002: shared_objects_xmlreader="$shared_objects_xmlreader $ac_bdir$ac_obj.lo"
125003:
125004: case $ac_src in
125005: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125006: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125007: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125008: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125009: esac
125010:
125011: cat >>Makefile.objects<<EOF
125012: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125013: $ac_comp
125014: EOF
125015: done
125016:
125017: case $host_alias in
125018: *netware*)
125019:
125020: install_modules="install-modules"
125021:
125022: case $host_alias in
125023: *aix*)
125024: suffix=so
125025: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlreader.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(PHPXMLREADER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlreader.so '$ext_builddir'/phpxmlreader.so'
125026: ;;
125027: *netware*)
125028: suffix=nlm
125029: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) -L$(top_builddir)/netware -lphp5lib $(XMLREADER_SHARED_LIBADD)'
125030: ;;
125031: *)
125032: suffix=la
125033: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(PHPXMLREADER_SHARED_LIBADD)'
125034: ;;
125035: esac
125036:
125037: if test "x" = "xyes"; then
125038: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlreader.$suffix"
125039: else
125040: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlreader.$suffix"
125041: fi
125042:
125043: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
125044:
125045: cat >>Makefile.objects<<EOF
125046: \$(phplibdir)/phpxmlreader.$suffix: $ext_builddir/phpxmlreader.$suffix
125047: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlreader.$suffix \$(phplibdir)
125048:
125049: $ext_builddir/phpxmlreader.$suffix: \$(shared_objects_xmlreader) \$(PHPXMLREADER_SHARED_DEPENDENCIES)
125050: $link_cmd
125051:
125052: EOF
125053:
125054: ;;
125055: *)
125056:
125057: install_modules="install-modules"
125058:
125059: case $host_alias in
125060: *aix*)
125061: suffix=so
125062: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlreader.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(XMLREADER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlreader.so '$ext_builddir'/xmlreader.so'
125063: ;;
125064: *netware*)
125065: suffix=nlm
125066: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) -L$(top_builddir)/netware -lphp5lib $(READER_SHARED_LIBADD)'
125067: ;;
125068: *)
125069: suffix=la
125070: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(XMLREADER_SHARED_LIBADD)'
125071: ;;
125072: esac
125073:
125074: if test "x" = "xyes"; then
125075: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlreader.$suffix"
125076: else
125077: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlreader.$suffix"
125078: fi
125079:
125080: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
125081:
125082: cat >>Makefile.objects<<EOF
125083: \$(phplibdir)/xmlreader.$suffix: $ext_builddir/xmlreader.$suffix
125084: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlreader.$suffix \$(phplibdir)
125085:
125086: $ext_builddir/xmlreader.$suffix: \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_DEPENDENCIES)
125087: $link_cmd
125088:
125089: EOF
125090:
125091: ;;
125092: esac
125093:
125094: cat >>confdefs.h <<_ACEOF
125095: #define COMPILE_DL_XMLREADER 1
125096: _ACEOF
125097:
125098: fi
125099: fi
125100:
125101: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
125102: PHP_XMLREADER_SHARED=no
1.1.1.3 ! misho 125103: case "$PHP_SAPI" in
! 125104: cgi|embed)
1.1 misho 125105:
125106:
125107: case ext/xmlreader in
125108: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125109: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125110: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125111: esac
125112:
125113:
125114:
125115: b_c_pre=$php_c_pre
125116: b_cxx_pre=$php_cxx_pre
125117: b_c_meta=$php_c_meta
125118: b_cxx_meta=$php_cxx_meta
125119: b_c_post=$php_c_post
125120: b_cxx_post=$php_cxx_post
125121: b_lo=$php_lo
125122:
125123:
125124: old_IFS=$IFS
125125: for ac_src in php_xmlreader.c; do
125126:
125127: IFS=.
125128: set $ac_src
125129: ac_obj=$1
125130: IFS=$old_IFS
125131:
1.1.1.2 misho 125132: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 125133:
125134: case $ac_src in
125135: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125136: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125137: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125138: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125139: esac
125140:
125141: cat >>Makefile.objects<<EOF
125142: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125143: $ac_comp
125144: EOF
125145: done
125146:
125147:
1.1.1.3 ! misho 125148: EXT_STATIC="$EXT_STATIC xmlreader"
! 125149: ;;
! 125150: *)
1.1 misho 125151:
125152:
125153: case ext/xmlreader in
125154: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125155: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125156: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125157: esac
125158:
125159:
125160:
125161: b_c_pre=$php_c_pre
125162: b_cxx_pre=$php_cxx_pre
125163: b_c_meta=$php_c_meta
125164: b_cxx_meta=$php_cxx_meta
125165: b_c_post=$php_c_post
125166: b_cxx_post=$php_cxx_post
125167: b_lo=$php_lo
125168:
125169:
125170: old_IFS=$IFS
125171: for ac_src in php_xmlreader.c; do
125172:
125173: IFS=.
125174: set $ac_src
125175: ac_obj=$1
125176: IFS=$old_IFS
125177:
1.1.1.2 misho 125178: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 125179:
125180: case $ac_src in
125181: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125182: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125183: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125184: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125185: esac
125186:
125187: cat >>Makefile.objects<<EOF
125188: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125189: $ac_comp
125190: EOF
125191: done
125192:
125193:
1.1.1.3 ! misho 125194: ;;
! 125195: esac
1.1 misho 125196: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
125197: fi
125198:
125199:
125200: BUILD_DIR="$BUILD_DIR $ext_builddir"
125201:
125202:
125203:
125204: if test "$ext_builddir" = "."; then
125205: PHP_PECL_EXTENSION=xmlreader
125206:
125207: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
125208:
125209: fi
125210:
125211:
125212: am_i_shared=$PHP_XMLREADER_SHARED
125213: is_it_shared=$PHP_DOM_SHARED
125214: is_it_enabled=$PHP_DOM
125215: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 125216: { { echo "$as_me:$LINENO: error:
! 125217: You've configured extension xmlreader to build statically, but it
! 125218: depends on extension dom, which you've configured to build shared.
! 125219: You either need to build xmlreader shared or build dom statically for the
! 125220: build to be successful.
! 125221: " >&5
! 125222: echo "$as_me: error:
1.1 misho 125223: You've configured extension xmlreader to build statically, but it
125224: depends on extension dom, which you've configured to build shared.
125225: You either need to build xmlreader shared or build dom statically for the
125226: build to be successful.
1.1.1.3 ! misho 125227: " >&2;}
! 125228: { (exit 1); exit 1; }; }
! 125229: fi
! 125230: if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
! 125231: { { echo "$as_me:$LINENO: error:
! 125232: You've configured extension xmlreader, which depends on extension dom,
! 125233: but you've either not enabled dom, or have disabled it.
! 125234: " >&5
! 125235: echo "$as_me: error:
! 125236: You've configured extension xmlreader, which depends on extension dom,
! 125237: but you've either not enabled dom, or have disabled it.
! 125238: " >&2;}
! 125239: { (exit 1); exit 1; }; }
1.1 misho 125240: fi
125241:
125242:
125243: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLREADER_SHARED_LIBADD"
125244:
125245:
125246: else
1.1.1.3 ! misho 125247: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 125248: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 125249: { (exit 1); exit 1; }; }
1.1 misho 125250: fi
125251: else
1.1.1.3 ! misho 125252: { { echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
! 125253: echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
! 125254: { (exit 1); exit 1; }; }
1.1 misho 125255:
125256: fi
125257:
125258: fi
125259:
125260:
125261: # Local macros for automake & autoconf
125262:
125263:
125264:
125265:
125266:
125267:
125268:
125269:
125270:
125271:
125272:
125273:
125274:
125275: php_with_xmlrpc=no
125276:
1.1.1.3 ! misho 125277: { echo "$as_me:$LINENO: checking for XMLRPC-EPI support" >&5
! 125278: echo $ECHO_N "checking for XMLRPC-EPI support... $ECHO_C" >&6; }
1.1 misho 125279:
125280: # Check whether --with-xmlrpc was given.
1.1.1.3 ! misho 125281: if test "${with_xmlrpc+set}" = set; then
1.1 misho 125282: withval=$with_xmlrpc; PHP_XMLRPC=$withval
125283: else
125284:
125285: PHP_XMLRPC=no
125286: test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL
125287:
125288: fi
125289:
125290:
125291:
125292: ext_output="yes, shared"
125293: ext_shared=yes
125294: case $PHP_XMLRPC in
125295: shared,*)
125296: PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'`
125297: ;;
125298: shared)
125299: PHP_XMLRPC=yes
125300: ;;
125301: no)
125302: ext_output=no
125303: ext_shared=no
125304: ;;
125305: *)
125306: ext_output=yes
125307: ext_shared=no
125308: ;;
125309: esac
125310:
125311:
125312:
1.1.1.3 ! misho 125313: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 125314: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 125315:
125316:
125317:
125318:
125319: if test -z "$PHP_LIBXML_DIR"; then
125320:
125321: php_with_libxml_dir=no
125322:
1.1.1.3 ! misho 125323: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 125324: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 125325:
125326: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 125327: if test "${with_libxml_dir+set}" = set; then
1.1 misho 125328: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
125329: else
125330:
125331: PHP_LIBXML_DIR=no
125332:
125333:
125334: fi
125335:
125336:
125337: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 125338: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 125339: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 125340:
125341:
125342:
125343: fi
125344:
125345:
125346: php_with_libexpat_dir=no
125347:
1.1.1.3 ! misho 125348: { echo "$as_me:$LINENO: checking libexpat dir for XMLRPC-EPI" >&5
! 125349: echo $ECHO_N "checking libexpat dir for XMLRPC-EPI... $ECHO_C" >&6; }
1.1 misho 125350:
125351: # Check whether --with-libexpat-dir was given.
1.1.1.3 ! misho 125352: if test "${with_libexpat_dir+set}" = set; then
1.1 misho 125353: withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
125354: else
125355:
125356: PHP_LIBEXPAT_DIR=no
125357:
125358:
125359: fi
125360:
125361:
125362: ext_output=$PHP_LIBEXPAT_DIR
1.1.1.3 ! misho 125363: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 125364: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 125365:
125366:
125367:
125368:
125369:
125370: php_with_iconv_dir=no
125371:
1.1.1.3 ! misho 125372: { echo "$as_me:$LINENO: checking iconv dir for XMLRPC-EPI" >&5
! 125373: echo $ECHO_N "checking iconv dir for XMLRPC-EPI... $ECHO_C" >&6; }
1.1 misho 125374:
125375: # Check whether --with-iconv-dir was given.
1.1.1.3 ! misho 125376: if test "${with_iconv_dir+set}" = set; then
1.1 misho 125377: withval=$with_iconv_dir; PHP_ICONV_DIR=$withval
125378: else
125379:
125380: PHP_ICONV_DIR=no
125381:
125382:
125383: fi
125384:
125385:
125386: ext_output=$PHP_ICONV_DIR
1.1.1.3 ! misho 125387: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 125388: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 125389:
125390:
125391:
125392:
125393: if test "$PHP_XMLRPC" != "no"; then
125394:
125395:
125396: am_i_shared=$PHP_XMLRPC_SHARED
125397: is_it_shared=$PHP_LIBXML_SHARED
125398: is_it_enabled=$PHP_LIBXML
125399: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 125400: { { echo "$as_me:$LINENO: error:
! 125401: You've configured extension xmlrpc to build statically, but it
! 125402: depends on extension libxml, which you've configured to build shared.
! 125403: You either need to build xmlrpc shared or build libxml statically for the
! 125404: build to be successful.
! 125405: " >&5
! 125406: echo "$as_me: error:
1.1 misho 125407: You've configured extension xmlrpc to build statically, but it
125408: depends on extension libxml, which you've configured to build shared.
125409: You either need to build xmlrpc shared or build libxml statically for the
125410: build to be successful.
1.1.1.3 ! misho 125411: " >&2;}
! 125412: { (exit 1); exit 1; }; }
! 125413: fi
! 125414: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 125415: { { echo "$as_me:$LINENO: error:
! 125416: You've configured extension xmlrpc, which depends on extension libxml,
! 125417: but you've either not enabled libxml, or have disabled it.
! 125418: " >&5
! 125419: echo "$as_me: error:
! 125420: You've configured extension xmlrpc, which depends on extension libxml,
! 125421: but you've either not enabled libxml, or have disabled it.
! 125422: " >&2;}
! 125423: { (exit 1); exit 1; }; }
1.1 misho 125424: fi
125425:
125426:
125427: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
125428:
125429:
1.1.1.3 ! misho 125430: cat >>confdefs.h <<\_ACEOF
! 125431: #define HAVE_XMLRPC 1
! 125432: _ACEOF
1.1 misho 125433:
125434:
125435: if test "$PHP_LIBEXPAT_DIR" = "no"; then
125436:
125437: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 125438: { { echo "$as_me:$LINENO: error: XML-RPC extension requires LIBXML extension, add --enable-libxml" >&5
! 125439: echo "$as_me: error: XML-RPC extension requires LIBXML extension, add --enable-libxml" >&2;}
! 125440: { (exit 1); exit 1; }; }
1.1 misho 125441: fi
125442:
125443:
1.1.1.3 ! misho 125444: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 125445: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 125446: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 125447: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 125448: else
125449:
125450: for i in $PHP_LIBXML_DIR /usr/local /usr; do
125451: if test -x "$i/bin/xml2-config"; then
125452: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
125453: break
125454: fi
125455: done
125456:
125457: fi
1.1.1.3 ! misho 125458: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 125459: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 125460:
125461: if test -x "$ac_cv_php_xml2_config_path"; then
125462: XML2_CONFIG="$ac_cv_php_xml2_config_path"
125463: libxml_full_version=`$XML2_CONFIG --version`
125464: ac_IFS=$IFS
125465: IFS="."
125466: set $libxml_full_version
125467: IFS=$ac_IFS
125468: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
125469: if test "$LIBXML_VERSION" -ge "2006011"; then
125470: LIBXML_LIBS=`$XML2_CONFIG --libs`
125471: LIBXML_INCS=`$XML2_CONFIG --cflags`
125472:
125473: for ac_i in $LIBXML_LIBS; do
125474: case $ac_i in
125475: -pthread)
125476: if test "$ext_shared" = "yes"; then
125477: XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread"
125478: else
125479:
125480:
125481: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
125482:
125483: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
125484: if test -n "$unique" && test "`eval $cmd`" = "" ; then
125485: eval "EXTRA_LDFLAGS$unique=set"
125486: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
125487: fi
125488:
125489: fi
125490: ;;
125491: -l*)
125492: ac_ii=`echo $ac_i|cut -c 3-`
125493:
125494:
125495: case $ac_ii in
125496: c|c_r|pthread*) ;;
125497: *)
125498: if test "$ext_shared" = "yes"; then
125499: XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii"
125500: else
125501:
125502:
125503: case $ac_ii in
125504: c|c_r|pthread*) ;;
125505: *)
125506: LIBS="$LIBS -l$ac_ii"
125507: ;;
125508: esac
125509:
125510:
125511: fi
125512: ;;
125513: esac
125514:
125515:
125516: ;;
125517: -L*)
125518: ac_ii=`echo $ac_i|cut -c 3-`
125519:
125520: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
125521:
125522: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
125523: ai_p=$ac_ii
125524: else
125525:
125526: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
125527:
125528: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125529: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
125530: fi
125531:
125532:
125533: if test "$ext_shared" = "yes"; then
125534: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
125535: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
125536: else
125537:
125538:
125539:
125540: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125541:
125542: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
125543: if test -n "$unique" && test "`eval $cmd`" = "" ; then
125544: eval "LIBPATH$unique=set"
125545:
125546: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
125547: LDFLAGS="$LDFLAGS -L$ai_p"
125548: PHP_RPATHS="$PHP_RPATHS $ai_p"
125549:
125550: fi
125551:
125552:
125553: fi
125554:
125555: fi
125556:
125557: ;;
125558: esac
125559: done
125560:
125561:
125562: for ac_i in $LIBXML_INCS; do
125563: case $ac_i in
125564: -I*)
125565: ac_ii=`echo $ac_i|cut -c 3-`
125566:
125567: if test "$ac_ii" != "/usr/include"; then
125568:
125569: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
125570: ai_p=$ac_ii
125571: else
125572:
125573: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
125574:
125575: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125576: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
125577: fi
125578:
125579:
125580:
125581: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125582:
125583: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
125584: if test -n "$unique" && test "`eval $cmd`" = "" ; then
125585: eval "INCLUDEPATH$unique=set"
125586:
125587: if test ""; then
125588: INCLUDES="-I$ai_p $INCLUDES"
125589: else
125590: INCLUDES="$INCLUDES -I$ai_p"
125591: fi
125592:
125593: fi
125594:
125595: fi
125596:
125597: ;;
125598: esac
125599: done
125600:
125601:
1.1.1.3 ! misho 125602: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 125603: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 125604: if test "${php_cv_libxml_build_works+set}" = set; then
! 125605: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 125606: else
125607:
125608:
125609: old_LIBS=$LIBS
125610: LIBS="
125611: $XMLRPC_SHARED_LIBADD
125612: $LIBS"
1.1.1.3 ! misho 125613: if test "$cross_compiling" = yes; then
1.1 misho 125614:
125615: LIBS=$old_LIBS
125616:
125617: else
1.1.1.3 ! misho 125618: cat >conftest.$ac_ext <<_ACEOF
! 125619: /* confdefs.h. */
! 125620: _ACEOF
! 125621: cat confdefs.h >>conftest.$ac_ext
! 125622: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 125623: /* end confdefs.h. */
125624:
125625:
125626: char xmlInitParser();
125627: int main() {
125628: xmlInitParser();
125629: return 0;
125630: }
125631:
125632: _ACEOF
1.1.1.3 ! misho 125633: rm -f conftest$ac_exeext
! 125634: if { (ac_try="$ac_link"
! 125635: case "(($ac_try" in
! 125636: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 125637: *) ac_try_echo=$ac_try;;
! 125638: esac
! 125639: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 125640: (eval "$ac_link") 2>&5
! 125641: ac_status=$?
! 125642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 125643: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 125644: { (case "(($ac_try" in
! 125645: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 125646: *) ac_try_echo=$ac_try;;
! 125647: esac
! 125648: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 125649: (eval "$ac_try") 2>&5
! 125650: ac_status=$?
! 125651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 125652: (exit $ac_status); }; }; then
1.1 misho 125653:
125654: LIBS=$old_LIBS
125655:
125656: php_cv_libxml_build_works=yes
125657:
125658:
125659: else
1.1.1.3 ! misho 125660: echo "$as_me: program exited with status $ac_status" >&5
! 125661: echo "$as_me: failed program was:" >&5
! 125662: sed 's/^/| /' conftest.$ac_ext >&5
! 125663:
! 125664: ( exit $ac_status )
1.1 misho 125665:
125666: LIBS=$old_LIBS
125667:
1.1.1.3 ! misho 125668: { echo "$as_me:$LINENO: result: no" >&5
! 125669: echo "${ECHO_T}no" >&6; }
! 125670: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 125671: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 125672: { (exit 1); exit 1; }; }
1.1 misho 125673:
125674:
125675: fi
1.1.1.3 ! misho 125676: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 125677: fi
125678:
125679:
125680:
1.1.1.3 ! misho 125681:
1.1 misho 125682: fi
1.1.1.3 ! misho 125683: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 125684: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 125685: if test "$php_cv_libxml_build_works" = "yes"; then
125686:
1.1.1.3 ! misho 125687: cat >>confdefs.h <<\_ACEOF
! 125688: #define HAVE_LIBXML 1
! 125689: _ACEOF
1.1 misho 125690:
125691: fi
125692:
125693: if test "$PHP_XML" = "no"; then
125694:
125695:
125696: case ext/xml in
125697: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125698: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125699: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125700: esac
125701:
125702:
125703:
125704: b_c_pre=$php_c_pre
125705: b_cxx_pre=$php_cxx_pre
125706: b_c_meta=$php_c_meta
125707: b_cxx_meta=$php_cxx_meta
125708: b_c_post=$php_c_post
125709: b_cxx_post=$php_cxx_post
125710: b_lo=$php_lo
125711:
125712:
125713: old_IFS=$IFS
125714: for ac_src in compat.c; do
125715:
125716: IFS=.
125717: set $ac_src
125718: ac_obj=$1
125719: IFS=$old_IFS
125720:
125721: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
125722:
125723: case $ac_src in
125724: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125725: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125726: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125727: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125728: esac
125729:
125730: cat >>Makefile.objects<<EOF
125731: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125732: $ac_comp
125733: EOF
125734: done
125735:
125736:
125737:
125738:
125739: BUILD_DIR="$BUILD_DIR ext/xml"
125740:
125741:
125742: fi
125743:
125744: else
1.1.1.3 ! misho 125745: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 125746: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 125747: { (exit 1); exit 1; }; }
1.1 misho 125748: fi
125749: else
1.1.1.3 ! misho 125750: { { echo "$as_me:$LINENO: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&5
! 125751: echo "$as_me: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&2;}
! 125752: { (exit 1); exit 1; }; }
1.1 misho 125753:
125754: fi
125755:
125756: else
125757: testval=no
125758: for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
125759: if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
125760:
1.1.1.3 ! misho 125761: cat >>confdefs.h <<\_ACEOF
! 125762: #define HAVE_LIBEXPAT 1
! 125763: _ACEOF
1.1 misho 125764:
125765:
125766:
125767: if test "$ext_shared" = "yes"; then
125768: XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD"
125769: if test -n "$i/$PHP_LIBDIR"; then
125770:
125771: if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
125772:
125773: if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
125774: ai_p=$i/$PHP_LIBDIR
125775: else
125776:
125777: ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
125778:
125779: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125780: ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
125781: fi
125782:
125783:
125784: if test "$ext_shared" = "yes"; then
125785: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
125786: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
125787: else
125788:
125789:
125790:
125791: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125792:
125793: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
125794: if test -n "$unique" && test "`eval $cmd`" = "" ; then
125795: eval "LIBPATH$unique=set"
125796:
125797: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
125798: LDFLAGS="$LDFLAGS -L$ai_p"
125799: PHP_RPATHS="$PHP_RPATHS $ai_p"
125800:
125801: fi
125802:
125803:
125804: fi
125805:
125806: fi
125807:
125808: fi
125809: else
125810:
125811:
125812: if test -n "$i/$PHP_LIBDIR"; then
125813:
125814: if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
125815:
125816: if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
125817: ai_p=$i/$PHP_LIBDIR
125818: else
125819:
125820: ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
125821:
125822: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125823: ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
125824: fi
125825:
125826:
125827:
125828:
125829:
125830: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125831:
125832: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
125833: if test -n "$unique" && test "`eval $cmd`" = "" ; then
125834: eval "LIBPATH$unique=set"
125835:
125836: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
125837: LDFLAGS="$LDFLAGS -L$ai_p"
125838: PHP_RPATHS="$PHP_RPATHS $ai_p"
125839:
125840: fi
125841:
125842:
125843:
125844: fi
125845:
125846: fi
125847:
125848:
125849: case expat in
125850: c|c_r|pthread*) ;;
125851: *)
125852: LIBS="-lexpat $LIBS"
125853: ;;
125854: esac
125855:
125856:
125857:
125858:
125859: fi
125860:
125861:
125862:
125863: if test "$i/include" != "/usr/include"; then
125864:
125865: if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then
125866: ai_p=$i/include
125867: else
125868:
125869: ep_dir="`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'`"
125870:
125871: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125872: ai_p="$ep_realdir/`basename \"$i/include\"`"
125873: fi
125874:
125875:
125876:
125877: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125878:
125879: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
125880: if test -n "$unique" && test "`eval $cmd`" = "" ; then
125881: eval "INCLUDEPATH$unique=set"
125882:
125883: if test ""; then
125884: INCLUDES="-I$ai_p $INCLUDES"
125885: else
125886: INCLUDES="$INCLUDES -I$ai_p"
125887: fi
125888:
125889: fi
125890:
125891: fi
125892:
125893: testval=yes
125894: break
125895: fi
125896: done
125897:
1.1.1.3 ! misho 125898: if test "$testval" = "no"; then
! 125899: { { echo "$as_me:$LINENO: error: XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" >&5
! 125900: echo "$as_me: error: XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" >&2;}
! 125901: { (exit 1); exit 1; }; }
! 125902: fi
! 125903: fi
! 125904:
! 125905: if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
! 125906:
! 125907: if test "$PHP_ICONV_DIR" != "no"; then
! 125908: PHP_ICONV=$PHP_ICONV_DIR
! 125909: fi
! 125910:
! 125911: if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
! 125912: PHP_ICONV=yes
! 125913: fi
! 125914:
! 125915:
! 125916: found_iconv=no
! 125917: unset ICONV_DIR
! 125918:
! 125919: # Create the directories for a VPATH build:
! 125920: $php_shtool mkdir -p ext/iconv
! 125921:
! 125922: echo > ext/iconv/php_have_bsd_iconv.h
! 125923: echo > ext/iconv/php_have_ibm_iconv.h
! 125924: echo > ext/iconv/php_have_glibc_iconv.h
! 125925: echo > ext/iconv/php_have_libiconv.h
! 125926: echo > ext/iconv/php_have_iconv.h
! 125927: echo > ext/iconv/php_php_iconv_impl.h
! 125928: echo > ext/iconv/php_iconv_aliased_libiconv.h
! 125929: echo > ext/iconv/php_php_iconv_h_path.h
! 125930: echo > ext/iconv/php_iconv_supports_errno.h
! 125931:
! 125932:
! 125933: if test "$PHP_ICONV" = "yes"; then
! 125934: LIBS_save="$LIBS"
! 125935: LIBS=
! 125936: { echo "$as_me:$LINENO: checking for iconv" >&5
! 125937: echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
! 125938: if test "${ac_cv_func_iconv+set}" = set; then
! 125939: echo $ECHO_N "(cached) $ECHO_C" >&6
! 125940: else
! 125941: cat >conftest.$ac_ext <<_ACEOF
! 125942: /* confdefs.h. */
! 125943: _ACEOF
! 125944: cat confdefs.h >>conftest.$ac_ext
! 125945: cat >>conftest.$ac_ext <<_ACEOF
! 125946: /* end confdefs.h. */
! 125947: /* Define iconv to an innocuous variant, in case <limits.h> declares iconv.
! 125948: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 125949: #define iconv innocuous_iconv
! 125950:
! 125951: /* System header to define __stub macros and hopefully few prototypes,
! 125952: which can conflict with char iconv (); below.
! 125953: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 125954: <limits.h> exists even on freestanding compilers. */
! 125955:
! 125956: #ifdef __STDC__
! 125957: # include <limits.h>
! 125958: #else
! 125959: # include <assert.h>
! 125960: #endif
! 125961:
! 125962: #undef iconv
! 125963:
! 125964: /* Override any GCC internal prototype to avoid an error.
! 125965: Use char because int might match the return type of a GCC
! 125966: builtin and then its argument prototype would still apply. */
! 125967: #ifdef __cplusplus
! 125968: extern "C"
! 125969: #endif
! 125970: char iconv ();
! 125971: /* The GNU C library defines this for functions which it implements
! 125972: to always fail with ENOSYS. Some functions are actually named
! 125973: something starting with __ and the normal name is an alias. */
! 125974: #if defined __stub_iconv || defined __stub___iconv
! 125975: choke me
! 125976: #endif
! 125977:
! 125978: int
! 125979: main ()
! 125980: {
! 125981: return iconv ();
! 125982: ;
! 125983: return 0;
! 125984: }
! 125985: _ACEOF
! 125986: rm -f conftest.$ac_objext conftest$ac_exeext
! 125987: if { (ac_try="$ac_link"
! 125988: case "(($ac_try" in
! 125989: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 125990: *) ac_try_echo=$ac_try;;
! 125991: esac
! 125992: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 125993: (eval "$ac_link") 2>conftest.er1
! 125994: ac_status=$?
! 125995: grep -v '^ *+' conftest.er1 >conftest.err
! 125996: rm -f conftest.er1
! 125997: cat conftest.err >&5
! 125998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 125999: (exit $ac_status); } && {
! 126000: test -z "$ac_c_werror_flag" ||
! 126001: test ! -s conftest.err
! 126002: } && test -s conftest$ac_exeext &&
! 126003: $as_test_x conftest$ac_exeext; then
! 126004: ac_cv_func_iconv=yes
! 126005: else
! 126006: echo "$as_me: failed program was:" >&5
! 126007: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 126008:
1.1.1.3 ! misho 126009: ac_cv_func_iconv=no
! 126010: fi
1.1 misho 126011:
1.1.1.3 ! misho 126012: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 126013: conftest$ac_exeext conftest.$ac_ext
! 126014: fi
! 126015: { echo "$as_me:$LINENO: result: $ac_cv_func_iconv" >&5
! 126016: echo "${ECHO_T}$ac_cv_func_iconv" >&6; }
! 126017: if test $ac_cv_func_iconv = yes; then
1.1 misho 126018:
1.1.1.3 ! misho 126019: found_iconv=yes
1.1 misho 126020:
1.1.1.3 ! misho 126021: else
1.1 misho 126022:
1.1.1.3 ! misho 126023: { echo "$as_me:$LINENO: checking for libiconv" >&5
! 126024: echo $ECHO_N "checking for libiconv... $ECHO_C" >&6; }
! 126025: if test "${ac_cv_func_libiconv+set}" = set; then
! 126026: echo $ECHO_N "(cached) $ECHO_C" >&6
! 126027: else
! 126028: cat >conftest.$ac_ext <<_ACEOF
! 126029: /* confdefs.h. */
! 126030: _ACEOF
! 126031: cat confdefs.h >>conftest.$ac_ext
! 126032: cat >>conftest.$ac_ext <<_ACEOF
! 126033: /* end confdefs.h. */
! 126034: /* Define libiconv to an innocuous variant, in case <limits.h> declares libiconv.
! 126035: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 126036: #define libiconv innocuous_libiconv
1.1 misho 126037:
1.1.1.3 ! misho 126038: /* System header to define __stub macros and hopefully few prototypes,
! 126039: which can conflict with char libiconv (); below.
! 126040: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 126041: <limits.h> exists even on freestanding compilers. */
1.1 misho 126042:
1.1.1.3 ! misho 126043: #ifdef __STDC__
! 126044: # include <limits.h>
! 126045: #else
! 126046: # include <assert.h>
! 126047: #endif
1.1 misho 126048:
1.1.1.3 ! misho 126049: #undef libiconv
1.1 misho 126050:
1.1.1.3 ! misho 126051: /* Override any GCC internal prototype to avoid an error.
! 126052: Use char because int might match the return type of a GCC
! 126053: builtin and then its argument prototype would still apply. */
! 126054: #ifdef __cplusplus
! 126055: extern "C"
! 126056: #endif
! 126057: char libiconv ();
! 126058: /* The GNU C library defines this for functions which it implements
! 126059: to always fail with ENOSYS. Some functions are actually named
! 126060: something starting with __ and the normal name is an alias. */
! 126061: #if defined __stub_libiconv || defined __stub___libiconv
! 126062: choke me
! 126063: #endif
1.1 misho 126064:
1.1.1.3 ! misho 126065: int
! 126066: main ()
! 126067: {
! 126068: return libiconv ();
! 126069: ;
! 126070: return 0;
! 126071: }
! 126072: _ACEOF
! 126073: rm -f conftest.$ac_objext conftest$ac_exeext
! 126074: if { (ac_try="$ac_link"
! 126075: case "(($ac_try" in
! 126076: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126077: *) ac_try_echo=$ac_try;;
! 126078: esac
! 126079: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 126080: (eval "$ac_link") 2>conftest.er1
! 126081: ac_status=$?
! 126082: grep -v '^ *+' conftest.er1 >conftest.err
! 126083: rm -f conftest.er1
! 126084: cat conftest.err >&5
! 126085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 126086: (exit $ac_status); } && {
! 126087: test -z "$ac_c_werror_flag" ||
! 126088: test ! -s conftest.err
! 126089: } && test -s conftest$ac_exeext &&
! 126090: $as_test_x conftest$ac_exeext; then
! 126091: ac_cv_func_libiconv=yes
1.1 misho 126092: else
1.1.1.3 ! misho 126093: echo "$as_me: failed program was:" >&5
! 126094: sed 's/^/| /' conftest.$ac_ext >&5
! 126095:
! 126096: ac_cv_func_libiconv=no
! 126097: fi
1.1 misho 126098:
1.1.1.3 ! misho 126099: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 126100: conftest$ac_exeext conftest.$ac_ext
! 126101: fi
! 126102: { echo "$as_me:$LINENO: result: $ac_cv_func_libiconv" >&5
! 126103: echo "${ECHO_T}$ac_cv_func_libiconv" >&6; }
! 126104: if test $ac_cv_func_libiconv = yes; then
1.1 misho 126105:
126106:
126107: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
126108:
126109:
1.1.1.3 ! misho 126110: cat >>confdefs.h <<\_ACEOF
! 126111: #define HAVE_LIBICONV 1
! 126112: _ACEOF
1.1 misho 126113:
126114: found_iconv=yes
126115:
126116: fi
126117:
126118:
126119: fi
126120:
1.1.1.3 ! misho 126121: LIBS="$LIBS_save"
1.1 misho 126122: fi
126123:
126124: if test "$found_iconv" = "no"; then
126125:
126126: for i in $PHP_ICONV /usr/local /usr; do
126127: if test -r $i/include/giconv.h; then
126128:
1.1.1.3 ! misho 126129: cat >>confdefs.h <<\_ACEOF
! 126130: #define HAVE_GICONV_H 1
! 126131: _ACEOF
1.1 misho 126132:
126133: ICONV_DIR=$i
126134: iconv_lib_name=giconv
126135: break
126136: elif test -r $i/include/iconv.h; then
126137: ICONV_DIR=$i
126138: iconv_lib_name=iconv
126139: break
126140: fi
126141: done
126142:
126143: if test -z "$ICONV_DIR"; then
1.1.1.3 ! misho 126144: { { echo "$as_me:$LINENO: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&5
! 126145: echo "$as_me: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&2;}
! 126146: { (exit 1); exit 1; }; }
1.1 misho 126147: fi
126148:
126149: if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
126150: test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
126151: then
126152:
126153: save_old_LDFLAGS=$LDFLAGS
126154: ac_stuff="
126155: -L$ICONV_DIR/$PHP_LIBDIR
126156: "
126157:
126158: save_ext_shared=$ext_shared
126159: ext_shared=yes
126160:
126161: for ac_i in $ac_stuff; do
126162: case $ac_i in
126163: -pthread)
126164: if test "$ext_shared" = "yes"; then
126165: LDFLAGS="$LDFLAGS -pthread"
126166: else
126167:
126168:
126169: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
126170:
126171: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
126172: if test -n "$unique" && test "`eval $cmd`" = "" ; then
126173: eval "EXTRA_LDFLAGS$unique=set"
126174: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
126175: fi
126176:
126177: fi
126178: ;;
126179: -l*)
126180: ac_ii=`echo $ac_i|cut -c 3-`
126181:
126182:
126183: case $ac_ii in
126184: c|c_r|pthread*) ;;
126185: *)
126186: if test "$ext_shared" = "yes"; then
126187: LDFLAGS="$LDFLAGS -l$ac_ii"
126188: else
126189:
126190:
126191: case $ac_ii in
126192: c|c_r|pthread*) ;;
126193: *)
126194: LIBS="$LIBS -l$ac_ii"
126195: ;;
126196: esac
126197:
126198:
126199: fi
126200: ;;
126201: esac
126202:
126203:
126204: ;;
126205: -L*)
126206: ac_ii=`echo $ac_i|cut -c 3-`
126207:
126208: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
126209:
126210: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
126211: ai_p=$ac_ii
126212: else
126213:
126214: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
126215:
126216: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126217: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
126218: fi
126219:
126220:
126221: if test "$ext_shared" = "yes"; then
126222: LDFLAGS="-L$ai_p $LDFLAGS"
126223: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
126224: else
126225:
126226:
126227:
126228: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126229:
126230: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
126231: if test -n "$unique" && test "`eval $cmd`" = "" ; then
126232: eval "LIBPATH$unique=set"
126233:
126234: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
126235: LDFLAGS="$LDFLAGS -L$ai_p"
126236: PHP_RPATHS="$PHP_RPATHS $ai_p"
126237:
126238: fi
126239:
126240:
126241: fi
126242:
126243: fi
126244:
126245: ;;
126246: esac
126247: done
126248:
1.1.1.3 ! misho 126249: as_ac_Lib=`echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
! 126250: { echo "$as_me:$LINENO: checking for libiconv in -l$iconv_lib_name" >&5
! 126251: echo $ECHO_N "checking for libiconv in -l$iconv_lib_name... $ECHO_C" >&6; }
! 126252: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 126253: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 126254: else
126255: ac_check_lib_save_LIBS=$LIBS
126256: LIBS="-l$iconv_lib_name $LIBS"
1.1.1.3 ! misho 126257: cat >conftest.$ac_ext <<_ACEOF
! 126258: /* confdefs.h. */
! 126259: _ACEOF
! 126260: cat confdefs.h >>conftest.$ac_ext
! 126261: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 126262: /* end confdefs.h. */
126263:
126264: /* Override any GCC internal prototype to avoid an error.
126265: Use char because int might match the return type of a GCC
126266: builtin and then its argument prototype would still apply. */
126267: #ifdef __cplusplus
126268: extern "C"
126269: #endif
126270: char libiconv ();
126271: int
126272: main ()
126273: {
126274: return libiconv ();
126275: ;
126276: return 0;
126277: }
126278: _ACEOF
1.1.1.3 ! misho 126279: rm -f conftest.$ac_objext conftest$ac_exeext
! 126280: if { (ac_try="$ac_link"
! 126281: case "(($ac_try" in
! 126282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126283: *) ac_try_echo=$ac_try;;
! 126284: esac
! 126285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 126286: (eval "$ac_link") 2>conftest.er1
! 126287: ac_status=$?
! 126288: grep -v '^ *+' conftest.er1 >conftest.err
! 126289: rm -f conftest.er1
! 126290: cat conftest.err >&5
! 126291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 126292: (exit $ac_status); } && {
! 126293: test -z "$ac_c_werror_flag" ||
! 126294: test ! -s conftest.err
! 126295: } && test -s conftest$ac_exeext &&
! 126296: $as_test_x conftest$ac_exeext; then
1.1 misho 126297: eval "$as_ac_Lib=yes"
126298: else
1.1.1.3 ! misho 126299: echo "$as_me: failed program was:" >&5
! 126300: sed 's/^/| /' conftest.$ac_ext >&5
! 126301:
! 126302: eval "$as_ac_Lib=no"
1.1 misho 126303: fi
1.1.1.3 ! misho 126304:
! 126305: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 126306: conftest$ac_exeext conftest.$ac_ext
1.1 misho 126307: LIBS=$ac_check_lib_save_LIBS
126308: fi
1.1.1.3 ! misho 126309: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 126310: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 126311: echo "${ECHO_T}$ac_res" >&6; }
! 126312: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 126313:
126314: LDFLAGS=$save_old_LDFLAGS
126315: ext_shared=$save_ext_shared
126316:
126317: found_iconv=yes
126318:
126319: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
126320:
126321:
1.1.1.3 ! misho 126322: cat >>confdefs.h <<\_ACEOF
! 126323: #define HAVE_LIBICONV 1
! 126324: _ACEOF
1.1 misho 126325:
126326:
126327: echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
126328:
126329:
1.1.1.3 ! misho 126330: cat >>confdefs.h <<\_ACEOF
! 126331: #define ICONV_ALIASED_LIBICONV 1
! 126332: _ACEOF
1.1 misho 126333:
126334:
126335:
126336: else
126337:
126338: LDFLAGS=$save_old_LDFLAGS
126339: ext_shared=$save_ext_shared
126340: unset ac_cv_lib_$iconv_lib_name_libiconv
126341:
126342:
126343: save_old_LDFLAGS=$LDFLAGS
126344: ac_stuff="
126345: -L$ICONV_DIR/$PHP_LIBDIR
126346: "
126347:
126348: save_ext_shared=$ext_shared
126349: ext_shared=yes
126350:
126351: for ac_i in $ac_stuff; do
126352: case $ac_i in
126353: -pthread)
126354: if test "$ext_shared" = "yes"; then
126355: LDFLAGS="$LDFLAGS -pthread"
126356: else
126357:
126358:
126359: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
126360:
126361: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
126362: if test -n "$unique" && test "`eval $cmd`" = "" ; then
126363: eval "EXTRA_LDFLAGS$unique=set"
126364: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
126365: fi
126366:
126367: fi
126368: ;;
126369: -l*)
126370: ac_ii=`echo $ac_i|cut -c 3-`
126371:
126372:
126373: case $ac_ii in
126374: c|c_r|pthread*) ;;
126375: *)
126376: if test "$ext_shared" = "yes"; then
126377: LDFLAGS="$LDFLAGS -l$ac_ii"
126378: else
126379:
126380:
126381: case $ac_ii in
126382: c|c_r|pthread*) ;;
126383: *)
126384: LIBS="$LIBS -l$ac_ii"
126385: ;;
126386: esac
126387:
126388:
126389: fi
126390: ;;
126391: esac
126392:
126393:
126394: ;;
126395: -L*)
126396: ac_ii=`echo $ac_i|cut -c 3-`
126397:
126398: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
126399:
126400: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
126401: ai_p=$ac_ii
126402: else
126403:
126404: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
126405:
126406: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126407: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
126408: fi
126409:
126410:
126411: if test "$ext_shared" = "yes"; then
126412: LDFLAGS="-L$ai_p $LDFLAGS"
126413: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
126414: else
126415:
126416:
126417:
126418: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126419:
126420: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
126421: if test -n "$unique" && test "`eval $cmd`" = "" ; then
126422: eval "LIBPATH$unique=set"
126423:
126424: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
126425: LDFLAGS="$LDFLAGS -L$ai_p"
126426: PHP_RPATHS="$PHP_RPATHS $ai_p"
126427:
126428: fi
126429:
126430:
126431: fi
126432:
126433: fi
126434:
126435: ;;
126436: esac
126437: done
126438:
1.1.1.3 ! misho 126439: as_ac_Lib=`echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
! 126440: { echo "$as_me:$LINENO: checking for iconv in -l$iconv_lib_name" >&5
! 126441: echo $ECHO_N "checking for iconv in -l$iconv_lib_name... $ECHO_C" >&6; }
! 126442: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 126443: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 126444: else
126445: ac_check_lib_save_LIBS=$LIBS
126446: LIBS="-l$iconv_lib_name $LIBS"
1.1.1.3 ! misho 126447: cat >conftest.$ac_ext <<_ACEOF
! 126448: /* confdefs.h. */
! 126449: _ACEOF
! 126450: cat confdefs.h >>conftest.$ac_ext
! 126451: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 126452: /* end confdefs.h. */
126453:
126454: /* Override any GCC internal prototype to avoid an error.
126455: Use char because int might match the return type of a GCC
126456: builtin and then its argument prototype would still apply. */
126457: #ifdef __cplusplus
126458: extern "C"
126459: #endif
126460: char iconv ();
126461: int
126462: main ()
126463: {
126464: return iconv ();
126465: ;
126466: return 0;
126467: }
126468: _ACEOF
1.1.1.3 ! misho 126469: rm -f conftest.$ac_objext conftest$ac_exeext
! 126470: if { (ac_try="$ac_link"
! 126471: case "(($ac_try" in
! 126472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126473: *) ac_try_echo=$ac_try;;
! 126474: esac
! 126475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 126476: (eval "$ac_link") 2>conftest.er1
! 126477: ac_status=$?
! 126478: grep -v '^ *+' conftest.er1 >conftest.err
! 126479: rm -f conftest.er1
! 126480: cat conftest.err >&5
! 126481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 126482: (exit $ac_status); } && {
! 126483: test -z "$ac_c_werror_flag" ||
! 126484: test ! -s conftest.err
! 126485: } && test -s conftest$ac_exeext &&
! 126486: $as_test_x conftest$ac_exeext; then
1.1 misho 126487: eval "$as_ac_Lib=yes"
126488: else
1.1.1.3 ! misho 126489: echo "$as_me: failed program was:" >&5
! 126490: sed 's/^/| /' conftest.$ac_ext >&5
! 126491:
! 126492: eval "$as_ac_Lib=no"
1.1 misho 126493: fi
1.1.1.3 ! misho 126494:
! 126495: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 126496: conftest$ac_exeext conftest.$ac_ext
1.1 misho 126497: LIBS=$ac_check_lib_save_LIBS
126498: fi
1.1.1.3 ! misho 126499: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 126500: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 126501: echo "${ECHO_T}$ac_res" >&6; }
! 126502: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 126503:
126504: LDFLAGS=$save_old_LDFLAGS
126505: ext_shared=$save_ext_shared
126506:
126507: found_iconv=yes
126508:
126509:
126510: else
126511:
126512: LDFLAGS=$save_old_LDFLAGS
126513: ext_shared=$save_ext_shared
126514: unset ac_cv_lib_$iconv_lib_name_iconv
126515:
126516:
126517: fi
126518:
126519:
126520:
126521: fi
126522:
126523: fi
126524: fi
126525:
126526: if test "$found_iconv" = "yes"; then
126527:
126528: echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
126529:
126530:
1.1.1.3 ! misho 126531: cat >>confdefs.h <<\_ACEOF
! 126532: #define HAVE_ICONV 1
! 126533: _ACEOF
1.1 misho 126534:
126535: if test -n "$ICONV_DIR"; then
126536:
126537:
126538: if test "$ext_shared" = "yes"; then
126539: XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD"
126540: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
126541:
126542: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
126543:
126544: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
126545: ai_p=$ICONV_DIR/$PHP_LIBDIR
126546: else
126547:
126548: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
126549:
126550: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126551: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
126552: fi
126553:
126554:
126555: if test "$ext_shared" = "yes"; then
126556: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
126557: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
126558: else
126559:
126560:
126561:
126562: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126563:
126564: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
126565: if test -n "$unique" && test "`eval $cmd`" = "" ; then
126566: eval "LIBPATH$unique=set"
126567:
126568: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
126569: LDFLAGS="$LDFLAGS -L$ai_p"
126570: PHP_RPATHS="$PHP_RPATHS $ai_p"
126571:
126572: fi
126573:
126574:
126575: fi
126576:
126577: fi
126578:
126579: fi
126580: else
126581:
126582:
1.1.1.3 ! misho 126583: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
! 126584:
! 126585: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
! 126586:
! 126587: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
! 126588: ai_p=$ICONV_DIR/$PHP_LIBDIR
! 126589: else
! 126590:
! 126591: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
! 126592:
! 126593: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
! 126594: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
! 126595: fi
! 126596:
! 126597:
! 126598:
! 126599:
! 126600:
! 126601: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
! 126602:
! 126603: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
! 126604: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 126605: eval "LIBPATH$unique=set"
! 126606:
! 126607: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
! 126608: LDFLAGS="$LDFLAGS -L$ai_p"
! 126609: PHP_RPATHS="$PHP_RPATHS $ai_p"
! 126610:
! 126611: fi
! 126612:
! 126613:
! 126614:
! 126615: fi
! 126616:
! 126617: fi
! 126618:
! 126619:
! 126620: case $iconv_lib_name in
! 126621: c|c_r|pthread*) ;;
! 126622: *)
! 126623: LIBS="-l$iconv_lib_name $LIBS"
! 126624: ;;
! 126625: esac
! 126626:
! 126627:
! 126628:
! 126629:
! 126630: fi
! 126631:
! 126632:
! 126633:
! 126634: if test "$ICONV_DIR/include" != "/usr/include"; then
! 126635:
! 126636: if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
! 126637: ai_p=$ICONV_DIR/include
! 126638: else
! 126639:
! 126640: ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
! 126641:
! 126642: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
! 126643: ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
! 126644: fi
! 126645:
! 126646:
! 126647:
! 126648: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
! 126649:
! 126650: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
! 126651: if test -n "$unique" && test "`eval $cmd`" = "" ; then
! 126652: eval "INCLUDEPATH$unique=set"
! 126653:
! 126654: if test ""; then
! 126655: INCLUDES="-I$ai_p $INCLUDES"
! 126656: else
! 126657: INCLUDES="$INCLUDES -I$ai_p"
! 126658: fi
! 126659:
! 126660: fi
! 126661:
! 126662: fi
! 126663:
! 126664: fi
! 126665:
! 126666: else
! 126667: { { echo "$as_me:$LINENO: error: iconv not found, in order to build xmlrpc you need the iconv library" >&5
! 126668: echo "$as_me: error: iconv not found, in order to build xmlrpc you need the iconv library" >&2;}
! 126669: { (exit 1); exit 1; }; }
! 126670:
! 126671: fi
! 126672:
! 126673: fi
! 126674: fi
! 126675:
! 126676: if test "$PHP_XMLRPC" = "yes"; then
! 126677: if test -n "$ac_tool_prefix"; then
! 126678: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 126679: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 126680: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 126681: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 126682: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 126683: echo $ECHO_N "(cached) $ECHO_C" >&6
! 126684: else
! 126685: if test -n "$RANLIB"; then
! 126686: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 126687: else
! 126688: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 126689: for as_dir in $PATH
! 126690: do
! 126691: IFS=$as_save_IFS
! 126692: test -z "$as_dir" && as_dir=.
! 126693: for ac_exec_ext in '' $ac_executable_extensions; do
! 126694: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 126695: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 126696: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 126697: break 2
! 126698: fi
! 126699: done
! 126700: done
! 126701: IFS=$as_save_IFS
! 126702:
! 126703: fi
! 126704: fi
! 126705: RANLIB=$ac_cv_prog_RANLIB
! 126706: if test -n "$RANLIB"; then
! 126707: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 126708: echo "${ECHO_T}$RANLIB" >&6; }
! 126709: else
! 126710: { echo "$as_me:$LINENO: result: no" >&5
! 126711: echo "${ECHO_T}no" >&6; }
! 126712: fi
! 126713:
! 126714:
! 126715: fi
! 126716: if test -z "$ac_cv_prog_RANLIB"; then
! 126717: ac_ct_RANLIB=$RANLIB
! 126718: # Extract the first word of "ranlib", so it can be a program name with args.
! 126719: set dummy ranlib; ac_word=$2
! 126720: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 126721: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 126722: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 126723: echo $ECHO_N "(cached) $ECHO_C" >&6
! 126724: else
! 126725: if test -n "$ac_ct_RANLIB"; then
! 126726: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 126727: else
! 126728: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 126729: for as_dir in $PATH
! 126730: do
! 126731: IFS=$as_save_IFS
! 126732: test -z "$as_dir" && as_dir=.
! 126733: for ac_exec_ext in '' $ac_executable_extensions; do
! 126734: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 126735: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 126736: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 126737: break 2
! 126738: fi
! 126739: done
! 126740: done
! 126741: IFS=$as_save_IFS
! 126742:
! 126743: fi
! 126744: fi
! 126745: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 126746: if test -n "$ac_ct_RANLIB"; then
! 126747: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 126748: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
! 126749: else
! 126750: { echo "$as_me:$LINENO: result: no" >&5
! 126751: echo "${ECHO_T}no" >&6; }
! 126752: fi
! 126753:
! 126754: if test "x$ac_ct_RANLIB" = x; then
! 126755: RANLIB=":"
! 126756: else
! 126757: case $cross_compiling:$ac_tool_warned in
! 126758: yes:)
! 126759: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 126760: whose name does not start with the host triplet. If you think this
! 126761: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 126762: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 126763: whose name does not start with the host triplet. If you think this
! 126764: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 126765: ac_tool_warned=yes ;;
! 126766: esac
! 126767: RANLIB=$ac_ct_RANLIB
! 126768: fi
! 126769: else
! 126770: RANLIB="$ac_cv_prog_RANLIB"
! 126771: fi
! 126772:
! 126773: { echo "$as_me:$LINENO: checking for inline" >&5
! 126774: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
! 126775: if test "${ac_cv_c_inline+set}" = set; then
! 126776: echo $ECHO_N "(cached) $ECHO_C" >&6
! 126777: else
! 126778: ac_cv_c_inline=no
! 126779: for ac_kw in inline __inline__ __inline; do
! 126780: cat >conftest.$ac_ext <<_ACEOF
! 126781: /* confdefs.h. */
! 126782: _ACEOF
! 126783: cat confdefs.h >>conftest.$ac_ext
! 126784: cat >>conftest.$ac_ext <<_ACEOF
! 126785: /* end confdefs.h. */
! 126786: #ifndef __cplusplus
! 126787: typedef int foo_t;
! 126788: static $ac_kw foo_t static_foo () {return 0; }
! 126789: $ac_kw foo_t foo () {return 0; }
! 126790: #endif
! 126791:
! 126792: _ACEOF
! 126793: rm -f conftest.$ac_objext
! 126794: if { (ac_try="$ac_compile"
! 126795: case "(($ac_try" in
! 126796: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126797: *) ac_try_echo=$ac_try;;
! 126798: esac
! 126799: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 126800: (eval "$ac_compile") 2>conftest.er1
! 126801: ac_status=$?
! 126802: grep -v '^ *+' conftest.er1 >conftest.err
! 126803: rm -f conftest.er1
! 126804: cat conftest.err >&5
! 126805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 126806: (exit $ac_status); } && {
! 126807: test -z "$ac_c_werror_flag" ||
! 126808: test ! -s conftest.err
! 126809: } && test -s conftest.$ac_objext; then
! 126810: ac_cv_c_inline=$ac_kw
! 126811: else
! 126812: echo "$as_me: failed program was:" >&5
! 126813: sed 's/^/| /' conftest.$ac_ext >&5
! 126814:
! 126815:
! 126816: fi
! 126817:
! 126818: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 126819: test "$ac_cv_c_inline" != no && break
! 126820: done
! 126821:
! 126822: fi
! 126823: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 126824: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
! 126825:
! 126826:
! 126827: case $ac_cv_c_inline in
! 126828: inline | yes) ;;
! 126829: *)
! 126830: case $ac_cv_c_inline in
! 126831: no) ac_val=;;
! 126832: *) ac_val=$ac_cv_c_inline;;
! 126833: esac
! 126834: cat >>confdefs.h <<_ACEOF
! 126835: #ifndef __cplusplus
! 126836: #define inline $ac_val
! 126837: #endif
! 126838: _ACEOF
! 126839: ;;
! 126840: esac
! 126841:
! 126842:
! 126843:
! 126844:
! 126845:
! 126846:
! 126847:
! 126848:
! 126849: cat >>confdefs.h <<\_ACEOF
! 126850: #define UNDEF_THREADS_HACK
! 126851: _ACEOF
! 126852:
! 126853:
! 126854:
! 126855: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 126856: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 126857: if test "${ac_cv_header_stdc+set}" = set; then
! 126858: echo $ECHO_N "(cached) $ECHO_C" >&6
! 126859: else
! 126860: cat >conftest.$ac_ext <<_ACEOF
! 126861: /* confdefs.h. */
! 126862: _ACEOF
! 126863: cat confdefs.h >>conftest.$ac_ext
! 126864: cat >>conftest.$ac_ext <<_ACEOF
! 126865: /* end confdefs.h. */
! 126866: #include <stdlib.h>
! 126867: #include <stdarg.h>
! 126868: #include <string.h>
! 126869: #include <float.h>
! 126870:
! 126871: int
! 126872: main ()
! 126873: {
! 126874:
! 126875: ;
! 126876: return 0;
! 126877: }
! 126878: _ACEOF
! 126879: rm -f conftest.$ac_objext
! 126880: if { (ac_try="$ac_compile"
! 126881: case "(($ac_try" in
! 126882: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126883: *) ac_try_echo=$ac_try;;
! 126884: esac
! 126885: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 126886: (eval "$ac_compile") 2>conftest.er1
! 126887: ac_status=$?
! 126888: grep -v '^ *+' conftest.er1 >conftest.err
! 126889: rm -f conftest.er1
! 126890: cat conftest.err >&5
! 126891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 126892: (exit $ac_status); } && {
! 126893: test -z "$ac_c_werror_flag" ||
! 126894: test ! -s conftest.err
! 126895: } && test -s conftest.$ac_objext; then
! 126896: ac_cv_header_stdc=yes
! 126897: else
! 126898: echo "$as_me: failed program was:" >&5
! 126899: sed 's/^/| /' conftest.$ac_ext >&5
! 126900:
! 126901: ac_cv_header_stdc=no
! 126902: fi
! 126903:
! 126904: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 126905:
! 126906: if test $ac_cv_header_stdc = yes; then
! 126907: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 126908: cat >conftest.$ac_ext <<_ACEOF
! 126909: /* confdefs.h. */
! 126910: _ACEOF
! 126911: cat confdefs.h >>conftest.$ac_ext
! 126912: cat >>conftest.$ac_ext <<_ACEOF
! 126913: /* end confdefs.h. */
! 126914: #include <string.h>
! 126915:
! 126916: _ACEOF
! 126917: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 126918: $EGREP "memchr" >/dev/null 2>&1; then
! 126919: :
! 126920: else
! 126921: ac_cv_header_stdc=no
! 126922: fi
! 126923: rm -f -r conftest*
! 126924:
! 126925: fi
! 126926:
! 126927: if test $ac_cv_header_stdc = yes; then
! 126928: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 126929: cat >conftest.$ac_ext <<_ACEOF
! 126930: /* confdefs.h. */
! 126931: _ACEOF
! 126932: cat confdefs.h >>conftest.$ac_ext
! 126933: cat >>conftest.$ac_ext <<_ACEOF
! 126934: /* end confdefs.h. */
! 126935: #include <stdlib.h>
! 126936:
! 126937: _ACEOF
! 126938: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 126939: $EGREP "free" >/dev/null 2>&1; then
! 126940: :
! 126941: else
! 126942: ac_cv_header_stdc=no
! 126943: fi
! 126944: rm -f -r conftest*
! 126945:
! 126946: fi
! 126947:
! 126948: if test $ac_cv_header_stdc = yes; then
! 126949: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 126950: if test "$cross_compiling" = yes; then
! 126951: :
! 126952: else
! 126953: cat >conftest.$ac_ext <<_ACEOF
! 126954: /* confdefs.h. */
! 126955: _ACEOF
! 126956: cat confdefs.h >>conftest.$ac_ext
! 126957: cat >>conftest.$ac_ext <<_ACEOF
! 126958: /* end confdefs.h. */
! 126959: #include <ctype.h>
! 126960: #include <stdlib.h>
! 126961: #if ((' ' & 0x0FF) == 0x020)
! 126962: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 126963: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 126964: #else
! 126965: # define ISLOWER(c) \
! 126966: (('a' <= (c) && (c) <= 'i') \
! 126967: || ('j' <= (c) && (c) <= 'r') \
! 126968: || ('s' <= (c) && (c) <= 'z'))
! 126969: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 126970: #endif
! 126971:
! 126972: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 126973: int
! 126974: main ()
! 126975: {
! 126976: int i;
! 126977: for (i = 0; i < 256; i++)
! 126978: if (XOR (islower (i), ISLOWER (i))
! 126979: || toupper (i) != TOUPPER (i))
! 126980: return 2;
! 126981: return 0;
! 126982: }
! 126983: _ACEOF
! 126984: rm -f conftest$ac_exeext
! 126985: if { (ac_try="$ac_link"
! 126986: case "(($ac_try" in
! 126987: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126988: *) ac_try_echo=$ac_try;;
! 126989: esac
! 126990: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 126991: (eval "$ac_link") 2>&5
! 126992: ac_status=$?
! 126993: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 126994: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 126995: { (case "(($ac_try" in
! 126996: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 126997: *) ac_try_echo=$ac_try;;
! 126998: esac
! 126999: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127000: (eval "$ac_try") 2>&5
! 127001: ac_status=$?
! 127002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127003: (exit $ac_status); }; }; then
! 127004: :
! 127005: else
! 127006: echo "$as_me: program exited with status $ac_status" >&5
! 127007: echo "$as_me: failed program was:" >&5
! 127008: sed 's/^/| /' conftest.$ac_ext >&5
! 127009:
! 127010: ( exit $ac_status )
! 127011: ac_cv_header_stdc=no
! 127012: fi
! 127013: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 127014: fi
! 127015:
! 127016:
! 127017: fi
! 127018: fi
! 127019: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 127020: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
! 127021: if test $ac_cv_header_stdc = yes; then
! 127022:
! 127023: cat >>confdefs.h <<\_ACEOF
! 127024: #define STDC_HEADERS 1
! 127025: _ACEOF
! 127026:
! 127027: fi
! 127028:
! 127029:
! 127030:
! 127031:
! 127032:
! 127033:
! 127034: for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h
! 127035: do
! 127036: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 127037: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 127038: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 127039: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 127040: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 127041: echo $ECHO_N "(cached) $ECHO_C" >&6
! 127042: fi
! 127043: ac_res=`eval echo '${'$as_ac_Header'}'`
! 127044: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 127045: echo "${ECHO_T}$ac_res" >&6; }
! 127046: else
! 127047: # Is the header compilable?
! 127048: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 127049: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 127050: cat >conftest.$ac_ext <<_ACEOF
! 127051: /* confdefs.h. */
! 127052: _ACEOF
! 127053: cat confdefs.h >>conftest.$ac_ext
! 127054: cat >>conftest.$ac_ext <<_ACEOF
! 127055: /* end confdefs.h. */
! 127056: $ac_includes_default
! 127057: #include <$ac_header>
! 127058: _ACEOF
! 127059: rm -f conftest.$ac_objext
! 127060: if { (ac_try="$ac_compile"
! 127061: case "(($ac_try" in
! 127062: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127063: *) ac_try_echo=$ac_try;;
! 127064: esac
! 127065: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127066: (eval "$ac_compile") 2>conftest.er1
! 127067: ac_status=$?
! 127068: grep -v '^ *+' conftest.er1 >conftest.err
! 127069: rm -f conftest.er1
! 127070: cat conftest.err >&5
! 127071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127072: (exit $ac_status); } && {
! 127073: test -z "$ac_c_werror_flag" ||
! 127074: test ! -s conftest.err
! 127075: } && test -s conftest.$ac_objext; then
! 127076: ac_header_compiler=yes
! 127077: else
! 127078: echo "$as_me: failed program was:" >&5
! 127079: sed 's/^/| /' conftest.$ac_ext >&5
! 127080:
! 127081: ac_header_compiler=no
! 127082: fi
! 127083:
! 127084: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127085: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 127086: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 127087:
! 127088: # Is the header present?
! 127089: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 127090: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 127091: cat >conftest.$ac_ext <<_ACEOF
! 127092: /* confdefs.h. */
! 127093: _ACEOF
! 127094: cat confdefs.h >>conftest.$ac_ext
! 127095: cat >>conftest.$ac_ext <<_ACEOF
! 127096: /* end confdefs.h. */
! 127097: #include <$ac_header>
! 127098: _ACEOF
! 127099: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 127100: case "(($ac_try" in
! 127101: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127102: *) ac_try_echo=$ac_try;;
! 127103: esac
! 127104: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127105: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 127106: ac_status=$?
! 127107: grep -v '^ *+' conftest.er1 >conftest.err
! 127108: rm -f conftest.er1
! 127109: cat conftest.err >&5
! 127110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127111: (exit $ac_status); } >/dev/null && {
! 127112: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 127113: test ! -s conftest.err
! 127114: }; then
! 127115: ac_header_preproc=yes
! 127116: else
! 127117: echo "$as_me: failed program was:" >&5
! 127118: sed 's/^/| /' conftest.$ac_ext >&5
! 127119:
! 127120: ac_header_preproc=no
! 127121: fi
! 127122:
! 127123: rm -f conftest.err conftest.$ac_ext
! 127124: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 127125: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 127126:
! 127127: # So? What about this header?
! 127128: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 127129: yes:no: )
! 127130: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 127131: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 127132: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 127133: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 127134: ac_header_preproc=yes
! 127135: ;;
! 127136: no:yes:* )
! 127137: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 127138: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 127139: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 127140: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 127141: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 127142: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 127143: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 127144: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 127145: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 127146: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 127147: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 127148: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 127149:
1.1.1.3 ! misho 127150: ;;
! 127151: esac
! 127152: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 127153: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 127154: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 127155: echo $ECHO_N "(cached) $ECHO_C" >&6
! 127156: else
! 127157: eval "$as_ac_Header=\$ac_header_preproc"
! 127158: fi
! 127159: ac_res=`eval echo '${'$as_ac_Header'}'`
! 127160: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 127161: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 127162:
1.1.1.3 ! misho 127163: fi
! 127164: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 127165: cat >>confdefs.h <<_ACEOF
! 127166: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 127167: _ACEOF
1.1 misho 127168:
1.1.1.3 ! misho 127169: fi
1.1 misho 127170:
1.1.1.3 ! misho 127171: done
1.1 misho 127172:
127173:
127174:
127175:
127176:
127177:
1.1.1.3 ! misho 127178: { echo "$as_me:$LINENO: checking for char" >&5
! 127179: echo $ECHO_N "checking for char... $ECHO_C" >&6; }
! 127180: if test "${ac_cv_type_char+set}" = set; then
! 127181: echo $ECHO_N "(cached) $ECHO_C" >&6
! 127182: else
! 127183: cat >conftest.$ac_ext <<_ACEOF
! 127184: /* confdefs.h. */
! 127185: _ACEOF
! 127186: cat confdefs.h >>conftest.$ac_ext
! 127187: cat >>conftest.$ac_ext <<_ACEOF
! 127188: /* end confdefs.h. */
! 127189: $ac_includes_default
! 127190: typedef char ac__type_new_;
! 127191: int
! 127192: main ()
! 127193: {
! 127194: if ((ac__type_new_ *) 0)
! 127195: return 0;
! 127196: if (sizeof (ac__type_new_))
! 127197: return 0;
! 127198: ;
! 127199: return 0;
! 127200: }
! 127201: _ACEOF
! 127202: rm -f conftest.$ac_objext
! 127203: if { (ac_try="$ac_compile"
! 127204: case "(($ac_try" in
! 127205: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127206: *) ac_try_echo=$ac_try;;
! 127207: esac
! 127208: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127209: (eval "$ac_compile") 2>conftest.er1
! 127210: ac_status=$?
! 127211: grep -v '^ *+' conftest.er1 >conftest.err
! 127212: rm -f conftest.er1
! 127213: cat conftest.err >&5
! 127214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127215: (exit $ac_status); } && {
! 127216: test -z "$ac_c_werror_flag" ||
! 127217: test ! -s conftest.err
! 127218: } && test -s conftest.$ac_objext; then
! 127219: ac_cv_type_char=yes
! 127220: else
! 127221: echo "$as_me: failed program was:" >&5
! 127222: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127223:
1.1.1.3 ! misho 127224: ac_cv_type_char=no
! 127225: fi
1.1 misho 127226:
1.1.1.3 ! misho 127227: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127228: fi
! 127229: { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
! 127230: echo "${ECHO_T}$ac_cv_type_char" >&6; }
1.1 misho 127231:
1.1.1.3 ! misho 127232: # The cast to long int works around a bug in the HP C Compiler
! 127233: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 127234: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 127235: # This bug is HP SR number 8606223364.
! 127236: { echo "$as_me:$LINENO: checking size of char" >&5
! 127237: echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
! 127238: if test "${ac_cv_sizeof_char+set}" = set; then
! 127239: echo $ECHO_N "(cached) $ECHO_C" >&6
! 127240: else
! 127241: if test "$cross_compiling" = yes; then
! 127242: # Depending upon the size, compute the lo and hi bounds.
! 127243: cat >conftest.$ac_ext <<_ACEOF
! 127244: /* confdefs.h. */
! 127245: _ACEOF
! 127246: cat confdefs.h >>conftest.$ac_ext
! 127247: cat >>conftest.$ac_ext <<_ACEOF
! 127248: /* end confdefs.h. */
! 127249: $ac_includes_default
! 127250: typedef char ac__type_sizeof_;
! 127251: int
! 127252: main ()
! 127253: {
! 127254: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 127255: test_array [0] = 0
1.1 misho 127256:
1.1.1.3 ! misho 127257: ;
! 127258: return 0;
! 127259: }
! 127260: _ACEOF
! 127261: rm -f conftest.$ac_objext
! 127262: if { (ac_try="$ac_compile"
! 127263: case "(($ac_try" in
! 127264: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127265: *) ac_try_echo=$ac_try;;
! 127266: esac
! 127267: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127268: (eval "$ac_compile") 2>conftest.er1
! 127269: ac_status=$?
! 127270: grep -v '^ *+' conftest.er1 >conftest.err
! 127271: rm -f conftest.er1
! 127272: cat conftest.err >&5
! 127273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127274: (exit $ac_status); } && {
! 127275: test -z "$ac_c_werror_flag" ||
! 127276: test ! -s conftest.err
! 127277: } && test -s conftest.$ac_objext; then
! 127278: ac_lo=0 ac_mid=0
! 127279: while :; do
! 127280: cat >conftest.$ac_ext <<_ACEOF
! 127281: /* confdefs.h. */
! 127282: _ACEOF
! 127283: cat confdefs.h >>conftest.$ac_ext
! 127284: cat >>conftest.$ac_ext <<_ACEOF
! 127285: /* end confdefs.h. */
! 127286: $ac_includes_default
! 127287: typedef char ac__type_sizeof_;
! 127288: int
! 127289: main ()
! 127290: {
! 127291: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 127292: test_array [0] = 0
1.1 misho 127293:
1.1.1.3 ! misho 127294: ;
! 127295: return 0;
! 127296: }
! 127297: _ACEOF
! 127298: rm -f conftest.$ac_objext
! 127299: if { (ac_try="$ac_compile"
! 127300: case "(($ac_try" in
! 127301: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127302: *) ac_try_echo=$ac_try;;
! 127303: esac
! 127304: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127305: (eval "$ac_compile") 2>conftest.er1
! 127306: ac_status=$?
! 127307: grep -v '^ *+' conftest.er1 >conftest.err
! 127308: rm -f conftest.er1
! 127309: cat conftest.err >&5
! 127310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127311: (exit $ac_status); } && {
! 127312: test -z "$ac_c_werror_flag" ||
! 127313: test ! -s conftest.err
! 127314: } && test -s conftest.$ac_objext; then
! 127315: ac_hi=$ac_mid; break
! 127316: else
! 127317: echo "$as_me: failed program was:" >&5
! 127318: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127319:
1.1.1.3 ! misho 127320: ac_lo=`expr $ac_mid + 1`
! 127321: if test $ac_lo -le $ac_mid; then
! 127322: ac_lo= ac_hi=
! 127323: break
! 127324: fi
! 127325: ac_mid=`expr 2 '*' $ac_mid + 1`
! 127326: fi
1.1 misho 127327:
1.1.1.3 ! misho 127328: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127329: done
! 127330: else
! 127331: echo "$as_me: failed program was:" >&5
! 127332: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127333:
1.1.1.3 ! misho 127334: cat >conftest.$ac_ext <<_ACEOF
! 127335: /* confdefs.h. */
! 127336: _ACEOF
! 127337: cat confdefs.h >>conftest.$ac_ext
! 127338: cat >>conftest.$ac_ext <<_ACEOF
! 127339: /* end confdefs.h. */
! 127340: $ac_includes_default
! 127341: typedef char ac__type_sizeof_;
! 127342: int
! 127343: main ()
! 127344: {
! 127345: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 127346: test_array [0] = 0
1.1 misho 127347:
1.1.1.3 ! misho 127348: ;
! 127349: return 0;
! 127350: }
! 127351: _ACEOF
! 127352: rm -f conftest.$ac_objext
! 127353: if { (ac_try="$ac_compile"
! 127354: case "(($ac_try" in
! 127355: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127356: *) ac_try_echo=$ac_try;;
! 127357: esac
! 127358: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127359: (eval "$ac_compile") 2>conftest.er1
! 127360: ac_status=$?
! 127361: grep -v '^ *+' conftest.er1 >conftest.err
! 127362: rm -f conftest.er1
! 127363: cat conftest.err >&5
! 127364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127365: (exit $ac_status); } && {
! 127366: test -z "$ac_c_werror_flag" ||
! 127367: test ! -s conftest.err
! 127368: } && test -s conftest.$ac_objext; then
! 127369: ac_hi=-1 ac_mid=-1
! 127370: while :; do
! 127371: cat >conftest.$ac_ext <<_ACEOF
! 127372: /* confdefs.h. */
! 127373: _ACEOF
! 127374: cat confdefs.h >>conftest.$ac_ext
! 127375: cat >>conftest.$ac_ext <<_ACEOF
! 127376: /* end confdefs.h. */
! 127377: $ac_includes_default
! 127378: typedef char ac__type_sizeof_;
! 127379: int
! 127380: main ()
! 127381: {
! 127382: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 127383: test_array [0] = 0
1.1 misho 127384:
1.1.1.3 ! misho 127385: ;
! 127386: return 0;
! 127387: }
! 127388: _ACEOF
! 127389: rm -f conftest.$ac_objext
! 127390: if { (ac_try="$ac_compile"
! 127391: case "(($ac_try" in
! 127392: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127393: *) ac_try_echo=$ac_try;;
! 127394: esac
! 127395: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127396: (eval "$ac_compile") 2>conftest.er1
! 127397: ac_status=$?
! 127398: grep -v '^ *+' conftest.er1 >conftest.err
! 127399: rm -f conftest.er1
! 127400: cat conftest.err >&5
! 127401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127402: (exit $ac_status); } && {
! 127403: test -z "$ac_c_werror_flag" ||
! 127404: test ! -s conftest.err
! 127405: } && test -s conftest.$ac_objext; then
! 127406: ac_lo=$ac_mid; break
! 127407: else
! 127408: echo "$as_me: failed program was:" >&5
! 127409: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127410:
1.1.1.3 ! misho 127411: ac_hi=`expr '(' $ac_mid ')' - 1`
! 127412: if test $ac_mid -le $ac_hi; then
! 127413: ac_lo= ac_hi=
! 127414: break
! 127415: fi
! 127416: ac_mid=`expr 2 '*' $ac_mid`
! 127417: fi
1.1 misho 127418:
1.1.1.3 ! misho 127419: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127420: done
! 127421: else
! 127422: echo "$as_me: failed program was:" >&5
! 127423: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127424:
1.1.1.3 ! misho 127425: ac_lo= ac_hi=
! 127426: fi
1.1 misho 127427:
1.1.1.3 ! misho 127428: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127429: fi
1.1 misho 127430:
1.1.1.3 ! misho 127431: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127432: # Binary search between lo and hi bounds.
! 127433: while test "x$ac_lo" != "x$ac_hi"; do
! 127434: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 127435: cat >conftest.$ac_ext <<_ACEOF
! 127436: /* confdefs.h. */
! 127437: _ACEOF
! 127438: cat confdefs.h >>conftest.$ac_ext
! 127439: cat >>conftest.$ac_ext <<_ACEOF
! 127440: /* end confdefs.h. */
! 127441: $ac_includes_default
! 127442: typedef char ac__type_sizeof_;
! 127443: int
! 127444: main ()
! 127445: {
! 127446: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 127447: test_array [0] = 0
1.1 misho 127448:
1.1.1.3 ! misho 127449: ;
! 127450: return 0;
! 127451: }
! 127452: _ACEOF
! 127453: rm -f conftest.$ac_objext
! 127454: if { (ac_try="$ac_compile"
! 127455: case "(($ac_try" in
! 127456: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127457: *) ac_try_echo=$ac_try;;
! 127458: esac
! 127459: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127460: (eval "$ac_compile") 2>conftest.er1
! 127461: ac_status=$?
! 127462: grep -v '^ *+' conftest.er1 >conftest.err
! 127463: rm -f conftest.er1
! 127464: cat conftest.err >&5
! 127465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127466: (exit $ac_status); } && {
! 127467: test -z "$ac_c_werror_flag" ||
! 127468: test ! -s conftest.err
! 127469: } && test -s conftest.$ac_objext; then
! 127470: ac_hi=$ac_mid
! 127471: else
! 127472: echo "$as_me: failed program was:" >&5
! 127473: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127474:
1.1.1.3 ! misho 127475: ac_lo=`expr '(' $ac_mid ')' + 1`
! 127476: fi
1.1 misho 127477:
1.1.1.3 ! misho 127478: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127479: done
! 127480: case $ac_lo in
! 127481: ?*) ac_cv_sizeof_char=$ac_lo;;
! 127482: '') if test "$ac_cv_type_char" = yes; then
! 127483: { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
! 127484: See \`config.log' for more details." >&5
! 127485: echo "$as_me: error: cannot compute sizeof (char)
! 127486: See \`config.log' for more details." >&2;}
! 127487: { (exit 77); exit 77; }; }
! 127488: else
! 127489: ac_cv_sizeof_char=0
! 127490: fi ;;
! 127491: esac
! 127492: else
! 127493: cat >conftest.$ac_ext <<_ACEOF
! 127494: /* confdefs.h. */
! 127495: _ACEOF
! 127496: cat confdefs.h >>conftest.$ac_ext
! 127497: cat >>conftest.$ac_ext <<_ACEOF
! 127498: /* end confdefs.h. */
! 127499: $ac_includes_default
! 127500: typedef char ac__type_sizeof_;
! 127501: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 127502: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 127503: #include <stdio.h>
! 127504: #include <stdlib.h>
! 127505: int
! 127506: main ()
! 127507: {
1.1 misho 127508:
1.1.1.3 ! misho 127509: FILE *f = fopen ("conftest.val", "w");
! 127510: if (! f)
! 127511: return 1;
! 127512: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 127513: {
! 127514: long int i = longval ();
! 127515: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 127516: return 1;
! 127517: fprintf (f, "%ld\n", i);
! 127518: }
! 127519: else
! 127520: {
! 127521: unsigned long int i = ulongval ();
! 127522: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 127523: return 1;
! 127524: fprintf (f, "%lu\n", i);
! 127525: }
! 127526: return ferror (f) || fclose (f) != 0;
1.1 misho 127527:
1.1.1.3 ! misho 127528: ;
! 127529: return 0;
! 127530: }
! 127531: _ACEOF
! 127532: rm -f conftest$ac_exeext
! 127533: if { (ac_try="$ac_link"
! 127534: case "(($ac_try" in
! 127535: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127536: *) ac_try_echo=$ac_try;;
! 127537: esac
! 127538: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127539: (eval "$ac_link") 2>&5
! 127540: ac_status=$?
! 127541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127542: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 127543: { (case "(($ac_try" in
! 127544: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127545: *) ac_try_echo=$ac_try;;
! 127546: esac
! 127547: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127548: (eval "$ac_try") 2>&5
! 127549: ac_status=$?
! 127550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127551: (exit $ac_status); }; }; then
! 127552: ac_cv_sizeof_char=`cat conftest.val`
! 127553: else
! 127554: echo "$as_me: program exited with status $ac_status" >&5
! 127555: echo "$as_me: failed program was:" >&5
! 127556: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127557:
1.1.1.3 ! misho 127558: ( exit $ac_status )
! 127559: if test "$ac_cv_type_char" = yes; then
! 127560: { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
! 127561: See \`config.log' for more details." >&5
! 127562: echo "$as_me: error: cannot compute sizeof (char)
! 127563: See \`config.log' for more details." >&2;}
! 127564: { (exit 77); exit 77; }; }
! 127565: else
! 127566: ac_cv_sizeof_char=0
! 127567: fi
! 127568: fi
! 127569: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 127570: fi
! 127571: rm -f conftest.val
! 127572: fi
! 127573: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
! 127574: echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
1.1 misho 127575:
127576:
127577:
1.1.1.3 ! misho 127578: cat >>confdefs.h <<_ACEOF
! 127579: #define SIZEOF_CHAR $ac_cv_sizeof_char
! 127580: _ACEOF
1.1 misho 127581:
127582:
127583:
1.1.1.3 ! misho 127584: { echo "$as_me:$LINENO: checking for int" >&5
! 127585: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
! 127586: if test "${ac_cv_type_int+set}" = set; then
! 127587: echo $ECHO_N "(cached) $ECHO_C" >&6
! 127588: else
! 127589: cat >conftest.$ac_ext <<_ACEOF
! 127590: /* confdefs.h. */
! 127591: _ACEOF
! 127592: cat confdefs.h >>conftest.$ac_ext
! 127593: cat >>conftest.$ac_ext <<_ACEOF
! 127594: /* end confdefs.h. */
! 127595: $ac_includes_default
! 127596: typedef int ac__type_new_;
! 127597: int
! 127598: main ()
! 127599: {
! 127600: if ((ac__type_new_ *) 0)
! 127601: return 0;
! 127602: if (sizeof (ac__type_new_))
! 127603: return 0;
! 127604: ;
! 127605: return 0;
! 127606: }
! 127607: _ACEOF
! 127608: rm -f conftest.$ac_objext
! 127609: if { (ac_try="$ac_compile"
! 127610: case "(($ac_try" in
! 127611: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127612: *) ac_try_echo=$ac_try;;
! 127613: esac
! 127614: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127615: (eval "$ac_compile") 2>conftest.er1
! 127616: ac_status=$?
! 127617: grep -v '^ *+' conftest.er1 >conftest.err
! 127618: rm -f conftest.er1
! 127619: cat conftest.err >&5
! 127620: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127621: (exit $ac_status); } && {
! 127622: test -z "$ac_c_werror_flag" ||
! 127623: test ! -s conftest.err
! 127624: } && test -s conftest.$ac_objext; then
! 127625: ac_cv_type_int=yes
1.1 misho 127626: else
1.1.1.3 ! misho 127627: echo "$as_me: failed program was:" >&5
! 127628: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127629:
1.1.1.3 ! misho 127630: ac_cv_type_int=no
! 127631: fi
1.1 misho 127632:
1.1.1.3 ! misho 127633: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 127634: fi
1.1.1.3 ! misho 127635: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 127636: echo "${ECHO_T}$ac_cv_type_int" >&6; }
1.1 misho 127637:
1.1.1.3 ! misho 127638: # The cast to long int works around a bug in the HP C Compiler
! 127639: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 127640: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 127641: # This bug is HP SR number 8606223364.
! 127642: { echo "$as_me:$LINENO: checking size of int" >&5
! 127643: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
! 127644: if test "${ac_cv_sizeof_int+set}" = set; then
! 127645: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 127646: else
1.1.1.3 ! misho 127647: if test "$cross_compiling" = yes; then
! 127648: # Depending upon the size, compute the lo and hi bounds.
! 127649: cat >conftest.$ac_ext <<_ACEOF
! 127650: /* confdefs.h. */
! 127651: _ACEOF
! 127652: cat confdefs.h >>conftest.$ac_ext
! 127653: cat >>conftest.$ac_ext <<_ACEOF
! 127654: /* end confdefs.h. */
! 127655: $ac_includes_default
! 127656: typedef int ac__type_sizeof_;
! 127657: int
! 127658: main ()
! 127659: {
! 127660: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 127661: test_array [0] = 0
! 127662:
! 127663: ;
! 127664: return 0;
! 127665: }
! 127666: _ACEOF
! 127667: rm -f conftest.$ac_objext
! 127668: if { (ac_try="$ac_compile"
! 127669: case "(($ac_try" in
! 127670: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127671: *) ac_try_echo=$ac_try;;
! 127672: esac
! 127673: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127674: (eval "$ac_compile") 2>conftest.er1
! 127675: ac_status=$?
! 127676: grep -v '^ *+' conftest.er1 >conftest.err
! 127677: rm -f conftest.er1
! 127678: cat conftest.err >&5
! 127679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127680: (exit $ac_status); } && {
! 127681: test -z "$ac_c_werror_flag" ||
! 127682: test ! -s conftest.err
! 127683: } && test -s conftest.$ac_objext; then
! 127684: ac_lo=0 ac_mid=0
! 127685: while :; do
! 127686: cat >conftest.$ac_ext <<_ACEOF
! 127687: /* confdefs.h. */
! 127688: _ACEOF
! 127689: cat confdefs.h >>conftest.$ac_ext
! 127690: cat >>conftest.$ac_ext <<_ACEOF
! 127691: /* end confdefs.h. */
! 127692: $ac_includes_default
! 127693: typedef int ac__type_sizeof_;
! 127694: int
! 127695: main ()
! 127696: {
! 127697: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 127698: test_array [0] = 0
! 127699:
! 127700: ;
! 127701: return 0;
! 127702: }
! 127703: _ACEOF
! 127704: rm -f conftest.$ac_objext
! 127705: if { (ac_try="$ac_compile"
! 127706: case "(($ac_try" in
! 127707: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127708: *) ac_try_echo=$ac_try;;
! 127709: esac
! 127710: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127711: (eval "$ac_compile") 2>conftest.er1
! 127712: ac_status=$?
! 127713: grep -v '^ *+' conftest.er1 >conftest.err
! 127714: rm -f conftest.er1
! 127715: cat conftest.err >&5
! 127716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127717: (exit $ac_status); } && {
! 127718: test -z "$ac_c_werror_flag" ||
! 127719: test ! -s conftest.err
! 127720: } && test -s conftest.$ac_objext; then
! 127721: ac_hi=$ac_mid; break
1.1 misho 127722: else
1.1.1.3 ! misho 127723: echo "$as_me: failed program was:" >&5
! 127724: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127725:
1.1.1.3 ! misho 127726: ac_lo=`expr $ac_mid + 1`
! 127727: if test $ac_lo -le $ac_mid; then
! 127728: ac_lo= ac_hi=
! 127729: break
! 127730: fi
! 127731: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 127732: fi
1.1.1.3 ! misho 127733:
! 127734: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127735: done
1.1 misho 127736: else
1.1.1.3 ! misho 127737: echo "$as_me: failed program was:" >&5
! 127738: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127739:
1.1.1.3 ! misho 127740: cat >conftest.$ac_ext <<_ACEOF
! 127741: /* confdefs.h. */
! 127742: _ACEOF
! 127743: cat confdefs.h >>conftest.$ac_ext
! 127744: cat >>conftest.$ac_ext <<_ACEOF
! 127745: /* end confdefs.h. */
! 127746: $ac_includes_default
! 127747: typedef int ac__type_sizeof_;
! 127748: int
! 127749: main ()
! 127750: {
! 127751: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 127752: test_array [0] = 0
1.1 misho 127753:
1.1.1.3 ! misho 127754: ;
! 127755: return 0;
! 127756: }
! 127757: _ACEOF
! 127758: rm -f conftest.$ac_objext
! 127759: if { (ac_try="$ac_compile"
! 127760: case "(($ac_try" in
! 127761: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127762: *) ac_try_echo=$ac_try;;
! 127763: esac
! 127764: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127765: (eval "$ac_compile") 2>conftest.er1
! 127766: ac_status=$?
! 127767: grep -v '^ *+' conftest.er1 >conftest.err
! 127768: rm -f conftest.er1
! 127769: cat conftest.err >&5
! 127770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127771: (exit $ac_status); } && {
! 127772: test -z "$ac_c_werror_flag" ||
! 127773: test ! -s conftest.err
! 127774: } && test -s conftest.$ac_objext; then
! 127775: ac_hi=-1 ac_mid=-1
! 127776: while :; do
! 127777: cat >conftest.$ac_ext <<_ACEOF
! 127778: /* confdefs.h. */
! 127779: _ACEOF
! 127780: cat confdefs.h >>conftest.$ac_ext
! 127781: cat >>conftest.$ac_ext <<_ACEOF
! 127782: /* end confdefs.h. */
! 127783: $ac_includes_default
! 127784: typedef int ac__type_sizeof_;
! 127785: int
! 127786: main ()
! 127787: {
! 127788: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 127789: test_array [0] = 0
! 127790:
! 127791: ;
! 127792: return 0;
! 127793: }
! 127794: _ACEOF
! 127795: rm -f conftest.$ac_objext
! 127796: if { (ac_try="$ac_compile"
! 127797: case "(($ac_try" in
! 127798: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127799: *) ac_try_echo=$ac_try;;
! 127800: esac
! 127801: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127802: (eval "$ac_compile") 2>conftest.er1
! 127803: ac_status=$?
! 127804: grep -v '^ *+' conftest.er1 >conftest.err
! 127805: rm -f conftest.er1
! 127806: cat conftest.err >&5
! 127807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127808: (exit $ac_status); } && {
! 127809: test -z "$ac_c_werror_flag" ||
! 127810: test ! -s conftest.err
! 127811: } && test -s conftest.$ac_objext; then
! 127812: ac_lo=$ac_mid; break
1.1 misho 127813: else
1.1.1.3 ! misho 127814: echo "$as_me: failed program was:" >&5
! 127815: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127816:
1.1.1.3 ! misho 127817: ac_hi=`expr '(' $ac_mid ')' - 1`
! 127818: if test $ac_mid -le $ac_hi; then
! 127819: ac_lo= ac_hi=
! 127820: break
! 127821: fi
! 127822: ac_mid=`expr 2 '*' $ac_mid`
1.1 misho 127823: fi
1.1.1.3 ! misho 127824:
! 127825: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127826: done
1.1 misho 127827: else
1.1.1.3 ! misho 127828: echo "$as_me: failed program was:" >&5
! 127829: sed 's/^/| /' conftest.$ac_ext >&5
! 127830:
! 127831: ac_lo= ac_hi=
1.1 misho 127832: fi
127833:
1.1.1.3 ! misho 127834: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 127835: fi
127836:
1.1.1.3 ! misho 127837: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 127838: # Binary search between lo and hi bounds.
! 127839: while test "x$ac_lo" != "x$ac_hi"; do
! 127840: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 127841: cat >conftest.$ac_ext <<_ACEOF
! 127842: /* confdefs.h. */
! 127843: _ACEOF
! 127844: cat confdefs.h >>conftest.$ac_ext
! 127845: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 127846: /* end confdefs.h. */
1.1.1.3 ! misho 127847: $ac_includes_default
! 127848: typedef int ac__type_sizeof_;
! 127849: int
! 127850: main ()
! 127851: {
! 127852: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 127853: test_array [0] = 0
1.1 misho 127854:
1.1.1.3 ! misho 127855: ;
! 127856: return 0;
! 127857: }
1.1 misho 127858: _ACEOF
1.1.1.3 ! misho 127859: rm -f conftest.$ac_objext
! 127860: if { (ac_try="$ac_compile"
! 127861: case "(($ac_try" in
! 127862: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127863: *) ac_try_echo=$ac_try;;
! 127864: esac
! 127865: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127866: (eval "$ac_compile") 2>conftest.er1
! 127867: ac_status=$?
! 127868: grep -v '^ *+' conftest.er1 >conftest.err
! 127869: rm -f conftest.er1
! 127870: cat conftest.err >&5
! 127871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127872: (exit $ac_status); } && {
! 127873: test -z "$ac_c_werror_flag" ||
! 127874: test ! -s conftest.err
! 127875: } && test -s conftest.$ac_objext; then
! 127876: ac_hi=$ac_mid
! 127877: else
! 127878: echo "$as_me: failed program was:" >&5
! 127879: sed 's/^/| /' conftest.$ac_ext >&5
! 127880:
! 127881: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 127882: fi
1.1.1.3 ! misho 127883:
1.1 misho 127884: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
127885: done
1.1.1.3 ! misho 127886: case $ac_lo in
! 127887: ?*) ac_cv_sizeof_int=$ac_lo;;
! 127888: '') if test "$ac_cv_type_int" = yes; then
! 127889: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 127890: See \`config.log' for more details." >&5
! 127891: echo "$as_me: error: cannot compute sizeof (int)
! 127892: See \`config.log' for more details." >&2;}
! 127893: { (exit 77); exit 77; }; }
! 127894: else
! 127895: ac_cv_sizeof_int=0
! 127896: fi ;;
! 127897: esac
! 127898: else
! 127899: cat >conftest.$ac_ext <<_ACEOF
! 127900: /* confdefs.h. */
! 127901: _ACEOF
! 127902: cat confdefs.h >>conftest.$ac_ext
! 127903: cat >>conftest.$ac_ext <<_ACEOF
! 127904: /* end confdefs.h. */
! 127905: $ac_includes_default
! 127906: typedef int ac__type_sizeof_;
! 127907: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 127908: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 127909: #include <stdio.h>
! 127910: #include <stdlib.h>
! 127911: int
! 127912: main ()
! 127913: {
1.1 misho 127914:
1.1.1.3 ! misho 127915: FILE *f = fopen ("conftest.val", "w");
! 127916: if (! f)
! 127917: return 1;
! 127918: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 127919: {
! 127920: long int i = longval ();
! 127921: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 127922: return 1;
! 127923: fprintf (f, "%ld\n", i);
! 127924: }
! 127925: else
! 127926: {
! 127927: unsigned long int i = ulongval ();
! 127928: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 127929: return 1;
! 127930: fprintf (f, "%lu\n", i);
! 127931: }
! 127932: return ferror (f) || fclose (f) != 0;
! 127933:
! 127934: ;
! 127935: return 0;
! 127936: }
1.1 misho 127937: _ACEOF
1.1.1.3 ! misho 127938: rm -f conftest$ac_exeext
! 127939: if { (ac_try="$ac_link"
! 127940: case "(($ac_try" in
! 127941: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127942: *) ac_try_echo=$ac_try;;
1.1 misho 127943: esac
1.1.1.3 ! misho 127944: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127945: (eval "$ac_link") 2>&5
! 127946: ac_status=$?
! 127947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127948: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 127949: { (case "(($ac_try" in
! 127950: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 127951: *) ac_try_echo=$ac_try;;
! 127952: esac
! 127953: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 127954: (eval "$ac_try") 2>&5
! 127955: ac_status=$?
! 127956: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 127957: (exit $ac_status); }; }; then
! 127958: ac_cv_sizeof_int=`cat conftest.val`
! 127959: else
! 127960: echo "$as_me: program exited with status $ac_status" >&5
! 127961: echo "$as_me: failed program was:" >&5
! 127962: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 127963:
1.1.1.3 ! misho 127964: ( exit $ac_status )
! 127965: if test "$ac_cv_type_int" = yes; then
! 127966: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
! 127967: See \`config.log' for more details." >&5
! 127968: echo "$as_me: error: cannot compute sizeof (int)
! 127969: See \`config.log' for more details." >&2;}
! 127970: { (exit 77); exit 77; }; }
! 127971: else
! 127972: ac_cv_sizeof_int=0
! 127973: fi
! 127974: fi
! 127975: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 127976: fi
! 127977: rm -f conftest.val
! 127978: fi
! 127979: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 127980: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
1.1 misho 127981:
127982:
127983:
1.1.1.3 ! misho 127984: cat >>confdefs.h <<_ACEOF
! 127985: #define SIZEOF_INT $ac_cv_sizeof_int
! 127986: _ACEOF
1.1 misho 127987:
127988:
1.1.1.3 ! misho 127989: { echo "$as_me:$LINENO: checking for long" >&5
! 127990: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
! 127991: if test "${ac_cv_type_long+set}" = set; then
! 127992: echo $ECHO_N "(cached) $ECHO_C" >&6
! 127993: else
! 127994: cat >conftest.$ac_ext <<_ACEOF
! 127995: /* confdefs.h. */
! 127996: _ACEOF
! 127997: cat confdefs.h >>conftest.$ac_ext
! 127998: cat >>conftest.$ac_ext <<_ACEOF
! 127999: /* end confdefs.h. */
! 128000: $ac_includes_default
! 128001: typedef long ac__type_new_;
! 128002: int
! 128003: main ()
! 128004: {
! 128005: if ((ac__type_new_ *) 0)
! 128006: return 0;
! 128007: if (sizeof (ac__type_new_))
! 128008: return 0;
! 128009: ;
! 128010: return 0;
! 128011: }
! 128012: _ACEOF
! 128013: rm -f conftest.$ac_objext
! 128014: if { (ac_try="$ac_compile"
! 128015: case "(($ac_try" in
! 128016: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128017: *) ac_try_echo=$ac_try;;
! 128018: esac
! 128019: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128020: (eval "$ac_compile") 2>conftest.er1
! 128021: ac_status=$?
! 128022: grep -v '^ *+' conftest.er1 >conftest.err
! 128023: rm -f conftest.er1
! 128024: cat conftest.err >&5
! 128025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128026: (exit $ac_status); } && {
! 128027: test -z "$ac_c_werror_flag" ||
! 128028: test ! -s conftest.err
! 128029: } && test -s conftest.$ac_objext; then
! 128030: ac_cv_type_long=yes
! 128031: else
! 128032: echo "$as_me: failed program was:" >&5
! 128033: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128034:
1.1.1.3 ! misho 128035: ac_cv_type_long=no
! 128036: fi
1.1 misho 128037:
1.1.1.3 ! misho 128038: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128039: fi
! 128040: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 128041: echo "${ECHO_T}$ac_cv_type_long" >&6; }
1.1 misho 128042:
1.1.1.3 ! misho 128043: # The cast to long int works around a bug in the HP C Compiler
! 128044: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 128045: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 128046: # This bug is HP SR number 8606223364.
! 128047: { echo "$as_me:$LINENO: checking size of long" >&5
! 128048: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
! 128049: if test "${ac_cv_sizeof_long+set}" = set; then
! 128050: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 128051: else
1.1.1.3 ! misho 128052: if test "$cross_compiling" = yes; then
! 128053: # Depending upon the size, compute the lo and hi bounds.
! 128054: cat >conftest.$ac_ext <<_ACEOF
! 128055: /* confdefs.h. */
! 128056: _ACEOF
! 128057: cat confdefs.h >>conftest.$ac_ext
! 128058: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 128059: /* end confdefs.h. */
1.1.1.3 ! misho 128060: $ac_includes_default
! 128061: typedef long ac__type_sizeof_;
! 128062: int
! 128063: main ()
! 128064: {
! 128065: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 128066: test_array [0] = 0
1.1 misho 128067:
1.1.1.3 ! misho 128068: ;
! 128069: return 0;
! 128070: }
! 128071: _ACEOF
! 128072: rm -f conftest.$ac_objext
! 128073: if { (ac_try="$ac_compile"
! 128074: case "(($ac_try" in
! 128075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128076: *) ac_try_echo=$ac_try;;
! 128077: esac
! 128078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128079: (eval "$ac_compile") 2>conftest.er1
! 128080: ac_status=$?
! 128081: grep -v '^ *+' conftest.er1 >conftest.err
! 128082: rm -f conftest.er1
! 128083: cat conftest.err >&5
! 128084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128085: (exit $ac_status); } && {
! 128086: test -z "$ac_c_werror_flag" ||
! 128087: test ! -s conftest.err
! 128088: } && test -s conftest.$ac_objext; then
! 128089: ac_lo=0 ac_mid=0
! 128090: while :; do
! 128091: cat >conftest.$ac_ext <<_ACEOF
! 128092: /* confdefs.h. */
! 128093: _ACEOF
! 128094: cat confdefs.h >>conftest.$ac_ext
! 128095: cat >>conftest.$ac_ext <<_ACEOF
! 128096: /* end confdefs.h. */
! 128097: $ac_includes_default
! 128098: typedef long ac__type_sizeof_;
1.1 misho 128099: int
128100: main ()
128101: {
1.1.1.3 ! misho 128102: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 128103: test_array [0] = 0
1.1 misho 128104:
128105: ;
128106: return 0;
128107: }
128108: _ACEOF
1.1.1.3 ! misho 128109: rm -f conftest.$ac_objext
! 128110: if { (ac_try="$ac_compile"
! 128111: case "(($ac_try" in
! 128112: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128113: *) ac_try_echo=$ac_try;;
! 128114: esac
! 128115: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128116: (eval "$ac_compile") 2>conftest.er1
! 128117: ac_status=$?
! 128118: grep -v '^ *+' conftest.er1 >conftest.err
! 128119: rm -f conftest.er1
! 128120: cat conftest.err >&5
! 128121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128122: (exit $ac_status); } && {
! 128123: test -z "$ac_c_werror_flag" ||
! 128124: test ! -s conftest.err
! 128125: } && test -s conftest.$ac_objext; then
! 128126: ac_hi=$ac_mid; break
1.1 misho 128127: else
1.1.1.3 ! misho 128128: echo "$as_me: failed program was:" >&5
! 128129: sed 's/^/| /' conftest.$ac_ext >&5
! 128130:
! 128131: ac_lo=`expr $ac_mid + 1`
! 128132: if test $ac_lo -le $ac_mid; then
! 128133: ac_lo= ac_hi=
! 128134: break
! 128135: fi
! 128136: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 128137: fi
1.1.1.3 ! misho 128138:
1.1 misho 128139: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 ! misho 128140: done
! 128141: else
! 128142: echo "$as_me: failed program was:" >&5
! 128143: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128144:
1.1.1.3 ! misho 128145: cat >conftest.$ac_ext <<_ACEOF
! 128146: /* confdefs.h. */
! 128147: _ACEOF
! 128148: cat confdefs.h >>conftest.$ac_ext
! 128149: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 128150: /* end confdefs.h. */
1.1.1.3 ! misho 128151: $ac_includes_default
! 128152: typedef long ac__type_sizeof_;
! 128153: int
! 128154: main ()
! 128155: {
! 128156: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 128157: test_array [0] = 0
1.1 misho 128158:
1.1.1.3 ! misho 128159: ;
! 128160: return 0;
! 128161: }
1.1 misho 128162: _ACEOF
1.1.1.3 ! misho 128163: rm -f conftest.$ac_objext
! 128164: if { (ac_try="$ac_compile"
! 128165: case "(($ac_try" in
! 128166: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128167: *) ac_try_echo=$ac_try;;
! 128168: esac
! 128169: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128170: (eval "$ac_compile") 2>conftest.er1
! 128171: ac_status=$?
! 128172: grep -v '^ *+' conftest.er1 >conftest.err
! 128173: rm -f conftest.er1
! 128174: cat conftest.err >&5
! 128175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128176: (exit $ac_status); } && {
! 128177: test -z "$ac_c_werror_flag" ||
! 128178: test ! -s conftest.err
! 128179: } && test -s conftest.$ac_objext; then
! 128180: ac_hi=-1 ac_mid=-1
! 128181: while :; do
! 128182: cat >conftest.$ac_ext <<_ACEOF
! 128183: /* confdefs.h. */
! 128184: _ACEOF
! 128185: cat confdefs.h >>conftest.$ac_ext
! 128186: cat >>conftest.$ac_ext <<_ACEOF
! 128187: /* end confdefs.h. */
! 128188: $ac_includes_default
! 128189: typedef long ac__type_sizeof_;
! 128190: int
! 128191: main ()
! 128192: {
! 128193: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 128194: test_array [0] = 0
1.1 misho 128195:
1.1.1.3 ! misho 128196: ;
! 128197: return 0;
! 128198: }
! 128199: _ACEOF
! 128200: rm -f conftest.$ac_objext
! 128201: if { (ac_try="$ac_compile"
! 128202: case "(($ac_try" in
! 128203: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128204: *) ac_try_echo=$ac_try;;
! 128205: esac
! 128206: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128207: (eval "$ac_compile") 2>conftest.er1
! 128208: ac_status=$?
! 128209: grep -v '^ *+' conftest.er1 >conftest.err
! 128210: rm -f conftest.er1
! 128211: cat conftest.err >&5
! 128212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128213: (exit $ac_status); } && {
! 128214: test -z "$ac_c_werror_flag" ||
! 128215: test ! -s conftest.err
! 128216: } && test -s conftest.$ac_objext; then
! 128217: ac_lo=$ac_mid; break
1.1 misho 128218: else
1.1.1.3 ! misho 128219: echo "$as_me: failed program was:" >&5
! 128220: sed 's/^/| /' conftest.$ac_ext >&5
! 128221:
! 128222: ac_hi=`expr '(' $ac_mid ')' - 1`
! 128223: if test $ac_mid -le $ac_hi; then
! 128224: ac_lo= ac_hi=
! 128225: break
! 128226: fi
! 128227: ac_mid=`expr 2 '*' $ac_mid`
1.1 misho 128228: fi
128229:
1.1.1.3 ! misho 128230: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128231: done
! 128232: else
! 128233: echo "$as_me: failed program was:" >&5
! 128234: sed 's/^/| /' conftest.$ac_ext >&5
! 128235:
! 128236: ac_lo= ac_hi=
1.1 misho 128237: fi
128238:
1.1.1.3 ! misho 128239: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128240: fi
1.1 misho 128241:
1.1.1.3 ! misho 128242: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128243: # Binary search between lo and hi bounds.
! 128244: while test "x$ac_lo" != "x$ac_hi"; do
! 128245: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 128246: cat >conftest.$ac_ext <<_ACEOF
! 128247: /* confdefs.h. */
1.1 misho 128248: _ACEOF
1.1.1.3 ! misho 128249: cat confdefs.h >>conftest.$ac_ext
! 128250: cat >>conftest.$ac_ext <<_ACEOF
! 128251: /* end confdefs.h. */
! 128252: $ac_includes_default
! 128253: typedef long ac__type_sizeof_;
! 128254: int
! 128255: main ()
! 128256: {
! 128257: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 128258: test_array [0] = 0
1.1 misho 128259:
1.1.1.3 ! misho 128260: ;
! 128261: return 0;
! 128262: }
! 128263: _ACEOF
! 128264: rm -f conftest.$ac_objext
! 128265: if { (ac_try="$ac_compile"
! 128266: case "(($ac_try" in
! 128267: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128268: *) ac_try_echo=$ac_try;;
! 128269: esac
! 128270: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128271: (eval "$ac_compile") 2>conftest.er1
! 128272: ac_status=$?
! 128273: grep -v '^ *+' conftest.er1 >conftest.err
! 128274: rm -f conftest.er1
! 128275: cat conftest.err >&5
! 128276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128277: (exit $ac_status); } && {
! 128278: test -z "$ac_c_werror_flag" ||
! 128279: test ! -s conftest.err
! 128280: } && test -s conftest.$ac_objext; then
! 128281: ac_hi=$ac_mid
1.1 misho 128282: else
1.1.1.3 ! misho 128283: echo "$as_me: failed program was:" >&5
! 128284: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128285:
1.1.1.3 ! misho 128286: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 128287: fi
128288:
1.1.1.3 ! misho 128289: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128290: done
! 128291: case $ac_lo in
! 128292: ?*) ac_cv_sizeof_long=$ac_lo;;
! 128293: '') if test "$ac_cv_type_long" = yes; then
! 128294: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 128295: See \`config.log' for more details." >&5
! 128296: echo "$as_me: error: cannot compute sizeof (long)
! 128297: See \`config.log' for more details." >&2;}
! 128298: { (exit 77); exit 77; }; }
! 128299: else
! 128300: ac_cv_sizeof_long=0
! 128301: fi ;;
! 128302: esac
1.1 misho 128303: else
1.1.1.3 ! misho 128304: cat >conftest.$ac_ext <<_ACEOF
! 128305: /* confdefs.h. */
! 128306: _ACEOF
! 128307: cat confdefs.h >>conftest.$ac_ext
! 128308: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 128309: /* end confdefs.h. */
1.1.1.3 ! misho 128310: $ac_includes_default
! 128311: typedef long ac__type_sizeof_;
! 128312: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 128313: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 128314: #include <stdio.h>
1.1 misho 128315: #include <stdlib.h>
128316: int
128317: main ()
128318: {
1.1.1.3 ! misho 128319:
! 128320: FILE *f = fopen ("conftest.val", "w");
! 128321: if (! f)
! 128322: return 1;
! 128323: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 128324: {
! 128325: long int i = longval ();
! 128326: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 128327: return 1;
! 128328: fprintf (f, "%ld\n", i);
! 128329: }
! 128330: else
! 128331: {
! 128332: unsigned long int i = ulongval ();
! 128333: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 128334: return 1;
! 128335: fprintf (f, "%lu\n", i);
! 128336: }
! 128337: return ferror (f) || fclose (f) != 0;
! 128338:
! 128339: ;
1.1 misho 128340: return 0;
128341: }
128342: _ACEOF
1.1.1.3 ! misho 128343: rm -f conftest$ac_exeext
! 128344: if { (ac_try="$ac_link"
! 128345: case "(($ac_try" in
! 128346: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128347: *) ac_try_echo=$ac_try;;
! 128348: esac
! 128349: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128350: (eval "$ac_link") 2>&5
! 128351: ac_status=$?
! 128352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128353: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 128354: { (case "(($ac_try" in
! 128355: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128356: *) ac_try_echo=$ac_try;;
! 128357: esac
! 128358: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128359: (eval "$ac_try") 2>&5
! 128360: ac_status=$?
! 128361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128362: (exit $ac_status); }; }; then
! 128363: ac_cv_sizeof_long=`cat conftest.val`
1.1 misho 128364: else
1.1.1.3 ! misho 128365: echo "$as_me: program exited with status $ac_status" >&5
! 128366: echo "$as_me: failed program was:" >&5
! 128367: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128368:
1.1.1.3 ! misho 128369: ( exit $ac_status )
! 128370: if test "$ac_cv_type_long" = yes; then
! 128371: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
! 128372: See \`config.log' for more details." >&5
! 128373: echo "$as_me: error: cannot compute sizeof (long)
! 128374: See \`config.log' for more details." >&2;}
! 128375: { (exit 77); exit 77; }; }
! 128376: else
! 128377: ac_cv_sizeof_long=0
! 128378: fi
1.1 misho 128379: fi
1.1.1.3 ! misho 128380: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 128381: fi
1.1.1.3 ! misho 128382: rm -f conftest.val
1.1 misho 128383: fi
1.1.1.3 ! misho 128384: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 128385: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
1.1 misho 128386:
128387:
128388:
1.1.1.3 ! misho 128389: cat >>confdefs.h <<_ACEOF
! 128390: #define SIZEOF_LONG $ac_cv_sizeof_long
! 128391: _ACEOF
1.1 misho 128392:
128393:
1.1.1.3 ! misho 128394: { echo "$as_me:$LINENO: checking for long long" >&5
! 128395: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
! 128396: if test "${ac_cv_type_long_long+set}" = set; then
! 128397: echo $ECHO_N "(cached) $ECHO_C" >&6
! 128398: else
! 128399: cat >conftest.$ac_ext <<_ACEOF
! 128400: /* confdefs.h. */
! 128401: _ACEOF
! 128402: cat confdefs.h >>conftest.$ac_ext
! 128403: cat >>conftest.$ac_ext <<_ACEOF
! 128404: /* end confdefs.h. */
! 128405: $ac_includes_default
! 128406: typedef long long ac__type_new_;
! 128407: int
! 128408: main ()
! 128409: {
! 128410: if ((ac__type_new_ *) 0)
! 128411: return 0;
! 128412: if (sizeof (ac__type_new_))
! 128413: return 0;
! 128414: ;
! 128415: return 0;
! 128416: }
! 128417: _ACEOF
! 128418: rm -f conftest.$ac_objext
! 128419: if { (ac_try="$ac_compile"
! 128420: case "(($ac_try" in
! 128421: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128422: *) ac_try_echo=$ac_try;;
! 128423: esac
! 128424: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128425: (eval "$ac_compile") 2>conftest.er1
! 128426: ac_status=$?
! 128427: grep -v '^ *+' conftest.er1 >conftest.err
! 128428: rm -f conftest.er1
! 128429: cat conftest.err >&5
! 128430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128431: (exit $ac_status); } && {
! 128432: test -z "$ac_c_werror_flag" ||
! 128433: test ! -s conftest.err
! 128434: } && test -s conftest.$ac_objext; then
! 128435: ac_cv_type_long_long=yes
! 128436: else
! 128437: echo "$as_me: failed program was:" >&5
! 128438: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128439:
1.1.1.3 ! misho 128440: ac_cv_type_long_long=no
! 128441: fi
1.1 misho 128442:
1.1.1.3 ! misho 128443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128444: fi
! 128445: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 128446: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
1.1 misho 128447:
128448: # The cast to long int works around a bug in the HP C Compiler
128449: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
128450: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
128451: # This bug is HP SR number 8606223364.
1.1.1.3 ! misho 128452: { echo "$as_me:$LINENO: checking size of long long" >&5
! 128453: echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
! 128454: if test "${ac_cv_sizeof_long_long+set}" = set; then
! 128455: echo $ECHO_N "(cached) $ECHO_C" >&6
! 128456: else
! 128457: if test "$cross_compiling" = yes; then
! 128458: # Depending upon the size, compute the lo and hi bounds.
! 128459: cat >conftest.$ac_ext <<_ACEOF
! 128460: /* confdefs.h. */
! 128461: _ACEOF
! 128462: cat confdefs.h >>conftest.$ac_ext
! 128463: cat >>conftest.$ac_ext <<_ACEOF
! 128464: /* end confdefs.h. */
! 128465: $ac_includes_default
! 128466: typedef long long ac__type_sizeof_;
! 128467: int
! 128468: main ()
! 128469: {
! 128470: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
! 128471: test_array [0] = 0
! 128472:
! 128473: ;
! 128474: return 0;
! 128475: }
! 128476: _ACEOF
! 128477: rm -f conftest.$ac_objext
! 128478: if { (ac_try="$ac_compile"
! 128479: case "(($ac_try" in
! 128480: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128481: *) ac_try_echo=$ac_try;;
! 128482: esac
! 128483: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128484: (eval "$ac_compile") 2>conftest.er1
! 128485: ac_status=$?
! 128486: grep -v '^ *+' conftest.er1 >conftest.err
! 128487: rm -f conftest.er1
! 128488: cat conftest.err >&5
! 128489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128490: (exit $ac_status); } && {
! 128491: test -z "$ac_c_werror_flag" ||
! 128492: test ! -s conftest.err
! 128493: } && test -s conftest.$ac_objext; then
! 128494: ac_lo=0 ac_mid=0
! 128495: while :; do
! 128496: cat >conftest.$ac_ext <<_ACEOF
! 128497: /* confdefs.h. */
! 128498: _ACEOF
! 128499: cat confdefs.h >>conftest.$ac_ext
! 128500: cat >>conftest.$ac_ext <<_ACEOF
! 128501: /* end confdefs.h. */
! 128502: $ac_includes_default
! 128503: typedef long long ac__type_sizeof_;
! 128504: int
! 128505: main ()
! 128506: {
! 128507: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 128508: test_array [0] = 0
1.1 misho 128509:
1.1.1.3 ! misho 128510: ;
! 128511: return 0;
! 128512: }
! 128513: _ACEOF
! 128514: rm -f conftest.$ac_objext
! 128515: if { (ac_try="$ac_compile"
! 128516: case "(($ac_try" in
! 128517: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128518: *) ac_try_echo=$ac_try;;
! 128519: esac
! 128520: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128521: (eval "$ac_compile") 2>conftest.er1
! 128522: ac_status=$?
! 128523: grep -v '^ *+' conftest.er1 >conftest.err
! 128524: rm -f conftest.er1
! 128525: cat conftest.err >&5
! 128526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128527: (exit $ac_status); } && {
! 128528: test -z "$ac_c_werror_flag" ||
! 128529: test ! -s conftest.err
! 128530: } && test -s conftest.$ac_objext; then
! 128531: ac_hi=$ac_mid; break
1.1 misho 128532: else
1.1.1.3 ! misho 128533: echo "$as_me: failed program was:" >&5
! 128534: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128535:
1.1.1.3 ! misho 128536: ac_lo=`expr $ac_mid + 1`
! 128537: if test $ac_lo -le $ac_mid; then
! 128538: ac_lo= ac_hi=
! 128539: break
! 128540: fi
! 128541: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 misho 128542: fi
128543:
1.1.1.3 ! misho 128544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128545: done
! 128546: else
! 128547: echo "$as_me: failed program was:" >&5
! 128548: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128549:
1.1.1.3 ! misho 128550: cat >conftest.$ac_ext <<_ACEOF
! 128551: /* confdefs.h. */
1.1 misho 128552: _ACEOF
1.1.1.3 ! misho 128553: cat confdefs.h >>conftest.$ac_ext
! 128554: cat >>conftest.$ac_ext <<_ACEOF
! 128555: /* end confdefs.h. */
! 128556: $ac_includes_default
! 128557: typedef long long ac__type_sizeof_;
! 128558: int
! 128559: main ()
! 128560: {
! 128561: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
! 128562: test_array [0] = 0
1.1 misho 128563:
1.1.1.3 ! misho 128564: ;
! 128565: return 0;
! 128566: }
! 128567: _ACEOF
! 128568: rm -f conftest.$ac_objext
! 128569: if { (ac_try="$ac_compile"
! 128570: case "(($ac_try" in
! 128571: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128572: *) ac_try_echo=$ac_try;;
! 128573: esac
! 128574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128575: (eval "$ac_compile") 2>conftest.er1
! 128576: ac_status=$?
! 128577: grep -v '^ *+' conftest.er1 >conftest.err
! 128578: rm -f conftest.er1
! 128579: cat conftest.err >&5
! 128580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128581: (exit $ac_status); } && {
! 128582: test -z "$ac_c_werror_flag" ||
! 128583: test ! -s conftest.err
! 128584: } && test -s conftest.$ac_objext; then
! 128585: ac_hi=-1 ac_mid=-1
! 128586: while :; do
! 128587: cat >conftest.$ac_ext <<_ACEOF
! 128588: /* confdefs.h. */
! 128589: _ACEOF
! 128590: cat confdefs.h >>conftest.$ac_ext
! 128591: cat >>conftest.$ac_ext <<_ACEOF
! 128592: /* end confdefs.h. */
! 128593: $ac_includes_default
! 128594: typedef long long ac__type_sizeof_;
! 128595: int
! 128596: main ()
! 128597: {
! 128598: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
! 128599: test_array [0] = 0
1.1 misho 128600:
1.1.1.3 ! misho 128601: ;
! 128602: return 0;
! 128603: }
! 128604: _ACEOF
! 128605: rm -f conftest.$ac_objext
! 128606: if { (ac_try="$ac_compile"
! 128607: case "(($ac_try" in
! 128608: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128609: *) ac_try_echo=$ac_try;;
! 128610: esac
! 128611: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128612: (eval "$ac_compile") 2>conftest.er1
! 128613: ac_status=$?
! 128614: grep -v '^ *+' conftest.er1 >conftest.err
! 128615: rm -f conftest.er1
! 128616: cat conftest.err >&5
! 128617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128618: (exit $ac_status); } && {
! 128619: test -z "$ac_c_werror_flag" ||
! 128620: test ! -s conftest.err
! 128621: } && test -s conftest.$ac_objext; then
! 128622: ac_lo=$ac_mid; break
! 128623: else
! 128624: echo "$as_me: failed program was:" >&5
! 128625: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128626:
1.1.1.3 ! misho 128627: ac_hi=`expr '(' $ac_mid ')' - 1`
! 128628: if test $ac_mid -le $ac_hi; then
! 128629: ac_lo= ac_hi=
! 128630: break
! 128631: fi
! 128632: ac_mid=`expr 2 '*' $ac_mid`
! 128633: fi
1.1 misho 128634:
1.1.1.3 ! misho 128635: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128636: done
1.1 misho 128637: else
1.1.1.3 ! misho 128638: echo "$as_me: failed program was:" >&5
! 128639: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128640:
1.1.1.3 ! misho 128641: ac_lo= ac_hi=
1.1 misho 128642: fi
128643:
1.1.1.3 ! misho 128644: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128645: fi
1.1 misho 128646:
1.1.1.3 ! misho 128647: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128648: # Binary search between lo and hi bounds.
! 128649: while test "x$ac_lo" != "x$ac_hi"; do
! 128650: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 128651: cat >conftest.$ac_ext <<_ACEOF
! 128652: /* confdefs.h. */
1.1 misho 128653: _ACEOF
1.1.1.3 ! misho 128654: cat confdefs.h >>conftest.$ac_ext
! 128655: cat >>conftest.$ac_ext <<_ACEOF
! 128656: /* end confdefs.h. */
! 128657: $ac_includes_default
! 128658: typedef long long ac__type_sizeof_;
! 128659: int
! 128660: main ()
! 128661: {
! 128662: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
! 128663: test_array [0] = 0
1.1 misho 128664:
1.1.1.3 ! misho 128665: ;
! 128666: return 0;
! 128667: }
! 128668: _ACEOF
! 128669: rm -f conftest.$ac_objext
! 128670: if { (ac_try="$ac_compile"
! 128671: case "(($ac_try" in
! 128672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128673: *) ac_try_echo=$ac_try;;
! 128674: esac
! 128675: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128676: (eval "$ac_compile") 2>conftest.er1
! 128677: ac_status=$?
! 128678: grep -v '^ *+' conftest.er1 >conftest.err
! 128679: rm -f conftest.er1
! 128680: cat conftest.err >&5
! 128681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128682: (exit $ac_status); } && {
! 128683: test -z "$ac_c_werror_flag" ||
! 128684: test ! -s conftest.err
! 128685: } && test -s conftest.$ac_objext; then
! 128686: ac_hi=$ac_mid
1.1 misho 128687: else
1.1.1.3 ! misho 128688: echo "$as_me: failed program was:" >&5
! 128689: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 128690:
1.1.1.3 ! misho 128691: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 misho 128692: fi
128693:
1.1.1.3 ! misho 128694: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128695: done
! 128696: case $ac_lo in
! 128697: ?*) ac_cv_sizeof_long_long=$ac_lo;;
! 128698: '') if test "$ac_cv_type_long_long" = yes; then
! 128699: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
! 128700: See \`config.log' for more details." >&5
! 128701: echo "$as_me: error: cannot compute sizeof (long long)
! 128702: See \`config.log' for more details." >&2;}
! 128703: { (exit 77); exit 77; }; }
! 128704: else
! 128705: ac_cv_sizeof_long_long=0
! 128706: fi ;;
! 128707: esac
! 128708: else
! 128709: cat >conftest.$ac_ext <<_ACEOF
! 128710: /* confdefs.h. */
1.1 misho 128711: _ACEOF
1.1.1.3 ! misho 128712: cat confdefs.h >>conftest.$ac_ext
! 128713: cat >>conftest.$ac_ext <<_ACEOF
! 128714: /* end confdefs.h. */
! 128715: $ac_includes_default
! 128716: typedef long long ac__type_sizeof_;
! 128717: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 128718: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 128719: #include <stdio.h>
! 128720: #include <stdlib.h>
! 128721: int
! 128722: main ()
! 128723: {
1.1 misho 128724:
1.1.1.3 ! misho 128725: FILE *f = fopen ("conftest.val", "w");
! 128726: if (! f)
! 128727: return 1;
! 128728: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
! 128729: {
! 128730: long int i = longval ();
! 128731: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 128732: return 1;
! 128733: fprintf (f, "%ld\n", i);
! 128734: }
! 128735: else
! 128736: {
! 128737: unsigned long int i = ulongval ();
! 128738: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 128739: return 1;
! 128740: fprintf (f, "%lu\n", i);
! 128741: }
! 128742: return ferror (f) || fclose (f) != 0;
1.1 misho 128743:
1.1.1.3 ! misho 128744: ;
! 128745: return 0;
! 128746: }
! 128747: _ACEOF
! 128748: rm -f conftest$ac_exeext
! 128749: if { (ac_try="$ac_link"
! 128750: case "(($ac_try" in
! 128751: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128752: *) ac_try_echo=$ac_try;;
! 128753: esac
! 128754: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128755: (eval "$ac_link") 2>&5
! 128756: ac_status=$?
! 128757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128758: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 128759: { (case "(($ac_try" in
! 128760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128761: *) ac_try_echo=$ac_try;;
! 128762: esac
! 128763: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128764: (eval "$ac_try") 2>&5
! 128765: ac_status=$?
! 128766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128767: (exit $ac_status); }; }; then
! 128768: ac_cv_sizeof_long_long=`cat conftest.val`
1.1 misho 128769: else
1.1.1.3 ! misho 128770: echo "$as_me: program exited with status $ac_status" >&5
! 128771: echo "$as_me: failed program was:" >&5
! 128772: sed 's/^/| /' conftest.$ac_ext >&5
! 128773:
! 128774: ( exit $ac_status )
! 128775: if test "$ac_cv_type_long_long" = yes; then
! 128776: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
! 128777: See \`config.log' for more details." >&5
! 128778: echo "$as_me: error: cannot compute sizeof (long long)
! 128779: See \`config.log' for more details." >&2;}
! 128780: { (exit 77); exit 77; }; }
1.1 misho 128781: else
128782: ac_cv_sizeof_long_long=0
128783: fi
128784: fi
1.1.1.3 ! misho 128785: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 128786: fi
! 128787: rm -f conftest.val
1.1 misho 128788: fi
1.1.1.3 ! misho 128789: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
! 128790: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
1.1 misho 128791:
128792:
128793:
128794: cat >>confdefs.h <<_ACEOF
128795: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
128796: _ACEOF
128797:
128798:
1.1.1.3 ! misho 128799: { echo "$as_me:$LINENO: checking for size_t" >&5
! 128800: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
! 128801: if test "${ac_cv_type_size_t+set}" = set; then
! 128802: echo $ECHO_N "(cached) $ECHO_C" >&6
! 128803: else
! 128804: cat >conftest.$ac_ext <<_ACEOF
! 128805: /* confdefs.h. */
! 128806: _ACEOF
! 128807: cat confdefs.h >>conftest.$ac_ext
! 128808: cat >>conftest.$ac_ext <<_ACEOF
! 128809: /* end confdefs.h. */
! 128810: $ac_includes_default
! 128811: typedef size_t ac__type_new_;
! 128812: int
! 128813: main ()
! 128814: {
! 128815: if ((ac__type_new_ *) 0)
! 128816: return 0;
! 128817: if (sizeof (ac__type_new_))
! 128818: return 0;
! 128819: ;
! 128820: return 0;
! 128821: }
! 128822: _ACEOF
! 128823: rm -f conftest.$ac_objext
! 128824: if { (ac_try="$ac_compile"
! 128825: case "(($ac_try" in
! 128826: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128827: *) ac_try_echo=$ac_try;;
! 128828: esac
! 128829: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128830: (eval "$ac_compile") 2>conftest.er1
! 128831: ac_status=$?
! 128832: grep -v '^ *+' conftest.er1 >conftest.err
! 128833: rm -f conftest.er1
! 128834: cat conftest.err >&5
! 128835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128836: (exit $ac_status); } && {
! 128837: test -z "$ac_c_werror_flag" ||
! 128838: test ! -s conftest.err
! 128839: } && test -s conftest.$ac_objext; then
! 128840: ac_cv_type_size_t=yes
! 128841: else
! 128842: echo "$as_me: failed program was:" >&5
! 128843: sed 's/^/| /' conftest.$ac_ext >&5
! 128844:
! 128845: ac_cv_type_size_t=no
! 128846: fi
! 128847:
! 128848: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 128849: fi
! 128850: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 128851: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
! 128852: if test $ac_cv_type_size_t = yes; then
! 128853: :
1.1 misho 128854: else
128855:
128856: cat >>confdefs.h <<_ACEOF
128857: #define size_t unsigned int
128858: _ACEOF
128859:
128860: fi
128861:
1.1.1.3 ! misho 128862: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
! 128863: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
! 128864: if test "${ac_cv_header_time+set}" = set; then
! 128865: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 128866: else
1.1.1.3 ! misho 128867: cat >conftest.$ac_ext <<_ACEOF
! 128868: /* confdefs.h. */
! 128869: _ACEOF
! 128870: cat confdefs.h >>conftest.$ac_ext
! 128871: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 128872: /* end confdefs.h. */
128873: #include <sys/types.h>
128874: #include <sys/time.h>
128875: #include <time.h>
128876:
128877: int
128878: main ()
128879: {
128880: if ((struct tm *) 0)
128881: return 0;
128882: ;
128883: return 0;
128884: }
128885: _ACEOF
1.1.1.3 ! misho 128886: rm -f conftest.$ac_objext
! 128887: if { (ac_try="$ac_compile"
! 128888: case "(($ac_try" in
! 128889: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 128890: *) ac_try_echo=$ac_try;;
! 128891: esac
! 128892: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 128893: (eval "$ac_compile") 2>conftest.er1
! 128894: ac_status=$?
! 128895: grep -v '^ *+' conftest.er1 >conftest.err
! 128896: rm -f conftest.er1
! 128897: cat conftest.err >&5
! 128898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 128899: (exit $ac_status); } && {
! 128900: test -z "$ac_c_werror_flag" ||
! 128901: test ! -s conftest.err
! 128902: } && test -s conftest.$ac_objext; then
1.1 misho 128903: ac_cv_header_time=yes
128904: else
1.1.1.3 ! misho 128905: echo "$as_me: failed program was:" >&5
! 128906: sed 's/^/| /' conftest.$ac_ext >&5
! 128907:
! 128908: ac_cv_header_time=no
1.1 misho 128909: fi
1.1.1.3 ! misho 128910:
1.1 misho 128911: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
128912: fi
1.1.1.3 ! misho 128913: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
! 128914: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.1 misho 128915: if test $ac_cv_header_time = yes; then
128916:
1.1.1.3 ! misho 128917: cat >>confdefs.h <<\_ACEOF
! 128918: #define TIME_WITH_SYS_TIME 1
! 128919: _ACEOF
1.1 misho 128920:
128921: fi
128922:
1.1.1.3 ! misho 128923: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
! 128924: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
! 128925: if test "${ac_cv_type_uid_t+set}" = set; then
! 128926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 128927: else
1.1.1.3 ! misho 128928: cat >conftest.$ac_ext <<_ACEOF
! 128929: /* confdefs.h. */
! 128930: _ACEOF
! 128931: cat confdefs.h >>conftest.$ac_ext
! 128932: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 128933: /* end confdefs.h. */
128934: #include <sys/types.h>
128935:
128936: _ACEOF
128937: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 128938: $EGREP "uid_t" >/dev/null 2>&1; then
1.1 misho 128939: ac_cv_type_uid_t=yes
128940: else
128941: ac_cv_type_uid_t=no
128942: fi
1.1.1.3 ! misho 128943: rm -f -r conftest*
1.1 misho 128944:
128945: fi
1.1.1.3 ! misho 128946: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
! 128947: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.1 misho 128948: if test $ac_cv_type_uid_t = no; then
128949:
1.1.1.3 ! misho 128950: cat >>confdefs.h <<\_ACEOF
! 128951: #define uid_t int
! 128952: _ACEOF
1.1 misho 128953:
128954:
1.1.1.3 ! misho 128955: cat >>confdefs.h <<\_ACEOF
! 128956: #define gid_t int
! 128957: _ACEOF
1.1 misho 128958:
128959: fi
128960:
128961:
128962:
128963:
128964:
128965:
128966: # Standard XMLRPC list
1.1.1.3 ! misho 128967:
! 128968:
! 128969:
! 128970:
! 128971:
! 128972:
! 128973:
! 128974:
1.1 misho 128975: for ac_func in \
128976: strtoul strtoull snprintf \
128977: strstr strpbrk strerror\
128978: memcpy memmove
1.1.1.3 ! misho 128979: do
! 128980: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 128981: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 128982: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 128983: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 128984: echo $ECHO_N "(cached) $ECHO_C" >&6
! 128985: else
! 128986: cat >conftest.$ac_ext <<_ACEOF
! 128987: /* confdefs.h. */
! 128988: _ACEOF
! 128989: cat confdefs.h >>conftest.$ac_ext
! 128990: cat >>conftest.$ac_ext <<_ACEOF
! 128991: /* end confdefs.h. */
! 128992: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 128993: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 128994: #define $ac_func innocuous_$ac_func
! 128995:
! 128996: /* System header to define __stub macros and hopefully few prototypes,
! 128997: which can conflict with char $ac_func (); below.
! 128998: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 128999: <limits.h> exists even on freestanding compilers. */
! 129000:
! 129001: #ifdef __STDC__
! 129002: # include <limits.h>
! 129003: #else
! 129004: # include <assert.h>
! 129005: #endif
! 129006:
! 129007: #undef $ac_func
! 129008:
! 129009: /* Override any GCC internal prototype to avoid an error.
! 129010: Use char because int might match the return type of a GCC
! 129011: builtin and then its argument prototype would still apply. */
! 129012: #ifdef __cplusplus
! 129013: extern "C"
! 129014: #endif
! 129015: char $ac_func ();
! 129016: /* The GNU C library defines this for functions which it implements
! 129017: to always fail with ENOSYS. Some functions are actually named
! 129018: something starting with __ and the normal name is an alias. */
! 129019: #if defined __stub_$ac_func || defined __stub___$ac_func
! 129020: choke me
! 129021: #endif
! 129022:
! 129023: int
! 129024: main ()
! 129025: {
! 129026: return $ac_func ();
! 129027: ;
! 129028: return 0;
! 129029: }
! 129030: _ACEOF
! 129031: rm -f conftest.$ac_objext conftest$ac_exeext
! 129032: if { (ac_try="$ac_link"
! 129033: case "(($ac_try" in
! 129034: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 129035: *) ac_try_echo=$ac_try;;
! 129036: esac
! 129037: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 129038: (eval "$ac_link") 2>conftest.er1
! 129039: ac_status=$?
! 129040: grep -v '^ *+' conftest.er1 >conftest.err
! 129041: rm -f conftest.er1
! 129042: cat conftest.err >&5
! 129043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 129044: (exit $ac_status); } && {
! 129045: test -z "$ac_c_werror_flag" ||
! 129046: test ! -s conftest.err
! 129047: } && test -s conftest$ac_exeext &&
! 129048: $as_test_x conftest$ac_exeext; then
! 129049: eval "$as_ac_var=yes"
! 129050: else
! 129051: echo "$as_me: failed program was:" >&5
! 129052: sed 's/^/| /' conftest.$ac_ext >&5
! 129053:
! 129054: eval "$as_ac_var=no"
! 129055: fi
! 129056:
! 129057: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 129058: conftest$ac_exeext conftest.$ac_ext
! 129059: fi
! 129060: ac_res=`eval echo '${'$as_ac_var'}'`
! 129061: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 129062: echo "${ECHO_T}$ac_res" >&6; }
! 129063: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 129064: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 129065: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 129066: _ACEOF
129067:
129068: fi
129069: done
129070:
129071:
129072:
129073:
129074:
129075: ext_builddir=ext/xmlrpc
129076: ext_srcdir=$abs_srcdir/ext/xmlrpc
129077:
129078: ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
129079:
129080: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
129081: PHP_XMLRPC_SHARED=no
129082:
129083:
129084: case ext/xmlrpc in
129085: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129086: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129087: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129088: esac
129089:
129090:
129091:
129092: b_c_pre=$php_c_pre
129093: b_cxx_pre=$php_cxx_pre
129094: b_c_meta=$php_c_meta
129095: b_cxx_meta=$php_cxx_meta
129096: b_c_post=$php_c_post
129097: b_cxx_post=$php_cxx_post
129098: b_lo=$php_lo
129099:
129100:
129101: old_IFS=$IFS
129102: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
129103: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
129104: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
129105: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
129106: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
129107: libxmlrpc/xml_to_soap.c; do
129108:
129109: IFS=.
129110: set $ac_src
129111: ac_obj=$1
129112: IFS=$old_IFS
129113:
129114: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
129115:
129116: case $ac_src in
129117: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129118: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129119: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129120: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129121: esac
129122:
129123: cat >>Makefile.objects<<EOF
129124: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129125: $ac_comp
129126: EOF
129127: done
129128:
129129:
129130: EXT_STATIC="$EXT_STATIC xmlrpc"
129131: if test "$ext_shared" != "nocli"; then
129132: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
129133: fi
129134: else
129135: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
129136: PHP_XMLRPC_SHARED=yes
129137:
129138: case ext/xmlrpc in
129139: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129140: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129141: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129142: esac
129143:
129144:
129145:
129146: b_c_pre=$shared_c_pre
129147: b_cxx_pre=$shared_cxx_pre
129148: b_c_meta=$shared_c_meta
129149: b_cxx_meta=$shared_cxx_meta
129150: b_c_post=$shared_c_post
129151: b_cxx_post=$shared_cxx_post
129152: b_lo=$shared_lo
129153:
129154:
129155: old_IFS=$IFS
129156: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
129157: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
129158: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
129159: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
129160: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
129161: libxmlrpc/xml_to_soap.c; do
129162:
129163: IFS=.
129164: set $ac_src
129165: ac_obj=$1
129166: IFS=$old_IFS
129167:
129168: shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
129169:
129170: case $ac_src in
129171: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129172: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129173: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129174: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129175: esac
129176:
129177: cat >>Makefile.objects<<EOF
129178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129179: $ac_comp
129180: EOF
129181: done
129182:
129183: case $host_alias in
129184: *netware*)
129185:
129186: install_modules="install-modules"
129187:
129188: case $host_alias in
129189: *aix*)
129190: suffix=so
129191: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlrpc.so '$ext_builddir'/phpxmlrpc.so'
129192: ;;
129193: *netware*)
129194: suffix=nlm
129195: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(XMLRPC_SHARED_LIBADD)'
129196: ;;
129197: *)
129198: suffix=la
129199: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD)'
129200: ;;
129201: esac
129202:
129203: if test "x" = "xyes"; then
129204: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
129205: else
129206: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
129207: fi
129208:
129209: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
129210:
129211: cat >>Makefile.objects<<EOF
129212: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
129213: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
129214:
129215: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
129216: $link_cmd
129217:
129218: EOF
129219:
129220: ;;
129221: *)
129222:
129223: install_modules="install-modules"
129224:
129225: case $host_alias in
129226: *aix*)
129227: suffix=so
129228: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlrpc.so '$ext_builddir'/xmlrpc.so'
129229: ;;
129230: *netware*)
129231: suffix=nlm
129232: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(RPC_SHARED_LIBADD)'
129233: ;;
129234: *)
129235: suffix=la
129236: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD)'
129237: ;;
129238: esac
129239:
129240: if test "x" = "xyes"; then
129241: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
129242: else
129243: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
129244: fi
129245:
129246: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
129247:
129248: cat >>Makefile.objects<<EOF
129249: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
129250: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
129251:
129252: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
129253: $link_cmd
129254:
129255: EOF
129256:
129257: ;;
129258: esac
129259:
129260: cat >>confdefs.h <<_ACEOF
129261: #define COMPILE_DL_XMLRPC 1
129262: _ACEOF
129263:
129264: fi
129265: fi
129266:
129267: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
129268: PHP_XMLRPC_SHARED=no
1.1.1.3 ! misho 129269: case "$PHP_SAPI" in
! 129270: cgi|embed)
1.1 misho 129271:
129272:
129273: case ext/xmlrpc in
129274: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129275: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129276: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129277: esac
129278:
129279:
129280:
129281: b_c_pre=$php_c_pre
129282: b_cxx_pre=$php_cxx_pre
129283: b_c_meta=$php_c_meta
129284: b_cxx_meta=$php_cxx_meta
129285: b_c_post=$php_c_post
129286: b_cxx_post=$php_cxx_post
129287: b_lo=$php_lo
129288:
129289:
129290: old_IFS=$IFS
129291: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
129292: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
129293: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
129294: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
129295: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
129296: libxmlrpc/xml_to_soap.c; do
129297:
129298: IFS=.
129299: set $ac_src
129300: ac_obj=$1
129301: IFS=$old_IFS
129302:
1.1.1.2 misho 129303: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 129304:
129305: case $ac_src in
129306: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129307: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129308: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129309: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129310: esac
129311:
129312: cat >>Makefile.objects<<EOF
129313: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129314: $ac_comp
129315: EOF
129316: done
129317:
129318:
1.1.1.3 ! misho 129319: EXT_STATIC="$EXT_STATIC xmlrpc"
! 129320: ;;
! 129321: *)
1.1 misho 129322:
129323:
129324: case ext/xmlrpc in
129325: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129326: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129327: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129328: esac
129329:
129330:
129331:
129332: b_c_pre=$php_c_pre
129333: b_cxx_pre=$php_cxx_pre
129334: b_c_meta=$php_c_meta
129335: b_cxx_meta=$php_cxx_meta
129336: b_c_post=$php_c_post
129337: b_cxx_post=$php_cxx_post
129338: b_lo=$php_lo
129339:
129340:
129341: old_IFS=$IFS
129342: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
129343: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
129344: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
129345: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
129346: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
129347: libxmlrpc/xml_to_soap.c; do
129348:
129349: IFS=.
129350: set $ac_src
129351: ac_obj=$1
129352: IFS=$old_IFS
129353:
1.1.1.2 misho 129354: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 129355:
129356: case $ac_src in
129357: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129358: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129359: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129360: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129361: esac
129362:
129363: cat >>Makefile.objects<<EOF
129364: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129365: $ac_comp
129366: EOF
129367: done
129368:
129369:
1.1.1.3 ! misho 129370: ;;
! 129371: esac
1.1 misho 129372: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
129373: fi
129374:
129375:
129376: BUILD_DIR="$BUILD_DIR $ext_builddir"
129377:
129378:
129379:
129380: if test "$ext_builddir" = "."; then
129381: PHP_PECL_EXTENSION=xmlrpc
129382:
129383: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
129384:
129385: fi
129386:
129387:
129388:
129389: BUILD_DIR="$BUILD_DIR $ext_builddir/libxmlrpc"
129390:
129391:
129392: XMLRPC_MODULE_TYPE=builtin
129393:
129394: elif test "$PHP_XMLRPC" != "no"; then
129395:
129396: if test -r $PHP_XMLRPC/include/xmlrpc.h; then
129397: XMLRPC_DIR=$PHP_XMLRPC/include
129398: elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then
129399: XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi
129400: else
1.1.1.3 ! misho 129401: { echo "$as_me:$LINENO: checking for XMLRPC-EPI in default path" >&5
! 129402: echo $ECHO_N "checking for XMLRPC-EPI in default path... $ECHO_C" >&6; }
1.1 misho 129403: for i in /usr/local /usr; do
129404: if test -r $i/include/xmlrpc.h; then
129405: XMLRPC_DIR=$i/include
1.1.1.3 ! misho 129406: { echo "$as_me:$LINENO: result: found in $i" >&5
! 129407: echo "${ECHO_T}found in $i" >&6; }
1.1 misho 129408: break
129409: fi
129410: done
129411: fi
129412:
129413: if test -z "$XMLRPC_DIR"; then
1.1.1.3 ! misho 129414: { echo "$as_me:$LINENO: result: not found" >&5
! 129415: echo "${ECHO_T}not found" >&6; }
! 129416: { { echo "$as_me:$LINENO: error: Please reinstall the XMLRPC-EPI distribution" >&5
! 129417: echo "$as_me: error: Please reinstall the XMLRPC-EPI distribution" >&2;}
! 129418: { (exit 1); exit 1; }; }
1.1 misho 129419: fi
129420:
129421:
129422: if test "$XMLRPC_DIR" != "/usr/include"; then
129423:
129424: if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then
129425: ai_p=$XMLRPC_DIR
129426: else
129427:
129428: ep_dir="`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
129429:
129430: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129431: ai_p="$ep_realdir/`basename \"$XMLRPC_DIR\"`"
129432: fi
129433:
129434:
129435:
129436: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129437:
129438: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
129439: if test -n "$unique" && test "`eval $cmd`" = "" ; then
129440: eval "INCLUDEPATH$unique=set"
129441:
129442: if test ""; then
129443: INCLUDES="-I$ai_p $INCLUDES"
129444: else
129445: INCLUDES="$INCLUDES -I$ai_p"
129446: fi
129447:
129448: fi
129449:
129450: fi
129451:
129452:
129453:
129454: if test "$ext_shared" = "yes"; then
129455: XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD"
129456: if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
129457:
129458: if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
129459:
129460: if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
129461: ai_p=$XMLRPC_DIR/$PHP_LIBDIR
129462: else
129463:
129464: ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
129465:
129466: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129467: ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
129468: fi
129469:
129470:
129471: if test "$ext_shared" = "yes"; then
129472: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
129473: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
129474: else
129475:
129476:
129477:
129478: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129479:
129480: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
129481: if test -n "$unique" && test "`eval $cmd`" = "" ; then
129482: eval "LIBPATH$unique=set"
129483:
129484: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
129485: LDFLAGS="$LDFLAGS -L$ai_p"
129486: PHP_RPATHS="$PHP_RPATHS $ai_p"
129487:
129488: fi
129489:
129490:
129491: fi
129492:
129493: fi
129494:
129495: fi
129496: else
129497:
129498:
129499: if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
129500:
129501: if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
129502:
129503: if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
129504: ai_p=$XMLRPC_DIR/$PHP_LIBDIR
129505: else
129506:
129507: ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
129508:
129509: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129510: ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
129511: fi
129512:
129513:
129514:
129515:
129516:
129517: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129518:
129519: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
129520: if test -n "$unique" && test "`eval $cmd`" = "" ; then
129521: eval "LIBPATH$unique=set"
129522:
129523: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
129524: LDFLAGS="$LDFLAGS -L$ai_p"
129525: PHP_RPATHS="$PHP_RPATHS $ai_p"
129526:
129527: fi
129528:
129529:
129530:
129531: fi
129532:
129533: fi
129534:
129535:
129536: case xmlrpc in
129537: c|c_r|pthread*) ;;
129538: *)
129539: LIBS="-lxmlrpc $LIBS"
129540: ;;
129541: esac
129542:
129543:
129544:
129545:
129546: fi
129547:
129548:
129549:
129550: ext_builddir=ext/xmlrpc
129551: ext_srcdir=$abs_srcdir/ext/xmlrpc
129552:
129553: ac_extra=
129554:
129555: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
129556: PHP_XMLRPC_SHARED=no
129557:
129558:
129559: case ext/xmlrpc in
129560: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129561: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129562: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129563: esac
129564:
129565:
129566:
129567: b_c_pre=$php_c_pre
129568: b_cxx_pre=$php_cxx_pre
129569: b_c_meta=$php_c_meta
129570: b_cxx_meta=$php_cxx_meta
129571: b_c_post=$php_c_post
129572: b_cxx_post=$php_cxx_post
129573: b_lo=$php_lo
129574:
129575:
129576: old_IFS=$IFS
129577: for ac_src in xmlrpc-epi-php.c; do
129578:
129579: IFS=.
129580: set $ac_src
129581: ac_obj=$1
129582: IFS=$old_IFS
129583:
129584: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
129585:
129586: case $ac_src in
129587: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129588: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129589: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129590: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129591: esac
129592:
129593: cat >>Makefile.objects<<EOF
129594: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129595: $ac_comp
129596: EOF
129597: done
129598:
129599:
129600: EXT_STATIC="$EXT_STATIC xmlrpc"
129601: if test "$ext_shared" != "nocli"; then
129602: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
129603: fi
129604: else
129605: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
129606: PHP_XMLRPC_SHARED=yes
129607:
129608: case ext/xmlrpc in
129609: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129610: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129611: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129612: esac
129613:
129614:
129615:
129616: b_c_pre=$shared_c_pre
129617: b_cxx_pre=$shared_cxx_pre
129618: b_c_meta=$shared_c_meta
129619: b_cxx_meta=$shared_cxx_meta
129620: b_c_post=$shared_c_post
129621: b_cxx_post=$shared_cxx_post
129622: b_lo=$shared_lo
129623:
129624:
129625: old_IFS=$IFS
129626: for ac_src in xmlrpc-epi-php.c; do
129627:
129628: IFS=.
129629: set $ac_src
129630: ac_obj=$1
129631: IFS=$old_IFS
129632:
129633: shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
129634:
129635: case $ac_src in
129636: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129637: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129638: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129639: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129640: esac
129641:
129642: cat >>Makefile.objects<<EOF
129643: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129644: $ac_comp
129645: EOF
129646: done
129647:
129648: case $host_alias in
129649: *netware*)
129650:
129651: install_modules="install-modules"
129652:
129653: case $host_alias in
129654: *aix*)
129655: suffix=so
129656: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlrpc.so '$ext_builddir'/phpxmlrpc.so'
129657: ;;
129658: *netware*)
129659: suffix=nlm
129660: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(XMLRPC_SHARED_LIBADD)'
129661: ;;
129662: *)
129663: suffix=la
129664: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD)'
129665: ;;
129666: esac
129667:
129668: if test "x" = "xyes"; then
129669: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
129670: else
129671: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
129672: fi
129673:
129674: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
129675:
129676: cat >>Makefile.objects<<EOF
129677: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
129678: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
129679:
129680: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
129681: $link_cmd
129682:
129683: EOF
129684:
129685: ;;
129686: *)
129687:
129688: install_modules="install-modules"
129689:
129690: case $host_alias in
129691: *aix*)
129692: suffix=so
129693: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlrpc.so '$ext_builddir'/xmlrpc.so'
129694: ;;
129695: *netware*)
129696: suffix=nlm
129697: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(RPC_SHARED_LIBADD)'
129698: ;;
129699: *)
129700: suffix=la
129701: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD)'
129702: ;;
129703: esac
129704:
129705: if test "x" = "xyes"; then
129706: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
129707: else
129708: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
129709: fi
129710:
129711: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
129712:
129713: cat >>Makefile.objects<<EOF
129714: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
129715: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
129716:
129717: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
129718: $link_cmd
129719:
129720: EOF
129721:
129722: ;;
129723: esac
129724:
129725: cat >>confdefs.h <<_ACEOF
129726: #define COMPILE_DL_XMLRPC 1
129727: _ACEOF
129728:
129729: fi
129730: fi
129731:
129732: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
129733: PHP_XMLRPC_SHARED=no
1.1.1.3 ! misho 129734: case "$PHP_SAPI" in
! 129735: cgi|embed)
1.1 misho 129736:
129737:
129738: case ext/xmlrpc in
129739: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129740: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129741: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129742: esac
129743:
129744:
129745:
129746: b_c_pre=$php_c_pre
129747: b_cxx_pre=$php_cxx_pre
129748: b_c_meta=$php_c_meta
129749: b_cxx_meta=$php_cxx_meta
129750: b_c_post=$php_c_post
129751: b_cxx_post=$php_cxx_post
129752: b_lo=$php_lo
129753:
129754:
129755: old_IFS=$IFS
129756: for ac_src in xmlrpc-epi-php.c; do
129757:
129758: IFS=.
129759: set $ac_src
129760: ac_obj=$1
129761: IFS=$old_IFS
129762:
1.1.1.2 misho 129763: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 129764:
129765: case $ac_src in
129766: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129767: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129768: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129769: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129770: esac
129771:
129772: cat >>Makefile.objects<<EOF
129773: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129774: $ac_comp
129775: EOF
129776: done
129777:
129778:
1.1.1.3 ! misho 129779: EXT_STATIC="$EXT_STATIC xmlrpc"
! 129780: ;;
! 129781: *)
1.1 misho 129782:
129783:
129784: case ext/xmlrpc in
129785: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
129786: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
129787: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
129788: esac
129789:
129790:
129791:
129792: b_c_pre=$php_c_pre
129793: b_cxx_pre=$php_cxx_pre
129794: b_c_meta=$php_c_meta
129795: b_cxx_meta=$php_cxx_meta
129796: b_c_post=$php_c_post
129797: b_cxx_post=$php_cxx_post
129798: b_lo=$php_lo
129799:
129800:
129801: old_IFS=$IFS
129802: for ac_src in xmlrpc-epi-php.c; do
129803:
129804: IFS=.
129805: set $ac_src
129806: ac_obj=$1
129807: IFS=$old_IFS
129808:
1.1.1.2 misho 129809: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 129810:
129811: case $ac_src in
129812: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129813: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129814: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
129815: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
129816: esac
129817:
129818: cat >>Makefile.objects<<EOF
129819: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
129820: $ac_comp
129821: EOF
129822: done
129823:
129824:
1.1.1.3 ! misho 129825: ;;
! 129826: esac
1.1 misho 129827: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
129828: fi
129829:
129830:
129831: BUILD_DIR="$BUILD_DIR $ext_builddir"
129832:
129833:
129834:
129835: if test "$ext_builddir" = "."; then
129836: PHP_PECL_EXTENSION=xmlrpc
129837:
129838: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
129839:
129840: fi
129841:
129842: XMLRPC_MODULE_TYPE=external
129843: fi
129844:
129845:
129846:
129847: php_enable_xmlwriter=yes
129848:
1.1.1.3 ! misho 129849: { echo "$as_me:$LINENO: checking whether to enable XMLWriter support" >&5
! 129850: echo $ECHO_N "checking whether to enable XMLWriter support... $ECHO_C" >&6; }
1.1 misho 129851: # Check whether --enable-xmlwriter was given.
1.1.1.3 ! misho 129852: if test "${enable_xmlwriter+set}" = set; then
1.1 misho 129853: enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval
129854: else
129855:
129856: PHP_XMLWRITER=yes
129857: test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL
129858:
129859: fi
129860:
129861:
129862:
129863: ext_output="yes, shared"
129864: ext_shared=yes
129865: case $PHP_XMLWRITER in
129866: shared,*)
129867: PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'`
129868: ;;
129869: shared)
129870: PHP_XMLWRITER=yes
129871: ;;
129872: no)
129873: ext_output=no
129874: ext_shared=no
129875: ;;
129876: *)
129877: ext_output=yes
129878: ext_shared=no
129879: ;;
129880: esac
129881:
129882:
129883:
1.1.1.3 ! misho 129884: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 129885: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 129886:
129887:
129888:
129889:
129890: if test -z "$PHP_LIBXML_DIR"; then
129891:
129892: php_with_libxml_dir=no
129893:
1.1.1.3 ! misho 129894: { echo "$as_me:$LINENO: checking libxml2 install dir" >&5
! 129895: echo $ECHO_N "checking libxml2 install dir... $ECHO_C" >&6; }
1.1 misho 129896:
129897: # Check whether --with-libxml-dir was given.
1.1.1.3 ! misho 129898: if test "${with_libxml_dir+set}" = set; then
1.1 misho 129899: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
129900: else
129901:
129902: PHP_LIBXML_DIR=no
129903:
129904:
129905: fi
129906:
129907:
129908: ext_output=$PHP_LIBXML_DIR
1.1.1.3 ! misho 129909: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 129910: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 129911:
129912:
129913:
129914: fi
129915:
129916: if test "$PHP_XMLWRITER" != "no"; then
129917:
129918: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 129919: { { echo "$as_me:$LINENO: error: XMLWriter extension requires LIBXML extension, add --enable-libxml" >&5
! 129920: echo "$as_me: error: XMLWriter extension requires LIBXML extension, add --enable-libxml" >&2;}
! 129921: { (exit 1); exit 1; }; }
1.1 misho 129922: fi
129923:
129924:
1.1.1.3 ! misho 129925: { echo "$as_me:$LINENO: checking for xml2-config path" >&5
! 129926: echo $ECHO_N "checking for xml2-config path... $ECHO_C" >&6; }
! 129927: if test "${ac_cv_php_xml2_config_path+set}" = set; then
! 129928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 129929: else
129930:
129931: for i in $PHP_LIBXML_DIR /usr/local /usr; do
129932: if test -x "$i/bin/xml2-config"; then
129933: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
129934: break
129935: fi
129936: done
129937:
129938: fi
1.1.1.3 ! misho 129939: { echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
! 129940: echo "${ECHO_T}$ac_cv_php_xml2_config_path" >&6; }
1.1 misho 129941:
129942: if test -x "$ac_cv_php_xml2_config_path"; then
129943: XML2_CONFIG="$ac_cv_php_xml2_config_path"
129944: libxml_full_version=`$XML2_CONFIG --version`
129945: ac_IFS=$IFS
129946: IFS="."
129947: set $libxml_full_version
129948: IFS=$ac_IFS
129949: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
129950: if test "$LIBXML_VERSION" -ge "2006011"; then
129951: LIBXML_LIBS=`$XML2_CONFIG --libs`
129952: LIBXML_INCS=`$XML2_CONFIG --cflags`
129953:
129954: for ac_i in $LIBXML_LIBS; do
129955: case $ac_i in
129956: -pthread)
129957: if test "$ext_shared" = "yes"; then
129958: XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread"
129959: else
129960:
129961:
129962: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
129963:
129964: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
129965: if test -n "$unique" && test "`eval $cmd`" = "" ; then
129966: eval "EXTRA_LDFLAGS$unique=set"
129967: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
129968: fi
129969:
129970: fi
129971: ;;
129972: -l*)
129973: ac_ii=`echo $ac_i|cut -c 3-`
129974:
129975:
129976: case $ac_ii in
129977: c|c_r|pthread*) ;;
129978: *)
129979: if test "$ext_shared" = "yes"; then
129980: XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii"
129981: else
129982:
129983:
129984: case $ac_ii in
129985: c|c_r|pthread*) ;;
129986: *)
129987: LIBS="$LIBS -l$ac_ii"
129988: ;;
129989: esac
129990:
129991:
129992: fi
129993: ;;
129994: esac
129995:
129996:
129997: ;;
129998: -L*)
129999: ac_ii=`echo $ac_i|cut -c 3-`
130000:
130001: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
130002:
130003: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
130004: ai_p=$ac_ii
130005: else
130006:
130007: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
130008:
130009: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130010: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
130011: fi
130012:
130013:
130014: if test "$ext_shared" = "yes"; then
130015: XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD"
130016: test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD"
130017: else
130018:
130019:
130020:
130021: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130022:
130023: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
130024: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130025: eval "LIBPATH$unique=set"
130026:
130027: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
130028: LDFLAGS="$LDFLAGS -L$ai_p"
130029: PHP_RPATHS="$PHP_RPATHS $ai_p"
130030:
130031: fi
130032:
130033:
130034: fi
130035:
130036: fi
130037:
130038: ;;
130039: esac
130040: done
130041:
130042:
130043: for ac_i in $LIBXML_INCS; do
130044: case $ac_i in
130045: -I*)
130046: ac_ii=`echo $ac_i|cut -c 3-`
130047:
130048: if test "$ac_ii" != "/usr/include"; then
130049:
130050: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
130051: ai_p=$ac_ii
130052: else
130053:
130054: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
130055:
130056: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130057: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
130058: fi
130059:
130060:
130061:
130062: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130063:
130064: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
130065: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130066: eval "INCLUDEPATH$unique=set"
130067:
130068: if test ""; then
130069: INCLUDES="-I$ai_p $INCLUDES"
130070: else
130071: INCLUDES="$INCLUDES -I$ai_p"
130072: fi
130073:
130074: fi
130075:
130076: fi
130077:
130078: ;;
130079: esac
130080: done
130081:
130082:
1.1.1.3 ! misho 130083: { echo "$as_me:$LINENO: checking whether libxml build works" >&5
! 130084: echo $ECHO_N "checking whether libxml build works... $ECHO_C" >&6; }
! 130085: if test "${php_cv_libxml_build_works+set}" = set; then
! 130086: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 130087: else
130088:
130089:
130090: old_LIBS=$LIBS
130091: LIBS="
130092: $XMLWRITER_SHARED_LIBADD
130093: $LIBS"
1.1.1.3 ! misho 130094: if test "$cross_compiling" = yes; then
1.1 misho 130095:
130096: LIBS=$old_LIBS
130097:
130098: else
1.1.1.3 ! misho 130099: cat >conftest.$ac_ext <<_ACEOF
! 130100: /* confdefs.h. */
! 130101: _ACEOF
! 130102: cat confdefs.h >>conftest.$ac_ext
! 130103: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 130104: /* end confdefs.h. */
130105:
130106:
130107: char xmlInitParser();
130108: int main() {
130109: xmlInitParser();
130110: return 0;
130111: }
130112:
130113: _ACEOF
1.1.1.3 ! misho 130114: rm -f conftest$ac_exeext
! 130115: if { (ac_try="$ac_link"
! 130116: case "(($ac_try" in
! 130117: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 130118: *) ac_try_echo=$ac_try;;
! 130119: esac
! 130120: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 130121: (eval "$ac_link") 2>&5
! 130122: ac_status=$?
! 130123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 130124: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 130125: { (case "(($ac_try" in
! 130126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 130127: *) ac_try_echo=$ac_try;;
! 130128: esac
! 130129: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 130130: (eval "$ac_try") 2>&5
! 130131: ac_status=$?
! 130132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 130133: (exit $ac_status); }; }; then
1.1 misho 130134:
130135: LIBS=$old_LIBS
130136:
130137: php_cv_libxml_build_works=yes
130138:
130139:
130140: else
1.1.1.3 ! misho 130141: echo "$as_me: program exited with status $ac_status" >&5
! 130142: echo "$as_me: failed program was:" >&5
! 130143: sed 's/^/| /' conftest.$ac_ext >&5
! 130144:
! 130145: ( exit $ac_status )
1.1 misho 130146:
130147: LIBS=$old_LIBS
130148:
1.1.1.3 ! misho 130149: { echo "$as_me:$LINENO: result: no" >&5
! 130150: echo "${ECHO_T}no" >&6; }
! 130151: { { echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
! 130152: echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
! 130153: { (exit 1); exit 1; }; }
1.1 misho 130154:
130155:
130156: fi
1.1.1.3 ! misho 130157: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 130158: fi
130159:
130160:
130161:
1.1.1.3 ! misho 130162:
1.1 misho 130163: fi
1.1.1.3 ! misho 130164: { echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
! 130165: echo "${ECHO_T}$php_cv_libxml_build_works" >&6; }
1.1 misho 130166: if test "$php_cv_libxml_build_works" = "yes"; then
130167:
1.1.1.3 ! misho 130168: cat >>confdefs.h <<\_ACEOF
! 130169: #define HAVE_LIBXML 1
! 130170: _ACEOF
1.1 misho 130171:
130172: fi
130173:
130174:
1.1.1.3 ! misho 130175: cat >>confdefs.h <<\_ACEOF
! 130176: #define HAVE_XMLWRITER 1
! 130177: _ACEOF
1.1 misho 130178:
130179:
130180: ext_builddir=ext/xmlwriter
130181: ext_srcdir=$abs_srcdir/ext/xmlwriter
130182:
130183: ac_extra=
130184:
130185: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
130186: PHP_XMLWRITER_SHARED=no
130187:
130188:
130189: case ext/xmlwriter in
130190: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
130191: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
130192: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
130193: esac
130194:
130195:
130196:
130197: b_c_pre=$php_c_pre
130198: b_cxx_pre=$php_cxx_pre
130199: b_c_meta=$php_c_meta
130200: b_cxx_meta=$php_cxx_meta
130201: b_c_post=$php_c_post
130202: b_cxx_post=$php_cxx_post
130203: b_lo=$php_lo
130204:
130205:
130206: old_IFS=$IFS
130207: for ac_src in php_xmlwriter.c; do
130208:
130209: IFS=.
130210: set $ac_src
130211: ac_obj=$1
130212: IFS=$old_IFS
130213:
130214: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
130215:
130216: case $ac_src in
130217: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130218: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130219: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130220: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
130221: esac
130222:
130223: cat >>Makefile.objects<<EOF
130224: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
130225: $ac_comp
130226: EOF
130227: done
130228:
130229:
130230: EXT_STATIC="$EXT_STATIC xmlwriter"
130231: if test "$ext_shared" != "nocli"; then
130232: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
130233: fi
130234: else
130235: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
130236: PHP_XMLWRITER_SHARED=yes
130237:
130238: case ext/xmlwriter in
130239: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
130240: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
130241: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
130242: esac
130243:
130244:
130245:
130246: b_c_pre=$shared_c_pre
130247: b_cxx_pre=$shared_cxx_pre
130248: b_c_meta=$shared_c_meta
130249: b_cxx_meta=$shared_cxx_meta
130250: b_c_post=$shared_c_post
130251: b_cxx_post=$shared_cxx_post
130252: b_lo=$shared_lo
130253:
130254:
130255: old_IFS=$IFS
130256: for ac_src in php_xmlwriter.c; do
130257:
130258: IFS=.
130259: set $ac_src
130260: ac_obj=$1
130261: IFS=$old_IFS
130262:
130263: shared_objects_xmlwriter="$shared_objects_xmlwriter $ac_bdir$ac_obj.lo"
130264:
130265: case $ac_src in
130266: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130267: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130268: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130269: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
130270: esac
130271:
130272: cat >>Makefile.objects<<EOF
130273: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
130274: $ac_comp
130275: EOF
130276: done
130277:
130278: case $host_alias in
130279: *netware*)
130280:
130281: install_modules="install-modules"
130282:
130283: case $host_alias in
130284: *aix*)
130285: suffix=so
130286: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlwriter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(PHPXMLWRITER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlwriter.so '$ext_builddir'/phpxmlwriter.so'
130287: ;;
130288: *netware*)
130289: suffix=nlm
130290: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) -L$(top_builddir)/netware -lphp5lib $(XMLWRITER_SHARED_LIBADD)'
130291: ;;
130292: *)
130293: suffix=la
130294: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(PHPXMLWRITER_SHARED_LIBADD)'
130295: ;;
130296: esac
130297:
130298: if test "x" = "xyes"; then
130299: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlwriter.$suffix"
130300: else
130301: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlwriter.$suffix"
130302: fi
130303:
130304: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
130305:
130306: cat >>Makefile.objects<<EOF
130307: \$(phplibdir)/phpxmlwriter.$suffix: $ext_builddir/phpxmlwriter.$suffix
130308: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlwriter.$suffix \$(phplibdir)
130309:
130310: $ext_builddir/phpxmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(PHPXMLWRITER_SHARED_DEPENDENCIES)
130311: $link_cmd
130312:
130313: EOF
130314:
130315: ;;
130316: *)
130317:
130318: install_modules="install-modules"
130319:
130320: case $host_alias in
130321: *aix*)
130322: suffix=so
130323: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlwriter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(XMLWRITER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlwriter.so '$ext_builddir'/xmlwriter.so'
130324: ;;
130325: *netware*)
130326: suffix=nlm
130327: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) -L$(top_builddir)/netware -lphp5lib $(WRITER_SHARED_LIBADD)'
130328: ;;
130329: *)
130330: suffix=la
130331: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(XMLWRITER_SHARED_LIBADD)'
130332: ;;
130333: esac
130334:
130335: if test "x" = "xyes"; then
130336: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlwriter.$suffix"
130337: else
130338: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlwriter.$suffix"
130339: fi
130340:
130341: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
130342:
130343: cat >>Makefile.objects<<EOF
130344: \$(phplibdir)/xmlwriter.$suffix: $ext_builddir/xmlwriter.$suffix
130345: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlwriter.$suffix \$(phplibdir)
130346:
130347: $ext_builddir/xmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_DEPENDENCIES)
130348: $link_cmd
130349:
130350: EOF
130351:
130352: ;;
130353: esac
130354:
130355: cat >>confdefs.h <<_ACEOF
130356: #define COMPILE_DL_XMLWRITER 1
130357: _ACEOF
130358:
130359: fi
130360: fi
130361:
130362: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
130363: PHP_XMLWRITER_SHARED=no
1.1.1.3 ! misho 130364: case "$PHP_SAPI" in
! 130365: cgi|embed)
1.1 misho 130366:
130367:
130368: case ext/xmlwriter in
130369: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
130370: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
130371: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
130372: esac
130373:
130374:
130375:
130376: b_c_pre=$php_c_pre
130377: b_cxx_pre=$php_cxx_pre
130378: b_c_meta=$php_c_meta
130379: b_cxx_meta=$php_cxx_meta
130380: b_c_post=$php_c_post
130381: b_cxx_post=$php_cxx_post
130382: b_lo=$php_lo
130383:
130384:
130385: old_IFS=$IFS
130386: for ac_src in php_xmlwriter.c; do
130387:
130388: IFS=.
130389: set $ac_src
130390: ac_obj=$1
130391: IFS=$old_IFS
130392:
1.1.1.2 misho 130393: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 130394:
130395: case $ac_src in
130396: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130397: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130398: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130399: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
130400: esac
130401:
130402: cat >>Makefile.objects<<EOF
130403: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
130404: $ac_comp
130405: EOF
130406: done
130407:
130408:
1.1.1.3 ! misho 130409: EXT_STATIC="$EXT_STATIC xmlwriter"
! 130410: ;;
! 130411: *)
1.1 misho 130412:
130413:
130414: case ext/xmlwriter in
130415: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
130416: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
130417: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
130418: esac
130419:
130420:
130421:
130422: b_c_pre=$php_c_pre
130423: b_cxx_pre=$php_cxx_pre
130424: b_c_meta=$php_c_meta
130425: b_cxx_meta=$php_cxx_meta
130426: b_c_post=$php_c_post
130427: b_cxx_post=$php_cxx_post
130428: b_lo=$php_lo
130429:
130430:
130431: old_IFS=$IFS
130432: for ac_src in php_xmlwriter.c; do
130433:
130434: IFS=.
130435: set $ac_src
130436: ac_obj=$1
130437: IFS=$old_IFS
130438:
1.1.1.2 misho 130439: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 130440:
130441: case $ac_src in
130442: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130443: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130444: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130445: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
130446: esac
130447:
130448: cat >>Makefile.objects<<EOF
130449: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
130450: $ac_comp
130451: EOF
130452: done
130453:
130454:
1.1.1.3 ! misho 130455: ;;
! 130456: esac
1.1 misho 130457: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
130458: fi
130459:
130460:
130461: BUILD_DIR="$BUILD_DIR $ext_builddir"
130462:
130463:
130464:
130465: if test "$ext_builddir" = "."; then
130466: PHP_PECL_EXTENSION=xmlwriter
130467:
130468: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
130469:
130470: fi
130471:
130472:
130473: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLWRITER_SHARED_LIBADD"
130474:
130475:
130476: else
1.1.1.3 ! misho 130477: { { echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
! 130478: echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
! 130479: { (exit 1); exit 1; }; }
1.1 misho 130480: fi
130481: else
1.1.1.3 ! misho 130482: { { echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
! 130483: echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
! 130484: { (exit 1); exit 1; }; }
1.1 misho 130485:
130486: fi
130487:
130488: fi
130489:
130490:
130491:
130492: php_with_xsl=no
130493:
1.1.1.3 ! misho 130494: { echo "$as_me:$LINENO: checking for XSL support" >&5
! 130495: echo $ECHO_N "checking for XSL support... $ECHO_C" >&6; }
1.1 misho 130496:
130497: # Check whether --with-xsl was given.
1.1.1.3 ! misho 130498: if test "${with_xsl+set}" = set; then
1.1 misho 130499: withval=$with_xsl; PHP_XSL=$withval
130500: else
130501:
130502: PHP_XSL=no
130503: test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL
130504:
130505: fi
130506:
130507:
130508:
130509: ext_output="yes, shared"
130510: ext_shared=yes
130511: case $PHP_XSL in
130512: shared,*)
130513: PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'`
130514: ;;
130515: shared)
130516: PHP_XSL=yes
130517: ;;
130518: no)
130519: ext_output=no
130520: ext_shared=no
130521: ;;
130522: *)
130523: ext_output=yes
130524: ext_shared=no
130525: ;;
130526: esac
130527:
130528:
130529:
1.1.1.3 ! misho 130530: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 130531: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 130532:
130533:
130534:
130535:
130536: if test "$PHP_XSL" != "no"; then
130537:
130538: if test "$PHP_LIBXML" = "no"; then
1.1.1.3 ! misho 130539: { { echo "$as_me:$LINENO: error: XSL extension requires LIBXML extension, add --enable-libxml" >&5
! 130540: echo "$as_me: error: XSL extension requires LIBXML extension, add --enable-libxml" >&2;}
! 130541: { (exit 1); exit 1; }; }
1.1 misho 130542: fi
130543:
130544: if test "$PHP_DOM" = "no"; then
1.1.1.3 ! misho 130545: { { echo "$as_me:$LINENO: error: XSL extension requires DOM extension, add --enable-dom" >&5
! 130546: echo "$as_me: error: XSL extension requires DOM extension, add --enable-dom" >&2;}
! 130547: { (exit 1); exit 1; }; }
1.1 misho 130548: fi
130549:
130550: for i in $PHP_XSL /usr/local /usr; do
130551: if test -x "$i/bin/xslt-config"; then
130552: XSLT_CONFIG=$i/bin/xslt-config
130553: break
130554: fi
130555: done
130556:
130557: if test -z "$XSLT_CONFIG"; then
1.1.1.3 ! misho 130558: { { echo "$as_me:$LINENO: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" >&5
! 130559: echo "$as_me: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" >&2;}
! 130560: { (exit 1); exit 1; }; }
1.1 misho 130561: else
130562: libxslt_full_version=`$XSLT_CONFIG --version`
130563: ac_IFS=$IFS
130564: IFS="."
130565: set $libxslt_full_version
130566: IFS=$ac_IFS
130567: LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
130568: if test "$LIBXSLT_VERSION" -ge "1001000"; then
130569: XSL_LIBS=`$XSLT_CONFIG --libs`
130570: XSL_INCS=`$XSLT_CONFIG --cflags`
130571:
130572: for ac_i in $XSL_LIBS; do
130573: case $ac_i in
130574: -pthread)
130575: if test "$ext_shared" = "yes"; then
130576: XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread"
130577: else
130578:
130579:
130580: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
130581:
130582: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
130583: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130584: eval "EXTRA_LDFLAGS$unique=set"
130585: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
130586: fi
130587:
130588: fi
130589: ;;
130590: -l*)
130591: ac_ii=`echo $ac_i|cut -c 3-`
130592:
130593:
130594: case $ac_ii in
130595: c|c_r|pthread*) ;;
130596: *)
130597: if test "$ext_shared" = "yes"; then
130598: XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii"
130599: else
130600:
130601:
130602: case $ac_ii in
130603: c|c_r|pthread*) ;;
130604: *)
130605: LIBS="$LIBS -l$ac_ii"
130606: ;;
130607: esac
130608:
130609:
130610: fi
130611: ;;
130612: esac
130613:
130614:
130615: ;;
130616: -L*)
130617: ac_ii=`echo $ac_i|cut -c 3-`
130618:
130619: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
130620:
130621: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
130622: ai_p=$ac_ii
130623: else
130624:
130625: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
130626:
130627: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130628: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
130629: fi
130630:
130631:
130632: if test "$ext_shared" = "yes"; then
130633: XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
130634: test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
130635: else
130636:
130637:
130638:
130639: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130640:
130641: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
130642: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130643: eval "LIBPATH$unique=set"
130644:
130645: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
130646: LDFLAGS="$LDFLAGS -L$ai_p"
130647: PHP_RPATHS="$PHP_RPATHS $ai_p"
130648:
130649: fi
130650:
130651:
130652: fi
130653:
130654: fi
130655:
130656: ;;
130657: esac
130658: done
130659:
130660:
130661: for ac_i in $XSL_INCS; do
130662: case $ac_i in
130663: -I*)
130664: ac_ii=`echo $ac_i|cut -c 3-`
130665:
130666: if test "$ac_ii" != "/usr/include"; then
130667:
130668: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
130669: ai_p=$ac_ii
130670: else
130671:
130672: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
130673:
130674: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130675: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
130676: fi
130677:
130678:
130679:
130680: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130681:
130682: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
130683: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130684: eval "INCLUDEPATH$unique=set"
130685:
130686: if test ""; then
130687: INCLUDES="-I$ai_p $INCLUDES"
130688: else
130689: INCLUDES="$INCLUDES -I$ai_p"
130690: fi
130691:
130692: fi
130693:
130694: fi
130695:
130696: ;;
130697: esac
130698: done
130699:
130700:
1.1.1.3 ! misho 130701: { echo "$as_me:$LINENO: checking for EXSLT support" >&5
! 130702: echo $ECHO_N "checking for EXSLT support... $ECHO_C" >&6; }
1.1 misho 130703: for i in $PHP_XSL /usr/local /usr; do
130704: if test -r "$i/include/libexslt/exslt.h"; then
130705: PHP_XSL_EXSL_DIR=$i
130706: break
130707: fi
130708: done
130709: if test -z "$PHP_XSL_EXSL_DIR"; then
1.1.1.3 ! misho 130710: { echo "$as_me:$LINENO: result: not found" >&5
! 130711: echo "${ECHO_T}not found" >&6; }
1.1 misho 130712: else
1.1.1.3 ! misho 130713: { echo "$as_me:$LINENO: result: found" >&5
! 130714: echo "${ECHO_T}found" >&6; }
1.1 misho 130715:
130716:
130717: if test "$ext_shared" = "yes"; then
130718: XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD"
130719: if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
130720:
130721: if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
130722:
130723: if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
130724: ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
130725: else
130726:
130727: ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
130728:
130729: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130730: ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
130731: fi
130732:
130733:
130734: if test "$ext_shared" = "yes"; then
130735: XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
130736: test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
130737: else
130738:
130739:
130740:
130741: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130742:
130743: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
130744: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130745: eval "LIBPATH$unique=set"
130746:
130747: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
130748: LDFLAGS="$LDFLAGS -L$ai_p"
130749: PHP_RPATHS="$PHP_RPATHS $ai_p"
130750:
130751: fi
130752:
130753:
130754: fi
130755:
130756: fi
130757:
130758: fi
130759: else
130760:
130761:
130762: if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
130763:
130764: if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
130765:
130766: if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
130767: ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
130768: else
130769:
130770: ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
130771:
130772: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130773: ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
130774: fi
130775:
130776:
130777:
130778:
130779:
130780: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130781:
130782: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
130783: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130784: eval "LIBPATH$unique=set"
130785:
130786: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
130787: LDFLAGS="$LDFLAGS -L$ai_p"
130788: PHP_RPATHS="$PHP_RPATHS $ai_p"
130789:
130790: fi
130791:
130792:
130793:
130794: fi
130795:
130796: fi
130797:
130798:
130799: case exslt in
130800: c|c_r|pthread*) ;;
130801: *)
130802: LIBS="-lexslt $LIBS"
130803: ;;
130804: esac
130805:
130806:
130807:
130808:
130809: fi
130810:
130811:
130812:
130813: if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then
130814:
130815: if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then
130816: ai_p=$PHP_XSL_EXSL_DIR/include
130817: else
130818:
130819: ep_dir="`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
130820:
130821: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
130822: ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/include\"`"
130823: fi
130824:
130825:
130826:
130827: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
130828:
130829: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
130830: if test -n "$unique" && test "`eval $cmd`" = "" ; then
130831: eval "INCLUDEPATH$unique=set"
130832:
130833: if test ""; then
130834: INCLUDES="-I$ai_p $INCLUDES"
130835: else
130836: INCLUDES="$INCLUDES -I$ai_p"
130837: fi
130838:
130839: fi
130840:
130841: fi
130842:
130843:
1.1.1.3 ! misho 130844: cat >>confdefs.h <<\_ACEOF
! 130845: #define HAVE_XSL_EXSLT 1
! 130846: _ACEOF
1.1 misho 130847:
130848: fi
130849: else
1.1.1.3 ! misho 130850: { { echo "$as_me:$LINENO: error: libxslt version 1.1.0 or greater required." >&5
! 130851: echo "$as_me: error: libxslt version 1.1.0 or greater required." >&2;}
! 130852: { (exit 1); exit 1; }; }
1.1 misho 130853: fi
130854:
130855:
130856: fi
130857:
130858:
1.1.1.3 ! misho 130859: cat >>confdefs.h <<\_ACEOF
! 130860: #define HAVE_XSL 1
! 130861: _ACEOF
1.1 misho 130862:
130863:
130864: ext_builddir=ext/xsl
130865: ext_srcdir=$abs_srcdir/ext/xsl
130866:
130867: ac_extra=
130868:
130869: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
130870: PHP_XSL_SHARED=no
130871:
130872:
130873: case ext/xsl in
130874: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
130875: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
130876: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
130877: esac
130878:
130879:
130880:
130881: b_c_pre=$php_c_pre
130882: b_cxx_pre=$php_cxx_pre
130883: b_c_meta=$php_c_meta
130884: b_cxx_meta=$php_cxx_meta
130885: b_c_post=$php_c_post
130886: b_cxx_post=$php_cxx_post
130887: b_lo=$php_lo
130888:
130889:
130890: old_IFS=$IFS
130891: for ac_src in php_xsl.c xsltprocessor.c; do
130892:
130893: IFS=.
130894: set $ac_src
130895: ac_obj=$1
130896: IFS=$old_IFS
130897:
130898: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
130899:
130900: case $ac_src in
130901: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130902: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130903: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130904: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
130905: esac
130906:
130907: cat >>Makefile.objects<<EOF
130908: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
130909: $ac_comp
130910: EOF
130911: done
130912:
130913:
130914: EXT_STATIC="$EXT_STATIC xsl"
130915: if test "$ext_shared" != "nocli"; then
130916: EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
130917: fi
130918: else
130919: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
130920: PHP_XSL_SHARED=yes
130921:
130922: case ext/xsl in
130923: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
130924: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
130925: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
130926: esac
130927:
130928:
130929:
130930: b_c_pre=$shared_c_pre
130931: b_cxx_pre=$shared_cxx_pre
130932: b_c_meta=$shared_c_meta
130933: b_cxx_meta=$shared_cxx_meta
130934: b_c_post=$shared_c_post
130935: b_cxx_post=$shared_cxx_post
130936: b_lo=$shared_lo
130937:
130938:
130939: old_IFS=$IFS
130940: for ac_src in php_xsl.c xsltprocessor.c; do
130941:
130942: IFS=.
130943: set $ac_src
130944: ac_obj=$1
130945: IFS=$old_IFS
130946:
130947: shared_objects_xsl="$shared_objects_xsl $ac_bdir$ac_obj.lo"
130948:
130949: case $ac_src in
130950: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130951: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130952: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
130953: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
130954: esac
130955:
130956: cat >>Makefile.objects<<EOF
130957: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
130958: $ac_comp
130959: EOF
130960: done
130961:
130962: case $host_alias in
130963: *netware*)
130964:
130965: install_modules="install-modules"
130966:
130967: case $host_alias in
130968: *aix*)
130969: suffix=so
130970: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxsl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(PHPXSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxsl.so '$ext_builddir'/phpxsl.so'
130971: ;;
130972: *netware*)
130973: suffix=nlm
130974: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) -L$(top_builddir)/netware -lphp5lib $(XSL_SHARED_LIBADD)'
130975: ;;
130976: *)
130977: suffix=la
130978: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(PHPXSL_SHARED_LIBADD)'
130979: ;;
130980: esac
130981:
130982: if test "x" = "xyes"; then
130983: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxsl.$suffix"
130984: else
130985: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxsl.$suffix"
130986: fi
130987:
130988: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
130989:
130990: cat >>Makefile.objects<<EOF
130991: \$(phplibdir)/phpxsl.$suffix: $ext_builddir/phpxsl.$suffix
130992: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxsl.$suffix \$(phplibdir)
130993:
130994: $ext_builddir/phpxsl.$suffix: \$(shared_objects_xsl) \$(PHPXSL_SHARED_DEPENDENCIES)
130995: $link_cmd
130996:
130997: EOF
130998:
130999: ;;
131000: *)
131001:
131002: install_modules="install-modules"
131003:
131004: case $host_alias in
131005: *aix*)
131006: suffix=so
131007: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xsl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(XSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xsl.so '$ext_builddir'/xsl.so'
131008: ;;
131009: *netware*)
131010: suffix=nlm
131011: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
131012: ;;
131013: *)
131014: suffix=la
131015: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(XSL_SHARED_LIBADD)'
131016: ;;
131017: esac
131018:
131019: if test "x" = "xyes"; then
131020: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xsl.$suffix"
131021: else
131022: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xsl.$suffix"
131023: fi
131024:
131025: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
131026:
131027: cat >>Makefile.objects<<EOF
131028: \$(phplibdir)/xsl.$suffix: $ext_builddir/xsl.$suffix
131029: \$(LIBTOOL) --mode=install cp $ext_builddir/xsl.$suffix \$(phplibdir)
131030:
131031: $ext_builddir/xsl.$suffix: \$(shared_objects_xsl) \$(XSL_SHARED_DEPENDENCIES)
131032: $link_cmd
131033:
131034: EOF
131035:
131036: ;;
131037: esac
131038:
131039: cat >>confdefs.h <<_ACEOF
131040: #define COMPILE_DL_XSL 1
131041: _ACEOF
131042:
131043: fi
131044: fi
131045:
131046: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
131047: PHP_XSL_SHARED=no
1.1.1.3 ! misho 131048: case "$PHP_SAPI" in
! 131049: cgi|embed)
1.1 misho 131050:
131051:
131052: case ext/xsl in
131053: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131054: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131055: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131056: esac
131057:
131058:
131059:
131060: b_c_pre=$php_c_pre
131061: b_cxx_pre=$php_cxx_pre
131062: b_c_meta=$php_c_meta
131063: b_cxx_meta=$php_cxx_meta
131064: b_c_post=$php_c_post
131065: b_cxx_post=$php_cxx_post
131066: b_lo=$php_lo
131067:
131068:
131069: old_IFS=$IFS
131070: for ac_src in php_xsl.c xsltprocessor.c; do
131071:
131072: IFS=.
131073: set $ac_src
131074: ac_obj=$1
131075: IFS=$old_IFS
131076:
1.1.1.2 misho 131077: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 131078:
131079: case $ac_src in
131080: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131081: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131082: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131083: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131084: esac
131085:
131086: cat >>Makefile.objects<<EOF
131087: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131088: $ac_comp
131089: EOF
131090: done
131091:
131092:
1.1.1.3 ! misho 131093: EXT_STATIC="$EXT_STATIC xsl"
! 131094: ;;
! 131095: *)
1.1 misho 131096:
131097:
131098: case ext/xsl in
131099: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131100: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131101: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131102: esac
131103:
131104:
131105:
131106: b_c_pre=$php_c_pre
131107: b_cxx_pre=$php_cxx_pre
131108: b_c_meta=$php_c_meta
131109: b_cxx_meta=$php_cxx_meta
131110: b_c_post=$php_c_post
131111: b_cxx_post=$php_cxx_post
131112: b_lo=$php_lo
131113:
131114:
131115: old_IFS=$IFS
131116: for ac_src in php_xsl.c xsltprocessor.c; do
131117:
131118: IFS=.
131119: set $ac_src
131120: ac_obj=$1
131121: IFS=$old_IFS
131122:
1.1.1.2 misho 131123: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 131124:
131125: case $ac_src in
131126: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131127: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131128: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131129: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131130: esac
131131:
131132: cat >>Makefile.objects<<EOF
131133: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131134: $ac_comp
131135: EOF
131136: done
131137:
131138:
1.1.1.3 ! misho 131139: ;;
! 131140: esac
1.1 misho 131141: EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
131142: fi
131143:
131144:
131145: BUILD_DIR="$BUILD_DIR $ext_builddir"
131146:
131147:
131148:
131149: if test "$ext_builddir" = "."; then
131150: PHP_PECL_EXTENSION=xsl
131151:
131152: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
131153:
131154: fi
131155:
131156:
131157: PHP_VAR_SUBST="$PHP_VAR_SUBST XSL_SHARED_LIBADD"
131158:
131159:
131160: am_i_shared=$PHP_XSL_SHARED
131161: is_it_shared=$PHP_LIBXML_SHARED
131162: is_it_enabled=$PHP_LIBXML
131163: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
1.1.1.3 ! misho 131164: { { echo "$as_me:$LINENO: error:
! 131165: You've configured extension xsl to build statically, but it
! 131166: depends on extension libxml, which you've configured to build shared.
! 131167: You either need to build xsl shared or build libxml statically for the
! 131168: build to be successful.
! 131169: " >&5
! 131170: echo "$as_me: error:
1.1 misho 131171: You've configured extension xsl to build statically, but it
131172: depends on extension libxml, which you've configured to build shared.
131173: You either need to build xsl shared or build libxml statically for the
131174: build to be successful.
1.1.1.3 ! misho 131175: " >&2;}
! 131176: { (exit 1); exit 1; }; }
! 131177: fi
! 131178: if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
! 131179: { { echo "$as_me:$LINENO: error:
! 131180: You've configured extension xsl, which depends on extension libxml,
! 131181: but you've either not enabled libxml, or have disabled it.
! 131182: " >&5
! 131183: echo "$as_me: error:
! 131184: You've configured extension xsl, which depends on extension libxml,
! 131185: but you've either not enabled libxml, or have disabled it.
! 131186: " >&2;}
! 131187: { (exit 1); exit 1; }; }
1.1 misho 131188: fi
131189:
131190: fi
131191:
131192:
131193:
131194: php_enable_zip=no
131195:
1.1.1.3 ! misho 131196: { echo "$as_me:$LINENO: checking for zip archive read/writesupport" >&5
! 131197: echo $ECHO_N "checking for zip archive read/writesupport... $ECHO_C" >&6; }
1.1 misho 131198: # Check whether --enable-zip was given.
1.1.1.3 ! misho 131199: if test "${enable_zip+set}" = set; then
1.1 misho 131200: enableval=$enable_zip; PHP_ZIP=$enableval
131201: else
131202:
131203: PHP_ZIP=no
131204: test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL
131205:
131206: fi
131207:
131208:
131209:
131210: ext_output="yes, shared"
131211: ext_shared=yes
131212: case $PHP_ZIP in
131213: shared,*)
131214: PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'`
131215: ;;
131216: shared)
131217: PHP_ZIP=yes
131218: ;;
131219: no)
131220: ext_output=no
131221: ext_shared=no
131222: ;;
131223: *)
131224: ext_output=yes
131225: ext_shared=no
131226: ;;
131227: esac
131228:
131229:
131230:
1.1.1.3 ! misho 131231: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 131232: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 131233:
131234:
131235:
131236:
131237: if test -z "$PHP_ZLIB_DIR"; then
131238:
131239: php_with_zlib_dir=no
131240:
1.1.1.3 ! misho 131241: { echo "$as_me:$LINENO: checking for the location of libz" >&5
! 131242: echo $ECHO_N "checking for the location of libz... $ECHO_C" >&6; }
1.1 misho 131243:
131244: # Check whether --with-zlib-dir was given.
1.1.1.3 ! misho 131245: if test "${with_zlib_dir+set}" = set; then
1.1 misho 131246: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
131247: else
131248:
131249: PHP_ZLIB_DIR=no
131250:
131251:
131252: fi
131253:
131254:
131255: ext_output=$PHP_ZLIB_DIR
1.1.1.3 ! misho 131256: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 131257: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 131258:
131259:
131260:
131261: fi
131262:
131263:
131264: php_with_pcre_dir=no
131265:
1.1.1.3 ! misho 131266: { echo "$as_me:$LINENO: checking pcre install prefix" >&5
! 131267: echo $ECHO_N "checking pcre install prefix... $ECHO_C" >&6; }
1.1 misho 131268:
131269: # Check whether --with-pcre-dir was given.
1.1.1.3 ! misho 131270: if test "${with_pcre_dir+set}" = set; then
1.1 misho 131271: withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
131272: else
131273:
131274: PHP_PCRE_DIR=no
131275:
131276:
131277: fi
131278:
131279:
131280: ext_output=$PHP_PCRE_DIR
1.1.1.3 ! misho 131281: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 131282: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 131283:
131284:
131285:
131286:
131287: if test "$PHP_ZIP" != "no"; then
131288:
131289: if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
131290: if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
131291: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
131292: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
131293: elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
131294: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
131295: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
131296: else
1.1.1.3 ! misho 131297: { { echo "$as_me:$LINENO: error: Can not find zlib headers under \"$PHP_ZLIB_DIR\"" >&5
! 131298: echo "$as_me: error: Can not find zlib headers under \"$PHP_ZLIB_DIR\"" >&2;}
! 131299: { (exit 1); exit 1; }; }
1.1 misho 131300: fi
131301: else
131302: for i in /usr/local /usr; do
131303: if test -f "$i/include/zlib/zlib.h"; then
131304: PHP_ZLIB_DIR="$i"
131305: PHP_ZLIB_INCDIR="$i/include/zlib"
131306: elif test -f "$i/include/zlib.h"; then
131307: PHP_ZLIB_DIR="$i"
131308: PHP_ZLIB_INCDIR="$i/include"
131309: fi
131310: done
131311: fi
131312:
1.1.1.3 ! misho 131313: { echo "$as_me:$LINENO: checking for the location of zlib" >&5
! 131314: echo $ECHO_N "checking for the location of zlib... $ECHO_C" >&6; }
1.1 misho 131315: if test "$PHP_ZLIB_DIR" = "no"; then
1.1.1.3 ! misho 131316: { { echo "$as_me:$LINENO: error: zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" >&5
! 131317: echo "$as_me: error: zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" >&2;}
! 131318: { (exit 1); exit 1; }; }
1.1 misho 131319: else
1.1.1.3 ! misho 131320: { echo "$as_me:$LINENO: result: $PHP_ZLIB_DIR" >&5
! 131321: echo "${ECHO_T}$PHP_ZLIB_DIR" >&6; }
1.1 misho 131322:
131323:
131324: if test "$ext_shared" = "yes"; then
131325: ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD"
131326: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
131327:
131328: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
131329:
131330: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
131331: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
131332: else
131333:
131334: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
131335:
131336: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
131337: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
131338: fi
131339:
131340:
131341: if test "$ext_shared" = "yes"; then
131342: ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
131343: test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
131344: else
131345:
131346:
131347:
131348: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
131349:
131350: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
131351: if test -n "$unique" && test "`eval $cmd`" = "" ; then
131352: eval "LIBPATH$unique=set"
131353:
131354: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
131355: LDFLAGS="$LDFLAGS -L$ai_p"
131356: PHP_RPATHS="$PHP_RPATHS $ai_p"
131357:
131358: fi
131359:
131360:
131361: fi
131362:
131363: fi
131364:
131365: fi
131366: else
131367:
131368:
131369: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
131370:
131371: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
131372:
131373: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
131374: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
131375: else
131376:
131377: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
131378:
131379: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
131380: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
131381: fi
131382:
131383:
131384:
131385:
131386:
131387: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
131388:
131389: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
131390: if test -n "$unique" && test "`eval $cmd`" = "" ; then
131391: eval "LIBPATH$unique=set"
131392:
131393: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
131394: LDFLAGS="$LDFLAGS -L$ai_p"
131395: PHP_RPATHS="$PHP_RPATHS $ai_p"
131396:
131397: fi
131398:
131399:
131400:
131401: fi
131402:
131403: fi
131404:
131405:
131406: case z in
131407: c|c_r|pthread*) ;;
131408: *)
131409: LIBS="-lz $LIBS"
131410: ;;
131411: esac
131412:
131413:
131414:
131415:
131416: fi
131417:
131418:
131419:
131420: if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then
131421:
131422: if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then
131423: ai_p=$PHP_ZLIB_INCDIR
131424: else
131425:
131426: ep_dir="`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
131427:
131428: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
131429: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_INCDIR\"`"
131430: fi
131431:
131432:
131433:
131434: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
131435:
131436: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
131437: if test -n "$unique" && test "`eval $cmd`" = "" ; then
131438: eval "INCLUDEPATH$unique=set"
131439:
131440: if test ""; then
131441: INCLUDES="-I$ai_p $INCLUDES"
131442: else
131443: INCLUDES="$INCLUDES -I$ai_p"
131444: fi
131445:
131446: fi
131447:
131448: fi
131449:
131450: fi
131451:
131452: old_CPPFLAGS=$CPPFLAGS
131453: CPPFLAGS=$INCLUDES
1.1.1.3 ! misho 131454: cat >conftest.$ac_ext <<_ACEOF
! 131455: /* confdefs.h. */
! 131456: _ACEOF
! 131457: cat confdefs.h >>conftest.$ac_ext
! 131458: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 131459: /* end confdefs.h. */
131460:
131461: #include <main/php_config.h>
131462: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
131463: yes
131464: #endif
131465:
131466: _ACEOF
131467: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 131468: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 131469:
131470: PHP_PCRE_REGEX=yes
131471:
131472: else
131473:
1.1.1.3 ! misho 131474: cat >conftest.$ac_ext <<_ACEOF
! 131475: /* confdefs.h. */
! 131476: _ACEOF
! 131477: cat confdefs.h >>conftest.$ac_ext
! 131478: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 131479: /* end confdefs.h. */
131480:
131481: #include <main/php_config.h>
131482: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
131483: yes
131484: #endif
131485:
131486: _ACEOF
131487: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 131488: $EGREP "yes" >/dev/null 2>&1; then
1.1 misho 131489:
131490: PHP_PCRE_REGEX=pecl
131491:
131492: else
131493:
131494: PHP_PCRE_REGEX=no
131495:
131496: fi
1.1.1.3 ! misho 131497: rm -f -r conftest*
1.1 misho 131498:
131499:
131500: fi
1.1.1.3 ! misho 131501: rm -f -r conftest*
1.1 misho 131502:
131503: CPPFLAGS=$old_CPPFLAGS
131504:
131505: PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
131506: lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c \
131507: lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
131508: lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
131509: lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \
131510: lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \
131511: lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \
131512: lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \
131513: lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \
131514: lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \
131515: lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \
131516: lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \
131517: lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \
131518: lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \
131519: lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \
131520: lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \
131521: lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \
131522: lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \
1.1.1.3 ! misho 131523: lib/zip_error_clear.c lib/zip_file_error_clear.c \
! 131524: lib/zip_fdopen.c lib/zip_fopen_encrypted.c lib/zip_fopen_index_encrypted.c \
! 131525: lib/zip_get_compression_implementation.c lib/zip_get_encryption_implementation.c \
! 131526: lib/zip_get_file_extra.c lib/zip_get_num_entries.c lib/zip_set_default_password.c \
! 131527: lib/zip_set_file_extra.c lib/zip_source_close.c lib/zip_source_crc.c \
! 131528: lib/zip_source_deflate.c lib/zip_source_error.c lib/zip_source_layered.c \
! 131529: lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \
! 131530: lib/zip_source_read.c lib/zip_source_stat.c"
1.1 misho 131531:
131532:
1.1.1.3 ! misho 131533: cat >>confdefs.h <<\_ACEOF
! 131534: #define HAVE_ZIP 1
! 131535: _ACEOF
1.1 misho 131536:
131537:
131538: ext_builddir=ext/zip
131539: ext_srcdir=$abs_srcdir/ext/zip
131540:
131541: ac_extra=
131542:
131543: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
131544: PHP_ZIP_SHARED=no
131545:
131546:
131547: case ext/zip in
131548: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131549: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131550: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131551: esac
131552:
131553:
131554:
131555: b_c_pre=$php_c_pre
131556: b_cxx_pre=$php_cxx_pre
131557: b_c_meta=$php_c_meta
131558: b_cxx_meta=$php_cxx_meta
131559: b_c_post=$php_c_post
131560: b_cxx_post=$php_cxx_post
131561: b_lo=$php_lo
131562:
131563:
131564: old_IFS=$IFS
131565: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
131566:
131567: IFS=.
131568: set $ac_src
131569: ac_obj=$1
131570: IFS=$old_IFS
131571:
131572: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
131573:
131574: case $ac_src in
131575: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131576: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131577: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131578: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131579: esac
131580:
131581: cat >>Makefile.objects<<EOF
131582: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131583: $ac_comp
131584: EOF
131585: done
131586:
131587:
131588: EXT_STATIC="$EXT_STATIC zip"
131589: if test "$ext_shared" != "nocli"; then
131590: EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
131591: fi
131592: else
131593: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
131594: PHP_ZIP_SHARED=yes
131595:
131596: case ext/zip in
131597: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131598: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131599: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131600: esac
131601:
131602:
131603:
131604: b_c_pre=$shared_c_pre
131605: b_cxx_pre=$shared_cxx_pre
131606: b_c_meta=$shared_c_meta
131607: b_cxx_meta=$shared_cxx_meta
131608: b_c_post=$shared_c_post
131609: b_cxx_post=$shared_cxx_post
131610: b_lo=$shared_lo
131611:
131612:
131613: old_IFS=$IFS
131614: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
131615:
131616: IFS=.
131617: set $ac_src
131618: ac_obj=$1
131619: IFS=$old_IFS
131620:
131621: shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
131622:
131623: case $ac_src in
131624: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131625: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131626: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131627: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131628: esac
131629:
131630: cat >>Makefile.objects<<EOF
131631: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131632: $ac_comp
131633: EOF
131634: done
131635:
131636: case $host_alias in
131637: *netware*)
131638:
131639: install_modules="install-modules"
131640:
131641: case $host_alias in
131642: *aix*)
131643: suffix=so
131644: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpzip.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(PHPZIP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpzip.so '$ext_builddir'/phpzip.so'
131645: ;;
131646: *netware*)
131647: suffix=nlm
131648: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) -L$(top_builddir)/netware -lphp5lib $(ZIP_SHARED_LIBADD)'
131649: ;;
131650: *)
131651: suffix=la
131652: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(PHPZIP_SHARED_LIBADD)'
131653: ;;
131654: esac
131655:
131656: if test "x" = "xyes"; then
131657: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzip.$suffix"
131658: else
131659: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzip.$suffix"
131660: fi
131661:
131662: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
131663:
131664: cat >>Makefile.objects<<EOF
131665: \$(phplibdir)/phpzip.$suffix: $ext_builddir/phpzip.$suffix
131666: \$(LIBTOOL) --mode=install cp $ext_builddir/phpzip.$suffix \$(phplibdir)
131667:
131668: $ext_builddir/phpzip.$suffix: \$(shared_objects_zip) \$(PHPZIP_SHARED_DEPENDENCIES)
131669: $link_cmd
131670:
131671: EOF
131672:
131673: ;;
131674: *)
131675:
131676: install_modules="install-modules"
131677:
131678: case $host_alias in
131679: *aix*)
131680: suffix=so
131681: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/zip.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(ZIP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/zip.so '$ext_builddir'/zip.so'
131682: ;;
131683: *netware*)
131684: suffix=nlm
131685: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
131686: ;;
131687: *)
131688: suffix=la
131689: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(ZIP_SHARED_LIBADD)'
131690: ;;
131691: esac
131692:
131693: if test "x" = "xyes"; then
131694: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
131695: else
131696: PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
131697: fi
131698:
131699: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
131700:
131701: cat >>Makefile.objects<<EOF
131702: \$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
131703: \$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
131704:
131705: $ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
131706: $link_cmd
131707:
131708: EOF
131709:
131710: ;;
131711: esac
131712:
131713: cat >>confdefs.h <<_ACEOF
131714: #define COMPILE_DL_ZIP 1
131715: _ACEOF
131716:
131717: fi
131718: fi
131719:
131720: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
131721: PHP_ZIP_SHARED=no
1.1.1.3 ! misho 131722: case "$PHP_SAPI" in
! 131723: cgi|embed)
1.1 misho 131724:
131725:
131726: case ext/zip in
131727: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131728: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131729: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131730: esac
131731:
131732:
131733:
131734: b_c_pre=$php_c_pre
131735: b_cxx_pre=$php_cxx_pre
131736: b_c_meta=$php_c_meta
131737: b_cxx_meta=$php_cxx_meta
131738: b_c_post=$php_c_post
131739: b_cxx_post=$php_cxx_post
131740: b_lo=$php_lo
131741:
131742:
131743: old_IFS=$IFS
131744: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
131745:
131746: IFS=.
131747: set $ac_src
131748: ac_obj=$1
131749: IFS=$old_IFS
131750:
1.1.1.2 misho 131751: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 131752:
131753: case $ac_src in
131754: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131755: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131756: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131757: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131758: esac
131759:
131760: cat >>Makefile.objects<<EOF
131761: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131762: $ac_comp
131763: EOF
131764: done
131765:
131766:
1.1.1.3 ! misho 131767: EXT_STATIC="$EXT_STATIC zip"
! 131768: ;;
! 131769: *)
1.1 misho 131770:
131771:
131772: case ext/zip in
131773: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131774: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131775: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131776: esac
131777:
131778:
131779:
131780: b_c_pre=$php_c_pre
131781: b_cxx_pre=$php_cxx_pre
131782: b_c_meta=$php_c_meta
131783: b_cxx_meta=$php_cxx_meta
131784: b_c_post=$php_c_post
131785: b_cxx_post=$php_cxx_post
131786: b_lo=$php_lo
131787:
131788:
131789: old_IFS=$IFS
131790: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
131791:
131792: IFS=.
131793: set $ac_src
131794: ac_obj=$1
131795: IFS=$old_IFS
131796:
1.1.1.2 misho 131797: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 131798:
131799: case $ac_src in
131800: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131801: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131802: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131803: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131804: esac
131805:
131806: cat >>Makefile.objects<<EOF
131807: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131808: $ac_comp
131809: EOF
131810: done
131811:
131812:
1.1.1.3 ! misho 131813: ;;
! 131814: esac
1.1 misho 131815: EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
131816: fi
131817:
131818:
131819: BUILD_DIR="$BUILD_DIR $ext_builddir"
131820:
131821:
131822:
131823: if test "$ext_builddir" = "."; then
131824: PHP_PECL_EXTENSION=zip
131825:
131826: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
131827:
131828: fi
131829:
131830:
131831:
131832: $php_shtool mkdir -p $ext_builddir/lib
131833:
131834:
131835:
131836: PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
131837:
131838:
131839:
131840: src=$ext_srcdir/Makefile.frag
131841: ac_srcdir=$ext_srcdir
131842: ac_builddir=$ext_builddir
131843: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
131844:
131845: fi
131846:
131847:
131848:
131849: php_enable_mysqlnd=no
131850:
1.1.1.3 ! misho 131851: { echo "$as_me:$LINENO: checking whether to enable mysqlnd" >&5
! 131852: echo $ECHO_N "checking whether to enable mysqlnd... $ECHO_C" >&6; }
1.1 misho 131853: # Check whether --enable-mysqlnd was given.
1.1.1.3 ! misho 131854: if test "${enable_mysqlnd+set}" = set; then
1.1 misho 131855: enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval
131856: else
131857:
131858: PHP_MYSQLND=no
131859: test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL
131860:
131861: fi
131862:
131863:
131864:
131865: ext_output="yes, shared"
131866: ext_shared=yes
131867: case $PHP_MYSQLND in
131868: shared,*)
131869: PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'`
131870: ;;
131871: shared)
131872: PHP_MYSQLND=yes
131873: ;;
131874: no)
131875: ext_output=no
131876: ext_shared=no
131877: ;;
131878: *)
131879: ext_output=yes
131880: ext_shared=no
131881: ;;
131882: esac
131883:
131884:
131885:
1.1.1.3 ! misho 131886: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 131887: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 131888:
131889:
131890:
131891:
131892:
131893: php_enable_mysqlnd_compression_support=yes
131894:
1.1.1.3 ! misho 131895: { echo "$as_me:$LINENO: checking whether to disable compressed protocol support in mysqlnd" >&5
! 131896: echo $ECHO_N "checking whether to disable compressed protocol support in mysqlnd... $ECHO_C" >&6; }
1.1 misho 131897: # Check whether --enable-mysqlnd_compression_support was given.
1.1.1.3 ! misho 131898: if test "${enable_mysqlnd_compression_support+set}" = set; then
1.1 misho 131899: enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval
131900: else
131901:
131902: PHP_MYSQLND_COMPRESSION_SUPPORT=yes
131903:
131904:
131905: fi
131906:
131907:
131908: ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT
1.1.1.3 ! misho 131909: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 131910: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 131911:
131912:
131913:
131914:
131915: if test -z "$PHP_ZLIB_DIR"; then
131916:
131917: php_with_zlib_dir=no
131918:
1.1.1.3 ! misho 131919: { echo "$as_me:$LINENO: checking for the location of libz" >&5
! 131920: echo $ECHO_N "checking for the location of libz... $ECHO_C" >&6; }
1.1 misho 131921:
131922: # Check whether --with-zlib-dir was given.
1.1.1.3 ! misho 131923: if test "${with_zlib_dir+set}" = set; then
1.1 misho 131924: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
131925: else
131926:
131927: PHP_ZLIB_DIR=no
131928:
131929:
131930: fi
131931:
131932:
131933: ext_output=$PHP_ZLIB_DIR
1.1.1.3 ! misho 131934: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 131935: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 131936:
131937:
131938:
131939: fi
131940:
131941: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
131942: mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
1.1.1.2 misho 131943: mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
131944: mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_net.c \
131945: mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \
1.1 misho 131946: mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\
1.1.1.2 misho 131947: mysqlnd_block_alloc.c mysqlnd_plugin.c php_mysqlnd.c"
1.1 misho 131948:
131949:
131950: if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
131951:
1.1.1.3 ! misho 131952: cat >>confdefs.h <<\_ACEOF
! 131953: #define MYSQLND_COMPRESSION_WANTED 1
! 131954: _ACEOF
1.1 misho 131955:
131956: fi
131957:
1.1.1.3 ! misho 131958: cat >>confdefs.h <<\_ACEOF
! 131959: #define MYSQLND_SSL_SUPPORTED 1
! 131960: _ACEOF
1.1 misho 131961:
131962:
131963: mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
131964:
131965: ext_builddir=ext/mysqlnd
131966: ext_srcdir=$abs_srcdir/ext/mysqlnd
131967:
131968: ac_extra=
131969:
131970: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
131971: PHP_MYSQLND_SHARED=no
131972:
131973:
131974: case ext/mysqlnd in
131975: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131976: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131977: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131978: esac
131979:
131980:
131981:
131982: b_c_pre=$php_c_pre
131983: b_cxx_pre=$php_cxx_pre
131984: b_c_meta=$php_c_meta
131985: b_cxx_meta=$php_cxx_meta
131986: b_c_post=$php_c_post
131987: b_cxx_post=$php_cxx_post
131988: b_lo=$php_lo
131989:
131990:
131991: old_IFS=$IFS
131992: for ac_src in $mysqlnd_sources; do
131993:
131994: IFS=.
131995: set $ac_src
131996: ac_obj=$1
131997: IFS=$old_IFS
131998:
131999: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
132000:
132001: case $ac_src in
132002: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132003: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132004: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132005: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132006: esac
132007:
132008: cat >>Makefile.objects<<EOF
132009: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132010: $ac_comp
132011: EOF
132012: done
132013:
132014:
132015: EXT_STATIC="$EXT_STATIC mysqlnd"
132016: if test "$ext_shared" != "nocli"; then
132017: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
132018: fi
132019: else
132020: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
132021: PHP_MYSQLND_SHARED=yes
132022:
132023: case ext/mysqlnd in
132024: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132025: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132026: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132027: esac
132028:
132029:
132030:
132031: b_c_pre=$shared_c_pre
132032: b_cxx_pre=$shared_cxx_pre
132033: b_c_meta=$shared_c_meta
132034: b_cxx_meta=$shared_cxx_meta
132035: b_c_post=$shared_c_post
132036: b_cxx_post=$shared_cxx_post
132037: b_lo=$shared_lo
132038:
132039:
132040: old_IFS=$IFS
132041: for ac_src in $mysqlnd_sources; do
132042:
132043: IFS=.
132044: set $ac_src
132045: ac_obj=$1
132046: IFS=$old_IFS
132047:
132048: shared_objects_mysqlnd="$shared_objects_mysqlnd $ac_bdir$ac_obj.lo"
132049:
132050: case $ac_src in
132051: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132052: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132053: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132054: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132055: esac
132056:
132057: cat >>Makefile.objects<<EOF
132058: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132059: $ac_comp
132060: EOF
132061: done
132062:
132063: case $host_alias in
132064: *netware*)
132065:
132066: install_modules="install-modules"
132067:
132068: case $host_alias in
132069: *aix*)
132070: suffix=so
132071: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysqlnd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(PHPMYSQLND_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysqlnd.so '$ext_builddir'/phpmysqlnd.so'
132072: ;;
132073: *netware*)
132074: suffix=nlm
132075: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) -L$(top_builddir)/netware -lphp5lib $(MYSQLND_SHARED_LIBADD)'
132076: ;;
132077: *)
132078: suffix=la
132079: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(PHPMYSQLND_SHARED_LIBADD)'
132080: ;;
132081: esac
132082:
132083: if test "x" = "xyes"; then
132084: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqlnd.$suffix"
132085: else
132086: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqlnd.$suffix"
132087: fi
132088:
132089: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
132090:
132091: cat >>Makefile.objects<<EOF
132092: \$(phplibdir)/phpmysqlnd.$suffix: $ext_builddir/phpmysqlnd.$suffix
132093: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqlnd.$suffix \$(phplibdir)
132094:
132095: $ext_builddir/phpmysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(PHPMYSQLND_SHARED_DEPENDENCIES)
132096: $link_cmd
132097:
132098: EOF
132099:
132100: ;;
132101: *)
132102:
132103: install_modules="install-modules"
132104:
132105: case $host_alias in
132106: *aix*)
132107: suffix=so
132108: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysqlnd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(MYSQLND_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysqlnd.so '$ext_builddir'/mysqlnd.so'
132109: ;;
132110: *netware*)
132111: suffix=nlm
132112: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) -L$(top_builddir)/netware -lphp5lib $(QLND_SHARED_LIBADD)'
132113: ;;
132114: *)
132115: suffix=la
132116: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(MYSQLND_SHARED_LIBADD)'
132117: ;;
132118: esac
132119:
132120: if test "x" = "xyes"; then
132121: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqlnd.$suffix"
132122: else
132123: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqlnd.$suffix"
132124: fi
132125:
132126: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
132127:
132128: cat >>Makefile.objects<<EOF
132129: \$(phplibdir)/mysqlnd.$suffix: $ext_builddir/mysqlnd.$suffix
132130: \$(LIBTOOL) --mode=install cp $ext_builddir/mysqlnd.$suffix \$(phplibdir)
132131:
132132: $ext_builddir/mysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_DEPENDENCIES)
132133: $link_cmd
132134:
132135: EOF
132136:
132137: ;;
132138: esac
132139:
132140: cat >>confdefs.h <<_ACEOF
132141: #define COMPILE_DL_MYSQLND 1
132142: _ACEOF
132143:
132144: fi
132145: fi
132146:
132147: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
132148: PHP_MYSQLND_SHARED=no
1.1.1.3 ! misho 132149: case "$PHP_SAPI" in
! 132150: cgi|embed)
1.1 misho 132151:
132152:
132153: case ext/mysqlnd in
132154: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132155: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132156: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132157: esac
132158:
132159:
132160:
132161: b_c_pre=$php_c_pre
132162: b_cxx_pre=$php_cxx_pre
132163: b_c_meta=$php_c_meta
132164: b_cxx_meta=$php_cxx_meta
132165: b_c_post=$php_c_post
132166: b_cxx_post=$php_cxx_post
132167: b_lo=$php_lo
132168:
132169:
132170: old_IFS=$IFS
132171: for ac_src in $mysqlnd_sources; do
132172:
132173: IFS=.
132174: set $ac_src
132175: ac_obj=$1
132176: IFS=$old_IFS
132177:
1.1.1.2 misho 132178: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 132179:
132180: case $ac_src in
132181: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132182: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132183: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132184: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132185: esac
132186:
132187: cat >>Makefile.objects<<EOF
132188: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132189: $ac_comp
132190: EOF
132191: done
132192:
132193:
1.1.1.3 ! misho 132194: EXT_STATIC="$EXT_STATIC mysqlnd"
! 132195: ;;
! 132196: *)
1.1 misho 132197:
132198:
132199: case ext/mysqlnd in
132200: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132201: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132202: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132203: esac
132204:
132205:
132206:
132207: b_c_pre=$php_c_pre
132208: b_cxx_pre=$php_cxx_pre
132209: b_c_meta=$php_c_meta
132210: b_cxx_meta=$php_cxx_meta
132211: b_c_post=$php_c_post
132212: b_cxx_post=$php_cxx_post
132213: b_lo=$php_lo
132214:
132215:
132216: old_IFS=$IFS
132217: for ac_src in $mysqlnd_sources; do
132218:
132219: IFS=.
132220: set $ac_src
132221: ac_obj=$1
132222: IFS=$old_IFS
132223:
1.1.1.2 misho 132224: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 132225:
132226: case $ac_src in
132227: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132228: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132229: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132230: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132231: esac
132232:
132233: cat >>Makefile.objects<<EOF
132234: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132235: $ac_comp
132236: EOF
132237: done
132238:
132239:
1.1.1.3 ! misho 132240: ;;
! 132241: esac
1.1 misho 132242: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
132243: fi
132244:
132245:
132246: BUILD_DIR="$BUILD_DIR $ext_builddir"
132247:
132248:
132249:
132250: if test "$ext_builddir" = "."; then
132251: PHP_PECL_EXTENSION=mysqlnd
132252:
132253: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
132254:
132255: fi
132256:
132257:
132258:
132259: $php_shtool mkdir -p ext/mysqlnd
132260:
132261:
132262:
132263:
132264: for header_file in ext/mysqlnd/; do
132265:
132266:
132267: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
132268:
132269: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
132270: if test -n "$unique" && test "`eval $cmd`" = "" ; then
132271: eval "INSTALLHEADERS$unique=set"
132272:
132273: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
132274:
132275: fi
132276:
132277: done
132278:
132279:
132280: fi
132281:
132282: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
132283:
132284:
132285: $php_shtool mkdir -p ext/mysqlnd
132286:
132287:
132288:
132289:
132290: for php_typename in int8 uint8 int16 uint16 int32 uint32 uchar ulong int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t; do
1.1.1.3 ! misho 132291: { echo "$as_me:$LINENO: checking whether $php_typename exists" >&5
! 132292: echo $ECHO_N "checking whether $php_typename exists... $ECHO_C" >&6; }
1.1 misho 132293:
132294: php_cache_value=php_cv_sizeof_$php_typename
1.1.1.3 ! misho 132295: if { as_var=php_cv_sizeof_$php_typename; eval "test \"\${$as_var+set}\" = set"; }; then
! 132296: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 132297: else
132298:
132299: old_LIBS=$LIBS
132300: LIBS=
132301: old_LDFLAGS=$LDFLAGS
132302: LDFLAGS=
1.1.1.3 ! misho 132303: if test "$cross_compiling" = yes; then
1.1 misho 132304:
132305: eval $php_cache_value=0
132306:
132307: else
1.1.1.3 ! misho 132308: cat >conftest.$ac_ext <<_ACEOF
! 132309: /* confdefs.h. */
! 132310: _ACEOF
! 132311: cat confdefs.h >>conftest.$ac_ext
! 132312: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 132313: /* end confdefs.h. */
132314: #include <stdio.h>
132315: #if STDC_HEADERS
132316: #include <stdlib.h>
132317: #include <stddef.h>
132318: #endif
132319: #ifdef HAVE_INTTYPES_H
132320: #include <inttypes.h>
132321: #endif
132322: #ifdef HAVE_UNISTD_H
132323: #include <unistd.h>
132324: #endif
132325: #ifdef HAVE_SYS_TYPES_H
132326: #include <sys/types.h>
132327: #endif
132328: #ifdef HAVE_STDINT_H
132329: #include <stdint.h>
132330: #endif
132331:
132332:
132333: int main()
132334: {
132335: FILE *fp = fopen("conftestval", "w");
132336: if (!fp) return(1);
132337: fprintf(fp, "%d\n", sizeof($php_typename));
132338: return(0);
132339: }
132340:
132341: _ACEOF
1.1.1.3 ! misho 132342: rm -f conftest$ac_exeext
! 132343: if { (ac_try="$ac_link"
! 132344: case "(($ac_try" in
! 132345: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 132346: *) ac_try_echo=$ac_try;;
! 132347: esac
! 132348: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 132349: (eval "$ac_link") 2>&5
! 132350: ac_status=$?
! 132351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 132352: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 132353: { (case "(($ac_try" in
! 132354: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 132355: *) ac_try_echo=$ac_try;;
! 132356: esac
! 132357: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 132358: (eval "$ac_try") 2>&5
! 132359: ac_status=$?
! 132360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 132361: (exit $ac_status); }; }; then
1.1 misho 132362:
132363: eval $php_cache_value=`cat conftestval`
132364:
132365: else
1.1.1.3 ! misho 132366: echo "$as_me: program exited with status $ac_status" >&5
! 132367: echo "$as_me: failed program was:" >&5
! 132368: sed 's/^/| /' conftest.$ac_ext >&5
! 132369:
! 132370: ( exit $ac_status )
1.1 misho 132371:
132372: eval $php_cache_value=0
132373:
132374: fi
1.1.1.3 ! misho 132375: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 132376: fi
132377:
1.1.1.3 ! misho 132378:
1.1 misho 132379: LDFLAGS=$old_LDFLAGS
132380: LIBS=$old_LIBS
132381:
132382: fi
132383:
132384: if eval test "\$$php_cache_value" != "0"; then
132385:
132386:
132387: php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' `
132388: echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h
132389:
132390:
1.1.1.3 ! misho 132391: { echo "$as_me:$LINENO: result: yes" >&5
! 132392: echo "${ECHO_T}yes" >&6; }
1.1 misho 132393:
132394: else
1.1.1.3 ! misho 132395: { echo "$as_me:$LINENO: result: no" >&5
! 132396: echo "${ECHO_T}no" >&6; }
1.1 misho 132397:
132398: fi
132399:
132400: done
132401:
132402: fi
132403:
132404:
132405: if test "$PHP_RECODE" != "no"; then
132406: test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap"
132407:
132408: if test -n "$MYSQL_LIBNAME"; then
132409:
132410: save_old_LDFLAGS=$LDFLAGS
132411: ac_stuff=""
132412:
132413: save_ext_shared=$ext_shared
132414: ext_shared=yes
132415:
132416: for ac_i in $ac_stuff; do
132417: case $ac_i in
132418: -pthread)
132419: if test "$ext_shared" = "yes"; then
132420: LDFLAGS="$LDFLAGS -pthread"
132421: else
132422:
132423:
132424: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
132425:
132426: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
132427: if test -n "$unique" && test "`eval $cmd`" = "" ; then
132428: eval "EXTRA_LDFLAGS$unique=set"
132429: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
132430: fi
132431:
132432: fi
132433: ;;
132434: -l*)
132435: ac_ii=`echo $ac_i|cut -c 3-`
132436:
132437:
132438: case $ac_ii in
132439: c|c_r|pthread*) ;;
132440: *)
132441: if test "$ext_shared" = "yes"; then
132442: LDFLAGS="$LDFLAGS -l$ac_ii"
132443: else
132444:
132445:
132446: case $ac_ii in
132447: c|c_r|pthread*) ;;
132448: *)
132449: LIBS="$LIBS -l$ac_ii"
132450: ;;
132451: esac
132452:
132453:
132454: fi
132455: ;;
132456: esac
132457:
132458:
132459: ;;
132460: -L*)
132461: ac_ii=`echo $ac_i|cut -c 3-`
132462:
132463: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
132464:
132465: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
132466: ai_p=$ac_ii
132467: else
132468:
132469: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
132470:
132471: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
132472: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
132473: fi
132474:
132475:
132476: if test "$ext_shared" = "yes"; then
132477: LDFLAGS="-L$ai_p $LDFLAGS"
132478: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
132479: else
132480:
132481:
132482:
132483: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
132484:
132485: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
132486: if test -n "$unique" && test "`eval $cmd`" = "" ; then
132487: eval "LIBPATH$unique=set"
132488:
132489: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
132490: LDFLAGS="$LDFLAGS -L$ai_p"
132491: PHP_RPATHS="$PHP_RPATHS $ai_p"
132492:
132493: fi
132494:
132495:
132496: fi
132497:
132498: fi
132499:
132500: ;;
132501: esac
132502: done
132503:
1.1.1.3 ! misho 132504: as_ac_Lib=`echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh`
! 132505: { echo "$as_me:$LINENO: checking for hash_insert in -l$MYSQL_LIBNAME" >&5
! 132506: echo $ECHO_N "checking for hash_insert in -l$MYSQL_LIBNAME... $ECHO_C" >&6; }
! 132507: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
! 132508: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 132509: else
132510: ac_check_lib_save_LIBS=$LIBS
132511: LIBS="-l$MYSQL_LIBNAME $LIBS"
1.1.1.3 ! misho 132512: cat >conftest.$ac_ext <<_ACEOF
! 132513: /* confdefs.h. */
! 132514: _ACEOF
! 132515: cat confdefs.h >>conftest.$ac_ext
! 132516: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 132517: /* end confdefs.h. */
132518:
132519: /* Override any GCC internal prototype to avoid an error.
132520: Use char because int might match the return type of a GCC
132521: builtin and then its argument prototype would still apply. */
132522: #ifdef __cplusplus
132523: extern "C"
132524: #endif
132525: char hash_insert ();
132526: int
132527: main ()
132528: {
132529: return hash_insert ();
132530: ;
132531: return 0;
132532: }
132533: _ACEOF
1.1.1.3 ! misho 132534: rm -f conftest.$ac_objext conftest$ac_exeext
! 132535: if { (ac_try="$ac_link"
! 132536: case "(($ac_try" in
! 132537: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 132538: *) ac_try_echo=$ac_try;;
! 132539: esac
! 132540: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 132541: (eval "$ac_link") 2>conftest.er1
! 132542: ac_status=$?
! 132543: grep -v '^ *+' conftest.er1 >conftest.err
! 132544: rm -f conftest.er1
! 132545: cat conftest.err >&5
! 132546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 132547: (exit $ac_status); } && {
! 132548: test -z "$ac_c_werror_flag" ||
! 132549: test ! -s conftest.err
! 132550: } && test -s conftest$ac_exeext &&
! 132551: $as_test_x conftest$ac_exeext; then
1.1 misho 132552: eval "$as_ac_Lib=yes"
132553: else
1.1.1.3 ! misho 132554: echo "$as_me: failed program was:" >&5
! 132555: sed 's/^/| /' conftest.$ac_ext >&5
! 132556:
! 132557: eval "$as_ac_Lib=no"
1.1 misho 132558: fi
1.1.1.3 ! misho 132559:
! 132560: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 132561: conftest$ac_exeext conftest.$ac_ext
1.1 misho 132562: LIBS=$ac_check_lib_save_LIBS
132563: fi
1.1.1.3 ! misho 132564: ac_res=`eval echo '${'$as_ac_Lib'}'`
! 132565: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 132566: echo "${ECHO_T}$ac_res" >&6; }
! 132567: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
1.1 misho 132568:
132569: LDFLAGS=$save_old_LDFLAGS
132570: ext_shared=$save_ext_shared
132571:
132572: recode_conflict="$recode_conflict mysql"
132573:
132574:
132575: else
132576:
132577: LDFLAGS=$save_old_LDFLAGS
132578: ext_shared=$save_ext_shared
132579: unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert
132580:
132581:
132582: fi
132583:
132584: fi
132585:
132586: if test -n "$recode_conflict"; then
1.1.1.3 ! misho 132587: { { echo "$as_me:$LINENO: error: recode extension can not be configured together with:$recode_conflict" >&5
! 132588: echo "$as_me: error: recode extension can not be configured together with:$recode_conflict" >&2;}
! 132589: { (exit 1); exit 1; }; }
1.1 misho 132590: fi
132591: fi
132592:
132593:
132594:
132595:
132596: enable_shared=yes
132597: enable_static=yes
132598:
1.1.1.2 misho 132599: case $php_sapi_module in
1.1 misho 132600: shared)
132601: enable_static=no
132602: case $with_pic in
132603: yes)
132604: standard_libtool_flag='-prefer-pic'
132605: ;;
132606: no)
132607: standard_libtool_flag='-prefer-non-pic'
132608: ;;
132609: esac
132610: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
132611: ;;
1.1.1.2 misho 132612: *)
132613: standard_libtool_flag='-prefer-non-pic -static'
132614: if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then
132615: enable_shared=no
132616: fi
132617: ;;
1.1 misho 132618: esac
132619:
132620: EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
132621:
132622: if test "$ac_cv_lib_crypt_crypt" = "yes"; then
132623: EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
132624: fi
132625:
132626: unset LIBS LDFLAGS
132627:
132628:
132629:
132630: # Check whether --enable- was given.
1.1.1.3 ! misho 132631: if test "${enable_+set}" = set; then
1.1 misho 132632: enableval=$enable_;
132633: fi
132634:
132635:
132636:
1.1.1.3 ! misho 132637: { echo "$as_me:$LINENO: result: " >&5
! 132638: echo "${ECHO_T}" >&6; }
! 132639: { echo "$as_me:$LINENO: result: ${T_MD}Configuring PEAR${T_ME}" >&5
! 132640: echo "${ECHO_T}${T_MD}Configuring PEAR${T_ME}" >&6; }
1.1 misho 132641:
132642:
132643: # compatibility
132644: if test -z "$with_pear" && test "$enable_pear" = "no"; then
132645: with_pear=no
132646: fi
132647:
132648: # If CLI is disabled -> disable PEAR
132649: if test "$PHP_CLI" = "no"; then
132650: with_pear=no
132651: fi
132652:
132653:
132654: php_with_pear=DEFAULT
132655:
1.1.1.3 ! misho 132656: { echo "$as_me:$LINENO: checking whether to install PEAR" >&5
! 132657: echo $ECHO_N "checking whether to install PEAR... $ECHO_C" >&6; }
1.1 misho 132658:
132659: # Check whether --with-pear was given.
1.1.1.3 ! misho 132660: if test "${with_pear+set}" = set; then
1.1 misho 132661: withval=$with_pear; PHP_PEAR=$withval
132662: else
132663:
132664: PHP_PEAR=DEFAULT
132665: test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL
132666:
132667: fi
132668:
132669:
132670:
132671: ext_output="yes, shared"
132672: ext_shared=yes
132673: case $PHP_PEAR in
132674: shared,*)
132675: PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'`
132676: ;;
132677: shared)
132678: PHP_PEAR=yes
132679: ;;
132680: no)
132681: ext_output=no
132682: ext_shared=no
132683: ;;
132684: *)
132685: ext_output=yes
132686: ext_shared=no
132687: ;;
132688: esac
132689:
132690:
132691:
1.1.1.3 ! misho 132692: { echo "$as_me:$LINENO: result: $ext_output" >&5
! 132693: echo "${ECHO_T}$ext_output" >&6; }
1.1 misho 132694:
132695:
132696:
132697:
132698: if test "$PHP_PEAR" != "no"; then
132699:
132700: if test "$PHP_XML" = "no"; then
132701: pear_error_msg="$pear_error_msg
132702: PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)"
132703: fi
132704:
132705:
132706: if test "$pear_error_msg"; then
1.1.1.3 ! misho 132707: { { echo "$as_me:$LINENO: error: $pear_error_msg" >&5
! 132708: echo "$as_me: error: $pear_error_msg" >&2;}
! 132709: { (exit 1); exit 1; }; }
1.1 misho 132710: fi
132711:
132712: install_pear="install-pear"
132713: PEAR_INSTALLDIR=$PHP_PEAR
132714:
132715: if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
132716: case $PHP_LAYOUT in
132717: GNU) PEAR_INSTALLDIR=$datadir/pear;;
132718: *) PEAR_INSTALLDIR=$libdir/php;;
132719: esac
132720: fi
132721:
132722:
132723: src=$abs_srcdir/pear/Makefile.frag
132724: ac_srcdir=$abs_srcdir/pear
132725: ac_builddir=pear
132726: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
132727:
132728: fi
132729:
132730:
132731:
132732:
132733: # Check whether --enable- was given.
1.1.1.3 ! misho 132734: if test "${enable_+set}" = set; then
1.1 misho 132735: enableval=$enable_;
132736: fi
132737:
132738:
132739:
1.1.1.3 ! misho 132740: { echo "$as_me:$LINENO: result: " >&5
! 132741: echo "${ECHO_T}" >&6; }
! 132742: { echo "$as_me:$LINENO: result: ${T_MD}Configuring Zend${T_ME}" >&5
! 132743: echo "${ECHO_T}${T_MD}Configuring Zend${T_ME}" >&6; }
1.1 misho 132744:
132745:
132746:
132747:
132748:
132749:
132750:
132751:
132752:
132753:
132754: # we only support certain bison versions
1.1.1.3 ! misho 132755: bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2"
1.1 misho 132756:
132757: # for standalone build of Zend Engine
132758: test -z "$SED" && SED=sed
132759:
132760: bison_version=none
132761: if test "$YACC"; then
1.1.1.3 ! misho 132762: { echo "$as_me:$LINENO: checking for bison version" >&5
! 132763: echo $ECHO_N "checking for bison version... $ECHO_C" >&6; }
! 132764: if test "${php_cv_bison_version+set}" = set; then
! 132765: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 132766: else
132767:
132768: bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
132769: php_cv_bison_version=invalid
132770: if test -n "$bison_version_vars"; then
132771: set $bison_version_vars
132772: bison_version="${1}.${2}"
132773: for bison_check_version in $bison_version_list; do
132774: if test "$bison_version" = "$bison_check_version"; then
132775: php_cv_bison_version="$bison_check_version (ok)"
132776: break
132777: fi
132778: done
132779: fi
132780:
132781: fi
1.1.1.3 ! misho 132782: { echo "$as_me:$LINENO: result: $php_cv_bison_version" >&5
! 132783: echo "${ECHO_T}$php_cv_bison_version" >&6; }
! 132784: fi
! 132785: case $php_cv_bison_version in
! 132786: ""|invalid)
! 132787: bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
! 132788: { echo "$as_me:$LINENO: WARNING: $bison_msg" >&5
! 132789: echo "$as_me: WARNING: $bison_msg" >&2;}
! 132790: YACC="exit 0;"
! 132791: ;;
! 132792: esac
! 132793:
! 132794:
! 132795: if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
! 132796: "`uname -sv`" = "AIX 4"; then
! 132797: CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
! 132798: fi
! 132799:
! 132800: if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then
! 132801: CPPFLAGS="$CPPFLAGS -traditional-cpp"
! 132802: fi
! 132803:
! 132804:
! 132805:
! 132806:
! 132807:
! 132808:
! 132809:
! 132810:
! 132811:
! 132812:
! 132813:
! 132814:
! 132815:
! 132816:
! 132817: for ac_header in inttypes.h \
! 132818: stdint.h \
! 132819: limits.h \
! 132820: malloc.h \
! 132821: string.h \
! 132822: unistd.h \
! 132823: stdarg.h \
! 132824: sys/types.h \
! 132825: sys/time.h \
! 132826: signal.h \
! 132827: unix.h \
! 132828: stdlib.h \
! 132829: dlfcn.h
! 132830: do
! 132831: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 132832: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 132833: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 132834: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 132835: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 132836: echo $ECHO_N "(cached) $ECHO_C" >&6
! 132837: fi
! 132838: ac_res=`eval echo '${'$as_ac_Header'}'`
! 132839: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 132840: echo "${ECHO_T}$ac_res" >&6; }
! 132841: else
! 132842: # Is the header compilable?
! 132843: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 132844: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 132845: cat >conftest.$ac_ext <<_ACEOF
! 132846: /* confdefs.h. */
! 132847: _ACEOF
! 132848: cat confdefs.h >>conftest.$ac_ext
! 132849: cat >>conftest.$ac_ext <<_ACEOF
! 132850: /* end confdefs.h. */
! 132851: $ac_includes_default
! 132852: #include <$ac_header>
! 132853: _ACEOF
! 132854: rm -f conftest.$ac_objext
! 132855: if { (ac_try="$ac_compile"
! 132856: case "(($ac_try" in
! 132857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 132858: *) ac_try_echo=$ac_try;;
! 132859: esac
! 132860: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 132861: (eval "$ac_compile") 2>conftest.er1
! 132862: ac_status=$?
! 132863: grep -v '^ *+' conftest.er1 >conftest.err
! 132864: rm -f conftest.er1
! 132865: cat conftest.err >&5
! 132866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 132867: (exit $ac_status); } && {
! 132868: test -z "$ac_c_werror_flag" ||
! 132869: test ! -s conftest.err
! 132870: } && test -s conftest.$ac_objext; then
! 132871: ac_header_compiler=yes
! 132872: else
! 132873: echo "$as_me: failed program was:" >&5
! 132874: sed 's/^/| /' conftest.$ac_ext >&5
! 132875:
! 132876: ac_header_compiler=no
! 132877: fi
! 132878:
! 132879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 132880: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 132881: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 132882:
! 132883: # Is the header present?
! 132884: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 132885: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 132886: cat >conftest.$ac_ext <<_ACEOF
! 132887: /* confdefs.h. */
! 132888: _ACEOF
! 132889: cat confdefs.h >>conftest.$ac_ext
! 132890: cat >>conftest.$ac_ext <<_ACEOF
! 132891: /* end confdefs.h. */
! 132892: #include <$ac_header>
! 132893: _ACEOF
! 132894: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 132895: case "(($ac_try" in
! 132896: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 132897: *) ac_try_echo=$ac_try;;
! 132898: esac
! 132899: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 132900: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 132901: ac_status=$?
! 132902: grep -v '^ *+' conftest.er1 >conftest.err
! 132903: rm -f conftest.er1
! 132904: cat conftest.err >&5
! 132905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 132906: (exit $ac_status); } >/dev/null && {
! 132907: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 132908: test ! -s conftest.err
! 132909: }; then
! 132910: ac_header_preproc=yes
! 132911: else
! 132912: echo "$as_me: failed program was:" >&5
! 132913: sed 's/^/| /' conftest.$ac_ext >&5
! 132914:
! 132915: ac_header_preproc=no
! 132916: fi
1.1 misho 132917:
1.1.1.3 ! misho 132918: rm -f conftest.err conftest.$ac_ext
! 132919: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 132920: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 misho 132921:
1.1.1.3 ! misho 132922: # So? What about this header?
! 132923: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 132924: yes:no: )
! 132925: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 132926: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 132927: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 132928: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 132929: ac_header_preproc=yes
! 132930: ;;
! 132931: no:yes:* )
! 132932: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 132933: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 132934: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 132935: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 132936: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 132937: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 132938: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 132939: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 132940: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 132941: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 132942: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 132943: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 misho 132944:
1.1.1.3 ! misho 132945: ;;
! 132946: esac
! 132947: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 132948: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 132949: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 132950: echo $ECHO_N "(cached) $ECHO_C" >&6
! 132951: else
! 132952: eval "$as_ac_Header=\$ac_header_preproc"
! 132953: fi
! 132954: ac_res=`eval echo '${'$as_ac_Header'}'`
! 132955: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 132956: echo "${ECHO_T}$ac_res" >&6; }
1.1 misho 132957:
1.1.1.3 ! misho 132958: fi
! 132959: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 132960: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 132961: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 132962: _ACEOF
132963:
132964: fi
132965:
132966: done
132967:
132968:
1.1.1.3 ! misho 132969: { echo "$as_me:$LINENO: checking for size_t" >&5
! 132970: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
! 132971: if test "${ac_cv_type_size_t+set}" = set; then
! 132972: echo $ECHO_N "(cached) $ECHO_C" >&6
! 132973: else
! 132974: cat >conftest.$ac_ext <<_ACEOF
! 132975: /* confdefs.h. */
! 132976: _ACEOF
! 132977: cat confdefs.h >>conftest.$ac_ext
! 132978: cat >>conftest.$ac_ext <<_ACEOF
! 132979: /* end confdefs.h. */
! 132980: $ac_includes_default
! 132981: typedef size_t ac__type_new_;
! 132982: int
! 132983: main ()
! 132984: {
! 132985: if ((ac__type_new_ *) 0)
! 132986: return 0;
! 132987: if (sizeof (ac__type_new_))
! 132988: return 0;
! 132989: ;
! 132990: return 0;
! 132991: }
! 132992: _ACEOF
! 132993: rm -f conftest.$ac_objext
! 132994: if { (ac_try="$ac_compile"
! 132995: case "(($ac_try" in
! 132996: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 132997: *) ac_try_echo=$ac_try;;
! 132998: esac
! 132999: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133000: (eval "$ac_compile") 2>conftest.er1
! 133001: ac_status=$?
! 133002: grep -v '^ *+' conftest.er1 >conftest.err
! 133003: rm -f conftest.er1
! 133004: cat conftest.err >&5
! 133005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133006: (exit $ac_status); } && {
! 133007: test -z "$ac_c_werror_flag" ||
! 133008: test ! -s conftest.err
! 133009: } && test -s conftest.$ac_objext; then
! 133010: ac_cv_type_size_t=yes
! 133011: else
! 133012: echo "$as_me: failed program was:" >&5
! 133013: sed 's/^/| /' conftest.$ac_ext >&5
! 133014:
! 133015: ac_cv_type_size_t=no
! 133016: fi
1.1 misho 133017:
1.1.1.3 ! misho 133018: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 133019: fi
! 133020: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 133021: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
! 133022: if test $ac_cv_type_size_t = yes; then
! 133023: :
1.1 misho 133024: else
133025:
133026: cat >>confdefs.h <<_ACEOF
133027: #define size_t unsigned int
133028: _ACEOF
133029:
133030: fi
133031:
1.1.1.3 ! misho 133032: { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 133033: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
! 133034: if test "${ac_cv_type_signal+set}" = set; then
! 133035: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 133036: else
1.1.1.3 ! misho 133037: cat >conftest.$ac_ext <<_ACEOF
! 133038: /* confdefs.h. */
! 133039: _ACEOF
! 133040: cat confdefs.h >>conftest.$ac_ext
! 133041: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133042: /* end confdefs.h. */
133043: #include <sys/types.h>
133044: #include <signal.h>
133045:
133046: int
133047: main ()
133048: {
133049: return *(signal (0, 0)) (0) == 1;
133050: ;
133051: return 0;
133052: }
133053: _ACEOF
1.1.1.3 ! misho 133054: rm -f conftest.$ac_objext
! 133055: if { (ac_try="$ac_compile"
! 133056: case "(($ac_try" in
! 133057: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133058: *) ac_try_echo=$ac_try;;
! 133059: esac
! 133060: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133061: (eval "$ac_compile") 2>conftest.er1
! 133062: ac_status=$?
! 133063: grep -v '^ *+' conftest.er1 >conftest.err
! 133064: rm -f conftest.er1
! 133065: cat conftest.err >&5
! 133066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133067: (exit $ac_status); } && {
! 133068: test -z "$ac_c_werror_flag" ||
! 133069: test ! -s conftest.err
! 133070: } && test -s conftest.$ac_objext; then
1.1 misho 133071: ac_cv_type_signal=int
133072: else
1.1.1.3 ! misho 133073: echo "$as_me: failed program was:" >&5
! 133074: sed 's/^/| /' conftest.$ac_ext >&5
! 133075:
! 133076: ac_cv_type_signal=void
1.1 misho 133077: fi
1.1.1.3 ! misho 133078:
1.1 misho 133079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
133080: fi
1.1.1.3 ! misho 133081: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 133082: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
1.1 misho 133083:
133084: cat >>confdefs.h <<_ACEOF
133085: #define RETSIGTYPE $ac_cv_type_signal
133086: _ACEOF
133087:
133088:
133089:
133090:
133091:
133092:
133093:
1.1.1.3 ! misho 133094: { echo "$as_me:$LINENO: checking for uint" >&5
! 133095: echo $ECHO_N "checking for uint... $ECHO_C" >&6; }
! 133096: if test "${ac_cv_type_uint+set}" = set; then
! 133097: echo $ECHO_N "(cached) $ECHO_C" >&6
! 133098: else
! 133099: cat >conftest.$ac_ext <<_ACEOF
! 133100: /* confdefs.h. */
! 133101: _ACEOF
! 133102: cat confdefs.h >>conftest.$ac_ext
! 133103: cat >>conftest.$ac_ext <<_ACEOF
! 133104: /* end confdefs.h. */
! 133105: $ac_includes_default
! 133106: typedef uint ac__type_new_;
! 133107: int
! 133108: main ()
! 133109: {
! 133110: if ((ac__type_new_ *) 0)
! 133111: return 0;
! 133112: if (sizeof (ac__type_new_))
! 133113: return 0;
! 133114: ;
! 133115: return 0;
! 133116: }
! 133117: _ACEOF
! 133118: rm -f conftest.$ac_objext
! 133119: if { (ac_try="$ac_compile"
! 133120: case "(($ac_try" in
! 133121: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133122: *) ac_try_echo=$ac_try;;
! 133123: esac
! 133124: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133125: (eval "$ac_compile") 2>conftest.er1
! 133126: ac_status=$?
! 133127: grep -v '^ *+' conftest.er1 >conftest.err
! 133128: rm -f conftest.er1
! 133129: cat conftest.err >&5
! 133130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133131: (exit $ac_status); } && {
! 133132: test -z "$ac_c_werror_flag" ||
! 133133: test ! -s conftest.err
! 133134: } && test -s conftest.$ac_objext; then
! 133135: ac_cv_type_uint=yes
! 133136: else
! 133137: echo "$as_me: failed program was:" >&5
! 133138: sed 's/^/| /' conftest.$ac_ext >&5
! 133139:
! 133140: ac_cv_type_uint=no
! 133141: fi
1.1 misho 133142:
1.1.1.3 ! misho 133143: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 133144: fi
! 133145: { echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
! 133146: echo "${ECHO_T}$ac_cv_type_uint" >&6; }
! 133147: if test $ac_cv_type_uint = yes; then
! 133148: :
1.1 misho 133149: else
133150:
133151: cat >>confdefs.h <<_ACEOF
133152: #define uint unsigned int
133153: _ACEOF
133154:
133155: fi
133156:
1.1.1.3 ! misho 133157: { echo "$as_me:$LINENO: checking for ulong" >&5
! 133158: echo $ECHO_N "checking for ulong... $ECHO_C" >&6; }
! 133159: if test "${ac_cv_type_ulong+set}" = set; then
! 133160: echo $ECHO_N "(cached) $ECHO_C" >&6
! 133161: else
! 133162: cat >conftest.$ac_ext <<_ACEOF
! 133163: /* confdefs.h. */
! 133164: _ACEOF
! 133165: cat confdefs.h >>conftest.$ac_ext
! 133166: cat >>conftest.$ac_ext <<_ACEOF
! 133167: /* end confdefs.h. */
! 133168: $ac_includes_default
! 133169: typedef ulong ac__type_new_;
! 133170: int
! 133171: main ()
! 133172: {
! 133173: if ((ac__type_new_ *) 0)
! 133174: return 0;
! 133175: if (sizeof (ac__type_new_))
! 133176: return 0;
! 133177: ;
! 133178: return 0;
! 133179: }
! 133180: _ACEOF
! 133181: rm -f conftest.$ac_objext
! 133182: if { (ac_try="$ac_compile"
! 133183: case "(($ac_try" in
! 133184: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133185: *) ac_try_echo=$ac_try;;
! 133186: esac
! 133187: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133188: (eval "$ac_compile") 2>conftest.er1
! 133189: ac_status=$?
! 133190: grep -v '^ *+' conftest.er1 >conftest.err
! 133191: rm -f conftest.er1
! 133192: cat conftest.err >&5
! 133193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133194: (exit $ac_status); } && {
! 133195: test -z "$ac_c_werror_flag" ||
! 133196: test ! -s conftest.err
! 133197: } && test -s conftest.$ac_objext; then
! 133198: ac_cv_type_ulong=yes
! 133199: else
! 133200: echo "$as_me: failed program was:" >&5
! 133201: sed 's/^/| /' conftest.$ac_ext >&5
! 133202:
! 133203: ac_cv_type_ulong=no
! 133204: fi
1.1 misho 133205:
1.1.1.3 ! misho 133206: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 133207: fi
! 133208: { echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
! 133209: echo "${ECHO_T}$ac_cv_type_ulong" >&6; }
! 133210: if test $ac_cv_type_ulong = yes; then
! 133211: :
1.1 misho 133212: else
133213:
133214: cat >>confdefs.h <<_ACEOF
133215: #define ulong unsigned long
133216: _ACEOF
133217:
133218: fi
133219:
133220:
133221:
1.1.1.3 ! misho 133222: { echo "$as_me:$LINENO: checking for int32_t" >&5
! 133223: echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
! 133224: cat >conftest.$ac_ext <<_ACEOF
! 133225: /* confdefs.h. */
! 133226: _ACEOF
! 133227: cat confdefs.h >>conftest.$ac_ext
! 133228: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133229: /* end confdefs.h. */
133230:
133231: #if HAVE_SYS_TYPES_H
133232: #include <sys/types.h>
133233: #endif
133234: #if HAVE_INTTYPES_H
133235: #include <inttypes.h>
133236: #elif HAVE_STDINT_H
133237: #include <stdint.h>
133238: #endif
133239: int
133240: main ()
133241: {
133242: if ((int32_t *) 0)
133243: return 0;
133244: if (sizeof (int32_t))
133245: return 0;
133246:
133247: ;
133248: return 0;
133249: }
133250: _ACEOF
1.1.1.3 ! misho 133251: rm -f conftest.$ac_objext
! 133252: if { (ac_try="$ac_compile"
! 133253: case "(($ac_try" in
! 133254: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133255: *) ac_try_echo=$ac_try;;
! 133256: esac
! 133257: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133258: (eval "$ac_compile") 2>conftest.er1
! 133259: ac_status=$?
! 133260: grep -v '^ *+' conftest.er1 >conftest.err
! 133261: rm -f conftest.er1
! 133262: cat conftest.err >&5
! 133263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133264: (exit $ac_status); } && {
! 133265: test -z "$ac_c_werror_flag" ||
! 133266: test ! -s conftest.err
! 133267: } && test -s conftest.$ac_objext; then
1.1 misho 133268:
133269:
133270: cat >>confdefs.h <<_ACEOF
133271: #define HAVE_INT32_T 1
133272: _ACEOF
133273:
1.1.1.3 ! misho 133274: { echo "$as_me:$LINENO: result: yes" >&5
! 133275: echo "${ECHO_T}yes" >&6; }
1.1 misho 133276:
133277: else
1.1.1.3 ! misho 133278: echo "$as_me: failed program was:" >&5
! 133279: sed 's/^/| /' conftest.$ac_ext >&5
! 133280:
! 133281: { echo "$as_me:$LINENO: result: no" >&5
! 133282: echo "${ECHO_T}no" >&6; }
1.1 misho 133283:
133284: fi
1.1.1.3 ! misho 133285:
1.1 misho 133286: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
133287:
1.1.1.3 ! misho 133288: { echo "$as_me:$LINENO: checking for uint32_t" >&5
! 133289: echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
! 133290: cat >conftest.$ac_ext <<_ACEOF
! 133291: /* confdefs.h. */
! 133292: _ACEOF
! 133293: cat confdefs.h >>conftest.$ac_ext
! 133294: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133295: /* end confdefs.h. */
133296:
133297: #if HAVE_SYS_TYPES_H
133298: #include <sys/types.h>
133299: #endif
133300: #if HAVE_INTTYPES_H
133301: #include <inttypes.h>
133302: #elif HAVE_STDINT_H
133303: #include <stdint.h>
133304: #endif
133305: int
133306: main ()
133307: {
133308: if ((uint32_t *) 0)
133309: return 0;
133310: if (sizeof (uint32_t))
133311: return 0;
133312:
133313: ;
133314: return 0;
133315: }
133316: _ACEOF
1.1.1.3 ! misho 133317: rm -f conftest.$ac_objext
! 133318: if { (ac_try="$ac_compile"
! 133319: case "(($ac_try" in
! 133320: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133321: *) ac_try_echo=$ac_try;;
! 133322: esac
! 133323: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133324: (eval "$ac_compile") 2>conftest.er1
! 133325: ac_status=$?
! 133326: grep -v '^ *+' conftest.er1 >conftest.err
! 133327: rm -f conftest.er1
! 133328: cat conftest.err >&5
! 133329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133330: (exit $ac_status); } && {
! 133331: test -z "$ac_c_werror_flag" ||
! 133332: test ! -s conftest.err
! 133333: } && test -s conftest.$ac_objext; then
1.1 misho 133334:
133335:
133336: cat >>confdefs.h <<_ACEOF
133337: #define HAVE_UINT32_T 1
133338: _ACEOF
133339:
1.1.1.3 ! misho 133340: { echo "$as_me:$LINENO: result: yes" >&5
! 133341: echo "${ECHO_T}yes" >&6; }
1.1 misho 133342:
133343: else
1.1.1.3 ! misho 133344: echo "$as_me: failed program was:" >&5
! 133345: sed 's/^/| /' conftest.$ac_ext >&5
! 133346:
! 133347: { echo "$as_me:$LINENO: result: no" >&5
! 133348: echo "${ECHO_T}no" >&6; }
1.1 misho 133349:
133350: fi
1.1.1.3 ! misho 133351:
1.1 misho 133352: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
133353:
1.1.1.3 ! misho 133354:
1.1 misho 133355: for ac_func in vprintf
1.1.1.3 ! misho 133356: do
! 133357: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 133358: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 133359: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 133360: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 133361: echo $ECHO_N "(cached) $ECHO_C" >&6
! 133362: else
! 133363: cat >conftest.$ac_ext <<_ACEOF
! 133364: /* confdefs.h. */
! 133365: _ACEOF
! 133366: cat confdefs.h >>conftest.$ac_ext
! 133367: cat >>conftest.$ac_ext <<_ACEOF
! 133368: /* end confdefs.h. */
! 133369: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 133370: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 133371: #define $ac_func innocuous_$ac_func
! 133372:
! 133373: /* System header to define __stub macros and hopefully few prototypes,
! 133374: which can conflict with char $ac_func (); below.
! 133375: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 133376: <limits.h> exists even on freestanding compilers. */
! 133377:
! 133378: #ifdef __STDC__
! 133379: # include <limits.h>
! 133380: #else
! 133381: # include <assert.h>
! 133382: #endif
! 133383:
! 133384: #undef $ac_func
! 133385:
! 133386: /* Override any GCC internal prototype to avoid an error.
! 133387: Use char because int might match the return type of a GCC
! 133388: builtin and then its argument prototype would still apply. */
! 133389: #ifdef __cplusplus
! 133390: extern "C"
! 133391: #endif
! 133392: char $ac_func ();
! 133393: /* The GNU C library defines this for functions which it implements
! 133394: to always fail with ENOSYS. Some functions are actually named
! 133395: something starting with __ and the normal name is an alias. */
! 133396: #if defined __stub_$ac_func || defined __stub___$ac_func
! 133397: choke me
! 133398: #endif
! 133399:
! 133400: int
! 133401: main ()
! 133402: {
! 133403: return $ac_func ();
! 133404: ;
! 133405: return 0;
! 133406: }
! 133407: _ACEOF
! 133408: rm -f conftest.$ac_objext conftest$ac_exeext
! 133409: if { (ac_try="$ac_link"
! 133410: case "(($ac_try" in
! 133411: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133412: *) ac_try_echo=$ac_try;;
! 133413: esac
! 133414: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133415: (eval "$ac_link") 2>conftest.er1
! 133416: ac_status=$?
! 133417: grep -v '^ *+' conftest.er1 >conftest.err
! 133418: rm -f conftest.er1
! 133419: cat conftest.err >&5
! 133420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133421: (exit $ac_status); } && {
! 133422: test -z "$ac_c_werror_flag" ||
! 133423: test ! -s conftest.err
! 133424: } && test -s conftest$ac_exeext &&
! 133425: $as_test_x conftest$ac_exeext; then
! 133426: eval "$as_ac_var=yes"
! 133427: else
! 133428: echo "$as_me: failed program was:" >&5
! 133429: sed 's/^/| /' conftest.$ac_ext >&5
! 133430:
! 133431: eval "$as_ac_var=no"
! 133432: fi
! 133433:
! 133434: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 133435: conftest$ac_exeext conftest.$ac_ext
! 133436: fi
! 133437: ac_res=`eval echo '${'$as_ac_var'}'`
! 133438: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 133439: echo "${ECHO_T}$ac_res" >&6; }
! 133440: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 133441: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 133442: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 133443: _ACEOF
! 133444:
! 133445: { echo "$as_me:$LINENO: checking for _doprnt" >&5
! 133446: echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
! 133447: if test "${ac_cv_func__doprnt+set}" = set; then
! 133448: echo $ECHO_N "(cached) $ECHO_C" >&6
! 133449: else
! 133450: cat >conftest.$ac_ext <<_ACEOF
! 133451: /* confdefs.h. */
! 133452: _ACEOF
! 133453: cat confdefs.h >>conftest.$ac_ext
! 133454: cat >>conftest.$ac_ext <<_ACEOF
! 133455: /* end confdefs.h. */
! 133456: /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
! 133457: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 133458: #define _doprnt innocuous__doprnt
! 133459:
! 133460: /* System header to define __stub macros and hopefully few prototypes,
! 133461: which can conflict with char _doprnt (); below.
! 133462: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 133463: <limits.h> exists even on freestanding compilers. */
! 133464:
! 133465: #ifdef __STDC__
! 133466: # include <limits.h>
! 133467: #else
! 133468: # include <assert.h>
! 133469: #endif
! 133470:
! 133471: #undef _doprnt
! 133472:
! 133473: /* Override any GCC internal prototype to avoid an error.
! 133474: Use char because int might match the return type of a GCC
! 133475: builtin and then its argument prototype would still apply. */
! 133476: #ifdef __cplusplus
! 133477: extern "C"
! 133478: #endif
! 133479: char _doprnt ();
! 133480: /* The GNU C library defines this for functions which it implements
! 133481: to always fail with ENOSYS. Some functions are actually named
! 133482: something starting with __ and the normal name is an alias. */
! 133483: #if defined __stub__doprnt || defined __stub____doprnt
! 133484: choke me
! 133485: #endif
! 133486:
! 133487: int
! 133488: main ()
! 133489: {
! 133490: return _doprnt ();
! 133491: ;
! 133492: return 0;
! 133493: }
1.1 misho 133494: _ACEOF
1.1.1.3 ! misho 133495: rm -f conftest.$ac_objext conftest$ac_exeext
! 133496: if { (ac_try="$ac_link"
! 133497: case "(($ac_try" in
! 133498: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133499: *) ac_try_echo=$ac_try;;
! 133500: esac
! 133501: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133502: (eval "$ac_link") 2>conftest.er1
! 133503: ac_status=$?
! 133504: grep -v '^ *+' conftest.er1 >conftest.err
! 133505: rm -f conftest.er1
! 133506: cat conftest.err >&5
! 133507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133508: (exit $ac_status); } && {
! 133509: test -z "$ac_c_werror_flag" ||
! 133510: test ! -s conftest.err
! 133511: } && test -s conftest$ac_exeext &&
! 133512: $as_test_x conftest$ac_exeext; then
! 133513: ac_cv_func__doprnt=yes
! 133514: else
! 133515: echo "$as_me: failed program was:" >&5
! 133516: sed 's/^/| /' conftest.$ac_ext >&5
! 133517:
! 133518: ac_cv_func__doprnt=no
! 133519: fi
1.1 misho 133520:
1.1.1.3 ! misho 133521: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 133522: conftest$ac_exeext conftest.$ac_ext
! 133523: fi
! 133524: { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
! 133525: echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
! 133526: if test $ac_cv_func__doprnt = yes; then
1.1 misho 133527:
1.1.1.3 ! misho 133528: cat >>confdefs.h <<\_ACEOF
! 133529: #define HAVE_DOPRNT 1
! 133530: _ACEOF
1.1 misho 133531:
133532: fi
133533:
133534: fi
133535: done
133536:
133537:
1.1.1.3 ! misho 133538: { echo "$as_me:$LINENO: checking for working memcmp" >&5
! 133539: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
! 133540: if test "${ac_cv_func_memcmp_working+set}" = set; then
! 133541: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 133542: else
1.1.1.3 ! misho 133543: if test "$cross_compiling" = yes; then
1.1 misho 133544: ac_cv_func_memcmp_working=no
133545: else
1.1.1.3 ! misho 133546: cat >conftest.$ac_ext <<_ACEOF
! 133547: /* confdefs.h. */
! 133548: _ACEOF
! 133549: cat confdefs.h >>conftest.$ac_ext
! 133550: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133551: /* end confdefs.h. */
133552: $ac_includes_default
133553: int
133554: main ()
133555: {
133556:
133557: /* Some versions of memcmp are not 8-bit clean. */
133558: char c0 = '\100', c1 = '\200', c2 = '\201';
133559: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
133560: return 1;
133561:
133562: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
133563: or more and with at least one buffer not starting on a 4-byte boundary.
133564: William Lewis provided this test program. */
133565: {
133566: char foo[21];
133567: char bar[21];
133568: int i;
133569: for (i = 0; i < 4; i++)
133570: {
133571: char *a = foo + i;
133572: char *b = bar + i;
133573: strcpy (a, "--------01111111");
133574: strcpy (b, "--------10000000");
133575: if (memcmp (a, b, 16) >= 0)
133576: return 1;
133577: }
133578: return 0;
133579: }
133580:
133581: ;
133582: return 0;
133583: }
133584: _ACEOF
1.1.1.3 ! misho 133585: rm -f conftest$ac_exeext
! 133586: if { (ac_try="$ac_link"
! 133587: case "(($ac_try" in
! 133588: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133589: *) ac_try_echo=$ac_try;;
! 133590: esac
! 133591: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133592: (eval "$ac_link") 2>&5
! 133593: ac_status=$?
! 133594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133595: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 133596: { (case "(($ac_try" in
! 133597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133598: *) ac_try_echo=$ac_try;;
! 133599: esac
! 133600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133601: (eval "$ac_try") 2>&5
! 133602: ac_status=$?
! 133603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133604: (exit $ac_status); }; }; then
1.1 misho 133605: ac_cv_func_memcmp_working=yes
133606: else
1.1.1.3 ! misho 133607: echo "$as_me: program exited with status $ac_status" >&5
! 133608: echo "$as_me: failed program was:" >&5
! 133609: sed 's/^/| /' conftest.$ac_ext >&5
! 133610:
! 133611: ( exit $ac_status )
! 133612: ac_cv_func_memcmp_working=no
1.1 misho 133613: fi
1.1.1.3 ! misho 133614: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 133615: fi
133616:
1.1.1.3 ! misho 133617:
1.1 misho 133618: fi
1.1.1.3 ! misho 133619: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
! 133620: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
1.1 misho 133621: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
133622: *" memcmp.$ac_objext "* ) ;;
133623: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
133624: ;;
133625: esac
133626:
133627:
133628: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
133629: # for constant arguments. Useless!
1.1.1.3 ! misho 133630: { echo "$as_me:$LINENO: checking for working alloca.h" >&5
! 133631: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
! 133632: if test "${ac_cv_working_alloca_h+set}" = set; then
! 133633: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 133634: else
1.1.1.3 ! misho 133635: cat >conftest.$ac_ext <<_ACEOF
! 133636: /* confdefs.h. */
! 133637: _ACEOF
! 133638: cat confdefs.h >>conftest.$ac_ext
! 133639: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133640: /* end confdefs.h. */
133641: #include <alloca.h>
133642: int
133643: main ()
133644: {
133645: char *p = (char *) alloca (2 * sizeof (int));
133646: if (p) return 0;
133647: ;
133648: return 0;
133649: }
133650: _ACEOF
1.1.1.3 ! misho 133651: rm -f conftest.$ac_objext conftest$ac_exeext
! 133652: if { (ac_try="$ac_link"
! 133653: case "(($ac_try" in
! 133654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133655: *) ac_try_echo=$ac_try;;
! 133656: esac
! 133657: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133658: (eval "$ac_link") 2>conftest.er1
! 133659: ac_status=$?
! 133660: grep -v '^ *+' conftest.er1 >conftest.err
! 133661: rm -f conftest.er1
! 133662: cat conftest.err >&5
! 133663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133664: (exit $ac_status); } && {
! 133665: test -z "$ac_c_werror_flag" ||
! 133666: test ! -s conftest.err
! 133667: } && test -s conftest$ac_exeext &&
! 133668: $as_test_x conftest$ac_exeext; then
1.1 misho 133669: ac_cv_working_alloca_h=yes
133670: else
1.1.1.3 ! misho 133671: echo "$as_me: failed program was:" >&5
! 133672: sed 's/^/| /' conftest.$ac_ext >&5
! 133673:
! 133674: ac_cv_working_alloca_h=no
1.1 misho 133675: fi
1.1.1.3 ! misho 133676:
! 133677: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 133678: conftest$ac_exeext conftest.$ac_ext
1.1 misho 133679: fi
1.1.1.3 ! misho 133680: { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
! 133681: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
1.1 misho 133682: if test $ac_cv_working_alloca_h = yes; then
133683:
1.1.1.3 ! misho 133684: cat >>confdefs.h <<\_ACEOF
! 133685: #define HAVE_ALLOCA_H 1
! 133686: _ACEOF
1.1 misho 133687:
133688: fi
133689:
1.1.1.3 ! misho 133690: { echo "$as_me:$LINENO: checking for alloca" >&5
! 133691: echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
! 133692: if test "${ac_cv_func_alloca_works+set}" = set; then
! 133693: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 133694: else
1.1.1.3 ! misho 133695: cat >conftest.$ac_ext <<_ACEOF
! 133696: /* confdefs.h. */
! 133697: _ACEOF
! 133698: cat confdefs.h >>conftest.$ac_ext
! 133699: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133700: /* end confdefs.h. */
133701: #ifdef __GNUC__
133702: # define alloca __builtin_alloca
133703: #else
133704: # ifdef _MSC_VER
133705: # include <malloc.h>
133706: # define alloca _alloca
133707: # else
133708: # ifdef HAVE_ALLOCA_H
133709: # include <alloca.h>
133710: # else
133711: # ifdef _AIX
133712: #pragma alloca
133713: # else
133714: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1.1.3 ! misho 133715: char *alloca ();
1.1 misho 133716: # endif
133717: # endif
133718: # endif
133719: # endif
133720: #endif
133721:
133722: int
133723: main ()
133724: {
133725: char *p = (char *) alloca (1);
133726: if (p) return 0;
133727: ;
133728: return 0;
133729: }
133730: _ACEOF
1.1.1.3 ! misho 133731: rm -f conftest.$ac_objext conftest$ac_exeext
! 133732: if { (ac_try="$ac_link"
! 133733: case "(($ac_try" in
! 133734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133735: *) ac_try_echo=$ac_try;;
! 133736: esac
! 133737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133738: (eval "$ac_link") 2>conftest.er1
! 133739: ac_status=$?
! 133740: grep -v '^ *+' conftest.er1 >conftest.err
! 133741: rm -f conftest.er1
! 133742: cat conftest.err >&5
! 133743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133744: (exit $ac_status); } && {
! 133745: test -z "$ac_c_werror_flag" ||
! 133746: test ! -s conftest.err
! 133747: } && test -s conftest$ac_exeext &&
! 133748: $as_test_x conftest$ac_exeext; then
1.1 misho 133749: ac_cv_func_alloca_works=yes
133750: else
1.1.1.3 ! misho 133751: echo "$as_me: failed program was:" >&5
! 133752: sed 's/^/| /' conftest.$ac_ext >&5
! 133753:
! 133754: ac_cv_func_alloca_works=no
1.1 misho 133755: fi
1.1.1.3 ! misho 133756:
! 133757: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 133758: conftest$ac_exeext conftest.$ac_ext
1.1 misho 133759: fi
1.1.1.3 ! misho 133760: { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
! 133761: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
1.1 misho 133762:
133763: if test $ac_cv_func_alloca_works = yes; then
133764:
1.1.1.3 ! misho 133765: cat >>confdefs.h <<\_ACEOF
! 133766: #define HAVE_ALLOCA 1
! 133767: _ACEOF
1.1 misho 133768:
133769: else
133770: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
133771: # that cause trouble. Some versions do not even contain alloca or
133772: # contain a buggy version. If you still want to use their alloca,
133773: # use ar to extract alloca.o from them instead of compiling alloca.c.
133774:
133775: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
133776:
1.1.1.3 ! misho 133777: cat >>confdefs.h <<\_ACEOF
! 133778: #define C_ALLOCA 1
! 133779: _ACEOF
1.1 misho 133780:
133781:
1.1.1.3 ! misho 133782: { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
! 133783: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
! 133784: if test "${ac_cv_os_cray+set}" = set; then
! 133785: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 133786: else
1.1.1.3 ! misho 133787: cat >conftest.$ac_ext <<_ACEOF
! 133788: /* confdefs.h. */
! 133789: _ACEOF
! 133790: cat confdefs.h >>conftest.$ac_ext
! 133791: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133792: /* end confdefs.h. */
133793: #if defined CRAY && ! defined CRAY2
133794: webecray
133795: #else
133796: wenotbecray
133797: #endif
133798:
133799: _ACEOF
133800: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 133801: $EGREP "webecray" >/dev/null 2>&1; then
1.1 misho 133802: ac_cv_os_cray=yes
133803: else
133804: ac_cv_os_cray=no
133805: fi
1.1.1.3 ! misho 133806: rm -f -r conftest*
1.1 misho 133807:
133808: fi
1.1.1.3 ! misho 133809: { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
! 133810: echo "${ECHO_T}$ac_cv_os_cray" >&6; }
1.1 misho 133811: if test $ac_cv_os_cray = yes; then
133812: for ac_func in _getb67 GETB67 getb67; do
1.1.1.3 ! misho 133813: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 133814: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 133815: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 133816: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 133817: echo $ECHO_N "(cached) $ECHO_C" >&6
! 133818: else
! 133819: cat >conftest.$ac_ext <<_ACEOF
! 133820: /* confdefs.h. */
! 133821: _ACEOF
! 133822: cat confdefs.h >>conftest.$ac_ext
! 133823: cat >>conftest.$ac_ext <<_ACEOF
! 133824: /* end confdefs.h. */
! 133825: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 133826: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 133827: #define $ac_func innocuous_$ac_func
! 133828:
! 133829: /* System header to define __stub macros and hopefully few prototypes,
! 133830: which can conflict with char $ac_func (); below.
! 133831: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 133832: <limits.h> exists even on freestanding compilers. */
! 133833:
! 133834: #ifdef __STDC__
! 133835: # include <limits.h>
! 133836: #else
! 133837: # include <assert.h>
! 133838: #endif
! 133839:
! 133840: #undef $ac_func
! 133841:
! 133842: /* Override any GCC internal prototype to avoid an error.
! 133843: Use char because int might match the return type of a GCC
! 133844: builtin and then its argument prototype would still apply. */
! 133845: #ifdef __cplusplus
! 133846: extern "C"
! 133847: #endif
! 133848: char $ac_func ();
! 133849: /* The GNU C library defines this for functions which it implements
! 133850: to always fail with ENOSYS. Some functions are actually named
! 133851: something starting with __ and the normal name is an alias. */
! 133852: #if defined __stub_$ac_func || defined __stub___$ac_func
! 133853: choke me
! 133854: #endif
! 133855:
! 133856: int
! 133857: main ()
! 133858: {
! 133859: return $ac_func ();
! 133860: ;
! 133861: return 0;
! 133862: }
! 133863: _ACEOF
! 133864: rm -f conftest.$ac_objext conftest$ac_exeext
! 133865: if { (ac_try="$ac_link"
! 133866: case "(($ac_try" in
! 133867: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133868: *) ac_try_echo=$ac_try;;
! 133869: esac
! 133870: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133871: (eval "$ac_link") 2>conftest.er1
! 133872: ac_status=$?
! 133873: grep -v '^ *+' conftest.er1 >conftest.err
! 133874: rm -f conftest.er1
! 133875: cat conftest.err >&5
! 133876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133877: (exit $ac_status); } && {
! 133878: test -z "$ac_c_werror_flag" ||
! 133879: test ! -s conftest.err
! 133880: } && test -s conftest$ac_exeext &&
! 133881: $as_test_x conftest$ac_exeext; then
! 133882: eval "$as_ac_var=yes"
! 133883: else
! 133884: echo "$as_me: failed program was:" >&5
! 133885: sed 's/^/| /' conftest.$ac_ext >&5
! 133886:
! 133887: eval "$as_ac_var=no"
! 133888: fi
! 133889:
! 133890: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 133891: conftest$ac_exeext conftest.$ac_ext
! 133892: fi
! 133893: ac_res=`eval echo '${'$as_ac_var'}'`
! 133894: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 133895: echo "${ECHO_T}$ac_res" >&6; }
! 133896: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 133897:
133898: cat >>confdefs.h <<_ACEOF
133899: #define CRAY_STACKSEG_END $ac_func
133900: _ACEOF
133901:
133902: break
133903: fi
133904:
133905: done
133906: fi
133907:
1.1.1.3 ! misho 133908: { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
! 133909: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
! 133910: if test "${ac_cv_c_stack_direction+set}" = set; then
! 133911: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 133912: else
1.1.1.3 ! misho 133913: if test "$cross_compiling" = yes; then
1.1 misho 133914: ac_cv_c_stack_direction=0
133915: else
1.1.1.3 ! misho 133916: cat >conftest.$ac_ext <<_ACEOF
! 133917: /* confdefs.h. */
! 133918: _ACEOF
! 133919: cat confdefs.h >>conftest.$ac_ext
! 133920: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 133921: /* end confdefs.h. */
133922: $ac_includes_default
133923: int
1.1.1.3 ! misho 133924: find_stack_direction ()
1.1 misho 133925: {
1.1.1.3 ! misho 133926: static char *addr = 0;
! 133927: auto char dummy;
! 133928: if (addr == 0)
! 133929: {
! 133930: addr = &dummy;
! 133931: return find_stack_direction ();
! 133932: }
! 133933: else
! 133934: return (&dummy > addr) ? 1 : -1;
1.1 misho 133935: }
133936:
133937: int
1.1.1.3 ! misho 133938: main ()
1.1 misho 133939: {
1.1.1.3 ! misho 133940: return find_stack_direction () < 0;
1.1 misho 133941: }
133942: _ACEOF
1.1.1.3 ! misho 133943: rm -f conftest$ac_exeext
! 133944: if { (ac_try="$ac_link"
! 133945: case "(($ac_try" in
! 133946: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133947: *) ac_try_echo=$ac_try;;
! 133948: esac
! 133949: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133950: (eval "$ac_link") 2>&5
! 133951: ac_status=$?
! 133952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133953: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 133954: { (case "(($ac_try" in
! 133955: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 133956: *) ac_try_echo=$ac_try;;
! 133957: esac
! 133958: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 133959: (eval "$ac_try") 2>&5
! 133960: ac_status=$?
! 133961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 133962: (exit $ac_status); }; }; then
1.1 misho 133963: ac_cv_c_stack_direction=1
133964: else
1.1.1.3 ! misho 133965: echo "$as_me: program exited with status $ac_status" >&5
! 133966: echo "$as_me: failed program was:" >&5
! 133967: sed 's/^/| /' conftest.$ac_ext >&5
! 133968:
! 133969: ( exit $ac_status )
! 133970: ac_cv_c_stack_direction=-1
1.1 misho 133971: fi
1.1.1.3 ! misho 133972: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 133973: fi
133974:
1.1.1.3 ! misho 133975:
1.1 misho 133976: fi
1.1.1.3 ! misho 133977: { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
! 133978: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
! 133979:
1.1 misho 133980: cat >>confdefs.h <<_ACEOF
133981: #define STACK_DIRECTION $ac_cv_c_stack_direction
133982: _ACEOF
133983:
133984:
133985: fi
133986:
1.1.1.3 ! misho 133987:
! 133988:
! 133989:
! 133990:
! 133991:
! 133992:
! 133993:
! 133994:
! 133995:
1.1 misho 133996: for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp
1.1.1.3 ! misho 133997: do
! 133998: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 133999: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 134000: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 134001: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 134002: echo $ECHO_N "(cached) $ECHO_C" >&6
! 134003: else
! 134004: cat >conftest.$ac_ext <<_ACEOF
! 134005: /* confdefs.h. */
! 134006: _ACEOF
! 134007: cat confdefs.h >>conftest.$ac_ext
! 134008: cat >>conftest.$ac_ext <<_ACEOF
! 134009: /* end confdefs.h. */
! 134010: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 134011: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 134012: #define $ac_func innocuous_$ac_func
! 134013:
! 134014: /* System header to define __stub macros and hopefully few prototypes,
! 134015: which can conflict with char $ac_func (); below.
! 134016: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 134017: <limits.h> exists even on freestanding compilers. */
! 134018:
! 134019: #ifdef __STDC__
! 134020: # include <limits.h>
! 134021: #else
! 134022: # include <assert.h>
! 134023: #endif
! 134024:
! 134025: #undef $ac_func
! 134026:
! 134027: /* Override any GCC internal prototype to avoid an error.
! 134028: Use char because int might match the return type of a GCC
! 134029: builtin and then its argument prototype would still apply. */
! 134030: #ifdef __cplusplus
! 134031: extern "C"
! 134032: #endif
! 134033: char $ac_func ();
! 134034: /* The GNU C library defines this for functions which it implements
! 134035: to always fail with ENOSYS. Some functions are actually named
! 134036: something starting with __ and the normal name is an alias. */
! 134037: #if defined __stub_$ac_func || defined __stub___$ac_func
! 134038: choke me
! 134039: #endif
! 134040:
! 134041: int
! 134042: main ()
! 134043: {
! 134044: return $ac_func ();
! 134045: ;
! 134046: return 0;
! 134047: }
! 134048: _ACEOF
! 134049: rm -f conftest.$ac_objext conftest$ac_exeext
! 134050: if { (ac_try="$ac_link"
! 134051: case "(($ac_try" in
! 134052: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134053: *) ac_try_echo=$ac_try;;
! 134054: esac
! 134055: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134056: (eval "$ac_link") 2>conftest.er1
! 134057: ac_status=$?
! 134058: grep -v '^ *+' conftest.er1 >conftest.err
! 134059: rm -f conftest.er1
! 134060: cat conftest.err >&5
! 134061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134062: (exit $ac_status); } && {
! 134063: test -z "$ac_c_werror_flag" ||
! 134064: test ! -s conftest.err
! 134065: } && test -s conftest$ac_exeext &&
! 134066: $as_test_x conftest$ac_exeext; then
! 134067: eval "$as_ac_var=yes"
! 134068: else
! 134069: echo "$as_me: failed program was:" >&5
! 134070: sed 's/^/| /' conftest.$ac_ext >&5
! 134071:
! 134072: eval "$as_ac_var=no"
! 134073: fi
! 134074:
! 134075: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134076: conftest$ac_exeext conftest.$ac_ext
! 134077: fi
! 134078: ac_res=`eval echo '${'$as_ac_var'}'`
! 134079: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 134080: echo "${ECHO_T}$ac_res" >&6; }
! 134081: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 134082: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 134083: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 134084: _ACEOF
134085:
134086: fi
134087: done
134088:
134089:
1.1.1.3 ! misho 134090: { echo "$as_me:$LINENO: checking whether sprintf is broken" >&5
! 134091: echo $ECHO_N "checking whether sprintf is broken... $ECHO_C" >&6; }
! 134092: if test "${ac_cv_broken_sprintf+set}" = set; then
! 134093: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 134094: else
134095:
1.1.1.3 ! misho 134096: if test "$cross_compiling" = yes; then
1.1 misho 134097:
134098: ac_cv_broken_sprintf=no
134099:
134100: else
1.1.1.3 ! misho 134101: cat >conftest.$ac_ext <<_ACEOF
! 134102: /* confdefs.h. */
! 134103: _ACEOF
! 134104: cat confdefs.h >>conftest.$ac_ext
! 134105: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134106: /* end confdefs.h. */
134107: main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }
134108: _ACEOF
1.1.1.3 ! misho 134109: rm -f conftest$ac_exeext
! 134110: if { (ac_try="$ac_link"
! 134111: case "(($ac_try" in
! 134112: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134113: *) ac_try_echo=$ac_try;;
! 134114: esac
! 134115: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134116: (eval "$ac_link") 2>&5
! 134117: ac_status=$?
! 134118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134119: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 134120: { (case "(($ac_try" in
! 134121: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134122: *) ac_try_echo=$ac_try;;
! 134123: esac
! 134124: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134125: (eval "$ac_try") 2>&5
! 134126: ac_status=$?
! 134127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134128: (exit $ac_status); }; }; then
1.1 misho 134129:
134130: ac_cv_broken_sprintf=no
134131:
134132: else
1.1.1.3 ! misho 134133: echo "$as_me: program exited with status $ac_status" >&5
! 134134: echo "$as_me: failed program was:" >&5
! 134135: sed 's/^/| /' conftest.$ac_ext >&5
! 134136:
! 134137: ( exit $ac_status )
1.1 misho 134138:
134139: ac_cv_broken_sprintf=yes
134140:
134141: fi
1.1.1.3 ! misho 134142: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 134143: fi
134144:
134145:
1.1.1.3 ! misho 134146:
1.1 misho 134147: fi
1.1.1.3 ! misho 134148: { echo "$as_me:$LINENO: result: $ac_cv_broken_sprintf" >&5
! 134149: echo "${ECHO_T}$ac_cv_broken_sprintf" >&6; }
1.1 misho 134150: if test "$ac_cv_broken_sprintf" = "yes"; then
134151: ac_result=1
134152: else
134153: ac_result=0
134154: fi
134155:
134156: cat >>confdefs.h <<_ACEOF
134157: #define ZEND_BROKEN_SPRINTF $ac_result
134158: _ACEOF
134159:
134160:
134161:
1.1.1.3 ! misho 134162:
! 134163:
! 134164:
! 134165:
1.1 misho 134166: for ac_func in finite isfinite isinf isnan
1.1.1.3 ! misho 134167: do
! 134168: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 134169: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 134170: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 134171: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 134172: echo $ECHO_N "(cached) $ECHO_C" >&6
! 134173: else
! 134174: cat >conftest.$ac_ext <<_ACEOF
! 134175: /* confdefs.h. */
! 134176: _ACEOF
! 134177: cat confdefs.h >>conftest.$ac_ext
! 134178: cat >>conftest.$ac_ext <<_ACEOF
! 134179: /* end confdefs.h. */
! 134180: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 134181: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 134182: #define $ac_func innocuous_$ac_func
! 134183:
! 134184: /* System header to define __stub macros and hopefully few prototypes,
! 134185: which can conflict with char $ac_func (); below.
! 134186: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 134187: <limits.h> exists even on freestanding compilers. */
! 134188:
! 134189: #ifdef __STDC__
! 134190: # include <limits.h>
! 134191: #else
! 134192: # include <assert.h>
! 134193: #endif
! 134194:
! 134195: #undef $ac_func
! 134196:
! 134197: /* Override any GCC internal prototype to avoid an error.
! 134198: Use char because int might match the return type of a GCC
! 134199: builtin and then its argument prototype would still apply. */
! 134200: #ifdef __cplusplus
! 134201: extern "C"
! 134202: #endif
! 134203: char $ac_func ();
! 134204: /* The GNU C library defines this for functions which it implements
! 134205: to always fail with ENOSYS. Some functions are actually named
! 134206: something starting with __ and the normal name is an alias. */
! 134207: #if defined __stub_$ac_func || defined __stub___$ac_func
! 134208: choke me
! 134209: #endif
! 134210:
! 134211: int
! 134212: main ()
! 134213: {
! 134214: return $ac_func ();
! 134215: ;
! 134216: return 0;
! 134217: }
! 134218: _ACEOF
! 134219: rm -f conftest.$ac_objext conftest$ac_exeext
! 134220: if { (ac_try="$ac_link"
! 134221: case "(($ac_try" in
! 134222: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134223: *) ac_try_echo=$ac_try;;
! 134224: esac
! 134225: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134226: (eval "$ac_link") 2>conftest.er1
! 134227: ac_status=$?
! 134228: grep -v '^ *+' conftest.er1 >conftest.err
! 134229: rm -f conftest.er1
! 134230: cat conftest.err >&5
! 134231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134232: (exit $ac_status); } && {
! 134233: test -z "$ac_c_werror_flag" ||
! 134234: test ! -s conftest.err
! 134235: } && test -s conftest$ac_exeext &&
! 134236: $as_test_x conftest$ac_exeext; then
! 134237: eval "$as_ac_var=yes"
! 134238: else
! 134239: echo "$as_me: failed program was:" >&5
! 134240: sed 's/^/| /' conftest.$ac_ext >&5
! 134241:
! 134242: eval "$as_ac_var=no"
! 134243: fi
! 134244:
! 134245: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134246: conftest$ac_exeext conftest.$ac_ext
! 134247: fi
! 134248: ac_res=`eval echo '${'$as_ac_var'}'`
! 134249: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 134250: echo "${ECHO_T}$ac_res" >&6; }
! 134251: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 134252: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 134253: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 134254: _ACEOF
134255:
134256: fi
134257: done
134258:
134259:
134260:
1.1.1.3 ! misho 134261: { echo "$as_me:$LINENO: checking whether fp_except is defined" >&5
! 134262: echo $ECHO_N "checking whether fp_except is defined... $ECHO_C" >&6; }
! 134263: if test "${ac_cv_type_fp_except+set}" = set; then
! 134264: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 134265: else
134266:
1.1.1.3 ! misho 134267: cat >conftest.$ac_ext <<_ACEOF
! 134268: /* confdefs.h. */
! 134269: _ACEOF
! 134270: cat confdefs.h >>conftest.$ac_ext
! 134271: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134272: /* end confdefs.h. */
134273:
134274: #include <floatingpoint.h>
134275:
134276: int
134277: main ()
134278: {
134279:
134280: fp_except x = (fp_except) 0;
134281:
134282: ;
134283: return 0;
134284: }
134285: _ACEOF
1.1.1.3 ! misho 134286: rm -f conftest.$ac_objext
! 134287: if { (ac_try="$ac_compile"
! 134288: case "(($ac_try" in
! 134289: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134290: *) ac_try_echo=$ac_try;;
! 134291: esac
! 134292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134293: (eval "$ac_compile") 2>conftest.er1
! 134294: ac_status=$?
! 134295: grep -v '^ *+' conftest.er1 >conftest.err
! 134296: rm -f conftest.er1
! 134297: cat conftest.err >&5
! 134298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134299: (exit $ac_status); } && {
! 134300: test -z "$ac_c_werror_flag" ||
! 134301: test ! -s conftest.err
! 134302: } && test -s conftest.$ac_objext; then
1.1 misho 134303:
134304: ac_cv_type_fp_except=yes
134305:
134306: else
1.1.1.3 ! misho 134307: echo "$as_me: failed program was:" >&5
! 134308: sed 's/^/| /' conftest.$ac_ext >&5
! 134309:
1.1 misho 134310:
134311: ac_cv_type_fp_except=no
134312:
134313: fi
1.1.1.3 ! misho 134314:
1.1 misho 134315: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
134316: fi
1.1.1.3 ! misho 134317: { echo "$as_me:$LINENO: result: $ac_cv_type_fp_except" >&5
! 134318: echo "${ECHO_T}$ac_cv_type_fp_except" >&6; }
1.1 misho 134319: if test "$ac_cv_type_fp_except" = "yes"; then
134320:
1.1.1.3 ! misho 134321: cat >>confdefs.h <<\_ACEOF
! 134322: #define HAVE_FP_EXCEPT 1
! 134323: _ACEOF
1.1 misho 134324:
134325: fi
134326:
134327:
134328:
1.1.1.3 ! misho 134329: { echo "$as_me:$LINENO: checking for usable _FPU_SETCW" >&5
! 134330: echo $ECHO_N "checking for usable _FPU_SETCW... $ECHO_C" >&6; }
! 134331: cat >conftest.$ac_ext <<_ACEOF
! 134332: /* confdefs.h. */
! 134333: _ACEOF
! 134334: cat confdefs.h >>conftest.$ac_ext
! 134335: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134336: /* end confdefs.h. */
134337:
134338: #include <fpu_control.h>
134339:
134340: int
134341: main ()
134342: {
134343:
134344: fpu_control_t fpu_oldcw, fpu_cw;
134345: volatile double result;
134346: double a = 2877.0;
134347: volatile double b = 1000000.0;
134348:
134349: _FPU_GETCW(fpu_oldcw);
134350: fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
134351: _FPU_SETCW(fpu_cw);
134352: result = a / b;
134353: _FPU_SETCW(fpu_oldcw);
134354:
134355: ;
134356: return 0;
134357: }
134358: _ACEOF
1.1.1.3 ! misho 134359: rm -f conftest.$ac_objext conftest$ac_exeext
! 134360: if { (ac_try="$ac_link"
! 134361: case "(($ac_try" in
! 134362: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134363: *) ac_try_echo=$ac_try;;
! 134364: esac
! 134365: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134366: (eval "$ac_link") 2>conftest.er1
! 134367: ac_status=$?
! 134368: grep -v '^ *+' conftest.er1 >conftest.err
! 134369: rm -f conftest.er1
! 134370: cat conftest.err >&5
! 134371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134372: (exit $ac_status); } && {
! 134373: test -z "$ac_c_werror_flag" ||
! 134374: test ! -s conftest.err
! 134375: } && test -s conftest$ac_exeext &&
! 134376: $as_test_x conftest$ac_exeext; then
1.1 misho 134377: ac_cfp_have__fpu_setcw=yes
134378: else
1.1.1.3 ! misho 134379: echo "$as_me: failed program was:" >&5
! 134380: sed 's/^/| /' conftest.$ac_ext >&5
! 134381:
! 134382: ac_cfp_have__fpu_setcw=no
1.1 misho 134383: fi
1.1.1.3 ! misho 134384:
! 134385: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134386: conftest$ac_exeext conftest.$ac_ext
1.1 misho 134387: if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
134388:
1.1.1.3 ! misho 134389: cat >>confdefs.h <<\_ACEOF
! 134390: #define HAVE__FPU_SETCW 1
! 134391: _ACEOF
1.1 misho 134392:
1.1.1.3 ! misho 134393: { echo "$as_me:$LINENO: result: yes" >&5
! 134394: echo "${ECHO_T}yes" >&6; }
1.1 misho 134395: else
1.1.1.3 ! misho 134396: { echo "$as_me:$LINENO: result: no" >&5
! 134397: echo "${ECHO_T}no" >&6; }
1.1 misho 134398: fi
134399:
1.1.1.3 ! misho 134400: { echo "$as_me:$LINENO: checking for usable fpsetprec" >&5
! 134401: echo $ECHO_N "checking for usable fpsetprec... $ECHO_C" >&6; }
! 134402: cat >conftest.$ac_ext <<_ACEOF
! 134403: /* confdefs.h. */
! 134404: _ACEOF
! 134405: cat confdefs.h >>conftest.$ac_ext
! 134406: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134407: /* end confdefs.h. */
134408:
134409: #include <machine/ieeefp.h>
134410:
134411: int
134412: main ()
134413: {
134414:
134415: fp_prec_t fpu_oldprec;
134416: volatile double result;
134417: double a = 2877.0;
134418: volatile double b = 1000000.0;
134419:
134420: fpu_oldprec = fpgetprec();
134421: fpsetprec(FP_PD);
134422: result = a / b;
134423: fpsetprec(fpu_oldprec);
134424:
134425: ;
134426: return 0;
134427: }
134428: _ACEOF
1.1.1.3 ! misho 134429: rm -f conftest.$ac_objext conftest$ac_exeext
! 134430: if { (ac_try="$ac_link"
! 134431: case "(($ac_try" in
! 134432: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134433: *) ac_try_echo=$ac_try;;
! 134434: esac
! 134435: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134436: (eval "$ac_link") 2>conftest.er1
! 134437: ac_status=$?
! 134438: grep -v '^ *+' conftest.er1 >conftest.err
! 134439: rm -f conftest.er1
! 134440: cat conftest.err >&5
! 134441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134442: (exit $ac_status); } && {
! 134443: test -z "$ac_c_werror_flag" ||
! 134444: test ! -s conftest.err
! 134445: } && test -s conftest$ac_exeext &&
! 134446: $as_test_x conftest$ac_exeext; then
1.1 misho 134447: ac_cfp_have_fpsetprec=yes
134448: else
1.1.1.3 ! misho 134449: echo "$as_me: failed program was:" >&5
! 134450: sed 's/^/| /' conftest.$ac_ext >&5
! 134451:
! 134452: ac_cfp_have_fpsetprec=no
1.1 misho 134453: fi
1.1.1.3 ! misho 134454:
! 134455: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134456: conftest$ac_exeext conftest.$ac_ext
1.1 misho 134457: if test "$ac_cfp_have_fpsetprec" = "yes" ; then
134458:
1.1.1.3 ! misho 134459: cat >>confdefs.h <<\_ACEOF
! 134460: #define HAVE_FPSETPREC 1
! 134461: _ACEOF
1.1 misho 134462:
1.1.1.3 ! misho 134463: { echo "$as_me:$LINENO: result: yes" >&5
! 134464: echo "${ECHO_T}yes" >&6; }
1.1 misho 134465: else
1.1.1.3 ! misho 134466: { echo "$as_me:$LINENO: result: no" >&5
! 134467: echo "${ECHO_T}no" >&6; }
1.1 misho 134468: fi
134469:
1.1.1.3 ! misho 134470: { echo "$as_me:$LINENO: checking for usable _controlfp" >&5
! 134471: echo $ECHO_N "checking for usable _controlfp... $ECHO_C" >&6; }
! 134472: cat >conftest.$ac_ext <<_ACEOF
! 134473: /* confdefs.h. */
! 134474: _ACEOF
! 134475: cat confdefs.h >>conftest.$ac_ext
! 134476: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134477: /* end confdefs.h. */
134478:
134479: #include <float.h>
134480:
134481: int
134482: main ()
134483: {
134484:
134485: unsigned int fpu_oldcw;
134486: volatile double result;
134487: double a = 2877.0;
134488: volatile double b = 1000000.0;
134489:
134490: fpu_oldcw = _controlfp(0, 0);
134491: _controlfp(_PC_53, _MCW_PC);
134492: result = a / b;
134493: _controlfp(fpu_oldcw, _MCW_PC);
134494:
134495: ;
134496: return 0;
134497: }
134498: _ACEOF
1.1.1.3 ! misho 134499: rm -f conftest.$ac_objext conftest$ac_exeext
! 134500: if { (ac_try="$ac_link"
! 134501: case "(($ac_try" in
! 134502: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134503: *) ac_try_echo=$ac_try;;
! 134504: esac
! 134505: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134506: (eval "$ac_link") 2>conftest.er1
! 134507: ac_status=$?
! 134508: grep -v '^ *+' conftest.er1 >conftest.err
! 134509: rm -f conftest.er1
! 134510: cat conftest.err >&5
! 134511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134512: (exit $ac_status); } && {
! 134513: test -z "$ac_c_werror_flag" ||
! 134514: test ! -s conftest.err
! 134515: } && test -s conftest$ac_exeext &&
! 134516: $as_test_x conftest$ac_exeext; then
1.1 misho 134517: ac_cfp_have__controlfp=yes
134518: else
1.1.1.3 ! misho 134519: echo "$as_me: failed program was:" >&5
! 134520: sed 's/^/| /' conftest.$ac_ext >&5
! 134521:
! 134522: ac_cfp_have__controlfp=no
1.1 misho 134523: fi
1.1.1.3 ! misho 134524:
! 134525: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134526: conftest$ac_exeext conftest.$ac_ext
1.1 misho 134527: if test "$ac_cfp_have__controlfp" = "yes" ; then
134528:
1.1.1.3 ! misho 134529: cat >>confdefs.h <<\_ACEOF
! 134530: #define HAVE__CONTROLFP 1
! 134531: _ACEOF
1.1 misho 134532:
1.1.1.3 ! misho 134533: { echo "$as_me:$LINENO: result: yes" >&5
! 134534: echo "${ECHO_T}yes" >&6; }
1.1 misho 134535: else
1.1.1.3 ! misho 134536: { echo "$as_me:$LINENO: result: no" >&5
! 134537: echo "${ECHO_T}no" >&6; }
1.1 misho 134538: fi
134539:
1.1.1.3 ! misho 134540: { echo "$as_me:$LINENO: checking for usable _controlfp_s" >&5
! 134541: echo $ECHO_N "checking for usable _controlfp_s... $ECHO_C" >&6; }
! 134542: cat >conftest.$ac_ext <<_ACEOF
! 134543: /* confdefs.h. */
! 134544: _ACEOF
! 134545: cat confdefs.h >>conftest.$ac_ext
! 134546: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134547: /* end confdefs.h. */
134548:
134549: #include <float.h>
134550:
134551: int
134552: main ()
134553: {
134554:
134555: unsigned int fpu_oldcw, fpu_cw;
134556: volatile double result;
134557: double a = 2877.0;
134558: volatile double b = 1000000.0;
134559:
134560: _controlfp_s(&fpu_cw, 0, 0);
134561: fpu_oldcw = fpu_cw;
134562: _controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
134563: result = a / b;
134564: _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
134565:
134566: ;
134567: return 0;
134568: }
134569: _ACEOF
1.1.1.3 ! misho 134570: rm -f conftest.$ac_objext conftest$ac_exeext
! 134571: if { (ac_try="$ac_link"
! 134572: case "(($ac_try" in
! 134573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134574: *) ac_try_echo=$ac_try;;
! 134575: esac
! 134576: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134577: (eval "$ac_link") 2>conftest.er1
! 134578: ac_status=$?
! 134579: grep -v '^ *+' conftest.er1 >conftest.err
! 134580: rm -f conftest.er1
! 134581: cat conftest.err >&5
! 134582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134583: (exit $ac_status); } && {
! 134584: test -z "$ac_c_werror_flag" ||
! 134585: test ! -s conftest.err
! 134586: } && test -s conftest$ac_exeext &&
! 134587: $as_test_x conftest$ac_exeext; then
1.1 misho 134588: ac_cfp_have__controlfp_s=yes
134589: else
1.1.1.3 ! misho 134590: echo "$as_me: failed program was:" >&5
! 134591: sed 's/^/| /' conftest.$ac_ext >&5
! 134592:
! 134593: ac_cfp_have__controlfp_s=no
1.1 misho 134594: fi
1.1.1.3 ! misho 134595:
! 134596: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134597: conftest$ac_exeext conftest.$ac_ext
1.1 misho 134598: if test "$ac_cfp_have__controlfp_s" = "yes" ; then
134599:
1.1.1.3 ! misho 134600: cat >>confdefs.h <<\_ACEOF
! 134601: #define HAVE__CONTROLFP_S 1
! 134602: _ACEOF
1.1 misho 134603:
1.1.1.3 ! misho 134604: { echo "$as_me:$LINENO: result: yes" >&5
! 134605: echo "${ECHO_T}yes" >&6; }
1.1 misho 134606: else
1.1.1.3 ! misho 134607: { echo "$as_me:$LINENO: result: no" >&5
! 134608: echo "${ECHO_T}no" >&6; }
1.1 misho 134609: fi
134610:
1.1.1.3 ! misho 134611: { echo "$as_me:$LINENO: checking whether FPU control word can be manipulated by inline assembler" >&5
! 134612: echo $ECHO_N "checking whether FPU control word can be manipulated by inline assembler... $ECHO_C" >&6; }
! 134613: cat >conftest.$ac_ext <<_ACEOF
! 134614: /* confdefs.h. */
! 134615: _ACEOF
! 134616: cat confdefs.h >>conftest.$ac_ext
! 134617: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134618: /* end confdefs.h. */
134619:
134620: /* nothing */
134621:
134622: int
134623: main ()
134624: {
134625:
134626: unsigned int oldcw, cw;
134627: volatile double result;
134628: double a = 2877.0;
134629: volatile double b = 1000000.0;
134630:
134631: __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
134632: cw = (oldcw & ~0x0 & ~0x300) | 0x200;
134633: __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
134634:
134635: result = a / b;
134636:
134637: __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
134638:
134639: ;
134640: return 0;
134641: }
134642: _ACEOF
1.1.1.3 ! misho 134643: rm -f conftest.$ac_objext conftest$ac_exeext
! 134644: if { (ac_try="$ac_link"
! 134645: case "(($ac_try" in
! 134646: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134647: *) ac_try_echo=$ac_try;;
! 134648: esac
! 134649: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134650: (eval "$ac_link") 2>conftest.er1
! 134651: ac_status=$?
! 134652: grep -v '^ *+' conftest.er1 >conftest.err
! 134653: rm -f conftest.er1
! 134654: cat conftest.err >&5
! 134655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134656: (exit $ac_status); } && {
! 134657: test -z "$ac_c_werror_flag" ||
! 134658: test ! -s conftest.err
! 134659: } && test -s conftest$ac_exeext &&
! 134660: $as_test_x conftest$ac_exeext; then
1.1 misho 134661: ac_cfp_have_fpu_inline_asm_x86=yes
134662: else
1.1.1.3 ! misho 134663: echo "$as_me: failed program was:" >&5
! 134664: sed 's/^/| /' conftest.$ac_ext >&5
! 134665:
! 134666: ac_cfp_have_fpu_inline_asm_x86=no
1.1 misho 134667: fi
1.1.1.3 ! misho 134668:
! 134669: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 134670: conftest$ac_exeext conftest.$ac_ext
1.1 misho 134671: if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
134672:
1.1.1.3 ! misho 134673: cat >>confdefs.h <<\_ACEOF
! 134674: #define HAVE_FPU_INLINE_ASM_X86 1
! 134675: _ACEOF
1.1 misho 134676:
1.1.1.3 ! misho 134677: { echo "$as_me:$LINENO: result: yes" >&5
! 134678: echo "${ECHO_T}yes" >&6; }
1.1 misho 134679: else
1.1.1.3 ! misho 134680: { echo "$as_me:$LINENO: result: no" >&5
! 134681: echo "${ECHO_T}no" >&6; }
1.1 misho 134682: fi
134683:
134684:
1.1.1.3 ! misho 134685: { echo "$as_me:$LINENO: checking whether double cast to long preserves least significant bits" >&5
! 134686: echo $ECHO_N "checking whether double cast to long preserves least significant bits... $ECHO_C" >&6; }
1.1 misho 134687:
1.1.1.3 ! misho 134688: if test "$cross_compiling" = yes; then
1.1 misho 134689:
1.1.1.3 ! misho 134690: { echo "$as_me:$LINENO: result: no" >&5
! 134691: echo "${ECHO_T}no" >&6; }
1.1 misho 134692:
134693: else
1.1.1.3 ! misho 134694: cat >conftest.$ac_ext <<_ACEOF
! 134695: /* confdefs.h. */
! 134696: _ACEOF
! 134697: cat confdefs.h >>conftest.$ac_ext
! 134698: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 134699: /* end confdefs.h. */
134700:
134701: #include <limits.h>
134702:
134703: int main()
134704: {
134705: if (sizeof(long) == 4) {
134706: double d = (double) LONG_MIN * LONG_MIN + 2e9;
134707:
134708: if ((long) d == 2e9 && (long) -d == -2e9) {
134709: exit(0);
134710: }
134711: } else if (sizeof(long) == 8) {
134712: double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
134713:
134714: if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
134715: exit(0);
134716: }
134717: }
134718: exit(1);
134719: }
134720:
134721: _ACEOF
1.1.1.3 ! misho 134722: rm -f conftest$ac_exeext
! 134723: if { (ac_try="$ac_link"
! 134724: case "(($ac_try" in
! 134725: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134726: *) ac_try_echo=$ac_try;;
! 134727: esac
! 134728: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134729: (eval "$ac_link") 2>&5
! 134730: ac_status=$?
! 134731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134732: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 134733: { (case "(($ac_try" in
! 134734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134735: *) ac_try_echo=$ac_try;;
! 134736: esac
! 134737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134738: (eval "$ac_try") 2>&5
! 134739: ac_status=$?
! 134740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134741: (exit $ac_status); }; }; then
1.1 misho 134742:
134743:
1.1.1.3 ! misho 134744: cat >>confdefs.h <<\_ACEOF
! 134745: #define ZEND_DVAL_TO_LVAL_CAST_OK 1
! 134746: _ACEOF
1.1 misho 134747:
1.1.1.3 ! misho 134748: { echo "$as_me:$LINENO: result: yes" >&5
! 134749: echo "${ECHO_T}yes" >&6; }
1.1 misho 134750:
134751: else
1.1.1.3 ! misho 134752: echo "$as_me: program exited with status $ac_status" >&5
! 134753: echo "$as_me: failed program was:" >&5
! 134754: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 134755:
1.1.1.3 ! misho 134756: ( exit $ac_status )
! 134757:
! 134758: { echo "$as_me:$LINENO: result: no" >&5
! 134759: echo "${ECHO_T}no" >&6; }
1.1 misho 134760:
134761: fi
1.1.1.3 ! misho 134762: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 134763: fi
134764:
134765:
134766:
1.1.1.3 ! misho 134767:
! 134768:
1.1 misho 134769: for ac_header in dlfcn.h
1.1.1.3 ! misho 134770: do
! 134771: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 134772: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 134773: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 134774: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 134775: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 134776: echo $ECHO_N "(cached) $ECHO_C" >&6
! 134777: fi
! 134778: ac_res=`eval echo '${'$as_ac_Header'}'`
! 134779: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 134780: echo "${ECHO_T}$ac_res" >&6; }
! 134781: else
! 134782: # Is the header compilable?
! 134783: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 134784: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 134785: cat >conftest.$ac_ext <<_ACEOF
! 134786: /* confdefs.h. */
! 134787: _ACEOF
! 134788: cat confdefs.h >>conftest.$ac_ext
! 134789: cat >>conftest.$ac_ext <<_ACEOF
! 134790: /* end confdefs.h. */
! 134791: $ac_includes_default
! 134792: #include <$ac_header>
! 134793: _ACEOF
! 134794: rm -f conftest.$ac_objext
! 134795: if { (ac_try="$ac_compile"
! 134796: case "(($ac_try" in
! 134797: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134798: *) ac_try_echo=$ac_try;;
! 134799: esac
! 134800: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134801: (eval "$ac_compile") 2>conftest.er1
! 134802: ac_status=$?
! 134803: grep -v '^ *+' conftest.er1 >conftest.err
! 134804: rm -f conftest.er1
! 134805: cat conftest.err >&5
! 134806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134807: (exit $ac_status); } && {
! 134808: test -z "$ac_c_werror_flag" ||
! 134809: test ! -s conftest.err
! 134810: } && test -s conftest.$ac_objext; then
! 134811: ac_header_compiler=yes
! 134812: else
! 134813: echo "$as_me: failed program was:" >&5
! 134814: sed 's/^/| /' conftest.$ac_ext >&5
! 134815:
! 134816: ac_header_compiler=no
! 134817: fi
! 134818:
! 134819: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 134820: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 134821: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 134822:
! 134823: # Is the header present?
! 134824: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 134825: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 134826: cat >conftest.$ac_ext <<_ACEOF
! 134827: /* confdefs.h. */
! 134828: _ACEOF
! 134829: cat confdefs.h >>conftest.$ac_ext
! 134830: cat >>conftest.$ac_ext <<_ACEOF
! 134831: /* end confdefs.h. */
! 134832: #include <$ac_header>
! 134833: _ACEOF
! 134834: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 134835: case "(($ac_try" in
! 134836: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 134837: *) ac_try_echo=$ac_try;;
! 134838: esac
! 134839: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 134840: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 134841: ac_status=$?
! 134842: grep -v '^ *+' conftest.er1 >conftest.err
! 134843: rm -f conftest.er1
! 134844: cat conftest.err >&5
! 134845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134846: (exit $ac_status); } >/dev/null && {
! 134847: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 134848: test ! -s conftest.err
! 134849: }; then
! 134850: ac_header_preproc=yes
! 134851: else
! 134852: echo "$as_me: failed program was:" >&5
! 134853: sed 's/^/| /' conftest.$ac_ext >&5
! 134854:
! 134855: ac_header_preproc=no
! 134856: fi
! 134857:
! 134858: rm -f conftest.err conftest.$ac_ext
! 134859: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 134860: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 134861:
! 134862: # So? What about this header?
! 134863: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 134864: yes:no: )
! 134865: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 134866: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 134867: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 134868: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 134869: ac_header_preproc=yes
! 134870: ;;
! 134871: no:yes:* )
! 134872: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 134873: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 134874: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 134875: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 134876: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 134877: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 134878: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 134879: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 134880: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 134881: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 134882: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 134883: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 134884:
! 134885: ;;
! 134886: esac
! 134887: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 134888: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 134889: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 134890: echo $ECHO_N "(cached) $ECHO_C" >&6
! 134891: else
! 134892: eval "$as_ac_Header=\$ac_header_preproc"
! 134893: fi
! 134894: ac_res=`eval echo '${'$as_ac_Header'}'`
! 134895: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 134896: echo "${ECHO_T}$ac_res" >&6; }
! 134897:
! 134898: fi
! 134899: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 134900: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 134901: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 134902: _ACEOF
134903:
134904: fi
134905:
134906: done
134907:
134908:
1.1.1.3 ! misho 134909: { echo "$as_me:$LINENO: checking whether dlsym() requires a leading underscore in symbol names" >&5
! 134910: echo $ECHO_N "checking whether dlsym() requires a leading underscore in symbol names... $ECHO_C" >&6; }
1.1 misho 134911: if test "$cross_compiling" = yes; then :
134912:
134913: else
134914: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
134915: lt_status=$lt_dlunknown
134916: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 134917: #line 134917 "configure"
1.1 misho 134918: #include "confdefs.h"
134919:
134920: #if HAVE_DLFCN_H
134921: #include <dlfcn.h>
134922: #endif
134923:
134924: #include <stdio.h>
134925:
134926: #ifdef RTLD_GLOBAL
134927: # define LT_DLGLOBAL RTLD_GLOBAL
134928: #else
134929: # ifdef DL_GLOBAL
134930: # define LT_DLGLOBAL DL_GLOBAL
134931: # else
134932: # define LT_DLGLOBAL 0
134933: # endif
134934: #endif
134935:
134936: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
134937: find out it does not work in some platform. */
134938: #ifndef LT_DLLAZY_OR_NOW
134939: # ifdef RTLD_LAZY
134940: # define LT_DLLAZY_OR_NOW RTLD_LAZY
134941: # else
134942: # ifdef DL_LAZY
134943: # define LT_DLLAZY_OR_NOW DL_LAZY
134944: # else
134945: # ifdef RTLD_NOW
134946: # define LT_DLLAZY_OR_NOW RTLD_NOW
134947: # else
134948: # ifdef DL_NOW
134949: # define LT_DLLAZY_OR_NOW DL_NOW
134950: # else
134951: # define LT_DLLAZY_OR_NOW 0
134952: # endif
134953: # endif
134954: # endif
134955: # endif
134956: #endif
134957:
134958: #ifdef __cplusplus
134959: extern "C" void exit (int);
134960: #endif
134961:
134962: void fnord() { int i=42;}
134963: int main ()
134964: {
134965: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
134966: int status = $lt_dlunknown;
134967:
134968: if (self)
134969: {
134970: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
134971: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
134972: /* dlclose (self); */
134973: }
134974: else
134975: puts (dlerror ());
134976:
134977: exit (status);
134978: }
134979: EOF
1.1.1.3 ! misho 134980: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 134981: (eval $ac_link) 2>&5
134982: ac_status=$?
1.1.1.3 ! misho 134983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 134984: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1 misho 134985: (./conftest; exit; ) >&5 2>/dev/null
134986: lt_status=$?
134987: case x$lt_status in
134988: x$lt_dlno_uscore)
1.1.1.3 ! misho 134989: { echo "$as_me:$LINENO: result: no" >&5
! 134990: echo "${ECHO_T}no" >&6; }
1.1 misho 134991: ;;
134992: x$lt_dlneed_uscore)
1.1.1.3 ! misho 134993: { echo "$as_me:$LINENO: result: yes" >&5
! 134994: echo "${ECHO_T}yes" >&6; }
1.1 misho 134995:
1.1.1.3 ! misho 134996: cat >>confdefs.h <<\_ACEOF
! 134997: #define DLSYM_NEEDS_UNDERSCORE 1
! 134998: _ACEOF
1.1 misho 134999:
135000: ;;
135001: x$lt_dlunknown|x*)
1.1.1.3 ! misho 135002: { echo "$as_me:$LINENO: result: no" >&5
! 135003: echo "${ECHO_T}no" >&6; }
1.1 misho 135004: ;;
135005: esac
135006: else :
135007: # compilation failed
135008:
1.1.1.3 ! misho 135009: { echo "$as_me:$LINENO: result: no" >&5
! 135010: echo "${ECHO_T}no" >&6; }
1.1 misho 135011:
135012: fi
135013: fi
135014: rm -fr conftest*
135015:
135016:
135017:
135018:
135019:
135020: # Check whether --with-zend-vm was given.
1.1.1.3 ! misho 135021: if test "${with_zend_vm+set}" = set; then
1.1 misho 135022: withval=$with_zend_vm;
135023: PHP_ZEND_VM=$withval
135024:
135025: else
135026:
135027: PHP_ZEND_VM=CALL
135028:
135029: fi
135030:
135031:
135032: # Check whether --enable-maintainer-zts was given.
1.1.1.3 ! misho 135033: if test "${enable_maintainer_zts+set}" = set; then
1.1 misho 135034: enableval=$enable_maintainer_zts;
135035: ZEND_MAINTAINER_ZTS=$enableval
135036:
135037: else
135038:
135039: ZEND_MAINTAINER_ZTS=no
135040:
135041: fi
135042:
135043:
135044: # Check whether --enable-inline-optimization was given.
1.1.1.3 ! misho 135045: if test "${enable_inline_optimization+set}" = set; then
1.1 misho 135046: enableval=$enable_inline_optimization;
135047: ZEND_INLINE_OPTIMIZATION=$enableval
135048:
135049: else
135050:
135051: ZEND_INLINE_OPTIMIZATION=yes
135052:
135053: fi
135054:
135055:
1.1.1.3 ! misho 135056: { echo "$as_me:$LINENO: checking virtual machine dispatch method" >&5
! 135057: echo $ECHO_N "checking virtual machine dispatch method... $ECHO_C" >&6; }
! 135058: { echo "$as_me:$LINENO: result: $PHP_ZEND_VM" >&5
! 135059: echo "${ECHO_T}$PHP_ZEND_VM" >&6; }
! 135060:
! 135061: { echo "$as_me:$LINENO: checking whether to enable thread-safety" >&5
! 135062: echo $ECHO_N "checking whether to enable thread-safety... $ECHO_C" >&6; }
! 135063: { echo "$as_me:$LINENO: result: $ZEND_MAINTAINER_ZTS" >&5
! 135064: echo "${ECHO_T}$ZEND_MAINTAINER_ZTS" >&6; }
! 135065:
! 135066: { echo "$as_me:$LINENO: checking whether to enable inline optimization for GCC" >&5
! 135067: echo $ECHO_N "checking whether to enable inline optimization for GCC... $ECHO_C" >&6; }
! 135068: { echo "$as_me:$LINENO: result: $ZEND_INLINE_OPTIMIZATION" >&5
! 135069: echo "${ECHO_T}$ZEND_INLINE_OPTIMIZATION" >&6; }
! 135070:
! 135071: { echo "$as_me:$LINENO: checking whether to enable Zend debugging" >&5
! 135072: echo $ECHO_N "checking whether to enable Zend debugging... $ECHO_C" >&6; }
! 135073: { echo "$as_me:$LINENO: result: $ZEND_DEBUG" >&5
! 135074: echo "${ECHO_T}$ZEND_DEBUG" >&6; }
1.1 misho 135075:
135076: case $PHP_ZEND_VM in
135077: SWITCH)
135078:
1.1.1.3 ! misho 135079: cat >>confdefs.h <<\_ACEOF
! 135080: #define ZEND_VM_KIND ZEND_VM_KIND_SWITCH
! 135081: _ACEOF
1.1 misho 135082:
135083: ;;
135084: GOTO)
135085:
1.1.1.3 ! misho 135086: cat >>confdefs.h <<\_ACEOF
! 135087: #define ZEND_VM_KIND ZEND_VM_KIND_GOTO
! 135088: _ACEOF
1.1 misho 135089:
135090: ;;
135091: *)
135092: PHP_ZEND_VM=CALL
135093:
1.1.1.3 ! misho 135094: cat >>confdefs.h <<\_ACEOF
! 135095: #define ZEND_VM_KIND ZEND_VM_KIND_CALL
! 135096: _ACEOF
1.1 misho 135097:
135098: ;;
135099: esac
135100:
135101: if test "$ZEND_DEBUG" = "yes"; then
135102:
1.1.1.3 ! misho 135103: cat >>confdefs.h <<\_ACEOF
! 135104: #define ZEND_DEBUG 1
! 135105: _ACEOF
1.1 misho 135106:
135107: echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
135108: if test "$CFLAGS" = "-g -O2"; then
135109: CFLAGS=-g
135110: fi
135111: test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
135112: test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
135113: DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
135114: else
135115:
1.1.1.3 ! misho 135116: cat >>confdefs.h <<\_ACEOF
! 135117: #define ZEND_DEBUG 0
! 135118: _ACEOF
1.1 misho 135119:
135120: fi
135121:
135122: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
135123:
135124: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
135125:
1.1.1.3 ! misho 135126: cat >>confdefs.h <<\_ACEOF
! 135127: #define ZTS 1
! 135128: _ACEOF
1.1 misho 135129:
135130: CFLAGS="$CFLAGS -DZTS"
135131:
135132:
135133:
135134: fi
135135:
135136:
135137: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
135138: INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
135139: else
135140: INLINE_CFLAGS="$CFLAGS"
135141: fi
135142:
135143:
1.1.1.3 ! misho 135144: { echo "$as_me:$LINENO: checking for inline" >&5
! 135145: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
! 135146: if test "${ac_cv_c_inline+set}" = set; then
! 135147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 135148: else
135149: ac_cv_c_inline=no
135150: for ac_kw in inline __inline__ __inline; do
1.1.1.3 ! misho 135151: cat >conftest.$ac_ext <<_ACEOF
! 135152: /* confdefs.h. */
! 135153: _ACEOF
! 135154: cat confdefs.h >>conftest.$ac_ext
! 135155: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 135156: /* end confdefs.h. */
135157: #ifndef __cplusplus
135158: typedef int foo_t;
135159: static $ac_kw foo_t static_foo () {return 0; }
135160: $ac_kw foo_t foo () {return 0; }
135161: #endif
135162:
135163: _ACEOF
1.1.1.3 ! misho 135164: rm -f conftest.$ac_objext
! 135165: if { (ac_try="$ac_compile"
! 135166: case "(($ac_try" in
! 135167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135168: *) ac_try_echo=$ac_try;;
! 135169: esac
! 135170: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135171: (eval "$ac_compile") 2>conftest.er1
! 135172: ac_status=$?
! 135173: grep -v '^ *+' conftest.er1 >conftest.err
! 135174: rm -f conftest.er1
! 135175: cat conftest.err >&5
! 135176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135177: (exit $ac_status); } && {
! 135178: test -z "$ac_c_werror_flag" ||
! 135179: test ! -s conftest.err
! 135180: } && test -s conftest.$ac_objext; then
1.1 misho 135181: ac_cv_c_inline=$ac_kw
1.1.1.3 ! misho 135182: else
! 135183: echo "$as_me: failed program was:" >&5
! 135184: sed 's/^/| /' conftest.$ac_ext >&5
! 135185:
! 135186:
1.1 misho 135187: fi
1.1.1.3 ! misho 135188:
1.1 misho 135189: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135190: test "$ac_cv_c_inline" != no && break
135191: done
135192:
135193: fi
1.1.1.3 ! misho 135194: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 135195: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
! 135196:
1.1 misho 135197:
135198: case $ac_cv_c_inline in
135199: inline | yes) ;;
135200: *)
135201: case $ac_cv_c_inline in
135202: no) ac_val=;;
135203: *) ac_val=$ac_cv_c_inline;;
135204: esac
135205: cat >>confdefs.h <<_ACEOF
135206: #ifndef __cplusplus
135207: #define inline $ac_val
135208: #endif
135209: _ACEOF
135210: ;;
135211: esac
135212:
135213:
135214:
135215:
1.1.1.3 ! misho 135216: { echo "$as_me:$LINENO: checking target system is Darwin" >&5
! 135217: echo $ECHO_N "checking target system is Darwin... $ECHO_C" >&6; }
1.1 misho 135218: if echo "$target" | grep "darwin" > /dev/null; then
135219:
1.1.1.3 ! misho 135220: cat >>confdefs.h <<\_ACEOF
! 135221: #define DARWIN 1
! 135222: _ACEOF
1.1 misho 135223:
1.1.1.3 ! misho 135224: { echo "$as_me:$LINENO: result: yes" >&5
! 135225: echo "${ECHO_T}yes" >&6; }
1.1 misho 135226: else
1.1.1.3 ! misho 135227: { echo "$as_me:$LINENO: result: no" >&5
! 135228: echo "${ECHO_T}no" >&6; }
1.1 misho 135229: fi
135230:
1.1.1.3 ! misho 135231: { echo "$as_me:$LINENO: checking for MM alignment and log values" >&5
! 135232: echo $ECHO_N "checking for MM alignment and log values... $ECHO_C" >&6; }
1.1 misho 135233:
1.1.1.3 ! misho 135234: if test "$cross_compiling" = yes; then
1.1 misho 135235:
135236: LIBZEND_MM_ALIGN=8
135237:
135238: else
1.1.1.3 ! misho 135239: cat >conftest.$ac_ext <<_ACEOF
! 135240: /* confdefs.h. */
! 135241: _ACEOF
! 135242: cat confdefs.h >>conftest.$ac_ext
! 135243: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 135244: /* end confdefs.h. */
135245:
135246: #include <stdio.h>
135247:
135248: typedef union _mm_align_test {
135249: void *ptr;
135250: double dbl;
135251: long lng;
135252: } mm_align_test;
135253:
135254: #if (defined (__GNUC__) && __GNUC__ >= 2)
135255: #define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test))
135256: #else
135257: #define ZEND_MM_ALIGNMENT (sizeof(mm_align_test))
135258: #endif
135259:
135260: int main()
135261: {
135262: int i = ZEND_MM_ALIGNMENT;
135263: int zeros = 0;
135264: FILE *fp;
135265:
135266: while (i & ~0x1) {
135267: zeros++;
135268: i = i >> 1;
135269: }
135270:
135271: fp = fopen("conftest.zend", "w");
135272: fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);
135273: fclose(fp);
135274:
135275: exit(0);
135276: }
135277:
135278: _ACEOF
1.1.1.3 ! misho 135279: rm -f conftest$ac_exeext
! 135280: if { (ac_try="$ac_link"
! 135281: case "(($ac_try" in
! 135282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135283: *) ac_try_echo=$ac_try;;
! 135284: esac
! 135285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135286: (eval "$ac_link") 2>&5
! 135287: ac_status=$?
! 135288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135289: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 135290: { (case "(($ac_try" in
! 135291: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135292: *) ac_try_echo=$ac_try;;
! 135293: esac
! 135294: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135295: (eval "$ac_try") 2>&5
! 135296: ac_status=$?
! 135297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135298: (exit $ac_status); }; }; then
1.1 misho 135299:
135300: LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`
135301: LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
135302:
135303: cat >>confdefs.h <<_ACEOF
135304: #define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN
135305: _ACEOF
135306:
135307:
135308: cat >>confdefs.h <<_ACEOF
135309: #define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2
135310: _ACEOF
135311:
135312:
1.1.1.3 ! misho 135313: else
! 135314: echo "$as_me: program exited with status $ac_status" >&5
! 135315: echo "$as_me: failed program was:" >&5
! 135316: sed 's/^/| /' conftest.$ac_ext >&5
! 135317:
1.1 misho 135318: fi
1.1.1.3 ! misho 135319: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 135320: fi
135321:
135322:
135323:
1.1.1.3 ! misho 135324: { echo "$as_me:$LINENO: result: done" >&5
! 135325: echo "${ECHO_T}done" >&6; }
1.1 misho 135326:
1.1.1.3 ! misho 135327: { echo "$as_me:$LINENO: checking for memory allocation using mmap(MAP_ANON)" >&5
! 135328: echo $ECHO_N "checking for memory allocation using mmap(MAP_ANON)... $ECHO_C" >&6; }
1.1 misho 135329:
1.1.1.3 ! misho 135330: if test "$cross_compiling" = yes; then
! 135331:
! 135332: { echo "$as_me:$LINENO: result: no" >&5
! 135333: echo "${ECHO_T}no" >&6; }
1.1 misho 135334:
135335: else
1.1.1.3 ! misho 135336: cat >conftest.$ac_ext <<_ACEOF
! 135337: /* confdefs.h. */
! 135338: _ACEOF
! 135339: cat confdefs.h >>conftest.$ac_ext
! 135340: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 135341: /* end confdefs.h. */
135342:
135343: #include <sys/types.h>
135344: #include <sys/stat.h>
135345: #include <fcntl.h>
135346: #include <sys/mman.h>
135347: #include <stdlib.h>
135348: #include <stdio.h>
135349: #ifndef MAP_ANON
135350: # ifdef MAP_ANONYMOUS
135351: # define MAP_ANON MAP_ANONYMOUS
135352: # endif
135353: #endif
135354: #ifndef MREMAP_MAYMOVE
135355: # define MREMAP_MAYMOVE 0
135356: #endif
135357: #ifndef MAP_FAILED
135358: # define MAP_FAILED ((void*)-1)
135359: #endif
135360:
135361: #define SEG_SIZE (256*1024)
135362:
135363: int main()
135364: {
135365: void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
135366: if (seg == MAP_FAILED) {
135367: return 1;
135368: }
135369: if (munmap(seg, SEG_SIZE) != 0) {
135370: return 2;
135371: }
135372: return 0;
135373: }
135374:
135375: _ACEOF
1.1.1.3 ! misho 135376: rm -f conftest$ac_exeext
! 135377: if { (ac_try="$ac_link"
! 135378: case "(($ac_try" in
! 135379: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135380: *) ac_try_echo=$ac_try;;
! 135381: esac
! 135382: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135383: (eval "$ac_link") 2>&5
! 135384: ac_status=$?
! 135385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135386: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 135387: { (case "(($ac_try" in
! 135388: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135389: *) ac_try_echo=$ac_try;;
! 135390: esac
! 135391: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135392: (eval "$ac_try") 2>&5
! 135393: ac_status=$?
! 135394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135395: (exit $ac_status); }; }; then
1.1 misho 135396:
135397:
1.1.1.3 ! misho 135398: cat >>confdefs.h <<\_ACEOF
! 135399: #define HAVE_MEM_MMAP_ANON 1
! 135400: _ACEOF
1.1 misho 135401:
1.1.1.3 ! misho 135402: { echo "$as_me:$LINENO: result: yes" >&5
! 135403: echo "${ECHO_T}yes" >&6; }
1.1 misho 135404:
135405: else
1.1.1.3 ! misho 135406: echo "$as_me: program exited with status $ac_status" >&5
! 135407: echo "$as_me: failed program was:" >&5
! 135408: sed 's/^/| /' conftest.$ac_ext >&5
! 135409:
! 135410: ( exit $ac_status )
1.1 misho 135411:
1.1.1.3 ! misho 135412: { echo "$as_me:$LINENO: result: no" >&5
! 135413: echo "${ECHO_T}no" >&6; }
1.1 misho 135414:
135415: fi
1.1.1.3 ! misho 135416: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 135417: fi
135418:
135419:
135420:
1.1.1.3 ! misho 135421: { echo "$as_me:$LINENO: checking for memory allocation using mmap(\"/dev/zero\")" >&5
! 135422: echo $ECHO_N "checking for memory allocation using mmap(\"/dev/zero\")... $ECHO_C" >&6; }
! 135423:
! 135424: if test "$cross_compiling" = yes; then
1.1 misho 135425:
1.1.1.3 ! misho 135426: { echo "$as_me:$LINENO: result: no" >&5
! 135427: echo "${ECHO_T}no" >&6; }
1.1 misho 135428:
135429: else
1.1.1.3 ! misho 135430: cat >conftest.$ac_ext <<_ACEOF
! 135431: /* confdefs.h. */
! 135432: _ACEOF
! 135433: cat confdefs.h >>conftest.$ac_ext
! 135434: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 135435: /* end confdefs.h. */
135436:
135437: #include <sys/types.h>
135438: #include <sys/stat.h>
135439: #include <fcntl.h>
135440: #include <sys/mman.h>
135441: #include <stdlib.h>
135442: #include <stdio.h>
135443: #ifndef MAP_ANON
135444: # ifdef MAP_ANONYMOUS
135445: # define MAP_ANON MAP_ANONYMOUS
135446: # endif
135447: #endif
135448: #ifndef MREMAP_MAYMOVE
135449: # define MREMAP_MAYMOVE 0
135450: #endif
135451: #ifndef MAP_FAILED
135452: # define MAP_FAILED ((void*)-1)
135453: #endif
135454:
135455: #define SEG_SIZE (256*1024)
135456:
135457: int main()
135458: {
135459: int fd;
135460: void *seg;
135461:
135462: fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
135463: if (fd < 0) {
135464: return 1;
135465: }
135466: seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
135467: if (seg == MAP_FAILED) {
135468: return 2;
135469: }
135470: if (munmap(seg, SEG_SIZE) != 0) {
135471: return 3;
135472: }
135473: if (close(fd) != 0) {
135474: return 4;
135475: }
135476: return 0;
135477: }
135478:
135479: _ACEOF
1.1.1.3 ! misho 135480: rm -f conftest$ac_exeext
! 135481: if { (ac_try="$ac_link"
! 135482: case "(($ac_try" in
! 135483: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135484: *) ac_try_echo=$ac_try;;
! 135485: esac
! 135486: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135487: (eval "$ac_link") 2>&5
! 135488: ac_status=$?
! 135489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135490: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 135491: { (case "(($ac_try" in
! 135492: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135493: *) ac_try_echo=$ac_try;;
! 135494: esac
! 135495: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135496: (eval "$ac_try") 2>&5
! 135497: ac_status=$?
! 135498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135499: (exit $ac_status); }; }; then
1.1 misho 135500:
135501:
1.1.1.3 ! misho 135502: cat >>confdefs.h <<\_ACEOF
! 135503: #define HAVE_MEM_MMAP_ZERO 1
! 135504: _ACEOF
1.1 misho 135505:
1.1.1.3 ! misho 135506: { echo "$as_me:$LINENO: result: yes" >&5
! 135507: echo "${ECHO_T}yes" >&6; }
1.1 misho 135508:
135509: else
1.1.1.3 ! misho 135510: echo "$as_me: program exited with status $ac_status" >&5
! 135511: echo "$as_me: failed program was:" >&5
! 135512: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 135513:
1.1.1.3 ! misho 135514: ( exit $ac_status )
! 135515:
! 135516: { echo "$as_me:$LINENO: result: no" >&5
! 135517: echo "${ECHO_T}no" >&6; }
1.1 misho 135518:
135519: fi
1.1.1.3 ! misho 135520: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 135521: fi
135522:
135523:
1.1.1.3 ! misho 135524:
! 135525:
1.1 misho 135526: for ac_func in mremap
1.1.1.3 ! misho 135527: do
! 135528: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 135529: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 135530: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 135531: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 135532: echo $ECHO_N "(cached) $ECHO_C" >&6
! 135533: else
! 135534: cat >conftest.$ac_ext <<_ACEOF
! 135535: /* confdefs.h. */
! 135536: _ACEOF
! 135537: cat confdefs.h >>conftest.$ac_ext
! 135538: cat >>conftest.$ac_ext <<_ACEOF
! 135539: /* end confdefs.h. */
! 135540: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 135541: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 135542: #define $ac_func innocuous_$ac_func
! 135543:
! 135544: /* System header to define __stub macros and hopefully few prototypes,
! 135545: which can conflict with char $ac_func (); below.
! 135546: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 135547: <limits.h> exists even on freestanding compilers. */
! 135548:
! 135549: #ifdef __STDC__
! 135550: # include <limits.h>
! 135551: #else
! 135552: # include <assert.h>
! 135553: #endif
! 135554:
! 135555: #undef $ac_func
! 135556:
! 135557: /* Override any GCC internal prototype to avoid an error.
! 135558: Use char because int might match the return type of a GCC
! 135559: builtin and then its argument prototype would still apply. */
! 135560: #ifdef __cplusplus
! 135561: extern "C"
! 135562: #endif
! 135563: char $ac_func ();
! 135564: /* The GNU C library defines this for functions which it implements
! 135565: to always fail with ENOSYS. Some functions are actually named
! 135566: something starting with __ and the normal name is an alias. */
! 135567: #if defined __stub_$ac_func || defined __stub___$ac_func
! 135568: choke me
! 135569: #endif
! 135570:
! 135571: int
! 135572: main ()
! 135573: {
! 135574: return $ac_func ();
! 135575: ;
! 135576: return 0;
! 135577: }
! 135578: _ACEOF
! 135579: rm -f conftest.$ac_objext conftest$ac_exeext
! 135580: if { (ac_try="$ac_link"
! 135581: case "(($ac_try" in
! 135582: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135583: *) ac_try_echo=$ac_try;;
! 135584: esac
! 135585: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135586: (eval "$ac_link") 2>conftest.er1
! 135587: ac_status=$?
! 135588: grep -v '^ *+' conftest.er1 >conftest.err
! 135589: rm -f conftest.er1
! 135590: cat conftest.err >&5
! 135591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135592: (exit $ac_status); } && {
! 135593: test -z "$ac_c_werror_flag" ||
! 135594: test ! -s conftest.err
! 135595: } && test -s conftest$ac_exeext &&
! 135596: $as_test_x conftest$ac_exeext; then
! 135597: eval "$as_ac_var=yes"
! 135598: else
! 135599: echo "$as_me: failed program was:" >&5
! 135600: sed 's/^/| /' conftest.$ac_ext >&5
! 135601:
! 135602: eval "$as_ac_var=no"
! 135603: fi
! 135604:
! 135605: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 135606: conftest$ac_exeext conftest.$ac_ext
! 135607: fi
! 135608: ac_res=`eval echo '${'$as_ac_var'}'`
! 135609: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 135610: echo "${ECHO_T}$ac_res" >&6; }
! 135611: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 misho 135612: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 135613: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 135614: _ACEOF
135615:
135616: fi
135617: done
135618:
135619:
135620:
1.1.1.2 misho 135621: # Check whether --enable-zend-signals was given.
1.1.1.3 ! misho 135622: if test "${enable_zend_signals+set}" = set; then
1.1.1.2 misho 135623: enableval=$enable_zend_signals;
135624: ZEND_SIGNALS=$enableval
135625:
135626: else
135627:
135628: ZEND_SIGNALS=no
135629:
135630: fi
135631:
135632:
1.1.1.3 ! misho 135633: { echo "$as_me:$LINENO: checking for sigaction" >&5
! 135634: echo $ECHO_N "checking for sigaction... $ECHO_C" >&6; }
! 135635: if test "${ac_cv_func_sigaction+set}" = set; then
! 135636: echo $ECHO_N "(cached) $ECHO_C" >&6
! 135637: else
! 135638: cat >conftest.$ac_ext <<_ACEOF
! 135639: /* confdefs.h. */
! 135640: _ACEOF
! 135641: cat confdefs.h >>conftest.$ac_ext
! 135642: cat >>conftest.$ac_ext <<_ACEOF
! 135643: /* end confdefs.h. */
! 135644: /* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
! 135645: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 135646: #define sigaction innocuous_sigaction
! 135647:
! 135648: /* System header to define __stub macros and hopefully few prototypes,
! 135649: which can conflict with char sigaction (); below.
! 135650: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 135651: <limits.h> exists even on freestanding compilers. */
! 135652:
! 135653: #ifdef __STDC__
! 135654: # include <limits.h>
! 135655: #else
! 135656: # include <assert.h>
! 135657: #endif
! 135658:
! 135659: #undef sigaction
! 135660:
! 135661: /* Override any GCC internal prototype to avoid an error.
! 135662: Use char because int might match the return type of a GCC
! 135663: builtin and then its argument prototype would still apply. */
! 135664: #ifdef __cplusplus
! 135665: extern "C"
! 135666: #endif
! 135667: char sigaction ();
! 135668: /* The GNU C library defines this for functions which it implements
! 135669: to always fail with ENOSYS. Some functions are actually named
! 135670: something starting with __ and the normal name is an alias. */
! 135671: #if defined __stub_sigaction || defined __stub___sigaction
! 135672: choke me
! 135673: #endif
! 135674:
! 135675: int
! 135676: main ()
! 135677: {
! 135678: return sigaction ();
! 135679: ;
! 135680: return 0;
! 135681: }
! 135682: _ACEOF
! 135683: rm -f conftest.$ac_objext conftest$ac_exeext
! 135684: if { (ac_try="$ac_link"
! 135685: case "(($ac_try" in
! 135686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135687: *) ac_try_echo=$ac_try;;
! 135688: esac
! 135689: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135690: (eval "$ac_link") 2>conftest.er1
! 135691: ac_status=$?
! 135692: grep -v '^ *+' conftest.er1 >conftest.err
! 135693: rm -f conftest.er1
! 135694: cat conftest.err >&5
! 135695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135696: (exit $ac_status); } && {
! 135697: test -z "$ac_c_werror_flag" ||
! 135698: test ! -s conftest.err
! 135699: } && test -s conftest$ac_exeext &&
! 135700: $as_test_x conftest$ac_exeext; then
! 135701: ac_cv_func_sigaction=yes
! 135702: else
! 135703: echo "$as_me: failed program was:" >&5
! 135704: sed 's/^/| /' conftest.$ac_ext >&5
! 135705:
! 135706: ac_cv_func_sigaction=no
! 135707: fi
! 135708:
! 135709: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 135710: conftest$ac_exeext conftest.$ac_ext
! 135711: fi
! 135712: { echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
! 135713: echo "${ECHO_T}$ac_cv_func_sigaction" >&6; }
! 135714: if test $ac_cv_func_sigaction = yes; then
1.1.1.2 misho 135715:
135716:
1.1.1.3 ! misho 135717: cat >>confdefs.h <<\_ACEOF
! 135718: #define HAVE_SIGACTION 1
! 135719: _ACEOF
1.1.1.2 misho 135720:
135721:
135722: else
135723:
135724: ZEND_SIGNALS=no
135725:
135726: fi
135727:
135728: if test "$ZEND_SIGNALS" = "yes"; then
135729:
1.1.1.3 ! misho 135730: cat >>confdefs.h <<\_ACEOF
! 135731: #define ZEND_SIGNALS 1
! 135732: _ACEOF
1.1.1.2 misho 135733:
135734: CFLAGS="$CFLAGS -DZEND_SIGNALS"
135735: fi
135736:
1.1.1.3 ! misho 135737: { echo "$as_me:$LINENO: checking whether to enable zend signal handling" >&5
! 135738: echo $ECHO_N "checking whether to enable zend signal handling... $ECHO_C" >&6; }
! 135739: { echo "$as_me:$LINENO: result: $ZEND_SIGNALS" >&5
! 135740: echo "${ECHO_T}$ZEND_SIGNALS" >&6; }
1.1.1.2 misho 135741:
135742:
1.1 misho 135743:
135744: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
135745:
1.1.1.3 ! misho 135746: cat >>confdefs.h <<\_ACEOF
! 135747: #define ZTS 1
! 135748: _ACEOF
1.1 misho 135749:
135750: PHP_THREAD_SAFETY=yes
135751: else
135752: PHP_THREAD_SAFETY=no
135753: fi
135754:
135755: INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
135756: INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"
135757:
135758: if test "$abs_srcdir" != "$abs_builddir"; then
135759: INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
135760: INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
135761: fi
135762:
135763: ZEND_EXTRA_LIBS="$LIBS"
135764: unset LIBS LDFLAGS
135765:
135766:
135767: # Check whether --enable- was given.
1.1.1.3 ! misho 135768: if test "${enable_+set}" = set; then
1.1 misho 135769: enableval=$enable_;
135770: fi
135771:
135772:
135773:
1.1.1.3 ! misho 135774: { echo "$as_me:$LINENO: result: " >&5
! 135775: echo "${ECHO_T}" >&6; }
! 135776: { echo "$as_me:$LINENO: result: ${T_MD}Configuring TSRM${T_ME}" >&5
! 135777: echo "${ECHO_T}${T_MD}Configuring TSRM${T_ME}" >&6; }
! 135778:
1.1 misho 135779:
135780:
135781:
135782:
135783: for ac_header in stdarg.h
1.1.1.3 ! misho 135784: do
! 135785: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 135786: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 135787: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 135788: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 135789: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 135790: echo $ECHO_N "(cached) $ECHO_C" >&6
! 135791: fi
! 135792: ac_res=`eval echo '${'$as_ac_Header'}'`
! 135793: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 135794: echo "${ECHO_T}$ac_res" >&6; }
! 135795: else
! 135796: # Is the header compilable?
! 135797: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 135798: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 135799: cat >conftest.$ac_ext <<_ACEOF
! 135800: /* confdefs.h. */
! 135801: _ACEOF
! 135802: cat confdefs.h >>conftest.$ac_ext
! 135803: cat >>conftest.$ac_ext <<_ACEOF
! 135804: /* end confdefs.h. */
! 135805: $ac_includes_default
! 135806: #include <$ac_header>
! 135807: _ACEOF
! 135808: rm -f conftest.$ac_objext
! 135809: if { (ac_try="$ac_compile"
! 135810: case "(($ac_try" in
! 135811: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135812: *) ac_try_echo=$ac_try;;
! 135813: esac
! 135814: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135815: (eval "$ac_compile") 2>conftest.er1
! 135816: ac_status=$?
! 135817: grep -v '^ *+' conftest.er1 >conftest.err
! 135818: rm -f conftest.er1
! 135819: cat conftest.err >&5
! 135820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135821: (exit $ac_status); } && {
! 135822: test -z "$ac_c_werror_flag" ||
! 135823: test ! -s conftest.err
! 135824: } && test -s conftest.$ac_objext; then
! 135825: ac_header_compiler=yes
! 135826: else
! 135827: echo "$as_me: failed program was:" >&5
! 135828: sed 's/^/| /' conftest.$ac_ext >&5
! 135829:
! 135830: ac_header_compiler=no
! 135831: fi
! 135832:
! 135833: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 135834: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 135835: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 135836:
! 135837: # Is the header present?
! 135838: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 135839: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 135840: cat >conftest.$ac_ext <<_ACEOF
! 135841: /* confdefs.h. */
! 135842: _ACEOF
! 135843: cat confdefs.h >>conftest.$ac_ext
! 135844: cat >>conftest.$ac_ext <<_ACEOF
! 135845: /* end confdefs.h. */
! 135846: #include <$ac_header>
! 135847: _ACEOF
! 135848: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 135849: case "(($ac_try" in
! 135850: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135851: *) ac_try_echo=$ac_try;;
! 135852: esac
! 135853: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135854: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 135855: ac_status=$?
! 135856: grep -v '^ *+' conftest.er1 >conftest.err
! 135857: rm -f conftest.er1
! 135858: cat conftest.err >&5
! 135859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135860: (exit $ac_status); } >/dev/null && {
! 135861: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 135862: test ! -s conftest.err
! 135863: }; then
! 135864: ac_header_preproc=yes
! 135865: else
! 135866: echo "$as_me: failed program was:" >&5
! 135867: sed 's/^/| /' conftest.$ac_ext >&5
! 135868:
! 135869: ac_header_preproc=no
! 135870: fi
! 135871:
! 135872: rm -f conftest.err conftest.$ac_ext
! 135873: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 135874: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 135875:
! 135876: # So? What about this header?
! 135877: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 135878: yes:no: )
! 135879: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 135880: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 135881: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 135882: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 135883: ac_header_preproc=yes
! 135884: ;;
! 135885: no:yes:* )
! 135886: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 135887: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 135888: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 135889: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 135890: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 135891: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 135892: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 135893: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 135894: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 135895: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 135896: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 135897: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 135898:
! 135899: ;;
! 135900: esac
! 135901: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 135902: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 135903: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 135904: echo $ECHO_N "(cached) $ECHO_C" >&6
! 135905: else
! 135906: eval "$as_ac_Header=\$ac_header_preproc"
! 135907: fi
! 135908: ac_res=`eval echo '${'$as_ac_Header'}'`
! 135909: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 135910: echo "${ECHO_T}$ac_res" >&6; }
! 135911:
! 135912: fi
! 135913: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 135914: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 135915: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 135916: _ACEOF
135917:
135918: fi
135919:
135920: done
135921:
135922:
1.1.1.3 ! misho 135923:
1.1.1.2 misho 135924: for ac_func in sigprocmask
1.1.1.3 ! misho 135925: do
! 135926: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 135927: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 135928: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 135929: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 135930: echo $ECHO_N "(cached) $ECHO_C" >&6
! 135931: else
! 135932: cat >conftest.$ac_ext <<_ACEOF
! 135933: /* confdefs.h. */
! 135934: _ACEOF
! 135935: cat confdefs.h >>conftest.$ac_ext
! 135936: cat >>conftest.$ac_ext <<_ACEOF
! 135937: /* end confdefs.h. */
! 135938: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 135939: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 135940: #define $ac_func innocuous_$ac_func
! 135941:
! 135942: /* System header to define __stub macros and hopefully few prototypes,
! 135943: which can conflict with char $ac_func (); below.
! 135944: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 135945: <limits.h> exists even on freestanding compilers. */
! 135946:
! 135947: #ifdef __STDC__
! 135948: # include <limits.h>
! 135949: #else
! 135950: # include <assert.h>
! 135951: #endif
! 135952:
! 135953: #undef $ac_func
! 135954:
! 135955: /* Override any GCC internal prototype to avoid an error.
! 135956: Use char because int might match the return type of a GCC
! 135957: builtin and then its argument prototype would still apply. */
! 135958: #ifdef __cplusplus
! 135959: extern "C"
! 135960: #endif
! 135961: char $ac_func ();
! 135962: /* The GNU C library defines this for functions which it implements
! 135963: to always fail with ENOSYS. Some functions are actually named
! 135964: something starting with __ and the normal name is an alias. */
! 135965: #if defined __stub_$ac_func || defined __stub___$ac_func
! 135966: choke me
! 135967: #endif
! 135968:
! 135969: int
! 135970: main ()
! 135971: {
! 135972: return $ac_func ();
! 135973: ;
! 135974: return 0;
! 135975: }
! 135976: _ACEOF
! 135977: rm -f conftest.$ac_objext conftest$ac_exeext
! 135978: if { (ac_try="$ac_link"
! 135979: case "(($ac_try" in
! 135980: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 135981: *) ac_try_echo=$ac_try;;
! 135982: esac
! 135983: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 135984: (eval "$ac_link") 2>conftest.er1
! 135985: ac_status=$?
! 135986: grep -v '^ *+' conftest.er1 >conftest.err
! 135987: rm -f conftest.er1
! 135988: cat conftest.err >&5
! 135989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 135990: (exit $ac_status); } && {
! 135991: test -z "$ac_c_werror_flag" ||
! 135992: test ! -s conftest.err
! 135993: } && test -s conftest$ac_exeext &&
! 135994: $as_test_x conftest$ac_exeext; then
! 135995: eval "$as_ac_var=yes"
! 135996: else
! 135997: echo "$as_me: failed program was:" >&5
! 135998: sed 's/^/| /' conftest.$ac_ext >&5
! 135999:
! 136000: eval "$as_ac_var=no"
! 136001: fi
! 136002:
! 136003: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 136004: conftest$ac_exeext conftest.$ac_ext
! 136005: fi
! 136006: ac_res=`eval echo '${'$as_ac_var'}'`
! 136007: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 136008: echo "${ECHO_T}$ac_res" >&6; }
! 136009: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1.1.2 misho 136010: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 136011: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1.1.2 misho 136012: _ACEOF
136013:
136014: fi
136015: done
136016:
136017:
1.1 misho 136018:
136019: if test "$PHP_THREAD_SAFETY" = "yes"; then
136020:
136021:
136022:
136023:
136024: # Check whether --with-tsrm-pth was given.
1.1.1.3 ! misho 136025: if test "${with_tsrm_pth+set}" = set; then
1.1 misho 136026: withval=$with_tsrm_pth;
136027: TSRM_PTH=$withval
136028:
136029: else
136030:
136031: TSRM_PTH=no
136032:
136033: fi
136034:
136035:
136036:
136037: # Check whether --with-tsrm-st was given.
1.1.1.3 ! misho 136038: if test "${with_tsrm_st+set}" = set; then
1.1 misho 136039: withval=$with_tsrm_st;
136040: TSRM_ST=$withval
136041:
136042: else
136043:
136044: TSRM_ST=no
136045:
136046: fi
136047:
136048:
136049:
136050: # Check whether --with-tsrm-pthreads was given.
1.1.1.3 ! misho 136051: if test "${with_tsrm_pthreads+set}" = set; then
1.1 misho 136052: withval=$with_tsrm_pthreads;
136053: TSRM_PTHREADS=$withval
136054:
136055: else
136056:
136057: TSRM_PTHREADS=yes
136058:
136059: fi
136060:
136061:
136062: test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config
136063:
136064: if test "$TSRM_PTH" != "no"; then
136065:
136066:
1.1.1.3 ! misho 136067: { echo "$as_me:$LINENO: checking for GNU Pth" >&5
! 136068: echo $ECHO_N "checking for GNU Pth... $ECHO_C" >&6; }
1.1 misho 136069: PTH_PREFIX="`$TSRM_PTH --prefix`"
136070: if test -z "$PTH_PREFIX"; then
1.1.1.3 ! misho 136071: { echo "$as_me:$LINENO: result: Please check your Pth installation" >&5
! 136072: echo "${ECHO_T}Please check your Pth installation" >&6; }
1.1 misho 136073: fi
136074:
136075: CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`"
136076: LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`"
136077: LIBS="$LIBS `$TSRM_PTH --libs`"
136078:
136079:
1.1.1.3 ! misho 136080: cat >>confdefs.h <<\_ACEOF
! 136081: #define GNUPTH 1
! 136082: _ACEOF
1.1 misho 136083:
1.1.1.3 ! misho 136084: { echo "$as_me:$LINENO: result: yes - installed in $PTH_PREFIX" >&5
! 136085: echo "${ECHO_T}yes - installed in $PTH_PREFIX" >&6; }
1.1 misho 136086:
136087:
136088: elif test "$TSRM_ST" != "no"; then
136089:
136090: if test -r "$TSRM_ST/include/st.h"; then
136091: CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include"
136092: LDFLAGS="$LDFLAGS -L$TSRM_ST/lib"
136093: elif test -r "$TSRM_ST/st.h"; then
136094: CPPFLAGS="$CPPFLAGS -I$TSRM_ST"
136095: LDFLAGS="$LDFLAGS -L$TSRM_ST"
136096: fi
1.1.1.3 ! misho 136097:
! 136098: for ac_header in st.h
! 136099: do
! 136100: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 136101: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 136102: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 136103: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 136104: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 136105: echo $ECHO_N "(cached) $ECHO_C" >&6
! 136106: fi
! 136107: ac_res=`eval echo '${'$as_ac_Header'}'`
! 136108: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 136109: echo "${ECHO_T}$ac_res" >&6; }
! 136110: else
! 136111: # Is the header compilable?
! 136112: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 136113: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 136114: cat >conftest.$ac_ext <<_ACEOF
! 136115: /* confdefs.h. */
! 136116: _ACEOF
! 136117: cat confdefs.h >>conftest.$ac_ext
! 136118: cat >>conftest.$ac_ext <<_ACEOF
! 136119: /* end confdefs.h. */
! 136120: $ac_includes_default
! 136121: #include <$ac_header>
! 136122: _ACEOF
! 136123: rm -f conftest.$ac_objext
! 136124: if { (ac_try="$ac_compile"
! 136125: case "(($ac_try" in
! 136126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136127: *) ac_try_echo=$ac_try;;
! 136128: esac
! 136129: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136130: (eval "$ac_compile") 2>conftest.er1
! 136131: ac_status=$?
! 136132: grep -v '^ *+' conftest.er1 >conftest.err
! 136133: rm -f conftest.er1
! 136134: cat conftest.err >&5
! 136135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136136: (exit $ac_status); } && {
! 136137: test -z "$ac_c_werror_flag" ||
! 136138: test ! -s conftest.err
! 136139: } && test -s conftest.$ac_objext; then
! 136140: ac_header_compiler=yes
! 136141: else
! 136142: echo "$as_me: failed program was:" >&5
! 136143: sed 's/^/| /' conftest.$ac_ext >&5
! 136144:
! 136145: ac_header_compiler=no
! 136146: fi
! 136147:
! 136148: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 136149: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 136150: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 136151:
! 136152: # Is the header present?
! 136153: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 136154: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 136155: cat >conftest.$ac_ext <<_ACEOF
! 136156: /* confdefs.h. */
! 136157: _ACEOF
! 136158: cat confdefs.h >>conftest.$ac_ext
! 136159: cat >>conftest.$ac_ext <<_ACEOF
! 136160: /* end confdefs.h. */
! 136161: #include <$ac_header>
! 136162: _ACEOF
! 136163: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 136164: case "(($ac_try" in
! 136165: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136166: *) ac_try_echo=$ac_try;;
! 136167: esac
! 136168: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136169: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 136170: ac_status=$?
! 136171: grep -v '^ *+' conftest.er1 >conftest.err
! 136172: rm -f conftest.er1
! 136173: cat conftest.err >&5
! 136174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136175: (exit $ac_status); } >/dev/null && {
! 136176: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 136177: test ! -s conftest.err
! 136178: }; then
! 136179: ac_header_preproc=yes
! 136180: else
! 136181: echo "$as_me: failed program was:" >&5
! 136182: sed 's/^/| /' conftest.$ac_ext >&5
! 136183:
! 136184: ac_header_preproc=no
! 136185: fi
! 136186:
! 136187: rm -f conftest.err conftest.$ac_ext
! 136188: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 136189: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 136190:
! 136191: # So? What about this header?
! 136192: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 136193: yes:no: )
! 136194: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 136195: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 136196: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 136197: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 136198: ac_header_preproc=yes
! 136199: ;;
! 136200: no:yes:* )
! 136201: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 136202: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 136203: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 136204: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 136205: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 136206: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 136207: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 136208: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 136209: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 136210: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 136211: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 136212: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 136213:
! 136214: ;;
! 136215: esac
! 136216: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 136217: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 136218: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 136219: echo $ECHO_N "(cached) $ECHO_C" >&6
! 136220: else
! 136221: eval "$as_ac_Header=\$ac_header_preproc"
! 136222: fi
! 136223: ac_res=`eval echo '${'$as_ac_Header'}'`
! 136224: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 136225: echo "${ECHO_T}$ac_res" >&6; }
! 136226:
! 136227: fi
! 136228: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1 misho 136229: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 136230: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 misho 136231: _ACEOF
136232:
136233: else
136234:
1.1.1.3 ! misho 136235: { { echo "$as_me:$LINENO: error: Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" >&5
! 136236: echo "$as_me: error: Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" >&2;}
! 136237: { (exit 1); exit 1; }; }
1.1 misho 136238:
136239: fi
136240:
136241: done
136242:
136243: LIBS="$LIBS -lst"
1.1.1.3 ! misho 136244: { echo "$as_me:$LINENO: checking for SGI's State Threads" >&5
! 136245: echo $ECHO_N "checking for SGI's State Threads... $ECHO_C" >&6; }
! 136246: { echo "$as_me:$LINENO: result: yes" >&5
! 136247: echo "${ECHO_T}yes" >&6; }
1.1 misho 136248:
1.1.1.3 ! misho 136249: cat >>confdefs.h <<\_ACEOF
! 136250: #define TSRM_ST 1
! 136251: _ACEOF
1.1 misho 136252:
136253:
136254: elif test "$TSRM_PTHREADS" != "no"; then
136255:
136256:
136257:
136258:
136259: if test "$beos_threads" = "1"; then
136260: pthreads_working="yes"
136261: ac_cv_pthreads_cflags=""
136262: else
136263: save_CFLAGS=$CFLAGS
136264: save_LIBS=$LIBS
136265:
136266: if test -n "$ac_cv_pthreads_lib"; then
136267: LIBS="$LIBS -l$ac_cv_pthreads_lib"
136268: fi
136269:
136270: if test -n "$ac_cv_pthreads_cflags"; then
136271: CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
136272: fi
136273:
136274:
1.1.1.3 ! misho 136275: if test "$cross_compiling" = yes; then
1.1 misho 136276:
136277: pthreads_working=no
136278: case $host_alias in
136279: *netware*)
136280: pthreads_working=yes
136281: esac
136282:
136283:
136284: else
1.1.1.3 ! misho 136285: cat >conftest.$ac_ext <<_ACEOF
! 136286: /* confdefs.h. */
! 136287: _ACEOF
! 136288: cat confdefs.h >>conftest.$ac_ext
! 136289: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 136290: /* end confdefs.h. */
136291:
136292: #include <pthread.h>
136293: #include <stddef.h>
136294:
136295: void *thread_routine(void *data) {
136296: return data;
136297: }
136298:
136299: int main() {
136300: pthread_t thd;
136301: pthread_mutexattr_t mattr;
136302: int data = 1;
136303: pthread_mutexattr_init(&mattr);
1.1.1.3 ! misho 136304: return pthread_create(&thd, NULL, thread_routine, &data);
1.1 misho 136305: }
136306: _ACEOF
1.1.1.3 ! misho 136307: rm -f conftest$ac_exeext
! 136308: if { (ac_try="$ac_link"
! 136309: case "(($ac_try" in
! 136310: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136311: *) ac_try_echo=$ac_try;;
! 136312: esac
! 136313: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136314: (eval "$ac_link") 2>&5
! 136315: ac_status=$?
! 136316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136317: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 136318: { (case "(($ac_try" in
! 136319: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136320: *) ac_try_echo=$ac_try;;
! 136321: esac
! 136322: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136323: (eval "$ac_try") 2>&5
! 136324: ac_status=$?
! 136325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136326: (exit $ac_status); }; }; then
1.1 misho 136327:
136328: pthreads_working=yes
136329:
136330: else
1.1.1.3 ! misho 136331: echo "$as_me: program exited with status $ac_status" >&5
! 136332: echo "$as_me: failed program was:" >&5
! 136333: sed 's/^/| /' conftest.$ac_ext >&5
! 136334:
! 136335: ( exit $ac_status )
1.1 misho 136336:
136337: pthreads_working=no
136338:
136339: fi
1.1.1.3 ! misho 136340: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 136341: fi
136342:
1.1.1.3 ! misho 136343:
1.1 misho 136344: LIBS=$save_LIBS
136345: CFLAGS=$save_CFLAGS
136346:
1.1.1.3 ! misho 136347: { echo "$as_me:$LINENO: checking for pthreads_cflags" >&5
! 136348: echo $ECHO_N "checking for pthreads_cflags... $ECHO_C" >&6; }
! 136349: if test "${ac_cv_pthreads_cflags+set}" = set; then
! 136350: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 136351: else
136352:
136353: ac_cv_pthreads_cflags=
136354: if test "$pthreads_working" != "yes"; then
136355: for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
136356: ac_save=$CFLAGS
136357: CFLAGS="$CFLAGS $flag"
136358:
1.1.1.3 ! misho 136359: if test "$cross_compiling" = yes; then
1.1 misho 136360:
136361: pthreads_working=no
136362: case $host_alias in
136363: *netware*)
136364: pthreads_working=yes
136365: esac
136366:
136367:
136368: else
1.1.1.3 ! misho 136369: cat >conftest.$ac_ext <<_ACEOF
! 136370: /* confdefs.h. */
! 136371: _ACEOF
! 136372: cat confdefs.h >>conftest.$ac_ext
! 136373: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 136374: /* end confdefs.h. */
136375:
136376: #include <pthread.h>
136377: #include <stddef.h>
136378:
136379: void *thread_routine(void *data) {
136380: return data;
136381: }
136382:
136383: int main() {
136384: pthread_t thd;
136385: pthread_mutexattr_t mattr;
136386: int data = 1;
136387: pthread_mutexattr_init(&mattr);
1.1.1.3 ! misho 136388: return pthread_create(&thd, NULL, thread_routine, &data);
1.1 misho 136389: }
136390: _ACEOF
1.1.1.3 ! misho 136391: rm -f conftest$ac_exeext
! 136392: if { (ac_try="$ac_link"
! 136393: case "(($ac_try" in
! 136394: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136395: *) ac_try_echo=$ac_try;;
! 136396: esac
! 136397: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136398: (eval "$ac_link") 2>&5
! 136399: ac_status=$?
! 136400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136401: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 136402: { (case "(($ac_try" in
! 136403: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136404: *) ac_try_echo=$ac_try;;
! 136405: esac
! 136406: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136407: (eval "$ac_try") 2>&5
! 136408: ac_status=$?
! 136409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136410: (exit $ac_status); }; }; then
1.1 misho 136411:
136412: pthreads_working=yes
136413:
136414: else
1.1.1.3 ! misho 136415: echo "$as_me: program exited with status $ac_status" >&5
! 136416: echo "$as_me: failed program was:" >&5
! 136417: sed 's/^/| /' conftest.$ac_ext >&5
! 136418:
! 136419: ( exit $ac_status )
1.1 misho 136420:
136421: pthreads_working=no
136422:
136423: fi
1.1.1.3 ! misho 136424: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 136425: fi
136426:
1.1.1.3 ! misho 136427:
1.1 misho 136428: CFLAGS=$ac_save
136429: if test "$pthreads_working" = "yes"; then
136430: ac_cv_pthreads_cflags=$flag
136431: break
136432: fi
136433: done
136434: fi
136435: fi
136436:
136437: fi
1.1.1.3 ! misho 136438: { echo "$as_me:$LINENO: result: $ac_cv_pthreads_cflags" >&5
! 136439: echo "${ECHO_T}$ac_cv_pthreads_cflags" >&6; }
1.1 misho 136440:
1.1.1.3 ! misho 136441: { echo "$as_me:$LINENO: checking for pthreads_lib" >&5
! 136442: echo $ECHO_N "checking for pthreads_lib... $ECHO_C" >&6; }
! 136443: if test "${ac_cv_pthreads_lib+set}" = set; then
! 136444: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 136445: else
136446:
136447: ac_cv_pthreads_lib=
136448: if test "$pthreads_working" != "yes"; then
136449: for lib in pthread pthreads c_r; do
136450: ac_save=$LIBS
136451: LIBS="$LIBS -l$lib"
136452:
1.1.1.3 ! misho 136453: if test "$cross_compiling" = yes; then
1.1 misho 136454:
136455: pthreads_working=no
136456: case $host_alias in
136457: *netware*)
136458: pthreads_working=yes
136459: esac
136460:
136461:
136462: else
1.1.1.3 ! misho 136463: cat >conftest.$ac_ext <<_ACEOF
! 136464: /* confdefs.h. */
! 136465: _ACEOF
! 136466: cat confdefs.h >>conftest.$ac_ext
! 136467: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 136468: /* end confdefs.h. */
136469:
136470: #include <pthread.h>
136471: #include <stddef.h>
136472:
136473: void *thread_routine(void *data) {
136474: return data;
136475: }
136476:
136477: int main() {
136478: pthread_t thd;
136479: pthread_mutexattr_t mattr;
136480: int data = 1;
136481: pthread_mutexattr_init(&mattr);
1.1.1.3 ! misho 136482: return pthread_create(&thd, NULL, thread_routine, &data);
1.1 misho 136483: }
136484: _ACEOF
1.1.1.3 ! misho 136485: rm -f conftest$ac_exeext
! 136486: if { (ac_try="$ac_link"
! 136487: case "(($ac_try" in
! 136488: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136489: *) ac_try_echo=$ac_try;;
! 136490: esac
! 136491: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136492: (eval "$ac_link") 2>&5
! 136493: ac_status=$?
! 136494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136495: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 136496: { (case "(($ac_try" in
! 136497: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 136498: *) ac_try_echo=$ac_try;;
! 136499: esac
! 136500: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 136501: (eval "$ac_try") 2>&5
! 136502: ac_status=$?
! 136503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 136504: (exit $ac_status); }; }; then
1.1 misho 136505:
136506: pthreads_working=yes
136507:
136508: else
1.1.1.3 ! misho 136509: echo "$as_me: program exited with status $ac_status" >&5
! 136510: echo "$as_me: failed program was:" >&5
! 136511: sed 's/^/| /' conftest.$ac_ext >&5
! 136512:
! 136513: ( exit $ac_status )
1.1 misho 136514:
136515: pthreads_working=no
136516:
136517: fi
1.1.1.3 ! misho 136518: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 misho 136519: fi
136520:
1.1.1.3 ! misho 136521:
1.1 misho 136522: LIBS=$ac_save
136523: if test "$pthreads_working" = "yes"; then
136524: ac_cv_pthreads_lib=$lib
136525: break
136526: fi
136527: done
136528: fi
136529:
136530: fi
1.1.1.3 ! misho 136531: { echo "$as_me:$LINENO: result: $ac_cv_pthreads_lib" >&5
! 136532: echo "${ECHO_T}$ac_cv_pthreads_lib" >&6; }
1.1 misho 136533:
136534: if test "$pthreads_working" = "yes"; then
136535: threads_result="POSIX-Threads found"
136536: else
136537: threads_result="POSIX-Threads not found"
136538: fi
136539:
136540:
136541: if test "$beos_threads" = "1"; then
136542:
1.1.1.3 ! misho 136543: cat >>confdefs.h <<\_ACEOF
! 136544: #define BETHREADS 1
! 136545: _ACEOF
1.1 misho 136546:
136547: else
136548: if test "$pthreads_working" != "yes"; then
1.1.1.3 ! misho 136549: { { echo "$as_me:$LINENO: error: Your system seems to lack POSIX threads." >&5
! 136550: echo "$as_me: error: Your system seems to lack POSIX threads." >&2;}
! 136551: { (exit 1); exit 1; }; }
1.1 misho 136552: fi
136553:
136554:
1.1.1.3 ! misho 136555: cat >>confdefs.h <<\_ACEOF
! 136556: #define PTHREADS 1
! 136557: _ACEOF
1.1 misho 136558:
136559:
1.1.1.3 ! misho 136560: { echo "$as_me:$LINENO: checking for POSIX threads" >&5
! 136561: echo $ECHO_N "checking for POSIX threads... $ECHO_C" >&6; }
! 136562: { echo "$as_me:$LINENO: result: yes" >&5
! 136563: echo "${ECHO_T}yes" >&6; }
1.1 misho 136564: fi
136565:
136566: fi
136567:
136568:
136569: fi
136570:
136571: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
136572: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
136573: EXTRA_LIBS="$EXTRA_LIBS $LIBS"
136574: unset LIBS LDFLAGS
136575:
136576: test "$prefix" = "NONE" && prefix=/usr/local
136577: test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
136578: test "$program_prefix" = "NONE" && program_prefix=
136579: test "$program_suffix" = "NONE" && program_suffix=
136580:
136581: case $libdir in
136582: '${exec_prefix}/lib')
136583: libdir=$libdir/php
136584: ;;
136585: esac
136586: case $datadir in
136587: '${prefix}/share')
136588: datadir=$datadir/php
136589: ;;
136590: esac
136591:
136592: phplibdir=`pwd`/modules
136593: $php_shtool mkdir -p $phplibdir
136594: phptempdir=`pwd`/libs
136595:
136596: old_exec_prefix=$exec_prefix
136597: old_libdir=$libdir
136598: old_datadir=$datadir
136599: exec_prefix=`eval echo $exec_prefix`
136600: libdir=`eval echo $libdir`
136601: datadir=`eval echo $datadir`
136602:
136603:
136604: ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'`
136605:
136606: if test -z "$EXTENSION_DIR"; then
136607: extbasedir=$ZEND_MODULE_API_NO
136608: if test "$oldstyleextdir" = "yes"; then
136609: if test "$PHP_DEBUG" = "1"; then
136610: part1=debug
136611: else
136612: part1=no-debug
136613: fi
136614: if test "$enable_maintainer_zts" = "yes"; then
136615: part2=zts
136616: else
136617: part2=non-zts
136618: fi
136619: extbasedir=$part1-$part2-$extbasedir
136620: EXTENSION_DIR=$libdir/extensions/$extbasedir
136621: else
136622: if test "$enable_maintainer_zts" = "yes"; then
136623: extbasedir=$extbasedir-zts
136624: fi
136625:
136626: if test "$PHP_DEBUG" = "1"; then
136627: extbasedir=$extbasedir-debug
136628: fi
136629: EXTENSION_DIR=$libdir/$extbasedir
136630: fi
136631: fi
136632:
136633: case $PHP_LAYOUT in
136634: GNU)
136635: datarootdir=$prefix/share
136636: ;;
136637: *)
136638: datarootdir=$prefix/php
136639: ;;
136640: esac
136641:
136642: EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
136643: EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
136644: EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir`
136645: EXPANDED_BINDIR=`eval echo $bindir`
136646: EXPANDED_SBINDIR=`eval echo $sbindir`
136647: EXPANDED_MANDIR=`eval echo $mandir`
136648: EXPANDED_LIBDIR=$libdir
136649: EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
136650: EXPANDED_DATADIR=$datadir
136651: EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
136652: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
1.1.1.3 ! misho 136653: INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
1.1 misho 136654:
136655: exec_prefix=$old_exec_prefix
136656: libdir=$old_libdir
136657: datadir=$old_datadir
136658:
136659:
136660:
136661:
136662:
136663:
136664:
136665:
136666:
136667:
136668:
136669:
136670:
136671:
136672: if test -n "$php_ldflags_add_usr_lib"; then
136673: PHP_RPATHS="$PHP_RPATHS /usr/lib"
136674: fi
136675:
136676:
136677: OLD_RPATHS=$PHP_RPATHS
136678: unset PHP_RPATHS
136679:
136680: for i in $OLD_RPATHS; do
136681: PHP_LDFLAGS="$PHP_LDFLAGS -L$i"
136682: PHP_RPATHS="$PHP_RPATHS -R $i"
136683: NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i"
136684: done
136685:
136686: if test "$PHP_RPATH" = "no"; then
136687: unset PHP_RPATHS
136688: unset NATIVE_RPATHS
136689: fi
136690:
136691:
136692: if test -z "$php_ldflags_add_usr_lib"; then
136693:
136694: unset ac_new_flags
136695: for i in $PHP_LDFLAGS; do
136696: case $i in
136697: -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
136698: *) ac_new_flags="$ac_new_flags $i" ;;
136699: esac
136700: done
136701: PHP_LDFLAGS=$ac_new_flags
136702:
136703:
136704: unset ac_new_flags
136705: for i in $LDFLAGS; do
136706: case $i in
136707: -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
136708: *) ac_new_flags="$ac_new_flags $i" ;;
136709: esac
136710: done
136711: LDFLAGS=$ac_new_flags
136712:
136713: fi
136714:
136715: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
136716: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
136717:
136718: PHP_BUILD_DATE=`date '+%Y-%m-%d'`
136719:
136720: cat >>confdefs.h <<_ACEOF
136721: #define PHP_BUILD_DATE "$PHP_BUILD_DATE"
136722: _ACEOF
136723:
136724:
136725: case $host_alias in
136726: *netware*)
136727: PHP_OS="NetWare"
136728: PHP_UNAME="NetWare"
136729:
136730: cat >>confdefs.h <<_ACEOF
136731: #define PHP_OS "$PHP_OS"
136732: _ACEOF
136733:
136734:
136735: cat >>confdefs.h <<_ACEOF
136736: #define PHP_UNAME "$PHP_UNAME"
136737: _ACEOF
136738:
136739: ;;
136740: *)
136741: PHP_UNAME=`uname -a | xargs`
136742:
136743: cat >>confdefs.h <<_ACEOF
136744: #define PHP_UNAME "$PHP_UNAME"
136745: _ACEOF
136746:
136747: PHP_OS=`uname | xargs`
136748:
136749: cat >>confdefs.h <<_ACEOF
136750: #define PHP_OS "$PHP_OS"
136751: _ACEOF
136752:
136753: ;;
136754: esac
136755:
136756:
136757:
136758: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS"
136759:
136760:
136761:
136762:
136763:
136764: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
136765:
136766:
136767:
136768: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS"
136769:
136770:
1.1.1.2 misho 136771: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS"
1.1 misho 136772:
136773:
136774: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
136775:
136776:
136777:
1.1.1.2 misho 136778: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES"
136779:
136780:
1.1 misho 136781: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
136782:
136783:
136784: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
136785:
136786:
136787:
136788: PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS"
136789:
136790:
136791:
136792:
136793: PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir"
136794:
136795:
136796:
136797:
136798:
136799: PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir"
136800:
136801:
136802:
136803:
136804:
136805: PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir"
136806:
136807:
136808:
136809:
136810:
136811: PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir"
136812:
136813:
136814:
136815:
136816:
136817: PHP_VAR_SUBST="$PHP_VAR_SUBST bindir"
136818:
136819:
136820: PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir"
136821:
136822:
136823: PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
136824:
136825:
136826:
136827: PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix"
136828:
136829:
136830:
136831:
136832:
136833: PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix"
136834:
136835:
136836:
136837:
136838: PHP_VAR_SUBST="$PHP_VAR_SUBST includedir"
136839:
136840:
136841: PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
136842:
136843:
136844: PHP_VAR_SUBST="$PHP_VAR_SUBST mandir"
136845:
136846:
136847: PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
136848:
136849:
136850: PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir"
136851:
136852:
136853: PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
136854:
136855:
136856: PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir"
136857:
136858:
136859: PHP_VAR_SUBST="$PHP_VAR_SUBST datadir"
136860:
136861:
136862: PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir"
136863:
136864:
136865: PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir"
136866:
136867:
136868:
136869: PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT"
136870:
136871:
136872: PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
136873:
136874:
136875: PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
136876:
136877:
136878: PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
136879:
136880:
136881: PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
136882:
136883:
136884: PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
136885:
136886:
136887: PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
136888:
136889:
136890: PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
136891:
136892:
136893: PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
136894:
136895:
136896:
136897: PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS"
136898:
136899:
136900:
136901:
136902:
136903: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
136904:
136905:
136906:
136907:
136908:
136909: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
136910:
136911:
136912:
136913:
136914:
136915: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM"
136916:
136917:
136918:
136919:
136920:
136921: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
136922:
136923:
136924:
136925:
136926:
136927: PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS"
136928:
136929:
136930:
136931:
136932:
136933: PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
136934:
136935:
136936:
136937:
136938:
136939: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES"
136940:
136941:
136942:
136943:
136944:
136945: PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH"
136946:
136947:
136948:
136949:
136950:
136951: PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT"
136952:
136953:
136954:
136955:
136956: PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
136957:
136958:
136959: PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
136960:
136961:
136962: PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S"
136963:
136964:
136965:
136966: PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS"
136967:
136968:
136969:
136970:
136971:
136972: PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR"
136973:
136974:
136975:
136976:
136977: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE"
136978:
136979:
136980:
136981: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS"
136982:
136983:
136984:
136985:
136986:
136987: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS"
136988:
136989:
136990:
136991:
136992: PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET"
136993:
136994:
136995: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS"
136996:
136997:
136998: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI"
136999:
137000:
137001:
137002: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION"
137003:
137004:
137005:
137006:
137007:
137008: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID"
137009:
137010:
137011:
137012:
137013: PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
137014:
137015:
137016: PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
137017:
137018:
137019: PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL"
137020:
137021:
137022: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS"
137023:
137024:
137025: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH"
137026:
137027:
137028: PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
137029:
137030:
137031: old_CC=$CC
137032:
137033: if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
137034: CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
137035: INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
137036: cat >meta_ccld<<EOF
137037: #! /bin/sh
137038: exec $CC $ac_cv_pthreads_cflags \$@
137039: EOF
137040: CC="$abs_builddir/meta_ccld"
137041: chmod +x meta_ccld
137042: fi
137043:
137044: if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
137045: CPPFLAGS="$CPPFLAGS -DTHREAD=1"
137046: fi
137047:
137048: ZEND_EXT_TYPE="zend_extension"
137049:
137050: PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
137051:
137052:
137053:
137054:
137055: # Check whether --enable- was given.
1.1.1.3 ! misho 137056: if test "${enable_+set}" = set; then
1.1 misho 137057: enableval=$enable_;
137058: fi
137059:
137060:
137061:
1.1.1.3 ! misho 137062: { echo "$as_me:$LINENO: result: " >&5
! 137063: echo "${ECHO_T}" >&6; }
! 137064: { echo "$as_me:$LINENO: result: ${T_MD}Configuring libtool${T_ME}" >&5
! 137065: echo "${ECHO_T}${T_MD}Configuring libtool${T_ME}" >&6; }
1.1 misho 137066:
137067:
137068: LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
137069:
137070: case $host_alias in
137071: *darwin9*|*darwin10*)
137072: ac_cv_exeext=
137073: ;;
137074: esac
137075:
137076:
137077: # Check whether --enable-shared was given.
1.1.1.3 ! misho 137078: if test "${enable_shared+set}" = set; then
1.1 misho 137079: enableval=$enable_shared; p=${PACKAGE-default}
137080: case $enableval in
137081: yes) enable_shared=yes ;;
137082: no) enable_shared=no ;;
137083: *)
137084: enable_shared=no
137085: # Look at the argument we got. We use all the common list separators.
137086: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
137087: for pkg in $enableval; do
137088: IFS="$lt_save_ifs"
137089: if test "X$pkg" = "X$p"; then
137090: enable_shared=yes
137091: fi
137092: done
137093: IFS="$lt_save_ifs"
137094: ;;
137095: esac
137096: else
137097: enable_shared=yes
137098: fi
137099:
137100:
137101: # Check whether --enable-static was given.
1.1.1.3 ! misho 137102: if test "${enable_static+set}" = set; then
1.1 misho 137103: enableval=$enable_static; p=${PACKAGE-default}
137104: case $enableval in
137105: yes) enable_static=yes ;;
137106: no) enable_static=no ;;
137107: *)
137108: enable_static=no
137109: # Look at the argument we got. We use all the common list separators.
137110: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
137111: for pkg in $enableval; do
137112: IFS="$lt_save_ifs"
137113: if test "X$pkg" = "X$p"; then
137114: enable_static=yes
137115: fi
137116: done
137117: IFS="$lt_save_ifs"
137118: ;;
137119: esac
137120: else
137121: enable_static=yes
137122: fi
137123:
137124:
137125: # Check whether --enable-fast-install was given.
1.1.1.3 ! misho 137126: if test "${enable_fast_install+set}" = set; then
1.1 misho 137127: enableval=$enable_fast_install; p=${PACKAGE-default}
137128: case $enableval in
137129: yes) enable_fast_install=yes ;;
137130: no) enable_fast_install=no ;;
137131: *)
137132: enable_fast_install=no
137133: # Look at the argument we got. We use all the common list separators.
137134: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
137135: for pkg in $enableval; do
137136: IFS="$lt_save_ifs"
137137: if test "X$pkg" = "X$p"; then
137138: enable_fast_install=yes
137139: fi
137140: done
137141: IFS="$lt_save_ifs"
137142: ;;
137143: esac
137144: else
137145: enable_fast_install=yes
137146: fi
137147:
137148:
137149:
137150: # Check whether --with-gnu-ld was given.
1.1.1.3 ! misho 137151: if test "${with_gnu_ld+set}" = set; then
1.1 misho 137152: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
137153: else
137154: with_gnu_ld=no
137155: fi
137156:
137157: ac_prog=ld
137158: if test "$GCC" = yes; then
137159: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.3 ! misho 137160: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 137161: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.1 misho 137162: case $host in
137163: *-*-mingw*)
137164: # gcc leaves a trailing carriage return which upsets mingw
137165: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
137166: *)
137167: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
137168: esac
137169: case $ac_prog in
137170: # Accept absolute paths.
137171: [\\/]* | ?:[\\/]*)
137172: re_direlt='/[^/][^/]*/\.\./'
137173: # Canonicalize the pathname of ld
137174: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
137175: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
137176: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
137177: done
137178: test -z "$LD" && LD="$ac_prog"
137179: ;;
137180: "")
137181: # If it fails, then pretend we aren't using GCC.
137182: ac_prog=ld
137183: ;;
137184: *)
137185: # If it is relative, then search for the first ld in PATH.
137186: with_gnu_ld=unknown
137187: ;;
137188: esac
137189: elif test "$with_gnu_ld" = yes; then
1.1.1.3 ! misho 137190: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 137191: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.1 misho 137192: else
1.1.1.3 ! misho 137193: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 137194: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.1 misho 137195: fi
1.1.1.3 ! misho 137196: if test "${lt_cv_path_LD+set}" = set; then
! 137197: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137198: else
137199: if test -z "$LD"; then
137200: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
137201: for ac_dir in $PATH; do
137202: IFS="$lt_save_ifs"
137203: test -z "$ac_dir" && ac_dir=.
137204: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
137205: lt_cv_path_LD="$ac_dir/$ac_prog"
137206: # Check to see if the program is GNU ld. I'd rather use --version,
137207: # but apparently some variants of GNU ld only accept -v.
137208: # Break only if it was the GNU/non-GNU ld that we prefer.
137209: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
137210: *GNU* | *'with BFD'*)
137211: test "$with_gnu_ld" != no && break
137212: ;;
137213: *)
137214: test "$with_gnu_ld" != yes && break
137215: ;;
137216: esac
137217: fi
137218: done
137219: IFS="$lt_save_ifs"
137220: else
137221: lt_cv_path_LD="$LD" # Let the user override the test with a path.
137222: fi
137223: fi
137224:
137225: LD="$lt_cv_path_LD"
137226: if test -n "$LD"; then
1.1.1.3 ! misho 137227: { echo "$as_me:$LINENO: result: $LD" >&5
! 137228: echo "${ECHO_T}$LD" >&6; }
1.1 misho 137229: else
1.1.1.3 ! misho 137230: { echo "$as_me:$LINENO: result: no" >&5
! 137231: echo "${ECHO_T}no" >&6; }
1.1 misho 137232: fi
1.1.1.3 ! misho 137233: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 137234: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 137235: { (exit 1); exit 1; }; }
! 137236: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 137237: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
! 137238: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 137239: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137240: else
137241: # I'd rather use --version here, but apparently some GNU lds only accept -v.
137242: case `$LD -v 2>&1 </dev/null` in
137243: *GNU* | *'with BFD'*)
137244: lt_cv_prog_gnu_ld=yes
137245: ;;
137246: *)
137247: lt_cv_prog_gnu_ld=no
137248: ;;
137249: esac
137250: fi
1.1.1.3 ! misho 137251: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 137252: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.1 misho 137253: with_gnu_ld=$lt_cv_prog_gnu_ld
137254:
137255:
1.1.1.3 ! misho 137256: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 137257: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
! 137258: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 137259: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137260: else
137261: lt_cv_ld_reload_flag='-r'
137262: fi
1.1.1.3 ! misho 137263: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 137264: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
1.1 misho 137265: reload_flag=$lt_cv_ld_reload_flag
137266: case $reload_flag in
137267: "" | " "*) ;;
137268: *) reload_flag=" $reload_flag" ;;
137269: esac
137270: reload_cmds='$LD$reload_flag -o $output$reload_objs'
137271: case $host_os in
137272: darwin*)
137273: if test "$GCC" = yes; then
137274: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
137275: else
137276: reload_cmds='$LD$reload_flag -o $output$reload_objs'
137277: fi
137278: ;;
137279: esac
137280:
1.1.1.3 ! misho 137281: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 137282: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
! 137283: if test "${lt_cv_path_NM+set}" = set; then
! 137284: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137285: else
137286: if test -n "$NM"; then
137287: # Let the user override the test.
137288: lt_cv_path_NM="$NM"
137289: else
137290: lt_nm_to_check="${ac_tool_prefix}nm"
137291: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
137292: lt_nm_to_check="$lt_nm_to_check nm"
137293: fi
137294: for lt_tmp_nm in $lt_nm_to_check; do
137295: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
137296: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
137297: IFS="$lt_save_ifs"
137298: test -z "$ac_dir" && ac_dir=.
137299: tmp_nm="$ac_dir/$lt_tmp_nm"
137300: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
137301: # Check to see if the nm accepts a BSD-compat flag.
137302: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
137303: # nm: unknown option "B" ignored
137304: # Tru64's nm complains that /dev/null is an invalid object file
137305: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
137306: */dev/null* | *'Invalid file or object type'*)
137307: lt_cv_path_NM="$tmp_nm -B"
137308: break
137309: ;;
137310: *)
137311: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
137312: */dev/null*)
137313: lt_cv_path_NM="$tmp_nm -p"
137314: break
137315: ;;
137316: *)
137317: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
137318: continue # so that we can try to find one that supports BSD flags
137319: ;;
137320: esac
137321: ;;
137322: esac
137323: fi
137324: done
137325: IFS="$lt_save_ifs"
137326: done
137327: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
137328: fi
137329: fi
1.1.1.3 ! misho 137330: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 137331: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.1 misho 137332: NM="$lt_cv_path_NM"
137333:
1.1.1.3 ! misho 137334: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
! 137335: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
! 137336: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 137337: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137338: else
137339: lt_cv_file_magic_cmd='$MAGIC_CMD'
137340: lt_cv_file_magic_test_file=
137341: lt_cv_deplibs_check_method='unknown'
137342: # Need to set the preceding variable on all platforms that support
137343: # interlibrary dependencies.
137344: # 'none' -- dependencies not supported.
137345: # `unknown' -- same as none, but documents that we really don't know.
137346: # 'pass_all' -- all dependencies passed with no checks.
137347: # 'test_compile' -- check by making test program.
137348: # 'file_magic [[regex]]' -- check by looking for files in library path
137349: # which responds to the $file_magic_cmd with a given extended regex.
137350: # If you have `file' or equivalent on your system and you're not sure
137351: # whether `pass_all' will *always* work, you probably want this one.
137352:
137353: case $host_os in
137354: aix[4-9]*)
137355: lt_cv_deplibs_check_method=pass_all
137356: ;;
137357:
137358: beos*)
137359: lt_cv_deplibs_check_method=pass_all
137360: ;;
137361:
137362: bsdi[45]*)
137363: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
137364: lt_cv_file_magic_cmd='/usr/bin/file -L'
137365: lt_cv_file_magic_test_file=/shlib/libc.so
137366: ;;
137367:
137368: cygwin*)
137369: # func_win32_libid is a shell function defined in ltmain.sh
137370: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
137371: lt_cv_file_magic_cmd='func_win32_libid'
137372: ;;
137373:
137374: mingw* | pw32*)
137375: # Base MSYS/MinGW do not provide the 'file' command needed by
137376: # func_win32_libid shell function, so use a weaker test based on 'objdump',
137377: # unless we find 'file', for example because we are cross-compiling.
137378: if ( file / ) >/dev/null 2>&1; then
137379: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
137380: lt_cv_file_magic_cmd='func_win32_libid'
137381: else
137382: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
137383: lt_cv_file_magic_cmd='$OBJDUMP -f'
137384: fi
137385: ;;
137386:
137387: darwin* | rhapsody*)
137388: lt_cv_deplibs_check_method=pass_all
137389: ;;
137390:
137391: freebsd* | dragonfly*)
137392: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
137393: case $host_cpu in
137394: i*86 )
137395: # Not sure whether the presence of OpenBSD here was a mistake.
137396: # Let's accept both of them until this is cleared up.
137397: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
137398: lt_cv_file_magic_cmd=/usr/bin/file
137399: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
137400: ;;
137401: esac
137402: else
137403: lt_cv_deplibs_check_method=pass_all
137404: fi
137405: ;;
137406:
137407: gnu*)
137408: lt_cv_deplibs_check_method=pass_all
137409: ;;
137410:
137411: hpux10.20* | hpux11*)
137412: lt_cv_file_magic_cmd=/usr/bin/file
137413: case $host_cpu in
137414: ia64*)
137415: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
137416: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
137417: ;;
137418: hppa*64*)
137419: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
137420: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
137421: ;;
137422: *)
137423: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
137424: lt_cv_file_magic_test_file=/usr/lib/libc.sl
137425: ;;
137426: esac
137427: ;;
137428:
137429: interix[3-9]*)
137430: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
137431: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
137432: ;;
137433:
137434: irix5* | irix6* | nonstopux*)
137435: case $LD in
137436: *-32|*"-32 ") libmagic=32-bit;;
137437: *-n32|*"-n32 ") libmagic=N32;;
137438: *-64|*"-64 ") libmagic=64-bit;;
137439: *) libmagic=never-match;;
137440: esac
137441: lt_cv_deplibs_check_method=pass_all
137442: ;;
137443:
137444: # This must be Linux ELF.
137445: linux* | k*bsd*-gnu)
137446: lt_cv_deplibs_check_method=pass_all
137447: ;;
137448:
137449: netbsd*)
137450: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
137451: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
137452: else
137453: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
137454: fi
137455: ;;
137456:
137457: newos6*)
137458: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
137459: lt_cv_file_magic_cmd=/usr/bin/file
137460: lt_cv_file_magic_test_file=/usr/lib/libnls.so
137461: ;;
137462:
137463: nto-qnx*)
137464: lt_cv_deplibs_check_method=unknown
137465: ;;
137466:
137467: openbsd*)
137468: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
137469: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
137470: else
137471: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
137472: fi
137473: ;;
137474:
137475: osf3* | osf4* | osf5*)
137476: lt_cv_deplibs_check_method=pass_all
137477: ;;
137478:
137479: rdos*)
137480: lt_cv_deplibs_check_method=pass_all
137481: ;;
137482:
137483: solaris*)
137484: lt_cv_deplibs_check_method=pass_all
137485: ;;
137486:
137487: sysv4 | sysv4.3*)
137488: case $host_vendor in
137489: motorola)
137490: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
137491: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
137492: ;;
137493: ncr)
137494: lt_cv_deplibs_check_method=pass_all
137495: ;;
137496: sequent)
137497: lt_cv_file_magic_cmd='/bin/file'
137498: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
137499: ;;
137500: sni)
137501: lt_cv_file_magic_cmd='/bin/file'
137502: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
137503: lt_cv_file_magic_test_file=/lib/libc.so
137504: ;;
137505: siemens)
137506: lt_cv_deplibs_check_method=pass_all
137507: ;;
137508: pc)
137509: lt_cv_deplibs_check_method=pass_all
137510: ;;
137511: esac
137512: ;;
137513:
137514: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
137515: lt_cv_deplibs_check_method=pass_all
137516: ;;
137517: esac
137518:
137519: fi
1.1.1.3 ! misho 137520: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 137521: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.1 misho 137522: file_magic_cmd=$lt_cv_file_magic_cmd
137523: deplibs_check_method=$lt_cv_deplibs_check_method
137524: test -z "$deplibs_check_method" && deplibs_check_method=unknown
137525:
137526:
137527:
137528:
137529: # If no C compiler was specified, use CC.
137530: LTCC=${LTCC-"$CC"}
137531:
137532: # If no C compiler flags were specified, use CFLAGS.
137533: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
137534:
137535: # Allow CC to be a program name with arguments.
137536: compiler=$CC
137537:
137538: #AC_ARG_ENABLE([libtool-lock],
137539: #[ --disable-libtool-lock avoid locking (might break parallel builds)])
137540: #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
137541:
137542: # Some flags need to be propagated to the compiler or linker for good
137543: # libtool support.
137544: case $host in
137545: ia64-*-hpux*)
137546: # Find out which ABI we are using.
137547: echo 'int i;' > conftest.$ac_ext
1.1.1.3 ! misho 137548: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 137549: (eval $ac_compile) 2>&5
137550: ac_status=$?
1.1.1.3 ! misho 137551: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137552: (exit $ac_status); }; then
1.1 misho 137553: case `/usr/bin/file conftest.$ac_objext` in
137554: *ELF-32*)
137555: HPUX_IA64_MODE="32"
137556: ;;
137557: *ELF-64*)
137558: HPUX_IA64_MODE="64"
137559: ;;
137560: esac
137561: fi
137562: rm -rf conftest*
137563: ;;
137564: *-*-irix6*)
137565: # Find out which ABI we are using.
1.1.1.3 ! misho 137566: echo '#line 137566 "configure"' > conftest.$ac_ext
! 137567: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 137568: (eval $ac_compile) 2>&5
137569: ac_status=$?
1.1.1.3 ! misho 137570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137571: (exit $ac_status); }; then
1.1 misho 137572: if test "$lt_cv_prog_gnu_ld" = yes; then
137573: case `/usr/bin/file conftest.$ac_objext` in
137574: *32-bit*)
137575: LD="${LD-ld} -melf32bsmip"
137576: ;;
137577: *N32*)
137578: LD="${LD-ld} -melf32bmipn32"
137579: ;;
137580: *64-bit*)
137581: LD="${LD-ld} -melf64bmip"
137582: ;;
137583: esac
137584: else
137585: case `/usr/bin/file conftest.$ac_objext` in
137586: *32-bit*)
137587: LD="${LD-ld} -32"
137588: ;;
137589: *N32*)
137590: LD="${LD-ld} -n32"
137591: ;;
137592: *64-bit*)
137593: LD="${LD-ld} -64"
137594: ;;
137595: esac
137596: fi
137597: fi
137598: rm -rf conftest*
137599: ;;
137600:
137601: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
137602: s390*-*linux*|sparc*-*linux*)
137603: # Find out which ABI we are using.
137604: echo 'int i;' > conftest.$ac_ext
1.1.1.3 ! misho 137605: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 137606: (eval $ac_compile) 2>&5
137607: ac_status=$?
1.1.1.3 ! misho 137608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137609: (exit $ac_status); }; then
1.1 misho 137610: case `/usr/bin/file conftest.o` in
137611: *32-bit*)
137612: case $host in
137613: x86_64-*kfreebsd*-gnu)
137614: LD="${LD-ld} -m elf_i386_fbsd"
137615: ;;
137616: x86_64-*linux*)
137617: LD="${LD-ld} -m elf_i386"
137618: ;;
137619: ppc64-*linux*|powerpc64-*linux*)
137620: LD="${LD-ld} -m elf32ppclinux"
137621: ;;
137622: s390x-*linux*)
137623: LD="${LD-ld} -m elf_s390"
137624: ;;
137625: sparc64-*linux*)
137626: LD="${LD-ld} -m elf32_sparc"
137627: ;;
137628: esac
137629: ;;
137630: *64-bit*)
137631: case $host in
137632: x86_64-*kfreebsd*-gnu)
137633: LD="${LD-ld} -m elf_x86_64_fbsd"
137634: ;;
137635: x86_64-*linux*)
137636: LD="${LD-ld} -m elf_x86_64"
137637: ;;
137638: ppc*-*linux*|powerpc*-*linux*)
137639: LD="${LD-ld} -m elf64ppc"
137640: ;;
137641: s390*-*linux*)
137642: LD="${LD-ld} -m elf64_s390"
137643: ;;
137644: sparc*-*linux*)
137645: LD="${LD-ld} -m elf64_sparc"
137646: ;;
137647: esac
137648: ;;
137649: esac
137650: fi
137651: rm -rf conftest*
137652: ;;
137653:
137654: *-*-sco3.2v5*)
137655: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
137656: SAVE_CFLAGS="$CFLAGS"
137657: CFLAGS="$CFLAGS -belf"
1.1.1.3 ! misho 137658: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 137659: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
! 137660: if test "${lt_cv_cc_needs_belf+set}" = set; then
! 137661: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137662: else
137663:
137664: ac_ext=c
137665: ac_cpp='$CPP $CPPFLAGS'
137666: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
137667: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
137668: ac_compiler_gnu=$ac_cv_c_compiler_gnu
137669:
1.1.1.3 ! misho 137670: cat >conftest.$ac_ext <<_ACEOF
! 137671: /* confdefs.h. */
! 137672: _ACEOF
! 137673: cat confdefs.h >>conftest.$ac_ext
! 137674: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 137675: /* end confdefs.h. */
137676:
137677: int
137678: main ()
137679: {
137680:
137681: ;
137682: return 0;
137683: }
137684: _ACEOF
1.1.1.3 ! misho 137685: rm -f conftest.$ac_objext conftest$ac_exeext
! 137686: if { (ac_try="$ac_link"
! 137687: case "(($ac_try" in
! 137688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 137689: *) ac_try_echo=$ac_try;;
! 137690: esac
! 137691: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 137692: (eval "$ac_link") 2>conftest.er1
! 137693: ac_status=$?
! 137694: grep -v '^ *+' conftest.er1 >conftest.err
! 137695: rm -f conftest.er1
! 137696: cat conftest.err >&5
! 137697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137698: (exit $ac_status); } && {
! 137699: test -z "$ac_c_werror_flag" ||
! 137700: test ! -s conftest.err
! 137701: } && test -s conftest$ac_exeext &&
! 137702: $as_test_x conftest$ac_exeext; then
1.1 misho 137703: lt_cv_cc_needs_belf=yes
137704: else
1.1.1.3 ! misho 137705: echo "$as_me: failed program was:" >&5
! 137706: sed 's/^/| /' conftest.$ac_ext >&5
! 137707:
! 137708: lt_cv_cc_needs_belf=no
1.1 misho 137709: fi
1.1.1.3 ! misho 137710:
! 137711: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 137712: conftest$ac_exeext conftest.$ac_ext
1.1 misho 137713: ac_ext=c
137714: ac_cpp='$CPP $CPPFLAGS'
137715: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
137716: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
137717: ac_compiler_gnu=$ac_cv_c_compiler_gnu
137718:
137719: fi
1.1.1.3 ! misho 137720: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 137721: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
1.1 misho 137722: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
137723: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
137724: CFLAGS="$SAVE_CFLAGS"
137725: fi
137726: ;;
137727: sparc*-*solaris*)
137728: # Find out which ABI we are using.
137729: echo 'int i;' > conftest.$ac_ext
1.1.1.3 ! misho 137730: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 137731: (eval $ac_compile) 2>&5
137732: ac_status=$?
1.1.1.3 ! misho 137733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137734: (exit $ac_status); }; then
1.1 misho 137735: case `/usr/bin/file conftest.o` in
137736: *64-bit*)
137737: case $lt_cv_prog_gnu_ld in
137738: yes*) LD="${LD-ld} -m elf64_sparc" ;;
137739: *)
137740: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
137741: LD="${LD-ld} -64"
137742: fi
137743: ;;
137744: esac
137745: ;;
137746: esac
137747: fi
137748: rm -rf conftest*
137749: ;;
137750:
137751:
137752: esac
137753:
137754: need_locks="$enable_libtool_lock"
137755:
137756:
137757:
137758:
137759: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
137760: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
137761: (test "X$CXX" != "Xg++"))) ; then
137762: ac_ext=cpp
137763: ac_cpp='$CXXCPP $CPPFLAGS'
137764: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
137765: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
137766: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.1.3 ! misho 137767: { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 137768: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
1.1 misho 137769: if test -z "$CXXCPP"; then
1.1.1.3 ! misho 137770: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 137771: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137772: else
137773: # Double quotes because CXXCPP needs to be expanded
137774: for CXXCPP in "$CXX -E" "/lib/cpp"
137775: do
137776: ac_preproc_ok=false
137777: for ac_cxx_preproc_warn_flag in '' yes
137778: do
137779: # Use a header file that comes with gcc, so configuring glibc
137780: # with a fresh cross-compiler works.
137781: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
137782: # <limits.h> exists even on freestanding compilers.
137783: # On the NeXT, cc -E runs the code through the compiler's parser,
137784: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 137785: cat >conftest.$ac_ext <<_ACEOF
! 137786: /* confdefs.h. */
! 137787: _ACEOF
! 137788: cat confdefs.h >>conftest.$ac_ext
! 137789: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 137790: /* end confdefs.h. */
137791: #ifdef __STDC__
137792: # include <limits.h>
137793: #else
137794: # include <assert.h>
137795: #endif
137796: Syntax error
137797: _ACEOF
1.1.1.3 ! misho 137798: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 137799: case "(($ac_try" in
! 137800: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 137801: *) ac_try_echo=$ac_try;;
! 137802: esac
! 137803: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 137804: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 137805: ac_status=$?
! 137806: grep -v '^ *+' conftest.er1 >conftest.err
! 137807: rm -f conftest.er1
! 137808: cat conftest.err >&5
! 137809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137810: (exit $ac_status); } >/dev/null && {
! 137811: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 137812: test ! -s conftest.err
! 137813: }; then
! 137814: :
1.1 misho 137815: else
1.1.1.3 ! misho 137816: echo "$as_me: failed program was:" >&5
! 137817: sed 's/^/| /' conftest.$ac_ext >&5
! 137818:
1.1 misho 137819: # Broken: fails on valid input.
137820: continue
137821: fi
1.1.1.3 ! misho 137822:
! 137823: rm -f conftest.err conftest.$ac_ext
1.1 misho 137824:
137825: # OK, works on sane cases. Now check whether nonexistent headers
137826: # can be detected and how.
1.1.1.3 ! misho 137827: cat >conftest.$ac_ext <<_ACEOF
! 137828: /* confdefs.h. */
! 137829: _ACEOF
! 137830: cat confdefs.h >>conftest.$ac_ext
! 137831: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 137832: /* end confdefs.h. */
137833: #include <ac_nonexistent.h>
137834: _ACEOF
1.1.1.3 ! misho 137835: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 137836: case "(($ac_try" in
! 137837: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 137838: *) ac_try_echo=$ac_try;;
! 137839: esac
! 137840: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 137841: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 137842: ac_status=$?
! 137843: grep -v '^ *+' conftest.er1 >conftest.err
! 137844: rm -f conftest.er1
! 137845: cat conftest.err >&5
! 137846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137847: (exit $ac_status); } >/dev/null && {
! 137848: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 137849: test ! -s conftest.err
! 137850: }; then
1.1 misho 137851: # Broken: success on invalid input.
137852: continue
137853: else
1.1.1.3 ! misho 137854: echo "$as_me: failed program was:" >&5
! 137855: sed 's/^/| /' conftest.$ac_ext >&5
! 137856:
1.1 misho 137857: # Passes both tests.
137858: ac_preproc_ok=:
137859: break
137860: fi
1.1.1.3 ! misho 137861:
! 137862: rm -f conftest.err conftest.$ac_ext
1.1 misho 137863:
137864: done
137865: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 137866: rm -f conftest.err conftest.$ac_ext
! 137867: if $ac_preproc_ok; then
1.1 misho 137868: break
137869: fi
137870:
137871: done
137872: ac_cv_prog_CXXCPP=$CXXCPP
137873:
137874: fi
137875: CXXCPP=$ac_cv_prog_CXXCPP
137876: else
137877: ac_cv_prog_CXXCPP=$CXXCPP
137878: fi
1.1.1.3 ! misho 137879: { echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 137880: echo "${ECHO_T}$CXXCPP" >&6; }
1.1 misho 137881: ac_preproc_ok=false
137882: for ac_cxx_preproc_warn_flag in '' yes
137883: do
137884: # Use a header file that comes with gcc, so configuring glibc
137885: # with a fresh cross-compiler works.
137886: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
137887: # <limits.h> exists even on freestanding compilers.
137888: # On the NeXT, cc -E runs the code through the compiler's parser,
137889: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.3 ! misho 137890: cat >conftest.$ac_ext <<_ACEOF
! 137891: /* confdefs.h. */
! 137892: _ACEOF
! 137893: cat confdefs.h >>conftest.$ac_ext
! 137894: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 137895: /* end confdefs.h. */
137896: #ifdef __STDC__
137897: # include <limits.h>
137898: #else
137899: # include <assert.h>
137900: #endif
137901: Syntax error
137902: _ACEOF
1.1.1.3 ! misho 137903: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 137904: case "(($ac_try" in
! 137905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 137906: *) ac_try_echo=$ac_try;;
! 137907: esac
! 137908: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 137909: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 137910: ac_status=$?
! 137911: grep -v '^ *+' conftest.er1 >conftest.err
! 137912: rm -f conftest.er1
! 137913: cat conftest.err >&5
! 137914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137915: (exit $ac_status); } >/dev/null && {
! 137916: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 137917: test ! -s conftest.err
! 137918: }; then
! 137919: :
1.1 misho 137920: else
1.1.1.3 ! misho 137921: echo "$as_me: failed program was:" >&5
! 137922: sed 's/^/| /' conftest.$ac_ext >&5
! 137923:
1.1 misho 137924: # Broken: fails on valid input.
137925: continue
137926: fi
1.1.1.3 ! misho 137927:
! 137928: rm -f conftest.err conftest.$ac_ext
1.1 misho 137929:
137930: # OK, works on sane cases. Now check whether nonexistent headers
137931: # can be detected and how.
1.1.1.3 ! misho 137932: cat >conftest.$ac_ext <<_ACEOF
! 137933: /* confdefs.h. */
! 137934: _ACEOF
! 137935: cat confdefs.h >>conftest.$ac_ext
! 137936: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 137937: /* end confdefs.h. */
137938: #include <ac_nonexistent.h>
137939: _ACEOF
1.1.1.3 ! misho 137940: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 137941: case "(($ac_try" in
! 137942: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 137943: *) ac_try_echo=$ac_try;;
! 137944: esac
! 137945: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 137946: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 137947: ac_status=$?
! 137948: grep -v '^ *+' conftest.er1 >conftest.err
! 137949: rm -f conftest.er1
! 137950: cat conftest.err >&5
! 137951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 137952: (exit $ac_status); } >/dev/null && {
! 137953: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 137954: test ! -s conftest.err
! 137955: }; then
1.1 misho 137956: # Broken: success on invalid input.
137957: continue
137958: else
1.1.1.3 ! misho 137959: echo "$as_me: failed program was:" >&5
! 137960: sed 's/^/| /' conftest.$ac_ext >&5
! 137961:
1.1 misho 137962: # Passes both tests.
137963: ac_preproc_ok=:
137964: break
137965: fi
1.1.1.3 ! misho 137966:
! 137967: rm -f conftest.err conftest.$ac_ext
1.1 misho 137968:
137969: done
137970: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.3 ! misho 137971: rm -f conftest.err conftest.$ac_ext
! 137972: if $ac_preproc_ok; then
! 137973: :
1.1 misho 137974: else
1.1.1.3 ! misho 137975: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 137976: See \`config.log' for more details." >&5
! 137977: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 137978: See \`config.log' for more details." >&2;}
! 137979: { (exit 1); exit 1; }; }
1.1 misho 137980: fi
137981:
137982: ac_ext=cpp
137983: ac_cpp='$CXXCPP $CPPFLAGS'
137984: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
137985: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
137986: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
137987:
137988: fi
137989:
137990:
137991: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
137992: # find the maximum length of command line arguments
1.1.1.3 ! misho 137993: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 137994: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
! 137995: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 137996: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 137997: else
137998: i=0
137999: teststring="ABCD"
138000:
138001: case $build_os in
138002: msdosdjgpp*)
138003: # On DJGPP, this test can blow up pretty badly due to problems in libc
138004: # (any single argument exceeding 2000 bytes causes a buffer overrun
138005: # during glob expansion). Even if it were fixed, the result of this
138006: # check would be larger than it should be.
138007: lt_cv_sys_max_cmd_len=12288; # 12K is about right
138008: ;;
138009:
138010: gnu*)
138011: # Under GNU Hurd, this test is not required because there is
138012: # no limit to the length of command line arguments.
138013: # Libtool will interpret -1 as no limit whatsoever
138014: lt_cv_sys_max_cmd_len=-1;
138015: ;;
138016:
138017: cygwin* | mingw*)
138018: # On Win9x/ME, this test blows up -- it succeeds, but takes
138019: # about 5 minutes as the teststring grows exponentially.
138020: # Worse, since 9x/ME are not pre-emptively multitasking,
138021: # you end up with a "frozen" computer, even though with patience
138022: # the test eventually succeeds (with a max line length of 256k).
138023: # Instead, let's just punt: use the minimum linelength reported by
138024: # all of the supported platforms: 8192 (on NT/2K/XP).
138025: lt_cv_sys_max_cmd_len=8192;
138026: ;;
138027:
138028: amigaos*)
138029: # On AmigaOS with pdksh, this test takes hours, literally.
138030: # So we just punt and use a minimum line length of 8192.
138031: lt_cv_sys_max_cmd_len=8192;
138032: ;;
138033:
138034: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
138035: # This has been around since 386BSD, at least. Likely further.
138036: if test -x /sbin/sysctl; then
138037: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
138038: elif test -x /usr/sbin/sysctl; then
138039: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
138040: else
138041: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
138042: fi
138043: # And add a safety zone
138044: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
138045: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
138046: ;;
138047:
138048: interix*)
138049: # We know the value 262144 and hardcode it with a safety zone (like BSD)
138050: lt_cv_sys_max_cmd_len=196608
138051: ;;
138052:
138053: osf*)
138054: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
138055: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
138056: # nice to cause kernel panics so lets avoid the loop below.
138057: # First set a reasonable default.
138058: lt_cv_sys_max_cmd_len=16384
138059: #
138060: if test -x /sbin/sysconfig; then
138061: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
138062: *1*) lt_cv_sys_max_cmd_len=-1 ;;
138063: esac
138064: fi
138065: ;;
138066: sco3.2v5*)
138067: lt_cv_sys_max_cmd_len=102400
138068: ;;
138069: sysv5* | sco5v6* | sysv4.2uw2*)
138070: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
138071: if test -n "$kargmax"; then
138072: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
138073: else
138074: lt_cv_sys_max_cmd_len=32768
138075: fi
138076: ;;
138077: *)
138078: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
138079: if test -n "$lt_cv_sys_max_cmd_len"; then
138080: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
138081: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
138082: else
138083: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
138084: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
138085: = "XX$teststring") >/dev/null 2>&1 &&
138086: new_result=`expr "X$teststring" : ".*" 2>&1` &&
138087: lt_cv_sys_max_cmd_len=$new_result &&
138088: test $i != 17 # 1/2 MB should be enough
138089: do
138090: i=`expr $i + 1`
138091: teststring=$teststring$teststring
138092: done
138093: teststring=
138094: # Add a significant safety factor because C++ compilers can tack on massive
138095: # amounts of additional arguments before passing them to the linker.
138096: # It appears as though 1/2 is a usable value.
138097: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
138098: fi
138099: ;;
138100: esac
138101:
138102: fi
138103:
138104: if test -n $lt_cv_sys_max_cmd_len ; then
1.1.1.3 ! misho 138105: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 138106: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
1.1 misho 138107: else
1.1.1.3 ! misho 138108: { echo "$as_me:$LINENO: result: none" >&5
! 138109: echo "${ECHO_T}none" >&6; }
1.1 misho 138110: fi
138111:
138112:
138113:
138114:
138115:
138116: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.1.3 ! misho 138117: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 138118: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
! 138119: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 138120: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138121: else
138122:
138123: # These are sane defaults that work on at least a few old systems.
138124: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
138125:
138126: # Character class describing NM global symbol codes.
138127: symcode='[BCDEGRST]'
138128:
138129: # Regexp to match symbols that can be accessed directly from C.
138130: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
138131:
138132: # Transform an extracted symbol line into a proper C declaration
138133: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
138134:
138135: # Transform an extracted symbol line into symbol name and symbol address
138136: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
138137:
138138: # Define system-specific variables.
138139: case $host_os in
138140: aix*)
138141: symcode='[BCDT]'
138142: ;;
138143: cygwin* | mingw* | pw32*)
138144: symcode='[ABCDGISTW]'
138145: ;;
138146: hpux*) # Its linker distinguishes data from code symbols
138147: if test "$host_cpu" = ia64; then
138148: symcode='[ABCDEGRST]'
138149: fi
138150: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
138151: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
138152: ;;
138153: linux* | k*bsd*-gnu)
138154: if test "$host_cpu" = ia64; then
138155: symcode='[ABCDGIRSTW]'
138156: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
138157: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
138158: fi
138159: ;;
138160: irix* | nonstopux*)
138161: symcode='[BCDEGRST]'
138162: ;;
138163: osf*)
138164: symcode='[BCDEGQRST]'
138165: ;;
138166: solaris*)
138167: symcode='[BDRT]'
138168: ;;
138169: sco3.2v5*)
138170: symcode='[DT]'
138171: ;;
138172: sysv4.2uw2*)
138173: symcode='[DT]'
138174: ;;
138175: sysv5* | sco5v6* | unixware* | OpenUNIX*)
138176: symcode='[ABDT]'
138177: ;;
138178: sysv4)
138179: symcode='[DFNSTU]'
138180: ;;
138181: esac
138182:
138183: # Handle CRLF in mingw tool chain
138184: opt_cr=
138185: case $build_os in
138186: mingw*)
138187: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
138188: ;;
138189: esac
138190:
138191: # If we're using GNU nm, then use its standard symbol codes.
138192: case `$NM -V 2>&1` in
138193: *GNU* | *'with BFD'*)
138194: symcode='[ABCDGIRSTW]' ;;
138195: esac
138196:
138197: # Try without a prefix undercore, then with it.
138198: for ac_symprfx in "" "_"; do
138199:
138200: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
138201: symxfrm="\\1 $ac_symprfx\\2 \\2"
138202:
138203: # Write the raw and C identifiers.
138204: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
138205:
138206: # Check to see that the pipe works correctly.
138207: pipe_works=no
138208:
138209: rm -f conftest*
138210: cat > conftest.$ac_ext <<EOF
138211: #ifdef __cplusplus
138212: extern "C" {
138213: #endif
138214: char nm_test_var;
138215: void nm_test_func(){}
138216: #ifdef __cplusplus
138217: }
138218: #endif
138219: int main(){nm_test_var='a';nm_test_func();return(0);}
138220: EOF
138221:
1.1.1.3 ! misho 138222: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 138223: (eval $ac_compile) 2>&5
138224: ac_status=$?
1.1.1.3 ! misho 138225: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 138226: (exit $ac_status); }; then
1.1 misho 138227: # Now try to grab the symbols.
138228: nlist=conftest.nm
1.1.1.3 ! misho 138229: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
1.1 misho 138230: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
138231: ac_status=$?
1.1.1.3 ! misho 138232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 138233: (exit $ac_status); } && test -s "$nlist"; then
1.1 misho 138234: # Try sorting and uniquifying the output.
138235: if sort "$nlist" | uniq > "$nlist"T; then
138236: mv -f "$nlist"T "$nlist"
138237: else
138238: rm -f "$nlist"T
138239: fi
138240:
138241: # Make sure that we snagged all the symbols we need.
138242: if grep ' nm_test_var$' "$nlist" >/dev/null; then
138243: if grep ' nm_test_func$' "$nlist" >/dev/null; then
138244: cat <<EOF > conftest.$ac_ext
138245: #ifdef __cplusplus
138246: extern "C" {
138247: #endif
138248:
138249: EOF
138250: # Now generate the symbol file.
138251: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
138252:
138253: cat <<EOF >> conftest.$ac_ext
138254: #if defined (__STDC__) && __STDC__
138255: # define lt_ptr_t void *
138256: #else
138257: # define lt_ptr_t char *
138258: # define const
138259: #endif
138260:
138261: /* The mapping between symbol names and symbols. */
138262: const struct {
138263: const char *name;
138264: lt_ptr_t address;
138265: }
138266: lt_preloaded_symbols[] =
138267: {
138268: EOF
138269: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
138270: cat <<\EOF >> conftest.$ac_ext
138271: {0, (lt_ptr_t) 0}
138272: };
138273:
138274: #ifdef __cplusplus
138275: }
138276: #endif
138277: EOF
138278: # Now try linking the two files.
138279: mv conftest.$ac_objext conftstm.$ac_objext
138280: lt_save_LIBS="$LIBS"
138281: lt_save_CFLAGS="$CFLAGS"
138282: LIBS="conftstm.$ac_objext"
138283: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.1.1.3 ! misho 138284: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 138285: (eval $ac_link) 2>&5
138286: ac_status=$?
1.1.1.3 ! misho 138287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 138288: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.1 misho 138289: pipe_works=yes
138290: fi
138291: LIBS="$lt_save_LIBS"
138292: CFLAGS="$lt_save_CFLAGS"
138293: else
138294: echo "cannot find nm_test_func in $nlist" >&5
138295: fi
138296: else
138297: echo "cannot find nm_test_var in $nlist" >&5
138298: fi
138299: else
138300: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
138301: fi
138302: else
138303: echo "$progname: failed program was:" >&5
138304: cat conftest.$ac_ext >&5
138305: fi
138306: rm -rf conftest* conftst*
138307:
138308: # Do not use the global_symbol_pipe unless it works.
138309: if test "$pipe_works" = yes; then
138310: break
138311: else
138312: lt_cv_sys_global_symbol_pipe=
138313: fi
138314: done
138315:
138316: fi
138317:
138318: if test -z "$lt_cv_sys_global_symbol_pipe"; then
138319: lt_cv_sys_global_symbol_to_cdecl=
138320: fi
138321: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.1.3 ! misho 138322: { echo "$as_me:$LINENO: result: failed" >&5
! 138323: echo "${ECHO_T}failed" >&6; }
1.1 misho 138324: else
1.1.1.3 ! misho 138325: { echo "$as_me:$LINENO: result: ok" >&5
! 138326: echo "${ECHO_T}ok" >&6; }
1.1 misho 138327: fi
138328:
1.1.1.3 ! misho 138329: { echo "$as_me:$LINENO: checking for objdir" >&5
! 138330: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
! 138331: if test "${lt_cv_objdir+set}" = set; then
! 138332: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138333: else
138334: rm -f .libs 2>/dev/null
138335: mkdir .libs 2>/dev/null
138336: if test -d .libs; then
138337: lt_cv_objdir=.libs
138338: else
138339: # MS-DOS does not allow filenames that begin with a dot.
138340: lt_cv_objdir=_libs
138341: fi
138342: rmdir .libs 2>/dev/null
138343: fi
1.1.1.3 ! misho 138344: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 138345: echo "${ECHO_T}$lt_cv_objdir" >&6; }
1.1 misho 138346: objdir=$lt_cv_objdir
138347:
138348:
138349:
138350:
138351:
138352: case $host_os in
138353: aix3*)
138354: # AIX sometimes has problems with the GCC collect2 program. For some
138355: # reason, if we set the COLLECT_NAMES environment variable, the problems
138356: # vanish in a puff of smoke.
138357: if test "X${COLLECT_NAMES+set}" != Xset; then
138358: COLLECT_NAMES=
138359: export COLLECT_NAMES
138360: fi
138361: ;;
138362: esac
138363:
138364: # Sed substitution that helps us do robust quoting. It backslashifies
138365: # metacharacters that are still active within double-quoted strings.
138366: Xsed='sed -e 1s/^X//'
138367: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
138368:
138369: # Same as above, but do not quote variable references.
138370: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
138371:
138372: # Sed substitution to delay expansion of an escaped shell variable in a
138373: # double_quote_subst'ed string.
138374: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
138375:
138376: # Sed substitution to avoid accidental globbing in evaled expressions
138377: no_glob_subst='s/\*/\\\*/g'
138378:
138379: # Constants:
138380: rm="rm -f"
138381:
138382: # Global variables:
138383: default_ofile=libtool
138384: can_build_shared=yes
138385:
138386: # All known linkers require a `.a' archive for static linking (except MSVC,
138387: # which needs '.lib').
138388: libext=a
138389: ltmain="$ac_aux_dir/ltmain.sh"
138390: ofile="$default_ofile"
138391: with_gnu_ld="$lt_cv_prog_gnu_ld"
138392:
138393: if test -n "$ac_tool_prefix"; then
138394: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
138395: set dummy ${ac_tool_prefix}ar; ac_word=$2
1.1.1.3 ! misho 138396: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138397: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138398: if test "${ac_cv_prog_AR+set}" = set; then
! 138399: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138400: else
138401: if test -n "$AR"; then
138402: ac_cv_prog_AR="$AR" # Let the user override the test.
138403: else
138404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138405: for as_dir in $PATH
138406: do
138407: IFS=$as_save_IFS
138408: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138409: for ac_exec_ext in '' $ac_executable_extensions; do
! 138410: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138411: ac_cv_prog_AR="${ac_tool_prefix}ar"
1.1.1.3 ! misho 138412: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138413: break 2
138414: fi
138415: done
1.1.1.3 ! misho 138416: done
1.1 misho 138417: IFS=$as_save_IFS
138418:
138419: fi
138420: fi
138421: AR=$ac_cv_prog_AR
138422: if test -n "$AR"; then
1.1.1.3 ! misho 138423: { echo "$as_me:$LINENO: result: $AR" >&5
! 138424: echo "${ECHO_T}$AR" >&6; }
1.1 misho 138425: else
1.1.1.3 ! misho 138426: { echo "$as_me:$LINENO: result: no" >&5
! 138427: echo "${ECHO_T}no" >&6; }
1.1 misho 138428: fi
138429:
138430:
138431: fi
138432: if test -z "$ac_cv_prog_AR"; then
138433: ac_ct_AR=$AR
138434: # Extract the first word of "ar", so it can be a program name with args.
138435: set dummy ar; ac_word=$2
1.1.1.3 ! misho 138436: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138437: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138438: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 138439: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138440: else
138441: if test -n "$ac_ct_AR"; then
138442: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
138443: else
138444: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138445: for as_dir in $PATH
138446: do
138447: IFS=$as_save_IFS
138448: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138449: for ac_exec_ext in '' $ac_executable_extensions; do
! 138450: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138451: ac_cv_prog_ac_ct_AR="ar"
1.1.1.3 ! misho 138452: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138453: break 2
138454: fi
138455: done
1.1.1.3 ! misho 138456: done
1.1 misho 138457: IFS=$as_save_IFS
138458:
138459: fi
138460: fi
138461: ac_ct_AR=$ac_cv_prog_ac_ct_AR
138462: if test -n "$ac_ct_AR"; then
1.1.1.3 ! misho 138463: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 138464: echo "${ECHO_T}$ac_ct_AR" >&6; }
1.1 misho 138465: else
1.1.1.3 ! misho 138466: { echo "$as_me:$LINENO: result: no" >&5
! 138467: echo "${ECHO_T}no" >&6; }
1.1 misho 138468: fi
138469:
138470: if test "x$ac_ct_AR" = x; then
138471: AR="false"
138472: else
138473: case $cross_compiling:$ac_tool_warned in
138474: yes:)
1.1.1.3 ! misho 138475: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 138476: whose name does not start with the host triplet. If you think this
! 138477: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 138478: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 138479: whose name does not start with the host triplet. If you think this
! 138480: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 138481: ac_tool_warned=yes ;;
138482: esac
138483: AR=$ac_ct_AR
138484: fi
138485: else
138486: AR="$ac_cv_prog_AR"
138487: fi
138488:
138489: if test -n "$ac_tool_prefix"; then
138490: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
138491: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.3 ! misho 138492: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138493: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138494: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 138495: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138496: else
138497: if test -n "$RANLIB"; then
138498: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
138499: else
138500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138501: for as_dir in $PATH
138502: do
138503: IFS=$as_save_IFS
138504: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138505: for ac_exec_ext in '' $ac_executable_extensions; do
! 138506: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138507: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.1.3 ! misho 138508: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138509: break 2
138510: fi
138511: done
1.1.1.3 ! misho 138512: done
1.1 misho 138513: IFS=$as_save_IFS
138514:
138515: fi
138516: fi
138517: RANLIB=$ac_cv_prog_RANLIB
138518: if test -n "$RANLIB"; then
1.1.1.3 ! misho 138519: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 138520: echo "${ECHO_T}$RANLIB" >&6; }
1.1 misho 138521: else
1.1.1.3 ! misho 138522: { echo "$as_me:$LINENO: result: no" >&5
! 138523: echo "${ECHO_T}no" >&6; }
1.1 misho 138524: fi
138525:
138526:
138527: fi
138528: if test -z "$ac_cv_prog_RANLIB"; then
138529: ac_ct_RANLIB=$RANLIB
138530: # Extract the first word of "ranlib", so it can be a program name with args.
138531: set dummy ranlib; ac_word=$2
1.1.1.3 ! misho 138532: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138533: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138534: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 138535: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138536: else
138537: if test -n "$ac_ct_RANLIB"; then
138538: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
138539: else
138540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138541: for as_dir in $PATH
138542: do
138543: IFS=$as_save_IFS
138544: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138545: for ac_exec_ext in '' $ac_executable_extensions; do
! 138546: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138547: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.1.3 ! misho 138548: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138549: break 2
138550: fi
138551: done
1.1.1.3 ! misho 138552: done
1.1 misho 138553: IFS=$as_save_IFS
138554:
138555: fi
138556: fi
138557: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
138558: if test -n "$ac_ct_RANLIB"; then
1.1.1.3 ! misho 138559: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 138560: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.1 misho 138561: else
1.1.1.3 ! misho 138562: { echo "$as_me:$LINENO: result: no" >&5
! 138563: echo "${ECHO_T}no" >&6; }
1.1 misho 138564: fi
138565:
138566: if test "x$ac_ct_RANLIB" = x; then
138567: RANLIB=":"
138568: else
138569: case $cross_compiling:$ac_tool_warned in
138570: yes:)
1.1.1.3 ! misho 138571: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 138572: whose name does not start with the host triplet. If you think this
! 138573: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 138574: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 138575: whose name does not start with the host triplet. If you think this
! 138576: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 138577: ac_tool_warned=yes ;;
138578: esac
138579: RANLIB=$ac_ct_RANLIB
138580: fi
138581: else
138582: RANLIB="$ac_cv_prog_RANLIB"
138583: fi
138584:
138585: if test -n "$ac_tool_prefix"; then
138586: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
138587: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.3 ! misho 138588: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138589: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138590: if test "${ac_cv_prog_STRIP+set}" = set; then
! 138591: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138592: else
138593: if test -n "$STRIP"; then
138594: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
138595: else
138596: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138597: for as_dir in $PATH
138598: do
138599: IFS=$as_save_IFS
138600: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138601: for ac_exec_ext in '' $ac_executable_extensions; do
! 138602: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138603: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.1.3 ! misho 138604: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138605: break 2
138606: fi
138607: done
1.1.1.3 ! misho 138608: done
1.1 misho 138609: IFS=$as_save_IFS
138610:
138611: fi
138612: fi
138613: STRIP=$ac_cv_prog_STRIP
138614: if test -n "$STRIP"; then
1.1.1.3 ! misho 138615: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 138616: echo "${ECHO_T}$STRIP" >&6; }
1.1 misho 138617: else
1.1.1.3 ! misho 138618: { echo "$as_me:$LINENO: result: no" >&5
! 138619: echo "${ECHO_T}no" >&6; }
1.1 misho 138620: fi
138621:
138622:
138623: fi
138624: if test -z "$ac_cv_prog_STRIP"; then
138625: ac_ct_STRIP=$STRIP
138626: # Extract the first word of "strip", so it can be a program name with args.
138627: set dummy strip; ac_word=$2
1.1.1.3 ! misho 138628: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138629: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138630: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 138631: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138632: else
138633: if test -n "$ac_ct_STRIP"; then
138634: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
138635: else
138636: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138637: for as_dir in $PATH
138638: do
138639: IFS=$as_save_IFS
138640: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138641: for ac_exec_ext in '' $ac_executable_extensions; do
! 138642: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138643: ac_cv_prog_ac_ct_STRIP="strip"
1.1.1.3 ! misho 138644: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138645: break 2
138646: fi
138647: done
1.1.1.3 ! misho 138648: done
1.1 misho 138649: IFS=$as_save_IFS
138650:
138651: fi
138652: fi
138653: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
138654: if test -n "$ac_ct_STRIP"; then
1.1.1.3 ! misho 138655: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 138656: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1.1 misho 138657: else
1.1.1.3 ! misho 138658: { echo "$as_me:$LINENO: result: no" >&5
! 138659: echo "${ECHO_T}no" >&6; }
1.1 misho 138660: fi
138661:
138662: if test "x$ac_ct_STRIP" = x; then
138663: STRIP=":"
138664: else
138665: case $cross_compiling:$ac_tool_warned in
138666: yes:)
1.1.1.3 ! misho 138667: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 138668: whose name does not start with the host triplet. If you think this
! 138669: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 138670: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 138671: whose name does not start with the host triplet. If you think this
! 138672: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 138673: ac_tool_warned=yes ;;
138674: esac
138675: STRIP=$ac_ct_STRIP
138676: fi
138677: else
138678: STRIP="$ac_cv_prog_STRIP"
138679: fi
138680:
138681:
138682: old_CC="$CC"
138683: old_CFLAGS="$CFLAGS"
138684:
138685: # Set sane defaults for various variables
138686: test -z "$AR" && AR=ar
138687: test -z "$AR_FLAGS" && AR_FLAGS=cru
138688: test -z "$AS" && AS=as
138689: test -z "$CC" && CC=cc
138690: test -z "$LTCC" && LTCC=$CC
138691: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
138692: test -z "$DLLTOOL" && DLLTOOL=dlltool
138693: test -z "$LD" && LD=ld
138694: test -z "$LN_S" && LN_S="ln -s"
138695: test -z "$MAGIC_CMD" && MAGIC_CMD=file
138696: test -z "$NM" && NM=nm
138697: test -z "$SED" && SED=sed
138698: test -z "$OBJDUMP" && OBJDUMP=objdump
138699: test -z "$RANLIB" && RANLIB=:
138700: test -z "$STRIP" && STRIP=:
138701: test -z "$ac_objext" && ac_objext=o
138702:
138703: # Determine commands to create old-style static archives.
138704: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
138705: old_postinstall_cmds='chmod 644 $oldlib'
138706: old_postuninstall_cmds=
138707:
138708: if test -n "$RANLIB"; then
138709: case $host_os in
138710: openbsd*)
138711: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
138712: ;;
138713: *)
138714: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
138715: ;;
138716: esac
138717: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
138718: fi
138719:
138720: for cc_temp in $compiler""; do
138721: case $cc_temp in
138722: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
138723: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
138724: \-*) ;;
138725: *) break;;
138726: esac
138727: done
138728: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
138729:
138730:
138731: # Only perform the check for file, if the check method requires it
138732: case $deplibs_check_method in
138733: file_magic*)
138734: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.1.3 ! misho 138735: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 138736: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
! 138737: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 138738: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138739: else
138740: case $MAGIC_CMD in
138741: [\\/*] | ?:[\\/]*)
138742: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
138743: ;;
138744: *)
138745: lt_save_MAGIC_CMD="$MAGIC_CMD"
138746: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
138747: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
138748: for ac_dir in $ac_dummy; do
138749: IFS="$lt_save_ifs"
138750: test -z "$ac_dir" && ac_dir=.
138751: if test -f $ac_dir/${ac_tool_prefix}file; then
138752: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
138753: if test -n "$file_magic_test_file"; then
138754: case $deplibs_check_method in
138755: "file_magic "*)
138756: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
138757: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
138758: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
138759: $EGREP "$file_magic_regex" > /dev/null; then
138760: :
138761: else
138762: cat <<EOF 1>&2
138763:
138764: *** Warning: the command libtool uses to detect shared libraries,
138765: *** $file_magic_cmd, produces output that libtool cannot recognize.
138766: *** The result is that libtool may fail to recognize shared libraries
138767: *** as such. This will affect the creation of libtool libraries that
138768: *** depend on shared libraries, but programs linked with such libtool
138769: *** libraries will work regardless of this problem. Nevertheless, you
138770: *** may want to report the problem to your system manager and/or to
138771: *** bug-libtool@gnu.org
138772:
138773: EOF
138774: fi ;;
138775: esac
138776: fi
138777: break
138778: fi
138779: done
138780: IFS="$lt_save_ifs"
138781: MAGIC_CMD="$lt_save_MAGIC_CMD"
138782: ;;
138783: esac
138784: fi
138785:
138786: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
138787: if test -n "$MAGIC_CMD"; then
1.1.1.3 ! misho 138788: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 138789: echo "${ECHO_T}$MAGIC_CMD" >&6; }
1.1 misho 138790: else
1.1.1.3 ! misho 138791: { echo "$as_me:$LINENO: result: no" >&5
! 138792: echo "${ECHO_T}no" >&6; }
1.1 misho 138793: fi
138794:
138795: if test -z "$lt_cv_path_MAGIC_CMD"; then
138796: if test -n "$ac_tool_prefix"; then
1.1.1.3 ! misho 138797: { echo "$as_me:$LINENO: checking for file" >&5
! 138798: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
! 138799: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 138800: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138801: else
138802: case $MAGIC_CMD in
138803: [\\/*] | ?:[\\/]*)
138804: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
138805: ;;
138806: *)
138807: lt_save_MAGIC_CMD="$MAGIC_CMD"
138808: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
138809: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
138810: for ac_dir in $ac_dummy; do
138811: IFS="$lt_save_ifs"
138812: test -z "$ac_dir" && ac_dir=.
138813: if test -f $ac_dir/file; then
138814: lt_cv_path_MAGIC_CMD="$ac_dir/file"
138815: if test -n "$file_magic_test_file"; then
138816: case $deplibs_check_method in
138817: "file_magic "*)
138818: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
138819: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
138820: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
138821: $EGREP "$file_magic_regex" > /dev/null; then
138822: :
138823: else
138824: cat <<EOF 1>&2
138825:
138826: *** Warning: the command libtool uses to detect shared libraries,
138827: *** $file_magic_cmd, produces output that libtool cannot recognize.
138828: *** The result is that libtool may fail to recognize shared libraries
138829: *** as such. This will affect the creation of libtool libraries that
138830: *** depend on shared libraries, but programs linked with such libtool
138831: *** libraries will work regardless of this problem. Nevertheless, you
138832: *** may want to report the problem to your system manager and/or to
138833: *** bug-libtool@gnu.org
138834:
138835: EOF
138836: fi ;;
138837: esac
138838: fi
138839: break
138840: fi
138841: done
138842: IFS="$lt_save_ifs"
138843: MAGIC_CMD="$lt_save_MAGIC_CMD"
138844: ;;
138845: esac
138846: fi
138847:
138848: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
138849: if test -n "$MAGIC_CMD"; then
1.1.1.3 ! misho 138850: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 138851: echo "${ECHO_T}$MAGIC_CMD" >&6; }
1.1 misho 138852: else
1.1.1.3 ! misho 138853: { echo "$as_me:$LINENO: result: no" >&5
! 138854: echo "${ECHO_T}no" >&6; }
1.1 misho 138855: fi
138856:
138857: else
138858: MAGIC_CMD=:
138859: fi
138860: fi
138861:
138862: fi
138863: ;;
138864: esac
138865:
138866:
138867: case $host_os in
138868: rhapsody* | darwin*)
138869: if test -n "$ac_tool_prefix"; then
138870: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
138871: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.1.1.3 ! misho 138872: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138873: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138874: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
! 138875: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138876: else
138877: if test -n "$DSYMUTIL"; then
138878: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
138879: else
138880: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138881: for as_dir in $PATH
138882: do
138883: IFS=$as_save_IFS
138884: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138885: for ac_exec_ext in '' $ac_executable_extensions; do
! 138886: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138887: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.1.1.3 ! misho 138888: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138889: break 2
138890: fi
138891: done
1.1.1.3 ! misho 138892: done
1.1 misho 138893: IFS=$as_save_IFS
138894:
138895: fi
138896: fi
138897: DSYMUTIL=$ac_cv_prog_DSYMUTIL
138898: if test -n "$DSYMUTIL"; then
1.1.1.3 ! misho 138899: { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
! 138900: echo "${ECHO_T}$DSYMUTIL" >&6; }
1.1 misho 138901: else
1.1.1.3 ! misho 138902: { echo "$as_me:$LINENO: result: no" >&5
! 138903: echo "${ECHO_T}no" >&6; }
1.1 misho 138904: fi
138905:
138906:
138907: fi
138908: if test -z "$ac_cv_prog_DSYMUTIL"; then
138909: ac_ct_DSYMUTIL=$DSYMUTIL
138910: # Extract the first word of "dsymutil", so it can be a program name with args.
138911: set dummy dsymutil; ac_word=$2
1.1.1.3 ! misho 138912: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138913: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138914: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
! 138915: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138916: else
138917: if test -n "$ac_ct_DSYMUTIL"; then
138918: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
138919: else
138920: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138921: for as_dir in $PATH
138922: do
138923: IFS=$as_save_IFS
138924: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138925: for ac_exec_ext in '' $ac_executable_extensions; do
! 138926: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138927: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.1.1.3 ! misho 138928: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138929: break 2
138930: fi
138931: done
1.1.1.3 ! misho 138932: done
1.1 misho 138933: IFS=$as_save_IFS
138934:
138935: fi
138936: fi
138937: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
138938: if test -n "$ac_ct_DSYMUTIL"; then
1.1.1.3 ! misho 138939: { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
! 138940: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
1.1 misho 138941: else
1.1.1.3 ! misho 138942: { echo "$as_me:$LINENO: result: no" >&5
! 138943: echo "${ECHO_T}no" >&6; }
1.1 misho 138944: fi
138945:
138946: if test "x$ac_ct_DSYMUTIL" = x; then
138947: DSYMUTIL=":"
138948: else
138949: case $cross_compiling:$ac_tool_warned in
138950: yes:)
1.1.1.3 ! misho 138951: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 138952: whose name does not start with the host triplet. If you think this
! 138953: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 138954: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 138955: whose name does not start with the host triplet. If you think this
! 138956: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 138957: ac_tool_warned=yes ;;
138958: esac
138959: DSYMUTIL=$ac_ct_DSYMUTIL
138960: fi
138961: else
138962: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
138963: fi
138964:
138965: if test -n "$ac_tool_prefix"; then
138966: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
138967: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.1.1.3 ! misho 138968: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 138969: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 138970: if test "${ac_cv_prog_NMEDIT+set}" = set; then
! 138971: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 138972: else
138973: if test -n "$NMEDIT"; then
138974: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
138975: else
138976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138977: for as_dir in $PATH
138978: do
138979: IFS=$as_save_IFS
138980: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 138981: for ac_exec_ext in '' $ac_executable_extensions; do
! 138982: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 138983: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.1.1.3 ! misho 138984: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 138985: break 2
138986: fi
138987: done
1.1.1.3 ! misho 138988: done
1.1 misho 138989: IFS=$as_save_IFS
138990:
138991: fi
138992: fi
138993: NMEDIT=$ac_cv_prog_NMEDIT
138994: if test -n "$NMEDIT"; then
1.1.1.3 ! misho 138995: { echo "$as_me:$LINENO: result: $NMEDIT" >&5
! 138996: echo "${ECHO_T}$NMEDIT" >&6; }
1.1 misho 138997: else
1.1.1.3 ! misho 138998: { echo "$as_me:$LINENO: result: no" >&5
! 138999: echo "${ECHO_T}no" >&6; }
1.1 misho 139000: fi
139001:
139002:
139003: fi
139004: if test -z "$ac_cv_prog_NMEDIT"; then
139005: ac_ct_NMEDIT=$NMEDIT
139006: # Extract the first word of "nmedit", so it can be a program name with args.
139007: set dummy nmedit; ac_word=$2
1.1.1.3 ! misho 139008: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 139009: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 139010: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
! 139011: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139012: else
139013: if test -n "$ac_ct_NMEDIT"; then
139014: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
139015: else
139016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139017: for as_dir in $PATH
139018: do
139019: IFS=$as_save_IFS
139020: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 139021: for ac_exec_ext in '' $ac_executable_extensions; do
! 139022: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misho 139023: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.1.1.3 ! misho 139024: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 139025: break 2
139026: fi
139027: done
1.1.1.3 ! misho 139028: done
1.1 misho 139029: IFS=$as_save_IFS
139030:
139031: fi
139032: fi
139033: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
139034: if test -n "$ac_ct_NMEDIT"; then
1.1.1.3 ! misho 139035: { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
! 139036: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
1.1 misho 139037: else
1.1.1.3 ! misho 139038: { echo "$as_me:$LINENO: result: no" >&5
! 139039: echo "${ECHO_T}no" >&6; }
1.1 misho 139040: fi
139041:
139042: if test "x$ac_ct_NMEDIT" = x; then
139043: NMEDIT=":"
139044: else
139045: case $cross_compiling:$ac_tool_warned in
139046: yes:)
1.1.1.3 ! misho 139047: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 139048: whose name does not start with the host triplet. If you think this
! 139049: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 139050: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 139051: whose name does not start with the host triplet. If you think this
! 139052: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1 misho 139053: ac_tool_warned=yes ;;
139054: esac
139055: NMEDIT=$ac_ct_NMEDIT
139056: fi
139057: else
139058: NMEDIT="$ac_cv_prog_NMEDIT"
139059: fi
139060:
139061:
1.1.1.3 ! misho 139062: { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
! 139063: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
! 139064: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
! 139065: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139066: else
139067: lt_cv_apple_cc_single_mod=no
139068: if test -z "${LT_MULTI_MODULE}"; then
139069: # By default we will add the -single_module flag. You can override
139070: # by either setting the environment variable LT_MULTI_MODULE
139071: # non-empty at configure time, or by adding -multi_module to the
139072: # link flags.
139073: echo "int foo(void){return 1;}" > conftest.c
139074: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
139075: -dynamiclib ${wl}-single_module conftest.c
139076: if test -f libconftest.dylib; then
139077: lt_cv_apple_cc_single_mod=yes
139078: rm -rf libconftest.dylib*
139079: fi
139080: rm conftest.c
139081: fi
139082: fi
1.1.1.3 ! misho 139083: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
! 139084: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
! 139085: { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
! 139086: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
! 139087: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
! 139088: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139089: else
139090: lt_cv_ld_exported_symbols_list=no
139091: save_LDFLAGS=$LDFLAGS
139092: echo "_main" > conftest.sym
139093: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
139094:
139095: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 139096: #line 139096 "configure"
1.1 misho 139097: #include "confdefs.h"
139098: int main() {
139099: ; return 0; }
139100: EOF
1.1.1.3 ! misho 139101: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 139102: (eval $ac_link) 2>&5
139103: ac_status=$?
1.1.1.3 ! misho 139104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 139105: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.1 misho 139106: lt_cv_ld_exported_symbols_list=yes
139107: rm -rf conftest*
139108: else
139109: echo "configure: failed program was:" >&5
139110: cat conftest.$ac_ext >&6
139111: lt_cv_ld_exported_symbols_list=no
139112: rm -rf conftest*
139113: fi
139114: rm -f conftest*
139115: LDFLAGS="$save_LDFLAGS"
139116:
139117: fi
1.1.1.3 ! misho 139118: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
! 139119: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
1.1 misho 139120: case $host_os in
139121: rhapsody* | darwin1.[0123])
139122: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
139123: darwin1.*)
139124: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
139125: darwin*)
139126: # if running on 10.5 or later, the deployment target defaults
139127: # to the OS version, if on x86, and 10.4, the deployment
139128: # target defaults to 10.4. Don't you love it?
139129: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
139130: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
139131: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
139132: 10.[012]*)
139133: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
139134: 10.*)
139135: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
139136: esac
139137: ;;
139138: esac
139139: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
139140: _lt_dar_single_mod='$single_module'
139141: fi
139142: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
139143: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
139144: else
139145: _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
139146: fi
139147: if test "$DSYMUTIL" != ":"; then
139148: _lt_dsymutil="~$DSYMUTIL \$lib || :"
139149: else
139150: _lt_dsymutil=
139151: fi
139152: ;;
139153: esac
139154:
139155:
139156: enable_dlopen=no
139157: enable_win32_dll=no
139158:
139159: # Check whether --enable-libtool-lock was given.
1.1.1.3 ! misho 139160: if test "${enable_libtool_lock+set}" = set; then
1.1 misho 139161: enableval=$enable_libtool_lock;
139162: fi
139163:
139164: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
139165:
139166:
139167: # Check whether --with-pic was given.
1.1.1.3 ! misho 139168: if test "${with_pic+set}" = set; then
1.1 misho 139169: withval=$with_pic; pic_mode="$withval"
139170: else
139171: pic_mode=default
139172: fi
139173:
139174: test -z "$pic_mode" && pic_mode=default
139175:
139176: # Use C for the default configuration in the libtool script
139177: tagname=
139178: lt_save_CC="$CC"
139179:
139180: ac_ext=c
139181: ac_cpp='$CPP $CPPFLAGS'
139182: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
139183: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
139184: ac_compiler_gnu=$ac_cv_c_compiler_gnu
139185:
139186:
139187: # Source file extension for C test sources.
139188: ac_ext=c
139189:
139190: # Object file extension for compiled C test sources.
139191: objext=o
139192: objext=$objext
139193:
139194: # Code to be used in simple compile tests
139195: lt_simple_compile_test_code="int some_variable = 0;"
139196:
139197: # Code to be used in simple link tests
139198: lt_simple_link_test_code='int main(){return(0);}'
139199:
139200:
139201: # If no C compiler was specified, use CC.
139202: LTCC=${LTCC-"$CC"}
139203:
139204: # If no C compiler flags were specified, use CFLAGS.
139205: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
139206:
139207: # Allow CC to be a program name with arguments.
139208: compiler=$CC
139209:
139210:
139211: # save warnings/boilerplate of simple test code
139212: ac_outfile=conftest.$ac_objext
139213: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
139214: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
139215: _lt_compiler_boilerplate=`cat conftest.err`
139216: $rm conftest*
139217:
139218: ac_outfile=conftest.$ac_objext
139219: echo "$lt_simple_link_test_code" >conftest.$ac_ext
139220: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
139221: _lt_linker_boilerplate=`cat conftest.err`
139222: $rm -r conftest*
139223:
139224:
139225: ## CAVEAT EMPTOR:
139226: ## There is no encapsulation within the following macros, do not change
139227: ## the running order or otherwise move them around unless you know exactly
139228: ## what you are doing...
139229:
139230: lt_prog_compiler_no_builtin_flag=
139231:
139232: if test "$GCC" = yes; then
139233: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
139234:
139235:
1.1.1.3 ! misho 139236: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 139237: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
! 139238: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 139239: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139240: else
139241: lt_cv_prog_compiler_rtti_exceptions=no
139242: ac_outfile=conftest.$ac_objext
139243: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
139244: lt_compiler_flag="-fno-rtti -fno-exceptions"
139245: # Insert the option either (1) after the last *FLAGS variable, or
139246: # (2) before a word containing "conftest.", or (3) at the end.
139247: # Note that $ac_compile itself does not contain backslashes and begins
139248: # with a dollar sign (not a hyphen), so the echo should work correctly.
139249: # The option is referenced via a variable to avoid confusing sed.
139250: lt_compile=`echo "$ac_compile" | $SED \
139251: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
139252: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
139253: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! misho 139254: (eval echo "\"configure:139254: $lt_compile\"" >&5)
1.1 misho 139255: (eval "$lt_compile" 2>conftest.err)
139256: ac_status=$?
139257: cat conftest.err >&5
1.1.1.3 ! misho 139258: echo "configure:139258: \$? = $ac_status" >&5
1.1 misho 139259: if (exit $ac_status) && test -s "$ac_outfile"; then
139260: # The compiler can only warn and ignore the option if not recognized
139261: # So say no if there are warnings other than the usual output.
139262: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
139263: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
139264: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
139265: lt_cv_prog_compiler_rtti_exceptions=yes
139266: fi
139267: fi
139268: $rm conftest*
139269:
139270: fi
1.1.1.3 ! misho 139271: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 139272: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 misho 139273:
139274: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
139275: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
139276: else
139277: :
139278: fi
139279:
139280: fi
139281:
139282: lt_prog_compiler_wl=
139283: lt_prog_compiler_pic=
139284: lt_prog_compiler_static=
139285:
1.1.1.3 ! misho 139286: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 139287: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 misho 139288:
139289: if test "$GCC" = yes; then
139290: lt_prog_compiler_wl='-Wl,'
139291: lt_prog_compiler_static='-static'
139292:
139293: case $host_os in
139294: aix*)
139295: # All AIX code is PIC.
139296: if test "$host_cpu" = ia64; then
139297: # AIX 5 now supports IA64 processor
139298: lt_prog_compiler_static='-Bstatic'
139299: fi
139300: ;;
139301:
139302: amigaos*)
139303: # FIXME: we need at least 68020 code to build shared libraries, but
139304: # adding the `-m68020' flag to GCC prevents building anything better,
139305: # like `-m68040'.
139306: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
139307: ;;
139308:
139309: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
139310: # PIC is the default for these OSes.
139311: ;;
139312:
139313: mingw* | cygwin* | pw32* | os2*)
139314: # This hack is so that the source file can tell whether it is being
139315: # built for inclusion in a dll (and should export symbols for example).
139316: # Although the cygwin gcc ignores -fPIC, still need this for old-style
139317: # (--disable-auto-import) libraries
139318: lt_prog_compiler_pic='-DDLL_EXPORT'
139319: ;;
139320:
139321: darwin* | rhapsody*)
139322: # PIC is the default on this platform
139323: # Common symbols not allowed in MH_DYLIB files
139324: lt_prog_compiler_pic='-fno-common'
139325: ;;
139326:
139327: interix[3-9]*)
139328: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
139329: # Instead, we relocate shared libraries at runtime.
139330: ;;
139331:
139332: msdosdjgpp*)
139333: # Just because we use GCC doesn't mean we suddenly get shared libraries
139334: # on systems that don't support them.
139335: lt_prog_compiler_can_build_shared=no
139336: enable_shared=no
139337: ;;
139338:
139339: sysv4*MP*)
139340: if test -d /usr/nec; then
139341: lt_prog_compiler_pic=-Kconform_pic
139342: fi
139343: ;;
139344:
139345: hpux*)
139346: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
139347: # not for PA HP-UX.
139348: case $host_cpu in
139349: hppa*64*|ia64*)
139350: # +Z the default
139351: ;;
139352: *)
139353: lt_prog_compiler_pic='-fPIC'
139354: ;;
139355: esac
139356: ;;
139357:
139358: *)
139359: lt_prog_compiler_pic='-fPIC'
139360: ;;
139361: esac
139362: else
139363: # PORTME Check for flag to pass linker flags through the system compiler.
139364: case $host_os in
139365: aix*)
139366: lt_prog_compiler_wl='-Wl,'
139367: if test "$host_cpu" = ia64; then
139368: # AIX 5 now supports IA64 processor
139369: lt_prog_compiler_static='-Bstatic'
139370: else
139371: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
139372: fi
139373: ;;
139374: darwin*)
139375: # PIC is the default on this platform
139376: # Common symbols not allowed in MH_DYLIB files
139377: case $cc_basename in
139378: xlc*)
139379: lt_prog_compiler_pic='-qnocommon'
139380: lt_prog_compiler_wl='-Wl,'
139381: ;;
139382: esac
139383: ;;
139384:
139385: mingw* | cygwin* | pw32* | os2*)
139386: # This hack is so that the source file can tell whether it is being
139387: # built for inclusion in a dll (and should export symbols for example).
139388: lt_prog_compiler_pic='-DDLL_EXPORT'
139389: ;;
139390:
139391: hpux9* | hpux10* | hpux11*)
139392: lt_prog_compiler_wl='-Wl,'
139393: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
139394: # not for PA HP-UX.
139395: case $host_cpu in
139396: hppa*64*|ia64*)
139397: # +Z the default
139398: ;;
139399: *)
139400: lt_prog_compiler_pic='+Z'
139401: ;;
139402: esac
139403: # Is there a better lt_prog_compiler_static that works with the bundled CC?
139404: lt_prog_compiler_static='${wl}-a ${wl}archive'
139405: ;;
139406:
139407: irix5* | irix6* | nonstopux*)
139408: lt_prog_compiler_wl='-Wl,'
139409: # PIC (with -KPIC) is the default.
139410: lt_prog_compiler_static='-non_shared'
139411: ;;
139412:
139413: newsos6)
139414: lt_prog_compiler_pic='-KPIC'
139415: lt_prog_compiler_static='-Bstatic'
139416: ;;
139417:
139418: linux* | k*bsd*-gnu)
139419: case $cc_basename in
139420: # old Intel for x86_64 which still supported -KPIC.
139421: ecc*)
139422: lt_prog_compiler_wl='-Wl,'
139423: lt_prog_compiler_pic='-KPIC'
139424: lt_prog_compiler_static='-static'
139425: ;;
139426: # icc used to be incompatible with GCC.
139427: # ICC 10 doesn't accept -KPIC any more.
139428: icc*)
139429: lt_prog_compiler_wl='-Wl,'
139430: lt_prog_compiler_pic='-fPIC'
139431: lt_prog_compiler_static='-static'
139432: ;;
139433: pgcc* | pgf77* | pgf90* | pgf95*)
139434: # Portland Group compilers (*not* the Pentium gcc compiler,
139435: # which looks to be a dead project)
139436: lt_prog_compiler_wl='-Wl,'
139437: lt_prog_compiler_pic='-fpic'
139438: lt_prog_compiler_static='-Bstatic'
139439: ;;
139440: ccc*)
139441: lt_prog_compiler_wl='-Wl,'
139442: # All Alpha code is PIC.
139443: lt_prog_compiler_static='-non_shared'
139444: ;;
139445: *)
139446: case `$CC -V 2>&1 | sed 5q` in
139447: *Sun\ C*)
139448: # Sun C 5.9
139449: lt_prog_compiler_pic='-KPIC'
139450: lt_prog_compiler_static='-Bstatic'
139451: lt_prog_compiler_wl='-Wl,'
139452: ;;
139453: *Sun\ F*)
139454: # Sun Fortran 8.3 passes all unrecognized flags to the linker
139455: lt_prog_compiler_pic='-KPIC'
139456: lt_prog_compiler_static='-Bstatic'
139457: lt_prog_compiler_wl=''
139458: ;;
139459: esac
139460: ;;
139461: esac
139462: ;;
139463:
139464: osf3* | osf4* | osf5*)
139465: lt_prog_compiler_wl='-Wl,'
139466: # All OSF/1 code is PIC.
139467: lt_prog_compiler_static='-non_shared'
139468: ;;
139469:
139470: rdos*)
139471: lt_prog_compiler_static='-non_shared'
139472: ;;
139473:
139474: solaris*)
139475: lt_prog_compiler_pic='-KPIC'
139476: lt_prog_compiler_static='-Bstatic'
139477: case $cc_basename in
139478: f77* | f90* | f95*)
139479: lt_prog_compiler_wl='-Qoption ld ';;
139480: *)
139481: lt_prog_compiler_wl='-Wl,';;
139482: esac
139483: ;;
139484:
139485: sunos4*)
139486: lt_prog_compiler_wl='-Qoption ld '
139487: lt_prog_compiler_pic='-PIC'
139488: lt_prog_compiler_static='-Bstatic'
139489: ;;
139490:
139491: sysv4 | sysv4.2uw2* | sysv4.3*)
139492: lt_prog_compiler_wl='-Wl,'
139493: lt_prog_compiler_pic='-KPIC'
139494: lt_prog_compiler_static='-Bstatic'
139495: ;;
139496:
139497: sysv4*MP*)
139498: if test -d /usr/nec ;then
139499: lt_prog_compiler_pic='-Kconform_pic'
139500: lt_prog_compiler_static='-Bstatic'
139501: fi
139502: ;;
139503:
139504: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
139505: lt_prog_compiler_wl='-Wl,'
139506: lt_prog_compiler_pic='-KPIC'
139507: lt_prog_compiler_static='-Bstatic'
139508: ;;
139509:
139510: unicos*)
139511: lt_prog_compiler_wl='-Wl,'
139512: lt_prog_compiler_can_build_shared=no
139513: ;;
139514:
139515: uts4*)
139516: lt_prog_compiler_pic='-pic'
139517: lt_prog_compiler_static='-Bstatic'
139518: ;;
139519:
139520: *)
139521: lt_prog_compiler_can_build_shared=no
139522: ;;
139523: esac
139524: fi
139525:
1.1.1.3 ! misho 139526: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 139527: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.1 misho 139528:
139529: #
139530: # Check to make sure the PIC flag actually works.
139531: #
139532: if test -n "$lt_prog_compiler_pic"; then
139533:
1.1.1.3 ! misho 139534: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 139535: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
! 139536: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
! 139537: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139538: else
139539: lt_cv_prog_compiler_pic_works=no
139540: ac_outfile=conftest.$ac_objext
139541: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
139542: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
139543: # Insert the option either (1) after the last *FLAGS variable, or
139544: # (2) before a word containing "conftest.", or (3) at the end.
139545: # Note that $ac_compile itself does not contain backslashes and begins
139546: # with a dollar sign (not a hyphen), so the echo should work correctly.
139547: # The option is referenced via a variable to avoid confusing sed.
139548: lt_compile=`echo "$ac_compile" | $SED \
139549: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
139550: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
139551: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! misho 139552: (eval echo "\"configure:139552: $lt_compile\"" >&5)
1.1 misho 139553: (eval "$lt_compile" 2>conftest.err)
139554: ac_status=$?
139555: cat conftest.err >&5
1.1.1.3 ! misho 139556: echo "configure:139556: \$? = $ac_status" >&5
1.1 misho 139557: if (exit $ac_status) && test -s "$ac_outfile"; then
139558: # The compiler can only warn and ignore the option if not recognized
139559: # So say no if there are warnings other than the usual output.
139560: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
139561: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
139562: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
139563: lt_cv_prog_compiler_pic_works=yes
139564: fi
139565: fi
139566: $rm conftest*
139567:
139568: fi
1.1.1.3 ! misho 139569: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
! 139570: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
1.1 misho 139571:
139572: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
139573: case $lt_prog_compiler_pic in
139574: "" | " "*) ;;
139575: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
139576: esac
139577: else
139578: lt_prog_compiler_pic=
139579: lt_prog_compiler_can_build_shared=no
139580: fi
139581:
139582: fi
139583: case $host_os in
139584: # For platforms which do not support PIC, -DPIC is meaningless:
139585: *djgpp*)
139586: lt_prog_compiler_pic=
139587: ;;
139588: *)
139589: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
139590: ;;
139591: esac
139592:
139593: #
139594: # Check to make sure the static flag actually works.
139595: #
139596: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.1.1.3 ! misho 139597: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 139598: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 139599: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
! 139600: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139601: else
139602: lt_cv_prog_compiler_static_works=no
139603: save_LDFLAGS="$LDFLAGS"
139604: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
139605: echo "$lt_simple_link_test_code" > conftest.$ac_ext
139606: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
139607: # The linker can only warn and ignore the option if not recognized
139608: # So say no if there are warnings
139609: if test -s conftest.err; then
139610: # Append any errors to the config.log.
139611: cat conftest.err 1>&5
139612: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
139613: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
139614: if diff conftest.exp conftest.er2 >/dev/null; then
139615: lt_cv_prog_compiler_static_works=yes
139616: fi
139617: else
139618: lt_cv_prog_compiler_static_works=yes
139619: fi
139620: fi
139621: $rm -r conftest*
139622: LDFLAGS="$save_LDFLAGS"
139623:
139624: fi
1.1.1.3 ! misho 139625: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
! 139626: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
1.1 misho 139627:
139628: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
139629: :
139630: else
139631: lt_prog_compiler_static=
139632: fi
139633:
139634:
1.1.1.3 ! misho 139635: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 139636: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 139637: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 139638: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 139639: else
139640: lt_cv_prog_compiler_c_o=no
139641: $rm -r conftest 2>/dev/null
139642: mkdir conftest
139643: cd conftest
139644: mkdir out
139645: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
139646:
139647: lt_compiler_flag="-o out/conftest2.$ac_objext"
139648: # Insert the option either (1) after the last *FLAGS variable, or
139649: # (2) before a word containing "conftest.", or (3) at the end.
139650: # Note that $ac_compile itself does not contain backslashes and begins
139651: # with a dollar sign (not a hyphen), so the echo should work correctly.
139652: lt_compile=`echo "$ac_compile" | $SED \
139653: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
139654: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
139655: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! misho 139656: (eval echo "\"configure:139656: $lt_compile\"" >&5)
1.1 misho 139657: (eval "$lt_compile" 2>out/conftest.err)
139658: ac_status=$?
139659: cat out/conftest.err >&5
1.1.1.3 ! misho 139660: echo "configure:139660: \$? = $ac_status" >&5
1.1 misho 139661: if (exit $ac_status) && test -s out/conftest2.$ac_objext
139662: then
139663: # The compiler can only warn and ignore the option if not recognized
139664: # So say no if there are warnings
139665: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
139666: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
139667: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
139668: lt_cv_prog_compiler_c_o=yes
139669: fi
139670: fi
139671: chmod u+w . 2>&5
139672: $rm conftest*
139673: # SGI C++ compiler will create directory out/ii_files/ for
139674: # template instantiation
139675: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
139676: $rm out/* && rmdir out
139677: cd ..
139678: rmdir conftest
139679: $rm conftest*
139680:
139681: fi
1.1.1.3 ! misho 139682: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 139683: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
1.1 misho 139684:
139685:
139686: hard_links="nottested"
139687: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
139688: # do not overwrite the value of need_locks provided by the user
1.1.1.3 ! misho 139689: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 139690: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 misho 139691: hard_links=yes
139692: $rm conftest*
139693: ln conftest.a conftest.b 2>/dev/null && hard_links=no
139694: touch conftest.a
139695: ln conftest.a conftest.b 2>&5 || hard_links=no
139696: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.3 ! misho 139697: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 139698: echo "${ECHO_T}$hard_links" >&6; }
1.1 misho 139699: if test "$hard_links" = no; then
1.1.1.3 ! misho 139700: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 139701: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1 misho 139702: need_locks=warn
139703: fi
139704: else
139705: need_locks=no
139706: fi
139707:
1.1.1.3 ! misho 139708: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 139709: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 misho 139710:
139711: runpath_var=
139712: allow_undefined_flag=
139713: enable_shared_with_static_runtimes=no
139714: archive_cmds=
139715: archive_expsym_cmds=
139716: old_archive_From_new_cmds=
139717: old_archive_from_expsyms_cmds=
139718: export_dynamic_flag_spec=
139719: whole_archive_flag_spec=
139720: thread_safe_flag_spec=
139721: hardcode_libdir_flag_spec=
139722: hardcode_libdir_flag_spec_ld=
139723: hardcode_libdir_separator=
139724: hardcode_direct=no
139725: hardcode_minus_L=no
139726: hardcode_shlibpath_var=unsupported
139727: link_all_deplibs=unknown
139728: hardcode_automatic=no
139729: module_cmds=
139730: module_expsym_cmds=
139731: always_export_symbols=no
139732: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
139733: # include_expsyms should be a list of space-separated symbols to be *always*
139734: # included in the symbol list
139735: include_expsyms=
139736: # exclude_expsyms can be an extended regexp of symbols to exclude
139737: # it will be wrapped by ` (' and `)$', so one must not match beginning or
139738: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
139739: # as well as any symbol that contains `d'.
139740: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
139741: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
139742: # platforms (ab)use it in PIC code, but their linkers get confused if
139743: # the symbol is explicitly referenced. Since portable code cannot
139744: # rely on this symbol name, it's probably fine to never include it in
139745: # preloaded symbol tables.
139746: # Exclude shared library initialization/finalization symbols.
139747: extract_expsyms_cmds=
139748: # Just being paranoid about ensuring that cc_basename is set.
139749: for cc_temp in $compiler""; do
139750: case $cc_temp in
139751: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
139752: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
139753: \-*) ;;
139754: *) break;;
139755: esac
139756: done
139757: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
139758:
139759: case $host_os in
139760: cygwin* | mingw* | pw32*)
139761: # FIXME: the MSVC++ port hasn't been tested in a loooong time
139762: # When not using gcc, we currently assume that we are using
139763: # Microsoft Visual C++.
139764: if test "$GCC" != yes; then
139765: with_gnu_ld=no
139766: fi
139767: ;;
139768: interix*)
139769: # we just hope/assume this is gcc and not c89 (= MSVC++)
139770: with_gnu_ld=yes
139771: ;;
139772: openbsd*)
139773: with_gnu_ld=no
139774: ;;
139775: esac
139776:
139777: ld_shlibs=yes
139778: if test "$with_gnu_ld" = yes; then
139779: # If archive_cmds runs LD, not CC, wlarc should be empty
139780: wlarc='${wl}'
139781:
139782: # Set some defaults for GNU ld with shared library support. These
139783: # are reset later if shared libraries are not supported. Putting them
139784: # here allows them to be overridden if necessary.
139785: runpath_var=LD_RUN_PATH
139786: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
139787: export_dynamic_flag_spec='${wl}--export-dynamic'
139788: # ancient GNU ld didn't support --whole-archive et. al.
139789: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
139790: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
139791: else
139792: whole_archive_flag_spec=
139793: fi
139794: supports_anon_versioning=no
139795: case `$LD -v 2>/dev/null` in
139796: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
139797: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
139798: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
139799: *\ 2.11.*) ;; # other 2.11 versions
139800: *) supports_anon_versioning=yes ;;
139801: esac
139802:
139803: # See if GNU ld supports shared libraries.
139804: case $host_os in
139805: aix[3-9]*)
139806: # On AIX/PPC, the GNU linker is very broken
139807: if test "$host_cpu" != ia64; then
139808: ld_shlibs=no
139809: cat <<EOF 1>&2
139810:
139811: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
139812: *** to be unable to reliably create shared libraries on AIX.
139813: *** Therefore, libtool is disabling shared libraries support. If you
139814: *** really care for shared libraries, you may want to modify your PATH
139815: *** so that a non-GNU linker is found, and then restart.
139816:
139817: EOF
139818: fi
139819: ;;
139820:
139821: amigaos*)
139822: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
139823: hardcode_libdir_flag_spec='-L$libdir'
139824: hardcode_minus_L=yes
139825:
139826: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
139827: # that the semantics of dynamic libraries on AmigaOS, at least up
139828: # to version 4, is to share data among multiple programs linked
139829: # with the same dynamic library. Since this doesn't match the
139830: # behavior of shared libraries on other platforms, we can't use
139831: # them.
139832: ld_shlibs=no
139833: ;;
139834:
139835: beos*)
139836: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
139837: allow_undefined_flag=unsupported
139838: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
139839: # support --undefined. This deserves some investigation. FIXME
139840: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
139841: else
139842: ld_shlibs=no
139843: fi
139844: ;;
139845:
139846: cygwin* | mingw* | pw32*)
139847: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
139848: # as there is no search path for DLLs.
139849: hardcode_libdir_flag_spec='-L$libdir'
139850: allow_undefined_flag=unsupported
139851: always_export_symbols=no
139852: enable_shared_with_static_runtimes=yes
139853: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
139854:
139855: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
139856: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
139857: # If the export-symbols file already is a .def file (1st line
139858: # is EXPORTS), use it as is; otherwise, prepend...
139859: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
139860: cp $export_symbols $output_objdir/$soname.def;
139861: else
139862: echo EXPORTS > $output_objdir/$soname.def;
139863: cat $export_symbols >> $output_objdir/$soname.def;
139864: fi~
139865: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
139866: else
139867: ld_shlibs=no
139868: fi
139869: ;;
139870:
139871: interix[3-9]*)
139872: hardcode_direct=no
139873: hardcode_shlibpath_var=no
139874: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
139875: export_dynamic_flag_spec='${wl}-E'
139876: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
139877: # Instead, shared libraries are loaded at an image base (0x10000000 by
139878: # default) and relocated if they conflict, which is a slow very memory
139879: # consuming and fragmenting process. To avoid this, we pick a random,
139880: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
139881: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
139882: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
139883: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
139884: ;;
139885:
139886: gnu* | linux* | k*bsd*-gnu)
139887: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
139888: tmp_addflag=
139889: case $cc_basename,$host_cpu in
139890: pgcc*) # Portland Group C compiler
139891: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
139892: tmp_addflag=' $pic_flag'
139893: ;;
139894: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
139895: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
139896: tmp_addflag=' $pic_flag -Mnomain' ;;
139897: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
139898: tmp_addflag=' -i_dynamic' ;;
139899: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
139900: tmp_addflag=' -i_dynamic -nofor_main' ;;
139901: ifc* | ifort*) # Intel Fortran compiler
139902: tmp_addflag=' -nofor_main' ;;
139903: esac
139904: case `$CC -V 2>&1 | sed 5q` in
139905: *Sun\ C*) # Sun C 5.9
139906: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
139907: tmp_sharedflag='-G' ;;
139908: *Sun\ F*) # Sun Fortran 8.3
139909: tmp_sharedflag='-G' ;;
139910: *)
139911: tmp_sharedflag='-shared' ;;
139912: esac
139913: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
139914:
139915: if test $supports_anon_versioning = yes; then
139916: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
139917: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
139918: $echo "local: *; };" >> $output_objdir/$libname.ver~
139919: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
139920: fi
139921: else
139922: ld_shlibs=no
139923: fi
139924: ;;
139925:
139926: netbsd*)
139927: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
139928: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
139929: wlarc=
139930: else
139931: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
139932: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
139933: fi
139934: ;;
139935:
139936: solaris*)
139937: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
139938: ld_shlibs=no
139939: cat <<EOF 1>&2
139940:
139941: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
139942: *** create shared libraries on Solaris systems. Therefore, libtool
139943: *** is disabling shared libraries support. We urge you to upgrade GNU
139944: *** binutils to release 2.9.1 or newer. Another option is to modify
139945: *** your PATH or compiler configuration so that the native linker is
139946: *** used, and then restart.
139947:
139948: EOF
139949: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
139950: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
139951: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
139952: else
139953: ld_shlibs=no
139954: fi
139955: ;;
139956:
139957: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
139958: case `$LD -v 2>&1` in
139959: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
139960: ld_shlibs=no
139961: cat <<_LT_EOF 1>&2
139962:
139963: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
139964: *** reliably create shared libraries on SCO systems. Therefore, libtool
139965: *** is disabling shared libraries support. We urge you to upgrade GNU
139966: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
139967: *** your PATH or compiler configuration so that the native linker is
139968: *** used, and then restart.
139969:
139970: _LT_EOF
139971: ;;
139972: *)
139973: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
139974: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
139975: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
139976: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
139977: else
139978: ld_shlibs=no
139979: fi
139980: ;;
139981: esac
139982: ;;
139983:
139984: sunos4*)
139985: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
139986: wlarc=
139987: hardcode_direct=yes
139988: hardcode_shlibpath_var=no
139989: ;;
139990:
139991: *)
139992: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
139993: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
139994: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
139995: else
139996: ld_shlibs=no
139997: fi
139998: ;;
139999: esac
140000:
140001: if test "$ld_shlibs" = no; then
140002: runpath_var=
140003: hardcode_libdir_flag_spec=
140004: export_dynamic_flag_spec=
140005: whole_archive_flag_spec=
140006: fi
140007: else
140008: # PORTME fill in a description of your system's linker (not GNU ld)
140009: case $host_os in
140010: aix3*)
140011: allow_undefined_flag=unsupported
140012: always_export_symbols=yes
140013: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
140014: # Note: this linker hardcodes the directories in LIBPATH if there
140015: # are no directories specified by -L.
140016: hardcode_minus_L=yes
140017: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
140018: # Neither direct hardcoding nor static linking is supported with a
140019: # broken collect2.
140020: hardcode_direct=unsupported
140021: fi
140022: ;;
140023:
140024: aix[4-9]*)
140025: if test "$host_cpu" = ia64; then
140026: # On IA64, the linker does run time linking by default, so we don't
140027: # have to do anything special.
140028: aix_use_runtimelinking=no
140029: exp_sym_flag='-Bexport'
140030: no_entry_flag=""
140031: else
140032: # If we're using GNU nm, then we don't want the "-C" option.
140033: # -C means demangle to AIX nm, but means don't demangle with GNU nm
140034: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
140035: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
140036: else
140037: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
140038: fi
140039: aix_use_runtimelinking=no
140040:
140041: # Test if we are trying to use run time linking or normal
140042: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
140043: # need to do runtime linking.
140044: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
140045: for ld_flag in $LDFLAGS; do
140046: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
140047: aix_use_runtimelinking=yes
140048: break
140049: fi
140050: done
140051: ;;
140052: esac
140053:
140054: exp_sym_flag='-bexport'
140055: no_entry_flag='-bnoentry'
140056: fi
140057:
140058: # When large executables or shared objects are built, AIX ld can
140059: # have problems creating the table of contents. If linking a library
140060: # or program results in "error TOC overflow" add -mminimal-toc to
140061: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
140062: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
140063:
140064: archive_cmds=''
140065: hardcode_direct=yes
140066: hardcode_libdir_separator=':'
140067: link_all_deplibs=yes
140068:
140069: if test "$GCC" = yes; then
140070: case $host_os in aix4.[012]|aix4.[012].*)
140071: # We only want to do this on AIX 4.2 and lower, the check
140072: # below for broken collect2 doesn't work under 4.3+
140073: collect2name=`${CC} -print-prog-name=collect2`
140074: if test -f "$collect2name" && \
140075: strings "$collect2name" | grep resolve_lib_name >/dev/null
140076: then
140077: # We have reworked collect2
140078: :
140079: else
140080: # We have old collect2
140081: hardcode_direct=unsupported
140082: # It fails to find uninstalled libraries when the uninstalled
140083: # path is not listed in the libpath. Setting hardcode_minus_L
140084: # to unsupported forces relinking
140085: hardcode_minus_L=yes
140086: hardcode_libdir_flag_spec='-L$libdir'
140087: hardcode_libdir_separator=
140088: fi
140089: ;;
140090: esac
140091: shared_flag='-shared'
140092: if test "$aix_use_runtimelinking" = yes; then
140093: shared_flag="$shared_flag "'${wl}-G'
140094: fi
140095: else
140096: # not using gcc
140097: if test "$host_cpu" = ia64; then
140098: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
140099: # chokes on -Wl,-G. The following line is correct:
140100: shared_flag='-G'
140101: else
140102: if test "$aix_use_runtimelinking" = yes; then
140103: shared_flag='${wl}-G'
140104: else
140105: shared_flag='${wl}-bM:SRE'
140106: fi
140107: fi
140108: fi
140109:
140110: # It seems that -bexpall does not export symbols beginning with
140111: # underscore (_), so it is better to generate a list of symbols to export.
140112: always_export_symbols=yes
140113: if test "$aix_use_runtimelinking" = yes; then
140114: # Warning - without using the other runtime loading flags (-brtl),
140115: # -berok will link without error, but may produce a broken library.
140116: allow_undefined_flag='-berok'
140117: # Determine the default libpath from the value encoded in an empty executable.
140118:
140119: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 140120: #line 140120 "configure"
1.1 misho 140121: #include "confdefs.h"
140122: int main() {
140123: ; return 0; }
140124: EOF
1.1.1.3 ! misho 140125: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 140126: (eval $ac_link) 2>&5
140127: ac_status=$?
1.1.1.3 ! misho 140128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 140129: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.1 misho 140130:
140131: lt_aix_libpath_sed='
140132: /Import File Strings/,/^$/ {
140133: /^0/ {
140134: s/^0 *\(.*\)$/\1/
140135: p
140136: }
140137: }'
140138: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
140139: # Check for a 64-bit object if we didn't find anything.
140140: if test -z "$aix_libpath"; then
140141: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
140142: fi
140143: rm -rf conftest*
140144: else
140145: echo "configure: failed program was:" >&5
140146: cat conftest.$ac_ext >&6
140147: fi
140148: rm -f conftest*
140149: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
140150:
140151: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
140152: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
140153: else
140154: if test "$host_cpu" = ia64; then
140155: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
140156: allow_undefined_flag="-z nodefs"
140157: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
140158: else
140159: # Determine the default libpath from the value encoded in an empty executable.
140160:
140161: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 140162: #line 140162 "configure"
1.1 misho 140163: #include "confdefs.h"
140164: int main() {
140165: ; return 0; }
140166: EOF
1.1.1.3 ! misho 140167: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 140168: (eval $ac_link) 2>&5
140169: ac_status=$?
1.1.1.3 ! misho 140170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 140171: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.1 misho 140172:
140173: lt_aix_libpath_sed='
140174: /Import File Strings/,/^$/ {
140175: /^0/ {
140176: s/^0 *\(.*\)$/\1/
140177: p
140178: }
140179: }'
140180: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
140181: # Check for a 64-bit object if we didn't find anything.
140182: if test -z "$aix_libpath"; then
140183: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
140184: fi
140185: rm -rf conftest*
140186: else
140187: echo "configure: failed program was:" >&5
140188: cat conftest.$ac_ext >&6
140189: fi
140190: rm -f conftest*
140191: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
140192:
140193: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
140194: # Warning - without using the other run time loading flags,
140195: # -berok will link without error, but may produce a broken library.
140196: no_undefined_flag=' ${wl}-bernotok'
140197: allow_undefined_flag=' ${wl}-berok'
140198: # Exported symbols can be pulled into shared objects from archives
140199: whole_archive_flag_spec='$convenience'
140200: archive_cmds_need_lc=yes
140201: # This is similar to how AIX traditionally builds its shared libraries.
140202: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
140203: fi
140204: fi
140205: ;;
140206:
140207: amigaos*)
140208: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
140209: hardcode_libdir_flag_spec='-L$libdir'
140210: hardcode_minus_L=yes
140211: # see comment about different semantics on the GNU ld section
140212: ld_shlibs=no
140213: ;;
140214:
140215: bsdi[45]*)
140216: export_dynamic_flag_spec=-rdynamic
140217: ;;
140218:
140219: cygwin* | mingw* | pw32*)
140220: # When not using gcc, we currently assume that we are using
140221: # Microsoft Visual C++.
140222: # hardcode_libdir_flag_spec is actually meaningless, as there is
140223: # no search path for DLLs.
140224: hardcode_libdir_flag_spec=' '
140225: allow_undefined_flag=unsupported
140226: # Tell ltmain to make .lib files, not .a files.
140227: libext=lib
140228: # Tell ltmain to make .dll files, not .so files.
140229: shrext_cmds=".dll"
140230: # FIXME: Setting linknames here is a bad hack.
140231: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
140232: # The linker will automatically build a .lib file if we build a DLL.
140233: old_archive_From_new_cmds='true'
140234: # FIXME: Should let the user specify the lib program.
140235: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
140236: fix_srcfile_path='`cygpath -w "$srcfile"`'
140237: enable_shared_with_static_runtimes=yes
140238: ;;
140239:
140240: darwin* | rhapsody*)
140241: case $host_os in
140242: rhapsody* | darwin1.[012])
140243: allow_undefined_flag='${wl}-undefined ${wl}suppress'
140244: ;;
140245: *) # Darwin 1.3 on
140246: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
140247: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
140248: else
140249: case ${MACOSX_DEPLOYMENT_TARGET} in
140250: 10.[012])
140251: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
140252: ;;
140253: 10.*)
140254: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
140255: ;;
140256: esac
140257: fi
140258: ;;
140259: esac
140260: archive_cmds_need_lc=no
140261: hardcode_direct=no
140262: hardcode_automatic=yes
140263: hardcode_shlibpath_var=unsupported
140264: whole_archive_flag_spec=''
140265: link_all_deplibs=yes
140266: if test "$GCC" = yes ; then
140267: output_verbose_link_cmd='echo'
140268: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
140269: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
140270: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
140271: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
140272: else
140273: case $cc_basename in
140274: xlc*)
140275: output_verbose_link_cmd='echo'
140276: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
140277: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
140278: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
140279: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
140280: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
140281: ;;
140282: *)
140283: ld_shlibs=no
140284: ;;
140285: esac
140286: fi
140287: ;;
140288:
140289: dgux*)
140290: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140291: hardcode_libdir_flag_spec='-L$libdir'
140292: hardcode_shlibpath_var=no
140293: ;;
140294:
1.1.1.3 ! misho 140295: freebsd1*)
1.1 misho 140296: ld_shlibs=no
140297: ;;
140298:
140299: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
140300: # support. Future versions do this automatically, but an explicit c++rt0.o
140301: # does not break anything, and helps significantly (at the cost of a little
140302: # extra space).
140303: freebsd2.2*)
140304: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
140305: hardcode_libdir_flag_spec='-R$libdir'
140306: hardcode_direct=yes
140307: hardcode_shlibpath_var=no
140308: ;;
140309:
140310: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
140311: freebsd2*)
140312: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
140313: hardcode_direct=yes
140314: hardcode_minus_L=yes
140315: hardcode_shlibpath_var=no
140316: ;;
140317:
140318: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
140319: freebsd* | dragonfly*)
140320: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
140321: hardcode_libdir_flag_spec='-R$libdir'
140322: hardcode_direct=yes
140323: hardcode_shlibpath_var=no
140324: ;;
140325:
140326: hpux9*)
140327: if test "$GCC" = yes; then
140328: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
140329: else
140330: archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
140331: fi
140332: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
140333: hardcode_libdir_separator=:
140334: hardcode_direct=yes
140335:
140336: # hardcode_minus_L: Not really in the search PATH,
140337: # but as the default location of the library.
140338: hardcode_minus_L=yes
140339: export_dynamic_flag_spec='${wl}-E'
140340: ;;
140341:
140342: hpux10*)
140343: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
140344: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
140345: else
140346: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
140347: fi
140348: if test "$with_gnu_ld" = no; then
140349: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
140350: hardcode_libdir_separator=:
140351:
140352: hardcode_direct=yes
140353: export_dynamic_flag_spec='${wl}-E'
140354:
140355: # hardcode_minus_L: Not really in the search PATH,
140356: # but as the default location of the library.
140357: hardcode_minus_L=yes
140358: fi
140359: ;;
140360:
140361: hpux11*)
140362: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
140363: case $host_cpu in
140364: hppa*64*)
140365: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
140366: ;;
140367: ia64*)
140368: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
140369: ;;
140370: *)
140371: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
140372: ;;
140373: esac
140374: else
140375: case $host_cpu in
140376: hppa*64*)
140377: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
140378: ;;
140379: ia64*)
140380: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
140381: ;;
140382: *)
140383: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
140384: ;;
140385: esac
140386: fi
140387: if test "$with_gnu_ld" = no; then
140388: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
140389: hardcode_libdir_separator=:
140390:
140391: case $host_cpu in
140392: hppa*64*|ia64*)
140393: hardcode_libdir_flag_spec_ld='+b $libdir'
140394: hardcode_direct=no
140395: hardcode_shlibpath_var=no
140396: ;;
140397: *)
140398: hardcode_direct=yes
140399: export_dynamic_flag_spec='${wl}-E'
140400:
140401: # hardcode_minus_L: Not really in the search PATH,
140402: # but as the default location of the library.
140403: hardcode_minus_L=yes
140404: ;;
140405: esac
140406: fi
140407: ;;
140408:
140409: irix5* | irix6* | nonstopux*)
140410: if test "$GCC" = yes; then
140411: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
140412: else
140413: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
140414: hardcode_libdir_flag_spec_ld='-rpath $libdir'
140415: fi
140416: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
140417: hardcode_libdir_separator=:
140418: link_all_deplibs=yes
140419: ;;
140420:
140421: netbsd*)
140422: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
140423: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
140424: else
140425: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
140426: fi
140427: hardcode_libdir_flag_spec='-R$libdir'
140428: hardcode_direct=yes
140429: hardcode_shlibpath_var=no
140430: ;;
140431:
140432: newsos6)
140433: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140434: hardcode_direct=yes
140435: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
140436: hardcode_libdir_separator=:
140437: hardcode_shlibpath_var=no
140438: ;;
140439:
140440: openbsd*)
140441: if test -f /usr/libexec/ld.so; then
140442: hardcode_direct=yes
140443: hardcode_shlibpath_var=no
140444: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
140445: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
140446: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
140447: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
140448: export_dynamic_flag_spec='${wl}-E'
140449: else
140450: case $host_os in
140451: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
140452: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
140453: hardcode_libdir_flag_spec='-R$libdir'
140454: ;;
140455: *)
140456: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
140457: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
140458: ;;
140459: esac
140460: fi
140461: else
140462: ld_shlibs=no
140463: fi
140464: ;;
140465:
140466: os2*)
140467: hardcode_libdir_flag_spec='-L$libdir'
140468: hardcode_minus_L=yes
140469: allow_undefined_flag=unsupported
140470: archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
140471: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
140472: ;;
140473:
140474: osf3*)
140475: if test "$GCC" = yes; then
140476: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
140477: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
140478: else
140479: allow_undefined_flag=' -expect_unresolved \*'
140480: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
140481: fi
140482: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
140483: hardcode_libdir_separator=:
140484: ;;
140485:
140486: osf4* | osf5*) # as osf3* with the addition of -msym flag
140487: if test "$GCC" = yes; then
140488: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
140489: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
140490: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
140491: else
140492: allow_undefined_flag=' -expect_unresolved \*'
140493: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
140494: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
140495: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
140496:
140497: # Both c and cxx compiler support -rpath directly
140498: hardcode_libdir_flag_spec='-rpath $libdir'
140499: fi
140500: hardcode_libdir_separator=:
140501: ;;
140502:
140503: solaris*)
140504: no_undefined_flag=' -z text'
140505: if test "$GCC" = yes; then
140506: wlarc='${wl}'
140507: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
140508: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
140509: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
140510: else
140511: wlarc=''
140512: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
140513: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
140514: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
140515: fi
140516: hardcode_libdir_flag_spec='-R$libdir'
140517: hardcode_shlibpath_var=no
140518: case $host_os in
140519: solaris2.[0-5] | solaris2.[0-5].*) ;;
140520: *)
140521: # The compiler driver will combine and reorder linker options,
140522: # but understands `-z linker_flag'. GCC discards it without `$wl',
140523: # but is careful enough not to reorder.
140524: # Supported since Solaris 2.6 (maybe 2.5.1?)
140525: if test "$GCC" = yes; then
140526: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
140527: else
140528: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
140529: fi
140530: ;;
140531: esac
140532: link_all_deplibs=yes
140533: ;;
140534:
140535: sunos4*)
140536: if test "x$host_vendor" = xsequent; then
140537: # Use $CC to link under sequent, because it throws in some extra .o
140538: # files that make .init and .fini sections work.
140539: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
140540: else
140541: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
140542: fi
140543: hardcode_libdir_flag_spec='-L$libdir'
140544: hardcode_direct=yes
140545: hardcode_minus_L=yes
140546: hardcode_shlibpath_var=no
140547: ;;
140548:
140549: sysv4)
140550: case $host_vendor in
140551: sni)
140552: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140553: hardcode_direct=yes # is this really true???
140554: ;;
140555: siemens)
140556: ## LD is ld it makes a PLAMLIB
140557: ## CC just makes a GrossModule.
140558: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
140559: reload_cmds='$CC -r -o $output$reload_objs'
140560: hardcode_direct=no
140561: ;;
140562: motorola)
140563: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140564: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
140565: ;;
140566: esac
140567: runpath_var='LD_RUN_PATH'
140568: hardcode_shlibpath_var=no
140569: ;;
140570:
140571: sysv4.3*)
140572: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140573: hardcode_shlibpath_var=no
140574: export_dynamic_flag_spec='-Bexport'
140575: ;;
140576:
140577: sysv4*MP*)
140578: if test -d /usr/nec; then
140579: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140580: hardcode_shlibpath_var=no
140581: runpath_var=LD_RUN_PATH
140582: hardcode_runpath_var=yes
140583: ld_shlibs=yes
140584: fi
140585: ;;
140586:
140587: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
140588: no_undefined_flag='${wl}-z,text'
140589: archive_cmds_need_lc=no
140590: hardcode_shlibpath_var=no
140591: runpath_var='LD_RUN_PATH'
140592:
140593: if test "$GCC" = yes; then
140594: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
140595: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
140596: else
140597: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
140598: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
140599: fi
140600: ;;
140601:
140602: sysv5* | sco3.2v5* | sco5v6*)
140603: # Note: We can NOT use -z defs as we might desire, because we do not
140604: # link with -lc, and that would cause any symbols used from libc to
140605: # always be unresolved, which means just about no library would
140606: # ever link correctly. If we're not using GNU ld we use -z text
140607: # though, which does catch some bad symbols but isn't as heavy-handed
140608: # as -z defs.
140609: no_undefined_flag='${wl}-z,text'
140610: allow_undefined_flag='${wl}-z,nodefs'
140611: archive_cmds_need_lc=no
140612: hardcode_shlibpath_var=no
140613: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
140614: hardcode_libdir_separator=':'
140615: link_all_deplibs=yes
140616: export_dynamic_flag_spec='${wl}-Bexport'
140617: runpath_var='LD_RUN_PATH'
140618:
140619: if test "$GCC" = yes; then
140620: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
140621: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
140622: else
140623: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
140624: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
140625: fi
140626: ;;
140627:
140628: uts4*)
140629: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
140630: hardcode_libdir_flag_spec='-L$libdir'
140631: hardcode_shlibpath_var=no
140632: ;;
140633:
140634: *)
140635: ld_shlibs=no
140636: ;;
140637: esac
140638: fi
140639:
1.1.1.3 ! misho 140640: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 140641: echo "${ECHO_T}$ld_shlibs" >&6; }
1.1 misho 140642: test "$ld_shlibs" = no && can_build_shared=no
140643:
140644: #
140645: # Do we need to explicitly link libc?
140646: #
140647: case "x$archive_cmds_need_lc" in
140648: x|xyes)
140649: # Assume -lc should be added
140650: archive_cmds_need_lc=yes
140651:
140652: if test "$enable_shared" = yes && test "$GCC" = yes; then
140653: case $archive_cmds in
140654: *'~'*)
140655: # FIXME: we may have to deal with multi-command sequences.
140656: ;;
140657: '$CC '*)
140658: # Test whether the compiler implicitly links with -lc since on some
140659: # systems, -lgcc has to come before -lc. If gcc already passes -lc
140660: # to ld, don't add -lc before -lgcc.
1.1.1.3 ! misho 140661: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 140662: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 misho 140663: $rm conftest*
140664: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
140665:
1.1.1.3 ! misho 140666: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 140667: (eval $ac_compile) 2>&5
140668: ac_status=$?
1.1.1.3 ! misho 140669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 140670: (exit $ac_status); } 2>conftest.err; then
1.1 misho 140671: soname=conftest
140672: lib=conftest
140673: libobjs=conftest.$ac_objext
140674: deplibs=
140675: wl=$lt_prog_compiler_wl
140676: pic_flag=$lt_prog_compiler_pic
140677: compiler_flags=-v
140678: linker_flags=-v
140679: verstring=
140680: output_objdir=.
140681: libname=conftest
140682: lt_save_allow_undefined_flag=$allow_undefined_flag
140683: allow_undefined_flag=
1.1.1.3 ! misho 140684: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.1 misho 140685: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
140686: ac_status=$?
1.1.1.3 ! misho 140687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 140688: (exit $ac_status); }
1.1 misho 140689: then
140690: archive_cmds_need_lc=no
140691: else
140692: archive_cmds_need_lc=yes
140693: fi
140694: allow_undefined_flag=$lt_save_allow_undefined_flag
140695: else
140696: cat conftest.err 1>&5
140697: fi
140698: $rm conftest*
1.1.1.3 ! misho 140699: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 140700: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
1.1 misho 140701: ;;
140702: esac
140703: fi
140704: ;;
140705: esac
140706:
1.1.1.3 ! misho 140707: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 140708: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 misho 140709: library_names_spec=
140710: libname_spec='lib$name'
140711: soname_spec=
140712: shrext_cmds=".so"
140713: postinstall_cmds=
140714: postuninstall_cmds=
140715: finish_cmds=
140716: finish_eval=
140717: shlibpath_var=
140718: shlibpath_overrides_runpath=unknown
140719: version_type=none
140720: dynamic_linker="$host_os ld.so"
140721: sys_lib_dlsearch_path_spec="/lib /usr/lib"
140722:
140723: if test "$GCC" = yes; then
140724: case $host_os in
140725: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
140726: *) lt_awk_arg="/^libraries:/" ;;
140727: esac
140728: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
140729: if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
140730: # if the path contains ";" then we assume it to be the separator
140731: # otherwise default to the standard path separator (i.e. ":") - it is
140732: # assumed that no part of a normal pathname contains ";" but that should
140733: # okay in the real world where ";" in dirpaths is itself problematic.
140734: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
140735: else
140736: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
140737: fi
140738: # Ok, now we have the path, separated by spaces, we can step through it
140739: # and add multilib dir if necessary.
140740: lt_tmp_lt_search_path_spec=
140741: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
140742: for lt_sys_path in $lt_search_path_spec; do
140743: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
140744: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
140745: else
140746: test -d "$lt_sys_path" && \
140747: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
140748: fi
140749: done
140750: lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
140751: BEGIN {RS=" "; FS="/|\n";} {
140752: lt_foo="";
140753: lt_count=0;
140754: for (lt_i = NF; lt_i > 0; lt_i--) {
140755: if ($lt_i != "" && $lt_i != ".") {
140756: if ($lt_i == "..") {
140757: lt_count++;
140758: } else {
140759: if (lt_count == 0) {
140760: lt_foo="/" $lt_i lt_foo;
140761: } else {
140762: lt_count--;
140763: }
140764: }
140765: }
140766: }
140767: if (lt_foo != "") { lt_freq[lt_foo]++; }
140768: if (lt_freq[lt_foo] == 1) { print lt_foo; }
140769: }'`
140770: sys_lib_search_path_spec=`echo $lt_search_path_spec`
140771: else
140772: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
140773: fi
140774: need_lib_prefix=unknown
140775: hardcode_into_libs=no
140776:
140777: # when you set need_version to no, make sure it does not cause -set_version
140778: # flags to be left without arguments
140779: need_version=unknown
140780:
140781: case $host_os in
140782: aix3*)
140783: version_type=linux
140784: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
140785: shlibpath_var=LIBPATH
140786:
140787: # AIX 3 has no versioning support, so we append a major version to the name.
140788: soname_spec='${libname}${release}${shared_ext}$major'
140789: ;;
140790:
140791: aix[4-9]*)
140792: version_type=linux
140793: need_lib_prefix=no
140794: need_version=no
140795: hardcode_into_libs=yes
140796: if test "$host_cpu" = ia64; then
140797: # AIX 5 supports IA64
140798: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
140799: shlibpath_var=LD_LIBRARY_PATH
140800: else
140801: # With GCC up to 2.95.x, collect2 would create an import file
140802: # for dependence libraries. The import file would start with
140803: # the line `#! .'. This would cause the generated library to
140804: # depend on `.', always an invalid library. This was fixed in
140805: # development snapshots of GCC prior to 3.0.
140806: case $host_os in
140807: aix4 | aix4.[01] | aix4.[01].*)
140808: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
140809: echo ' yes '
140810: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
140811: :
140812: else
140813: can_build_shared=no
140814: fi
140815: ;;
140816: esac
140817: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
140818: # soname into executable. Probably we can add versioning support to
140819: # collect2, so additional links can be useful in future.
140820: if test "$aix_use_runtimelinking" = yes; then
140821: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
140822: # instead of lib<name>.a to let people know that these are not
140823: # typical AIX shared libraries.
140824: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
140825: else
140826: # We preserve .a as extension for shared libraries through AIX4.2
140827: # and later when we are not doing run time linking.
140828: library_names_spec='${libname}${release}.a $libname.a'
140829: soname_spec='${libname}${release}${shared_ext}$major'
140830: fi
140831: shlibpath_var=LIBPATH
140832: fi
140833: ;;
140834:
140835: amigaos*)
140836: library_names_spec='$libname.ixlibrary $libname.a'
140837: # Create ${libname}_ixlibrary.a entries in /sys/libs.
140838: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
140839: ;;
140840:
140841: beos*)
140842: library_names_spec='${libname}${shared_ext}'
140843: dynamic_linker="$host_os ld.so"
140844: shlibpath_var=LIBRARY_PATH
140845: ;;
140846:
140847: bsdi[45]*)
140848: version_type=linux
140849: need_version=no
140850: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
140851: soname_spec='${libname}${release}${shared_ext}$major'
140852: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
140853: shlibpath_var=LD_LIBRARY_PATH
140854: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
140855: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
140856: # the default ld.so.conf also contains /usr/contrib/lib and
140857: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
140858: # libtool to hard-code these into programs
140859: ;;
140860:
140861: cygwin* | mingw* | pw32*)
140862: version_type=windows
140863: shrext_cmds=".dll"
140864: need_version=no
140865: need_lib_prefix=no
140866:
140867: case $GCC,$host_os in
140868: yes,cygwin* | yes,mingw* | yes,pw32*)
140869: library_names_spec='$libname.dll.a'
140870: # DLL is installed to $(libdir)/../bin by postinstall_cmds
140871: postinstall_cmds='base_file=`basename \${file}`~
140872: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
140873: dldir=$destdir/`dirname \$dlpath`~
140874: test -d \$dldir || mkdir -p \$dldir~
140875: $install_prog $dir/$dlname \$dldir/$dlname~
140876: chmod a+x \$dldir/$dlname'
140877: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
140878: dlpath=$dir/\$dldll~
140879: $rm \$dlpath'
140880: shlibpath_overrides_runpath=yes
140881:
140882: case $host_os in
140883: cygwin*)
140884: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
140885: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
140886: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
140887: ;;
140888: mingw*)
140889: # MinGW DLLs use traditional 'lib' prefix
140890: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
140891: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
140892: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
140893: # It is most probably a Windows format PATH printed by
140894: # mingw gcc, but we are running on Cygwin. Gcc prints its search
140895: # path with ; separators, and with drive letters. We can handle the
140896: # drive letters (cygwin fileutils understands them), so leave them,
140897: # especially as we might pass files found there to a mingw objdump,
140898: # which wouldn't understand a cygwinified path. Ahh.
140899: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
140900: else
140901: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
140902: fi
140903: ;;
140904: pw32*)
140905: # pw32 DLLs use 'pw' prefix rather than 'lib'
140906: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
140907: ;;
140908: esac
140909: ;;
140910:
140911: *)
140912: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
140913: ;;
140914: esac
140915: dynamic_linker='Win32 ld.exe'
140916: # FIXME: first we should search . and the directory the executable is in
140917: shlibpath_var=PATH
140918: ;;
140919:
140920: darwin* | rhapsody*)
140921: dynamic_linker="$host_os dyld"
140922: version_type=darwin
140923: need_lib_prefix=no
140924: need_version=no
140925: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
140926: soname_spec='${libname}${release}${major}$shared_ext'
140927: shlibpath_overrides_runpath=yes
140928: shlibpath_var=DYLD_LIBRARY_PATH
140929: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
140930:
140931: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
140932: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
140933: ;;
140934:
140935: dgux*)
140936: version_type=linux
140937: need_lib_prefix=no
140938: need_version=no
140939: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
140940: soname_spec='${libname}${release}${shared_ext}$major'
140941: shlibpath_var=LD_LIBRARY_PATH
140942: ;;
140943:
1.1.1.3 ! misho 140944: freebsd1*)
1.1 misho 140945: dynamic_linker=no
140946: ;;
140947:
140948: freebsd* | dragonfly*)
140949: # DragonFly does not have aout. When/if they implement a new
140950: # versioning mechanism, adjust this.
140951: if test -x /usr/bin/objformat; then
140952: objformat=`/usr/bin/objformat`
140953: else
140954: case $host_os in
1.1.1.3 ! misho 140955: freebsd[123]*) objformat=aout ;;
1.1 misho 140956: *) objformat=elf ;;
140957: esac
140958: fi
140959: version_type=freebsd-$objformat
140960: case $version_type in
140961: freebsd-elf*)
140962: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
140963: need_version=no
140964: need_lib_prefix=no
140965: ;;
140966: freebsd-*)
140967: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
140968: need_version=yes
140969: ;;
140970: esac
140971: shlibpath_var=LD_LIBRARY_PATH
140972: case $host_os in
140973: freebsd2*)
140974: shlibpath_overrides_runpath=yes
140975: ;;
140976: freebsd3.[01]* | freebsdelf3.[01]*)
140977: shlibpath_overrides_runpath=yes
140978: hardcode_into_libs=yes
140979: ;;
140980: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
140981: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
140982: shlibpath_overrides_runpath=no
140983: hardcode_into_libs=yes
140984: ;;
140985: *) # from 4.6 on, and DragonFly
140986: shlibpath_overrides_runpath=yes
140987: hardcode_into_libs=yes
140988: ;;
140989: esac
140990: ;;
140991:
140992: gnu*)
140993: version_type=linux
140994: need_lib_prefix=no
140995: need_version=no
140996: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
140997: soname_spec='${libname}${release}${shared_ext}$major'
140998: shlibpath_var=LD_LIBRARY_PATH
140999: hardcode_into_libs=yes
141000: ;;
141001:
141002: hpux9* | hpux10* | hpux11*)
141003: # Give a soname corresponding to the major version so that dld.sl refuses to
141004: # link against other versions.
141005: version_type=sunos
141006: need_lib_prefix=no
141007: need_version=no
141008: case $host_cpu in
141009: ia64*)
141010: shrext_cmds='.so'
141011: hardcode_into_libs=yes
141012: dynamic_linker="$host_os dld.so"
141013: shlibpath_var=LD_LIBRARY_PATH
141014: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
141015: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141016: soname_spec='${libname}${release}${shared_ext}$major'
141017: if test "X$HPUX_IA64_MODE" = X32; then
141018: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
141019: else
141020: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
141021: fi
141022: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
141023: ;;
141024: hppa*64*)
141025: shrext_cmds='.sl'
141026: hardcode_into_libs=yes
141027: dynamic_linker="$host_os dld.sl"
141028: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
141029: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
141030: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141031: soname_spec='${libname}${release}${shared_ext}$major'
141032: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
141033: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
141034: ;;
141035: *)
141036: shrext_cmds='.sl'
141037: dynamic_linker="$host_os dld.sl"
141038: shlibpath_var=SHLIB_PATH
141039: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
141040: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141041: soname_spec='${libname}${release}${shared_ext}$major'
141042: ;;
141043: esac
141044: # HP-UX runs *really* slowly unless shared libraries are mode 555.
141045: postinstall_cmds='chmod 555 $lib'
141046: ;;
141047:
141048: interix[3-9]*)
141049: version_type=linux
141050: need_lib_prefix=no
141051: need_version=no
141052: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
141053: soname_spec='${libname}${release}${shared_ext}$major'
141054: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
141055: shlibpath_var=LD_LIBRARY_PATH
141056: shlibpath_overrides_runpath=no
141057: hardcode_into_libs=yes
141058: ;;
141059:
141060: irix5* | irix6* | nonstopux*)
141061: case $host_os in
141062: nonstopux*) version_type=nonstopux ;;
141063: *)
141064: if test "$lt_cv_prog_gnu_ld" = yes; then
141065: version_type=linux
141066: else
141067: version_type=irix
141068: fi ;;
141069: esac
141070: need_lib_prefix=no
141071: need_version=no
141072: soname_spec='${libname}${release}${shared_ext}$major'
141073: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
141074: case $host_os in
141075: irix5* | nonstopux*)
141076: libsuff= shlibsuff=
141077: ;;
141078: *)
141079: case $LD in # libtool.m4 will add one of these switches to LD
141080: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
141081: libsuff= shlibsuff= libmagic=32-bit;;
141082: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
141083: libsuff=32 shlibsuff=N32 libmagic=N32;;
141084: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
141085: libsuff=64 shlibsuff=64 libmagic=64-bit;;
141086: *) libsuff= shlibsuff= libmagic=never-match;;
141087: esac
141088: ;;
141089: esac
141090: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
141091: shlibpath_overrides_runpath=no
141092: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
141093: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
141094: hardcode_into_libs=yes
141095: ;;
141096:
141097: # No shared lib support for Linux oldld, aout, or coff.
141098: linux*oldld* | linux*aout* | linux*coff*)
141099: dynamic_linker=no
141100: ;;
141101:
141102: # This must be Linux ELF.
141103: linux* | k*bsd*-gnu)
141104: version_type=linux
141105: need_lib_prefix=no
141106: need_version=no
141107: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141108: soname_spec='${libname}${release}${shared_ext}$major'
141109: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
141110: shlibpath_var=LD_LIBRARY_PATH
141111: shlibpath_overrides_runpath=no
141112: # This implies no fast_install, which is unacceptable.
141113: # Some rework will be needed to allow for fast_install
141114: # before this can be enabled.
141115: hardcode_into_libs=yes
141116:
141117: # Append ld.so.conf contents to the search path
141118: if test -f /etc/ld.so.conf; then
141119: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
141120: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
141121: fi
141122:
141123: # We used to test for /lib/ld.so.1 and disable shared libraries on
141124: # powerpc, because MkLinux only supported shared libraries with the
141125: # GNU dynamic linker. Since this was broken with cross compilers,
141126: # most powerpc-linux boxes support dynamic linking these days and
141127: # people can always --disable-shared, the test was removed, and we
141128: # assume the GNU/Linux dynamic linker is in use.
141129: dynamic_linker='GNU/Linux ld.so'
141130: ;;
141131:
141132: netbsd*)
141133: version_type=sunos
141134: need_lib_prefix=no
141135: need_version=no
141136: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
141137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
141138: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
141139: dynamic_linker='NetBSD (a.out) ld.so'
141140: else
141141: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
141142: soname_spec='${libname}${release}${shared_ext}$major'
141143: dynamic_linker='NetBSD ld.elf_so'
141144: fi
141145: shlibpath_var=LD_LIBRARY_PATH
141146: shlibpath_overrides_runpath=yes
141147: hardcode_into_libs=yes
141148: ;;
141149:
141150: newsos6)
141151: version_type=linux
141152: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141153: shlibpath_var=LD_LIBRARY_PATH
141154: shlibpath_overrides_runpath=yes
141155: ;;
141156:
141157: nto-qnx*)
141158: version_type=linux
141159: need_lib_prefix=no
141160: need_version=no
141161: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141162: soname_spec='${libname}${release}${shared_ext}$major'
141163: shlibpath_var=LD_LIBRARY_PATH
141164: shlibpath_overrides_runpath=yes
141165: ;;
141166:
141167: openbsd*)
141168: version_type=sunos
141169: sys_lib_dlsearch_path_spec="/usr/lib"
141170: need_lib_prefix=no
141171: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
141172: case $host_os in
141173: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
141174: *) need_version=no ;;
141175: esac
141176: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
141177: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
141178: shlibpath_var=LD_LIBRARY_PATH
141179: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
141180: case $host_os in
141181: openbsd2.[89] | openbsd2.[89].*)
141182: shlibpath_overrides_runpath=no
141183: ;;
141184: *)
141185: shlibpath_overrides_runpath=yes
141186: ;;
141187: esac
141188: else
141189: shlibpath_overrides_runpath=yes
141190: fi
141191: ;;
141192:
141193: os2*)
141194: libname_spec='$name'
141195: shrext_cmds=".dll"
141196: need_lib_prefix=no
141197: library_names_spec='$libname${shared_ext} $libname.a'
141198: dynamic_linker='OS/2 ld.exe'
141199: shlibpath_var=LIBPATH
141200: ;;
141201:
141202: osf3* | osf4* | osf5*)
141203: version_type=osf
141204: need_lib_prefix=no
141205: need_version=no
141206: soname_spec='${libname}${release}${shared_ext}$major'
141207: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141208: shlibpath_var=LD_LIBRARY_PATH
141209: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
141210: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
141211: ;;
141212:
141213: rdos*)
141214: dynamic_linker=no
141215: ;;
141216:
141217: solaris*)
141218: version_type=linux
141219: need_lib_prefix=no
141220: need_version=no
141221: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141222: soname_spec='${libname}${release}${shared_ext}$major'
141223: shlibpath_var=LD_LIBRARY_PATH
141224: shlibpath_overrides_runpath=yes
141225: hardcode_into_libs=yes
141226: # ldd complains unless libraries are executable
141227: postinstall_cmds='chmod +x $lib'
141228: ;;
141229:
141230: sunos4*)
141231: version_type=sunos
141232: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
141233: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
141234: shlibpath_var=LD_LIBRARY_PATH
141235: shlibpath_overrides_runpath=yes
141236: if test "$with_gnu_ld" = yes; then
141237: need_lib_prefix=no
141238: fi
141239: need_version=yes
141240: ;;
141241:
141242: sysv4 | sysv4.3*)
141243: version_type=linux
141244: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141245: soname_spec='${libname}${release}${shared_ext}$major'
141246: shlibpath_var=LD_LIBRARY_PATH
141247: case $host_vendor in
141248: sni)
141249: shlibpath_overrides_runpath=no
141250: need_lib_prefix=no
141251: export_dynamic_flag_spec='${wl}-Blargedynsym'
141252: runpath_var=LD_RUN_PATH
141253: ;;
141254: siemens)
141255: need_lib_prefix=no
141256: ;;
141257: motorola)
141258: need_lib_prefix=no
141259: need_version=no
141260: shlibpath_overrides_runpath=no
141261: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
141262: ;;
141263: esac
141264: ;;
141265:
141266: sysv4*MP*)
141267: if test -d /usr/nec ;then
141268: version_type=linux
141269: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
141270: soname_spec='$libname${shared_ext}.$major'
141271: shlibpath_var=LD_LIBRARY_PATH
141272: fi
141273: ;;
141274:
141275: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
141276: version_type=freebsd-elf
141277: need_lib_prefix=no
141278: need_version=no
141279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
141280: soname_spec='${libname}${release}${shared_ext}$major'
141281: shlibpath_var=LD_LIBRARY_PATH
141282: hardcode_into_libs=yes
141283: if test "$with_gnu_ld" = yes; then
141284: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
141285: shlibpath_overrides_runpath=no
141286: else
141287: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
141288: shlibpath_overrides_runpath=yes
141289: case $host_os in
141290: sco3.2v5*)
141291: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
141292: ;;
141293: esac
141294: fi
141295: sys_lib_dlsearch_path_spec='/usr/lib'
141296: ;;
141297:
141298: uts4*)
141299: version_type=linux
141300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
141301: soname_spec='${libname}${release}${shared_ext}$major'
141302: shlibpath_var=LD_LIBRARY_PATH
141303: ;;
141304:
141305: *)
141306: dynamic_linker=no
141307: ;;
141308: esac
1.1.1.3 ! misho 141309: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 141310: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 misho 141311: test "$dynamic_linker" = no && can_build_shared=no
141312:
1.1.1.3 ! misho 141313: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
! 141314: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141315: else
141316: lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
141317: fi
141318:
141319: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1.1.1.3 ! misho 141320: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
! 141321: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141322: else
141323: lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
141324: fi
141325:
141326: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
141327:
141328: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
141329: if test "$GCC" = yes; then
141330: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
141331: fi
141332:
1.1.1.3 ! misho 141333: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 141334: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
1.1 misho 141335: hardcode_action=
141336: if test -n "$hardcode_libdir_flag_spec" || \
141337: test -n "$runpath_var" || \
141338: test "X$hardcode_automatic" = "Xyes" ; then
141339:
141340: # We can hardcode non-existant directories.
141341: if test "$hardcode_direct" != no &&
141342: # If the only mechanism to avoid hardcoding is shlibpath_var, we
141343: # have to relink, otherwise we might link with an installed library
141344: # when we should be linking with a yet-to-be-installed one
141345: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
141346: test "$hardcode_minus_L" != no; then
141347: # Linking always hardcodes the temporary library directory.
141348: hardcode_action=relink
141349: else
141350: # We can link without hardcoding, and we can hardcode nonexisting dirs.
141351: hardcode_action=immediate
141352: fi
141353: else
141354: # We cannot hardcode anything, or else we can only hardcode existing
141355: # directories.
141356: hardcode_action=unsupported
141357: fi
1.1.1.3 ! misho 141358: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 141359: echo "${ECHO_T}$hardcode_action" >&6; }
1.1 misho 141360:
141361: if test "$hardcode_action" = relink; then
141362: # Fast installation is not supported
141363: enable_fast_install=no
141364: elif test "$shlibpath_overrides_runpath" = yes ||
141365: test "$enable_shared" = no; then
141366: # Fast installation is not necessary
141367: enable_fast_install=needless
141368: fi
141369:
141370: striplib=
141371: old_striplib=
1.1.1.3 ! misho 141372: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 141373: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
1.1 misho 141374: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
141375: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
141376: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.1.1.3 ! misho 141377: { echo "$as_me:$LINENO: result: yes" >&5
! 141378: echo "${ECHO_T}yes" >&6; }
1.1 misho 141379: else
141380: # FIXME - insert some real tests, host_os isn't really good enough
141381: case $host_os in
141382: darwin*)
141383: if test -n "$STRIP" ; then
141384: striplib="$STRIP -x"
141385: old_striplib="$STRIP -S"
1.1.1.3 ! misho 141386: { echo "$as_me:$LINENO: result: yes" >&5
! 141387: echo "${ECHO_T}yes" >&6; }
1.1 misho 141388: else
1.1.1.3 ! misho 141389: { echo "$as_me:$LINENO: result: no" >&5
! 141390: echo "${ECHO_T}no" >&6; }
1.1 misho 141391: fi
141392: ;;
141393: *)
1.1.1.3 ! misho 141394: { echo "$as_me:$LINENO: result: no" >&5
! 141395: echo "${ECHO_T}no" >&6; }
1.1 misho 141396: ;;
141397: esac
141398: fi
141399:
141400: if test "x$enable_dlopen" != xyes; then
141401: enable_dlopen=unknown
141402: enable_dlopen_self=unknown
141403: enable_dlopen_self_static=unknown
141404: else
141405: lt_cv_dlopen=no
141406: lt_cv_dlopen_libs=
141407:
141408: case $host_os in
141409: beos*)
141410: lt_cv_dlopen="load_add_on"
141411: lt_cv_dlopen_libs=
141412: lt_cv_dlopen_self=yes
141413: ;;
141414:
141415: mingw* | pw32*)
141416: lt_cv_dlopen="LoadLibrary"
141417: lt_cv_dlopen_libs=
141418: ;;
141419:
141420: cygwin*)
141421: lt_cv_dlopen="dlopen"
141422: lt_cv_dlopen_libs=
141423: ;;
141424:
141425: darwin*)
141426: # if libdl is installed we need to link against it
1.1.1.3 ! misho 141427: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 141428: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 141429: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 141430: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141431: else
141432: ac_check_lib_save_LIBS=$LIBS
141433: LIBS="-ldl $LIBS"
1.1.1.3 ! misho 141434: cat >conftest.$ac_ext <<_ACEOF
! 141435: /* confdefs.h. */
! 141436: _ACEOF
! 141437: cat confdefs.h >>conftest.$ac_ext
! 141438: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 141439: /* end confdefs.h. */
141440:
141441: /* Override any GCC internal prototype to avoid an error.
141442: Use char because int might match the return type of a GCC
141443: builtin and then its argument prototype would still apply. */
141444: #ifdef __cplusplus
141445: extern "C"
141446: #endif
141447: char dlopen ();
141448: int
141449: main ()
141450: {
141451: return dlopen ();
141452: ;
141453: return 0;
141454: }
141455: _ACEOF
1.1.1.3 ! misho 141456: rm -f conftest.$ac_objext conftest$ac_exeext
! 141457: if { (ac_try="$ac_link"
! 141458: case "(($ac_try" in
! 141459: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141460: *) ac_try_echo=$ac_try;;
! 141461: esac
! 141462: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141463: (eval "$ac_link") 2>conftest.er1
! 141464: ac_status=$?
! 141465: grep -v '^ *+' conftest.er1 >conftest.err
! 141466: rm -f conftest.er1
! 141467: cat conftest.err >&5
! 141468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141469: (exit $ac_status); } && {
! 141470: test -z "$ac_c_werror_flag" ||
! 141471: test ! -s conftest.err
! 141472: } && test -s conftest$ac_exeext &&
! 141473: $as_test_x conftest$ac_exeext; then
1.1 misho 141474: ac_cv_lib_dl_dlopen=yes
141475: else
1.1.1.3 ! misho 141476: echo "$as_me: failed program was:" >&5
! 141477: sed 's/^/| /' conftest.$ac_ext >&5
! 141478:
! 141479: ac_cv_lib_dl_dlopen=no
1.1 misho 141480: fi
1.1.1.3 ! misho 141481:
! 141482: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141483: conftest$ac_exeext conftest.$ac_ext
1.1 misho 141484: LIBS=$ac_check_lib_save_LIBS
141485: fi
1.1.1.3 ! misho 141486: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 141487: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 141488: if test $ac_cv_lib_dl_dlopen = yes; then
1.1 misho 141489: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
141490: else
141491:
141492: lt_cv_dlopen="dyld"
141493: lt_cv_dlopen_libs=
141494: lt_cv_dlopen_self=yes
141495:
141496: fi
141497:
141498: ;;
141499:
141500: *)
1.1.1.3 ! misho 141501: { echo "$as_me:$LINENO: checking for shl_load" >&5
! 141502: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
! 141503: if test "${ac_cv_func_shl_load+set}" = set; then
! 141504: echo $ECHO_N "(cached) $ECHO_C" >&6
! 141505: else
! 141506: cat >conftest.$ac_ext <<_ACEOF
! 141507: /* confdefs.h. */
! 141508: _ACEOF
! 141509: cat confdefs.h >>conftest.$ac_ext
! 141510: cat >>conftest.$ac_ext <<_ACEOF
! 141511: /* end confdefs.h. */
! 141512: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 141513: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 141514: #define shl_load innocuous_shl_load
! 141515:
! 141516: /* System header to define __stub macros and hopefully few prototypes,
! 141517: which can conflict with char shl_load (); below.
! 141518: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 141519: <limits.h> exists even on freestanding compilers. */
! 141520:
! 141521: #ifdef __STDC__
! 141522: # include <limits.h>
! 141523: #else
! 141524: # include <assert.h>
! 141525: #endif
! 141526:
! 141527: #undef shl_load
! 141528:
! 141529: /* Override any GCC internal prototype to avoid an error.
! 141530: Use char because int might match the return type of a GCC
! 141531: builtin and then its argument prototype would still apply. */
! 141532: #ifdef __cplusplus
! 141533: extern "C"
! 141534: #endif
! 141535: char shl_load ();
! 141536: /* The GNU C library defines this for functions which it implements
! 141537: to always fail with ENOSYS. Some functions are actually named
! 141538: something starting with __ and the normal name is an alias. */
! 141539: #if defined __stub_shl_load || defined __stub___shl_load
! 141540: choke me
! 141541: #endif
! 141542:
! 141543: int
! 141544: main ()
! 141545: {
! 141546: return shl_load ();
! 141547: ;
! 141548: return 0;
! 141549: }
! 141550: _ACEOF
! 141551: rm -f conftest.$ac_objext conftest$ac_exeext
! 141552: if { (ac_try="$ac_link"
! 141553: case "(($ac_try" in
! 141554: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141555: *) ac_try_echo=$ac_try;;
! 141556: esac
! 141557: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141558: (eval "$ac_link") 2>conftest.er1
! 141559: ac_status=$?
! 141560: grep -v '^ *+' conftest.er1 >conftest.err
! 141561: rm -f conftest.er1
! 141562: cat conftest.err >&5
! 141563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141564: (exit $ac_status); } && {
! 141565: test -z "$ac_c_werror_flag" ||
! 141566: test ! -s conftest.err
! 141567: } && test -s conftest$ac_exeext &&
! 141568: $as_test_x conftest$ac_exeext; then
! 141569: ac_cv_func_shl_load=yes
! 141570: else
! 141571: echo "$as_me: failed program was:" >&5
! 141572: sed 's/^/| /' conftest.$ac_ext >&5
! 141573:
! 141574: ac_cv_func_shl_load=no
! 141575: fi
! 141576:
! 141577: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141578: conftest$ac_exeext conftest.$ac_ext
! 141579: fi
! 141580: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 141581: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
! 141582: if test $ac_cv_func_shl_load = yes; then
1.1 misho 141583: lt_cv_dlopen="shl_load"
141584: else
1.1.1.3 ! misho 141585: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 141586: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
! 141587: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 141588: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141589: else
141590: ac_check_lib_save_LIBS=$LIBS
141591: LIBS="-ldld $LIBS"
1.1.1.3 ! misho 141592: cat >conftest.$ac_ext <<_ACEOF
! 141593: /* confdefs.h. */
! 141594: _ACEOF
! 141595: cat confdefs.h >>conftest.$ac_ext
! 141596: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 141597: /* end confdefs.h. */
141598:
141599: /* Override any GCC internal prototype to avoid an error.
141600: Use char because int might match the return type of a GCC
141601: builtin and then its argument prototype would still apply. */
141602: #ifdef __cplusplus
141603: extern "C"
141604: #endif
141605: char shl_load ();
141606: int
141607: main ()
141608: {
141609: return shl_load ();
141610: ;
141611: return 0;
141612: }
141613: _ACEOF
1.1.1.3 ! misho 141614: rm -f conftest.$ac_objext conftest$ac_exeext
! 141615: if { (ac_try="$ac_link"
! 141616: case "(($ac_try" in
! 141617: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141618: *) ac_try_echo=$ac_try;;
! 141619: esac
! 141620: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141621: (eval "$ac_link") 2>conftest.er1
! 141622: ac_status=$?
! 141623: grep -v '^ *+' conftest.er1 >conftest.err
! 141624: rm -f conftest.er1
! 141625: cat conftest.err >&5
! 141626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141627: (exit $ac_status); } && {
! 141628: test -z "$ac_c_werror_flag" ||
! 141629: test ! -s conftest.err
! 141630: } && test -s conftest$ac_exeext &&
! 141631: $as_test_x conftest$ac_exeext; then
1.1 misho 141632: ac_cv_lib_dld_shl_load=yes
141633: else
1.1.1.3 ! misho 141634: echo "$as_me: failed program was:" >&5
! 141635: sed 's/^/| /' conftest.$ac_ext >&5
! 141636:
! 141637: ac_cv_lib_dld_shl_load=no
1.1 misho 141638: fi
1.1.1.3 ! misho 141639:
! 141640: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141641: conftest$ac_exeext conftest.$ac_ext
1.1 misho 141642: LIBS=$ac_check_lib_save_LIBS
141643: fi
1.1.1.3 ! misho 141644: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 141645: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
! 141646: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 misho 141647: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
141648: else
1.1.1.3 ! misho 141649: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 141650: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
! 141651: if test "${ac_cv_func_dlopen+set}" = set; then
! 141652: echo $ECHO_N "(cached) $ECHO_C" >&6
! 141653: else
! 141654: cat >conftest.$ac_ext <<_ACEOF
! 141655: /* confdefs.h. */
! 141656: _ACEOF
! 141657: cat confdefs.h >>conftest.$ac_ext
! 141658: cat >>conftest.$ac_ext <<_ACEOF
! 141659: /* end confdefs.h. */
! 141660: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 141661: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 141662: #define dlopen innocuous_dlopen
! 141663:
! 141664: /* System header to define __stub macros and hopefully few prototypes,
! 141665: which can conflict with char dlopen (); below.
! 141666: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 141667: <limits.h> exists even on freestanding compilers. */
! 141668:
! 141669: #ifdef __STDC__
! 141670: # include <limits.h>
! 141671: #else
! 141672: # include <assert.h>
! 141673: #endif
! 141674:
! 141675: #undef dlopen
! 141676:
! 141677: /* Override any GCC internal prototype to avoid an error.
! 141678: Use char because int might match the return type of a GCC
! 141679: builtin and then its argument prototype would still apply. */
! 141680: #ifdef __cplusplus
! 141681: extern "C"
! 141682: #endif
! 141683: char dlopen ();
! 141684: /* The GNU C library defines this for functions which it implements
! 141685: to always fail with ENOSYS. Some functions are actually named
! 141686: something starting with __ and the normal name is an alias. */
! 141687: #if defined __stub_dlopen || defined __stub___dlopen
! 141688: choke me
! 141689: #endif
! 141690:
! 141691: int
! 141692: main ()
! 141693: {
! 141694: return dlopen ();
! 141695: ;
! 141696: return 0;
! 141697: }
! 141698: _ACEOF
! 141699: rm -f conftest.$ac_objext conftest$ac_exeext
! 141700: if { (ac_try="$ac_link"
! 141701: case "(($ac_try" in
! 141702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141703: *) ac_try_echo=$ac_try;;
! 141704: esac
! 141705: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141706: (eval "$ac_link") 2>conftest.er1
! 141707: ac_status=$?
! 141708: grep -v '^ *+' conftest.er1 >conftest.err
! 141709: rm -f conftest.er1
! 141710: cat conftest.err >&5
! 141711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141712: (exit $ac_status); } && {
! 141713: test -z "$ac_c_werror_flag" ||
! 141714: test ! -s conftest.err
! 141715: } && test -s conftest$ac_exeext &&
! 141716: $as_test_x conftest$ac_exeext; then
! 141717: ac_cv_func_dlopen=yes
! 141718: else
! 141719: echo "$as_me: failed program was:" >&5
! 141720: sed 's/^/| /' conftest.$ac_ext >&5
! 141721:
! 141722: ac_cv_func_dlopen=no
! 141723: fi
! 141724:
! 141725: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141726: conftest$ac_exeext conftest.$ac_ext
! 141727: fi
! 141728: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 141729: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
! 141730: if test $ac_cv_func_dlopen = yes; then
1.1 misho 141731: lt_cv_dlopen="dlopen"
141732: else
1.1.1.3 ! misho 141733: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 141734: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 141735: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 141736: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141737: else
141738: ac_check_lib_save_LIBS=$LIBS
141739: LIBS="-ldl $LIBS"
1.1.1.3 ! misho 141740: cat >conftest.$ac_ext <<_ACEOF
! 141741: /* confdefs.h. */
! 141742: _ACEOF
! 141743: cat confdefs.h >>conftest.$ac_ext
! 141744: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 141745: /* end confdefs.h. */
141746:
141747: /* Override any GCC internal prototype to avoid an error.
141748: Use char because int might match the return type of a GCC
141749: builtin and then its argument prototype would still apply. */
141750: #ifdef __cplusplus
141751: extern "C"
141752: #endif
141753: char dlopen ();
141754: int
141755: main ()
141756: {
141757: return dlopen ();
141758: ;
141759: return 0;
141760: }
141761: _ACEOF
1.1.1.3 ! misho 141762: rm -f conftest.$ac_objext conftest$ac_exeext
! 141763: if { (ac_try="$ac_link"
! 141764: case "(($ac_try" in
! 141765: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141766: *) ac_try_echo=$ac_try;;
! 141767: esac
! 141768: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141769: (eval "$ac_link") 2>conftest.er1
! 141770: ac_status=$?
! 141771: grep -v '^ *+' conftest.er1 >conftest.err
! 141772: rm -f conftest.er1
! 141773: cat conftest.err >&5
! 141774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141775: (exit $ac_status); } && {
! 141776: test -z "$ac_c_werror_flag" ||
! 141777: test ! -s conftest.err
! 141778: } && test -s conftest$ac_exeext &&
! 141779: $as_test_x conftest$ac_exeext; then
1.1 misho 141780: ac_cv_lib_dl_dlopen=yes
141781: else
1.1.1.3 ! misho 141782: echo "$as_me: failed program was:" >&5
! 141783: sed 's/^/| /' conftest.$ac_ext >&5
! 141784:
! 141785: ac_cv_lib_dl_dlopen=no
1.1 misho 141786: fi
1.1.1.3 ! misho 141787:
! 141788: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141789: conftest$ac_exeext conftest.$ac_ext
1.1 misho 141790: LIBS=$ac_check_lib_save_LIBS
141791: fi
1.1.1.3 ! misho 141792: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 141793: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 141794: if test $ac_cv_lib_dl_dlopen = yes; then
1.1 misho 141795: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
141796: else
1.1.1.3 ! misho 141797: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 141798: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
! 141799: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 141800: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141801: else
141802: ac_check_lib_save_LIBS=$LIBS
141803: LIBS="-lsvld $LIBS"
1.1.1.3 ! misho 141804: cat >conftest.$ac_ext <<_ACEOF
! 141805: /* confdefs.h. */
! 141806: _ACEOF
! 141807: cat confdefs.h >>conftest.$ac_ext
! 141808: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 141809: /* end confdefs.h. */
141810:
141811: /* Override any GCC internal prototype to avoid an error.
141812: Use char because int might match the return type of a GCC
141813: builtin and then its argument prototype would still apply. */
141814: #ifdef __cplusplus
141815: extern "C"
141816: #endif
141817: char dlopen ();
141818: int
141819: main ()
141820: {
141821: return dlopen ();
141822: ;
141823: return 0;
141824: }
141825: _ACEOF
1.1.1.3 ! misho 141826: rm -f conftest.$ac_objext conftest$ac_exeext
! 141827: if { (ac_try="$ac_link"
! 141828: case "(($ac_try" in
! 141829: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141830: *) ac_try_echo=$ac_try;;
! 141831: esac
! 141832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141833: (eval "$ac_link") 2>conftest.er1
! 141834: ac_status=$?
! 141835: grep -v '^ *+' conftest.er1 >conftest.err
! 141836: rm -f conftest.er1
! 141837: cat conftest.err >&5
! 141838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141839: (exit $ac_status); } && {
! 141840: test -z "$ac_c_werror_flag" ||
! 141841: test ! -s conftest.err
! 141842: } && test -s conftest$ac_exeext &&
! 141843: $as_test_x conftest$ac_exeext; then
1.1 misho 141844: ac_cv_lib_svld_dlopen=yes
141845: else
1.1.1.3 ! misho 141846: echo "$as_me: failed program was:" >&5
! 141847: sed 's/^/| /' conftest.$ac_ext >&5
! 141848:
! 141849: ac_cv_lib_svld_dlopen=no
1.1 misho 141850: fi
1.1.1.3 ! misho 141851:
! 141852: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141853: conftest$ac_exeext conftest.$ac_ext
1.1 misho 141854: LIBS=$ac_check_lib_save_LIBS
141855: fi
1.1.1.3 ! misho 141856: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 141857: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
! 141858: if test $ac_cv_lib_svld_dlopen = yes; then
1.1 misho 141859: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
141860: else
1.1.1.3 ! misho 141861: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 141862: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
! 141863: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 141864: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141865: else
141866: ac_check_lib_save_LIBS=$LIBS
141867: LIBS="-ldld $LIBS"
1.1.1.3 ! misho 141868: cat >conftest.$ac_ext <<_ACEOF
! 141869: /* confdefs.h. */
! 141870: _ACEOF
! 141871: cat confdefs.h >>conftest.$ac_ext
! 141872: cat >>conftest.$ac_ext <<_ACEOF
1.1 misho 141873: /* end confdefs.h. */
141874:
141875: /* Override any GCC internal prototype to avoid an error.
141876: Use char because int might match the return type of a GCC
141877: builtin and then its argument prototype would still apply. */
141878: #ifdef __cplusplus
141879: extern "C"
141880: #endif
141881: char dld_link ();
141882: int
141883: main ()
141884: {
141885: return dld_link ();
141886: ;
141887: return 0;
141888: }
141889: _ACEOF
1.1.1.3 ! misho 141890: rm -f conftest.$ac_objext conftest$ac_exeext
! 141891: if { (ac_try="$ac_link"
! 141892: case "(($ac_try" in
! 141893: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 141894: *) ac_try_echo=$ac_try;;
! 141895: esac
! 141896: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 141897: (eval "$ac_link") 2>conftest.er1
! 141898: ac_status=$?
! 141899: grep -v '^ *+' conftest.er1 >conftest.err
! 141900: rm -f conftest.er1
! 141901: cat conftest.err >&5
! 141902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 141903: (exit $ac_status); } && {
! 141904: test -z "$ac_c_werror_flag" ||
! 141905: test ! -s conftest.err
! 141906: } && test -s conftest$ac_exeext &&
! 141907: $as_test_x conftest$ac_exeext; then
1.1 misho 141908: ac_cv_lib_dld_dld_link=yes
141909: else
1.1.1.3 ! misho 141910: echo "$as_me: failed program was:" >&5
! 141911: sed 's/^/| /' conftest.$ac_ext >&5
! 141912:
! 141913: ac_cv_lib_dld_dld_link=no
1.1 misho 141914: fi
1.1.1.3 ! misho 141915:
! 141916: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 141917: conftest$ac_exeext conftest.$ac_ext
1.1 misho 141918: LIBS=$ac_check_lib_save_LIBS
141919: fi
1.1.1.3 ! misho 141920: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 141921: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
! 141922: if test $ac_cv_lib_dld_dld_link = yes; then
1.1 misho 141923: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
141924: fi
141925:
141926:
141927: fi
141928:
141929:
141930: fi
141931:
141932:
141933: fi
141934:
141935:
141936: fi
141937:
141938:
141939: fi
141940:
141941: ;;
141942: esac
141943:
141944: if test "x$lt_cv_dlopen" != xno; then
141945: enable_dlopen=yes
141946: else
141947: enable_dlopen=no
141948: fi
141949:
141950: case $lt_cv_dlopen in
141951: dlopen)
141952: save_CPPFLAGS="$CPPFLAGS"
141953: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
141954:
141955: save_LDFLAGS="$LDFLAGS"
141956: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
141957:
141958: save_LIBS="$LIBS"
141959: LIBS="$lt_cv_dlopen_libs $LIBS"
141960:
1.1.1.3 ! misho 141961: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 141962: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
! 141963: if test "${lt_cv_dlopen_self+set}" = set; then
! 141964: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 141965: else
141966: if test "$cross_compiling" = yes; then :
141967: lt_cv_dlopen_self=cross
141968: else
141969: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
141970: lt_status=$lt_dlunknown
141971: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 141972: #line 141972 "configure"
1.1 misho 141973: #include "confdefs.h"
141974:
141975: #if HAVE_DLFCN_H
141976: #include <dlfcn.h>
141977: #endif
141978:
141979: #include <stdio.h>
141980:
141981: #ifdef RTLD_GLOBAL
141982: # define LT_DLGLOBAL RTLD_GLOBAL
141983: #else
141984: # ifdef DL_GLOBAL
141985: # define LT_DLGLOBAL DL_GLOBAL
141986: # else
141987: # define LT_DLGLOBAL 0
141988: # endif
141989: #endif
141990:
141991: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
141992: find out it does not work in some platform. */
141993: #ifndef LT_DLLAZY_OR_NOW
141994: # ifdef RTLD_LAZY
141995: # define LT_DLLAZY_OR_NOW RTLD_LAZY
141996: # else
141997: # ifdef DL_LAZY
141998: # define LT_DLLAZY_OR_NOW DL_LAZY
141999: # else
142000: # ifdef RTLD_NOW
142001: # define LT_DLLAZY_OR_NOW RTLD_NOW
142002: # else
142003: # ifdef DL_NOW
142004: # define LT_DLLAZY_OR_NOW DL_NOW
142005: # else
142006: # define LT_DLLAZY_OR_NOW 0
142007: # endif
142008: # endif
142009: # endif
142010: # endif
142011: #endif
142012:
142013: #ifdef __cplusplus
142014: extern "C" void exit (int);
142015: #endif
142016:
142017: void fnord() { int i=42;}
142018: int main ()
142019: {
142020: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
142021: int status = $lt_dlunknown;
142022:
142023: if (self)
142024: {
142025: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
142026: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
142027: /* dlclose (self); */
142028: }
142029: else
142030: puts (dlerror ());
142031:
142032: exit (status);
142033: }
142034: EOF
1.1.1.3 ! misho 142035: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 142036: (eval $ac_link) 2>&5
142037: ac_status=$?
1.1.1.3 ! misho 142038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 142039: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1 misho 142040: (./conftest; exit; ) >&5 2>/dev/null
142041: lt_status=$?
142042: case x$lt_status in
142043: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
142044: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
142045: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
142046: esac
142047: else :
142048: # compilation failed
142049: lt_cv_dlopen_self=no
142050: fi
142051: fi
142052: rm -fr conftest*
142053:
142054:
142055: fi
1.1.1.3 ! misho 142056: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 142057: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.1 misho 142058:
142059: if test "x$lt_cv_dlopen_self" = xyes; then
142060: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.1.1.3 ! misho 142061: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 142062: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
! 142063: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 142064: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 142065: else
142066: if test "$cross_compiling" = yes; then :
142067: lt_cv_dlopen_self_static=cross
142068: else
142069: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
142070: lt_status=$lt_dlunknown
142071: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 142072: #line 142072 "configure"
1.1 misho 142073: #include "confdefs.h"
142074:
142075: #if HAVE_DLFCN_H
142076: #include <dlfcn.h>
142077: #endif
142078:
142079: #include <stdio.h>
142080:
142081: #ifdef RTLD_GLOBAL
142082: # define LT_DLGLOBAL RTLD_GLOBAL
142083: #else
142084: # ifdef DL_GLOBAL
142085: # define LT_DLGLOBAL DL_GLOBAL
142086: # else
142087: # define LT_DLGLOBAL 0
142088: # endif
142089: #endif
142090:
142091: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
142092: find out it does not work in some platform. */
142093: #ifndef LT_DLLAZY_OR_NOW
142094: # ifdef RTLD_LAZY
142095: # define LT_DLLAZY_OR_NOW RTLD_LAZY
142096: # else
142097: # ifdef DL_LAZY
142098: # define LT_DLLAZY_OR_NOW DL_LAZY
142099: # else
142100: # ifdef RTLD_NOW
142101: # define LT_DLLAZY_OR_NOW RTLD_NOW
142102: # else
142103: # ifdef DL_NOW
142104: # define LT_DLLAZY_OR_NOW DL_NOW
142105: # else
142106: # define LT_DLLAZY_OR_NOW 0
142107: # endif
142108: # endif
142109: # endif
142110: # endif
142111: #endif
142112:
142113: #ifdef __cplusplus
142114: extern "C" void exit (int);
142115: #endif
142116:
142117: void fnord() { int i=42;}
142118: int main ()
142119: {
142120: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
142121: int status = $lt_dlunknown;
142122:
142123: if (self)
142124: {
142125: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
142126: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
142127: /* dlclose (self); */
142128: }
142129: else
142130: puts (dlerror ());
142131:
142132: exit (status);
142133: }
142134: EOF
1.1.1.3 ! misho 142135: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 142136: (eval $ac_link) 2>&5
142137: ac_status=$?
1.1.1.3 ! misho 142138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 142139: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1 misho 142140: (./conftest; exit; ) >&5 2>/dev/null
142141: lt_status=$?
142142: case x$lt_status in
142143: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
142144: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
142145: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
142146: esac
142147: else :
142148: # compilation failed
142149: lt_cv_dlopen_self_static=no
142150: fi
142151: fi
142152: rm -fr conftest*
142153:
142154:
142155: fi
1.1.1.3 ! misho 142156: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 142157: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
1.1 misho 142158: fi
142159:
142160: CPPFLAGS="$save_CPPFLAGS"
142161: LDFLAGS="$save_LDFLAGS"
142162: LIBS="$save_LIBS"
142163: ;;
142164: esac
142165:
142166: case $lt_cv_dlopen_self in
142167: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
142168: *) enable_dlopen_self=unknown ;;
142169: esac
142170:
142171: case $lt_cv_dlopen_self_static in
142172: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
142173: *) enable_dlopen_self_static=unknown ;;
142174: esac
142175: fi
142176:
142177:
142178: # Report which library types will actually be built
1.1.1.3 ! misho 142179: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 142180: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 142181: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 142182: echo "${ECHO_T}$can_build_shared" >&6; }
1.1 misho 142183:
1.1.1.3 ! misho 142184: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 142185: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
1.1 misho 142186: test "$can_build_shared" = "no" && enable_shared=no
142187:
142188: # On AIX, shared libraries and static libraries use the same namespace, and
142189: # are all built from PIC.
142190: case $host_os in
142191: aix3*)
142192: test "$enable_shared" = yes && enable_static=no
142193: if test -n "$RANLIB"; then
142194: archive_cmds="$archive_cmds~\$RANLIB \$lib"
142195: postinstall_cmds='$RANLIB $lib'
142196: fi
142197: ;;
142198:
142199: aix[4-9]*)
142200: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
142201: test "$enable_shared" = yes && enable_static=no
142202: fi
142203: ;;
142204: esac
1.1.1.3 ! misho 142205: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 142206: echo "${ECHO_T}$enable_shared" >&6; }
1.1 misho 142207:
1.1.1.3 ! misho 142208: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 142209: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
1.1 misho 142210: # Make sure either enable_shared or enable_static is yes.
142211: test "$enable_shared" = yes || enable_static=yes
1.1.1.3 ! misho 142212: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 142213: echo "${ECHO_T}$enable_static" >&6; }
1.1 misho 142214:
142215: # The else clause should only fire when bootstrapping the
142216: # libtool distribution, otherwise you forgot to ship ltmain.sh
142217: # with your package, and you will get complaints that there are
142218: # no rules to generate ltmain.sh.
142219: if test -f "$ltmain"; then
142220: # See if we are running on zsh, and set the options which allow our commands through
142221: # without removal of \ escapes.
142222: if test -n "${ZSH_VERSION+set}" ; then
142223: setopt NO_GLOB_SUBST
142224: fi
142225: # Now quote all the things that may contain metacharacters while being
142226: # careful not to overquote the AC_SUBSTed values. We take copies of the
142227: # variables and quote the copies for generation of the libtool script.
142228: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
142229: SED SHELL STRIP \
142230: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
142231: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
142232: deplibs_check_method reload_flag reload_cmds need_locks \
142233: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
142234: lt_cv_sys_global_symbol_to_c_name_address \
142235: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
142236: old_postinstall_cmds old_postuninstall_cmds \
142237: compiler \
142238: CC \
142239: LD \
142240: lt_prog_compiler_wl \
142241: lt_prog_compiler_pic \
142242: lt_prog_compiler_static \
142243: lt_prog_compiler_no_builtin_flag \
142244: export_dynamic_flag_spec \
142245: thread_safe_flag_spec \
142246: whole_archive_flag_spec \
142247: enable_shared_with_static_runtimes \
142248: old_archive_cmds \
142249: old_archive_from_new_cmds \
142250: predep_objects \
142251: postdep_objects \
142252: predeps \
142253: postdeps \
142254: compiler_lib_search_path \
142255: compiler_lib_search_dirs \
142256: archive_cmds \
142257: archive_expsym_cmds \
142258: postinstall_cmds \
142259: postuninstall_cmds \
142260: old_archive_from_expsyms_cmds \
142261: allow_undefined_flag \
142262: no_undefined_flag \
142263: export_symbols_cmds \
142264: hardcode_libdir_flag_spec \
142265: hardcode_libdir_flag_spec_ld \
142266: hardcode_libdir_separator \
142267: hardcode_automatic \
142268: module_cmds \
142269: module_expsym_cmds \
142270: lt_cv_prog_compiler_c_o \
142271: fix_srcfile_path \
142272: exclude_expsyms \
142273: include_expsyms; do
142274:
142275: case $var in
142276: old_archive_cmds | \
142277: old_archive_from_new_cmds | \
142278: archive_cmds | \
142279: archive_expsym_cmds | \
142280: module_cmds | \
142281: module_expsym_cmds | \
142282: old_archive_from_expsyms_cmds | \
142283: export_symbols_cmds | \
142284: extract_expsyms_cmds | reload_cmds | finish_cmds | \
142285: postinstall_cmds | postuninstall_cmds | \
142286: old_postinstall_cmds | old_postuninstall_cmds | \
142287: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
142288: # Double-quote double-evaled strings.
142289: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
142290: ;;
142291: *)
142292: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
142293: ;;
142294: esac
142295: done
142296:
142297: case $lt_echo in
142298: *'\$0 --fallback-echo"')
142299: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
142300: ;;
142301: esac
142302:
142303: cfgfile="${ofile}T"
142304: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
142305: $rm -f "$cfgfile"
1.1.1.3 ! misho 142306: { echo "$as_me:$LINENO: result:
1.1 misho 142307: creating $ofile" >&5
1.1.1.3 ! misho 142308: echo "${ECHO_T}
1.1 misho 142309: creating $ofile" >&6; }
142310:
142311: cat <<__EOF__ >> "$cfgfile"
142312: #! $SHELL
142313:
142314: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
142315: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
142316: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
142317: #
142318: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
142319: # Free Software Foundation, Inc.
142320: #
142321: # This file is part of GNU Libtool:
142322: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
142323: #
142324: # This program is free software; you can redistribute it and/or modify
142325: # it under the terms of the GNU General Public License as published by
142326: # the Free Software Foundation; either version 2 of the License, or
142327: # (at your option) any later version.
142328: #
142329: # This program is distributed in the hope that it will be useful, but
142330: # WITHOUT ANY WARRANTY; without even the implied warranty of
142331: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
142332: # General Public License for more details.
142333: #
142334: # You should have received a copy of the GNU General Public License
142335: # along with this program; if not, write to the Free Software
142336: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
142337: #
142338: # As a special exception to the GNU General Public License, if you
142339: # distribute this file as part of a program that contains a
142340: # configuration script generated by Autoconf, you may include it under
142341: # the same distribution terms that you use for the rest of that program.
142342:
142343: # A sed program that does not truncate output.
142344: SED=$lt_SED
142345:
142346: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
142347: Xsed="$SED -e 1s/^X//"
142348:
142349: # The HP-UX ksh and POSIX shell print the target directory to stdout
142350: # if CDPATH is set.
142351: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142352:
142353: # The names of the tagged configurations supported by this script.
142354: available_tags=
142355:
142356: # ### BEGIN LIBTOOL CONFIG
142357:
142358: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
142359:
142360: # Shell to use when invoking shell scripts.
142361: SHELL=$lt_SHELL
142362:
142363: # Whether or not to build shared libraries.
142364: build_libtool_libs=$enable_shared
142365:
142366: # Whether or not to build static libraries.
142367: build_old_libs=$enable_static
142368:
142369: # Whether or not to add -lc for building shared libraries.
142370: build_libtool_need_lc=$archive_cmds_need_lc
142371:
142372: # Whether or not to disallow shared libs when runtime libs are static
142373: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
142374:
142375: # Whether or not to optimize for fast installation.
142376: fast_install=$enable_fast_install
142377:
142378: # The host system.
142379: host_alias=$host_alias
142380: host=$host
142381: host_os=$host_os
142382:
142383: # The build system.
142384: build_alias=$build_alias
142385: build=$build
142386: build_os=$build_os
142387:
142388: # An echo program that does not interpret backslashes.
142389: echo=$lt_echo
142390:
142391: # The archiver.
142392: AR=$lt_AR
142393: AR_FLAGS=$lt_AR_FLAGS
142394:
142395: # A C compiler.
142396: LTCC=$lt_LTCC
142397:
142398: # LTCC compiler flags.
142399: LTCFLAGS=$lt_LTCFLAGS
142400:
142401: # A language-specific compiler.
142402: CC=$lt_compiler
142403:
142404: # Is the compiler the GNU C compiler?
142405: with_gcc=$GCC
142406:
142407: # An ERE matcher.
142408: EGREP=$lt_EGREP
142409:
142410: # The linker used to build libraries.
142411: LD=$lt_LD
142412:
142413: # Whether we need hard or soft links.
142414: LN_S=$lt_LN_S
142415:
142416: # A BSD-compatible nm program.
142417: NM=$lt_NM
142418:
142419: # A symbol stripping program
142420: STRIP=$lt_STRIP
142421:
142422: # Used to examine libraries when file_magic_cmd begins "file"
142423: MAGIC_CMD=$MAGIC_CMD
142424:
142425: # Used on cygwin: DLL creation program.
142426: DLLTOOL="$DLLTOOL"
142427:
142428: # Used on cygwin: object dumper.
142429: OBJDUMP="$OBJDUMP"
142430:
142431: # Used on cygwin: assembler.
142432: AS="$AS"
142433:
142434: # The name of the directory that contains temporary libtool files.
142435: objdir=$objdir
142436:
142437: # How to create reloadable object files.
142438: reload_flag=$lt_reload_flag
142439: reload_cmds=$lt_reload_cmds
142440:
142441: # How to pass a linker flag through the compiler.
142442: wl=$lt_lt_prog_compiler_wl
142443:
142444: # Object file suffix (normally "o").
142445: objext="$ac_objext"
142446:
142447: # Old archive suffix (normally "a").
142448: libext="$libext"
142449:
142450: # Shared library suffix (normally ".so").
142451: shrext_cmds='$shrext_cmds'
142452:
142453: # Executable file suffix (normally "").
142454: exeext="$exeext"
142455:
142456: # Additional compiler flags for building library objects.
142457: pic_flag=$lt_lt_prog_compiler_pic
142458: pic_mode=$pic_mode
142459:
142460: # What is the maximum length of a command?
142461: max_cmd_len=$lt_cv_sys_max_cmd_len
142462:
142463: # Does compiler simultaneously support -c and -o options?
142464: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
142465:
142466: # Must we lock files when doing compilation?
142467: need_locks=$lt_need_locks
142468:
142469: # Do we need the lib prefix for modules?
142470: need_lib_prefix=$need_lib_prefix
142471:
142472: # Do we need a version for libraries?
142473: need_version=$need_version
142474:
142475: # Whether dlopen is supported.
142476: dlopen_support=$enable_dlopen
142477:
142478: # Whether dlopen of programs is supported.
142479: dlopen_self=$enable_dlopen_self
142480:
142481: # Whether dlopen of statically linked programs is supported.
142482: dlopen_self_static=$enable_dlopen_self_static
142483:
142484: # Compiler flag to prevent dynamic linking.
142485: link_static_flag=$lt_lt_prog_compiler_static
142486:
142487: # Compiler flag to turn off builtin functions.
142488: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
142489:
142490: # Compiler flag to allow reflexive dlopens.
142491: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
142492:
142493: # Compiler flag to generate shared objects directly from archives.
142494: whole_archive_flag_spec=$lt_whole_archive_flag_spec
142495:
142496: # Compiler flag to generate thread-safe objects.
142497: thread_safe_flag_spec=$lt_thread_safe_flag_spec
142498:
142499: # Library versioning type.
142500: version_type=$version_type
142501:
142502: # Format of library name prefix.
142503: libname_spec=$lt_libname_spec
142504:
142505: # List of archive names. First name is the real one, the rest are links.
142506: # The last name is the one that the linker finds with -lNAME.
142507: library_names_spec=$lt_library_names_spec
142508:
142509: # The coded name of the library, if different from the real name.
142510: soname_spec=$lt_soname_spec
142511:
142512: # Commands used to build and install an old-style archive.
142513: RANLIB=$lt_RANLIB
142514: old_archive_cmds=$lt_old_archive_cmds
142515: old_postinstall_cmds=$lt_old_postinstall_cmds
142516: old_postuninstall_cmds=$lt_old_postuninstall_cmds
142517:
142518: # Create an old-style archive from a shared archive.
142519: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
142520:
142521: # Create a temporary old-style archive to link instead of a shared archive.
142522: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
142523:
142524: # Commands used to build and install a shared archive.
142525: archive_cmds=$lt_archive_cmds
142526: archive_expsym_cmds=$lt_archive_expsym_cmds
142527: postinstall_cmds=$lt_postinstall_cmds
142528: postuninstall_cmds=$lt_postuninstall_cmds
142529:
142530: # Commands used to build a loadable module (assumed same as above if empty)
142531: module_cmds=$lt_module_cmds
142532: module_expsym_cmds=$lt_module_expsym_cmds
142533:
142534: # Commands to strip libraries.
142535: old_striplib=$lt_old_striplib
142536: striplib=$lt_striplib
142537:
142538: # Dependencies to place before the objects being linked to create a
142539: # shared library.
142540: predep_objects=$lt_predep_objects
142541:
142542: # Dependencies to place after the objects being linked to create a
142543: # shared library.
142544: postdep_objects=$lt_postdep_objects
142545:
142546: # Dependencies to place before the objects being linked to create a
142547: # shared library.
142548: predeps=$lt_predeps
142549:
142550: # Dependencies to place after the objects being linked to create a
142551: # shared library.
142552: postdeps=$lt_postdeps
142553:
142554: # The directories searched by this compiler when creating a shared
142555: # library
142556: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
142557:
142558: # The library search path used internally by the compiler when linking
142559: # a shared library.
142560: compiler_lib_search_path=$lt_compiler_lib_search_path
142561:
142562: # Method to check whether dependent libraries are shared objects.
142563: deplibs_check_method=$lt_deplibs_check_method
142564:
142565: # Command to use when deplibs_check_method == file_magic.
142566: file_magic_cmd=$lt_file_magic_cmd
142567:
142568: # Flag that allows shared libraries with undefined symbols to be built.
142569: allow_undefined_flag=$lt_allow_undefined_flag
142570:
142571: # Flag that forces no undefined symbols.
142572: no_undefined_flag=$lt_no_undefined_flag
142573:
142574: # Commands used to finish a libtool library installation in a directory.
142575: finish_cmds=$lt_finish_cmds
142576:
142577: # Same as above, but a single script fragment to be evaled but not shown.
142578: finish_eval=$lt_finish_eval
142579:
142580: # Take the output of nm and produce a listing of raw symbols and C names.
142581: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
142582:
142583: # Transform the output of nm in a proper C declaration
142584: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
142585:
142586: # Transform the output of nm in a C name address pair
142587: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
142588:
142589: # This is the shared library runtime path variable.
142590: runpath_var=$runpath_var
142591:
142592: # This is the shared library path variable.
142593: shlibpath_var=$shlibpath_var
142594:
142595: # Is shlibpath searched before the hard-coded library search path?
142596: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
142597:
142598: # How to hardcode a shared library path into an executable.
142599: hardcode_action=$hardcode_action
142600:
142601: # Whether we should hardcode library paths into libraries.
142602: hardcode_into_libs=$hardcode_into_libs
142603:
142604: # Flag to hardcode \$libdir into a binary during linking.
142605: # This must work even if \$libdir does not exist.
142606: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
142607:
142608: # If ld is used when linking, flag to hardcode \$libdir into
142609: # a binary during linking. This must work even if \$libdir does
142610: # not exist.
142611: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
142612:
142613: # Whether we need a single -rpath flag with a separated argument.
142614: hardcode_libdir_separator=$lt_hardcode_libdir_separator
142615:
142616: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
142617: # resulting binary.
142618: hardcode_direct=$hardcode_direct
142619:
142620: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
142621: # resulting binary.
142622: hardcode_minus_L=$hardcode_minus_L
142623:
142624: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
142625: # the resulting binary.
142626: hardcode_shlibpath_var=$hardcode_shlibpath_var
142627:
142628: # Set to yes if building a shared library automatically hardcodes DIR into the library
142629: # and all subsequent libraries and executables linked against it.
142630: hardcode_automatic=$hardcode_automatic
142631:
142632: # Variables whose values should be saved in libtool wrapper scripts and
142633: # restored at relink time.
142634: variables_saved_for_relink="$variables_saved_for_relink"
142635:
142636: # Whether libtool must link a program against all its dependency libraries.
142637: link_all_deplibs=$link_all_deplibs
142638:
142639: # Compile-time system search path for libraries
142640: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
142641:
142642: # Run-time system search path for libraries
142643: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
142644:
142645: # Fix the shell variable \$srcfile for the compiler.
142646: fix_srcfile_path=$lt_fix_srcfile_path
142647:
142648: # Set to yes if exported symbols are required.
142649: always_export_symbols=$always_export_symbols
142650:
142651: # The commands to list exported symbols.
142652: export_symbols_cmds=$lt_export_symbols_cmds
142653:
142654: # The commands to extract the exported symbol list from a shared archive.
142655: extract_expsyms_cmds=$lt_extract_expsyms_cmds
142656:
142657: # Symbols that should not be listed in the preloaded symbols.
142658: exclude_expsyms=$lt_exclude_expsyms
142659:
142660: # Symbols that must always be exported.
142661: include_expsyms=$lt_include_expsyms
142662:
142663: # ### END LIBTOOL CONFIG
142664:
142665: __EOF__
142666:
142667:
142668: case $host_os in
142669: aix3*)
142670: cat <<\EOF >> "$cfgfile"
142671:
142672: # AIX sometimes has problems with the GCC collect2 program. For some
142673: # reason, if we set the COLLECT_NAMES environment variable, the problems
142674: # vanish in a puff of smoke.
142675: if test "X${COLLECT_NAMES+set}" != Xset; then
142676: COLLECT_NAMES=
142677: export COLLECT_NAMES
142678: fi
142679: EOF
142680: ;;
142681: esac
142682:
142683: # We use sed instead of cat because bash on DJGPP gets confused if
142684: # if finds mixed CR/LF and LF-only lines. Since sed operates in
142685: # text mode, it properly converts lines to CR/LF. This bash problem
142686: # is reportedly fixed, but why not run on old versions too?
142687: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
142688:
142689: mv -f "$cfgfile" "$ofile" || \
142690: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
142691: chmod +x "$ofile"
142692:
142693: else
142694: # If there is no Makefile yet, we rely on a make rule to execute
142695: # `config.status --recheck' to rerun these tests and create the
142696: # libtool script then.
142697: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
142698: if test -f "$ltmain_in"; then
142699: test -f Makefile && make "$ltmain"
142700: fi
142701: fi
142702:
142703:
142704: ac_ext=c
142705: ac_cpp='$CPP $CPPFLAGS'
142706: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
142707: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
142708: ac_compiler_gnu=$ac_cv_c_compiler_gnu
142709:
142710: CC="$lt_save_CC"
142711:
142712:
142713: # Check whether --with-tags was given.
1.1.1.3 ! misho 142714: if test "${with_tags+set}" = set; then
1.1 misho 142715: withval=$with_tags; tagnames="$withval"
142716: fi
142717:
142718:
142719: if test -f "$ltmain" && test -n "$tagnames"; then
142720: if test ! -f "${ofile}"; then
1.1.1.3 ! misho 142721: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
! 142722: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
1.1 misho 142723: fi
142724:
142725: if test -z "$LTCC"; then
142726: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
142727: if test -z "$LTCC"; then
1.1.1.3 ! misho 142728: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
! 142729: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
1.1 misho 142730: else
1.1.1.3 ! misho 142731: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
! 142732: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
1.1 misho 142733: fi
142734: fi
142735: if test -z "$LTCFLAGS"; then
142736: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
142737: fi
142738:
142739: # Extract list of available tagged configurations in $ofile.
142740: # Note that this assumes the entire list is on one line.
142741: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
142742:
142743: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
142744: for tagname in $tagnames; do
142745: IFS="$lt_save_ifs"
142746: # Check whether tagname contains only valid characters
142747: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
142748: "") ;;
1.1.1.3 ! misho 142749: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
! 142750: echo "$as_me: error: invalid tag name: $tagname" >&2;}
! 142751: { (exit 1); exit 1; }; }
1.1 misho 142752: ;;
142753: esac
142754:
142755: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
142756: then
1.1.1.3 ! misho 142757: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
! 142758: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
! 142759: { (exit 1); exit 1; }; }
1.1 misho 142760: fi
142761:
142762: # Update the list of available tags.
142763: if test -n "$tagname"; then
142764: echo appending configuration tag \"$tagname\" to $ofile
142765:
142766: case $tagname in
142767: CXX)
142768: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
142769: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
142770: (test "X$CXX" != "Xg++"))) ; then
142771:
142772: ac_ext=cpp
142773: ac_cpp='$CXXCPP $CPPFLAGS'
142774: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
142775: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
142776: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
142777:
142778:
142779:
142780:
142781: archive_cmds_need_lc_CXX=no
142782: allow_undefined_flag_CXX=
142783: always_export_symbols_CXX=no
142784: archive_expsym_cmds_CXX=
142785: export_dynamic_flag_spec_CXX=
142786: hardcode_direct_CXX=no
142787: hardcode_libdir_flag_spec_CXX=
142788: hardcode_libdir_flag_spec_ld_CXX=
142789: hardcode_libdir_separator_CXX=
142790: hardcode_minus_L_CXX=no
142791: hardcode_shlibpath_var_CXX=unsupported
142792: hardcode_automatic_CXX=no
142793: module_cmds_CXX=
142794: module_expsym_cmds_CXX=
142795: link_all_deplibs_CXX=unknown
142796: old_archive_cmds_CXX=$old_archive_cmds
142797: no_undefined_flag_CXX=
142798: whole_archive_flag_spec_CXX=
142799: enable_shared_with_static_runtimes_CXX=no
142800:
142801: # Dependencies to place before and after the object being linked:
142802: predep_objects_CXX=
142803: postdep_objects_CXX=
142804: predeps_CXX=
142805: postdeps_CXX=
142806: compiler_lib_search_path_CXX=
142807: compiler_lib_search_dirs_CXX=
142808:
142809: # Source file extension for C++ test sources.
142810: ac_ext=cpp
142811:
142812: # Object file extension for compiled C++ test sources.
142813: objext=o
142814: objext_CXX=$objext
142815:
142816: # Code to be used in simple compile tests
142817: lt_simple_compile_test_code="int some_variable = 0;"
142818:
142819: # Code to be used in simple link tests
142820: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
142821:
142822: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
142823:
142824: # If no C compiler was specified, use CC.
142825: LTCC=${LTCC-"$CC"}
142826:
142827: # If no C compiler flags were specified, use CFLAGS.
142828: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
142829:
142830: # Allow CC to be a program name with arguments.
142831: compiler=$CC
142832:
142833:
142834: # save warnings/boilerplate of simple test code
142835: ac_outfile=conftest.$ac_objext
142836: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
142837: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
142838: _lt_compiler_boilerplate=`cat conftest.err`
142839: $rm conftest*
142840:
142841: ac_outfile=conftest.$ac_objext
142842: echo "$lt_simple_link_test_code" >conftest.$ac_ext
142843: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
142844: _lt_linker_boilerplate=`cat conftest.err`
142845: $rm -r conftest*
142846:
142847:
142848: # Allow CC to be a program name with arguments.
142849: lt_save_CC=$CC
142850: lt_save_LD=$LD
142851: lt_save_GCC=$GCC
142852: GCC=$GXX
142853: lt_save_with_gnu_ld=$with_gnu_ld
142854: lt_save_path_LD=$lt_cv_path_LD
142855: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
142856: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
142857: else
142858: unset lt_cv_prog_gnu_ld
142859: fi
142860: if test -n "${lt_cv_path_LDCXX+set}"; then
142861: lt_cv_path_LD=$lt_cv_path_LDCXX
142862: else
142863: unset lt_cv_path_LD
142864: fi
142865: test -z "${LDCXX+set}" || LD=$LDCXX
142866: CC=${CXX-"c++"}
142867: compiler=$CC
142868: compiler_CXX=$CC
142869: for cc_temp in $compiler""; do
142870: case $cc_temp in
142871: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
142872: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
142873: \-*) ;;
142874: *) break;;
142875: esac
142876: done
142877: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
142878:
142879:
142880: # We don't want -fno-exception wen compiling C++ code, so set the
142881: # no_builtin_flag separately
142882: if test "$GXX" = yes; then
142883: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
142884: else
142885: lt_prog_compiler_no_builtin_flag_CXX=
142886: fi
142887:
142888: if test "$GXX" = yes; then
142889: # Set up default GNU C++ configuration
142890:
142891:
142892: # Check whether --with-gnu-ld was given.
1.1.1.3 ! misho 142893: if test "${with_gnu_ld+set}" = set; then
1.1 misho 142894: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
142895: else
142896: with_gnu_ld=no
142897: fi
142898:
142899: ac_prog=ld
142900: if test "$GCC" = yes; then
142901: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.3 ! misho 142902: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 142903: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.1 misho 142904: case $host in
142905: *-*-mingw*)
142906: # gcc leaves a trailing carriage return which upsets mingw
142907: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
142908: *)
142909: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
142910: esac
142911: case $ac_prog in
142912: # Accept absolute paths.
142913: [\\/]* | ?:[\\/]*)
142914: re_direlt='/[^/][^/]*/\.\./'
142915: # Canonicalize the pathname of ld
142916: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
142917: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
142918: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
142919: done
142920: test -z "$LD" && LD="$ac_prog"
142921: ;;
142922: "")
142923: # If it fails, then pretend we aren't using GCC.
142924: ac_prog=ld
142925: ;;
142926: *)
142927: # If it is relative, then search for the first ld in PATH.
142928: with_gnu_ld=unknown
142929: ;;
142930: esac
142931: elif test "$with_gnu_ld" = yes; then
1.1.1.3 ! misho 142932: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 142933: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.1 misho 142934: else
1.1.1.3 ! misho 142935: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 142936: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.1 misho 142937: fi
1.1.1.3 ! misho 142938: if test "${lt_cv_path_LD+set}" = set; then
! 142939: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 142940: else
142941: if test -z "$LD"; then
142942: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
142943: for ac_dir in $PATH; do
142944: IFS="$lt_save_ifs"
142945: test -z "$ac_dir" && ac_dir=.
142946: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
142947: lt_cv_path_LD="$ac_dir/$ac_prog"
142948: # Check to see if the program is GNU ld. I'd rather use --version,
142949: # but apparently some variants of GNU ld only accept -v.
142950: # Break only if it was the GNU/non-GNU ld that we prefer.
142951: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
142952: *GNU* | *'with BFD'*)
142953: test "$with_gnu_ld" != no && break
142954: ;;
142955: *)
142956: test "$with_gnu_ld" != yes && break
142957: ;;
142958: esac
142959: fi
142960: done
142961: IFS="$lt_save_ifs"
142962: else
142963: lt_cv_path_LD="$LD" # Let the user override the test with a path.
142964: fi
142965: fi
142966:
142967: LD="$lt_cv_path_LD"
142968: if test -n "$LD"; then
1.1.1.3 ! misho 142969: { echo "$as_me:$LINENO: result: $LD" >&5
! 142970: echo "${ECHO_T}$LD" >&6; }
1.1 misho 142971: else
1.1.1.3 ! misho 142972: { echo "$as_me:$LINENO: result: no" >&5
! 142973: echo "${ECHO_T}no" >&6; }
1.1 misho 142974: fi
1.1.1.3 ! misho 142975: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 142976: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 142977: { (exit 1); exit 1; }; }
! 142978: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 142979: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
! 142980: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 142981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 142982: else
142983: # I'd rather use --version here, but apparently some GNU lds only accept -v.
142984: case `$LD -v 2>&1 </dev/null` in
142985: *GNU* | *'with BFD'*)
142986: lt_cv_prog_gnu_ld=yes
142987: ;;
142988: *)
142989: lt_cv_prog_gnu_ld=no
142990: ;;
142991: esac
142992: fi
1.1.1.3 ! misho 142993: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 142994: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.1 misho 142995: with_gnu_ld=$lt_cv_prog_gnu_ld
142996:
142997:
142998:
142999: # Check if GNU C++ uses GNU ld as the underlying linker, since the
143000: # archiving commands below assume that GNU ld is being used.
143001: if test "$with_gnu_ld" = yes; then
143002: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
143003: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
143004:
143005: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
143006: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
143007:
143008: # If archive_cmds runs LD, not CC, wlarc should be empty
143009: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
143010: # investigate it a little bit more. (MM)
143011: wlarc='${wl}'
143012:
143013: # ancient GNU ld didn't support --whole-archive et. al.
143014: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
143015: grep 'no-whole-archive' > /dev/null; then
143016: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
143017: else
143018: whole_archive_flag_spec_CXX=
143019: fi
143020: else
143021: with_gnu_ld=no
143022: wlarc=
143023:
143024: # A generic and very simple default shared library creation
143025: # command for GNU C++ for the case where it uses the native
143026: # linker, instead of GNU ld. If possible, this setting should
143027: # overridden to take advantage of the native linker features on
143028: # the platform it is being used on.
143029: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
143030: fi
143031:
143032: # Commands to make compiler produce verbose output that lists
143033: # what "hidden" libraries, object files and flags are used when
143034: # linking a shared library.
143035: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
143036:
143037: else
143038: GXX=no
143039: with_gnu_ld=no
143040: wlarc=
143041: fi
143042:
143043: # PORTME: fill in a description of your system's C++ link characteristics
1.1.1.3 ! misho 143044: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 143045: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 misho 143046: ld_shlibs_CXX=yes
143047: case $host_os in
143048: aix3*)
143049: # FIXME: insert proper C++ library support
143050: ld_shlibs_CXX=no
143051: ;;
143052: aix[4-9]*)
143053: if test "$host_cpu" = ia64; then
143054: # On IA64, the linker does run time linking by default, so we don't
143055: # have to do anything special.
143056: aix_use_runtimelinking=no
143057: exp_sym_flag='-Bexport'
143058: no_entry_flag=""
143059: else
143060: aix_use_runtimelinking=no
143061:
143062: # Test if we are trying to use run time linking or normal
143063: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
143064: # need to do runtime linking.
143065: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
143066: for ld_flag in $LDFLAGS; do
143067: case $ld_flag in
143068: *-brtl*)
143069: aix_use_runtimelinking=yes
143070: break
143071: ;;
143072: esac
143073: done
143074: ;;
143075: esac
143076:
143077: exp_sym_flag='-bexport'
143078: no_entry_flag='-bnoentry'
143079: fi
143080:
143081: # When large executables or shared objects are built, AIX ld can
143082: # have problems creating the table of contents. If linking a library
143083: # or program results in "error TOC overflow" add -mminimal-toc to
143084: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
143085: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
143086:
143087: archive_cmds_CXX=''
143088: hardcode_direct_CXX=yes
143089: hardcode_libdir_separator_CXX=':'
143090: link_all_deplibs_CXX=yes
143091:
143092: if test "$GXX" = yes; then
143093: case $host_os in aix4.[012]|aix4.[012].*)
143094: # We only want to do this on AIX 4.2 and lower, the check
143095: # below for broken collect2 doesn't work under 4.3+
143096: collect2name=`${CC} -print-prog-name=collect2`
143097: if test -f "$collect2name" && \
143098: strings "$collect2name" | grep resolve_lib_name >/dev/null
143099: then
143100: # We have reworked collect2
143101: :
143102: else
143103: # We have old collect2
143104: hardcode_direct_CXX=unsupported
143105: # It fails to find uninstalled libraries when the uninstalled
143106: # path is not listed in the libpath. Setting hardcode_minus_L
143107: # to unsupported forces relinking
143108: hardcode_minus_L_CXX=yes
143109: hardcode_libdir_flag_spec_CXX='-L$libdir'
143110: hardcode_libdir_separator_CXX=
143111: fi
143112: ;;
143113: esac
143114: shared_flag='-shared'
143115: if test "$aix_use_runtimelinking" = yes; then
143116: shared_flag="$shared_flag "'${wl}-G'
143117: fi
143118: else
143119: # not using gcc
143120: if test "$host_cpu" = ia64; then
143121: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
143122: # chokes on -Wl,-G. The following line is correct:
143123: shared_flag='-G'
143124: else
143125: if test "$aix_use_runtimelinking" = yes; then
143126: shared_flag='${wl}-G'
143127: else
143128: shared_flag='${wl}-bM:SRE'
143129: fi
143130: fi
143131: fi
143132:
143133: # It seems that -bexpall does not export symbols beginning with
143134: # underscore (_), so it is better to generate a list of symbols to export.
143135: always_export_symbols_CXX=yes
143136: if test "$aix_use_runtimelinking" = yes; then
143137: # Warning - without using the other runtime loading flags (-brtl),
143138: # -berok will link without error, but may produce a broken library.
143139: allow_undefined_flag_CXX='-berok'
143140: # Determine the default libpath from the value encoded in an empty executable.
143141:
143142: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 143143: #line 143143 "configure"
1.1 misho 143144: #include "confdefs.h"
143145: int main() {
143146: ; return 0; }
143147: EOF
1.1.1.3 ! misho 143148: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 143149: (eval $ac_link) 2>&5
143150: ac_status=$?
1.1.1.3 ! misho 143151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 143152: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.1 misho 143153:
143154: lt_aix_libpath_sed='
143155: /Import File Strings/,/^$/ {
143156: /^0/ {
143157: s/^0 *\(.*\)$/\1/
143158: p
143159: }
143160: }'
143161: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
143162: # Check for a 64-bit object if we didn't find anything.
143163: if test -z "$aix_libpath"; then
143164: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
143165: fi
143166: rm -rf conftest*
143167: else
143168: echo "configure: failed program was:" >&5
143169: cat conftest.$ac_ext >&6
143170: fi
143171: rm -f conftest*
143172: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
143173:
143174: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
143175:
143176: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
143177: else
143178: if test "$host_cpu" = ia64; then
143179: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
143180: allow_undefined_flag_CXX="-z nodefs"
143181: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
143182: else
143183: # Determine the default libpath from the value encoded in an empty executable.
143184:
143185: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! misho 143186: #line 143186 "configure"
1.1 misho 143187: #include "confdefs.h"
143188: int main() {
143189: ; return 0; }
143190: EOF
1.1.1.3 ! misho 143191: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 misho 143192: (eval $ac_link) 2>&5
143193: ac_status=$?
1.1.1.3 ! misho 143194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 143195: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.1 misho 143196:
143197: lt_aix_libpath_sed='
143198: /Import File Strings/,/^$/ {
143199: /^0/ {
143200: s/^0 *\(.*\)$/\1/
143201: p
143202: }
143203: }'
143204: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
143205: # Check for a 64-bit object if we didn't find anything.
143206: if test -z "$aix_libpath"; then
143207: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
143208: fi
143209: rm -rf conftest*
143210: else
143211: echo "configure: failed program was:" >&5
143212: cat conftest.$ac_ext >&6
143213: fi
143214: rm -f conftest*
143215: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
143216:
143217: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
143218: # Warning - without using the other run time loading flags,
143219: # -berok will link without error, but may produce a broken library.
143220: no_undefined_flag_CXX=' ${wl}-bernotok'
143221: allow_undefined_flag_CXX=' ${wl}-berok'
143222: # Exported symbols can be pulled into shared objects from archives
143223: whole_archive_flag_spec_CXX='$convenience'
143224: archive_cmds_need_lc_CXX=yes
143225: # This is similar to how AIX traditionally builds its shared libraries.
143226: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
143227: fi
143228: fi
143229: ;;
143230:
143231: beos*)
143232: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
143233: allow_undefined_flag_CXX=unsupported
143234: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
143235: # support --undefined. This deserves some investigation. FIXME
143236: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
143237: else
143238: ld_shlibs_CXX=no
143239: fi
143240: ;;
143241:
143242: chorus*)
143243: case $cc_basename in
143244: *)
143245: # FIXME: insert proper C++ library support
143246: ld_shlibs_CXX=no
143247: ;;
143248: esac
143249: ;;
143250:
143251: cygwin* | mingw* | pw32*)
143252: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
143253: # as there is no search path for DLLs.
143254: hardcode_libdir_flag_spec_CXX='-L$libdir'
143255: allow_undefined_flag_CXX=unsupported
143256: always_export_symbols_CXX=no
143257: enable_shared_with_static_runtimes_CXX=yes
143258:
143259: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
143260: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
143261: # If the export-symbols file already is a .def file (1st line
143262: # is EXPORTS), use it as is; otherwise, prepend...
143263: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
143264: cp $export_symbols $output_objdir/$soname.def;
143265: else
143266: echo EXPORTS > $output_objdir/$soname.def;
143267: cat $export_symbols >> $output_objdir/$soname.def;
143268: fi~
143269: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
143270: else
143271: ld_shlibs_CXX=no
143272: fi
143273: ;;
143274: darwin* | rhapsody*)
143275: archive_cmds_need_lc_CXX=no
143276: hardcode_direct_CXX=no
143277: hardcode_automatic_CXX=yes
143278: hardcode_shlibpath_var_CXX=unsupported
143279: whole_archive_flag_spec_CXX=''
143280: link_all_deplibs_CXX=yes
143281: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
143282: if test "$GXX" = yes ; then
143283: output_verbose_link_cmd='echo'
143284: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
143285: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
143286: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
143287: module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
143288: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
143289: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
143290: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
143291: fi
143292: else
143293: case $cc_basename in
143294: xlc*)
143295: output_verbose_link_cmd='echo'
143296: archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
143297: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
143298: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
143299: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
143300: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
143301: ;;
143302: *)
143303: ld_shlibs_CXX=no
143304: ;;
143305: esac
143306: fi
143307: ;;
143308:
143309: dgux*)
143310: case $cc_basename in
143311: ec++*)
143312: # FIXME: insert proper C++ library support
143313: ld_shlibs_CXX=no
143314: ;;
143315: ghcx*)
143316: # Green Hills C++ Compiler
143317: # FIXME: insert proper C++ library support
143318: ld_shlibs_CXX=no
143319: ;;
143320: *)
143321: # FIXME: insert proper C++ library support
143322: ld_shlibs_CXX=no
143323: ;;
143324: esac
143325: ;;
1.1.1.3 ! misho 143326: freebsd[12]*)
1.1 misho 143327: # C++ shared libraries reported to be fairly broken before switch to ELF
143328: ld_shlibs_CXX=no
143329: ;;
143330: freebsd-elf*)
143331: archive_cmds_need_lc_CXX=no
143332: ;;
143333: freebsd* | dragonfly*)
143334: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
143335: # conventions
143336: ld_shlibs_CXX=yes
143337: ;;
143338: gnu*)
143339: ;;
143340: hpux9*)
143341: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
143342: hardcode_libdir_separator_CXX=:
143343: export_dynamic_flag_spec_CXX='${wl}-E'
143344: hardcode_direct_CXX=yes
143345: hardcode_minus_L_CXX=yes # Not in the search PATH,
143346: # but as the default
143347: # location of the library.
143348:
143349: case $cc_basename in
143350: CC*)
143351: # FIXME: insert proper C++ library support
143352: ld_shlibs_CXX=no
143353: ;;
143354: aCC*)
143355: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
143356: # Commands to make compiler produce verbose output that lists
143357: # what "hidden" libraries, object files and flags are used when
143358: # linking a shared library.
143359: #
143360: # There doesn't appear to be a way to prevent this compiler from
143361: # explicitly linking system object files so we need to strip them
143362: # from the output so that they don't get included in the library
143363: # dependencies.
143364: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
143365: ;;
143366: *)
143367: if test "$GXX" = yes; then
143368: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
143369: else
143370: # FIXME: insert proper C++ library support
143371: ld_shlibs_CXX=no
143372: fi
143373: ;;
143374: esac
143375: ;;
143376: hpux10*|hpux11*)
143377: if test $with_gnu_ld = no; then
143378: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
143379: hardcode_libdir_separator_CXX=:
143380:
143381: case $host_cpu in
143382: hppa*64*|ia64*) ;;
143383: *)
143384: export_dynamic_flag_spec_CXX='${wl}-E'
143385: ;;
143386: esac
143387: fi
143388: case $host_cpu in
143389: hppa*64*|ia64*)
143390: hardcode_direct_CXX=no
143391: hardcode_shlibpath_var_CXX=no
143392: ;;
143393: *)
143394: hardcode_direct_CXX=yes
143395: hardcode_minus_L_CXX=yes # Not in the search PATH,
143396: # but as the default
143397: # location of the library.
143398: ;;
143399: esac
143400:
143401: case $cc_basename in
143402: CC*)
143403: # FIXME: insert proper C++ library support
143404: ld_shlibs_CXX=no
143405: ;;
143406: aCC*)
143407: case $host_cpu in
143408: hppa*64*)
143409: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143410: ;;
143411: ia64*)
143412: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143413: ;;
143414: *)
143415: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143416: ;;
143417: esac
143418: # Commands to make compiler produce verbose output that lists
143419: # what "hidden" libraries, object files and flags are used when
143420: # linking a shared library.
143421: #
143422: # There doesn't appear to be a way to prevent this compiler from
143423: # explicitly linking system object files so we need to strip them
143424: # from the output so that they don't get included in the library
143425: # dependencies.
143426: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
143427: ;;
143428: *)
143429: if test "$GXX" = yes; then
143430: if test $with_gnu_ld = no; then
143431: case $host_cpu in
143432: hppa*64*)
143433: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143434: ;;
143435: ia64*)
143436: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143437: ;;
143438: *)
143439: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143440: ;;
143441: esac
143442: fi
143443: else
143444: # FIXME: insert proper C++ library support
143445: ld_shlibs_CXX=no
143446: fi
143447: ;;
143448: esac
143449: ;;
143450: interix[3-9]*)
143451: hardcode_direct_CXX=no
143452: hardcode_shlibpath_var_CXX=no
143453: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
143454: export_dynamic_flag_spec_CXX='${wl}-E'
143455: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
143456: # Instead, shared libraries are loaded at an image base (0x10000000 by
143457: # default) and relocated if they conflict, which is a slow very memory
143458: # consuming and fragmenting process. To avoid this, we pick a random,
143459: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
143460: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
143461: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
143462: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
143463: ;;
143464: irix5* | irix6*)
143465: case $cc_basename in
143466: CC*)
143467: # SGI C++
143468: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
143469:
143470: # Archives containing C++ object files must be created using
143471: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
143472: # necessary to make sure instantiated templates are included
143473: # in the archive.
143474: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
143475: ;;
143476: *)
143477: if test "$GXX" = yes; then
143478: if test "$with_gnu_ld" = no; then
143479: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
143480: else
143481: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
143482: fi
143483: fi
143484: link_all_deplibs_CXX=yes
143485: ;;
143486: esac
143487: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
143488: hardcode_libdir_separator_CXX=:
143489: ;;
143490: linux* | k*bsd*-gnu)
143491: case $cc_basename in
143492: KCC*)
143493: # Kuck and Associates, Inc. (KAI) C++ Compiler
143494:
143495: # KCC will only create a shared library if the output file
143496: # ends with ".so" (or ".sl" for HP-UX), so rename the library
143497: # to its proper name (with version) after linking.
143498: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
143499: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
143500: # Commands to make compiler produce verbose output that lists
143501: # what "hidden" libraries, object files and flags are used when
143502: # linking a shared library.
143503: #
143504: # There doesn't appear to be a way to prevent this compiler from
143505: # explicitly linking system object files so we need to strip them
143506: # from the output so that they don't get included in the library
143507: # dependencies.
143508: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
143509:
143510: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
143511: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
143512:
143513: # Archives containing C++ object files must be created using
143514: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
143515: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
143516: ;;
143517: icpc*)
143518: # Intel C++
143519: with_gnu_ld=yes
143520: # version 8.0 and above of icpc choke on multiply defined symbols
143521: # if we add $predep_objects and $postdep_objects, however 7.1 and
143522: # earlier do not add the objects themselves.
143523: case `$CC -V 2>&1` in
143524: *"Version 7."*)
143525: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
143526: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
143527: ;;
143528: *) # Version 8.0 or newer
143529: tmp_idyn=
143530: case $host_cpu in
143531: ia64*) tmp_idyn=' -i_dynamic';;
143532: esac
143533: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
143534: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
143535: ;;
143536: esac
143537: archive_cmds_need_lc_CXX=no
143538: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
143539: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
143540: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
143541: ;;
143542: pgCC* | pgcpp*)
143543: # Portland Group C++ compiler
143544: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
143545: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
143546:
143547: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
143548: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
143549: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
143550: ;;
143551: cxx*)
143552: # Compaq C++
143553: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
143554: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
143555:
143556: runpath_var=LD_RUN_PATH
143557: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
143558: hardcode_libdir_separator_CXX=:
143559:
143560: # Commands to make compiler produce verbose output that lists
143561: # what "hidden" libraries, object files and flags are used when
143562: # linking a shared library.
143563: #
143564: # There doesn't appear to be a way to prevent this compiler from
143565: # explicitly linking system object files so we need to strip them
143566: # from the output so that they don't get included in the library
143567: # dependencies.
143568: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
143569: ;;
143570: *)
143571: case `$CC -V 2>&1 | sed 5q` in
143572: *Sun\ C*)
143573: # Sun C++ 5.9
143574: no_undefined_flag_CXX=' -zdefs'
143575: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143576: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
143577: hardcode_libdir_flag_spec_CXX='-R$libdir'
143578: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
143579:
143580: # Not sure whether something based on
143581: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
143582: # would be better.
143583: output_verbose_link_cmd='echo'
143584:
143585: # Archives containing C++ object files must be created using
143586: # "CC -xar", where "CC" is the Sun C++ compiler. This is
143587: # necessary to make sure instantiated templates are included
143588: # in the archive.
143589: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
143590: ;;
143591: esac
143592: ;;
143593: esac
143594: ;;
143595: lynxos*)
143596: # FIXME: insert proper C++ library support
143597: ld_shlibs_CXX=no
143598: ;;
143599: m88k*)
143600: # FIXME: insert proper C++ library support
143601: ld_shlibs_CXX=no
143602: ;;
143603: mvs*)
143604: case $cc_basename in
143605: cxx*)
143606: # FIXME: insert proper C++ library support
143607: ld_shlibs_CXX=no
143608: ;;
143609: *)
143610: # FIXME: insert proper C++ library support
143611: ld_shlibs_CXX=no
143612: ;;
143613: esac
143614: ;;
143615: netbsd*)
143616: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
143617: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
143618: wlarc=
143619: hardcode_libdir_flag_spec_CXX='-R$libdir'
143620: hardcode_direct_CXX=yes
143621: hardcode_shlibpath_var_CXX=no
143622: fi
143623: # Workaround some broken pre-1.5 toolchains
143624: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
143625: ;;
143626: openbsd2*)
143627: # C++ shared libraries are fairly broken
143628: ld_shlibs_CXX=no
143629: ;;
143630: openbsd*)
143631: if test -f /usr/libexec/ld.so; then
143632: hardcode_direct_CXX=yes
143633: hardcode_shlibpath_var_CXX=no
143634: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
143635: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
143636: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
143637: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
143638: export_dynamic_flag_spec_CXX='${wl}-E'
143639: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
143640: fi
143641: output_verbose_link_cmd='echo'
143642: else
143643: ld_shlibs_CXX=no
143644: fi
143645: ;;
143646: osf3*)
143647: case $cc_basename in
143648: KCC*)
143649: # Kuck and Associates, Inc. (KAI) C++ Compiler
143650:
143651: # KCC will only create a shared library if the output file
143652: # ends with ".so" (or ".sl" for HP-UX), so rename the library
143653: # to its proper name (with version) after linking.
143654: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
143655:
143656: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
143657: hardcode_libdir_separator_CXX=:
143658:
143659: # Archives containing C++ object files must be created using
143660: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
143661: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
143662:
143663: ;;
143664: RCC*)
143665: # Rational C++ 2.4.1
143666: # FIXME: insert proper C++ library support
143667: ld_shlibs_CXX=no
143668: ;;
143669: cxx*)
143670: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
143671: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
143672:
143673: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
143674: hardcode_libdir_separator_CXX=:
143675:
143676: # Commands to make compiler produce verbose output that lists
143677: # what "hidden" libraries, object files and flags are used when
143678: # linking a shared library.
143679: #
143680: # There doesn't appear to be a way to prevent this compiler from
143681: # explicitly linking system object files so we need to strip them
143682: # from the output so that they don't get included in the library
143683: # dependencies.
143684: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
143685: ;;
143686: *)
143687: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
143688: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
143689: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
143690:
143691: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
143692: hardcode_libdir_separator_CXX=:
143693:
143694: # Commands to make compiler produce verbose output that lists
143695: # what "hidden" libraries, object files and flags are used when
143696: # linking a shared library.
143697: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
143698:
143699: else
143700: # FIXME: insert proper C++ library support
143701: ld_shlibs_CXX=no
143702: fi
143703: ;;
143704: esac
143705: ;;
143706: osf4* | osf5*)
143707: case $cc_basename in
143708: KCC*)
143709: # Kuck and Associates, Inc. (KAI) C++ Compiler
143710:
143711: # KCC will only create a shared library if the output file
143712: # ends with ".so" (or ".sl" for HP-UX), so rename the library
143713: # to its proper name (with version) after linking.
143714: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
143715:
143716: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
143717: hardcode_libdir_separator_CXX=:
143718:
143719: # Archives containing C++ object files must be created using
143720: # the KAI C++ compiler.
143721: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
143722: ;;
143723: RCC*)
143724: # Rational C++ 2.4.1
143725: # FIXME: insert proper C++ library support
143726: ld_shlibs_CXX=no
143727: ;;
143728: cxx*)
143729: allow_undefined_flag_CXX=' -expect_unresolved \*'
143730: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
143731: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
143732: echo "-hidden">> $lib.exp~
143733: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
143734: $rm $lib.exp'
143735:
143736: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
143737: hardcode_libdir_separator_CXX=:
143738:
143739: # Commands to make compiler produce verbose output that lists
143740: # what "hidden" libraries, object files and flags are used when
143741: # linking a shared library.
143742: #
143743: # There doesn't appear to be a way to prevent this compiler from
143744: # explicitly linking system object files so we need to strip them
143745: # from the output so that they don't get included in the library
143746: # dependencies.
143747: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
143748: ;;
143749: *)
143750: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
143751: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
143752: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
143753:
143754: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
143755: hardcode_libdir_separator_CXX=:
143756:
143757: # Commands to make compiler produce verbose output that lists
143758: # what "hidden" libraries, object files and flags are used when
143759: # linking a shared library.
143760: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
143761:
143762: else
143763: # FIXME: insert proper C++ library support
143764: ld_shlibs_CXX=no
143765: fi
143766: ;;
143767: esac
143768: ;;
143769: psos*)
143770: # FIXME: insert proper C++ library support
143771: ld_shlibs_CXX=no
143772: ;;
143773: sunos4*)
143774: case $cc_basename in
143775: CC*)
143776: # Sun C++ 4.x
143777: # FIXME: insert proper C++ library support
143778: ld_shlibs_CXX=no
143779: ;;
143780: lcc*)
143781: # Lucid
143782: # FIXME: insert proper C++ library support
143783: ld_shlibs_CXX=no
143784: ;;
143785: *)
143786: # FIXME: insert proper C++ library support
143787: ld_shlibs_CXX=no
143788: ;;
143789: esac
143790: ;;
143791: solaris*)
143792: case $cc_basename in
143793: CC*)
143794: # Sun C++ 4.2, 5.x and Centerline C++
143795: archive_cmds_need_lc_CXX=yes
143796: no_undefined_flag_CXX=' -zdefs'
143797: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
143798: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
143799: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
143800:
143801: hardcode_libdir_flag_spec_CXX='-R$libdir'
143802: hardcode_shlibpath_var_CXX=no
143803: case $host_os in
143804: solaris2.[0-5] | solaris2.[0-5].*) ;;
143805: *)
143806: # The compiler driver will combine and reorder linker options,
143807: # but understands `-z linker_flag'.
143808: # Supported since Solaris 2.6 (maybe 2.5.1?)
143809: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
143810: ;;
143811: esac
143812: link_all_deplibs_CXX=yes
143813:
143814: output_verbose_link_cmd='echo'
143815:
143816: # Archives containing C++ object files must be created using
143817: # "CC -xar", where "CC" is the Sun C++ compiler. This is
143818: # necessary to make sure instantiated templates are included
143819: # in the archive.
143820: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
143821: ;;
143822: gcx*)
143823: # Green Hills C++ Compiler
143824: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
143825:
143826: # The C++ compiler must be used to create the archive.
143827: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
143828: ;;
143829: *)
143830: # GNU C++ compiler with Solaris linker
143831: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
143832: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
143833: if $CC --version | grep -v '^2\.7' > /dev/null; then
143834: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
143835: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
143836: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
143837:
143838: # Commands to make compiler produce verbose output that lists
143839: # what "hidden" libraries, object files and flags are used when
143840: # linking a shared library.
143841: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
143842: else
143843: # g++ 2.7 appears to require `-G' NOT `-shared' on this
143844: # platform.
143845: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
143846: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
143847: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
143848:
143849: # Commands to make compiler produce verbose output that lists
143850: # what "hidden" libraries, object files and flags are used when
143851: # linking a shared library.
143852: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
143853: fi
143854:
143855: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
143856: case $host_os in
143857: solaris2.[0-5] | solaris2.[0-5].*) ;;
143858: *)
143859: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
143860: ;;
143861: esac
143862: fi
143863: ;;
143864: esac
143865: ;;
143866: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
143867: no_undefined_flag_CXX='${wl}-z,text'
143868: archive_cmds_need_lc_CXX=no
143869: hardcode_shlibpath_var_CXX=no
143870: runpath_var='LD_RUN_PATH'
143871:
143872: case $cc_basename in
143873: CC*)
143874: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143875: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143876: ;;
143877: *)
143878: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143879: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143880: ;;
143881: esac
143882: ;;
143883: sysv5* | sco3.2v5* | sco5v6*)
143884: # Note: We can NOT use -z defs as we might desire, because we do not
143885: # link with -lc, and that would cause any symbols used from libc to
143886: # always be unresolved, which means just about no library would
143887: # ever link correctly. If we're not using GNU ld we use -z text
143888: # though, which does catch some bad symbols but isn't as heavy-handed
143889: # as -z defs.
143890: # For security reasons, it is highly recommended that you always
143891: # use absolute paths for naming shared libraries, and exclude the
143892: # DT_RUNPATH tag from executables and libraries. But doing so
143893: # requires that you compile everything twice, which is a pain.
143894: # So that behaviour is only enabled if SCOABSPATH is set to a
143895: # non-empty value in the environment. Most likely only useful for
143896: # creating official distributions of packages.
143897: # This is a hack until libtool officially supports absolute path
143898: # names for shared libraries.
143899: no_undefined_flag_CXX='${wl}-z,text'
143900: allow_undefined_flag_CXX='${wl}-z,nodefs'
143901: archive_cmds_need_lc_CXX=no
143902: hardcode_shlibpath_var_CXX=no
143903: hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
143904: hardcode_libdir_separator_CXX=':'
143905: link_all_deplibs_CXX=yes
143906: export_dynamic_flag_spec_CXX='${wl}-Bexport'
143907: runpath_var='LD_RUN_PATH'
143908:
143909: case $cc_basename in
143910: CC*)
143911: archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143912: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143913: ;;
143914: *)
143915: archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143916: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143917: ;;
143918: esac
143919: ;;
143920: tandem*)
143921: case $cc_basename in
143922: NCC*)
143923: # NonStop-UX NCC 3.20
143924: # FIXME: insert proper C++ library support
143925: ld_shlibs_CXX=no
143926: ;;
143927: *)
143928: # FIXME: insert proper C++ library support
143929: ld_shlibs_CXX=no
143930: ;;
143931: esac
143932: ;;
143933: vxworks*)
143934: # FIXME: insert proper C++ library support
143935: ld_shlibs_CXX=no
143936: ;;
143937: *)
143938: # FIXME: insert proper C++ library support
143939: ld_shlibs_CXX=no
143940: ;;
143941: esac
1.1.1.3 ! misho 143942: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 143943: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1.1 misho 143944: test "$ld_shlibs_CXX" = no && can_build_shared=no
143945:
143946: GCC_CXX="$GXX"
143947: LD_CXX="$LD"
143948:
143949: ## CAVEAT EMPTOR:
143950: ## There is no encapsulation within the following macros, do not change
143951: ## the running order or otherwise move them around unless you know exactly
143952: ## what you are doing...
143953: cat > conftest.$ac_ext <<EOF
143954: class Foo
143955: {
143956: public:
143957: Foo (void) { a = 0; }
143958: private:
143959: int a;
143960: };
143961: EOF
143962:
1.1.1.3 ! misho 143963: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 143964: (eval $ac_compile) 2>&5
143965: ac_status=$?
1.1.1.3 ! misho 143966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 143967: (exit $ac_status); }; then
1.1 misho 143968: # Parse the compiler output and extract the necessary
143969: # objects, libraries and library flags.
143970:
143971: # Sentinel used to keep track of whether or not we are before
143972: # the conftest object file.
143973: pre_test_object_deps_done=no
143974:
143975: # The `*' in the case matches for architectures that use `case' in
143976: # $output_verbose_cmd can trigger glob expansion during the loop
143977: # eval without this substitution.
143978: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
143979:
143980: for p in `eval $output_verbose_link_cmd`; do
143981: case $p in
143982:
143983: -L* | -R* | -l*)
143984: # Some compilers place space between "-{L,R}" and the path.
143985: # Remove the space.
143986: if test $p = "-L" \
143987: || test $p = "-R"; then
143988: prev=$p
143989: continue
143990: else
143991: prev=
143992: fi
143993:
143994: if test "$pre_test_object_deps_done" = no; then
143995: case $p in
143996: -L* | -R*)
143997: # Internal compiler library paths should come after those
143998: # provided the user. The postdeps already come after the
143999: # user supplied libs so there is no need to process them.
144000: if test -z "$compiler_lib_search_path_CXX"; then
144001: compiler_lib_search_path_CXX="${prev}${p}"
144002: else
144003: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
144004: fi
144005: ;;
144006: # The "-l" case would never come before the object being
144007: # linked, so don't bother handling this case.
144008: esac
144009: else
144010: if test -z "$postdeps_CXX"; then
144011: postdeps_CXX="${prev}${p}"
144012: else
144013: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
144014: fi
144015: fi
144016: ;;
144017:
144018: *.$objext)
144019: # This assumes that the test object file only shows up
144020: # once in the compiler output.
144021: if test "$p" = "conftest.$objext"; then
144022: pre_test_object_deps_done=yes
144023: continue
144024: fi
144025:
144026: if test "$pre_test_object_deps_done" = no; then
144027: if test -z "$predep_objects_CXX"; then
144028: predep_objects_CXX="$p"
144029: else
144030: predep_objects_CXX="$predep_objects_CXX $p"
144031: fi
144032: else
144033: if test -z "$postdep_objects_CXX"; then
144034: postdep_objects_CXX="$p"
144035: else
144036: postdep_objects_CXX="$postdep_objects_CXX $p"
144037: fi
144038: fi
144039: ;;
144040:
144041: *) ;; # Ignore the rest.
144042:
144043: esac
144044: done
144045:
144046: # Clean up.
144047: rm -f a.out a.exe
144048: else
144049: echo "libtool.m4: error: problem compiling CXX test program"
144050: fi
144051:
144052: $rm -f confest.$objext
144053:
144054: compiler_lib_search_dirs_CXX=
144055: if test -n "$compiler_lib_search_path_CXX"; then
144056: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
144057: fi
144058:
144059: # PORTME: override above test on systems where it is broken
144060: case $host_os in
144061: interix[3-9]*)
144062: # Interix 3.5 installs completely hosed .la files for C++, so rather than
144063: # hack all around it, let's just trust "g++" to DTRT.
144064: predep_objects_CXX=
144065: postdep_objects_CXX=
144066: postdeps_CXX=
144067: ;;
144068:
144069: linux*)
144070: case `$CC -V 2>&1 | sed 5q` in
144071: *Sun\ C*)
144072: # Sun C++ 5.9
144073: #
144074: # The more standards-conforming stlport4 library is
144075: # incompatible with the Cstd library. Avoid specifying
144076: # it if it's in CXXFLAGS. Ignore libCrun as
144077: # -library=stlport4 depends on it.
144078: case " $CXX $CXXFLAGS " in
144079: *" -library=stlport4 "*)
144080: solaris_use_stlport4=yes
144081: ;;
144082: esac
144083: if test "$solaris_use_stlport4" != yes; then
144084: postdeps_CXX='-library=Cstd -library=Crun'
144085: fi
144086: ;;
144087: esac
144088: ;;
144089:
144090: solaris*)
144091: case $cc_basename in
144092: CC*)
144093: # The more standards-conforming stlport4 library is
144094: # incompatible with the Cstd library. Avoid specifying
144095: # it if it's in CXXFLAGS. Ignore libCrun as
144096: # -library=stlport4 depends on it.
144097: case " $CXX $CXXFLAGS " in
144098: *" -library=stlport4 "*)
144099: solaris_use_stlport4=yes
144100: ;;
144101: esac
144102:
144103: # Adding this requires a known-good setup of shared libraries for
144104: # Sun compiler versions before 5.6, else PIC objects from an old
144105: # archive will be linked into the output, leading to subtle bugs.
144106: if test "$solaris_use_stlport4" != yes; then
144107: postdeps_CXX='-library=Cstd -library=Crun'
144108: fi
144109: ;;
144110: esac
144111: ;;
144112: esac
144113:
144114: case " $postdeps_CXX " in
144115: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
144116: esac
144117:
144118: lt_prog_compiler_wl_CXX=
144119: lt_prog_compiler_pic_CXX=
144120: lt_prog_compiler_static_CXX=
144121:
1.1.1.3 ! misho 144122: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 144123: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 misho 144124:
144125: # C++ specific cases for pic, static, wl, etc.
144126: if test "$GXX" = yes; then
144127: lt_prog_compiler_wl_CXX='-Wl,'
144128: lt_prog_compiler_static_CXX='-static'
144129:
144130: case $host_os in
144131: aix*)
144132: # All AIX code is PIC.
144133: if test "$host_cpu" = ia64; then
144134: # AIX 5 now supports IA64 processor
144135: lt_prog_compiler_static_CXX='-Bstatic'
144136: fi
144137: ;;
144138: amigaos*)
144139: # FIXME: we need at least 68020 code to build shared libraries, but
144140: # adding the `-m68020' flag to GCC prevents building anything better,
144141: # like `-m68040'.
144142: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
144143: ;;
144144: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
144145: # PIC is the default for these OSes.
144146: ;;
144147: mingw* | cygwin* | os2* | pw32*)
144148: # This hack is so that the source file can tell whether it is being
144149: # built for inclusion in a dll (and should export symbols for example).
144150: # Although the cygwin gcc ignores -fPIC, still need this for old-style
144151: # (--disable-auto-import) libraries
144152: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
144153: ;;
144154: darwin* | rhapsody*)
144155: # PIC is the default on this platform
144156: # Common symbols not allowed in MH_DYLIB files
144157: lt_prog_compiler_pic_CXX='-fno-common'
144158: ;;
144159: *djgpp*)
144160: # DJGPP does not support shared libraries at all
144161: lt_prog_compiler_pic_CXX=
144162: ;;
144163: interix[3-9]*)
144164: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
144165: # Instead, we relocate shared libraries at runtime.
144166: ;;
144167: sysv4*MP*)
144168: if test -d /usr/nec; then
144169: lt_prog_compiler_pic_CXX=-Kconform_pic
144170: fi
144171: ;;
144172: hpux*)
144173: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
144174: # not for PA HP-UX.
144175: case $host_cpu in
144176: hppa*64*|ia64*)
144177: ;;
144178: *)
144179: lt_prog_compiler_pic_CXX='-fPIC'
144180: ;;
144181: esac
144182: ;;
144183: *)
144184: lt_prog_compiler_pic_CXX='-fPIC'
144185: ;;
144186: esac
144187: else
144188: case $host_os in
144189: aix[4-9]*)
144190: # All AIX code is PIC.
144191: if test "$host_cpu" = ia64; then
144192: # AIX 5 now supports IA64 processor
144193: lt_prog_compiler_static_CXX='-Bstatic'
144194: else
144195: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
144196: fi
144197: ;;
144198: chorus*)
144199: case $cc_basename in
144200: cxch68*)
144201: # Green Hills C++ Compiler
144202: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
144203: ;;
144204: esac
144205: ;;
144206: darwin*)
144207: # PIC is the default on this platform
144208: # Common symbols not allowed in MH_DYLIB files
144209: case $cc_basename in
144210: xlc*)
144211: lt_prog_compiler_pic_CXX='-qnocommon'
144212: lt_prog_compiler_wl_CXX='-Wl,'
144213: ;;
144214: esac
144215: ;;
144216: dgux*)
144217: case $cc_basename in
144218: ec++*)
144219: lt_prog_compiler_pic_CXX='-KPIC'
144220: ;;
144221: ghcx*)
144222: # Green Hills C++ Compiler
144223: lt_prog_compiler_pic_CXX='-pic'
144224: ;;
144225: *)
144226: ;;
144227: esac
144228: ;;
144229: freebsd* | dragonfly*)
144230: # FreeBSD uses GNU C++
144231: ;;
144232: hpux9* | hpux10* | hpux11*)
144233: case $cc_basename in
144234: CC*)
144235: lt_prog_compiler_wl_CXX='-Wl,'
144236: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
144237: if test "$host_cpu" != ia64; then
144238: lt_prog_compiler_pic_CXX='+Z'
144239: fi
144240: ;;
144241: aCC*)
144242: lt_prog_compiler_wl_CXX='-Wl,'
144243: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
144244: case $host_cpu in
144245: hppa*64*|ia64*)
144246: # +Z the default
144247: ;;
144248: *)
144249: lt_prog_compiler_pic_CXX='+Z'
144250: ;;
144251: esac
144252: ;;
144253: *)
144254: ;;
144255: esac
144256: ;;
144257: interix*)
144258: # This is c89, which is MS Visual C++ (no shared libs)
144259: # Anyone wants to do a port?
144260: ;;
144261: irix5* | irix6* | nonstopux*)
144262: case $cc_basename in
144263: CC*)
144264: lt_prog_compiler_wl_CXX='-Wl,'
144265: lt_prog_compiler_static_CXX='-non_shared'
144266: # CC pic flag -KPIC is the default.
144267: ;;
144268: *)
144269: ;;
144270: esac
144271: ;;
144272: linux* | k*bsd*-gnu)
144273: case $cc_basename in
144274: KCC*)
144275: # KAI C++ Compiler
144276: lt_prog_compiler_wl_CXX='--backend -Wl,'
144277: lt_prog_compiler_pic_CXX='-fPIC'
144278: ;;
144279: ecpc*)
144280: # old Intel C++ for x86_64 which still supported -KPIC.
144281: lt_prog_compiler_wl_CXX='-Wl,'
144282: lt_prog_compiler_pic_CXX='-KPIC'
144283: lt_prog_compiler_static_CXX='-static'
144284: ;;
144285: icpc*)
144286: # Intel C++, used to be incompatible with GCC.
144287: lt_prog_compiler_wl_CXX='-Wl,'
144288: lt_prog_compiler_pic_CXX='-fPIC'
144289: lt_prog_compiler_static_CXX='-static'
144290: ;;
144291: pgCC* | pgcpp*)
144292: # Portland Group C++ compiler.
144293: lt_prog_compiler_wl_CXX='-Wl,'
144294: lt_prog_compiler_pic_CXX='-fpic'
144295: lt_prog_compiler_static_CXX='-Bstatic'
144296: ;;
144297: cxx*)
144298: # Compaq C++
144299: # Make sure the PIC flag is empty. It appears that all Alpha
144300: # Linux and Compaq Tru64 Unix objects are PIC.
144301: lt_prog_compiler_pic_CXX=
144302: lt_prog_compiler_static_CXX='-non_shared'
144303: ;;
144304: *)
144305: case `$CC -V 2>&1 | sed 5q` in
144306: *Sun\ C*)
144307: # Sun C++ 5.9
144308: lt_prog_compiler_pic_CXX='-KPIC'
144309: lt_prog_compiler_static_CXX='-Bstatic'
144310: lt_prog_compiler_wl_CXX='-Qoption ld '
144311: ;;
144312: esac
144313: ;;
144314: esac
144315: ;;
144316: lynxos*)
144317: ;;
144318: m88k*)
144319: ;;
144320: mvs*)
144321: case $cc_basename in
144322: cxx*)
144323: lt_prog_compiler_pic_CXX='-W c,exportall'
144324: ;;
144325: *)
144326: ;;
144327: esac
144328: ;;
144329: netbsd*)
144330: ;;
144331: osf3* | osf4* | osf5*)
144332: case $cc_basename in
144333: KCC*)
144334: lt_prog_compiler_wl_CXX='--backend -Wl,'
144335: ;;
144336: RCC*)
144337: # Rational C++ 2.4.1
144338: lt_prog_compiler_pic_CXX='-pic'
144339: ;;
144340: cxx*)
144341: # Digital/Compaq C++
144342: lt_prog_compiler_wl_CXX='-Wl,'
144343: # Make sure the PIC flag is empty. It appears that all Alpha
144344: # Linux and Compaq Tru64 Unix objects are PIC.
144345: lt_prog_compiler_pic_CXX=
144346: lt_prog_compiler_static_CXX='-non_shared'
144347: ;;
144348: *)
144349: ;;
144350: esac
144351: ;;
144352: psos*)
144353: ;;
144354: solaris*)
144355: case $cc_basename in
144356: CC*)
144357: # Sun C++ 4.2, 5.x and Centerline C++
144358: lt_prog_compiler_pic_CXX='-KPIC'
144359: lt_prog_compiler_static_CXX='-Bstatic'
144360: lt_prog_compiler_wl_CXX='-Qoption ld '
144361: ;;
144362: gcx*)
144363: # Green Hills C++ Compiler
144364: lt_prog_compiler_pic_CXX='-PIC'
144365: ;;
144366: *)
144367: ;;
144368: esac
144369: ;;
144370: sunos4*)
144371: case $cc_basename in
144372: CC*)
144373: # Sun C++ 4.x
144374: lt_prog_compiler_pic_CXX='-pic'
144375: lt_prog_compiler_static_CXX='-Bstatic'
144376: ;;
144377: lcc*)
144378: # Lucid
144379: lt_prog_compiler_pic_CXX='-pic'
144380: ;;
144381: *)
144382: ;;
144383: esac
144384: ;;
144385: tandem*)
144386: case $cc_basename in
144387: NCC*)
144388: # NonStop-UX NCC 3.20
144389: lt_prog_compiler_pic_CXX='-KPIC'
144390: ;;
144391: *)
144392: ;;
144393: esac
144394: ;;
144395: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
144396: case $cc_basename in
144397: CC*)
144398: lt_prog_compiler_wl_CXX='-Wl,'
144399: lt_prog_compiler_pic_CXX='-KPIC'
144400: lt_prog_compiler_static_CXX='-Bstatic'
144401: ;;
144402: esac
144403: ;;
144404: vxworks*)
144405: ;;
144406: *)
144407: lt_prog_compiler_can_build_shared_CXX=no
144408: ;;
144409: esac
144410: fi
144411:
1.1.1.3 ! misho 144412: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
! 144413: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
1.1 misho 144414:
144415: #
144416: # Check to make sure the PIC flag actually works.
144417: #
144418: if test -n "$lt_prog_compiler_pic_CXX"; then
144419:
1.1.1.3 ! misho 144420: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 144421: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
! 144422: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
! 144423: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 144424: else
144425: lt_cv_prog_compiler_pic_works_CXX=no
144426: ac_outfile=conftest.$ac_objext
144427: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
144428: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
144429: # Insert the option either (1) after the last *FLAGS variable, or
144430: # (2) before a word containing "conftest.", or (3) at the end.
144431: # Note that $ac_compile itself does not contain backslashes and begins
144432: # with a dollar sign (not a hyphen), so the echo should work correctly.
144433: # The option is referenced via a variable to avoid confusing sed.
144434: lt_compile=`echo "$ac_compile" | $SED \
144435: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
144436: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
144437: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! misho 144438: (eval echo "\"configure:144438: $lt_compile\"" >&5)
1.1 misho 144439: (eval "$lt_compile" 2>conftest.err)
144440: ac_status=$?
144441: cat conftest.err >&5
1.1.1.3 ! misho 144442: echo "configure:144442: \$? = $ac_status" >&5
1.1 misho 144443: if (exit $ac_status) && test -s "$ac_outfile"; then
144444: # The compiler can only warn and ignore the option if not recognized
144445: # So say no if there are warnings other than the usual output.
144446: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
144447: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
144448: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
144449: lt_cv_prog_compiler_pic_works_CXX=yes
144450: fi
144451: fi
144452: $rm conftest*
144453:
144454: fi
1.1.1.3 ! misho 144455: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 144456: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.1 misho 144457:
144458: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
144459: case $lt_prog_compiler_pic_CXX in
144460: "" | " "*) ;;
144461: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
144462: esac
144463: else
144464: lt_prog_compiler_pic_CXX=
144465: lt_prog_compiler_can_build_shared_CXX=no
144466: fi
144467:
144468: fi
144469: case $host_os in
144470: # For platforms which do not support PIC, -DPIC is meaningless:
144471: *djgpp*)
144472: lt_prog_compiler_pic_CXX=
144473: ;;
144474: *)
144475: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
144476: ;;
144477: esac
144478:
144479: #
144480: # Check to make sure the static flag actually works.
144481: #
144482: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.1.1.3 ! misho 144483: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 144484: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 144485: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
! 144486: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 144487: else
144488: lt_cv_prog_compiler_static_works_CXX=no
144489: save_LDFLAGS="$LDFLAGS"
144490: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
144491: echo "$lt_simple_link_test_code" > conftest.$ac_ext
144492: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
144493: # The linker can only warn and ignore the option if not recognized
144494: # So say no if there are warnings
144495: if test -s conftest.err; then
144496: # Append any errors to the config.log.
144497: cat conftest.err 1>&5
144498: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
144499: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
144500: if diff conftest.exp conftest.er2 >/dev/null; then
144501: lt_cv_prog_compiler_static_works_CXX=yes
144502: fi
144503: else
144504: lt_cv_prog_compiler_static_works_CXX=yes
144505: fi
144506: fi
144507: $rm -r conftest*
144508: LDFLAGS="$save_LDFLAGS"
144509:
144510: fi
1.1.1.3 ! misho 144511: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 144512: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.1 misho 144513:
144514: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
144515: :
144516: else
144517: lt_prog_compiler_static_CXX=
144518: fi
144519:
144520:
1.1.1.3 ! misho 144521: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 144522: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 144523: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
! 144524: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 144525: else
144526: lt_cv_prog_compiler_c_o_CXX=no
144527: $rm -r conftest 2>/dev/null
144528: mkdir conftest
144529: cd conftest
144530: mkdir out
144531: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
144532:
144533: lt_compiler_flag="-o out/conftest2.$ac_objext"
144534: # Insert the option either (1) after the last *FLAGS variable, or
144535: # (2) before a word containing "conftest.", or (3) at the end.
144536: # Note that $ac_compile itself does not contain backslashes and begins
144537: # with a dollar sign (not a hyphen), so the echo should work correctly.
144538: lt_compile=`echo "$ac_compile" | $SED \
144539: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
144540: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
144541: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! misho 144542: (eval echo "\"configure:144542: $lt_compile\"" >&5)
1.1 misho 144543: (eval "$lt_compile" 2>out/conftest.err)
144544: ac_status=$?
144545: cat out/conftest.err >&5
1.1.1.3 ! misho 144546: echo "configure:144546: \$? = $ac_status" >&5
1.1 misho 144547: if (exit $ac_status) && test -s out/conftest2.$ac_objext
144548: then
144549: # The compiler can only warn and ignore the option if not recognized
144550: # So say no if there are warnings
144551: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
144552: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
144553: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
144554: lt_cv_prog_compiler_c_o_CXX=yes
144555: fi
144556: fi
144557: chmod u+w . 2>&5
144558: $rm conftest*
144559: # SGI C++ compiler will create directory out/ii_files/ for
144560: # template instantiation
144561: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
144562: $rm out/* && rmdir out
144563: cd ..
144564: rmdir conftest
144565: $rm conftest*
144566:
144567: fi
1.1.1.3 ! misho 144568: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 144569: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.1 misho 144570:
144571:
144572: hard_links="nottested"
144573: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
144574: # do not overwrite the value of need_locks provided by the user
1.1.1.3 ! misho 144575: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 144576: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 misho 144577: hard_links=yes
144578: $rm conftest*
144579: ln conftest.a conftest.b 2>/dev/null && hard_links=no
144580: touch conftest.a
144581: ln conftest.a conftest.b 2>&5 || hard_links=no
144582: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.3 ! misho 144583: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 144584: echo "${ECHO_T}$hard_links" >&6; }
1.1 misho 144585: if test "$hard_links" = no; then
1.1.1.3 ! misho 144586: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 144587: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1 misho 144588: need_locks=warn
144589: fi
144590: else
144591: need_locks=no
144592: fi
144593:
1.1.1.3 ! misho 144594: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 144595: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 misho 144596:
144597: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
144598: case $host_os in
144599: aix[4-9]*)
144600: # If we're using GNU nm, then we don't want the "-C" option.
144601: # -C means demangle to AIX nm, but means don't demangle with GNU nm
144602: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
144603: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
144604: else
144605: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
144606: fi
144607: ;;
144608: pw32*)
144609: export_symbols_cmds_CXX="$ltdll_cmds"
144610: ;;
144611: cygwin* | mingw*)
144612: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
144613: ;;
144614: *)
144615: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
144616: ;;
144617: esac
144618: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
144619:
1.1.1.3 ! misho 144620: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 144621: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1.1 misho 144622: test "$ld_shlibs_CXX" = no && can_build_shared=no
144623:
144624: #
144625: # Do we need to explicitly link libc?
144626: #
144627: case "x$archive_cmds_need_lc_CXX" in
144628: x|xyes)
144629: # Assume -lc should be added
144630: archive_cmds_need_lc_CXX=yes
144631:
144632: if test "$enable_shared" = yes && test "$GCC" = yes; then
144633: case $archive_cmds_CXX in
144634: *'~'*)
144635: # FIXME: we may have to deal with multi-command sequences.
144636: ;;
144637: '$CC '*)
144638: # Test whether the compiler implicitly links with -lc since on some
144639: # systems, -lgcc has to come before -lc. If gcc already passes -lc
144640: # to ld, don't add -lc before -lgcc.
1.1.1.3 ! misho 144641: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 144642: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 misho 144643: $rm conftest*
144644: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
144645:
1.1.1.3 ! misho 144646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 misho 144647: (eval $ac_compile) 2>&5
144648: ac_status=$?
1.1.1.3 ! misho 144649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 144650: (exit $ac_status); } 2>conftest.err; then
1.1 misho 144651: soname=conftest
144652: lib=conftest
144653: libobjs=conftest.$ac_objext
144654: deplibs=
144655: wl=$lt_prog_compiler_wl_CXX
144656: pic_flag=$lt_prog_compiler_pic_CXX
144657: compiler_flags=-v
144658: linker_flags=-v
144659: verstring=
144660: output_objdir=.
144661: libname=conftest
144662: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
144663: allow_undefined_flag_CXX=
1.1.1.3 ! misho 144664: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.1 misho 144665: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
144666: ac_status=$?
1.1.1.3 ! misho 144667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 144668: (exit $ac_status); }
1.1 misho 144669: then
144670: archive_cmds_need_lc_CXX=no
144671: else
144672: archive_cmds_need_lc_CXX=yes
144673: fi
144674: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
144675: else
144676: cat conftest.err 1>&5
144677: fi
144678: $rm conftest*
1.1.1.3 ! misho 144679: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
! 144680: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
1.1 misho 144681: ;;
144682: esac
144683: fi
144684: ;;
144685: esac
144686:
1.1.1.3 ! misho 144687: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 144688: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 misho 144689: library_names_spec=
144690: libname_spec='lib$name'
144691: soname_spec=
144692: shrext_cmds=".so"
144693: postinstall_cmds=
144694: postuninstall_cmds=
144695: finish_cmds=
144696: finish_eval=
144697: shlibpath_var=
144698: shlibpath_overrides_runpath=unknown
144699: version_type=none
144700: dynamic_linker="$host_os ld.so"
144701: sys_lib_dlsearch_path_spec="/lib /usr/lib"
144702:
144703: need_lib_prefix=unknown
144704: hardcode_into_libs=no
144705:
144706: # when you set need_version to no, make sure it does not cause -set_version
144707: # flags to be left without arguments
144708: need_version=unknown
144709:
144710: case $host_os in
144711: aix3*)
144712: version_type=linux
144713: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
144714: shlibpath_var=LIBPATH
144715:
144716: # AIX 3 has no versioning support, so we append a major version to the name.
144717: soname_spec='${libname}${release}${shared_ext}$major'
144718: ;;
144719:
144720: aix[4-9]*)
144721: version_type=linux
144722: need_lib_prefix=no
144723: need_version=no
144724: hardcode_into_libs=yes
144725: if test "$host_cpu" = ia64; then
144726: # AIX 5 supports IA64
144727: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
144728: shlibpath_var=LD_LIBRARY_PATH
144729: else
144730: # With GCC up to 2.95.x, collect2 would create an import file
144731: # for dependence libraries. The import file would start with
144732: # the line `#! .'. This would cause the generated library to
144733: # depend on `.', always an invalid library. This was fixed in
144734: # development snapshots of GCC prior to 3.0.
144735: case $host_os in
144736: aix4 | aix4.[01] | aix4.[01].*)
144737: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
144738: echo ' yes '
144739: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
144740: :
144741: else
144742: can_build_shared=no
144743: fi
144744: ;;
144745: esac
144746: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
144747: # soname into executable. Probably we can add versioning support to
144748: # collect2, so additional links can be useful in future.
144749: if test "$aix_use_runtimelinking" = yes; then
144750: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
144751: # instead of lib<name>.a to let people know that these are not
144752: # typical AIX shared libraries.
144753: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
144754: else
144755: # We preserve .a as extension for shared libraries through AIX4.2
144756: # and later when we are not doing run time linking.
144757: library_names_spec='${libname}${release}.a $libname.a'
144758: soname_spec='${libname}${release}${shared_ext}$major'
144759: fi
144760: shlibpath_var=LIBPATH
144761: fi
144762: ;;
144763:
144764: amigaos*)
144765: library_names_spec='$libname.ixlibrary $libname.a'
144766: # Create ${libname}_ixlibrary.a entries in /sys/libs.
144767: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
144768: ;;
144769:
144770: beos*)
144771: library_names_spec='${libname}${shared_ext}'
144772: dynamic_linker="$host_os ld.so"
144773: shlibpath_var=LIBRARY_PATH
144774: ;;
144775:
144776: bsdi[45]*)
144777: version_type=linux
144778: need_version=no
144779: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
144780: soname_spec='${libname}${release}${shared_ext}$major'
144781: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
144782: shlibpath_var=LD_LIBRARY_PATH
144783: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
144784: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
144785: # the default ld.so.conf also contains /usr/contrib/lib and
144786: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
144787: # libtool to hard-code these into programs
144788: ;;
144789:
144790: cygwin* | mingw* | pw32*)
144791: version_type=windows
144792: shrext_cmds=".dll"
144793: need_version=no
144794: need_lib_prefix=no
144795:
144796: case $GCC,$host_os in
144797: yes,cygwin* | yes,mingw* | yes,pw32*)
144798: library_names_spec='$libname.dll.a'
144799: # DLL is installed to $(libdir)/../bin by postinstall_cmds
144800: postinstall_cmds='base_file=`basename \${file}`~
144801: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
144802: dldir=$destdir/`dirname \$dlpath`~
144803: test -d \$dldir || mkdir -p \$dldir~
144804: $install_prog $dir/$dlname \$dldir/$dlname~
144805: chmod a+x \$dldir/$dlname'
144806: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
144807: dlpath=$dir/\$dldll~
144808: $rm \$dlpath'
144809: shlibpath_overrides_runpath=yes
144810:
144811: case $host_os in
144812: cygwin*)
144813: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
144814: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
144815: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
144816: ;;
144817: mingw*)
144818: # MinGW DLLs use traditional 'lib' prefix
144819: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
144820: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
144821: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
144822: # It is most probably a Windows format PATH printed by
144823: # mingw gcc, but we are running on Cygwin. Gcc prints its search
144824: # path with ; separators, and with drive letters. We can handle the
144825: # drive letters (cygwin fileutils understands them), so leave them,
144826: # especially as we might pass files found there to a mingw objdump,
144827: # which wouldn't understand a cygwinified path. Ahh.
144828: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
144829: else
144830: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
144831: fi
144832: ;;
144833: pw32*)
144834: # pw32 DLLs use 'pw' prefix rather than 'lib'
144835: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
144836: ;;
144837: esac
144838: ;;
144839:
144840: *)
144841: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
144842: ;;
144843: esac
144844: dynamic_linker='Win32 ld.exe'
144845: # FIXME: first we should search . and the directory the executable is in
144846: shlibpath_var=PATH
144847: ;;
144848:
144849: darwin* | rhapsody*)
144850: dynamic_linker="$host_os dyld"
144851: version_type=darwin
144852: need_lib_prefix=no
144853: need_version=no
144854: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
144855: soname_spec='${libname}${release}${major}$shared_ext'
144856: shlibpath_overrides_runpath=yes
144857: shlibpath_var=DYLD_LIBRARY_PATH
144858: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
144859:
144860: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
144861: ;;
144862:
144863: dgux*)
144864: version_type=linux
144865: need_lib_prefix=no
144866: need_version=no
144867: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
144868: soname_spec='${libname}${release}${shared_ext}$major'
144869: shlibpath_var=LD_LIBRARY_PATH
144870: ;;
144871:
1.1.1.3 ! misho 144872: freebsd1*)
1.1 misho 144873: dynamic_linker=no
144874: ;;
144875:
144876: freebsd* | dragonfly*)
144877: # DragonFly does not have aout. When/if they implement a new
144878: # versioning mechanism, adjust this.
144879: if test -x /usr/bin/objformat; then
144880: objformat=`/usr/bin/objformat`
144881: else
144882: case $host_os in
1.1.1.3 ! misho 144883: freebsd[123]*) objformat=aout ;;
1.1 misho 144884: *) objformat=elf ;;
144885: esac
144886: fi
144887: version_type=freebsd-$objformat
144888: case $version_type in
144889: freebsd-elf*)
144890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
144891: need_version=no
144892: need_lib_prefix=no
144893: ;;
144894: freebsd-*)
144895: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
144896: need_version=yes
144897: ;;
144898: esac
144899: shlibpath_var=LD_LIBRARY_PATH
144900: case $host_os in
144901: freebsd2*)
144902: shlibpath_overrides_runpath=yes
144903: ;;
144904: freebsd3.[01]* | freebsdelf3.[01]*)
144905: shlibpath_overrides_runpath=yes
144906: hardcode_into_libs=yes
144907: ;;
144908: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
144909: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
144910: shlibpath_overrides_runpath=no
144911: hardcode_into_libs=yes
144912: ;;
144913: *) # from 4.6 on, and DragonFly
144914: shlibpath_overrides_runpath=yes
144915: hardcode_into_libs=yes
144916: ;;
144917: esac
144918: ;;
144919:
144920: gnu*)
144921: version_type=linux
144922: need_lib_prefix=no
144923: need_version=no
144924: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
144925: soname_spec='${libname}${release}${shared_ext}$major'
144926: shlibpath_var=LD_LIBRARY_PATH
144927: hardcode_into_libs=yes
144928: ;;
144929:
144930: hpux9* | hpux10* | hpux11*)
144931: # Give a soname corresponding to the major version so that dld.sl refuses to
144932: # link against other versions.
144933: version_type=sunos
144934: need_lib_prefix=no
144935: need_version=no
144936: case $host_cpu in
144937: ia64*)
144938: shrext_cmds='.so'
144939: hardcode_into_libs=yes
144940: dynamic_linker="$host_os dld.so"
144941: shlibpath_var=LD_LIBRARY_PATH
144942: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
144943: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
144944: soname_spec='${libname}${release}${shared_ext}$major'
144945: if test "X$HPUX_IA64_MODE" = X32; then
144946: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
144947: else
144948: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
144949: fi
144950: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
144951: ;;
144952: hppa*64*)
144953: shrext_cmds='.sl'
144954: hardcode_into_libs=yes
144955: dynamic_linker="$host_os dld.sl"
144956: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
144957: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
144958: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
144959: soname_spec='${libname}${release}${shared_ext}$major'
144960: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
144961: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
144962: ;;
144963: *)
144964: shrext_cmds='.sl'
144965: dynamic_linker="$host_os dld.sl"
144966: shlibpath_var=SHLIB_PATH
144967: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
144968: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
144969: soname_spec='${libname}${release}${shared_ext}$major'
144970: ;;
144971: esac
144972: # HP-UX runs *really* slowly unless shared libraries are mode 555.
144973: postinstall_cmds='chmod 555 $lib'
144974: ;;
144975:
144976: interix[3-9]*)
144977: version_type=linux
144978: need_lib_prefix=no
144979: need_version=no
144980: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
144981: soname_spec='${libname}${release}${shared_ext}$major'
144982: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
144983: shlibpath_var=LD_LIBRARY_PATH
144984: shlibpath_overrides_runpath=no
144985: hardcode_into_libs=yes
144986: ;;
144987:
144988: irix5* | irix6* | nonstopux*)
144989: case $host_os in
144990: nonstopux*) version_type=nonstopux ;;
144991: *)
144992: if test "$lt_cv_prog_gnu_ld" = yes; then
144993: version_type=linux
144994: else
144995: version_type=irix
144996: fi ;;
144997: esac
144998: need_lib_prefix=no
144999: need_version=no
145000: soname_spec='${libname}${release}${shared_ext}$major'
145001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
145002: case $host_os in
145003: irix5* | nonstopux*)
145004: libsuff= shlibsuff=
145005: ;;
145006: *)
145007: case $LD in # libtool.m4 will add one of these switches to LD
145008: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
145009: libsuff= shlibsuff= libmagic=32-bit;;
145010: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
145011: libsuff=32 shlibsuff=N32 libmagic=N32;;
145012: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
145013: libsuff=64 shlibsuff=64 libmagic=64-bit;;
145014: *) libsuff= shlibsuff= libmagic=never-match;;
145015: esac
145016: ;;
145017: esac
145018: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
145019: shlibpath_overrides_runpath=no
145020: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
145021: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
145022: hardcode_into_libs=yes
145023: ;;
145024:
145025: # No shared lib support for Linux oldld, aout, or coff.
145026: linux*oldld* | linux*aout* | linux*coff*)
145027: dynamic_linker=no
145028: ;;
145029:
145030: # This must be Linux ELF.
145031: linux* | k*bsd*-gnu)
145032: version_type=linux
145033: need_lib_prefix=no
145034: need_version=no
145035: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145036: soname_spec='${libname}${release}${shared_ext}$major'
145037: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
145038: shlibpath_var=LD_LIBRARY_PATH
145039: shlibpath_overrides_runpath=no
145040: # This implies no fast_install, which is unacceptable.
145041: # Some rework will be needed to allow for fast_install
145042: # before this can be enabled.
145043: hardcode_into_libs=yes
145044:
145045: # Append ld.so.conf contents to the search path
145046: if test -f /etc/ld.so.conf; then
145047: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
145048: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
145049: fi
145050:
145051: # We used to test for /lib/ld.so.1 and disable shared libraries on
145052: # powerpc, because MkLinux only supported shared libraries with the
145053: # GNU dynamic linker. Since this was broken with cross compilers,
145054: # most powerpc-linux boxes support dynamic linking these days and
145055: # people can always --disable-shared, the test was removed, and we
145056: # assume the GNU/Linux dynamic linker is in use.
145057: dynamic_linker='GNU/Linux ld.so'
145058: ;;
145059:
145060: netbsd*)
145061: version_type=sunos
145062: need_lib_prefix=no
145063: need_version=no
145064: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
145065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
145066: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
145067: dynamic_linker='NetBSD (a.out) ld.so'
145068: else
145069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
145070: soname_spec='${libname}${release}${shared_ext}$major'
145071: dynamic_linker='NetBSD ld.elf_so'
145072: fi
145073: shlibpath_var=LD_LIBRARY_PATH
145074: shlibpath_overrides_runpath=yes
145075: hardcode_into_libs=yes
145076: ;;
145077:
145078: newsos6)
145079: version_type=linux
145080: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145081: shlibpath_var=LD_LIBRARY_PATH
145082: shlibpath_overrides_runpath=yes
145083: ;;
145084:
145085: nto-qnx*)
145086: version_type=linux
145087: need_lib_prefix=no
145088: need_version=no
145089: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145090: soname_spec='${libname}${release}${shared_ext}$major'
145091: shlibpath_var=LD_LIBRARY_PATH
145092: shlibpath_overrides_runpath=yes
145093: ;;
145094:
145095: openbsd*)
145096: version_type=sunos
145097: sys_lib_dlsearch_path_spec="/usr/lib"
145098: need_lib_prefix=no
145099: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
145100: case $host_os in
145101: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
145102: *) need_version=no ;;
145103: esac
145104: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
145105: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
145106: shlibpath_var=LD_LIBRARY_PATH
145107: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
145108: case $host_os in
145109: openbsd2.[89] | openbsd2.[89].*)
145110: shlibpath_overrides_runpath=no
145111: ;;
145112: *)
145113: shlibpath_overrides_runpath=yes
145114: ;;
145115: esac
145116: else
145117: shlibpath_overrides_runpath=yes
145118: fi
145119: ;;
145120:
145121: os2*)
145122: libname_spec='$name'
145123: shrext_cmds=".dll"
145124: need_lib_prefix=no
145125: library_names_spec='$libname${shared_ext} $libname.a'
145126: dynamic_linker='OS/2 ld.exe'
145127: shlibpath_var=LIBPATH
145128: ;;
145129:
145130: osf3* | osf4* | osf5*)
145131: version_type=osf
145132: need_lib_prefix=no
145133: need_version=no
145134: soname_spec='${libname}${release}${shared_ext}$major'
145135: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145136: shlibpath_var=LD_LIBRARY_PATH
145137: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
145138: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
145139: ;;
145140:
145141: rdos*)
145142: dynamic_linker=no
145143: ;;
145144:
145145: solaris*)
145146: version_type=linux
145147: need_lib_prefix=no
145148: need_version=no
145149: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145150: soname_spec='${libname}${release}${shared_ext}$major'
145151: shlibpath_var=LD_LIBRARY_PATH
145152: shlibpath_overrides_runpath=yes
145153: hardcode_into_libs=yes
145154: # ldd complains unless libraries are executable
145155: postinstall_cmds='chmod +x $lib'
145156: ;;
145157:
145158: sunos4*)
145159: version_type=sunos
145160: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
145161: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
145162: shlibpath_var=LD_LIBRARY_PATH
145163: shlibpath_overrides_runpath=yes
145164: if test "$with_gnu_ld" = yes; then
145165: need_lib_prefix=no
145166: fi
145167: need_version=yes
145168: ;;
145169:
145170: sysv4 | sysv4.3*)
145171: version_type=linux
145172: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145173: soname_spec='${libname}${release}${shared_ext}$major'
145174: shlibpath_var=LD_LIBRARY_PATH
145175: case $host_vendor in
145176: sni)
145177: shlibpath_overrides_runpath=no
145178: need_lib_prefix=no
145179: export_dynamic_flag_spec='${wl}-Blargedynsym'
145180: runpath_var=LD_RUN_PATH
145181: ;;
145182: siemens)
145183: need_lib_prefix=no
145184: ;;
145185: motorola)
145186: need_lib_prefix=no
145187: need_version=no
145188: shlibpath_overrides_runpath=no
145189: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
145190: ;;
145191: esac
145192: ;;
145193:
145194: sysv4*MP*)
145195: if test -d /usr/nec ;then
145196: version_type=linux
145197: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
145198: soname_spec='$libname${shared_ext}.$major'
145199: shlibpath_var=LD_LIBRARY_PATH
145200: fi
145201: ;;
145202:
145203: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
145204: version_type=freebsd-elf
145205: need_lib_prefix=no
145206: need_version=no
145207: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
145208: soname_spec='${libname}${release}${shared_ext}$major'
145209: shlibpath_var=LD_LIBRARY_PATH
145210: hardcode_into_libs=yes
145211: if test "$with_gnu_ld" = yes; then
145212: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
145213: shlibpath_overrides_runpath=no
145214: else
145215: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
145216: shlibpath_overrides_runpath=yes
145217: case $host_os in
145218: sco3.2v5*)
145219: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
145220: ;;
145221: esac
145222: fi
145223: sys_lib_dlsearch_path_spec='/usr/lib'
145224: ;;
145225:
145226: uts4*)
145227: version_type=linux
145228: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
145229: soname_spec='${libname}${release}${shared_ext}$major'
145230: shlibpath_var=LD_LIBRARY_PATH
145231: ;;
145232:
145233: *)
145234: dynamic_linker=no
145235: ;;
145236: esac
1.1.1.3 ! misho 145237: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 145238: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 misho 145239: test "$dynamic_linker" = no && can_build_shared=no
145240:
1.1.1.3 ! misho 145241: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
! 145242: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 145243: else
145244: lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
145245: fi
145246:
145247: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1.1.1.3 ! misho 145248: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
! 145249: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misho 145250: else
145251: lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
145252: fi
145253:
145254: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
145255:
145256: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
145257: if test "$GCC" = yes; then
145258: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
145259: fi
145260:
1.1.1.3 ! misho 145261: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 145262: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
1.1 misho 145263: hardcode_action_CXX=
145264: if test -n "$hardcode_libdir_flag_spec_CXX" || \
145265: test -n "$runpath_var_CXX" || \
145266: test "X$hardcode_automatic_CXX" = "Xyes" ; then
145267:
145268: # We can hardcode non-existant directories.
145269: if test "$hardcode_direct_CXX" != no &&
145270: # If the only mechanism to avoid hardcoding is shlibpath_var, we
145271: # have to relink, otherwise we might link with an installed library
145272: # when we should be linking with a yet-to-be-installed one
145273: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
145274: test "$hardcode_minus_L_CXX" != no; then
145275: # Linking always hardcodes the temporary library directory.
145276: hardcode_action_CXX=relink
145277: else
145278: # We can link without hardcoding, and we can hardcode nonexisting dirs.
145279: hardcode_action_CXX=immediate
145280: fi
145281: else
145282: # We cannot hardcode anything, or else we can only hardcode existing
145283: # directories.
145284: hardcode_action_CXX=unsupported
145285: fi
1.1.1.3 ! misho 145286: { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
! 145287: echo "${ECHO_T}$hardcode_action_CXX" >&6; }
1.1 misho 145288:
145289: if test "$hardcode_action_CXX" = relink; then
145290: # Fast installation is not supported
145291: enable_fast_install=no
145292: elif test "$shlibpath_overrides_runpath" = yes ||
145293: test "$enable_shared" = no; then
145294: # Fast installation is not necessary
145295: enable_fast_install=needless
145296: fi
145297:
145298:
145299: # The else clause should only fire when bootstrapping the
145300: # libtool distribution, otherwise you forgot to ship ltmain.sh
145301: # with your package, and you will get complaints that there are
145302: # no rules to generate ltmain.sh.
145303: if test -f "$ltmain"; then
145304: # See if we are running on zsh, and set the options which allow our commands through
145305: # without removal of \ escapes.
145306: if test -n "${ZSH_VERSION+set}" ; then
145307: setopt NO_GLOB_SUBST
145308: fi
145309: # Now quote all the things that may contain metacharacters while being
145310: # careful not to overquote the AC_SUBSTed values. We take copies of the
145311: # variables and quote the copies for generation of the libtool script.
145312: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
145313: SED SHELL STRIP \
145314: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
145315: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
145316: deplibs_check_method reload_flag reload_cmds need_locks \
145317: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
145318: lt_cv_sys_global_symbol_to_c_name_address \
145319: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
145320: old_postinstall_cmds old_postuninstall_cmds \
145321: compiler_CXX \
145322: CC_CXX \
145323: LD_CXX \
145324: lt_prog_compiler_wl_CXX \
145325: lt_prog_compiler_pic_CXX \
145326: lt_prog_compiler_static_CXX \
145327: lt_prog_compiler_no_builtin_flag_CXX \
145328: export_dynamic_flag_spec_CXX \
145329: thread_safe_flag_spec_CXX \
145330: whole_archive_flag_spec_CXX \
145331: enable_shared_with_static_runtimes_CXX \
145332: old_archive_cmds_CXX \
145333: old_archive_from_new_cmds_CXX \
145334: predep_objects_CXX \
145335: postdep_objects_CXX \
145336: predeps_CXX \
145337: postdeps_CXX \
145338: compiler_lib_search_path_CXX \
145339: compiler_lib_search_dirs_CXX \
145340: archive_cmds_CXX \
145341: archive_expsym_cmds_CXX \
145342: postinstall_cmds_CXX \
145343: postuninstall_cmds_CXX \
145344: old_archive_from_expsyms_cmds_CXX \
145345: allow_undefined_flag_CXX \
145346: no_undefined_flag_CXX \
145347: export_symbols_cmds_CXX \
145348: hardcode_libdir_flag_spec_CXX \
145349: hardcode_libdir_flag_spec_ld_CXX \
145350: hardcode_libdir_separator_CXX \
145351: hardcode_automatic_CXX \
145352: module_cmds_CXX \
145353: module_expsym_cmds_CXX \
145354: lt_cv_prog_compiler_c_o_CXX \
145355: fix_srcfile_path_CXX \
145356: exclude_expsyms_CXX \
145357: include_expsyms_CXX; do
145358:
145359: case $var in
145360: old_archive_cmds_CXX | \
145361: old_archive_from_new_cmds_CXX | \
145362: archive_cmds_CXX | \
145363: archive_expsym_cmds_CXX | \
145364: module_cmds_CXX | \
145365: module_expsym_cmds_CXX | \
145366: old_archive_from_expsyms_cmds_CXX | \
145367: export_symbols_cmds_CXX | \
145368: extract_expsyms_cmds | reload_cmds | finish_cmds | \
145369: postinstall_cmds | postuninstall_cmds | \
145370: old_postinstall_cmds | old_postuninstall_cmds | \
145371: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
145372: # Double-quote double-evaled strings.
145373: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
145374: ;;
145375: *)
145376: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
145377: ;;
145378: esac
145379: done
145380:
145381: case $lt_echo in
145382: *'\$0 --fallback-echo"')
145383: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
145384: ;;
145385: esac
145386:
145387: cfgfile="$ofile"
145388:
145389: cat <<__EOF__ >> "$cfgfile"
145390: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
145391:
145392: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
145393:
145394: # Shell to use when invoking shell scripts.
145395: SHELL=$lt_SHELL
145396:
145397: # Whether or not to build shared libraries.
145398: build_libtool_libs=$enable_shared
145399:
145400: # Whether or not to build static libraries.
145401: build_old_libs=$enable_static
145402:
145403: # Whether or not to add -lc for building shared libraries.
145404: build_libtool_need_lc=$archive_cmds_need_lc_CXX
145405:
145406: # Whether or not to disallow shared libs when runtime libs are static
145407: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
145408:
145409: # Whether or not to optimize for fast installation.
145410: fast_install=$enable_fast_install
145411:
145412: # The host system.
145413: host_alias=$host_alias
145414: host=$host
145415: host_os=$host_os
145416:
145417: # The build system.
145418: build_alias=$build_alias
145419: build=$build
145420: build_os=$build_os
145421:
145422: # An echo program that does not interpret backslashes.
145423: echo=$lt_echo
145424:
145425: # The archiver.
145426: AR=$lt_AR
145427: AR_FLAGS=$lt_AR_FLAGS
145428:
145429: # A C compiler.
145430: LTCC=$lt_LTCC
145431:
145432: # LTCC compiler flags.
145433: LTCFLAGS=$lt_LTCFLAGS
145434:
145435: # A language-specific compiler.
145436: CC=$lt_compiler_CXX
145437:
145438: # Is the compiler the GNU C compiler?
145439: with_gcc=$GCC_CXX
145440:
145441: # An ERE matcher.
145442: EGREP=$lt_EGREP
145443:
145444: # The linker used to build libraries.
145445: LD=$lt_LD_CXX
145446:
145447: # Whether we need hard or soft links.
145448: LN_S=$lt_LN_S
145449:
145450: # A BSD-compatible nm program.
145451: NM=$lt_NM
145452:
145453: # A symbol stripping program
145454: STRIP=$lt_STRIP
145455:
145456: # Used to examine libraries when file_magic_cmd begins "file"
145457: MAGIC_CMD=$MAGIC_CMD
145458:
145459: # Used on cygwin: DLL creation program.
145460: DLLTOOL="$DLLTOOL"
145461:
145462: # Used on cygwin: object dumper.
145463: OBJDUMP="$OBJDUMP"
145464:
145465: # Used on cygwin: assembler.
145466: AS="$AS"
145467:
145468: # The name of the directory that contains temporary libtool files.
145469: objdir=$objdir
145470:
145471: # How to create reloadable object files.
145472: reload_flag=$lt_reload_flag
145473: reload_cmds=$lt_reload_cmds
145474:
145475: # How to pass a linker flag through the compiler.
145476: wl=$lt_lt_prog_compiler_wl_CXX
145477:
145478: # Object file suffix (normally "o").
145479: objext="$ac_objext"
145480:
145481: # Old archive suffix (normally "a").
145482: libext="$libext"
145483:
145484: # Shared library suffix (normally ".so").
145485: shrext_cmds='$shrext_cmds'
145486:
145487: # Executable file suffix (normally "").
145488: exeext="$exeext"
145489:
145490: # Additional compiler flags for building library objects.
145491: pic_flag=$lt_lt_prog_compiler_pic_CXX
145492: pic_mode=$pic_mode
145493:
145494: # What is the maximum length of a command?
145495: max_cmd_len=$lt_cv_sys_max_cmd_len
145496:
145497: # Does compiler simultaneously support -c and -o options?
145498: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
145499:
145500: # Must we lock files when doing compilation?
145501: need_locks=$lt_need_locks
145502:
145503: # Do we need the lib prefix for modules?
145504: need_lib_prefix=$need_lib_prefix
145505:
145506: # Do we need a version for libraries?
145507: need_version=$need_version
145508:
145509: # Whether dlopen is supported.
145510: dlopen_support=$enable_dlopen
145511:
145512: # Whether dlopen of programs is supported.
145513: dlopen_self=$enable_dlopen_self
145514:
145515: # Whether dlopen of statically linked programs is supported.
145516: dlopen_self_static=$enable_dlopen_self_static
145517:
145518: # Compiler flag to prevent dynamic linking.
145519: link_static_flag=$lt_lt_prog_compiler_static_CXX
145520:
145521: # Compiler flag to turn off builtin functions.
145522: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
145523:
145524: # Compiler flag to allow reflexive dlopens.
145525: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
145526:
145527: # Compiler flag to generate shared objects directly from archives.
145528: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
145529:
145530: # Compiler flag to generate thread-safe objects.
145531: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
145532:
145533: # Library versioning type.
145534: version_type=$version_type
145535:
145536: # Format of library name prefix.
145537: libname_spec=$lt_libname_spec
145538:
145539: # List of archive names. First name is the real one, the rest are links.
145540: # The last name is the one that the linker finds with -lNAME.
145541: library_names_spec=$lt_library_names_spec
145542:
145543: # The coded name of the library, if different from the real name.
145544: soname_spec=$lt_soname_spec
145545:
145546: # Commands used to build and install an old-style archive.
145547: RANLIB=$lt_RANLIB
145548: old_archive_cmds=$lt_old_archive_cmds_CXX
145549: old_postinstall_cmds=$lt_old_postinstall_cmds
145550: old_postuninstall_cmds=$lt_old_postuninstall_cmds
145551:
145552: # Create an old-style archive from a shared archive.
145553: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
145554:
145555: # Create a temporary old-style archive to link instead of a shared archive.
145556: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
145557:
145558: # Commands used to build and install a shared archive.
145559: archive_cmds=$lt_archive_cmds_CXX
145560: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
145561: postinstall_cmds=$lt_postinstall_cmds
145562: postuninstall_cmds=$lt_postuninstall_cmds
145563:
145564: # Commands used to build a loadable module (assumed same as above if empty)
145565: module_cmds=$lt_module_cmds_CXX
145566: module_expsym_cmds=$lt_module_expsym_cmds_CXX
145567:
145568: # Commands to strip libraries.
145569: old_striplib=$lt_old_striplib
145570: striplib=$lt_striplib
145571:
145572: # Dependencies to place before the objects being linked to create a
145573: # shared library.
145574: predep_objects=$lt_predep_objects_CXX
145575:
145576: # Dependencies to place after the objects being linked to create a
145577: # shared library.
145578: postdep_objects=$lt_postdep_objects_CXX
145579:
145580: # Dependencies to place before the objects being linked to create a
145581: # shared library.
145582: predeps=$lt_predeps_CXX
145583:
145584: # Dependencies to place after the objects being linked to create a
145585: # shared library.
145586: postdeps=$lt_postdeps_CXX
145587:
145588: # The directories searched by this compiler when creating a shared
145589: # library
145590: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
145591:
145592: # The library search path used internally by the compiler when linking
145593: # a shared library.
145594: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
145595:
145596: # Method to check whether dependent libraries are shared objects.
145597: deplibs_check_method=$lt_deplibs_check_method
145598:
145599: # Command to use when deplibs_check_method == file_magic.
145600: file_magic_cmd=$lt_file_magic_cmd
145601:
145602: # Flag that allows shared libraries with undefined symbols to be built.
145603: allow_undefined_flag=$lt_allow_undefined_flag_CXX
145604:
145605: # Flag that forces no undefined symbols.
145606: no_undefined_flag=$lt_no_undefined_flag_CXX
145607:
145608: # Commands used to finish a libtool library installation in a directory.
145609: finish_cmds=$lt_finish_cmds
145610:
145611: # Same as above, but a single script fragment to be evaled but not shown.
145612: finish_eval=$lt_finish_eval
145613:
145614: # Take the output of nm and produce a listing of raw symbols and C names.
145615: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
145616:
145617: # Transform the output of nm in a proper C declaration
145618: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
145619:
145620: # Transform the output of nm in a C name address pair
145621: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
145622:
145623: # This is the shared library runtime path variable.
145624: runpath_var=$runpath_var
145625:
145626: # This is the shared library path variable.
145627: shlibpath_var=$shlibpath_var
145628:
145629: # Is shlibpath searched before the hard-coded library search path?
145630: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
145631:
145632: # How to hardcode a shared library path into an executable.
145633: hardcode_action=$hardcode_action_CXX
145634:
145635: # Whether we should hardcode library paths into libraries.
145636: hardcode_into_libs=$hardcode_into_libs
145637:
145638: # Flag to hardcode \$libdir into a binary during linking.
145639: # This must work even if \$libdir does not exist.
145640: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
145641:
145642: # If ld is used when linking, flag to hardcode \$libdir into
145643: # a binary during linking. This must work even if \$libdir does
145644: # not exist.
145645: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
145646:
145647: # Whether we need a single -rpath flag with a separated argument.
145648: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
145649:
145650: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
145651: # resulting binary.
145652: hardcode_direct=$hardcode_direct_CXX
145653:
145654: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
145655: # resulting binary.
145656: hardcode_minus_L=$hardcode_minus_L_CXX
145657:
145658: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
145659: # the resulting binary.
145660: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
145661:
145662: # Set to yes if building a shared library automatically hardcodes DIR into the library
145663: # and all subsequent libraries and executables linked against it.
145664: hardcode_automatic=$hardcode_automatic_CXX
145665:
145666: # Variables whose values should be saved in libtool wrapper scripts and
145667: # restored at relink time.
145668: variables_saved_for_relink="$variables_saved_for_relink"
145669:
145670: # Whether libtool must link a program against all its dependency libraries.
145671: link_all_deplibs=$link_all_deplibs_CXX
145672:
145673: # Compile-time system search path for libraries
145674: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
145675:
145676: # Run-time system search path for libraries
145677: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
145678:
145679: # Fix the shell variable \$srcfile for the compiler.
145680: fix_srcfile_path=$lt_fix_srcfile_path
145681:
145682: # Set to yes if exported symbols are required.
145683: always_export_symbols=$always_export_symbols_CXX
145684:
145685: # The commands to list exported symbols.
145686: export_symbols_cmds=$lt_export_symbols_cmds_CXX
145687:
145688: # The commands to extract the exported symbol list from a shared archive.
145689: extract_expsyms_cmds=$lt_extract_expsyms_cmds
145690:
145691: # Symbols that should not be listed in the preloaded symbols.
145692: exclude_expsyms=$lt_exclude_expsyms_CXX
145693:
145694: # Symbols that must always be exported.
145695: include_expsyms=$lt_include_expsyms_CXX
145696:
145697: # ### END LIBTOOL TAG CONFIG: $tagname
145698:
145699: __EOF__
145700:
145701:
145702: else
145703: # If there is no Makefile yet, we rely on a make rule to execute
145704: # `config.status --recheck' to rerun these tests and create the
145705: # libtool script then.
145706: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
145707: if test -f "$ltmain_in"; then
145708: test -f Makefile && make "$ltmain"
145709: fi
145710: fi
145711:
145712:
145713: ac_ext=c
145714: ac_cpp='$CPP $CPPFLAGS'
145715: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
145716: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
145717: ac_compiler_gnu=$ac_cv_c_compiler_gnu
145718:
145719: CC=$lt_save_CC
145720: LDCXX=$LD
145721: LD=$lt_save_LD
145722: GCC=$lt_save_GCC
145723: with_gnu_ldcxx=$with_gnu_ld
145724: with_gnu_ld=$lt_save_with_gnu_ld
145725: lt_cv_path_LDCXX=$lt_cv_path_LD
145726: lt_cv_path_LD=$lt_save_path_LD
145727: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
145728: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
145729:
145730: else
145731: tagname=""
145732: fi
145733: ;;
145734:
145735: *)
1.1.1.3 ! misho 145736: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
! 145737: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
! 145738: { (exit 1); exit 1; }; }
1.1 misho 145739: ;;
145740: esac
145741:
145742: # Append the new tag name to the list of available tags.
145743: if test -n "$tagname" ; then
145744: available_tags="$available_tags $tagname"
145745: fi
145746: fi
145747: done
145748: IFS="$lt_save_ifs"
145749:
145750: # Now substitute the updated list of available tags.
145751: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
145752: mv "${ofile}T" "$ofile"
145753: chmod +x "$ofile"
145754: else
145755: rm -f "${ofile}T"
1.1.1.3 ! misho 145756: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
! 145757: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
! 145758: { (exit 1); exit 1; }; }
1.1 misho 145759: fi
145760: fi
145761:
145762:
145763:
145764: # This can be used to rebuild libtool when needed
145765: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
145766:
145767: # Always use our own libtool.
145768: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
145769:
145770: # Prevent multiple expansion
145771:
145772:
145773:
145774:
145775:
145776:
145777:
145778:
145779:
145780:
145781:
145782: if test "$enable_debug" != "yes"; then
145783:
145784: if test -z "$LIBTOOL"; then
145785: LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
145786: else
145787: LIBTOOL="$LIBTOOL --silent"
145788: fi
145789:
145790: fi
145791:
145792:
145793: if test -z "$LIBTOOL"; then
145794: LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps'
145795: else
145796: LIBTOOL="$LIBTOOL --preserve-dup-deps"
145797: fi
145798:
145799:
145800: test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
145801: test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
145802: SHARED_LIBTOOL='$(LIBTOOL)'
145803:
145804: CC=$old_CC
145805:
145806:
1.1.1.3 ! misho 145807: { echo "$as_me:$LINENO: result: " >&5
! 145808: echo "${ECHO_T}" >&6; }
! 145809: { echo "$as_me:$LINENO: result: ${T_MD}Generating files${T_ME}" >&5
! 145810: echo "${ECHO_T}${T_MD}Generating files${T_ME}" >&6; }
1.1 misho 145811:
145812:
145813: CXXFLAGS_CLEAN=$CXXFLAGS
145814: CFLAGS_CLEAN=$CFLAGS
145815: CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
145816: INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
145817: CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
145818:
145819: if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
145820: pharcmd=pharcmd
145821: pharcmd_install=install-pharcmd
145822: else
145823: pharcmd=
145824: pharcmd_install=
145825: fi;
145826:
1.1.1.2 misho 145827: all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
145828: install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
1.1 misho 145829:
145830:
145831: PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
145832:
145833:
145834: PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
145835:
145836:
1.1.1.2 misho 145837: PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets"
145838:
1.1 misho 145839:
145840:
1.1.1.2 misho 145841:
1.1.1.3 ! misho 145842: for header_file in Zend/ TSRM/ include/ main/ main/streams/; do
1.1 misho 145843:
145844:
145845: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
145846:
145847: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
145848: if test -n "$unique" && test "`eval $cmd`" = "" ; then
145849: eval "INSTALLHEADERS$unique=set"
145850:
145851: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
145852:
145853: fi
145854:
145855: done
145856:
145857:
145858:
145859:
145860:
145861: case TSRM in
145862: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
145863: /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
145864: *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
145865: esac
145866:
145867:
145868:
145869: b_c_pre=$php_c_pre
145870: b_cxx_pre=$php_cxx_pre
145871: b_c_meta=$php_c_meta
145872: b_cxx_meta=$php_cxx_meta
145873: b_c_post=$php_c_post
145874: b_cxx_post=$php_cxx_post
145875: b_lo=$php_lo
145876:
145877:
145878: old_IFS=$IFS
145879: for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do
145880:
145881: IFS=.
145882: set $ac_src
145883: ac_obj=$1
145884: IFS=$old_IFS
145885:
145886: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
145887:
145888: case $ac_src in
145889: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145890: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145891: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145892: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
145893: esac
145894:
145895: cat >>Makefile.objects<<EOF
145896: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
145897: $ac_comp
145898: EOF
145899: done
145900:
145901:
145902:
145903:
145904:
145905: case main in
145906: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
145907: /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
145908: *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
145909: esac
145910:
145911:
145912:
145913: b_c_pre=$php_c_pre
145914: b_cxx_pre=$php_cxx_pre
145915: b_c_meta=$php_c_meta
145916: b_cxx_meta=$php_cxx_meta
145917: b_c_post=$php_c_post
145918: b_cxx_post=$php_cxx_post
145919: b_lo=$php_lo
145920:
145921:
145922: old_IFS=$IFS
145923: for ac_src in main.c snprintf.c spprintf.c php_sprintf.c \
1.1.1.2 misho 145924: fopen_wrappers.c alloca.c php_scandir.c \
1.1 misho 145925: php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
145926: strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
145927: network.c php_open_temporary_file.c php_logos.c \
1.1.1.2 misho 145928: output.c getopt.c; do
1.1 misho 145929:
145930: IFS=.
145931: set $ac_src
145932: ac_obj=$1
145933: IFS=$old_IFS
145934:
145935: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
145936:
145937: case $ac_src in
145938: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145939: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145940: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145941: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
145942: esac
145943:
145944: cat >>Makefile.objects<<EOF
145945: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
145946: $ac_comp
145947: EOF
145948: done
145949:
145950:
145951:
145952:
145953:
145954: case main/streams in
145955: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
145956: /*) ac_srcdir=`echo "main/streams"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
145957: *) ac_srcdir="$abs_srcdir/main/streams/"; ac_bdir="main/streams/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
145958: esac
145959:
145960:
145961:
145962: b_c_pre=$php_c_pre
145963: b_cxx_pre=$php_cxx_pre
145964: b_c_meta=$php_c_meta
145965: b_cxx_meta=$php_cxx_meta
145966: b_c_post=$php_c_post
145967: b_cxx_post=$php_cxx_post
145968: b_lo=$php_lo
145969:
145970:
145971: old_IFS=$IFS
145972: for ac_src in streams.c cast.c memory.c filter.c \
145973: plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
145974: glob_wrapper.c; do
145975:
145976: IFS=.
145977: set $ac_src
145978: ac_obj=$1
145979: IFS=$old_IFS
145980:
145981: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
145982:
145983: case $ac_src in
145984: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145985: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145986: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
145987: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
145988: esac
145989:
145990: cat >>Makefile.objects<<EOF
145991: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
145992: $ac_comp
145993: EOF
145994: done
145995:
145996:
145997:
145998:
145999:
146000: case /main in
146001: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
146002: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
146003: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
146004: esac
146005:
146006:
146007:
146008: b_c_pre=$php_c_pre
146009: b_cxx_pre=$php_cxx_pre
146010: b_c_meta=$php_c_meta
146011: b_cxx_meta=$php_cxx_meta
146012: b_c_post=$php_c_post
146013: b_cxx_post=$php_cxx_post
146014: b_lo=$php_lo
146015:
146016:
146017: old_IFS=$IFS
146018: for ac_src in internal_functions.c; do
146019:
146020: IFS=.
146021: set $ac_src
146022: ac_obj=$1
146023: IFS=$old_IFS
146024:
146025: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
146026:
146027: case $ac_src in
146028: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146029: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146030: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146031: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
146032: esac
146033:
146034: cat >>Makefile.objects<<EOF
146035: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
146036: $ac_comp
146037: EOF
146038: done
146039:
146040:
146041:
146042: case $host_alias in
146043: *netware*)
146044:
146045:
146046: BUILD_DIR="$BUILD_DIR win32"
146047:
146048:
146049:
146050:
146051: BUILD_DIR="$BUILD_DIR netware"
146052:
146053:
146054: ;;
146055: *)
146056:
146057: case /main in
146058: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
146059: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
146060: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
146061: esac
146062:
146063:
146064:
146065: b_c_pre=$php_c_pre
146066: b_cxx_pre=$php_cxx_pre
146067: b_c_meta=$php_c_meta
146068: b_cxx_meta=$php_cxx_meta
146069: b_c_post=$php_c_post
146070: b_cxx_post=$php_cxx_post
146071: b_lo=$php_lo
146072:
146073:
146074: old_IFS=$IFS
146075: for ac_src in internal_functions_cli.c; do
146076:
146077: IFS=.
146078: set $ac_src
146079: ac_obj=$1
146080: IFS=$old_IFS
146081:
1.1.1.2 misho 146082: PHP_BINARY_OBJS="$PHP_BINARY_OBJS $ac_bdir$ac_obj.lo"
1.1 misho 146083:
146084: case $ac_src in
146085: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146086: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146087: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146088: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
146089: esac
146090:
146091: cat >>Makefile.objects<<EOF
146092: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
146093: $ac_comp
146094: EOF
146095: done
146096:
146097: ;;
146098: esac
146099:
146100:
146101:
146102: case Zend in
146103: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
146104: /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
146105: *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
146106: esac
146107:
146108:
146109:
146110: b_c_pre=$php_c_pre
146111: b_cxx_pre=$php_cxx_pre
146112: b_c_meta=$php_c_meta
146113: b_cxx_meta=$php_cxx_meta
146114: b_c_post=$php_c_post
146115: b_cxx_post=$php_cxx_post
146116: b_lo=$php_lo
146117:
146118:
146119: old_IFS=$IFS
146120: for ac_src in \
146121: zend_language_parser.c zend_language_scanner.c \
146122: zend_ini_parser.c zend_ini_scanner.c \
1.1.1.2 misho 146123: zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c zend_dtrace.c \
1.1 misho 146124: zend_execute_API.c zend_highlight.c zend_llist.c \
146125: zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
146126: zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
146127: zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
146128: zend_ini.c zend_qsort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
146129: zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
1.1.1.2 misho 146130: zend_closures.c zend_float.c zend_string.c zend_signal.c; do
1.1 misho 146131:
146132: IFS=.
146133: set $ac_src
146134: ac_obj=$1
146135: IFS=$old_IFS
146136:
146137: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
146138:
146139: case $ac_src in
146140: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146141: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146142: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146143: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
146144: esac
146145:
146146: cat >>Makefile.objects<<EOF
146147: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
146148: $ac_comp
146149: EOF
146150: done
146151:
146152:
146153:
146154: if test -r "$abs_srcdir/Zend/zend_objects.c"; then
146155:
146156:
146157: case Zend in
146158: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
146159: /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
146160: *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
146161: esac
146162:
146163:
146164:
146165: b_c_pre=$php_c_pre
146166: b_cxx_pre=$php_cxx_pre
146167: b_c_meta=$php_c_meta
146168: b_cxx_meta=$php_cxx_meta
146169: b_c_post=$php_c_post
146170: b_cxx_post=$php_cxx_post
146171: b_lo=$php_lo
146172:
146173:
146174: old_IFS=$IFS
146175: for ac_src in zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c; do
146176:
146177: IFS=.
146178: set $ac_src
146179: ac_obj=$1
146180: IFS=$old_IFS
146181:
146182: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
146183:
146184: case $ac_src in
146185: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146186: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146187: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
146188: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
146189: esac
146190:
146191: cat >>Makefile.objects<<EOF
146192: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
146193: $ac_comp
146194: EOF
146195: done
146196:
146197:
146198: fi
146199:
146200: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
146201: flag=-O0
146202: else
146203: flag=
146204: fi
146205:
146206:
146207: case Zend in
146208: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
146209: /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
146210: *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
146211: esac
146212:
146213:
146214:
146215: b_c_pre=$php_c_pre
146216: b_cxx_pre=$php_cxx_pre
146217: b_c_meta=$php_c_meta
146218: b_cxx_meta=$php_cxx_meta
146219: b_c_post=$php_c_post
146220: b_cxx_post=$php_cxx_post
146221: b_lo=$php_lo
146222:
146223:
146224: old_IFS=$IFS
146225: for ac_src in zend_execute.c; do
146226:
146227: IFS=.
146228: set $ac_src
146229: ac_obj=$1
146230: IFS=$old_IFS
146231:
146232: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
146233:
146234: case $ac_src in
146235: *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
146236: *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
146237: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
146238: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_cxx_post" ;;
146239: esac
146240:
146241: cat >>Makefile.objects<<EOF
146242: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
146243: $ac_comp
146244: EOF
146245: done
146246:
146247:
146248:
146249:
146250: BUILD_DIR="$BUILD_DIR main main/streams"
146251:
146252:
146253:
146254:
146255: BUILD_DIR="$BUILD_DIR TSRM"
146256:
146257:
146258:
146259:
146260: BUILD_DIR="$BUILD_DIR Zend"
146261:
146262:
146263:
146264:
146265: src=$abs_srcdir/scripts/Makefile.frag
146266: ac_srcdir=$abs_srcdir/scripts
146267: ac_builddir=scripts
146268: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
146269:
146270:
146271: src=$abs_srcdir/Makefile.frag
146272: ac_srcdir=$abs_srcdir/Zend
146273: ac_builddir=Zend
146274: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
146275:
146276:
146277: src=$abs_srcdir/Zend/Makefile.frag
146278: ac_srcdir=$abs_srcdir/Zend
146279: ac_builddir=Zend
146280: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
146281:
146282:
146283:
146284: $php_shtool mkdir -p $BUILD_DIR
146285:
146286:
146287: cat >Makefile <<EOF
146288: srcdir = $abs_srcdir
146289: builddir = $abs_builddir
146290: top_srcdir = $abs_srcdir
146291: top_builddir = $abs_builddir
146292: EOF
146293: for i in $PHP_VAR_SUBST; do
146294: eval echo "$i = \$$i" >> Makefile
146295: done
146296:
146297: cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
146298:
146299:
146300:
1.1.1.3 ! misho 146301: cat >>confdefs.h <<\_ACEOF
! 146302: #define HAVE_BUILD_DEFS_H 1
! 146303: _ACEOF
1.1 misho 146304:
146305:
146306: $php_shtool mkdir -p pear/scripts
146307: $php_shtool mkdir -p scripts
146308: $php_shtool mkdir -p scripts/man1
146309:
146310: ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
146311: scripts/phpize scripts/man1/phpize.1 \
146312: scripts/php-config scripts/man1/php-config.1 \
146313: $PHP_OUTPUT_FILES"
146314:
146315:
146316: for arg in $ac_configure_args; do
146317: case $arg in
146318: --with-*)
146319: arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`"
146320: ;;
146321: --without-*)
146322: arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`"
146323: ;;
146324: --enable-*)
146325: arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`"
146326: ;;
146327: --disable-*)
146328: arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`"
146329: ;;
146330: *)
146331: continue
146332: ;;
146333: esac
146334: case $arg_name in
146335: # Allow --disable-all / --enable-all
146336: enable-all);;
146337:
146338: # Allow certain libtool options
146339: enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);;
146340:
146341: # Allow certain TSRM options
146342: with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);;
146343:
146344: # Allow certain Zend options
146345: with-zend-vm | enable-maintainer-zts | enable-inline-optimization);;
146346:
146347: # All the rest must be set using the PHP_ARG_* macros
146348: # PHP_ARG_* macros set php_enable_<arg_name> or php_with_<arg_name>
146349: *)
146350: # Options that exist before PHP 6
146351: if test "$PHP_MAJOR_VERSION" -lt "6"; then
146352: case $arg_name in
146353: enable-zend-multibyte) continue;;
146354: esac
146355: fi
146356:
146357: is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'`
146358: if eval test "x\$$is_arg_set" = "x"; then
146359: PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
146360: $arg"
146361: fi
146362: ;;
146363: esac
146364: done
146365:
146366:
146367: ac_config_files="$ac_config_files $ALL_OUTPUT_FILES"
146368:
146369: ac_config_commands="$ac_config_commands default"
146370:
146371: cat >confcache <<\_ACEOF
146372: # This file is a shell script that caches the results of configure
146373: # tests run on this system so they can be shared between configure
146374: # scripts and configure runs, see configure's option --config-cache.
146375: # It is not useful on other systems. If it contains results you don't
146376: # want to keep, you may remove or edit it.
146377: #
146378: # config.status only pays attention to the cache file if you give it
146379: # the --recheck option to rerun configure.
146380: #
146381: # `ac_cv_env_foo' variables (set or unset) will be overridden when
146382: # loading this file, other *unset* `ac_cv_foo' will be assigned the
146383: # following values.
146384:
146385: _ACEOF
146386:
146387: # The following way of writing the cache mishandles newlines in values,
146388: # but we know of no workaround that is simple, portable, and efficient.
146389: # So, we kill variables containing newlines.
146390: # Ultrix sh set writes to stderr and can't be redirected directly,
146391: # and sets the high bit in the cache file unless we assign to the vars.
146392: (
146393: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
146394: eval ac_val=\$$ac_var
146395: case $ac_val in #(
146396: *${as_nl}*)
146397: case $ac_var in #(
1.1.1.3 ! misho 146398: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 146399: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1.1 misho 146400: esac
146401: case $ac_var in #(
146402: _ | IFS | as_nl) ;; #(
1.1.1.3 ! misho 146403: *) $as_unset $ac_var ;;
1.1 misho 146404: esac ;;
146405: esac
146406: done
146407:
146408: (set) 2>&1 |
146409: case $as_nl`(ac_space=' '; set) 2>&1` in #(
146410: *${as_nl}ac_space=\ *)
1.1.1.3 ! misho 146411: # `set' does not quote correctly, so add quotes (double-quote
! 146412: # substitution turns \\\\ into \\, and sed turns \\ into \).
1.1 misho 146413: sed -n \
146414: "s/'/'\\\\''/g;
146415: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
146416: ;; #(
146417: *)
146418: # `set' quotes correctly as required by POSIX, so do not add quotes.
146419: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
146420: ;;
146421: esac |
146422: sort
146423: ) |
146424: sed '
146425: /^ac_cv_env_/b end
146426: t clear
146427: :clear
146428: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
146429: t end
146430: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
146431: :end' >>confcache
146432: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
146433: if test -w "$cache_file"; then
1.1.1.3 ! misho 146434: test "x$cache_file" != "x/dev/null" &&
! 146435: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 146436: echo "$as_me: updating cache $cache_file" >&6;}
! 146437: cat confcache >$cache_file
1.1 misho 146438: else
1.1.1.3 ! misho 146439: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 146440: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 misho 146441: fi
146442: fi
146443: rm -f confcache
146444:
146445: test "x$prefix" = xNONE && prefix=$ac_default_prefix
146446: # Let make expand exec_prefix.
146447: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
146448:
146449: DEFS=-DHAVE_CONFIG_H
146450:
146451: ac_libobjs=
146452: ac_ltlibobjs=
146453: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
146454: # 1. Remove the extension, and $U if already installed.
146455: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.1.1.3 ! misho 146456: ac_i=`echo "$ac_i" | sed "$ac_script"`
1.1 misho 146457: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
146458: # will be set to the directory where LIBOBJS objects are built.
1.1.1.3 ! misho 146459: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 146460: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 misho 146461: done
146462: LIBOBJS=$ac_libobjs
146463:
146464: LTLIBOBJS=$ac_ltlibobjs
146465:
146466:
146467:
1.1.1.3 ! misho 146468: : ${CONFIG_STATUS=./config.status}
1.1 misho 146469: ac_clean_files_save=$ac_clean_files
146470: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.1.3 ! misho 146471: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 146472: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 146473: cat >$CONFIG_STATUS <<_ACEOF
1.1 misho 146474: #! $SHELL
146475: # Generated by $as_me.
146476: # Run this file to recreate the current configuration.
146477: # Compiler output produced by configure, useful for debugging
146478: # configure, is in config.log if it exists.
146479:
146480: debug=false
146481: ac_cs_recheck=false
146482: ac_cs_silent=false
146483: SHELL=\${CONFIG_SHELL-$SHELL}
1.1.1.3 ! misho 146484: _ACEOF
! 146485:
! 146486: cat >>$CONFIG_STATUS <<\_ACEOF
! 146487: ## --------------------- ##
! 146488: ## M4sh Initialization. ##
! 146489: ## --------------------- ##
1.1 misho 146490:
146491: # Be more Bourne compatible
146492: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.3 ! misho 146493: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.1 misho 146494: emulate sh
146495: NULLCMD=:
1.1.1.3 ! misho 146496: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.1 misho 146497: # is contrary to our usage. Disable this feature.
146498: alias -g '${1+"$@"}'='"$@"'
146499: setopt NO_GLOB_SUBST
146500: else
1.1.1.3 ! misho 146501: case `(set -o) 2>/dev/null` in
! 146502: *posix*) set -o posix ;;
1.1 misho 146503: esac
1.1.1.3 ! misho 146504:
1.1 misho 146505: fi
146506:
146507:
1.1.1.3 ! misho 146508:
! 146509:
! 146510: # PATH needs CR
! 146511: # Avoid depending upon Character Ranges.
! 146512: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 146513: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 146514: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 146515: as_cr_digits='0123456789'
! 146516: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 misho 146517:
146518: # The user is always right.
146519: if test "${PATH_SEPARATOR+set}" != set; then
1.1.1.3 ! misho 146520: echo "#! /bin/sh" >conf$$.sh
! 146521: echo "exit 0" >>conf$$.sh
! 146522: chmod +x conf$$.sh
! 146523: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 146524: PATH_SEPARATOR=';'
! 146525: else
! 146526: PATH_SEPARATOR=:
! 146527: fi
! 146528: rm -f conf$$.sh
! 146529: fi
! 146530:
! 146531: # Support unset when possible.
! 146532: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 146533: as_unset=unset
! 146534: else
! 146535: as_unset=false
1.1 misho 146536: fi
146537:
146538:
146539: # IFS
146540: # We need space, tab and new line, in precisely that order. Quoting is
146541: # there to prevent editors from complaining about space-tab.
146542: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
146543: # splitting by setting IFS to empty value.)
1.1.1.3 ! misho 146544: as_nl='
! 146545: '
1.1 misho 146546: IFS=" "" $as_nl"
146547:
146548: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.3 ! misho 146549: case $0 in
1.1 misho 146550: *[\\/]* ) as_myself=$0 ;;
146551: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
146552: for as_dir in $PATH
146553: do
146554: IFS=$as_save_IFS
146555: test -z "$as_dir" && as_dir=.
1.1.1.3 ! misho 146556: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 146557: done
1.1 misho 146558: IFS=$as_save_IFS
146559:
146560: ;;
146561: esac
146562: # We did not find ourselves, most probably we were run as `sh COMMAND'
146563: # in which case we are not to be found in the path.
146564: if test "x$as_myself" = x; then
146565: as_myself=$0
146566: fi
146567: if test ! -f "$as_myself"; then
1.1.1.3 ! misho 146568: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 146569: { (exit 1); exit 1; }
1.1 misho 146570: fi
146571:
1.1.1.3 ! misho 146572: # Work around bugs in pre-3.0 UWIN ksh.
! 146573: for as_var in ENV MAIL MAILPATH
! 146574: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1 misho 146575: done
146576: PS1='$ '
146577: PS2='> '
146578: PS4='+ '
146579:
146580: # NLS nuisances.
1.1.1.3 ! misho 146581: for as_var in \
! 146582: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 146583: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 146584: LC_TELEPHONE LC_TIME
! 146585: do
! 146586: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 146587: eval $as_var=C; export $as_var
! 146588: else
! 146589: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 146590: fi
! 146591: done
1.1 misho 146592:
1.1.1.3 ! misho 146593: # Required to use basename.
1.1 misho 146594: if expr a : '\(a\)' >/dev/null 2>&1 &&
146595: test "X`expr 00001 : '.*\(...\)'`" = X001; then
146596: as_expr=expr
146597: else
146598: as_expr=false
146599: fi
146600:
146601: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146602: as_basename=basename
146603: else
146604: as_basename=false
146605: fi
146606:
146607:
1.1.1.3 ! misho 146608: # Name of the executable.
1.1 misho 146609: as_me=`$as_basename -- "$0" ||
146610: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
146611: X"$0" : 'X\(//\)$' \| \
146612: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 146613: echo X/"$0" |
1.1 misho 146614: sed '/^.*\/\([^/][^/]*\)\/*$/{
146615: s//\1/
146616: q
146617: }
146618: /^X\/\(\/\/\)$/{
146619: s//\1/
146620: q
146621: }
146622: /^X\/\(\/\).*/{
146623: s//\1/
146624: q
146625: }
146626: s/.*/./; q'`
146627:
1.1.1.3 ! misho 146628: # CDPATH.
! 146629: $as_unset CDPATH
! 146630:
! 146631:
! 146632:
! 146633: as_lineno_1=$LINENO
! 146634: as_lineno_2=$LINENO
! 146635: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 146636: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
! 146637:
! 146638: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 146639: # uniformly replaced by the line number. The first 'sed' inserts a
! 146640: # line-number line after each line using $LINENO; the second 'sed'
! 146641: # does the real work. The second script uses 'N' to pair each
! 146642: # line-number line with the line containing $LINENO, and appends
! 146643: # trailing '-' during substitution so that $LINENO is not a special
! 146644: # case at line end.
! 146645: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 146646: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 146647: # E. McMahon (1931-1989) for sed's syntax. :-)
! 146648: sed -n '
! 146649: p
! 146650: /[$]LINENO/=
! 146651: ' <$as_myself |
! 146652: sed '
! 146653: s/[$]LINENO.*/&-/
! 146654: t lineno
! 146655: b
! 146656: :lineno
! 146657: N
! 146658: :loop
! 146659: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
! 146660: t loop
! 146661: s/-\n.*//
! 146662: ' >$as_me.lineno &&
! 146663: chmod +x "$as_me.lineno" ||
! 146664: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
! 146665: { (exit 1); exit 1; }; }
! 146666:
! 146667: # Don't try to exec as it changes $[0], causing all sort of problems
! 146668: # (the dirname of $[0] is not the place where we might find the
! 146669: # original and so on. Autoconf is especially sensitive to this).
! 146670: . "./$as_me.lineno"
! 146671: # Exit status is that of the last command.
! 146672: exit
! 146673: }
! 146674:
! 146675:
! 146676: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 146677: as_dirname=dirname
! 146678: else
! 146679: as_dirname=false
! 146680: fi
1.1 misho 146681:
146682: ECHO_C= ECHO_N= ECHO_T=
1.1.1.3 ! misho 146683: case `echo -n x` in
1.1 misho 146684: -n*)
1.1.1.3 ! misho 146685: case `echo 'x\c'` in
1.1 misho 146686: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.1.1.3 ! misho 146687: *) ECHO_C='\c';;
1.1 misho 146688: esac;;
146689: *)
146690: ECHO_N='-n';;
146691: esac
146692:
1.1.1.3 ! misho 146693: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 146694: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 146695: as_expr=expr
! 146696: else
! 146697: as_expr=false
! 146698: fi
! 146699:
1.1 misho 146700: rm -f conf$$ conf$$.exe conf$$.file
146701: if test -d conf$$.dir; then
146702: rm -f conf$$.dir/conf$$.file
146703: else
146704: rm -f conf$$.dir
1.1.1.3 ! misho 146705: mkdir conf$$.dir
1.1 misho 146706: fi
1.1.1.3 ! misho 146707: echo >conf$$.file
! 146708: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 146709: as_ln_s='ln -s'
! 146710: # ... but there are two gotchas:
! 146711: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 146712: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 146713: # In both cases, we have to default to `cp -p'.
! 146714: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 146715: as_ln_s='cp -p'
! 146716: elif ln conf$$.file conf$$ 2>/dev/null; then
! 146717: as_ln_s=ln
1.1 misho 146718: else
1.1.1.3 ! misho 146719: as_ln_s='cp -p'
1.1 misho 146720: fi
146721: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
146722: rmdir conf$$.dir 2>/dev/null
146723:
146724: if mkdir -p . 2>/dev/null; then
1.1.1.3 ! misho 146725: as_mkdir_p=:
1.1 misho 146726: else
146727: test -d ./-p && rmdir ./-p
146728: as_mkdir_p=false
146729: fi
146730:
1.1.1.3 ! misho 146731: if test -x / >/dev/null 2>&1; then
! 146732: as_test_x='test -x'
! 146733: else
! 146734: if ls -dL / >/dev/null 2>&1; then
! 146735: as_ls_L_option=L
! 146736: else
! 146737: as_ls_L_option=
! 146738: fi
! 146739: as_test_x='
! 146740: eval sh -c '\''
! 146741: if test -d "$1"; then
! 146742: test -d "$1/.";
! 146743: else
! 146744: case $1 in
! 146745: -*)set "./$1";;
! 146746: esac;
! 146747: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 146748: ???[sx]*):;;*)false;;esac;fi
! 146749: '\'' sh
! 146750: '
! 146751: fi
! 146752: as_executable_p=$as_test_x
1.1 misho 146753:
146754: # Sed expression to map a string onto a valid CPP name.
146755: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
146756:
146757: # Sed expression to map a string onto a valid variable name.
146758: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
146759:
146760:
146761: exec 6>&1
146762:
1.1.1.3 ! misho 146763: # Save the log message, to keep $[0] and so on meaningful, and to
1.1 misho 146764: # report actual input values of CONFIG_FILES etc. instead of their
146765: # values after options handling.
146766: ac_log="
146767: This file was extended by $as_me, which was
1.1.1.3 ! misho 146768: generated by GNU Autoconf 2.61. Invocation command line was
1.1 misho 146769:
146770: CONFIG_FILES = $CONFIG_FILES
146771: CONFIG_HEADERS = $CONFIG_HEADERS
146772: CONFIG_LINKS = $CONFIG_LINKS
146773: CONFIG_COMMANDS = $CONFIG_COMMANDS
146774: $ $0 $@
146775:
146776: on `(hostname || uname -n) 2>/dev/null | sed 1q`
146777: "
146778:
146779: _ACEOF
146780:
1.1.1.3 ! misho 146781: cat >>$CONFIG_STATUS <<_ACEOF
1.1 misho 146782: # Files that config.status was made for.
146783: config_files="$ac_config_files"
146784: config_headers="$ac_config_headers"
146785: config_commands="$ac_config_commands"
146786:
146787: _ACEOF
146788:
1.1.1.3 ! misho 146789: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misho 146790: ac_cs_usage="\
1.1.1.3 ! misho 146791: \`$as_me' instantiates files from templates according to the
! 146792: current configuration.
1.1 misho 146793:
1.1.1.3 ! misho 146794: Usage: $0 [OPTIONS] [FILE]...
1.1 misho 146795:
146796: -h, --help print this help, then exit
146797: -V, --version print version number and configuration settings, then exit
1.1.1.3 ! misho 146798: -q, --quiet do not print progress messages
1.1 misho 146799: -d, --debug don't remove temporary files
146800: --recheck update $as_me by reconfiguring in the same conditions
1.1.1.3 ! misho 146801: --file=FILE[:TEMPLATE]
! 146802: instantiate the configuration file FILE
! 146803: --header=FILE[:TEMPLATE]
! 146804: instantiate the configuration header FILE
1.1 misho 146805:
146806: Configuration files:
146807: $config_files
146808:
146809: Configuration headers:
146810: $config_headers
146811:
146812: Configuration commands:
146813: $config_commands
146814:
1.1.1.3 ! misho 146815: Report bugs to <bug-autoconf@gnu.org>."
1.1 misho 146816:
146817: _ACEOF
1.1.1.3 ! misho 146818: cat >>$CONFIG_STATUS <<_ACEOF
1.1 misho 146819: ac_cs_version="\\
146820: config.status
1.1.1.3 ! misho 146821: configured by $0, generated by GNU Autoconf 2.61,
! 146822: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1 misho 146823:
1.1.1.3 ! misho 146824: Copyright (C) 2006 Free Software Foundation, Inc.
1.1 misho 146825: This config.status script is free software; the Free Software Foundation
146826: gives unlimited permission to copy, distribute and modify it."
146827:
146828: ac_pwd='$ac_pwd'
146829: srcdir='$srcdir'
146830: _ACEOF
146831:
1.1.1.3 ! misho 146832: cat >>$CONFIG_STATUS <<\_ACEOF
! 146833: # If no file are specified by the user, then we need to provide default
! 146834: # value. By we need to know if files were specified by the user.
1.1 misho 146835: ac_need_defaults=:
146836: while test $# != 0
146837: do
146838: case $1 in
1.1.1.3 ! misho 146839: --*=*)
1.1 misho 146840: ac_option=`expr "X$1" : 'X\([^=]*\)='`
146841: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
146842: ac_shift=:
146843: ;;
146844: *)
146845: ac_option=$1
146846: ac_optarg=$2
146847: ac_shift=shift
146848: ;;
146849: esac
146850:
146851: case $ac_option in
146852: # Handling of the options.
146853: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
146854: ac_cs_recheck=: ;;
146855: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.1.1.3 ! misho 146856: echo "$ac_cs_version"; exit ;;
1.1 misho 146857: --debug | --debu | --deb | --de | --d | -d )
146858: debug=: ;;
146859: --file | --fil | --fi | --f )
146860: $ac_shift
1.1.1.3 ! misho 146861: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.1 misho 146862: ac_need_defaults=false;;
146863: --header | --heade | --head | --hea )
146864: $ac_shift
1.1.1.3 ! misho 146865: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.1 misho 146866: ac_need_defaults=false;;
146867: --he | --h)
146868: # Conflict between --help and --header
1.1.1.3 ! misho 146869: { echo "$as_me: error: ambiguous option: $1
! 146870: Try \`$0 --help' for more information." >&2
! 146871: { (exit 1); exit 1; }; };;
1.1 misho 146872: --help | --hel | -h )
1.1.1.3 ! misho 146873: echo "$ac_cs_usage"; exit ;;
1.1 misho 146874: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
146875: | -silent | --silent | --silen | --sile | --sil | --si | --s)
146876: ac_cs_silent=: ;;
146877:
146878: # This is an error.
1.1.1.3 ! misho 146879: -*) { echo "$as_me: error: unrecognized option: $1
! 146880: Try \`$0 --help' for more information." >&2
! 146881: { (exit 1); exit 1; }; } ;;
1.1 misho 146882:
1.1.1.3 ! misho 146883: *) ac_config_targets="$ac_config_targets $1"
1.1 misho 146884: ac_need_defaults=false ;;
146885:
146886: esac
146887: shift
146888: done
146889:
146890: ac_configure_extra_args=
146891:
146892: if $ac_cs_silent; then
146893: exec 6>/dev/null
146894: ac_configure_extra_args="$ac_configure_extra_args --silent"
146895: fi
146896:
146897: _ACEOF
1.1.1.3 ! misho 146898: cat >>$CONFIG_STATUS <<_ACEOF
1.1 misho 146899: if \$ac_cs_recheck; then
1.1.1.3 ! misho 146900: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 146901: CONFIG_SHELL=$SHELL
1.1 misho 146902: export CONFIG_SHELL
1.1.1.3 ! misho 146903: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 146904: fi
146905:
146906: _ACEOF
1.1.1.3 ! misho 146907: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misho 146908: exec 5>>config.log
146909: {
146910: echo
146911: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
146912: ## Running $as_me. ##
146913: _ASBOX
1.1.1.3 ! misho 146914: echo "$ac_log"
1.1 misho 146915: } >&5
146916:
146917: _ACEOF
1.1.1.3 ! misho 146918: cat >>$CONFIG_STATUS <<_ACEOF
1.1 misho 146919: #
146920: # INIT-COMMANDS
146921: #
146922:
146923:
146924: if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
146925: REDO_ALL=yes
146926: fi
146927:
146928: ################################################################
146929: # Create configuration headers
146930: #
146931:
146932: test -d TSRM || $php_shtool mkdir TSRM
146933: echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h
146934:
146935: test -d Zend || $php_shtool mkdir Zend
146936:
146937: cat >Zend/zend_config.h <<FEO
146938: #include <../main/php_config.h>
146939: #if defined(APACHE) && defined(PHP_API_VERSION)
146940: #undef HAVE_DLFCN_H
146941: #endif
146942: FEO
146943:
146944: # run this only when generating all the files?
146945: if test -n "\$REDO_ALL"; then
146946: # Hacking while airborne considered harmful.
146947: #
146948: echo "creating main/internal_functions.c"
146949: extensions="$EXT_STATIC"
146950: sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c
146951:
146952: echo "creating main/internal_functions_cli.c"
146953: cli_extensions="$EXT_CLI_STATIC"
146954: sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
146955:
146956: if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then
146957: echo "+--------------------------------------------------------------------+"
146958: echo "| *** WARNING *** |"
146959: echo "| |"
146960: echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |"
146961: echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |"
146962: echo "| to install gnu-pth from /usr/ports/devel/pth. |"
146963: fi
146964:
146965: if test -n "$PHP_APXS_BROKEN"; then
146966: echo "+--------------------------------------------------------------------+"
146967: echo "| WARNING: Your $APXS script is most likely broken."
146968: echo "| |"
146969: echo "| Please go read http://www.php.net/faq.build#faq.build.apxs |"
146970: echo "| and make the changes described there and try again. |"
146971: fi
146972:
146973: if test -n "$DEBUG_LOG"; then
146974: rm -f config.cache
146975: cat <<X
146976: +--------------------------------------------------------------------+
146977: | *** ATTENTION *** |
146978: | |
146979: | Something is likely to be messed up here, because the configure |
146980: | script was not able to detect a simple feature on your platform. |
146981: | This is often caused by incorrect configuration parameters. Please |
146982: | see the file debug.log for error messages. |
146983: | |
146984: | If you are unable to fix this, send the file debug.log to the |
146985: | php-install@lists.php.net mailing list and include appropiate |
146986: | information about your setup. |
146987: X
146988: fi
146989:
1.1.1.2 misho 146990: if test "$PHP_SAPI" = "apache2handler" || test "$PHP_SAPI" = "apache2filter"; then
146991: if test "$APACHE_VERSION" -ge 2004001; then
146992: if test -z "$APACHE_THREADED_MPM"; then
146993: cat <<X
146994: +--------------------------------------------------------------------+
146995: | *** WARNING *** |
146996: | |
146997: | You have built PHP for Apache's current non-threaded MPM. |
146998: | If you change Apache to use a threaded MPM you must reconfigure |
146999: | PHP with --enable-maintainer-zts |
147000: X
147001: fi
147002: fi
147003: fi
147004:
1.1 misho 147005: # Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
147006: if test "$PHP_OCI8" != "no"; then
147007: if test "$PHP_SAPI" = "apache"; then
147008: if test `uname` = "Linux"; then
147009: cat <<X
147010: +--------------------------------------------------------------------+
147011: | *** WARNING *** |
147012: | |
147013: | Please check that your Apache (httpd) is linked with libpthread. |
147014: | If not, you have to recompile Apache with pthread. For more |
147015: | details, see this page: http://www.php.net/manual/ref.oci8.php |
147016: X
147017: fi
147018: fi
147019:
147020: if test "$PHP_SIGCHILD" != "yes"; then
147021: if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
147022: cat <<X
147023: +--------------------------------------------------------------------+
147024: | Notice: |
147025: | If you encounter <defunc> processes when using a local Oracle |
147026: | database, set the value BEQUEATH_DETACH=YES in Oracle Net's |
147027: | sqlnet.ora file on the PHP host, or set the environment variable |
147028: | BEQUEATH_DETACH to YES before starting Apache. If the problem |
147029: | still occurs, then recompile PHP and specify --enable-sigchild |
147030: | when configuring. |
147031: X
147032: fi
147033: fi
147034: fi
147035:
147036: cat <<X
147037: +--------------------------------------------------------------------+
147038: | License: |
147039: | This software is subject to the PHP License, available in this |
147040: | distribution in the file LICENSE. By continuing this installation |
147041: | process, you are bound by the terms of this license agreement. |
147042: | If you do not agree with the terms of this license, you must abort |
147043: | the installation process at this point. |
147044: +--------------------------------------------------------------------+
147045:
147046: Thank you for using PHP.
147047:
147048: X
147049:
147050: # Output unknown configure options
147051: if test "$PHP_UNKNOWN_CONFIGURE_OPTIONS"; then
147052: echo "Notice: Following unknown configure options were used:
147053: $PHP_UNKNOWN_CONFIGURE_OPTIONS
147054:
147055: Check '$0 --help' for available options
147056: "
147057: fi
147058:
147059: fi
147060:
147061:
147062: _ACEOF
147063:
1.1.1.3 ! misho 147064: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misho 147065:
147066: # Handling of arguments.
147067: for ac_config_target in $ac_config_targets
147068: do
147069: case $ac_config_target in
147070: "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;;
147071: "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;;
147072: "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
147073:
1.1.1.3 ! misho 147074: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 147075: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 147076: { (exit 1); exit 1; }; };;
1.1 misho 147077: esac
147078: done
147079:
147080:
147081: # If the user did not use the arguments to specify the items to instantiate,
147082: # then the envvar interface is used. Set only those that are not.
147083: # We use the long form for the default assignment because of an extremely
147084: # bizarre bug on SunOS 4.1.3.
147085: if $ac_need_defaults; then
147086: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
147087: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
147088: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
147089: fi
147090:
147091: # Have a temporary directory for convenience. Make it in the build tree
147092: # simply because there is no reason against having it here, and in addition,
147093: # creating and moving files from /tmp can sometimes cause problems.
147094: # Hook for its removal unless debugging.
147095: # Note that there is a small window in which the directory will not be cleaned:
147096: # after its creation but before its name has been assigned to `$tmp'.
147097: $debug ||
147098: {
1.1.1.3 ! misho 147099: tmp=
1.1 misho 147100: trap 'exit_status=$?
1.1.1.3 ! misho 147101: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
1.1 misho 147102: ' 0
1.1.1.3 ! misho 147103: trap '{ (exit 1); exit 1; }' 1 2 13 15
1.1 misho 147104: }
147105: # Create a (secure) tmp directory for tmp files.
147106:
147107: {
147108: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.3 ! misho 147109: test -n "$tmp" && test -d "$tmp"
1.1 misho 147110: } ||
147111: {
147112: tmp=./conf$$-$RANDOM
147113: (umask 077 && mkdir "$tmp")
1.1.1.3 ! misho 147114: } ||
! 147115: {
! 147116: echo "$me: cannot create a temporary directory in ." >&2
! 147117: { (exit 1); exit 1; }
! 147118: }
1.1 misho 147119:
1.1.1.3 ! misho 147120: #
! 147121: # Set up the sed scripts for CONFIG_FILES section.
! 147122: #
1.1 misho 147123:
1.1.1.3 ! misho 147124: # No need to generate the scripts if there are no CONFIG_FILES.
! 147125: # This happens for instance when ./config.status config.h
! 147126: if test -n "$CONFIG_FILES"; then
1.1 misho 147127:
147128: _ACEOF
147129:
147130:
1.1.1.3 ! misho 147131:
1.1 misho 147132: ac_delim='%!_!# '
147133: for ac_last_try in false false false false false :; do
1.1.1.3 ! misho 147134: cat >conf$$subs.sed <<_ACEOF
! 147135: SHELL!$SHELL$ac_delim
! 147136: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 147137: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 147138: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 147139: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 147140: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 147141: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 147142: exec_prefix!$exec_prefix$ac_delim
! 147143: prefix!$prefix$ac_delim
! 147144: program_transform_name!$program_transform_name$ac_delim
! 147145: bindir!$bindir$ac_delim
! 147146: sbindir!$sbindir$ac_delim
! 147147: libexecdir!$libexecdir$ac_delim
! 147148: datarootdir!$datarootdir$ac_delim
! 147149: datadir!$datadir$ac_delim
! 147150: sysconfdir!$sysconfdir$ac_delim
! 147151: sharedstatedir!$sharedstatedir$ac_delim
! 147152: localstatedir!$localstatedir$ac_delim
! 147153: includedir!$includedir$ac_delim
! 147154: oldincludedir!$oldincludedir$ac_delim
! 147155: docdir!$docdir$ac_delim
! 147156: infodir!$infodir$ac_delim
! 147157: htmldir!$htmldir$ac_delim
! 147158: dvidir!$dvidir$ac_delim
! 147159: pdfdir!$pdfdir$ac_delim
! 147160: psdir!$psdir$ac_delim
! 147161: libdir!$libdir$ac_delim
! 147162: localedir!$localedir$ac_delim
! 147163: mandir!$mandir$ac_delim
! 147164: DEFS!$DEFS$ac_delim
! 147165: ECHO_C!$ECHO_C$ac_delim
! 147166: ECHO_N!$ECHO_N$ac_delim
! 147167: ECHO_T!$ECHO_T$ac_delim
! 147168: LIBS!$LIBS$ac_delim
! 147169: build_alias!$build_alias$ac_delim
! 147170: host_alias!$host_alias$ac_delim
! 147171: target_alias!$target_alias$ac_delim
! 147172: GREP!$GREP$ac_delim
! 147173: EGREP!$EGREP$ac_delim
! 147174: SED!$SED$ac_delim
! 147175: CONFIGURE_COMMAND!$CONFIGURE_COMMAND$ac_delim
! 147176: CONFIGURE_OPTIONS!$CONFIGURE_OPTIONS$ac_delim
! 147177: build!$build$ac_delim
! 147178: build_cpu!$build_cpu$ac_delim
! 147179: build_vendor!$build_vendor$ac_delim
! 147180: build_os!$build_os$ac_delim
! 147181: host!$host$ac_delim
! 147182: host_cpu!$host_cpu$ac_delim
! 147183: host_vendor!$host_vendor$ac_delim
! 147184: host_os!$host_os$ac_delim
! 147185: target!$target$ac_delim
! 147186: target_cpu!$target_cpu$ac_delim
! 147187: target_vendor!$target_vendor$ac_delim
! 147188: target_os!$target_os$ac_delim
! 147189: CC!$CC$ac_delim
! 147190: CFLAGS!$CFLAGS$ac_delim
! 147191: LDFLAGS!$LDFLAGS$ac_delim
! 147192: CPPFLAGS!$CPPFLAGS$ac_delim
! 147193: ac_ct_CC!$ac_ct_CC$ac_delim
! 147194: EXEEXT!$EXEEXT$ac_delim
! 147195: OBJEXT!$OBJEXT$ac_delim
! 147196: CPP!$CPP$ac_delim
! 147197: LN_S!$LN_S$ac_delim
! 147198: AWK!$AWK$ac_delim
! 147199: YACC!$YACC$ac_delim
! 147200: YFLAGS!$YFLAGS$ac_delim
! 147201: RE2C!$RE2C$ac_delim
! 147202: SHLIB_SUFFIX_NAME!$SHLIB_SUFFIX_NAME$ac_delim
! 147203: SHLIB_DL_SUFFIX_NAME!$SHLIB_DL_SUFFIX_NAME$ac_delim
! 147204: php_fpm_systemd!$php_fpm_systemd$ac_delim
! 147205: php_fpm_user!$php_fpm_user$ac_delim
! 147206: php_fpm_group!$php_fpm_group$ac_delim
! 147207: php_fpm_sysconfdir!$php_fpm_sysconfdir$ac_delim
! 147208: php_fpm_localstatedir!$php_fpm_localstatedir$ac_delim
! 147209: php_fpm_prefix!$php_fpm_prefix$ac_delim
! 147210: PROG_SENDMAIL!$PROG_SENDMAIL$ac_delim
! 147211: LIBOBJS!$LIBOBJS$ac_delim
! 147212: ALLOCA!$ALLOCA$ac_delim
! 147213: LTP!$LTP$ac_delim
! 147214: LTP_GENHTML!$LTP_GENHTML$ac_delim
! 147215: KRB5_CONFIG!$KRB5_CONFIG$ac_delim
! 147216: PKG_CONFIG!$PKG_CONFIG$ac_delim
! 147217: OPENSSL_INCDIR_OPT!$OPENSSL_INCDIR_OPT$ac_delim
! 147218: ICU_CONFIG!$ICU_CONFIG$ac_delim
! 147219: CXX!$CXX$ac_delim
! 147220: CXXFLAGS!$CXXFLAGS$ac_delim
! 147221: ac_ct_CXX!$ac_ct_CXX$ac_delim
! 147222: CXXCPP!$CXXCPP$ac_delim
! 147223: MYSQL_MODULE_TYPE!$MYSQL_MODULE_TYPE$ac_delim
! 147224: MYSQL_LIBS!$MYSQL_LIBS$ac_delim
! 147225: MYSQL_INCLUDE!$MYSQL_INCLUDE$ac_delim
! 147226: OCI8_SHARED_LIBADD!$OCI8_SHARED_LIBADD$ac_delim
! 147227: OCI8_DIR!$OCI8_DIR$ac_delim
! 147228: OCI8_ORACLE_VERSION!$OCI8_ORACLE_VERSION$ac_delim
! 147229: ODBC_INCLUDE!$ODBC_INCLUDE$ac_delim
! 147230: ODBC_LIBS!$ODBC_LIBS$ac_delim
! 147231: ODBC_LFLAGS!$ODBC_LFLAGS$ac_delim
! 147232: _ACEOF
1.1 misho 147233:
1.1.1.3 ! misho 147234: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
1.1 misho 147235: break
147236: elif $ac_last_try; then
1.1.1.3 ! misho 147237: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 147238: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 147239: { (exit 1); exit 1; }; }
1.1 misho 147240: else
147241: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
147242: fi
147243: done
147244:
1.1.1.3 ! misho 147245: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 147246: if test -n "$ac_eof"; then
! 147247: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 147248: ac_eof=`expr $ac_eof + 1`
! 147249: fi
1.1 misho 147250:
1.1.1.3 ! misho 147251: cat >>$CONFIG_STATUS <<_ACEOF
! 147252: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 147253: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1 misho 147254: _ACEOF
1.1.1.3 ! misho 147255: sed '
! 147256: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 147257: s/^/s,@/; s/!/@,|#_!!_#|/
! 147258: :n
! 147259: t n
! 147260: s/'"$ac_delim"'$/,g/; t
! 147261: s/$/\\/; p
! 147262: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 147263: ' >>$CONFIG_STATUS <conf$$subs.sed
! 147264: rm -f conf$$subs.sed
! 147265: cat >>$CONFIG_STATUS <<_ACEOF
! 147266: CEOF$ac_eof
1.1 misho 147267: _ACEOF
147268:
147269:
1.1.1.3 ! misho 147270: ac_delim='%!_!# '
! 147271: for ac_last_try in false false false false false :; do
! 147272: cat >conf$$subs.sed <<_ACEOF
! 147273: ODBC_TYPE!$ODBC_TYPE$ac_delim
! 147274: PDO_MYSQL_MODULE_TYPE!$PDO_MYSQL_MODULE_TYPE$ac_delim
! 147275: PDO_OCI_SHARED_LIBADD!$PDO_OCI_SHARED_LIBADD$ac_delim
! 147276: PDO_OCI_DIR!$PDO_OCI_DIR$ac_delim
! 147277: PDO_OCI_VERSION!$PDO_OCI_VERSION$ac_delim
! 147278: SNMP_CONFIG!$SNMP_CONFIG$ac_delim
! 147279: RANLIB!$RANLIB$ac_delim
! 147280: INLINE_CFLAGS!$INLINE_CFLAGS$ac_delim
! 147281: INCLUDE_PATH!$INCLUDE_PATH$ac_delim
! 147282: EXPANDED_PEAR_INSTALLDIR!$EXPANDED_PEAR_INSTALLDIR$ac_delim
! 147283: EXPANDED_EXTENSION_DIR!$EXPANDED_EXTENSION_DIR$ac_delim
! 147284: EXPANDED_BINDIR!$EXPANDED_BINDIR$ac_delim
! 147285: EXPANDED_SBINDIR!$EXPANDED_SBINDIR$ac_delim
! 147286: EXPANDED_MANDIR!$EXPANDED_MANDIR$ac_delim
! 147287: EXPANDED_LIBDIR!$EXPANDED_LIBDIR$ac_delim
! 147288: EXPANDED_DATADIR!$EXPANDED_DATADIR$ac_delim
! 147289: EXPANDED_SYSCONFDIR!$EXPANDED_SYSCONFDIR$ac_delim
! 147290: EXPANDED_LOCALSTATEDIR!$EXPANDED_LOCALSTATEDIR$ac_delim
! 147291: EXPANDED_PHP_CONFIG_FILE_PATH!$EXPANDED_PHP_CONFIG_FILE_PATH$ac_delim
! 147292: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR!$EXPANDED_PHP_CONFIG_FILE_SCAN_DIR$ac_delim
! 147293: PHP_INSTALLED_SAPIS!$PHP_INSTALLED_SAPIS$ac_delim
! 147294: abs_builddir!$abs_builddir$ac_delim
! 147295: abs_srcdir!$abs_srcdir$ac_delim
! 147296: php_abs_top_builddir!$php_abs_top_builddir$ac_delim
! 147297: php_abs_top_srcdir!$php_abs_top_srcdir$ac_delim
! 147298: program_prefix!$program_prefix$ac_delim
! 147299: program_suffix!$program_suffix$ac_delim
! 147300: DEBUG_CFLAGS!$DEBUG_CFLAGS$ac_delim
! 147301: EXTENSION_DIR!$EXTENSION_DIR$ac_delim
! 147302: EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
! 147303: EXTRA_LDFLAGS_PROGRAM!$EXTRA_LDFLAGS_PROGRAM$ac_delim
! 147304: EXTRA_LIBS!$EXTRA_LIBS$ac_delim
! 147305: ZEND_EXTRA_LIBS!$ZEND_EXTRA_LIBS$ac_delim
! 147306: INCLUDES!$INCLUDES$ac_delim
! 147307: EXTRA_INCLUDES!$EXTRA_INCLUDES$ac_delim
! 147308: INSTALL_IT!$INSTALL_IT$ac_delim
! 147309: NATIVE_RPATHS!$NATIVE_RPATHS$ac_delim
! 147310: PEAR_INSTALLDIR!$PEAR_INSTALLDIR$ac_delim
! 147311: PHP_LDFLAGS!$PHP_LDFLAGS$ac_delim
! 147312: PHP_LIBS!$PHP_LIBS$ac_delim
! 147313: PHP_VERSION!$PHP_VERSION$ac_delim
! 147314: PHP_VERSION_ID!$PHP_VERSION_ID$ac_delim
! 147315: ECHO!$ECHO$ac_delim
! 147316: AR!$AR$ac_delim
! 147317: STRIP!$STRIP$ac_delim
! 147318: DSYMUTIL!$DSYMUTIL$ac_delim
! 147319: NMEDIT!$NMEDIT$ac_delim
! 147320: LIBTOOL!$LIBTOOL$ac_delim
! 147321: LTLIBOBJS!$LTLIBOBJS$ac_delim
1.1 misho 147322: _ACEOF
147323:
1.1.1.3 ! misho 147324: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
1.1 misho 147325: break
147326: elif $ac_last_try; then
1.1.1.3 ! misho 147327: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 147328: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 147329: { (exit 1); exit 1; }; }
1.1 misho 147330: else
147331: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
147332: fi
147333: done
147334:
1.1.1.3 ! misho 147335: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 147336: if test -n "$ac_eof"; then
! 147337: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 147338: ac_eof=`expr $ac_eof + 1`
! 147339: fi
! 147340:
! 147341: cat >>$CONFIG_STATUS <<_ACEOF
! 147342: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
! 147343: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
! 147344: _ACEOF
! 147345: sed '
! 147346: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 147347: s/^/s,@/; s/!/@,|#_!!_#|/
! 147348: :n
! 147349: t n
! 147350: s/'"$ac_delim"'$/,g/; t
! 147351: s/$/\\/; p
! 147352: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 147353: ' >>$CONFIG_STATUS <conf$$subs.sed
! 147354: rm -f conf$$subs.sed
! 147355: cat >>$CONFIG_STATUS <<_ACEOF
! 147356: :end
! 147357: s/|#_!!_#|//g
! 147358: CEOF$ac_eof
1.1 misho 147359: _ACEOF
147360:
147361:
1.1.1.3 ! misho 147362: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 147363: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 147364: # trailing colons and then remove the whole line if VPATH becomes empty
! 147365: # (actually we leave an empty line to preserve line numbers).
! 147366: if test "x$srcdir" = x.; then
! 147367: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 147368: s/:*\$(srcdir):*/:/
! 147369: s/:*\${srcdir}:*/:/
! 147370: s/:*@srcdir@:*/:/
! 147371: s/^\([^=]*=[ ]*\):*/\1/
! 147372: s/:*$//
! 147373: s/^[^=]*=[ ]*$//
! 147374: }'
! 147375: fi
! 147376:
! 147377: cat >>$CONFIG_STATUS <<\_ACEOF
! 147378: fi # test -n "$CONFIG_FILES"
! 147379:
! 147380:
! 147381: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
1.1 misho 147382: do
147383: case $ac_tag in
147384: :[FHLC]) ac_mode=$ac_tag; continue;;
147385: esac
147386: case $ac_mode$ac_tag in
147387: :[FHL]*:*);;
1.1.1.3 ! misho 147388: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 147389: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 147390: { (exit 1); exit 1; }; };;
1.1 misho 147391: :[FH]-) ac_tag=-:-;;
147392: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
147393: esac
147394: ac_save_IFS=$IFS
147395: IFS=:
147396: set x $ac_tag
147397: IFS=$ac_save_IFS
147398: shift
147399: ac_file=$1
147400: shift
147401:
147402: case $ac_mode in
147403: :L) ac_source=$1;;
147404: :[FH])
147405: ac_file_inputs=
147406: for ac_f
147407: do
147408: case $ac_f in
1.1.1.3 ! misho 147409: -) ac_f="$tmp/stdin";;
1.1 misho 147410: *) # Look for the file first in the build tree, then in the source tree
147411: # (if the path is not absolute). The absolute path cannot be DOS-style,
147412: # because $ac_f cannot contain `:'.
147413: test -f "$ac_f" ||
147414: case $ac_f in
147415: [\\/$]*) false;;
147416: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
147417: esac ||
1.1.1.3 ! misho 147418: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 147419: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 147420: { (exit 1); exit 1; }; };;
1.1 misho 147421: esac
1.1.1.3 ! misho 147422: ac_file_inputs="$ac_file_inputs $ac_f"
1.1 misho 147423: done
147424:
147425: # Let's still pretend it is `configure' which instantiates (i.e., don't
147426: # use $as_me), people would be surprised to read:
147427: # /* config.h. Generated by config.status. */
1.1.1.3 ! misho 147428: configure_input="Generated from "`IFS=:
! 147429: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
1.1 misho 147430: if test x"$ac_file" != x-; then
147431: configure_input="$ac_file. $configure_input"
1.1.1.3 ! misho 147432: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 147433: echo "$as_me: creating $ac_file" >&6;}
1.1 misho 147434: fi
147435:
147436: case $ac_tag in
1.1.1.3 ! misho 147437: *:-:* | *:-) cat >"$tmp/stdin";;
1.1 misho 147438: esac
147439: ;;
147440: esac
147441:
147442: ac_dir=`$as_dirname -- "$ac_file" ||
147443: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
147444: X"$ac_file" : 'X\(//\)[^/]' \| \
147445: X"$ac_file" : 'X\(//\)$' \| \
147446: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 147447: echo X"$ac_file" |
! 147448: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 147449: s//\1/
! 147450: q
! 147451: }
! 147452: /^X\(\/\/\)[^/].*/{
! 147453: s//\1/
! 147454: q
! 147455: }
! 147456: /^X\(\/\/\)$/{
! 147457: s//\1/
! 147458: q
! 147459: }
! 147460: /^X\(\/\).*/{
! 147461: s//\1/
! 147462: q
! 147463: }
! 147464: s/.*/./; q'`
! 147465: { as_dir="$ac_dir"
! 147466: case $as_dir in #(
! 147467: -*) as_dir=./$as_dir;;
! 147468: esac
! 147469: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
! 147470: as_dirs=
! 147471: while :; do
! 147472: case $as_dir in #(
! 147473: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 147474: *) as_qdir=$as_dir;;
! 147475: esac
! 147476: as_dirs="'$as_qdir' $as_dirs"
! 147477: as_dir=`$as_dirname -- "$as_dir" ||
! 147478: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 147479: X"$as_dir" : 'X\(//\)[^/]' \| \
! 147480: X"$as_dir" : 'X\(//\)$' \| \
! 147481: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 147482: echo X"$as_dir" |
1.1 misho 147483: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
147484: s//\1/
147485: q
147486: }
147487: /^X\(\/\/\)[^/].*/{
147488: s//\1/
147489: q
147490: }
147491: /^X\(\/\/\)$/{
147492: s//\1/
147493: q
147494: }
147495: /^X\(\/\).*/{
147496: s//\1/
147497: q
147498: }
147499: s/.*/./; q'`
1.1.1.3 ! misho 147500: test -d "$as_dir" && break
! 147501: done
! 147502: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 147503: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 147504: echo "$as_me: error: cannot create directory $as_dir" >&2;}
! 147505: { (exit 1); exit 1; }; }; }
1.1 misho 147506: ac_builddir=.
147507:
147508: case "$ac_dir" in
147509: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
147510: *)
1.1.1.3 ! misho 147511: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1 misho 147512: # A ".." for each directory in $ac_dir_suffix.
1.1.1.3 ! misho 147513: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1.1 misho 147514: case $ac_top_builddir_sub in
147515: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
147516: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
147517: esac ;;
147518: esac
147519: ac_abs_top_builddir=$ac_pwd
147520: ac_abs_builddir=$ac_pwd$ac_dir_suffix
147521: # for backward compatibility:
147522: ac_top_builddir=$ac_top_build_prefix
147523:
147524: case $srcdir in
147525: .) # We are building in place.
147526: ac_srcdir=.
147527: ac_top_srcdir=$ac_top_builddir_sub
147528: ac_abs_top_srcdir=$ac_pwd ;;
147529: [\\/]* | ?:[\\/]* ) # Absolute name.
147530: ac_srcdir=$srcdir$ac_dir_suffix;
147531: ac_top_srcdir=$srcdir
147532: ac_abs_top_srcdir=$srcdir ;;
147533: *) # Relative name.
147534: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
147535: ac_top_srcdir=$ac_top_build_prefix$srcdir
147536: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
147537: esac
147538: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
147539:
147540:
147541: case $ac_mode in
147542: :F)
147543: #
147544: # CONFIG_FILE
147545: #
147546:
147547: _ACEOF
147548:
1.1.1.3 ! misho 147549: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misho 147550: # If the template does not know about datarootdir, expand it.
147551: # FIXME: This hack should be removed a few years after 2.60.
147552: ac_datarootdir_hack=; ac_datarootdir_seen=
1.1.1.3 ! misho 147553:
! 147554: case `sed -n '/datarootdir/ {
1.1 misho 147555: p
147556: q
147557: }
147558: /@datadir@/p
147559: /@docdir@/p
147560: /@infodir@/p
147561: /@localedir@/p
1.1.1.3 ! misho 147562: /@mandir@/p
! 147563: ' $ac_file_inputs` in
1.1 misho 147564: *datarootdir*) ac_datarootdir_seen=yes;;
147565: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.1.3 ! misho 147566: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 147567: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 misho 147568: _ACEOF
1.1.1.3 ! misho 147569: cat >>$CONFIG_STATUS <<_ACEOF
1.1 misho 147570: ac_datarootdir_hack='
147571: s&@datadir@&$datadir&g
147572: s&@docdir@&$docdir&g
147573: s&@infodir@&$infodir&g
147574: s&@localedir@&$localedir&g
147575: s&@mandir@&$mandir&g
1.1.1.3 ! misho 147576: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 misho 147577: esac
147578: _ACEOF
147579:
147580: # Neutralize VPATH when `$srcdir' = `.'.
147581: # Shell code in configure.ac might set extrasub.
147582: # FIXME: do we really want to maintain this feature?
1.1.1.3 ! misho 147583: cat >>$CONFIG_STATUS <<_ACEOF
! 147584: sed "$ac_vpsub
1.1 misho 147585: $extrasub
147586: _ACEOF
1.1.1.3 ! misho 147587: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misho 147588: :t
147589: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.3 ! misho 147590: s&@configure_input@&$configure_input&;t t
1.1 misho 147591: s&@top_builddir@&$ac_top_builddir_sub&;t t
147592: s&@srcdir@&$ac_srcdir&;t t
147593: s&@abs_srcdir@&$ac_abs_srcdir&;t t
147594: s&@top_srcdir@&$ac_top_srcdir&;t t
147595: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
147596: s&@builddir@&$ac_builddir&;t t
147597: s&@abs_builddir@&$ac_abs_builddir&;t t
147598: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
147599: $ac_datarootdir_hack
1.1.1.3 ! misho 147600: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
1.1 misho 147601:
147602: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.1.1.3 ! misho 147603: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 147604: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 147605: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 147606: which seems to be undefined. Please make sure it is defined." >&5
! 147607: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 147608: which seems to be undefined. Please make sure it is defined." >&2;}
1.1 misho 147609:
1.1.1.3 ! misho 147610: rm -f "$tmp/stdin"
1.1 misho 147611: case $ac_file in
1.1.1.3 ! misho 147612: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 147613: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
! 147614: esac
1.1 misho 147615: ;;
147616: :H)
147617: #
147618: # CONFIG_HEADER
147619: #
1.1.1.3 ! misho 147620: _ACEOF
! 147621:
! 147622: # Transform confdefs.h into a sed script `conftest.defines', that
! 147623: # substitutes the proper values into config.h.in to produce config.h.
! 147624: rm -f conftest.defines conftest.tail
! 147625: # First, append a space to every undef/define line, to ease matching.
! 147626: echo 's/$/ /' >conftest.defines
! 147627: # Then, protect against being on the right side of a sed subst, or in
! 147628: # an unquoted here document, in config.status. If some macros were
! 147629: # called several times there might be several #defines for the same
! 147630: # symbol, which is useless. But do not sort them, since the last
! 147631: # AC_DEFINE must be honored.
! 147632: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 147633: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
! 147634: # NAME is the cpp macro being defined, VALUE is the value it is being given.
! 147635: # PARAMS is the parameter list in the macro definition--in most cases, it's
! 147636: # just an empty string.
! 147637: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
! 147638: ac_dB='\\)[ (].*,\\1define\\2'
! 147639: ac_dC=' '
! 147640: ac_dD=' ,'
! 147641:
! 147642: uniq confdefs.h |
! 147643: sed -n '
! 147644: t rset
! 147645: :rset
! 147646: s/^[ ]*#[ ]*define[ ][ ]*//
! 147647: t ok
! 147648: d
! 147649: :ok
! 147650: s/[\\&,]/\\&/g
! 147651: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
! 147652: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
! 147653: ' >>conftest.defines
! 147654:
! 147655: # Remove the space that was appended to ease matching.
! 147656: # Then replace #undef with comments. This is necessary, for
! 147657: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 147658: # on some systems where configure will not decide to define it.
! 147659: # (The regexp can be short, since the line contains either #define or #undef.)
! 147660: echo 's/ $//
! 147661: s,^[ #]*u.*,/* & */,' >>conftest.defines
! 147662:
! 147663: # Break up conftest.defines:
! 147664: ac_max_sed_lines=50
! 147665:
! 147666: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
! 147667: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
! 147668: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
! 147669: # et cetera.
! 147670: ac_in='$ac_file_inputs'
! 147671: ac_out='"$tmp/out1"'
! 147672: ac_nxt='"$tmp/out2"'
! 147673:
! 147674: while :
! 147675: do
! 147676: # Write a here document:
! 147677: cat >>$CONFIG_STATUS <<_ACEOF
! 147678: # First, check the format of the line:
! 147679: cat >"\$tmp/defines.sed" <<\\CEOF
! 147680: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
! 147681: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
! 147682: b
! 147683: :def
! 147684: _ACEOF
! 147685: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
! 147686: echo 'CEOF
! 147687: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
! 147688: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
! 147689: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
! 147690: grep . conftest.tail >/dev/null || break
! 147691: rm -f conftest.defines
! 147692: mv conftest.tail conftest.defines
! 147693: done
! 147694: rm -f conftest.defines conftest.tail
! 147695:
! 147696: echo "ac_result=$ac_in" >>$CONFIG_STATUS
! 147697: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misho 147698: if test x"$ac_file" != x-; then
1.1.1.3 ! misho 147699: echo "/* $configure_input */" >"$tmp/config.h"
! 147700: cat "$ac_result" >>"$tmp/config.h"
! 147701: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
! 147702: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 147703: echo "$as_me: $ac_file is unchanged" >&6;}
! 147704: else
! 147705: rm -f $ac_file
! 147706: mv "$tmp/config.h" $ac_file
! 147707: fi
! 147708: else
! 147709: echo "/* $configure_input */"
! 147710: cat "$ac_result"
1.1 misho 147711: fi
1.1.1.3 ! misho 147712: rm -f "$tmp/out12"
1.1 misho 147713: ;;
147714:
1.1.1.3 ! misho 147715: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
! 147716: echo "$as_me: executing $ac_file commands" >&6;}
1.1 misho 147717: ;;
147718: esac
147719:
147720: done # for ac_tag
147721:
147722:
1.1.1.3 ! misho 147723: { (exit 0); exit 0; }
1.1 misho 147724: _ACEOF
1.1.1.3 ! misho 147725: chmod +x $CONFIG_STATUS
1.1 misho 147726: ac_clean_files=$ac_clean_files_save
147727:
147728:
147729: # configure is writing to config.log, and then calls config.status.
147730: # config.status does its own redirection, appending to config.log.
147731: # Unfortunately, on DOS this fails, as config.log is still kept open
147732: # by configure, so config.status won't be able to write to it; its
147733: # output is simply discarded. So we exec the FD to /dev/null,
147734: # effectively closing config.log, so it can be properly (re)opened and
147735: # appended to by config.status. When coming back to configure, we
147736: # need to make the FD available again.
147737: if test "$no_create" != yes; then
147738: ac_cs_success=:
147739: ac_config_status_args=
147740: test "$silent" = yes &&
147741: ac_config_status_args="$ac_config_status_args --quiet"
147742: exec 5>/dev/null
147743: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
147744: exec 5>>config.log
147745: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
147746: # would make configure fail if this is the last instruction.
1.1.1.3 ! misho 147747: $ac_cs_success || { (exit 1); exit 1; }
1.1 misho 147748: fi
147749:
147750:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>